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-xemacs Use XEmacs to build [XEMACS=xemacs]"
17 --with-emacs Use Emacs to build [EMACS=emacs]"
19 --with-lispdir=DIR Where to install lisp files"
21 --with-w3=DIR Specify where to find the w3 package"
23 --with-addpath=PATH search Emacs-Lisp libraries with PATH
24 use colons to separate directory names"
26 --with-packagedir=DIR package DIR for XEmacs [guessed]"
28 # Initialize some variables set by options.
29 # The variables have the same names as the options, with
30 # dashes changed to underlines.
32 cache_file=./config.cache
41 program_transform_name=s,x,x,
49 bindir='${exec_prefix}/bin'
50 sbindir='${exec_prefix}/sbin'
51 libexecdir='${exec_prefix}/libexec'
52 datadir='${prefix}/share'
53 sysconfdir='${prefix}/etc'
54 sharedstatedir='${prefix}/com'
55 localstatedir='${prefix}/var'
56 libdir='${exec_prefix}/lib'
57 includedir='${prefix}/include'
58 oldincludedir='/usr/include'
59 infodir='${prefix}/info'
60 mandir='${prefix}/man'
62 # Initialize some other variables.
65 SHELL=${CONFIG_SHELL-/bin/sh}
66 # Maximum number of lines to put in a shell here document.
73 # If the previous option needs an argument, assign it.
74 if test -n "$ac_prev"; then
75 eval "$ac_prev=\$ac_option"
81 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
85 # Accept the important Cygnus configure options, so we can diagnose typos.
89 -bindir | --bindir | --bindi | --bind | --bin | --bi)
91 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92 bindir="$ac_optarg" ;;
94 -build | --build | --buil | --bui | --bu)
96 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
99 -cache-file | --cache-file | --cache-fil | --cache-fi \
100 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101 ac_prev=cache_file ;;
102 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104 cache_file="$ac_optarg" ;;
106 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
108 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
110 datadir="$ac_optarg" ;;
112 -disable-* | --disable-*)
113 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114 # Reject names that are not valid shell variable names.
115 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119 eval "enable_${ac_feature}=no" ;;
121 -enable-* | --enable-*)
122 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123 # Reject names that are not valid shell variable names.
124 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
127 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}='$ac_optarg'" ;;
134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136 | --exec | --exe | --ex)
137 ac_prev=exec_prefix ;;
138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140 | --exec=* | --exe=* | --ex=*)
141 exec_prefix="$ac_optarg" ;;
143 -gas | --gas | --ga | --g)
144 # Obsolete; use --with-gas.
147 -help | --help | --hel | --he)
148 # Omit some internal or obsolete options to make the list less imposing.
149 # This message is too long to be a string in the A/UX 3.1 sh.
151 Usage: configure [options] [host]
152 Options: [defaults in brackets after descriptions]
154 --cache-file=FILE cache test results in FILE
155 --help print this message
156 --no-create do not create output files
157 --quiet, --silent do not print \`checking...' messages
158 --version print the version of autoconf that created configure
159 Directory and file names:
160 --prefix=PREFIX install architecture-independent files in PREFIX
162 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
164 --bindir=DIR user executables in DIR [EPREFIX/bin]
165 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
166 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
167 --datadir=DIR read-only architecture-independent data in DIR
169 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
170 --sharedstatedir=DIR modifiable architecture-independent data in DIR
172 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
173 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
174 --includedir=DIR C header files in DIR [PREFIX/include]
175 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
176 --infodir=DIR info documentation in DIR [PREFIX/info]
177 --mandir=DIR man documentation in DIR [PREFIX/man]
178 --srcdir=DIR find the sources in DIR [configure dir or ..]
179 --program-prefix=PREFIX prepend PREFIX to installed program names
180 --program-suffix=SUFFIX append SUFFIX to installed program names
181 --program-transform-name=PROGRAM
182 run sed PROGRAM on installed program names
186 --build=BUILD configure for building on BUILD [BUILD=HOST]
187 --host=HOST configure for HOST [guessed]
188 --target=TARGET configure for TARGET [TARGET=HOST]
189 Features and packages:
190 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
191 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
192 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
193 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
194 --x-includes=DIR X include files are in DIR
195 --x-libraries=DIR X library files are in DIR
197 if test -n "$ac_help"; then
198 echo "--enable and --with options recognized:$ac_help"
202 -host | --host | --hos | --ho)
204 -host=* | --host=* | --hos=* | --ho=*)
207 -includedir | --includedir | --includedi | --included | --include \
208 | --includ | --inclu | --incl | --inc)
209 ac_prev=includedir ;;
210 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211 | --includ=* | --inclu=* | --incl=* | --inc=*)
212 includedir="$ac_optarg" ;;
214 -infodir | --infodir | --infodi | --infod | --info | --inf)
216 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217 infodir="$ac_optarg" ;;
219 -libdir | --libdir | --libdi | --libd)
221 -libdir=* | --libdir=* | --libdi=* | --libd=*)
222 libdir="$ac_optarg" ;;
224 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225 | --libexe | --libex | --libe)
226 ac_prev=libexecdir ;;
227 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228 | --libexe=* | --libex=* | --libe=*)
229 libexecdir="$ac_optarg" ;;
231 -localstatedir | --localstatedir | --localstatedi | --localstated \
232 | --localstate | --localstat | --localsta | --localst \
233 | --locals | --local | --loca | --loc | --lo)
234 ac_prev=localstatedir ;;
235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238 localstatedir="$ac_optarg" ;;
240 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
242 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243 mandir="$ac_optarg" ;;
246 # Obsolete; use --without-fp.
249 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
253 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
257 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259 | --oldin | --oldi | --old | --ol | --o)
260 ac_prev=oldincludedir ;;
261 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264 oldincludedir="$ac_optarg" ;;
266 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
268 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269 prefix="$ac_optarg" ;;
271 -program-prefix | --program-prefix | --program-prefi | --program-pref \
272 | --program-pre | --program-pr | --program-p)
273 ac_prev=program_prefix ;;
274 -program-prefix=* | --program-prefix=* | --program-prefi=* \
275 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276 program_prefix="$ac_optarg" ;;
278 -program-suffix | --program-suffix | --program-suffi | --program-suff \
279 | --program-suf | --program-su | --program-s)
280 ac_prev=program_suffix ;;
281 -program-suffix=* | --program-suffix=* | --program-suffi=* \
282 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283 program_suffix="$ac_optarg" ;;
285 -program-transform-name | --program-transform-name \
286 | --program-transform-nam | --program-transform-na \
287 | --program-transform-n | --program-transform- \
288 | --program-transform | --program-transfor \
289 | --program-transfo | --program-transf \
290 | --program-trans | --program-tran \
291 | --progr-tra | --program-tr | --program-t)
292 ac_prev=program_transform_name ;;
293 -program-transform-name=* | --program-transform-name=* \
294 | --program-transform-nam=* | --program-transform-na=* \
295 | --program-transform-n=* | --program-transform-=* \
296 | --program-transform=* | --program-transfor=* \
297 | --program-transfo=* | --program-transf=* \
298 | --program-trans=* | --program-tran=* \
299 | --progr-tra=* | --program-tr=* | --program-t=*)
300 program_transform_name="$ac_optarg" ;;
302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303 | -silent | --silent | --silen | --sile | --sil)
306 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
308 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
310 sbindir="$ac_optarg" ;;
312 -sharedstatedir | --sharedstatedir | --sharedstatedi \
313 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314 | --sharedst | --shareds | --shared | --share | --shar \
316 ac_prev=sharedstatedir ;;
317 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
321 sharedstatedir="$ac_optarg" ;;
323 -site | --site | --sit)
325 -site=* | --site=* | --sit=*)
328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331 srcdir="$ac_optarg" ;;
333 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334 | --syscon | --sysco | --sysc | --sys | --sy)
335 ac_prev=sysconfdir ;;
336 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338 sysconfdir="$ac_optarg" ;;
340 -target | --target | --targe | --targ | --tar | --ta | --t)
342 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343 target="$ac_optarg" ;;
345 -v | -verbose | --verbose | --verbos | --verbo | --verb)
348 -version | --version | --versio | --versi | --vers)
349 echo "configure generated by autoconf version 2.14.1"
353 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354 # Reject names that are not valid shell variable names.
355 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 eval "with_${ac_package}='$ac_optarg'" ;;
365 -without-* | --without-*)
366 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 eval "with_${ac_package}=no" ;;
375 # Obsolete; use --with-x.
378 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379 | --x-incl | --x-inc | --x-in | --x-i)
380 ac_prev=x_includes ;;
381 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383 x_includes="$ac_optarg" ;;
385 -x-libraries | --x-libraries | --x-librarie | --x-librari \
386 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387 ac_prev=x_libraries ;;
388 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390 x_libraries="$ac_optarg" ;;
392 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
396 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397 echo "configure: warning: $ac_option: invalid host type" 1>&2
399 if test "x$nonopt" != xNONE; then
400 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408 if test -n "$ac_prev"; then
409 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
412 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
414 # File descriptor usage:
417 # 2 errors and warnings
418 # 3 some systems may open it to /dev/tty
419 # 4 used on the Kubota Titan
420 # 6 checking for... messages and results
421 # 5 compiler messages saved in config.log
422 if test "$silent" = yes; then
430 This file contains any messages produced by compilers while
431 running configure, to aid debugging if configure makes a mistake.
434 # Strip out --no-create and --no-recursion so they do not pile up.
435 # Also quote any args containing shell metacharacters.
440 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441 | --no-cr | --no-c) ;;
442 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 # Only set these to C if already set. These must not be set unconditionally
452 # because not all systems understand e.g. LANG=C (notably SCO).
453 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454 # Non-C LC_CTYPE values break the ctype check.
455 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
456 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
460 # confdefs.h avoids OS command line length limits that DEFS can exceed.
461 rm -rf conftest* confdefs.h
462 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
465 # A filename unique to this package, relative to the directory that
466 # configure is in, which we can look for to find out if srcdir is correct.
467 ac_unique_file=lisp/gnus.el
469 # Find the source files, if location was not specified.
470 if test -z "$srcdir"; then
471 ac_srcdir_defaulted=yes
472 # Try the directory containing this script, then its parent.
474 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
477 if test ! -r $srcdir/$ac_unique_file; then
481 ac_srcdir_defaulted=no
483 if test ! -r $srcdir/$ac_unique_file; then
484 if test "$ac_srcdir_defaulted" = yes; then
485 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
487 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
490 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
492 # Prefer explicitly selected file to automatically selected ones.
493 if test -z "$CONFIG_SITE"; then
494 if test "x$prefix" != xNONE; then
495 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
497 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
500 for ac_site_file in $CONFIG_SITE; do
501 if test -r "$ac_site_file"; then
502 echo "loading site script $ac_site_file"
507 if test -r "$cache_file"; then
508 echo "loading cache $cache_file"
509 test -f "$cache_file" && . $cache_file
511 echo "creating cache $cache_file"
516 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517 ac_cpp='$CPP $CPPFLAGS'
518 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520 cross_compiling=$ac_cv_prog_cc_cross
524 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
525 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
526 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
533 ac_n= ac_c='\c' ac_t=
537 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
538 echo "configure:539: checking whether ${MAKE-make} sets \${MAKE}" >&5
539 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
540 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
541 echo $ac_n "(cached) $ac_c" 1>&6
543 cat > conftestmake <<\EOF
545 @echo 'ac_maketemp="${MAKE}"'
547 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
548 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
549 if test -n "$ac_maketemp"; then
550 eval ac_cv_prog_make_${ac_make}_set=yes
552 eval ac_cv_prog_make_${ac_make}_set=no
556 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
557 echo "$ac_t""yes" 1>&6
560 echo "$ac_t""no" 1>&6
561 SET_MAKE="MAKE=${MAKE-make}"
565 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
566 if test -f $ac_dir/install-sh; then
568 ac_install_sh="$ac_aux_dir/install-sh -c"
570 elif test -f $ac_dir/install.sh; then
572 ac_install_sh="$ac_aux_dir/install.sh -c"
576 if test -z "$ac_aux_dir"; then
577 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
579 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
580 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
581 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
583 # Find a good install program. We prefer a C program (faster),
584 # so one script is as good as another. But avoid the broken or
585 # incompatible versions:
586 # SysV /etc/install, /usr/sbin/install
587 # SunOS /usr/etc/install
590 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
591 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
592 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
593 # ./install, which can be erroneously created by make from ./install.sh.
594 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
595 echo "configure:596: checking for a BSD compatible install" >&5
596 if test -z "$INSTALL"; then
597 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
598 echo $ac_n "(cached) $ac_c" 1>&6
600 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
601 for ac_dir in $PATH; do
602 # Account for people who put trailing slashes in PATH elements.
604 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
606 # OSF1 and SCO ODT 3.0 have their own names for install.
607 # Don't use installbsd from OSF since it installs stuff as root
609 for ac_prog in ginstall scoinst install; do
610 if test -f $ac_dir/$ac_prog; then
611 if test $ac_prog = install &&
612 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
613 # AIX install. It has an incompatible calling convention.
615 elif test $ac_prog = install &&
616 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
617 # program-specific install script used by HP pwplus--don't use.
620 ac_cv_path_install="$ac_dir/$ac_prog -c"
631 if test "${ac_cv_path_install+set}" = set; then
632 INSTALL="$ac_cv_path_install"
634 # As a last resort, use the slow shell script. We don't cache a
635 # path for INSTALL within a source directory, because that will
636 # break other packages using the cache if that directory is
637 # removed, or if the path is relative.
638 INSTALL="$ac_install_sh"
641 echo "$ac_t""$INSTALL" 1>&6
643 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
644 # It thinks the first close brace ends the variable substitution.
645 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
647 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
654 # Check whether --with-xemacs or --without-xemacs was given.
655 if test "${with_xemacs+set}" = set; then
656 withval="$with_xemacs"
657 if test "${withval}" = "yes"; then
659 elif test "${withval}" != "no"; then
667 # Check whether --with-emacs or --without-emacs was given.
668 if test "${with_emacs+set}" = set; then
669 withval="$with_emacs"
670 if test "${withval}" != "yes" && test "${withval}" != "no"; then
677 # Extract the first word of "makeinfo", so it can be a program name with args.
678 set dummy makeinfo; ac_word=$2
679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
680 echo "configure:681: checking for $ac_word" >&5
681 if eval "test \"\${ac_cv_prog_MAKEINFO+set}\" = set"; then
682 echo $ac_n "(cached) $ac_c" 1>&6
684 if test -n "$MAKEINFO"; then
685 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
687 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
689 for ac_dir in $ac_dummy; do
690 test -z "$ac_dir" && ac_dir=.
691 if test -f $ac_dir/$ac_word; then
692 ac_cv_prog_MAKEINFO="makeinfo"
697 test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="no"
700 MAKEINFO="$ac_cv_prog_MAKEINFO"
701 if test -n "$MAKEINFO"; then
702 echo "$ac_t""$MAKEINFO" 1>&6
704 echo "$ac_t""no" 1>&6
710 echo $ac_n "checking if $EMACS is really XEmacs""... $ac_c" 1>&6
711 echo "configure:712: checking if $EMACS is really XEmacs" >&5
713 elisp="(if (string-match \"XEmacs\" emacs-version) \"yes\" \"no\") "
714 if test -z ""noecho""; then
715 echo $ac_n "checking for xemacsp""... $ac_c" 1>&6
716 echo "configure:717: checking for xemacsp" >&5
718 if eval "test \"\${EMACS_cv_SYS_xemacsp+set}\" = set"; then
719 echo $ac_n "(cached) $ac_c" 1>&6
723 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
724 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
725 retval=`cat ${OUTPUT}`
726 echo "=> ${retval}" >& 5 2>&1
728 EMACS_cv_SYS_xemacsp=$retval
732 xemacsp=${EMACS_cv_SYS_xemacsp}
733 if test -z ""noecho""; then
734 echo "$ac_t""$xemacsp" 1>&6
737 XEMACSP=${EMACS_cv_SYS_xemacsp}
739 if test "$XEMACSP" = "yes"; then
742 echo "$ac_t""$XEMACSP" 1>&6
745 if test "$prefix" = "NONE"; then
746 echo $ac_n "checking prefix for your Emacs""... $ac_c" 1>&6
747 echo "configure:748: checking prefix for your Emacs" >&5
749 elisp="(expand-file-name \"..\" invocation-directory)"
750 if test -z ""noecho""; then
751 echo $ac_n "checking for prefix""... $ac_c" 1>&6
752 echo "configure:753: checking for prefix" >&5
754 if eval "test \"\${EMACS_cv_SYS_prefix+set}\" = set"; then
755 echo $ac_n "(cached) $ac_c" 1>&6
759 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
760 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
761 retval=`cat ${OUTPUT}`
762 echo "=> ${retval}" >& 5 2>&1
764 EMACS_cv_SYS_prefix=$retval
768 prefix=${EMACS_cv_SYS_prefix}
769 if test -z ""noecho""; then
770 echo "$ac_t""$prefix" 1>&6
773 prefix=${EMACS_cv_SYS_prefix}
774 echo "$ac_t""$prefix" 1>&6
776 # Check whether --with-lispdir or --without-lispdir was given.
777 if test "${with_lispdir+set}" = set; then
778 withval="$with_lispdir"
782 echo $ac_n "checking where .elc files should go""... $ac_c" 1>&6
783 echo "configure:784: checking where .elc files should go" >&5
784 if test -z "$lispdir"; then
786 if test "x$theprefix" = "xNONE"; then
787 theprefix=$ac_default_prefix
789 lispdir="\$(datadir)/${EMACS_FLAVOR}/site-lisp"
790 for thedir in share lib; do
792 if test -d ${theprefix}/${thedir}/${EMACS_FLAVOR}/site-lisp; then
793 lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-lisp"
798 echo "$ac_t""$lispdir" 1>&6
803 echo $ac_n "checking for acceptable W3 version""... $ac_c" 1>&6
804 echo "configure:805: checking for acceptable W3 version" >&5
805 if eval "test \"\${EMACS_cv_ACCEPTABLE_W3+set}\" = set"; then
806 echo $ac_n "(cached) $ac_c" 1>&6
810 if test -z ""noecho""; then
811 echo $ac_n "checking for w3-form-encode-xwfu in w3_forms""... $ac_c" 1>&6
812 echo "configure:813: checking for w3-form-encode-xwfu in w3_forms" >&5
814 library=`echo w3_forms | tr _ -`
816 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\")))))"
817 if test -z ""noecho""; then
818 echo $ac_n "checking for w3_forms""... $ac_c" 1>&6
819 echo "configure:820: checking for w3_forms" >&5
821 if eval "test \"\${EMACS_cv_SYS_w3_forms+set}\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
826 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
827 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
828 retval=`cat ${OUTPUT}`
829 echo "=> ${retval}" >& 5 2>&1
831 EMACS_cv_SYS_w3_forms=$retval
835 w3_forms=${EMACS_cv_SYS_w3_forms}
836 if test -z ""noecho""; then
837 echo "$ac_t""$w3_forms" 1>&6
840 if test "${EMACS_cv_SYS_w3_forms}" = "nil"; then
841 EMACS_cv_SYS_w3_forms=no
843 if test "${EMACS_cv_SYS_w3_forms}" = "t"; then
844 EMACS_cv_SYS_w3_forms=yes
846 HAVE_w3_forms=${EMACS_cv_SYS_w3_forms}
848 if test -z ""noecho""; then
849 echo "$ac_t""$HAVE_w3_forms" 1>&6
852 if test "${HAVE_w3_forms}" = "yes"; then
853 EMACS_cv_ACCEPTABLE_W3=yes
855 EMACS_cv_ACCEPTABLE_W3=no
858 if test "${EMACS_cv_ACCEPTABLE_W3}" = "yes"; then
860 elisp="(file-name-directory (locate-library \"w3-forms\"))"
861 if test -z ""noecho""; then
862 echo $ac_n "checking for w3_dir""... $ac_c" 1>&6
863 echo "configure:864: checking for w3_dir" >&5
865 if eval "test \"\${EMACS_cv_SYS_w3_dir+set}\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
870 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
871 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
872 retval=`cat ${OUTPUT}`
873 echo "=> ${retval}" >& 5 2>&1
875 EMACS_cv_SYS_w3_dir=$retval
879 w3_dir=${EMACS_cv_SYS_w3_dir}
880 if test -z ""noecho""; then
881 echo "$ac_t""$w3_dir" 1>&6
884 EMACS_cv_ACCEPTABLE_W3=$EMACS_cv_SYS_w3_dir
889 # Check whether --with-w3 or --without-w3 was given.
890 if test "${with_w3+set}" = set; then
892 EMACS_cv_ACCEPTABLE_W3=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null`
895 W3=${EMACS_cv_ACCEPTABLE_W3}
897 echo "$ac_t"""${W3}"" 1>&6
900 ADDITIONAL_LOAD_PATH=
901 # Check whether --with-addpath or --without-addpath was given.
902 if test "${with_addpath+set}" = set; then
903 withval="$with_addpath"
904 ADDITIONAL_LOAD_PATH=${with_addpath}
910 # Check whether --with-packagedir or --without-packagedir was given.
911 if test "${with_packagedir+set}" = set; then
912 withval="$with_packagedir"
913 PACKAGEDIR=${with_packagedir}
919 cat > confcache <<\EOF
920 # This file is a shell script that caches the results of configure
921 # tests run on this system so they can be shared between configure
922 # scripts and configure runs. It is not useful on other systems.
923 # If it contains results you don't want to keep, you may remove or edit it.
925 # By default, configure uses ./config.cache as the cache file,
926 # creating it if it does not exist already. You can give configure
927 # the --cache-file=FILE option to use a different cache file; that is
928 # what configure does when it calls configure scripts in
929 # subdirectories, so they share the cache.
930 # Giving --cache-file=/dev/null disables caching, for debugging configure.
931 # config.status only pays attention to the cache file if you give it the
932 # --recheck option to rerun configure.
935 # The following way of writing the cache mishandles newlines in values,
936 # but we know of no workaround that is simple, portable, and efficient.
937 # So, don't put newlines in cache variables' values.
938 # Ultrix sh set writes to stderr and can't be redirected directly,
939 # and sets the high bit in the cache file unless we assign to the vars.
941 case `(ac_space=' '; set | grep ac_space) 2>&1` in
943 # `set' does not quote correctly, so add quotes (double-quote substitution
944 # turns \\\\ into \\, and sed turns \\ into \).
947 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
950 # `set' quotes correctly as required by POSIX, so do not add quotes.
951 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
954 if cmp -s $cache_file confcache; then
957 if test -w $cache_file; then
958 echo "updating cache $cache_file"
959 cat confcache > $cache_file
961 echo "not updating unwritable cache $cache_file"
966 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
968 test "x$prefix" = xNONE && prefix=$ac_default_prefix
969 # Let make expand exec_prefix.
970 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
972 # Any assignment to VPATH causes Sun make to only execute
973 # the first set of double-colon rules, so remove it if not needed.
974 # If there is a colon in the path, we need to keep it.
975 if test "x$srcdir" = x.; then
976 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
979 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
981 # Transform confdefs.h into DEFS.
982 # Protect against shell expansion while executing Makefile rules.
983 # Protect against Makefile macro expansion.
984 cat > conftest.defs <<\EOF
985 s%#define \([^ ][^ ]*\) *\(.*\)%-D\1=\2%g
986 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
991 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
995 # Without the "./", some shells look in PATH for config.status.
996 : ${CONFIG_STATUS=./config.status}
998 echo creating $CONFIG_STATUS
1000 cat > $CONFIG_STATUS <<EOF
1002 # Generated automatically by configure.
1003 # Run this file to recreate the current configuration.
1004 # This directory was configured as follows,
1005 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1007 # $0 $ac_configure_args
1009 # Compiler output produced by configure, useful for debugging
1010 # configure, is in ./config.log if it exists.
1012 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1015 case "\$ac_option" in
1016 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1017 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1018 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1019 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1020 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
1022 -help | --help | --hel | --he | --h)
1023 echo "\$ac_cs_usage"; exit 0 ;;
1024 *) echo "\$ac_cs_usage"; exit 1 ;;
1028 ac_given_srcdir=$srcdir
1029 ac_given_INSTALL="$INSTALL"
1031 trap 'rm -fr `echo "Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1033 cat >> $CONFIG_STATUS <<EOF
1035 # Protect against being on the right side of a sed subst in config.status.
1036 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1037 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1041 s%@CFLAGS@%$CFLAGS%g
1042 s%@CPPFLAGS@%$CPPFLAGS%g
1043 s%@CXXFLAGS@%$CXXFLAGS%g
1044 s%@FFLAGS@%$FFLAGS%g
1046 s%@LDFLAGS@%$LDFLAGS%g
1048 s%@exec_prefix@%$exec_prefix%g
1049 s%@prefix@%$prefix%g
1050 s%@program_transform_name@%$program_transform_name%g
1051 s%@bindir@%$bindir%g
1052 s%@sbindir@%$sbindir%g
1053 s%@libexecdir@%$libexecdir%g
1054 s%@datadir@%$datadir%g
1055 s%@sysconfdir@%$sysconfdir%g
1056 s%@sharedstatedir@%$sharedstatedir%g
1057 s%@localstatedir@%$localstatedir%g
1058 s%@libdir@%$libdir%g
1059 s%@includedir@%$includedir%g
1060 s%@oldincludedir@%$oldincludedir%g
1061 s%@infodir@%$infodir%g
1062 s%@mandir@%$mandir%g
1063 s%@SET_MAKE@%$SET_MAKE%g
1064 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1065 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1066 s%@INSTALL_DATA@%$INSTALL_DATA%g
1067 s%@XEMACS@%$XEMACS%g
1069 s%@MAKEINFO@%$MAKEINFO%g
1070 s%@EMACS_FLAVOR@%$EMACS_FLAVOR%g
1071 s%@lispdir@%$lispdir%g
1072 s%@HAVE_w3_forms@%$HAVE_w3_forms%g
1074 s%@ADDITIONAL_LOAD_PATH@%$ADDITIONAL_LOAD_PATH%g
1075 s%@PACKAGEDIR@%$PACKAGEDIR%g
1080 cat >> $CONFIG_STATUS <<\EOF
1082 # Split the substitutions into bite-sized pieces for seds with
1083 # small command number limits, like on Digital OSF/1 and HP-UX.
1084 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1085 ac_file=1 # Number of current file.
1086 ac_beg=1 # First line for current file.
1087 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1090 while $ac_more_lines; do
1091 if test $ac_beg -gt 1; then
1092 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1094 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1096 if test ! -s conftest.s$ac_file; then
1098 rm -f conftest.s$ac_file
1100 if test -z "$ac_sed_cmds"; then
1101 ac_sed_cmds="sed -f conftest.s$ac_file"
1103 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1105 ac_file=`expr $ac_file + 1`
1107 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1110 if test -z "$ac_sed_cmds"; then
1115 cat >> $CONFIG_STATUS <<EOF
1117 CONFIG_FILES=\${CONFIG_FILES-"Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile"}
1119 cat >> $CONFIG_STATUS <<\EOF
1120 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1121 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1123 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1124 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1125 *) ac_file_in="${ac_file}.in" ;;
1128 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1130 # Remove last slash and all that follows it. Not all systems have dirname.
1131 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1132 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1133 # The file is in a subdirectory.
1134 test ! -d "$ac_dir" && mkdir "$ac_dir"
1135 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1136 # A "../" for each directory in $ac_dir_suffix.
1137 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1139 ac_dir_suffix= ac_dots=
1142 case "$ac_given_srcdir" in
1144 if test -z "$ac_dots"; then top_srcdir=.
1145 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1146 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1148 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1149 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1152 case "$ac_given_INSTALL" in
1153 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1154 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1157 echo creating "$ac_file"
1159 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1161 *Makefile*) ac_comsub="1i\\
1162 # $configure_input" ;;
1166 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1168 s%@configure_input@%$configure_input%g
1169 s%@srcdir@%$srcdir%g
1170 s%@top_srcdir@%$top_srcdir%g
1171 s%@INSTALL@%$INSTALL%g
1172 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1177 cat >> $CONFIG_STATUS <<EOF
1180 cat >> $CONFIG_STATUS <<\EOF
1184 chmod +x $CONFIG_STATUS
1185 rm -fr confdefs* $ac_clean_files
1186 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1