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
681 # Check whether --with-emacs or --without-emacs was given.
682 if test "${with_emacs+set}" = set; then
683 withval="$with_emacs"
684 if test x$withval = xyes -o x$withval = xt -o x$withval = x; then
685 for ac_prog in emacs xemacs mule
687 # Extract the first word of "$ac_prog", so it can be a program name with args.
688 set dummy $ac_prog; ac_word=$2
689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
690 echo "configure:691: checking for $ac_word" >&5
691 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
692 echo $ac_n "(cached) $ac_c" 1>&6
694 if test -n "$EMACS"; then
695 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
699 for ac_dir in $ac_dummy; do
700 test -z "$ac_dir" && ac_dir=.
701 if test -f $ac_dir/$ac_word; then
702 ac_cv_prog_EMACS="$ac_prog"
709 EMACS="$ac_cv_prog_EMACS"
710 if test -n "$EMACS"; then
711 echo "$ac_t""$EMACS" 1>&6
713 echo "$ac_t""no" 1>&6
716 test -n "$EMACS" && break
718 test -n "$EMACS" || EMACS="emacs"
721 # Extract the first word of "$withval", so it can be a program name with args.
722 set dummy $withval; ac_word=$2
723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
724 echo "configure:725: checking for $ac_word" >&5
725 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
726 echo $ac_n "(cached) $ac_c" 1>&6
728 if test -n "$EMACS"; then
729 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
733 for ac_dir in $ac_dummy; do
734 test -z "$ac_dir" && ac_dir=.
735 if test -f $ac_dir/$ac_word; then
736 ac_cv_prog_EMACS="$withval"
741 test -z "$ac_cv_prog_EMACS" && ac_cv_prog_EMACS="emacs"
744 EMACS="$ac_cv_prog_EMACS"
745 if test -n "$EMACS"; then
746 echo "$ac_t""$EMACS" 1>&6
748 echo "$ac_t""no" 1>&6
754 # Check whether --with-xemacs or --without-xemacs was given.
755 if test "${with_xemacs+set}" = set; then
756 withval="$with_xemacs"
757 if test x$withval = xyes -o x$withval = x; then
758 # Extract the first word of "xemacs", so it can be a program name with args.
759 set dummy xemacs; ac_word=$2
760 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
761 echo "configure:762: checking for $ac_word" >&5
762 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
763 echo $ac_n "(cached) $ac_c" 1>&6
765 if test -n "$XEMACS"; then
766 ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
770 for ac_dir in $ac_dummy; do
771 test -z "$ac_dir" && ac_dir=.
772 if test -f $ac_dir/$ac_word; then
773 ac_cv_prog_XEMACS="xemacs"
778 test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
781 XEMACS="$ac_cv_prog_XEMACS"
782 if test -n "$XEMACS"; then
783 echo "$ac_t""$XEMACS" 1>&6
785 echo "$ac_t""no" 1>&6
789 # Extract the first word of "$withval", so it can be a program name with args.
790 set dummy $withval; ac_word=$2
791 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
792 echo "configure:793: checking for $ac_word" >&5
793 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
794 echo $ac_n "(cached) $ac_c" 1>&6
796 if test -n "$XEMACS"; then
797 ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
801 for ac_dir in $ac_dummy; do
802 test -z "$ac_dir" && ac_dir=.
803 if test -f $ac_dir/$ac_word; then
804 ac_cv_prog_XEMACS="$withval"
809 test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
812 XEMACS="$ac_cv_prog_XEMACS"
813 if test -n "$XEMACS"; then
814 echo "$ac_t""$XEMACS" 1>&6
816 echo "$ac_t""no" 1>&6
823 test x$EMACS = xt -o x$EMACS = x &&\
824 for ac_prog in emacs xemacs mule
826 # Extract the first word of "$ac_prog", so it can be a program name with args.
827 set dummy $ac_prog; ac_word=$2
828 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
829 echo "configure:830: checking for $ac_word" >&5
830 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 if test -n "$EMACS"; then
834 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
836 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
838 for ac_dir in $ac_dummy; do
839 test -z "$ac_dir" && ac_dir=.
840 if test -f $ac_dir/$ac_word; then
841 ac_cv_prog_EMACS="$ac_prog"
848 EMACS="$ac_cv_prog_EMACS"
849 if test -n "$EMACS"; then
850 echo "$ac_t""$EMACS" 1>&6
852 echo "$ac_t""no" 1>&6
855 test -n "$EMACS" && break
857 test -n "$EMACS" || EMACS="emacs"
863 echo $ac_n "checking where lisp files should go""... $ac_c" 1>&6
864 echo "configure:865: checking where lisp files should go" >&5
865 # Check whether --with-lispdir or --without-lispdir was given.
866 if test "${with_lispdir+set}" = set; then
867 withval="$with_lispdir"
870 emacsdir=$datadir/emacs
871 test x$prefix = xNONE && prefix=$ac_default_prefix
872 case `echo x$EMACS | sed -e 's/x//' -e 's/^.*\///'` in
874 if test -d $prefix/share/emacs; then
875 emacsdir=$prefix/share/emacs
876 elif test -d $prefix/lib/emacs; then
877 emacsdir=$prefix/lib/emacs
880 if test -d $prefix/lib/xemacs; then
881 emacsdir=$prefix/lib/xemacs
882 elif test -d $prefix/share/xemacs; then
883 emacsdir=$prefix/share/xemacs
886 if test -d $prefix/share/mule; then
887 emacsdir=$prefix/share/mule
888 elif test -d $prefix/lib/mule; then
889 emacsdir=$prefix/lib/mule
890 elif test -d $prefix/share/emacs; then
891 emacsdir=$prefix/share/emacs
892 elif test -d $prefix/lib/emacs; then
893 emacsdir=$prefix/lib/emacs
896 lispdir=$emacsdir/site-lisp/$GNUS_PRODUCT_NAME
899 echo "$ac_t""$lispdir
900 (it will be ignored when \"make install-package[-ja]\" is done)" 1>&6
902 # Check whether --with-packagedir or --without-packagedir was given.
903 if test "${with_packagedir+set}" = set; then
904 withval="$with_packagedir"
905 if test x$withval != xyes -a x$withval != x; then
906 echo $ac_n "checking where the package should go""... $ac_c" 1>&6
907 echo "configure:908: checking where the package should go" >&5
909 echo "$ac_t""$PACKAGEDIR" 1>&6
916 # Check whether --with-addpath or --without-addpath was given.
917 if test "${with_addpath+set}" = set; then
918 withval="$with_addpath"
919 if test x$withval != xyes -a x$withval != x; then
920 echo $ac_n "checking where to find the additional elisp libraries""... $ac_c" 1>&6
921 echo "configure:922: checking where to find the additional elisp libraries" >&5
922 ADDITIONAL_LOAD_PATH=$withval
923 echo "$ac_t""$ADDITIONAL_LOAD_PATH" 1>&6
926 ADDITIONAL_LOAD_PATH=
931 cat > confcache <<\EOF
932 # This file is a shell script that caches the results of configure
933 # tests run on this system so they can be shared between configure
934 # scripts and configure runs. It is not useful on other systems.
935 # If it contains results you don't want to keep, you may remove or edit it.
937 # By default, configure uses ./config.cache as the cache file,
938 # creating it if it does not exist already. You can give configure
939 # the --cache-file=FILE option to use a different cache file; that is
940 # what configure does when it calls configure scripts in
941 # subdirectories, so they share the cache.
942 # Giving --cache-file=/dev/null disables caching, for debugging configure.
943 # config.status only pays attention to the cache file if you give it the
944 # --recheck option to rerun configure.
947 # The following way of writing the cache mishandles newlines in values,
948 # but we know of no workaround that is simple, portable, and efficient.
949 # So, don't put newlines in cache variables' values.
950 # Ultrix sh set writes to stderr and can't be redirected directly,
951 # and sets the high bit in the cache file unless we assign to the vars.
953 case `(ac_space=' '; set | grep ac_space) 2>&1` in
955 # `set' does not quote correctly, so add quotes (double-quote substitution
956 # turns \\\\ into \\, and sed turns \\ into \).
959 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
962 # `set' quotes correctly as required by POSIX, so do not add quotes.
963 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
966 if cmp -s $cache_file confcache; then
969 if test -w $cache_file; then
970 echo "updating cache $cache_file"
971 cat confcache > $cache_file
973 echo "not updating unwritable cache $cache_file"
978 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
981 # Let make expand exec_prefix.
982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
984 # Any assignment to VPATH causes Sun make to only execute
985 # the first set of double-colon rules, so remove it if not needed.
986 # If there is a colon in the path, we need to keep it.
987 if test "x$srcdir" = x.; then
988 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
991 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
993 # Transform confdefs.h into DEFS.
994 # Protect against shell expansion while executing Makefile rules.
995 # Protect against Makefile macro expansion.
996 cat > conftest.defs <<\EOF
997 s%#define \([^ ][^ ]*\) *\(.*\)%-D\1=\2%g
998 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1003 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1007 # Without the "./", some shells look in PATH for config.status.
1008 : ${CONFIG_STATUS=./config.status}
1010 echo creating $CONFIG_STATUS
1011 rm -f $CONFIG_STATUS
1012 cat > $CONFIG_STATUS <<EOF
1014 # Generated automatically by configure.
1015 # Run this file to recreate the current configuration.
1016 # This directory was configured as follows,
1017 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1019 # $0 $ac_configure_args
1021 # Compiler output produced by configure, useful for debugging
1022 # configure, is in ./config.log if it exists.
1024 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1027 case "\$ac_option" in
1028 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1029 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1030 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1031 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1032 echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
1034 -help | --help | --hel | --he | --h)
1035 echo "\$ac_cs_usage"; exit 0 ;;
1036 *) echo "\$ac_cs_usage"; exit 1 ;;
1040 ac_given_srcdir=$srcdir
1041 ac_given_INSTALL="$INSTALL"
1043 trap 'rm -fr `echo "Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1045 cat >> $CONFIG_STATUS <<EOF
1047 # Protect against being on the right side of a sed subst in config.status.
1048 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1049 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1053 s%@CFLAGS@%$CFLAGS%g
1054 s%@CPPFLAGS@%$CPPFLAGS%g
1055 s%@CXXFLAGS@%$CXXFLAGS%g
1056 s%@FFLAGS@%$FFLAGS%g
1058 s%@LDFLAGS@%$LDFLAGS%g
1060 s%@exec_prefix@%$exec_prefix%g
1061 s%@prefix@%$prefix%g
1062 s%@program_transform_name@%$program_transform_name%g
1063 s%@bindir@%$bindir%g
1064 s%@sbindir@%$sbindir%g
1065 s%@libexecdir@%$libexecdir%g
1066 s%@datadir@%$datadir%g
1067 s%@sysconfdir@%$sysconfdir%g
1068 s%@sharedstatedir@%$sharedstatedir%g
1069 s%@localstatedir@%$localstatedir%g
1070 s%@libdir@%$libdir%g
1071 s%@includedir@%$includedir%g
1072 s%@oldincludedir@%$oldincludedir%g
1073 s%@infodir@%$infodir%g
1074 s%@mandir@%$mandir%g
1075 s%@SET_MAKE@%$SET_MAKE%g
1076 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1077 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1078 s%@INSTALL_DATA@%$INSTALL_DATA%g
1079 s%@MAKEINFO@%$MAKEINFO%g
1081 s%@XEMACS@%$XEMACS%g
1082 s%@lispdir@%$lispdir%g
1083 s%@PACKAGEDIR@%$PACKAGEDIR%g
1084 s%@ADDITIONAL_LOAD_PATH@%$ADDITIONAL_LOAD_PATH%g
1089 cat >> $CONFIG_STATUS <<\EOF
1091 # Split the substitutions into bite-sized pieces for seds with
1092 # small command number limits, like on Digital OSF/1 and HP-UX.
1093 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1094 ac_file=1 # Number of current file.
1095 ac_beg=1 # First line for current file.
1096 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1099 while $ac_more_lines; do
1100 if test $ac_beg -gt 1; then
1101 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1103 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1105 if test ! -s conftest.s$ac_file; then
1107 rm -f conftest.s$ac_file
1109 if test -z "$ac_sed_cmds"; then
1110 ac_sed_cmds="sed -f conftest.s$ac_file"
1112 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1114 ac_file=`expr $ac_file + 1`
1116 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1119 if test -z "$ac_sed_cmds"; then
1124 cat >> $CONFIG_STATUS <<EOF
1126 CONFIG_FILES=\${CONFIG_FILES-"Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile"}
1128 cat >> $CONFIG_STATUS <<\EOF
1129 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1130 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1132 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1133 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1134 *) ac_file_in="${ac_file}.in" ;;
1137 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1139 # Remove last slash and all that follows it. Not all systems have dirname.
1140 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1141 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1142 # The file is in a subdirectory.
1143 test ! -d "$ac_dir" && mkdir "$ac_dir"
1144 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1145 # A "../" for each directory in $ac_dir_suffix.
1146 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1148 ac_dir_suffix= ac_dots=
1151 case "$ac_given_srcdir" in
1153 if test -z "$ac_dots"; then top_srcdir=.
1154 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1155 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1157 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1158 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1161 case "$ac_given_INSTALL" in
1162 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1163 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1166 echo creating "$ac_file"
1168 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1170 *Makefile*) ac_comsub="1i\\
1171 # $configure_input" ;;
1175 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1177 s%@configure_input@%$configure_input%g
1178 s%@srcdir@%$srcdir%g
1179 s%@top_srcdir@%$top_srcdir%g
1180 s%@INSTALL@%$INSTALL%g
1181 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1186 cat >> $CONFIG_STATUS <<EOF
1189 cat >> $CONFIG_STATUS <<\EOF
1193 chmod +x $CONFIG_STATUS
1194 rm -fr confdefs* $ac_clean_files
1195 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1