3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.14.1
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-emacs=EMACS compile with EMACS [EMACS=emacs, mule...]"
17 --with-xemacs=XEMACS compile with XEMACS [XEMACS=xemacs]"
19 --with-lispdir=DIR Where to install lisp files
20 (for XEmacs package, use --with-packagedir instead)"
22 --with-etcdir=DIR Where to install etc files"
24 --with-url=DIR Specify where to find the url package"
26 --with-w3=DIR Specify where to find the w3 package"
28 --with-packagedir=DIR package DIR for XEmacs"
30 --with-addpath=PATH search Emacs-Lisp libraries with PATH
31 use colons to separate directory names"
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
37 cache_file=./config.cache
46 program_transform_name=s,x,x,
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
67 # Initialize some other variables.
70 SHELL=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
78 # If the previous option needs an argument, assign it.
79 if test -n "$ac_prev"; then
80 eval "$ac_prev=\$ac_option"
86 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 # Accept the important Cygnus configure options, so we can diagnose typos.
94 -bindir | --bindir | --bindi | --bind | --bin | --bi)
96 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97 bindir="$ac_optarg" ;;
99 -build | --build | --buil | --bui | --bu)
101 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102 build="$ac_optarg" ;;
104 -cache-file | --cache-file | --cache-fil | --cache-fi \
105 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106 ac_prev=cache_file ;;
107 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109 cache_file="$ac_optarg" ;;
111 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
113 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
115 datadir="$ac_optarg" ;;
117 -disable-* | --disable-*)
118 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119 # Reject names that are not valid shell variable names.
120 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124 eval "enable_${ac_feature}=no" ;;
126 -enable-* | --enable-*)
127 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137 eval "enable_${ac_feature}='$ac_optarg'" ;;
139 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141 | --exec | --exe | --ex)
142 ac_prev=exec_prefix ;;
143 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145 | --exec=* | --exe=* | --ex=*)
146 exec_prefix="$ac_optarg" ;;
148 -gas | --gas | --ga | --g)
149 # Obsolete; use --with-gas.
152 -help | --help | --hel | --he)
153 # Omit some internal or obsolete options to make the list less imposing.
154 # This message is too long to be a string in the A/UX 3.1 sh.
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
159 --cache-file=FILE cache test results in FILE
160 --help print this message
161 --no-create do not create output files
162 --quiet, --silent do not print \`checking...' messages
163 --version print the version of autoconf that created configure
164 Directory and file names:
165 --prefix=PREFIX install architecture-independent files in PREFIX
167 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
169 --bindir=DIR user executables in DIR [EPREFIX/bin]
170 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
171 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
172 --datadir=DIR read-only architecture-independent data in DIR
174 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
175 --sharedstatedir=DIR modifiable architecture-independent data in DIR
177 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
178 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
179 --includedir=DIR C header files in DIR [PREFIX/include]
180 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
181 --infodir=DIR info documentation in DIR [PREFIX/info]
182 --mandir=DIR man documentation in DIR [PREFIX/man]
183 --srcdir=DIR find the sources in DIR [configure dir or ..]
184 --program-prefix=PREFIX prepend PREFIX to installed program names
185 --program-suffix=SUFFIX append SUFFIX to installed program names
186 --program-transform-name=PROGRAM
187 run sed PROGRAM on installed program names
191 --build=BUILD configure for building on BUILD [BUILD=HOST]
192 --host=HOST configure for HOST [guessed]
193 --target=TARGET configure for TARGET [TARGET=HOST]
194 Features and packages:
195 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
196 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
197 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
198 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
199 --x-includes=DIR X include files are in DIR
200 --x-libraries=DIR X library files are in DIR
202 if test -n "$ac_help"; then
203 echo "--enable and --with options recognized:$ac_help"
207 -host | --host | --hos | --ho)
209 -host=* | --host=* | --hos=* | --ho=*)
212 -includedir | --includedir | --includedi | --included | --include \
213 | --includ | --inclu | --incl | --inc)
214 ac_prev=includedir ;;
215 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216 | --includ=* | --inclu=* | --incl=* | --inc=*)
217 includedir="$ac_optarg" ;;
219 -infodir | --infodir | --infodi | --infod | --info | --inf)
221 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222 infodir="$ac_optarg" ;;
224 -libdir | --libdir | --libdi | --libd)
226 -libdir=* | --libdir=* | --libdi=* | --libd=*)
227 libdir="$ac_optarg" ;;
229 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230 | --libexe | --libex | --libe)
231 ac_prev=libexecdir ;;
232 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233 | --libexe=* | --libex=* | --libe=*)
234 libexecdir="$ac_optarg" ;;
236 -localstatedir | --localstatedir | --localstatedi | --localstated \
237 | --localstate | --localstat | --localsta | --localst \
238 | --locals | --local | --loca | --loc | --lo)
239 ac_prev=localstatedir ;;
240 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243 localstatedir="$ac_optarg" ;;
245 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
247 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248 mandir="$ac_optarg" ;;
251 # Obsolete; use --without-fp.
254 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
259 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264 | --oldin | --oldi | --old | --ol | --o)
265 ac_prev=oldincludedir ;;
266 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269 oldincludedir="$ac_optarg" ;;
271 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
273 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274 prefix="$ac_optarg" ;;
276 -program-prefix | --program-prefix | --program-prefi | --program-pref \
277 | --program-pre | --program-pr | --program-p)
278 ac_prev=program_prefix ;;
279 -program-prefix=* | --program-prefix=* | --program-prefi=* \
280 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281 program_prefix="$ac_optarg" ;;
283 -program-suffix | --program-suffix | --program-suffi | --program-suff \
284 | --program-suf | --program-su | --program-s)
285 ac_prev=program_suffix ;;
286 -program-suffix=* | --program-suffix=* | --program-suffi=* \
287 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288 program_suffix="$ac_optarg" ;;
290 -program-transform-name | --program-transform-name \
291 | --program-transform-nam | --program-transform-na \
292 | --program-transform-n | --program-transform- \
293 | --program-transform | --program-transfor \
294 | --program-transfo | --program-transf \
295 | --program-trans | --program-tran \
296 | --progr-tra | --program-tr | --program-t)
297 ac_prev=program_transform_name ;;
298 -program-transform-name=* | --program-transform-name=* \
299 | --program-transform-nam=* | --program-transform-na=* \
300 | --program-transform-n=* | --program-transform-=* \
301 | --program-transform=* | --program-transfor=* \
302 | --program-transfo=* | --program-transf=* \
303 | --program-trans=* | --program-tran=* \
304 | --progr-tra=* | --program-tr=* | --program-t=*)
305 program_transform_name="$ac_optarg" ;;
307 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308 | -silent | --silent | --silen | --sile | --sil)
311 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
313 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
315 sbindir="$ac_optarg" ;;
317 -sharedstatedir | --sharedstatedir | --sharedstatedi \
318 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319 | --sharedst | --shareds | --shared | --share | --shar \
321 ac_prev=sharedstatedir ;;
322 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
326 sharedstatedir="$ac_optarg" ;;
328 -site | --site | --sit)
330 -site=* | --site=* | --sit=*)
333 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
335 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336 srcdir="$ac_optarg" ;;
338 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339 | --syscon | --sysco | --sysc | --sys | --sy)
340 ac_prev=sysconfdir ;;
341 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343 sysconfdir="$ac_optarg" ;;
345 -target | --target | --targe | --targ | --tar | --ta | --t)
347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348 target="$ac_optarg" ;;
350 -v | -verbose | --verbose | --verbos | --verbo | --verb)
353 -version | --version | --versio | --versi | --vers)
354 echo "configure generated by autoconf version 2.14.1"
358 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359 # Reject names that are not valid shell variable names.
360 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
363 ac_package=`echo $ac_package| sed 's/-/_/g'`
368 eval "with_${ac_package}='$ac_optarg'" ;;
370 -without-* | --without-*)
371 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}=no" ;;
380 # Obsolete; use --with-x.
383 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384 | --x-incl | --x-inc | --x-in | --x-i)
385 ac_prev=x_includes ;;
386 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388 x_includes="$ac_optarg" ;;
390 -x-libraries | --x-libraries | --x-librarie | --x-librari \
391 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392 ac_prev=x_libraries ;;
393 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395 x_libraries="$ac_optarg" ;;
397 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402 echo "configure: warning: $ac_option: invalid host type" 1>&2
404 if test "x$nonopt" != xNONE; then
405 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413 if test -n "$ac_prev"; then
414 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
419 # File descriptor usage:
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
445 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446 | --no-cr | --no-c) ;;
447 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456 # Only set these to C if already set. These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file=lisp/gnus.el
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476 ac_srcdir_defaulted=yes
477 # Try the directory containing this script, then its parent.
479 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
482 if test ! -r $srcdir/$ac_unique_file; then
486 ac_srcdir_defaulted=no
488 if test ! -r $srcdir/$ac_unique_file; then
489 if test "$ac_srcdir_defaulted" = yes; then
490 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
492 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499 if test "x$prefix" != xNONE; then
500 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
502 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505 for ac_site_file in $CONFIG_SITE; do
506 if test -r "$ac_site_file"; then
507 echo "loading site script $ac_site_file"
512 if test -r "$cache_file"; then
513 echo "loading cache $cache_file"
514 test -f "$cache_file" && . $cache_file
516 echo "creating cache $cache_file"
521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522 ac_cpp='$CPP $CPPFLAGS'
523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 cross_compiling=$ac_cv_prog_cc_cross
529 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
530 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
531 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
538 ac_n= ac_c='\c' ac_t=
542 echo $ac_n "defining gnus product name... $ac_c"
543 if eval "test \"\${EMACS_cv_GNUS_PRODUCT_NAME+set}\" = set"; then
544 echo $ac_n "(cached) $ac_c" 1>&6
546 EMACS_cv_GNUS_PRODUCT_NAME=t-gnus
549 GNUS_PRODUCT_NAME=${EMACS_cv_GNUS_PRODUCT_NAME}
550 echo "$ac_t""${GNUS_PRODUCT_NAME}" 1>&6
552 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
553 echo "configure:554: checking whether ${MAKE-make} sets \${MAKE}" >&5
554 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
555 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
556 echo $ac_n "(cached) $ac_c" 1>&6
558 cat > conftestmake <<\EOF
560 @echo 'ac_maketemp="${MAKE}"'
562 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
563 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
564 if test -n "$ac_maketemp"; then
565 eval ac_cv_prog_make_${ac_make}_set=yes
567 eval ac_cv_prog_make_${ac_make}_set=no
571 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
572 echo "$ac_t""yes" 1>&6
575 echo "$ac_t""no" 1>&6
576 SET_MAKE="MAKE=${MAKE-make}"
580 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
581 if test -f $ac_dir/install-sh; then
583 ac_install_sh="$ac_aux_dir/install-sh -c"
585 elif test -f $ac_dir/install.sh; then
587 ac_install_sh="$ac_aux_dir/install.sh -c"
591 if test -z "$ac_aux_dir"; then
592 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
594 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
595 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
596 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
598 # Find a good install program. We prefer a C program (faster),
599 # so one script is as good as another. But avoid the broken or
600 # incompatible versions:
601 # SysV /etc/install, /usr/sbin/install
602 # SunOS /usr/etc/install
605 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
606 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
607 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
608 # ./install, which can be erroneously created by make from ./install.sh.
609 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
610 echo "configure:611: checking for a BSD compatible install" >&5
611 if test -z "$INSTALL"; then
612 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
613 echo $ac_n "(cached) $ac_c" 1>&6
615 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
616 for ac_dir in $PATH; do
617 # Account for people who put trailing slashes in PATH elements.
619 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
621 # OSF1 and SCO ODT 3.0 have their own names for install.
622 # Don't use installbsd from OSF since it installs stuff as root
624 for ac_prog in ginstall scoinst install; do
625 if test -f $ac_dir/$ac_prog; then
626 if test $ac_prog = install &&
627 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
628 # AIX install. It has an incompatible calling convention.
630 elif test $ac_prog = install &&
631 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
632 # program-specific install script used by HP pwplus--don't use.
635 ac_cv_path_install="$ac_dir/$ac_prog -c"
646 if test "${ac_cv_path_install+set}" = set; then
647 INSTALL="$ac_cv_path_install"
649 # As a last resort, use the slow shell script. We don't cache a
650 # path for INSTALL within a source directory, because that will
651 # break other packages using the cache if that directory is
652 # removed, or if the path is relative.
653 INSTALL="$ac_install_sh"
656 echo "$ac_t""$INSTALL" 1>&6
658 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
659 # It thinks the first close brace ends the variable substitution.
660 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
662 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
664 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
666 # Extract the first word of "makeinfo", so it can be a program name with args.
667 set dummy makeinfo; ac_word=$2
668 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
669 echo "configure:670: checking for $ac_word" >&5
670 if eval "test \"\${ac_cv_prog_MAKEINFO+set}\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
673 if test -n "$MAKEINFO"; then
674 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
678 for ac_dir in $ac_dummy; do
679 test -z "$ac_dir" && ac_dir=.
680 if test -f $ac_dir/$ac_word; then
681 ac_cv_prog_MAKEINFO="makeinfo"
686 test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="no"
689 MAKEINFO="$ac_cv_prog_MAKEINFO"
690 if test -n "$MAKEINFO"; then
691 echo "$ac_t""$MAKEINFO" 1>&6
693 echo "$ac_t""no" 1>&6
697 test x$EMACS = xt && EMACS=
699 unset ac_cv_prog_EMACS; unset ac_cv_prog_XEMACS;
701 # Check whether --with-emacs or --without-emacs was given.
702 if test "${with_emacs+set}" = set; then
703 withval="$with_emacs"
704 if test x$withval = xyes -o x$withval = x; then
705 for ac_prog in emacs xemacs mule
707 # Extract the first word of "$ac_prog", so it can be a program name with args.
708 set dummy $ac_prog; ac_word=$2
709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
710 echo "configure:711: checking for $ac_word" >&5
711 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
712 echo $ac_n "(cached) $ac_c" 1>&6
714 if test -n "$EMACS"; then
715 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
719 for ac_dir in $ac_dummy; do
720 test -z "$ac_dir" && ac_dir=.
721 if test -f $ac_dir/$ac_word; then
722 ac_cv_prog_EMACS="$ac_prog"
729 EMACS="$ac_cv_prog_EMACS"
730 if test -n "$EMACS"; then
731 echo "$ac_t""$EMACS" 1>&6
733 echo "$ac_t""no" 1>&6
736 test -n "$EMACS" && break
738 test -n "$EMACS" || EMACS="emacs"
741 # Extract the first word of "$withval", so it can be a program name with args.
742 set dummy $withval; ac_word=$2
743 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
744 echo "configure:745: checking for $ac_word" >&5
745 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
746 echo $ac_n "(cached) $ac_c" 1>&6
748 if test -n "$EMACS"; then
749 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
753 for ac_dir in $ac_dummy; do
754 test -z "$ac_dir" && ac_dir=.
755 if test -f $ac_dir/$ac_word; then
756 ac_cv_prog_EMACS="$withval"
761 test -z "$ac_cv_prog_EMACS" && ac_cv_prog_EMACS="emacs"
764 EMACS="$ac_cv_prog_EMACS"
765 if test -n "$EMACS"; then
766 echo "$ac_t""$EMACS" 1>&6
768 echo "$ac_t""no" 1>&6
774 # Check whether --with-xemacs or --without-xemacs was given.
775 if test "${with_xemacs+set}" = set; then
776 withval="$with_xemacs"
777 if test x$withval = xyes -o x$withval = x; then
778 # Extract the first word of "xemacs", so it can be a program name with args.
779 set dummy xemacs; ac_word=$2
780 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
781 echo "configure:782: checking for $ac_word" >&5
782 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
783 echo $ac_n "(cached) $ac_c" 1>&6
785 if test -n "$XEMACS"; then
786 ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
790 for ac_dir in $ac_dummy; do
791 test -z "$ac_dir" && ac_dir=.
792 if test -f $ac_dir/$ac_word; then
793 ac_cv_prog_XEMACS="xemacs"
798 test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
801 XEMACS="$ac_cv_prog_XEMACS"
802 if test -n "$XEMACS"; then
803 echo "$ac_t""$XEMACS" 1>&6
805 echo "$ac_t""no" 1>&6
809 # Extract the first word of "$withval", so it can be a program name with args.
810 set dummy $withval; ac_word=$2
811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
812 echo "configure:813: checking for $ac_word" >&5
813 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
814 echo $ac_n "(cached) $ac_c" 1>&6
816 if test -n "$XEMACS"; then
817 ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
821 for ac_dir in $ac_dummy; do
822 test -z "$ac_dir" && ac_dir=.
823 if test -f $ac_dir/$ac_word; then
824 ac_cv_prog_XEMACS="$withval"
829 test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
832 XEMACS="$ac_cv_prog_XEMACS"
833 if test -n "$XEMACS"; then
834 echo "$ac_t""$XEMACS" 1>&6
836 echo "$ac_t""no" 1>&6
844 for ac_prog in emacs xemacs mule
846 # Extract the first word of "$ac_prog", so it can be a program name with args.
847 set dummy $ac_prog; ac_word=$2
848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
849 echo "configure:850: checking for $ac_word" >&5
850 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
851 echo $ac_n "(cached) $ac_c" 1>&6
853 if test -n "$EMACS"; then
854 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
856 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
858 for ac_dir in $ac_dummy; do
859 test -z "$ac_dir" && ac_dir=.
860 if test -f $ac_dir/$ac_word; then
861 ac_cv_prog_EMACS="$ac_prog"
868 EMACS="$ac_cv_prog_EMACS"
869 if test -n "$EMACS"; then
870 echo "$ac_t""$EMACS" 1>&6
872 echo "$ac_t""no" 1>&6
875 test -n "$EMACS" && break
877 test -n "$EMACS" || EMACS="emacs"
884 echo $ac_n "checking what a flavor does $EMACS have""... $ac_c" 1>&6
885 echo "configure:886: checking what a flavor does $EMACS have" >&5
887 unset EMACS_cv_SYS_flavor;
890 elisp="(cond ((featurep (quote xemacs)) \"XEmacs\")\
891 ((boundp (quote MULE)) \"MULE\")\
893 if test -z ""noecho""; then
894 echo $ac_n "checking for flavor""... $ac_c" 1>&6
895 echo "configure:896: checking for flavor" >&5
897 if eval "test \"\${EMACS_cv_SYS_flavor+set}\" = set"; then
898 echo $ac_n "(cached) $ac_c" 1>&6
902 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
903 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
904 retval=`cat ${OUTPUT}`
905 echo "=> ${retval}" >& 5 2>&1
907 EMACS_cv_SYS_flavor=$retval
911 flavor=${EMACS_cv_SYS_flavor}
912 if test -z ""noecho""; then
913 echo "$ac_t""$flavor" 1>&6
916 case $EMACS_cv_SYS_flavor in
918 EMACS_FLAVOR=xemacs;;
924 echo "$ac_t""$EMACS_cv_SYS_flavor" 1>&6
925 if test "$prefix" = "NONE"; then
926 echo $ac_n "checking prefix for your Emacs""... $ac_c" 1>&6
927 echo "configure:928: checking prefix for your Emacs" >&5
929 elisp="(expand-file-name \"..\" invocation-directory)"
930 if test -z ""noecho""; then
931 echo $ac_n "checking for prefix""... $ac_c" 1>&6
932 echo "configure:933: checking for prefix" >&5
934 if eval "test \"\${EMACS_cv_SYS_prefix+set}\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
939 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
940 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
941 retval=`cat ${OUTPUT}`
942 echo "=> ${retval}" >& 5 2>&1
944 EMACS_cv_SYS_prefix=$retval
948 prefix=${EMACS_cv_SYS_prefix}
949 if test -z ""noecho""; then
950 echo "$ac_t""$prefix" 1>&6
953 prefix=${EMACS_cv_SYS_prefix}
954 echo "$ac_t""$prefix" 1>&6
956 # Check whether --with-lispdir or --without-lispdir was given.
957 if test "${with_lispdir+set}" = set; then
958 withval="$with_lispdir"
962 echo $ac_n "checking where lisp files should go""... $ac_c" 1>&6
963 echo "configure:964: checking where lisp files should go" >&5
964 if test -z "$lispdir"; then
966 if test "x$theprefix" = "xNONE"; then
967 theprefix=$ac_default_prefix
969 lispdir="\$(datadir)/${EMACS_FLAVOR}/site-lisp/${GNUS_PRODUCT_NAME}"
970 for thedir in share lib; do
972 if test -d ${theprefix}/${thedir}/${EMACS_FLAVOR}/site-lisp; then
973 lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-lisp/${GNUS_PRODUCT_NAME}"
978 if test ${EMACS_FLAVOR} = xemacs; then
979 echo "$ac_t""$lispdir
980 (it will be ignored when \"make install-package[-ja]\" is done)" 1>&6
982 echo "$ac_t""$lispdir" 1>&6
987 # Check whether --with-etcdir or --without-etcdir was given.
988 if test "${with_etcdir+set}" = set; then
989 withval="$with_etcdir"
993 echo $ac_n "checking where etc files should go""... $ac_c" 1>&6
994 echo "configure:995: checking where etc files should go" >&5
995 if test -z "$etcdir"; then
996 etcdir="\$(lispdir)/../etc"
998 echo "$ac_t""$etcdir" 1>&6
1002 echo $ac_n "checking for acceptable URL version""... $ac_c" 1>&6
1003 echo "configure:1004: checking for acceptable URL version" >&5
1005 unset EMACS_cv_ACCEPTABLE_URL;
1006 unset EMACS_cv_SYS_url_dir;
1007 unset EMACS_cv_SYS_url;
1009 if eval "test \"\${EMACS_cv_ACCEPTABLE_URL+set}\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1014 if test -z ""noecho""; then
1015 echo $ac_n "checking for url-retrieve in url""... $ac_c" 1>&6
1016 echo "configure:1017: checking for url-retrieve in url" >&5
1018 library=`echo url | tr _ -`
1020 elisp="(progn (fmakunbound (quote url-retrieve)) (condition-case nil (progn (require (quote $library)) (fboundp (quote url-retrieve))) (error (prog1 nil (message \"$library not found\")))))"
1021 if test -z ""noecho""; then
1022 echo $ac_n "checking for url""... $ac_c" 1>&6
1023 echo "configure:1024: checking for url" >&5
1025 if eval "test \"\${EMACS_cv_SYS_url+set}\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1029 OUTPUT=./conftest-$$
1030 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1031 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1032 retval=`cat ${OUTPUT}`
1033 echo "=> ${retval}" >& 5 2>&1
1035 EMACS_cv_SYS_url=$retval
1039 url=${EMACS_cv_SYS_url}
1040 if test -z ""noecho""; then
1041 echo "$ac_t""$url" 1>&6
1044 if test "${EMACS_cv_SYS_url}" = "nil"; then
1047 if test "${EMACS_cv_SYS_url}" = "t"; then
1048 EMACS_cv_SYS_url=yes
1050 HAVE_url=${EMACS_cv_SYS_url}
1052 if test -z ""noecho""; then
1053 echo "$ac_t""$HAVE_url" 1>&6
1056 if test "${HAVE_url}" = "yes"; then
1057 EMACS_cv_ACCEPTABLE_URL=yes
1059 EMACS_cv_ACCEPTABLE_URL=
1062 if test "x${EMACS_cv_ACCEPTABLE_URL}" = "xyes"; then
1064 elisp="(file-name-directory (locate-library \"url\"))"
1065 if test -z ""noecho""; then
1066 echo $ac_n "checking for url_dir""... $ac_c" 1>&6
1067 echo "configure:1068: checking for url_dir" >&5
1069 if eval "test \"\${EMACS_cv_SYS_url_dir+set}\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1073 OUTPUT=./conftest-$$
1074 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1075 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1076 retval=`cat ${OUTPUT}`
1077 echo "=> ${retval}" >& 5 2>&1
1079 EMACS_cv_SYS_url_dir=$retval
1083 url_dir=${EMACS_cv_SYS_url_dir}
1084 if test -z ""noecho""; then
1085 echo "$ac_t""$url_dir" 1>&6
1088 EMACS_cv_ACCEPTABLE_URL=$EMACS_cv_SYS_url_dir
1093 # Check whether --with-url or --without-url was given.
1094 if test "${with_url+set}" = set; then
1096 EMACS_cv_ACCEPTABLE_URL=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null`
1099 URL=${EMACS_cv_ACCEPTABLE_URL}
1101 if test "x${EMACS_cv_ACCEPTABLE_URL}" = "x"; then
1102 echo "$ac_t""not found" 1>&6
1104 echo "$ac_t"""${URL}"" 1>&6
1108 echo $ac_n "checking for acceptable W3 version""... $ac_c" 1>&6
1109 echo "configure:1110: checking for acceptable W3 version" >&5
1111 unset EMACS_cv_ACCEPTABLE_W3;
1112 unset EMACS_cv_SYS_w3_dir;
1113 unset EMACS_cv_SYS_w3_forms;
1115 if eval "test \"\${EMACS_cv_ACCEPTABLE_W3+set}\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1120 if test -z ""noecho""; then
1121 echo $ac_n "checking for w3-form-encode-xwfu in w3_forms""... $ac_c" 1>&6
1122 echo "configure:1123: checking for w3-form-encode-xwfu in w3_forms" >&5
1124 library=`echo w3_forms | tr _ -`
1126 elisp="(progn (fmakunbound (quote w3-form-encode-xwfu)) (condition-case nil (progn (require (quote $library)) (fboundp (quote w3-form-encode-xwfu))) (error (prog1 nil (message \"$library not found\")))))"
1127 if test -z ""noecho""; then
1128 echo $ac_n "checking for w3_forms""... $ac_c" 1>&6
1129 echo "configure:1130: checking for w3_forms" >&5
1131 if eval "test \"\${EMACS_cv_SYS_w3_forms+set}\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1135 OUTPUT=./conftest-$$
1136 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1137 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1138 retval=`cat ${OUTPUT}`
1139 echo "=> ${retval}" >& 5 2>&1
1141 EMACS_cv_SYS_w3_forms=$retval
1145 w3_forms=${EMACS_cv_SYS_w3_forms}
1146 if test -z ""noecho""; then
1147 echo "$ac_t""$w3_forms" 1>&6
1150 if test "${EMACS_cv_SYS_w3_forms}" = "nil"; then
1151 EMACS_cv_SYS_w3_forms=no
1153 if test "${EMACS_cv_SYS_w3_forms}" = "t"; then
1154 EMACS_cv_SYS_w3_forms=yes
1156 HAVE_w3_forms=${EMACS_cv_SYS_w3_forms}
1158 if test -z ""noecho""; then
1159 echo "$ac_t""$HAVE_w3_forms" 1>&6
1162 if test "${HAVE_w3_forms}" = "yes"; then
1163 EMACS_cv_ACCEPTABLE_W3=yes
1165 EMACS_cv_ACCEPTABLE_W3=
1168 if test "x${EMACS_cv_ACCEPTABLE_W3}" = "xyes"; then
1170 elisp="(file-name-directory (locate-library \"w3-forms\"))"
1171 if test -z ""noecho""; then
1172 echo $ac_n "checking for w3_dir""... $ac_c" 1>&6
1173 echo "configure:1174: checking for w3_dir" >&5
1175 if eval "test \"\${EMACS_cv_SYS_w3_dir+set}\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1179 OUTPUT=./conftest-$$
1180 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1181 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1182 retval=`cat ${OUTPUT}`
1183 echo "=> ${retval}" >& 5 2>&1
1185 EMACS_cv_SYS_w3_dir=$retval
1189 w3_dir=${EMACS_cv_SYS_w3_dir}
1190 if test -z ""noecho""; then
1191 echo "$ac_t""$w3_dir" 1>&6
1194 EMACS_cv_ACCEPTABLE_W3=$EMACS_cv_SYS_w3_dir
1199 # Check whether --with-w3 or --without-w3 was given.
1200 if test "${with_w3+set}" = set; then
1202 EMACS_cv_ACCEPTABLE_W3=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null`
1205 W3=${EMACS_cv_ACCEPTABLE_W3}
1207 if test "x${EMACS_cv_ACCEPTABLE_W3}" = "x"; then
1208 echo "$ac_t""not found" 1>&6
1210 echo "$ac_t""${W3}" 1>&6
1213 if test ${EMACS_FLAVOR} = xemacs; then
1214 echo $ac_n "checking where the XEmacs package is""... $ac_c" 1>&6
1215 echo "configure:1216: checking where the XEmacs package is" >&5
1216 # Check whether --with-packagedir or --without-packagedir was given.
1217 if test "${with_packagedir+set}" = set; then
1218 withval="$with_packagedir"
1219 if test x$withval != xyes -a x$withval != x; then
1223 elisp="(let (package-dir)\
1224 (if (boundp (quote early-packages))\
1225 (let ((dirs (delq nil (append (if early-package-load-path\
1227 (if late-package-load-path\
1229 (if last-package-load-path\
1231 (while (and dirs (not package-dir))\
1232 (if (file-directory-p (car dirs))\
1233 (setq package-dir (car dirs)\
1234 dirs (cdr dirs))))))\
1235 (or package-dir \"\"))"
1236 if test -z ""noecho""; then
1237 echo $ac_n "checking for PACKAGEDIR""... $ac_c" 1>&6
1238 echo "configure:1239: checking for PACKAGEDIR" >&5
1240 if eval "test \"\${EMACS_cv_SYS_PACKAGEDIR+set}\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1244 OUTPUT=./conftest-$$
1245 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1246 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1247 retval=`cat ${OUTPUT}`
1248 echo "=> ${retval}" >& 5 2>&1
1250 EMACS_cv_SYS_PACKAGEDIR=$retval
1254 PACKAGEDIR=${EMACS_cv_SYS_PACKAGEDIR}
1255 if test -z ""noecho""; then
1256 echo "$ac_t""$PACKAGEDIR" 1>&6
1262 elisp="(let (package-dir)\
1263 (if (boundp (quote early-packages))\
1264 (let ((dirs (delq nil (append (if early-package-load-path\
1266 (if late-package-load-path\
1268 (if last-package-load-path\
1270 (while (and dirs (not package-dir))\
1271 (if (file-directory-p (car dirs))\
1272 (setq package-dir (car dirs)\
1273 dirs (cdr dirs))))))\
1274 (or package-dir \"\"))"
1275 if test -z ""noecho""; then
1276 echo $ac_n "checking for PACKAGEDIR""... $ac_c" 1>&6
1277 echo "configure:1278: checking for PACKAGEDIR" >&5
1279 if eval "test \"\${EMACS_cv_SYS_PACKAGEDIR+set}\" = set"; then
1280 echo $ac_n "(cached) $ac_c" 1>&6
1283 OUTPUT=./conftest-$$
1284 echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1285 eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1286 retval=`cat ${OUTPUT}`
1287 echo "=> ${retval}" >& 5 2>&1
1289 EMACS_cv_SYS_PACKAGEDIR=$retval
1293 PACKAGEDIR=${EMACS_cv_SYS_PACKAGEDIR}
1294 if test -z ""noecho""; then
1295 echo "$ac_t""$PACKAGEDIR" 1>&6
1300 if test x$PACKAGEDIR = x; then
1301 echo "$ac_t""not found" 1>&6
1303 echo "$ac_t""$PACKAGEDIR" 1>&6
1309 # Check whether --with-addpath or --without-addpath was given.
1310 if test "${with_addpath+set}" = set; then
1311 withval="$with_addpath"
1312 if test x$withval != xyes -a x$withval != x; then
1313 echo $ac_n "checking where to find the additional elisp libraries""... $ac_c" 1>&6
1314 echo "configure:1315: checking where to find the additional elisp libraries" >&5
1315 ADDITIONAL_LOAD_PATH=$withval
1316 echo "$ac_t""$ADDITIONAL_LOAD_PATH" 1>&6
1319 ADDITIONAL_LOAD_PATH=
1324 cat > confcache <<\EOF
1325 # This file is a shell script that caches the results of configure
1326 # tests run on this system so they can be shared between configure
1327 # scripts and configure runs. It is not useful on other systems.
1328 # If it contains results you don't want to keep, you may remove or edit it.
1330 # By default, configure uses ./config.cache as the cache file,
1331 # creating it if it does not exist already. You can give configure
1332 # the --cache-file=FILE option to use a different cache file; that is
1333 # what configure does when it calls configure scripts in
1334 # subdirectories, so they share the cache.
1335 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1336 # config.status only pays attention to the cache file if you give it the
1337 # --recheck option to rerun configure.
1340 # The following way of writing the cache mishandles newlines in values,
1341 # but we know of no workaround that is simple, portable, and efficient.
1342 # So, don't put newlines in cache variables' values.
1343 # Ultrix sh set writes to stderr and can't be redirected directly,
1344 # and sets the high bit in the cache file unless we assign to the vars.
1346 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1348 # `set' does not quote correctly, so add quotes (double-quote substitution
1349 # turns \\\\ into \\, and sed turns \\ into \).
1351 -e "s/'/'\\\\''/g" \
1352 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1355 # `set' quotes correctly as required by POSIX, so do not add quotes.
1356 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1359 if cmp -s $cache_file confcache; then
1362 if test -w $cache_file; then
1363 echo "updating cache $cache_file"
1364 cat confcache > $cache_file
1366 echo "not updating unwritable cache $cache_file"
1371 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1373 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1374 # Let make expand exec_prefix.
1375 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1377 # Any assignment to VPATH causes Sun make to only execute
1378 # the first set of double-colon rules, so remove it if not needed.
1379 # If there is a colon in the path, we need to keep it.
1380 if test "x$srcdir" = x.; then
1381 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1384 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1386 # Transform confdefs.h into DEFS.
1387 # Protect against shell expansion while executing Makefile rules.
1388 # Protect against Makefile macro expansion.
1389 cat > conftest.defs <<\EOF
1390 s%#define \([^ ][^ ]*\) *\(.*\)%-D\1=\2%g
1391 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1396 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1400 # Without the "./", some shells look in PATH for config.status.
1401 : ${CONFIG_STATUS=./config.status}
1403 echo creating $CONFIG_STATUS
1404 rm -f $CONFIG_STATUS
1405 cat > $CONFIG_STATUS <<EOF
1407 # Generated automatically by configure.
1408 # Run this file to recreate the current configuration.
1409 # This directory was configured as follows,
1410 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1412 # $0 $ac_configure_args
1414 # Compiler output produced by configure, useful for debugging
1415 # configure, is in ./config.log if it exists.
1417 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1420 case "\$ac_option" in
1421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1422 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1423 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1424 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1425 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
1427 -help | --help | --hel | --he | --h)
1428 echo "\$ac_cs_usage"; exit 0 ;;
1429 *) echo "\$ac_cs_usage"; exit 1 ;;
1433 ac_given_srcdir=$srcdir
1434 ac_given_INSTALL="$INSTALL"
1436 trap 'rm -fr `echo "Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile etc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1438 cat >> $CONFIG_STATUS <<EOF
1440 # Protect against being on the right side of a sed subst in config.status.
1441 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1442 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1446 s%@CFLAGS@%$CFLAGS%g
1447 s%@CPPFLAGS@%$CPPFLAGS%g
1448 s%@CXXFLAGS@%$CXXFLAGS%g
1449 s%@FFLAGS@%$FFLAGS%g
1451 s%@LDFLAGS@%$LDFLAGS%g
1453 s%@exec_prefix@%$exec_prefix%g
1454 s%@prefix@%$prefix%g
1455 s%@program_transform_name@%$program_transform_name%g
1456 s%@bindir@%$bindir%g
1457 s%@sbindir@%$sbindir%g
1458 s%@libexecdir@%$libexecdir%g
1459 s%@datadir@%$datadir%g
1460 s%@sysconfdir@%$sysconfdir%g
1461 s%@sharedstatedir@%$sharedstatedir%g
1462 s%@localstatedir@%$localstatedir%g
1463 s%@libdir@%$libdir%g
1464 s%@includedir@%$includedir%g
1465 s%@oldincludedir@%$oldincludedir%g
1466 s%@infodir@%$infodir%g
1467 s%@mandir@%$mandir%g
1468 s%@GNUS_PRODUCT_NAME@%$GNUS_PRODUCT_NAME%g
1469 s%@SET_MAKE@%$SET_MAKE%g
1470 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1471 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1472 s%@INSTALL_DATA@%$INSTALL_DATA%g
1473 s%@MAKEINFO@%$MAKEINFO%g
1475 s%@XEMACS@%$XEMACS%g
1476 s%@lispdir@%$lispdir%g
1477 s%@etcdir@%$etcdir%g
1478 s%@HAVE_url@%$HAVE_url%g
1480 s%@HAVE_w3_forms@%$HAVE_w3_forms%g
1482 s%@PACKAGEDIR@%$PACKAGEDIR%g
1483 s%@ADDITIONAL_LOAD_PATH@%$ADDITIONAL_LOAD_PATH%g
1488 cat >> $CONFIG_STATUS <<\EOF
1490 # Split the substitutions into bite-sized pieces for seds with
1491 # small command number limits, like on Digital OSF/1 and HP-UX.
1492 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1493 ac_file=1 # Number of current file.
1494 ac_beg=1 # First line for current file.
1495 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1498 while $ac_more_lines; do
1499 if test $ac_beg -gt 1; then
1500 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1502 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1504 if test ! -s conftest.s$ac_file; then
1506 rm -f conftest.s$ac_file
1508 if test -z "$ac_sed_cmds"; then
1509 ac_sed_cmds="sed -f conftest.s$ac_file"
1511 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1513 ac_file=`expr $ac_file + 1`
1515 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1518 if test -z "$ac_sed_cmds"; then
1523 cat >> $CONFIG_STATUS <<EOF
1525 CONFIG_FILES=\${CONFIG_FILES-"Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile etc/Makefile"}
1527 cat >> $CONFIG_STATUS <<\EOF
1528 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1529 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1531 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1532 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1533 *) ac_file_in="${ac_file}.in" ;;
1536 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1538 # Remove last slash and all that follows it. Not all systems have dirname.
1539 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1540 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1541 # The file is in a subdirectory.
1542 test ! -d "$ac_dir" && mkdir "$ac_dir"
1543 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1544 # A "../" for each directory in $ac_dir_suffix.
1545 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1547 ac_dir_suffix= ac_dots=
1550 case "$ac_given_srcdir" in
1552 if test -z "$ac_dots"; then top_srcdir=.
1553 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1554 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1556 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1557 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1560 case "$ac_given_INSTALL" in
1561 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1562 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1565 echo creating "$ac_file"
1567 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1569 *Makefile*) ac_comsub="1i\\
1570 # $configure_input" ;;
1574 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1576 s%@configure_input@%$configure_input%g
1577 s%@srcdir@%$srcdir%g
1578 s%@top_srcdir@%$top_srcdir%g
1579 s%@INSTALL@%$INSTALL%g
1580 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1585 cat >> $CONFIG_STATUS <<EOF
1588 cat >> $CONFIG_STATUS <<\EOF
1592 chmod +x $CONFIG_STATUS
1593 rm -fr confdefs* $ac_clean_files
1594 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1