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-packagedir=DIR package DIR for XEmacs"
24 --with-addpath=PATH search Emacs-Lisp libraries with PATH
25 use colons to separate directory names"
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
31 cache_file=./config.cache
40 program_transform_name=s,x,x,
48 bindir='${exec_prefix}/bin'
49 sbindir='${exec_prefix}/sbin'
50 libexecdir='${exec_prefix}/libexec'
51 datadir='${prefix}/share'
52 sysconfdir='${prefix}/etc'
53 sharedstatedir='${prefix}/com'
54 localstatedir='${prefix}/var'
55 libdir='${exec_prefix}/lib'
56 includedir='${prefix}/include'
57 oldincludedir='/usr/include'
58 infodir='${prefix}/info'
59 mandir='${prefix}/man'
61 # Initialize some other variables.
64 SHELL=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
72 # If the previous option needs an argument, assign it.
73 if test -n "$ac_prev"; then
74 eval "$ac_prev=\$ac_option"
80 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
84 # Accept the important Cygnus configure options, so we can diagnose typos.
88 -bindir | --bindir | --bindi | --bind | --bin | --bi)
90 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91 bindir="$ac_optarg" ;;
93 -build | --build | --buil | --bui | --bu)
95 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
98 -cache-file | --cache-file | --cache-fil | --cache-fi \
99 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100 ac_prev=cache_file ;;
101 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103 cache_file="$ac_optarg" ;;
105 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109 datadir="$ac_optarg" ;;
111 -disable-* | --disable-*)
112 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113 # Reject names that are not valid shell variable names.
114 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118 eval "enable_${ac_feature}=no" ;;
120 -enable-* | --enable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}='$ac_optarg'" ;;
133 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135 | --exec | --exe | --ex)
136 ac_prev=exec_prefix ;;
137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139 | --exec=* | --exe=* | --ex=*)
140 exec_prefix="$ac_optarg" ;;
142 -gas | --gas | --ga | --g)
143 # Obsolete; use --with-gas.
146 -help | --help | --hel | --he)
147 # Omit some internal or obsolete options to make the list less imposing.
148 # This message is too long to be a string in the A/UX 3.1 sh.
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
153 --cache-file=FILE cache test results in FILE
154 --help print this message
155 --no-create do not create output files
156 --quiet, --silent do not print \`checking...' messages
157 --version print the version of autoconf that created configure
158 Directory and file names:
159 --prefix=PREFIX install architecture-independent files in PREFIX
161 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
163 --bindir=DIR user executables in DIR [EPREFIX/bin]
164 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166 --datadir=DIR read-only architecture-independent data in DIR
168 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169 --sharedstatedir=DIR modifiable architecture-independent data in DIR
171 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
173 --includedir=DIR C header files in DIR [PREFIX/include]
174 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175 --infodir=DIR info documentation in DIR [PREFIX/info]
176 --mandir=DIR man documentation in DIR [PREFIX/man]
177 --srcdir=DIR find the sources in DIR [configure dir or ..]
178 --program-prefix=PREFIX prepend PREFIX to installed program names
179 --program-suffix=SUFFIX append SUFFIX to installed program names
180 --program-transform-name=PROGRAM
181 run sed PROGRAM on installed program names
185 --build=BUILD configure for building on BUILD [BUILD=HOST]
186 --host=HOST configure for HOST [guessed]
187 --target=TARGET configure for TARGET [TARGET=HOST]
188 Features and packages:
189 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193 --x-includes=DIR X include files are in DIR
194 --x-libraries=DIR X library files are in DIR
196 if test -n "$ac_help"; then
197 echo "--enable and --with options recognized:$ac_help"
201 -host | --host | --hos | --ho)
203 -host=* | --host=* | --hos=* | --ho=*)
206 -includedir | --includedir | --includedi | --included | --include \
207 | --includ | --inclu | --incl | --inc)
208 ac_prev=includedir ;;
209 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210 | --includ=* | --inclu=* | --incl=* | --inc=*)
211 includedir="$ac_optarg" ;;
213 -infodir | --infodir | --infodi | --infod | --info | --inf)
215 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216 infodir="$ac_optarg" ;;
218 -libdir | --libdir | --libdi | --libd)
220 -libdir=* | --libdir=* | --libdi=* | --libd=*)
221 libdir="$ac_optarg" ;;
223 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224 | --libexe | --libex | --libe)
225 ac_prev=libexecdir ;;
226 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227 | --libexe=* | --libex=* | --libe=*)
228 libexecdir="$ac_optarg" ;;
230 -localstatedir | --localstatedir | --localstatedi | --localstated \
231 | --localstate | --localstat | --localsta | --localst \
232 | --locals | --local | --loca | --loc | --lo)
233 ac_prev=localstatedir ;;
234 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237 localstatedir="$ac_optarg" ;;
239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242 mandir="$ac_optarg" ;;
245 # Obsolete; use --without-fp.
248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258 | --oldin | --oldi | --old | --ol | --o)
259 ac_prev=oldincludedir ;;
260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263 oldincludedir="$ac_optarg" ;;
265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268 prefix="$ac_optarg" ;;
270 -program-prefix | --program-prefix | --program-prefi | --program-pref \
271 | --program-pre | --program-pr | --program-p)
272 ac_prev=program_prefix ;;
273 -program-prefix=* | --program-prefix=* | --program-prefi=* \
274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275 program_prefix="$ac_optarg" ;;
277 -program-suffix | --program-suffix | --program-suffi | --program-suff \
278 | --program-suf | --program-su | --program-s)
279 ac_prev=program_suffix ;;
280 -program-suffix=* | --program-suffix=* | --program-suffi=* \
281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282 program_suffix="$ac_optarg" ;;
284 -program-transform-name | --program-transform-name \
285 | --program-transform-nam | --program-transform-na \
286 | --program-transform-n | --program-transform- \
287 | --program-transform | --program-transfor \
288 | --program-transfo | --program-transf \
289 | --program-trans | --program-tran \
290 | --progr-tra | --program-tr | --program-t)
291 ac_prev=program_transform_name ;;
292 -program-transform-name=* | --program-transform-name=* \
293 | --program-transform-nam=* | --program-transform-na=* \
294 | --program-transform-n=* | --program-transform-=* \
295 | --program-transform=* | --program-transfor=* \
296 | --program-transfo=* | --program-transf=* \
297 | --program-trans=* | --program-tran=* \
298 | --progr-tra=* | --program-tr=* | --program-t=*)
299 program_transform_name="$ac_optarg" ;;
301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302 | -silent | --silent | --silen | --sile | --sil)
305 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309 sbindir="$ac_optarg" ;;
311 -sharedstatedir | --sharedstatedir | --sharedstatedi \
312 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313 | --sharedst | --shareds | --shared | --share | --shar \
315 ac_prev=sharedstatedir ;;
316 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320 sharedstatedir="$ac_optarg" ;;
322 -site | --site | --sit)
324 -site=* | --site=* | --sit=*)
327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330 srcdir="$ac_optarg" ;;
332 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333 | --syscon | --sysco | --sysc | --sys | --sy)
334 ac_prev=sysconfdir ;;
335 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337 sysconfdir="$ac_optarg" ;;
339 -target | --target | --targe | --targ | --tar | --ta | --t)
341 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342 target="$ac_optarg" ;;
344 -v | -verbose | --verbose | --verbos | --verbo | --verb)
347 -version | --version | --versio | --versi | --vers)
348 echo "configure generated by autoconf version 2.14.1"
352 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353 # Reject names that are not valid shell variable names.
354 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 ac_package=`echo $ac_package| sed 's/-/_/g'`
362 eval "with_${ac_package}='$ac_optarg'" ;;
364 -without-* | --without-*)
365 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}=no" ;;
374 # Obsolete; use --with-x.
377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378 | --x-incl | --x-inc | --x-in | --x-i)
379 ac_prev=x_includes ;;
380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382 x_includes="$ac_optarg" ;;
384 -x-libraries | --x-libraries | --x-librarie | --x-librari \
385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386 ac_prev=x_libraries ;;
387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389 x_libraries="$ac_optarg" ;;
391 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
395 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396 echo "configure: warning: $ac_option: invalid host type" 1>&2
398 if test "x$nonopt" != xNONE; then
399 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
407 if test -n "$ac_prev"; then
408 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413 # File descriptor usage:
416 # 2 errors and warnings
417 # 3 some systems may open it to /dev/tty
418 # 4 used on the Kubota Titan
419 # 6 checking for... messages and results
420 # 5 compiler messages saved in config.log
421 if test "$silent" = yes; then
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
439 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440 | --no-cr | --no-c) ;;
441 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
450 # Only set these to C if already set. These must not be set unconditionally
451 # because not all systems understand e.g. LANG=C (notably SCO).
452 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453 # Non-C LC_CTYPE values break the ctype check.
454 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
455 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
459 # confdefs.h avoids OS command line length limits that DEFS can exceed.
460 rm -rf conftest* confdefs.h
461 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
464 # A filename unique to this package, relative to the directory that
465 # configure is in, which we can look for to find out if srcdir is correct.
466 ac_unique_file=lisp/gnus.el
468 # Find the source files, if location was not specified.
469 if test -z "$srcdir"; then
470 ac_srcdir_defaulted=yes
471 # Try the directory containing this script, then its parent.
473 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476 if test ! -r $srcdir/$ac_unique_file; then
480 ac_srcdir_defaulted=no
482 if test ! -r $srcdir/$ac_unique_file; then
483 if test "$ac_srcdir_defaulted" = yes; then
484 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
489 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491 # Prefer explicitly selected file to automatically selected ones.
492 if test -z "$CONFIG_SITE"; then
493 if test "x$prefix" != xNONE; then
494 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
499 for ac_site_file in $CONFIG_SITE; do
500 if test -r "$ac_site_file"; then
501 echo "loading site script $ac_site_file"
506 if test -r "$cache_file"; then
507 echo "loading cache $cache_file"
508 test -f "$cache_file" && . $cache_file
510 echo "creating cache $cache_file"
515 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516 ac_cpp='$CPP $CPPFLAGS'
517 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519 cross_compiling=$ac_cv_prog_cc_cross
523 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
525 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
532 ac_n= ac_c='\c' ac_t=
536 GNUS_PRODUCT_NAME=t-gnus
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'
651 # Extract the first word of "makeinfo", so it can be a program name with args.
652 set dummy makeinfo; ac_word=$2
653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
654 echo "configure:655: checking for $ac_word" >&5
655 if eval "test \"\${ac_cv_prog_MAKEINFO+set}\" = set"; then
656 echo $ac_n "(cached) $ac_c" 1>&6
658 if test -n "$MAKEINFO"; then
659 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
663 for ac_dir in $ac_dummy; do
664 test -z "$ac_dir" && ac_dir=.
665 if test -f $ac_dir/$ac_word; then
666 ac_cv_prog_MAKEINFO="makeinfo"
671 test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="no"
674 MAKEINFO="$ac_cv_prog_MAKEINFO"
675 if test -n "$MAKEINFO"; then
676 echo "$ac_t""$MAKEINFO" 1>&6
678 echo "$ac_t""no" 1>&6
682 test x$EMACS = xt && EMACS=
684 # Check whether --with-emacs or --without-emacs was given.
685 if test "${with_emacs+set}" = set; then
686 withval="$with_emacs"
687 if test x$withval = xyes -o x$withval = x; then
688 for ac_prog in emacs xemacs mule
690 # Extract the first word of "$ac_prog", so it can be a program name with args.
691 set dummy $ac_prog; ac_word=$2
692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
693 echo "configure:694: checking for $ac_word" >&5
694 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
697 if test -n "$EMACS"; then
698 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
702 for ac_dir in $ac_dummy; do
703 test -z "$ac_dir" && ac_dir=.
704 if test -f $ac_dir/$ac_word; then
705 ac_cv_prog_EMACS="$ac_prog"
712 EMACS="$ac_cv_prog_EMACS"
713 if test -n "$EMACS"; then
714 echo "$ac_t""$EMACS" 1>&6
716 echo "$ac_t""no" 1>&6
719 test -n "$EMACS" && break
721 test -n "$EMACS" || EMACS="emacs"
724 # Extract the first word of "$withval", so it can be a program name with args.
725 set dummy $withval; ac_word=$2
726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
727 echo "configure:728: checking for $ac_word" >&5
728 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 if test -n "$EMACS"; then
732 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
734 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
736 for ac_dir in $ac_dummy; do
737 test -z "$ac_dir" && ac_dir=.
738 if test -f $ac_dir/$ac_word; then
739 ac_cv_prog_EMACS="$withval"
744 test -z "$ac_cv_prog_EMACS" && ac_cv_prog_EMACS="emacs"
747 EMACS="$ac_cv_prog_EMACS"
748 if test -n "$EMACS"; then
749 echo "$ac_t""$EMACS" 1>&6
751 echo "$ac_t""no" 1>&6
757 # Check whether --with-xemacs or --without-xemacs was given.
758 if test "${with_xemacs+set}" = set; then
759 withval="$with_xemacs"
760 if test x$withval = xyes -o x$withval = x; then
761 # Extract the first word of "xemacs", so it can be a program name with args.
762 set dummy xemacs; ac_word=$2
763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
764 echo "configure:765: checking for $ac_word" >&5
765 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
766 echo $ac_n "(cached) $ac_c" 1>&6
768 if test -n "$XEMACS"; then
769 ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
773 for ac_dir in $ac_dummy; do
774 test -z "$ac_dir" && ac_dir=.
775 if test -f $ac_dir/$ac_word; then
776 ac_cv_prog_XEMACS="xemacs"
781 test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
784 XEMACS="$ac_cv_prog_XEMACS"
785 if test -n "$XEMACS"; then
786 echo "$ac_t""$XEMACS" 1>&6
788 echo "$ac_t""no" 1>&6
792 # Extract the first word of "$withval", so it can be a program name with args.
793 set dummy $withval; ac_word=$2
794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
795 echo "configure:796: checking for $ac_word" >&5
796 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
797 echo $ac_n "(cached) $ac_c" 1>&6
799 if test -n "$XEMACS"; then
800 ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
802 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
804 for ac_dir in $ac_dummy; do
805 test -z "$ac_dir" && ac_dir=.
806 if test -f $ac_dir/$ac_word; then
807 ac_cv_prog_XEMACS="$withval"
812 test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
815 XEMACS="$ac_cv_prog_XEMACS"
816 if test -n "$XEMACS"; then
817 echo "$ac_t""$XEMACS" 1>&6
819 echo "$ac_t""no" 1>&6
827 for ac_prog in emacs xemacs mule
829 # Extract the first word of "$ac_prog", so it can be a program name with args.
830 set dummy $ac_prog; ac_word=$2
831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
832 echo "configure:833: checking for $ac_word" >&5
833 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 if test -n "$EMACS"; then
837 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
841 for ac_dir in $ac_dummy; do
842 test -z "$ac_dir" && ac_dir=.
843 if test -f $ac_dir/$ac_word; then
844 ac_cv_prog_EMACS="$ac_prog"
851 EMACS="$ac_cv_prog_EMACS"
852 if test -n "$EMACS"; then
853 echo "$ac_t""$EMACS" 1>&6
855 echo "$ac_t""no" 1>&6
858 test -n "$EMACS" && break
860 test -n "$EMACS" || EMACS="emacs"
866 echo $ac_n "checking where lisp files should go""... $ac_c" 1>&6
867 echo "configure:868: checking where lisp files should go" >&5
868 # Check whether --with-lispdir or --without-lispdir was given.
869 if test "${with_lispdir+set}" = set; then
870 withval="$with_lispdir"
873 emacsdir=$datadir/emacs
874 test x$prefix = xNONE && prefix=$ac_default_prefix
875 case `echo x$EMACS | sed -e 's/x//' -e 's/^.*\///'` in
877 if test -d $prefix/share/emacs; then
878 emacsdir=$prefix/share/emacs
879 elif test -d $prefix/lib/emacs; then
880 emacsdir=$prefix/lib/emacs
883 if test -d $prefix/lib/xemacs; then
884 emacsdir=$prefix/lib/xemacs
885 elif test -d $prefix/share/xemacs; then
886 emacsdir=$prefix/share/xemacs
889 if test -d $prefix/share/mule; then
890 emacsdir=$prefix/share/mule
891 elif test -d $prefix/lib/mule; then
892 emacsdir=$prefix/lib/mule
893 elif test -d $prefix/share/emacs; then
894 emacsdir=$prefix/share/emacs
895 elif test -d $prefix/lib/emacs; then
896 emacsdir=$prefix/lib/emacs
899 lispdir=$emacsdir/site-lisp/$GNUS_PRODUCT_NAME
902 echo "$ac_t""$lispdir
903 (it will be ignored when \"make install-package[-ja]\" is done)" 1>&6
905 # Check whether --with-packagedir or --without-packagedir was given.
906 if test "${with_packagedir+set}" = set; then
907 withval="$with_packagedir"
908 if test x$withval != xyes -a x$withval != x; then
909 echo $ac_n "checking where the package should go""... $ac_c" 1>&6
910 echo "configure:911: checking where the package should go" >&5
912 echo "$ac_t""$PACKAGEDIR" 1>&6
919 # Check whether --with-addpath or --without-addpath was given.
920 if test "${with_addpath+set}" = set; then
921 withval="$with_addpath"
922 if test x$withval != xyes -a x$withval != x; then
923 echo $ac_n "checking where to find the additional elisp libraries""... $ac_c" 1>&6
924 echo "configure:925: checking where to find the additional elisp libraries" >&5
925 ADDITIONAL_LOAD_PATH=$withval
926 echo "$ac_t""$ADDITIONAL_LOAD_PATH" 1>&6
929 ADDITIONAL_LOAD_PATH=
934 cat > confcache <<\EOF
935 # This file is a shell script that caches the results of configure
936 # tests run on this system so they can be shared between configure
937 # scripts and configure runs. It is not useful on other systems.
938 # If it contains results you don't want to keep, you may remove or edit it.
940 # By default, configure uses ./config.cache as the cache file,
941 # creating it if it does not exist already. You can give configure
942 # the --cache-file=FILE option to use a different cache file; that is
943 # what configure does when it calls configure scripts in
944 # subdirectories, so they share the cache.
945 # Giving --cache-file=/dev/null disables caching, for debugging configure.
946 # config.status only pays attention to the cache file if you give it the
947 # --recheck option to rerun configure.
950 # The following way of writing the cache mishandles newlines in values,
951 # but we know of no workaround that is simple, portable, and efficient.
952 # So, don't put newlines in cache variables' values.
953 # Ultrix sh set writes to stderr and can't be redirected directly,
954 # and sets the high bit in the cache file unless we assign to the vars.
956 case `(ac_space=' '; set | grep ac_space) 2>&1` in
958 # `set' does not quote correctly, so add quotes (double-quote substitution
959 # turns \\\\ into \\, and sed turns \\ into \).
962 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
965 # `set' quotes correctly as required by POSIX, so do not add quotes.
966 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
969 if cmp -s $cache_file confcache; then
972 if test -w $cache_file; then
973 echo "updating cache $cache_file"
974 cat confcache > $cache_file
976 echo "not updating unwritable cache $cache_file"
981 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
983 test "x$prefix" = xNONE && prefix=$ac_default_prefix
984 # Let make expand exec_prefix.
985 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
987 # Any assignment to VPATH causes Sun make to only execute
988 # the first set of double-colon rules, so remove it if not needed.
989 # If there is a colon in the path, we need to keep it.
990 if test "x$srcdir" = x.; then
991 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
994 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
996 # Transform confdefs.h into DEFS.
997 # Protect against shell expansion while executing Makefile rules.
998 # Protect against Makefile macro expansion.
999 cat > conftest.defs <<\EOF
1000 s%#define \([^ ][^ ]*\) *\(.*\)%-D\1=\2%g
1001 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1006 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1010 # Without the "./", some shells look in PATH for config.status.
1011 : ${CONFIG_STATUS=./config.status}
1013 echo creating $CONFIG_STATUS
1014 rm -f $CONFIG_STATUS
1015 cat > $CONFIG_STATUS <<EOF
1017 # Generated automatically by configure.
1018 # Run this file to recreate the current configuration.
1019 # This directory was configured as follows,
1020 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1022 # $0 $ac_configure_args
1024 # Compiler output produced by configure, useful for debugging
1025 # configure, is in ./config.log if it exists.
1027 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1030 case "\$ac_option" in
1031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1032 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1033 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1034 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1035 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
1037 -help | --help | --hel | --he | --h)
1038 echo "\$ac_cs_usage"; exit 0 ;;
1039 *) echo "\$ac_cs_usage"; exit 1 ;;
1043 ac_given_srcdir=$srcdir
1044 ac_given_INSTALL="$INSTALL"
1046 trap 'rm -fr `echo "Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1048 cat >> $CONFIG_STATUS <<EOF
1050 # Protect against being on the right side of a sed subst in config.status.
1051 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1052 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1056 s%@CFLAGS@%$CFLAGS%g
1057 s%@CPPFLAGS@%$CPPFLAGS%g
1058 s%@CXXFLAGS@%$CXXFLAGS%g
1059 s%@FFLAGS@%$FFLAGS%g
1061 s%@LDFLAGS@%$LDFLAGS%g
1063 s%@exec_prefix@%$exec_prefix%g
1064 s%@prefix@%$prefix%g
1065 s%@program_transform_name@%$program_transform_name%g
1066 s%@bindir@%$bindir%g
1067 s%@sbindir@%$sbindir%g
1068 s%@libexecdir@%$libexecdir%g
1069 s%@datadir@%$datadir%g
1070 s%@sysconfdir@%$sysconfdir%g
1071 s%@sharedstatedir@%$sharedstatedir%g
1072 s%@localstatedir@%$localstatedir%g
1073 s%@libdir@%$libdir%g
1074 s%@includedir@%$includedir%g
1075 s%@oldincludedir@%$oldincludedir%g
1076 s%@infodir@%$infodir%g
1077 s%@mandir@%$mandir%g
1078 s%@SET_MAKE@%$SET_MAKE%g
1079 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1080 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1081 s%@INSTALL_DATA@%$INSTALL_DATA%g
1082 s%@MAKEINFO@%$MAKEINFO%g
1084 s%@XEMACS@%$XEMACS%g
1085 s%@lispdir@%$lispdir%g
1086 s%@PACKAGEDIR@%$PACKAGEDIR%g
1087 s%@ADDITIONAL_LOAD_PATH@%$ADDITIONAL_LOAD_PATH%g
1092 cat >> $CONFIG_STATUS <<\EOF
1094 # Split the substitutions into bite-sized pieces for seds with
1095 # small command number limits, like on Digital OSF/1 and HP-UX.
1096 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1097 ac_file=1 # Number of current file.
1098 ac_beg=1 # First line for current file.
1099 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1102 while $ac_more_lines; do
1103 if test $ac_beg -gt 1; then
1104 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1106 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1108 if test ! -s conftest.s$ac_file; then
1110 rm -f conftest.s$ac_file
1112 if test -z "$ac_sed_cmds"; then
1113 ac_sed_cmds="sed -f conftest.s$ac_file"
1115 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1117 ac_file=`expr $ac_file + 1`
1119 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1122 if test -z "$ac_sed_cmds"; then
1127 cat >> $CONFIG_STATUS <<EOF
1129 CONFIG_FILES=\${CONFIG_FILES-"Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile"}
1131 cat >> $CONFIG_STATUS <<\EOF
1132 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1133 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1135 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1136 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1137 *) ac_file_in="${ac_file}.in" ;;
1140 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1142 # Remove last slash and all that follows it. Not all systems have dirname.
1143 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1144 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1145 # The file is in a subdirectory.
1146 test ! -d "$ac_dir" && mkdir "$ac_dir"
1147 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1148 # A "../" for each directory in $ac_dir_suffix.
1149 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1151 ac_dir_suffix= ac_dots=
1154 case "$ac_given_srcdir" in
1156 if test -z "$ac_dots"; then top_srcdir=.
1157 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1158 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1160 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1161 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1164 case "$ac_given_INSTALL" in
1165 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1166 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1169 echo creating "$ac_file"
1171 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1173 *Makefile*) ac_comsub="1i\\
1174 # $configure_input" ;;
1178 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1180 s%@configure_input@%$configure_input%g
1181 s%@srcdir@%$srcdir%g
1182 s%@top_srcdir@%$top_srcdir%g
1183 s%@INSTALL@%$INSTALL%g
1184 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1189 cat >> $CONFIG_STATUS <<EOF
1192 cat >> $CONFIG_STATUS <<\EOF
1196 chmod +x $CONFIG_STATUS
1197 rm -fr confdefs* $ac_clean_files
1198 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1