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, xemacs...]"
17 --with-lispdir=DIR emacs lisp files go to DIR [guessed]"
19 --with-addpath=PATH search Emacs-Lisp libraries with PATH
20 use colons to separate directory names"
22 # Initialize some variables set by options.
23 # The variables have the same names as the options, with
24 # dashes changed to underlines.
26 cache_file=./config.cache
35 program_transform_name=s,x,x,
43 bindir='${exec_prefix}/bin'
44 sbindir='${exec_prefix}/sbin'
45 libexecdir='${exec_prefix}/libexec'
46 datadir='${prefix}/share'
47 sysconfdir='${prefix}/etc'
48 sharedstatedir='${prefix}/com'
49 localstatedir='${prefix}/var'
50 libdir='${exec_prefix}/lib'
51 includedir='${prefix}/include'
52 oldincludedir='/usr/include'
53 infodir='${prefix}/info'
54 mandir='${prefix}/man'
56 # Initialize some other variables.
59 SHELL=${CONFIG_SHELL-/bin/sh}
60 # Maximum number of lines to put in a shell here document.
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
75 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 # Accept the important Cygnus configure options, so we can diagnose typos.
83 -bindir | --bindir | --bindi | --bind | --bin | --bi)
85 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86 bindir="$ac_optarg" ;;
88 -build | --build | --buil | --bui | --bu)
90 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
93 -cache-file | --cache-file | --cache-fil | --cache-fi \
94 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98 cache_file="$ac_optarg" ;;
100 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104 datadir="$ac_optarg" ;;
106 -disable-* | --disable-*)
107 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
115 -enable-* | --enable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
128 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
129 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
130 | --exec | --exe | --ex)
131 ac_prev=exec_prefix ;;
132 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
133 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
134 | --exec=* | --exe=* | --ex=*)
135 exec_prefix="$ac_optarg" ;;
137 -gas | --gas | --ga | --g)
138 # Obsolete; use --with-gas.
141 -help | --help | --hel | --he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153 Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183 Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
196 -host | --host | --hos | --ho)
198 -host=* | --host=* | --hos=* | --ho=*)
201 -includedir | --includedir | --includedi | --included | --include \
202 | --includ | --inclu | --incl | --inc)
203 ac_prev=includedir ;;
204 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
205 | --includ=* | --inclu=* | --incl=* | --inc=*)
206 includedir="$ac_optarg" ;;
208 -infodir | --infodir | --infodi | --infod | --info | --inf)
210 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
211 infodir="$ac_optarg" ;;
213 -libdir | --libdir | --libdi | --libd)
215 -libdir=* | --libdir=* | --libdi=* | --libd=*)
216 libdir="$ac_optarg" ;;
218 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
219 | --libexe | --libex | --libe)
220 ac_prev=libexecdir ;;
221 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
222 | --libexe=* | --libex=* | --libe=*)
223 libexecdir="$ac_optarg" ;;
225 -localstatedir | --localstatedir | --localstatedi | --localstated \
226 | --localstate | --localstat | --localsta | --localst \
227 | --locals | --local | --loca | --loc | --lo)
228 ac_prev=localstatedir ;;
229 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
230 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
231 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
232 localstatedir="$ac_optarg" ;;
234 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
237 mandir="$ac_optarg" ;;
240 # Obsolete; use --without-fp.
243 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
247 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
248 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
251 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
252 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
253 | --oldin | --oldi | --old | --ol | --o)
254 ac_prev=oldincludedir ;;
255 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
256 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
257 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
258 oldincludedir="$ac_optarg" ;;
260 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
263 prefix="$ac_optarg" ;;
265 -program-prefix | --program-prefix | --program-prefi | --program-pref \
266 | --program-pre | --program-pr | --program-p)
267 ac_prev=program_prefix ;;
268 -program-prefix=* | --program-prefix=* | --program-prefi=* \
269 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
270 program_prefix="$ac_optarg" ;;
272 -program-suffix | --program-suffix | --program-suffi | --program-suff \
273 | --program-suf | --program-su | --program-s)
274 ac_prev=program_suffix ;;
275 -program-suffix=* | --program-suffix=* | --program-suffi=* \
276 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
277 program_suffix="$ac_optarg" ;;
279 -program-transform-name | --program-transform-name \
280 | --program-transform-nam | --program-transform-na \
281 | --program-transform-n | --program-transform- \
282 | --program-transform | --program-transfor \
283 | --program-transfo | --program-transf \
284 | --program-trans | --program-tran \
285 | --progr-tra | --program-tr | --program-t)
286 ac_prev=program_transform_name ;;
287 -program-transform-name=* | --program-transform-name=* \
288 | --program-transform-nam=* | --program-transform-na=* \
289 | --program-transform-n=* | --program-transform-=* \
290 | --program-transform=* | --program-transfor=* \
291 | --program-transfo=* | --program-transf=* \
292 | --program-trans=* | --program-tran=* \
293 | --progr-tra=* | --program-tr=* | --program-t=*)
294 program_transform_name="$ac_optarg" ;;
296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
297 | -silent | --silent | --silen | --sile | --sil)
300 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304 sbindir="$ac_optarg" ;;
306 -sharedstatedir | --sharedstatedir | --sharedstatedi \
307 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
308 | --sharedst | --shareds | --shared | --share | --shar \
310 ac_prev=sharedstatedir ;;
311 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
312 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
313 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315 sharedstatedir="$ac_optarg" ;;
317 -site | --site | --sit)
319 -site=* | --site=* | --sit=*)
322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325 srcdir="$ac_optarg" ;;
327 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
328 | --syscon | --sysco | --sysc | --sys | --sy)
329 ac_prev=sysconfdir ;;
330 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
331 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
332 sysconfdir="$ac_optarg" ;;
334 -target | --target | --targe | --targ | --tar | --ta | --t)
336 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337 target="$ac_optarg" ;;
339 -v | -verbose | --verbose | --verbos | --verbo | --verb)
342 -version | --version | --versio | --versi | --vers)
343 echo "configure generated by autoconf version 2.14.1"
347 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352 ac_package=`echo $ac_package| sed 's/-/_/g'`
357 eval "with_${ac_package}='$ac_optarg'" ;;
359 -without-* | --without-*)
360 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
369 # Obsolete; use --with-x.
372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
373 | --x-incl | --x-inc | --x-in | --x-i)
374 ac_prev=x_includes ;;
375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
377 x_includes="$ac_optarg" ;;
379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
381 ac_prev=x_libraries ;;
382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
384 x_libraries="$ac_optarg" ;;
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
393 if test "x$nonopt" != xNONE; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402 if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408 # File descriptor usage:
411 # 2 errors and warnings
412 # 3 some systems may open it to /dev/tty
413 # 4 used on the Kubota Titan
414 # 6 checking for... messages and results
415 # 5 compiler messages saved in config.log
416 if test "$silent" = yes; then
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
434 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
435 | --no-cr | --no-c) ;;
436 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
437 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
438 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
445 # Only set these to C if already set. These must not be set unconditionally
446 # because not all systems understand e.g. LANG=C (notably SCO).
447 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448 # Non-C LC_CTYPE values break the ctype check.
449 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
450 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
451 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
452 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
455 rm -rf conftest* confdefs.h
456 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
459 # A filename unique to this package, relative to the directory that
460 # configure is in, which we can look for to find out if srcdir is correct.
461 ac_unique_file=lisp/gnus.el
463 # Find the source files, if location was not specified.
464 if test -z "$srcdir"; then
465 ac_srcdir_defaulted=yes
466 # Try the directory containing this script, then its parent.
468 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
471 if test ! -r $srcdir/$ac_unique_file; then
475 ac_srcdir_defaulted=no
477 if test ! -r $srcdir/$ac_unique_file; then
478 if test "$ac_srcdir_defaulted" = yes; then
479 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
484 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486 # Prefer explicitly selected file to automatically selected ones.
487 if test -z "$CONFIG_SITE"; then
488 if test "x$prefix" != xNONE; then
489 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
494 for ac_site_file in $CONFIG_SITE; do
495 if test -r "$ac_site_file"; then
496 echo "loading site script $ac_site_file"
501 if test -r "$cache_file"; then
502 echo "loading cache $cache_file"
503 test -f "$cache_file" && . $cache_file
505 echo "creating cache $cache_file"
510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
511 ac_cpp='$CPP $CPPFLAGS'
512 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
513 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
514 cross_compiling=$ac_cv_prog_cc_cross
518 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
519 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
527 ac_n= ac_c='\c' ac_t=
531 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
532 echo "configure:533: checking whether ${MAKE-make} sets \${MAKE}" >&5
533 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
534 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
535 echo $ac_n "(cached) $ac_c" 1>&6
537 cat > conftestmake <<\EOF
539 @echo 'ac_maketemp="${MAKE}"'
541 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
542 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
543 if test -n "$ac_maketemp"; then
544 eval ac_cv_prog_make_${ac_make}_set=yes
546 eval ac_cv_prog_make_${ac_make}_set=no
550 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
551 echo "$ac_t""yes" 1>&6
554 echo "$ac_t""no" 1>&6
555 SET_MAKE="MAKE=${MAKE-make}"
559 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
560 if test -f $ac_dir/install-sh; then
562 ac_install_sh="$ac_aux_dir/install-sh -c"
564 elif test -f $ac_dir/install.sh; then
566 ac_install_sh="$ac_aux_dir/install.sh -c"
570 if test -z "$ac_aux_dir"; then
571 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
573 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
574 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
575 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
577 # Find a good install program. We prefer a C program (faster),
578 # so one script is as good as another. But avoid the broken or
579 # incompatible versions:
580 # SysV /etc/install, /usr/sbin/install
581 # SunOS /usr/etc/install
584 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
585 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
586 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
587 # ./install, which can be erroneously created by make from ./install.sh.
588 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
589 echo "configure:590: checking for a BSD compatible install" >&5
590 if test -z "$INSTALL"; then
591 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
592 echo $ac_n "(cached) $ac_c" 1>&6
594 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
595 for ac_dir in $PATH; do
596 # Account for people who put trailing slashes in PATH elements.
598 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
600 # OSF1 and SCO ODT 3.0 have their own names for install.
601 # Don't use installbsd from OSF since it installs stuff as root
603 for ac_prog in ginstall scoinst install; do
604 if test -f $ac_dir/$ac_prog; then
605 if test $ac_prog = install &&
606 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
607 # AIX install. It has an incompatible calling convention.
609 elif test $ac_prog = install &&
610 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
611 # program-specific install script used by HP pwplus--don't use.
614 ac_cv_path_install="$ac_dir/$ac_prog -c"
625 if test "${ac_cv_path_install+set}" = set; then
626 INSTALL="$ac_cv_path_install"
628 # As a last resort, use the slow shell script. We don't cache a
629 # path for INSTALL within a source directory, because that will
630 # break other packages using the cache if that directory is
631 # removed, or if the path is relative.
632 INSTALL="$ac_install_sh"
635 echo "$ac_t""$INSTALL" 1>&6
637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
638 # It thinks the first close brace ends the variable substitution.
639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
645 # Check whether --with-emacs or --without-emacs was given.
646 if test "${with_emacs+set}" = set; then
647 withval="$with_emacs"
650 no) { echo "configure: error: emacs is not available" 1>&2; exit 1; } ;;
651 *) EMACS=${withval} ;;
657 if test "x$EMACS" = "xt" -o "x$EMACS" = x; then
658 for ac_prog in emacs xemacs mule
660 # Extract the first word of "$ac_prog", so it can be a program name with args.
661 set dummy $ac_prog; ac_word=$2
662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
663 echo "configure:664: checking for $ac_word" >&5
664 if eval "test \"\${ac_cv_path_EMACS+set}\" = set"; then
665 echo $ac_n "(cached) $ac_c" 1>&6
669 ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
672 ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.
675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
677 for ac_dir in $ac_dummy; do
678 test -z "$ac_dir" && ac_dir=.
679 if test -f $ac_dir/$ac_word; then
680 ac_cv_path_EMACS="$ac_dir/$ac_word"
688 EMACS="$ac_cv_path_EMACS"
689 if test -n "$EMACS"; then
690 echo "$ac_t""$EMACS" 1>&6
692 echo "$ac_t""no" 1>&6
695 test -n "$EMACS" && break
697 test -n "$EMACS" || EMACS="no"
699 if test $EMACS = no; then
700 { echo "configure: error: you should install Emacs first" 1>&2; exit 1; }
703 echo $ac_n "checking where emacs files are in""... $ac_c" 1>&6
704 echo "configure:705: checking where emacs files are in" >&5
705 EMACS_BASENAME="`echo x$EMACS | sed -e 's/x//' -e 's/^.*\///'`"
706 if test "x$emacsdir" = x; then
707 if test "x$prefix" = "xNONE"; then
708 prefix=$ac_default_prefix
710 emacsdir="\$(datadir)/emacs"
711 case "$EMACS_BASENAME" in
713 if test -d $prefix/lib/emacs; then
714 emacsdir="$prefix/lib/emacs"
716 if test -d $prefix/share/emacs; then
717 emacsdir="$prefix/share/emacs"
721 if test -d $prefix/lib/xemacs; then
722 emacsdir="$prefix/lib/xemacs"
724 if test -d $prefix/share/xemacs; then
725 emacsdir="$prefix/share/xemacs"
729 if test -d $prefix/lib/emacs; then
730 emacsdir="$prefix/lib/emacs"
732 if test -d $prefix/share/emacs; then
733 emacsdir="$prefix/share/emacs"
735 if test -d $prefix/lib/mule; then
736 emacsdir="$prefix/lib/mule"
738 if test -d $prefix/share/mule; then
739 emacsdir="$prefix/share/mule"
744 echo "$ac_t""$emacsdir" 1>&6
746 # Check whether --with-lispdir or --without-lispdir was given.
747 if test "${with_lispdir+set}" = set; then
748 withval="$with_lispdir"
751 no) { echo "configure: error: lispdir is not available" 1>&2; exit 1; } ;;
752 *) lispdir=${withval} ;;
758 echo $ac_n "checking where .elc files should go""... $ac_c" 1>&6
759 echo "configure:760: checking where .elc files should go" >&5
760 if test "x$lispdir" = x; then
761 lispdir="$emacsdir/site-lisp"
762 if test -d $emacsdir/lisp; then
763 lispdir="$emacsdir/lisp"
765 case "$EMACS_BASENAME" in
767 lispdir="$lispdir/lookup"
771 echo "$ac_t""$lispdir" 1>&6
773 # Extract the first word of "makeinfo", so it can be a program name with args.
774 set dummy makeinfo; ac_word=$2
775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
776 echo "configure:777: checking for $ac_word" >&5
777 if eval "test \"\${ac_cv_path_MAKEINFO+set}\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
782 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
785 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a dos path.
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_path_MAKEINFO="$ac_dir/$ac_word"
798 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
802 MAKEINFO="$ac_cv_path_MAKEINFO"
803 if test -n "$MAKEINFO"; then
804 echo "$ac_t""$MAKEINFO" 1>&6
806 echo "$ac_t""no" 1>&6
810 ADDITIONAL_LOAD_PATH="NONE"
811 # Check whether --with-addpath or --without-addpath was given.
812 if test "${with_addpath+set}" = set; then
813 withval="$with_addpath"
814 ADDITIONAL_LOAD_PATH=$with_addpath
820 cat > confcache <<\EOF
821 # This file is a shell script that caches the results of configure
822 # tests run on this system so they can be shared between configure
823 # scripts and configure runs. It is not useful on other systems.
824 # If it contains results you don't want to keep, you may remove or edit it.
826 # By default, configure uses ./config.cache as the cache file,
827 # creating it if it does not exist already. You can give configure
828 # the --cache-file=FILE option to use a different cache file; that is
829 # what configure does when it calls configure scripts in
830 # subdirectories, so they share the cache.
831 # Giving --cache-file=/dev/null disables caching, for debugging configure.
832 # config.status only pays attention to the cache file if you give it the
833 # --recheck option to rerun configure.
836 # The following way of writing the cache mishandles newlines in values,
837 # but we know of no workaround that is simple, portable, and efficient.
838 # So, don't put newlines in cache variables' values.
839 # Ultrix sh set writes to stderr and can't be redirected directly,
840 # and sets the high bit in the cache file unless we assign to the vars.
842 case `(ac_space=' '; set | grep ac_space) 2>&1` in
844 # `set' does not quote correctly, so add quotes (double-quote substitution
845 # turns \\\\ into \\, and sed turns \\ into \).
848 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
851 # `set' quotes correctly as required by POSIX, so do not add quotes.
852 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
855 if cmp -s $cache_file confcache; then
858 if test -w $cache_file; then
859 echo "updating cache $cache_file"
860 cat confcache > $cache_file
862 echo "not updating unwritable cache $cache_file"
867 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
869 test "x$prefix" = xNONE && prefix=$ac_default_prefix
870 # Let make expand exec_prefix.
871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
873 # Any assignment to VPATH causes Sun make to only execute
874 # the first set of double-colon rules, so remove it if not needed.
875 # If there is a colon in the path, we need to keep it.
876 if test "x$srcdir" = x.; then
877 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
880 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
882 # Transform confdefs.h into DEFS.
883 # Protect against shell expansion while executing Makefile rules.
884 # Protect against Makefile macro expansion.
885 cat > conftest.defs <<\EOF
886 s%#define \([^ ][^ ]*\) *\(.*\)%-D\1=\2%g
887 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
892 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
896 # Without the "./", some shells look in PATH for config.status.
897 : ${CONFIG_STATUS=./config.status}
899 echo creating $CONFIG_STATUS
901 cat > $CONFIG_STATUS <<EOF
903 # Generated automatically by configure.
904 # Run this file to recreate the current configuration.
905 # This directory was configured as follows,
906 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
908 # $0 $ac_configure_args
910 # Compiler output produced by configure, useful for debugging
911 # configure, is in ./config.log if it exists.
913 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
916 case "\$ac_option" in
917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
918 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
919 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
920 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
921 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
923 -help | --help | --hel | --he | --h)
924 echo "\$ac_cs_usage"; exit 0 ;;
925 *) echo "\$ac_cs_usage"; exit 1 ;;
929 ac_given_srcdir=$srcdir
930 ac_given_INSTALL="$INSTALL"
932 trap 'rm -fr `echo "Makefile lisp/Makefile lisp/paths.el texi/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
934 cat >> $CONFIG_STATUS <<EOF
936 # Protect against being on the right side of a sed subst in config.status.
937 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
938 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
943 s%@CPPFLAGS@%$CPPFLAGS%g
944 s%@CXXFLAGS@%$CXXFLAGS%g
947 s%@LDFLAGS@%$LDFLAGS%g
949 s%@exec_prefix@%$exec_prefix%g
951 s%@program_transform_name@%$program_transform_name%g
953 s%@sbindir@%$sbindir%g
954 s%@libexecdir@%$libexecdir%g
955 s%@datadir@%$datadir%g
956 s%@sysconfdir@%$sysconfdir%g
957 s%@sharedstatedir@%$sharedstatedir%g
958 s%@localstatedir@%$localstatedir%g
960 s%@includedir@%$includedir%g
961 s%@oldincludedir@%$oldincludedir%g
962 s%@infodir@%$infodir%g
964 s%@SET_MAKE@%$SET_MAKE%g
965 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
966 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
967 s%@INSTALL_DATA@%$INSTALL_DATA%g
969 s%@emacsdir@%$emacsdir%g
970 s%@lispdir@%$lispdir%g
971 s%@MAKEINFO@%$MAKEINFO%g
972 s%@ADDITIONAL_LOAD_PATH@%$ADDITIONAL_LOAD_PATH%g
977 cat >> $CONFIG_STATUS <<\EOF
979 # Split the substitutions into bite-sized pieces for seds with
980 # small command number limits, like on Digital OSF/1 and HP-UX.
981 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
982 ac_file=1 # Number of current file.
983 ac_beg=1 # First line for current file.
984 ac_end=$ac_max_sed_cmds # Line after last line for current file.
987 while $ac_more_lines; do
988 if test $ac_beg -gt 1; then
989 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
991 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
993 if test ! -s conftest.s$ac_file; then
995 rm -f conftest.s$ac_file
997 if test -z "$ac_sed_cmds"; then
998 ac_sed_cmds="sed -f conftest.s$ac_file"
1000 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1002 ac_file=`expr $ac_file + 1`
1004 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1007 if test -z "$ac_sed_cmds"; then
1012 cat >> $CONFIG_STATUS <<EOF
1014 CONFIG_FILES=\${CONFIG_FILES-"Makefile lisp/Makefile lisp/paths.el texi/Makefile"}
1016 cat >> $CONFIG_STATUS <<\EOF
1017 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1018 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1020 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1021 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1022 *) ac_file_in="${ac_file}.in" ;;
1025 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1027 # Remove last slash and all that follows it. Not all systems have dirname.
1028 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1029 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1030 # The file is in a subdirectory.
1031 test ! -d "$ac_dir" && mkdir "$ac_dir"
1032 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1033 # A "../" for each directory in $ac_dir_suffix.
1034 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1036 ac_dir_suffix= ac_dots=
1039 case "$ac_given_srcdir" in
1041 if test -z "$ac_dots"; then top_srcdir=.
1042 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1043 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1045 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1046 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1049 case "$ac_given_INSTALL" in
1050 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1051 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1054 echo creating "$ac_file"
1056 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1058 *Makefile*) ac_comsub="1i\\
1059 # $configure_input" ;;
1063 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1065 s%@configure_input@%$configure_input%g
1066 s%@srcdir@%$srcdir%g
1067 s%@top_srcdir@%$top_srcdir%g
1068 s%@INSTALL@%$INSTALL%g
1069 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1074 cat >> $CONFIG_STATUS <<EOF
1077 cat >> $CONFIG_STATUS <<\EOF
1081 chmod +x $CONFIG_STATUS
1082 rm -fr confdefs* $ac_clean_files
1083 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1