(gnus-revision-number): Increment to 02.
[elisp/gnus.git-] / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-emacs=EMACS      compile with EMACS [EMACS=emacs, xemacs...]"
16 ac_help="$ac_help
17   --with-lispdir=DIR      emacs lisp files go to DIR [guessed]"
18 ac_help="$ac_help
19   --with-addpath=PATH     search Emacs-Lisp libraries with PATH
20                           use colons to separate directory names"
21
22 # Initialize some variables set by options.
23 # The variables have the same names as the options, with
24 # dashes changed to underlines.
25 build=NONE
26 cache_file=./config.cache
27 exec_prefix=NONE
28 host=NONE
29 no_create=
30 nonopt=NONE
31 no_recursion=
32 prefix=NONE
33 program_prefix=NONE
34 program_suffix=NONE
35 program_transform_name=s,x,x,
36 silent=
37 site=
38 srcdir=
39 target=NONE
40 verbose=
41 x_includes=NONE
42 x_libraries=NONE
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'
55
56 # Initialize some other variables.
57 subdirs=
58 MFLAGS= MAKEFLAGS=
59 SHELL=${CONFIG_SHELL-/bin/sh}
60 # Maximum number of lines to put in a shell here document.
61 ac_max_here_lines=12
62
63 ac_prev=
64 for ac_option
65 do
66
67   # If the previous option needs an argument, assign it.
68   if test -n "$ac_prev"; then
69     eval "$ac_prev=\$ac_option"
70     ac_prev=
71     continue
72   fi
73
74   case "$ac_option" in
75   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
76   *) ac_optarg= ;;
77   esac
78
79   # Accept the important Cygnus configure options, so we can diagnose typos.
80
81   case "$ac_option" in
82
83   -bindir | --bindir | --bindi | --bind | --bin | --bi)
84     ac_prev=bindir ;;
85   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
86     bindir="$ac_optarg" ;;
87
88   -build | --build | --buil | --bui | --bu)
89     ac_prev=build ;;
90   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
91     build="$ac_optarg" ;;
92
93   -cache-file | --cache-file | --cache-fil | --cache-fi \
94   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95     ac_prev=cache_file ;;
96   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
97   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
98     cache_file="$ac_optarg" ;;
99
100   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101     ac_prev=datadir ;;
102   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103   | --da=*)
104     datadir="$ac_optarg" ;;
105
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; }
111     fi
112     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
113     eval "enable_${ac_feature}=no" ;;
114
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; }
120     fi
121     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122     case "$ac_option" in
123       *=*) ;;
124       *) ac_optarg=yes ;;
125     esac
126     eval "enable_${ac_feature}='$ac_optarg'" ;;
127
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" ;;
136
137   -gas | --gas | --ga | --g)
138     # Obsolete; use --with-gas.
139     with_gas=yes ;;
140
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.
144     cat << EOF
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
147 Configuration:
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
155                           [$ac_default_prefix]
156   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
157                           [same as prefix]
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
162                           [PREFIX/share]
163   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
164   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
165                           [PREFIX/com]
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
177 EOF
178     cat << EOF
179 Host type:
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
190 EOF
191     if test -n "$ac_help"; then
192       echo "--enable and --with options recognized:$ac_help"
193     fi
194     exit 0 ;;
195
196   -host | --host | --hos | --ho)
197     ac_prev=host ;;
198   -host=* | --host=* | --hos=* | --ho=*)
199     host="$ac_optarg" ;;
200
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" ;;
207
208   -infodir | --infodir | --infodi | --infod | --info | --inf)
209     ac_prev=infodir ;;
210   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
211     infodir="$ac_optarg" ;;
212
213   -libdir | --libdir | --libdi | --libd)
214     ac_prev=libdir ;;
215   -libdir=* | --libdir=* | --libdi=* | --libd=*)
216     libdir="$ac_optarg" ;;
217
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" ;;
224
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" ;;
233
234   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235     ac_prev=mandir ;;
236   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
237     mandir="$ac_optarg" ;;
238
239   -nfp | --nfp | --nf)
240     # Obsolete; use --without-fp.
241     with_fp=no ;;
242
243   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
244   | --no-cr | --no-c)
245     no_create=yes ;;
246
247   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
248   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
249     no_recursion=yes ;;
250
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" ;;
259
260   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261     ac_prev=prefix ;;
262   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
263     prefix="$ac_optarg" ;;
264
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" ;;
271
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" ;;
278
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" ;;
295
296   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
297   | -silent | --silent | --silen | --sile | --sil)
298     silent=yes ;;
299
300   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301     ac_prev=sbindir ;;
302   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303   | --sbi=* | --sb=*)
304     sbindir="$ac_optarg" ;;
305
306   -sharedstatedir | --sharedstatedir | --sharedstatedi \
307   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
308   | --sharedst | --shareds | --shared | --share | --shar \
309   | --sha | --sh)
310     ac_prev=sharedstatedir ;;
311   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
312   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
313   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314   | --sha=* | --sh=*)
315     sharedstatedir="$ac_optarg" ;;
316
317   -site | --site | --sit)
318     ac_prev=site ;;
319   -site=* | --site=* | --sit=*)
320     site="$ac_optarg" ;;
321
322   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323     ac_prev=srcdir ;;
324   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
325     srcdir="$ac_optarg" ;;
326
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" ;;
333
334   -target | --target | --targe | --targ | --tar | --ta | --t)
335     ac_prev=target ;;
336   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
337     target="$ac_optarg" ;;
338
339   -v | -verbose | --verbose | --verbos | --verbo | --verb)
340     verbose=yes ;;
341
342   -version | --version | --versio | --versi | --vers)
343     echo "configure generated by autoconf version 2.14.1"
344     exit 0 ;;
345
346   -with-* | --with-*)
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; }
351     fi
352     ac_package=`echo $ac_package| sed 's/-/_/g'`
353     case "$ac_option" in
354       *=*) ;;
355       *) ac_optarg=yes ;;
356     esac
357     eval "with_${ac_package}='$ac_optarg'" ;;
358
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; }
364     fi
365     ac_package=`echo $ac_package| sed 's/-/_/g'`
366     eval "with_${ac_package}=no" ;;
367
368   --x)
369     # Obsolete; use --with-x.
370     with_x=yes ;;
371
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" ;;
378
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" ;;
385
386   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
387     ;;
388
389   *)
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
392     fi
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; }
395     fi
396     nonopt="$ac_option"
397     ;;
398
399   esac
400 done
401
402 if test -n "$ac_prev"; then
403   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
404 fi
405
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407
408 # File descriptor usage:
409 # 0 standard input
410 # 1 file creation
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
417   exec 6>/dev/null
418 else
419   exec 6>&1
420 fi
421 exec 5>./config.log
422
423 echo "\
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
426 " 1>&5
427
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
430 ac_configure_args=
431 for ac_arg
432 do
433   case "$ac_arg" in
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" ;;
441   esac
442 done
443
444 # NLS nuisances.
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
453
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.
457 echo > confdefs.h
458
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
462
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.
467   ac_prog=$0
468   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470   srcdir=$ac_confdir
471   if test ! -r $srcdir/$ac_unique_file; then
472     srcdir=..
473   fi
474 else
475   ac_srcdir_defaulted=no
476 fi
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; }
480   else
481     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
482   fi
483 fi
484 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485
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"
490   else
491     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
492   fi
493 fi
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"
497     . "$ac_site_file"
498   fi
499 done
500
501 if test -r "$cache_file"; then
502   echo "loading cache $cache_file"
503       test -f "$cache_file" && . $cache_file
504 else
505   echo "creating cache $cache_file"
506   > $cache_file
507 fi
508
509 ac_ext=c
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
515
516 ac_exeext=
517 ac_objext=o
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
521     ac_n= ac_c='
522 ' ac_t='        '
523   else
524     ac_n=-n ac_c= ac_t=
525   fi
526 else
527   ac_n= ac_c='\c' ac_t=
528 fi
529
530
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
536 else
537   cat > conftestmake <<\EOF
538 all:
539         @echo 'ac_maketemp="${MAKE}"'
540 EOF
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
545 else
546   eval ac_cv_prog_make_${ac_make}_set=no
547 fi
548 rm -f conftestmake
549 fi
550 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
551   echo "$ac_t""yes" 1>&6
552   SET_MAKE=
553 else
554   echo "$ac_t""no" 1>&6
555   SET_MAKE="MAKE=${MAKE-make}"
556 fi
557
558 ac_aux_dir=
559 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
560   if test -f $ac_dir/install-sh; then
561     ac_aux_dir=$ac_dir
562     ac_install_sh="$ac_aux_dir/install-sh -c"
563     break
564   elif test -f $ac_dir/install.sh; then
565     ac_aux_dir=$ac_dir
566     ac_install_sh="$ac_aux_dir/install.sh -c"
567     break
568   fi
569 done
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; }
572 fi
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.
576
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
582 # IRIX /sbin/install
583 # AIX /bin/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
593 else
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.
597     case "$ac_dir/" in
598     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
599     *)
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
602       # by default.
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.
608             :
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.
612             :
613           else
614             ac_cv_path_install="$ac_dir/$ac_prog -c"
615             break 2
616           fi
617         fi
618       done
619       ;;
620     esac
621   done
622   IFS="$ac_save_IFS"
623
624 fi
625   if test "${ac_cv_path_install+set}" = set; then
626     INSTALL="$ac_cv_path_install"
627   else
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"
633   fi
634 fi
635 echo "$ac_t""$INSTALL" 1>&6
636
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}'
640
641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
642
643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
644
645       # Check whether --with-emacs or --without-emacs was given.
646 if test "${with_emacs+set}" = set; then
647   withval="$with_emacs"
648   case "${withval}" in
649        yes)     EMACS= ;;
650        no)      { echo "configure: error: emacs is not available" 1>&2; exit 1; } ;;
651        *)       EMACS=${withval} ;;
652      esac
653 else
654   EMACS=
655 fi
656
657   if test "x$EMACS" = "xt" -o "x$EMACS" = x; then
658     for ac_prog in emacs xemacs mule
659 do
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
666 else
667   case "$EMACS" in
668   /*)
669   ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
670   ;;
671   ?:/*)                  
672   ac_cv_path_EMACS="$EMACS" # Let the user override the test with a dos path.
673   ;;
674   *)
675   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
676   ac_dummy="$PATH"
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"
681       break
682     fi
683   done
684   IFS="$ac_save_ifs"
685   ;;
686 esac
687 fi
688 EMACS="$ac_cv_path_EMACS"
689 if test -n "$EMACS"; then
690   echo "$ac_t""$EMACS" 1>&6
691 else
692   echo "$ac_t""no" 1>&6
693 fi
694
695 test -n "$EMACS" && break
696 done
697 test -n "$EMACS" || EMACS="no"
698
699     if test $EMACS = no; then
700       { echo "configure: error: you should install Emacs first" 1>&2; exit 1; }
701     fi
702   fi
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
709     fi
710     emacsdir="\$(datadir)/emacs"
711     case "$EMACS_BASENAME" in
712     emacs|emacs-*)
713       if test -d $prefix/lib/emacs; then
714         emacsdir="$prefix/lib/emacs"
715       fi
716       if test -d $prefix/share/emacs; then
717         emacsdir="$prefix/share/emacs"
718       fi
719       ;;
720     xemacs|xemacs-*)
721       if test -d $prefix/lib/xemacs; then
722         emacsdir="$prefix/lib/xemacs"
723       fi
724       if test -d $prefix/share/xemacs; then
725         emacsdir="$prefix/share/xemacs"
726       fi
727       ;;
728     mule|mule-*)
729       if test -d $prefix/lib/emacs; then
730         emacsdir="$prefix/lib/emacs"
731       fi
732       if test -d $prefix/share/emacs; then
733         emacsdir="$prefix/share/emacs"
734       fi
735       if test -d $prefix/lib/mule; then
736         emacsdir="$prefix/lib/mule"
737       fi
738       if test -d $prefix/share/mule; then
739         emacsdir="$prefix/share/mule"
740       fi
741       ;;
742     esac
743   fi
744   echo "$ac_t""$emacsdir" 1>&6
745   
746         # Check whether --with-lispdir or --without-lispdir was given.
747 if test "${with_lispdir+set}" = set; then
748   withval="$with_lispdir"
749   case "${withval}" in
750        yes)     lispdir= ;;
751        no)      { echo "configure: error: lispdir is not available" 1>&2; exit 1; } ;;
752        *)       lispdir=${withval} ;;
753      esac
754 else
755   lispdir=
756 fi
757
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"
764     fi
765     case "$EMACS_BASENAME" in
766     xemacs|xemacs-*)
767       lispdir="$lispdir/lookup"
768       ;;
769     esac
770   fi
771   echo "$ac_t""$lispdir" 1>&6
772   
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
779 else
780   case "$MAKEINFO" in
781   /*)
782   ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
783   ;;
784   ?:/*)                  
785   ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a dos path.
786   ;;
787   *)
788   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
789   ac_dummy="$PATH"
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"
794       break
795     fi
796   done
797   IFS="$ac_save_ifs"
798   test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
799   ;;
800 esac
801 fi
802 MAKEINFO="$ac_cv_path_MAKEINFO"
803 if test -n "$MAKEINFO"; then
804   echo "$ac_t""$MAKEINFO" 1>&6
805 else
806   echo "$ac_t""no" 1>&6
807 fi
808
809
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
815 fi
816
817
818
819 trap '' 1 2 15
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.
825 #
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.
834 #
835 EOF
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.
841 (set) 2>&1 |
842   case `(ac_space=' '; set | grep ac_space) 2>&1` in
843   *ac_space=\ *)
844     # `set' does not quote correctly, so add quotes (double-quote substitution
845     # turns \\\\ into \\, and sed turns \\ into \).
846     sed -n \
847       -e "s/'/'\\\\''/g" \
848       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
849     ;;
850   *)
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'
853     ;;
854   esac >> confcache
855 if cmp -s $cache_file confcache; then
856   :
857 else
858   if test -w $cache_file; then
859     echo "updating cache $cache_file"
860     cat confcache > $cache_file
861   else
862     echo "not updating unwritable cache $cache_file"
863   fi
864 fi
865 rm -f confcache
866
867 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
868
869 test "x$prefix" = xNONE && prefix=$ac_default_prefix
870 # Let make expand exec_prefix.
871 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
872
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'
878 fi
879
880 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
881
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
888 s%\[%\\&%g
889 s%\]%\\&%g
890 s%\$%$$%g
891 EOF
892 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
893 rm -f conftest.defs
894
895
896 # Without the "./", some shells look in PATH for config.status.
897 : ${CONFIG_STATUS=./config.status}
898
899 echo creating $CONFIG_STATUS
900 rm -f $CONFIG_STATUS
901 cat > $CONFIG_STATUS <<EOF
902 #! /bin/sh
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`:
907 #
908 # $0 $ac_configure_args
909 #
910 # Compiler output produced by configure, useful for debugging
911 # configure, is in ./config.log if it exists.
912
913 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
914 for ac_option
915 do
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"
922     exit 0 ;;
923   -help | --help | --hel | --he | --h)
924     echo "\$ac_cs_usage"; exit 0 ;;
925   *) echo "\$ac_cs_usage"; exit 1 ;;
926   esac
927 done
928
929 ac_given_srcdir=$srcdir
930 ac_given_INSTALL="$INSTALL"
931
932 trap 'rm -fr `echo "Makefile lisp/Makefile lisp/paths.el texi/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
933 EOF
934 cat >> $CONFIG_STATUS <<EOF
935
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
939 $ac_vpsub
940 $extrasub
941 s%@SHELL@%$SHELL%g
942 s%@CFLAGS@%$CFLAGS%g
943 s%@CPPFLAGS@%$CPPFLAGS%g
944 s%@CXXFLAGS@%$CXXFLAGS%g
945 s%@FFLAGS@%$FFLAGS%g
946 s%@DEFS@%$DEFS%g
947 s%@LDFLAGS@%$LDFLAGS%g
948 s%@LIBS@%$LIBS%g
949 s%@exec_prefix@%$exec_prefix%g
950 s%@prefix@%$prefix%g
951 s%@program_transform_name@%$program_transform_name%g
952 s%@bindir@%$bindir%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
959 s%@libdir@%$libdir%g
960 s%@includedir@%$includedir%g
961 s%@oldincludedir@%$oldincludedir%g
962 s%@infodir@%$infodir%g
963 s%@mandir@%$mandir%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
968 s%@EMACS@%$EMACS%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
973
974 CEOF
975 EOF
976
977 cat >> $CONFIG_STATUS <<\EOF
978
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.
985 ac_more_lines=:
986 ac_sed_cmds=""
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
990   else
991     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
992   fi
993   if test ! -s conftest.s$ac_file; then
994     ac_more_lines=false
995     rm -f conftest.s$ac_file
996   else
997     if test -z "$ac_sed_cmds"; then
998       ac_sed_cmds="sed -f conftest.s$ac_file"
999     else
1000       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1001     fi
1002     ac_file=`expr $ac_file + 1`
1003     ac_beg=$ac_end
1004     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1005   fi
1006 done
1007 if test -z "$ac_sed_cmds"; then
1008   ac_sed_cmds=cat
1009 fi
1010 EOF
1011
1012 cat >> $CONFIG_STATUS <<EOF
1013
1014 CONFIG_FILES=\${CONFIG_FILES-"Makefile lisp/Makefile lisp/paths.el texi/Makefile"}
1015 EOF
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".
1019   case "$ac_file" 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" ;;
1023   esac
1024
1025   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1026
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'`
1035   else
1036     ac_dir_suffix= ac_dots=
1037   fi
1038
1039   case "$ac_given_srcdir" in
1040   .)  srcdir=.
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" ;;
1044   *) # Relative path.
1045     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1046     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1047   esac
1048
1049   case "$ac_given_INSTALL" in
1050   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1051   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1052   esac
1053
1054   echo creating "$ac_file"
1055   rm -f "$ac_file"
1056   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1057   case "$ac_file" in
1058   *Makefile*) ac_comsub="1i\\
1059 # $configure_input" ;;
1060   *) ac_comsub= ;;
1061   esac
1062
1063   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1064   sed -e "$ac_comsub
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
1070 fi; done
1071 rm -f conftest.s*
1072
1073 EOF
1074 cat >> $CONFIG_STATUS <<EOF
1075
1076 EOF
1077 cat >> $CONFIG_STATUS <<\EOF
1078
1079 exit 0
1080 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
1084