This commit was generated by cvs2svn to compensate for changes in r4550,
[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.13 
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-xemacs           Use XEmacs to build"
16 ac_help="$ac_help
17   --with-emacs            Use Emacs to build"
18 ac_help="$ac_help
19   --with-lispdir=DIR      Where to install lisp files"
20 ac_help="$ac_help
21   --with-etcdir=DIR       Where to install etc files"
22 ac_help="$ac_help
23   --with-url=DIR          Specify where to find the url package"
24 ac_help="$ac_help
25   --with-w3=DIR           Specify where to find the w3 package"
26
27 # Initialize some variables set by options.
28 # The variables have the same names as the options, with
29 # dashes changed to underlines.
30 build=NONE
31 cache_file=./config.cache
32 exec_prefix=NONE
33 host=NONE
34 no_create=
35 nonopt=NONE
36 no_recursion=
37 prefix=NONE
38 program_prefix=NONE
39 program_suffix=NONE
40 program_transform_name=s,x,x,
41 silent=
42 site=
43 srcdir=
44 target=NONE
45 verbose=
46 x_includes=NONE
47 x_libraries=NONE
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'
60
61 # Initialize some other variables.
62 subdirs=
63 MFLAGS= MAKEFLAGS=
64 SHELL=${CONFIG_SHELL-/bin/sh}
65 # Maximum number of lines to put in a shell here document.
66 ac_max_here_lines=12
67
68 ac_prev=
69 for ac_option
70 do
71
72   # If the previous option needs an argument, assign it.
73   if test -n "$ac_prev"; then
74     eval "$ac_prev=\$ac_option"
75     ac_prev=
76     continue
77   fi
78
79   case "$ac_option" in
80   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81   *) ac_optarg= ;;
82   esac
83
84   # Accept the important Cygnus configure options, so we can diagnose typos.
85
86   case "$ac_option" in
87
88   -bindir | --bindir | --bindi | --bind | --bin | --bi)
89     ac_prev=bindir ;;
90   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91     bindir="$ac_optarg" ;;
92
93   -build | --build | --buil | --bui | --bu)
94     ac_prev=build ;;
95   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96     build="$ac_optarg" ;;
97
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" ;;
104
105   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
106     ac_prev=datadir ;;
107   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
108   | --da=*)
109     datadir="$ac_optarg" ;;
110
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; }
116     fi
117     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118     eval "enable_${ac_feature}=no" ;;
119
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; }
125     fi
126     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127     case "$ac_option" in
128       *=*) ;;
129       *) ac_optarg=yes ;;
130     esac
131     eval "enable_${ac_feature}='$ac_optarg'" ;;
132
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" ;;
141
142   -gas | --gas | --ga | --g)
143     # Obsolete; use --with-gas.
144     with_gas=yes ;;
145
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.
149     cat << EOF
150 Usage: configure [options] [host]
151 Options: [defaults in brackets after descriptions]
152 Configuration:
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
160                           [$ac_default_prefix]
161   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
162                           [same as prefix]
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
167                           [PREFIX/share]
168   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
169   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
170                           [PREFIX/com]
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
182 EOF
183     cat << EOF
184 Host type:
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
195 EOF
196     if test -n "$ac_help"; then
197       echo "--enable and --with options recognized:$ac_help"
198     fi
199     exit 0 ;;
200
201   -host | --host | --hos | --ho)
202     ac_prev=host ;;
203   -host=* | --host=* | --hos=* | --ho=*)
204     host="$ac_optarg" ;;
205
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" ;;
212
213   -infodir | --infodir | --infodi | --infod | --info | --inf)
214     ac_prev=infodir ;;
215   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216     infodir="$ac_optarg" ;;
217
218   -libdir | --libdir | --libdi | --libd)
219     ac_prev=libdir ;;
220   -libdir=* | --libdir=* | --libdi=* | --libd=*)
221     libdir="$ac_optarg" ;;
222
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" ;;
229
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" ;;
238
239   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240     ac_prev=mandir ;;
241   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242     mandir="$ac_optarg" ;;
243
244   -nfp | --nfp | --nf)
245     # Obsolete; use --without-fp.
246     with_fp=no ;;
247
248   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249   | --no-cr | --no-c)
250     no_create=yes ;;
251
252   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254     no_recursion=yes ;;
255
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" ;;
264
265   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266     ac_prev=prefix ;;
267   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268     prefix="$ac_optarg" ;;
269
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" ;;
276
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" ;;
283
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" ;;
300
301   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302   | -silent | --silent | --silen | --sile | --sil)
303     silent=yes ;;
304
305   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
306     ac_prev=sbindir ;;
307   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308   | --sbi=* | --sb=*)
309     sbindir="$ac_optarg" ;;
310
311   -sharedstatedir | --sharedstatedir | --sharedstatedi \
312   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313   | --sharedst | --shareds | --shared | --share | --shar \
314   | --sha | --sh)
315     ac_prev=sharedstatedir ;;
316   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319   | --sha=* | --sh=*)
320     sharedstatedir="$ac_optarg" ;;
321
322   -site | --site | --sit)
323     ac_prev=site ;;
324   -site=* | --site=* | --sit=*)
325     site="$ac_optarg" ;;
326
327   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
328     ac_prev=srcdir ;;
329   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330     srcdir="$ac_optarg" ;;
331
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" ;;
338
339   -target | --target | --targe | --targ | --tar | --ta | --t)
340     ac_prev=target ;;
341   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342     target="$ac_optarg" ;;
343
344   -v | -verbose | --verbose | --verbos | --verbo | --verb)
345     verbose=yes ;;
346
347   -version | --version | --versio | --versi | --vers)
348     echo "configure generated by autoconf version 2.13"
349     exit 0 ;;
350
351   -with-* | --with-*)
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; }
356     fi
357     ac_package=`echo $ac_package| sed 's/-/_/g'`
358     case "$ac_option" in
359       *=*) ;;
360       *) ac_optarg=yes ;;
361     esac
362     eval "with_${ac_package}='$ac_optarg'" ;;
363
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; }
369     fi
370     ac_package=`echo $ac_package| sed 's/-/_/g'`
371     eval "with_${ac_package}=no" ;;
372
373   --x)
374     # Obsolete; use --with-x.
375     with_x=yes ;;
376
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" ;;
383
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" ;;
390
391   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392     ;;
393
394   *)
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
397     fi
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; }
400     fi
401     nonopt="$ac_option"
402     ;;
403
404   esac
405 done
406
407 if test -n "$ac_prev"; then
408   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 fi
410
411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
412
413 # File descriptor usage:
414 # 0 standard input
415 # 1 file creation
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
422   exec 6>/dev/null
423 else
424   exec 6>&1
425 fi
426 exec 5>./config.log
427
428 echo "\
429 This file contains any messages produced by compilers while
430 running configure, to aid debugging if configure makes a mistake.
431 " 1>&5
432
433 # Strip out --no-create and --no-recursion so they do not pile up.
434 # Also quote any args containing shell metacharacters.
435 ac_configure_args=
436 for ac_arg
437 do
438   case "$ac_arg" in
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" ;;
446   esac
447 done
448
449 # NLS nuisances.
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
458
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.
462 echo > confdefs.h
463
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
467
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.
472   ac_prog=$0
473   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
475   srcdir=$ac_confdir
476   if test ! -r $srcdir/$ac_unique_file; then
477     srcdir=..
478   fi
479 else
480   ac_srcdir_defaulted=no
481 fi
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; }
485   else
486     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487   fi
488 fi
489 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490
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"
495   else
496     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497   fi
498 fi
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"
502     . "$ac_site_file"
503   fi
504 done
505
506 if test -r "$cache_file"; then
507   echo "loading cache $cache_file"
508   . $cache_file
509 else
510   echo "creating cache $cache_file"
511   > $cache_file
512 fi
513
514 ac_ext=c
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
520
521 ac_exeext=
522 ac_objext=o
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
526     ac_n= ac_c='
527 ' ac_t='        '
528   else
529     ac_n=-n ac_c= ac_t=
530   fi
531 else
532   ac_n= ac_c='\c' ac_t=
533 fi
534
535
536 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
537 echo "configure:538: checking whether ${MAKE-make} sets \${MAKE}" >&5
538 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
539 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
540   echo $ac_n "(cached) $ac_c" 1>&6
541 else
542   cat > conftestmake <<\EOF
543 all:
544         @echo 'ac_maketemp="${MAKE}"'
545 EOF
546 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
547 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
548 if test -n "$ac_maketemp"; then
549   eval ac_cv_prog_make_${ac_make}_set=yes
550 else
551   eval ac_cv_prog_make_${ac_make}_set=no
552 fi
553 rm -f conftestmake
554 fi
555 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
556   echo "$ac_t""yes" 1>&6
557   SET_MAKE=
558 else
559   echo "$ac_t""no" 1>&6
560   SET_MAKE="MAKE=${MAKE-make}"
561 fi
562
563 ac_aux_dir=
564 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
565   if test -f $ac_dir/install-sh; then
566     ac_aux_dir=$ac_dir
567     ac_install_sh="$ac_aux_dir/install-sh -c"
568     break
569   elif test -f $ac_dir/install.sh; then
570     ac_aux_dir=$ac_dir
571     ac_install_sh="$ac_aux_dir/install.sh -c"
572     break
573   fi
574 done
575 if test -z "$ac_aux_dir"; then
576   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
577 fi
578 ac_config_guess=$ac_aux_dir/config.guess
579 ac_config_sub=$ac_aux_dir/config.sub
580 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
581
582 # Find a good install program.  We prefer a C program (faster),
583 # so one script is as good as another.  But avoid the broken or
584 # incompatible versions:
585 # SysV /etc/install, /usr/sbin/install
586 # SunOS /usr/etc/install
587 # IRIX /sbin/install
588 # AIX /bin/install
589 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
590 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
591 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
592 # ./install, which can be erroneously created by make from ./install.sh.
593 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
594 echo "configure:595: checking for a BSD compatible install" >&5
595 if test -z "$INSTALL"; then
596 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
597   echo $ac_n "(cached) $ac_c" 1>&6
598 else
599     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
600   for ac_dir in $PATH; do
601     # Account for people who put trailing slashes in PATH elements.
602     case "$ac_dir/" in
603     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
604     *)
605       # OSF1 and SCO ODT 3.0 have their own names for install.
606       # Don't use installbsd from OSF since it installs stuff as root
607       # by default.
608       for ac_prog in ginstall scoinst install; do
609         if test -f $ac_dir/$ac_prog; then
610           if test $ac_prog = install &&
611             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
612             # AIX install.  It has an incompatible calling convention.
613             :
614           else
615             ac_cv_path_install="$ac_dir/$ac_prog -c"
616             break 2
617           fi
618         fi
619       done
620       ;;
621     esac
622   done
623   IFS="$ac_save_IFS"
624
625 fi
626   if test "${ac_cv_path_install+set}" = set; then
627     INSTALL="$ac_cv_path_install"
628   else
629     # As a last resort, use the slow shell script.  We don't cache a
630     # path for INSTALL within a source directory, because that will
631     # break other packages using the cache if that directory is
632     # removed, or if the path is relative.
633     INSTALL="$ac_install_sh"
634   fi
635 fi
636 echo "$ac_t""$INSTALL" 1>&6
637
638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
639 # It thinks the first close brace ends the variable substitution.
640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
641
642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
643
644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
645
646
647 if test "${EMACS}" = "t"; then
648    EMACS=""
649 fi
650
651 # Check whether --with-xemacs or --without-xemacs was given.
652 if test "${with_xemacs+set}" = set; then
653   withval="$with_xemacs"
654    if test "${withval}" = "yes"; then EMACS=xemacs; else EMACS=${withval}; fi 
655 fi
656
657 # Check whether --with-emacs or --without-emacs was given.
658 if test "${with_emacs+set}" = set; then
659   withval="$with_emacs"
660    if test "${withval}" = "yes"; then EMACS=emacs; else EMACS=${withval}; fi 
661 fi
662
663 # Extract the first word of "makeinfo", so it can be a program name with args.
664 set dummy makeinfo; ac_word=$2
665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666 echo "configure:667: checking for $ac_word" >&5
667 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then
668   echo $ac_n "(cached) $ac_c" 1>&6
669 else
670   if test -n "$MAKEINFO"; then
671   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
672 else
673   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
674   ac_dummy="$PATH"
675   for ac_dir in $ac_dummy; do
676     test -z "$ac_dir" && ac_dir=.
677     if test -f $ac_dir/$ac_word; then
678       ac_cv_prog_MAKEINFO="makeinfo"
679       break
680     fi
681   done
682   IFS="$ac_save_ifs"
683   test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="no"
684 fi
685 fi
686 MAKEINFO="$ac_cv_prog_MAKEINFO"
687 if test -n "$MAKEINFO"; then
688   echo "$ac_t""$MAKEINFO" 1>&6
689 else
690   echo "$ac_t""no" 1>&6
691 fi
692
693
694 # Extract the first word of "emacs", so it can be a program name with args.
695 set dummy emacs; ac_word=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 echo "configure:698: checking for $ac_word" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_EMACS'+set}'`\" = set"; then
699   echo $ac_n "(cached) $ac_c" 1>&6
700 else
701   if test -n "$EMACS"; then
702   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
703 else
704   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
705   ac_dummy="$PATH"
706   for ac_dir in $ac_dummy; do
707     test -z "$ac_dir" && ac_dir=.
708     if test -f $ac_dir/$ac_word; then
709       ac_cv_prog_EMACS="emacs"
710       break
711     fi
712   done
713   IFS="$ac_save_ifs"
714   test -z "$ac_cv_prog_EMACS" && ac_cv_prog_EMACS="xemacs"
715 fi
716 fi
717 EMACS="$ac_cv_prog_EMACS"
718 if test -n "$EMACS"; then
719   echo "$ac_t""$EMACS" 1>&6
720 else
721   echo "$ac_t""no" 1>&6
722 fi
723
724
725
726   
727   echo $ac_n "checking if $EMACS is really XEmacs""... $ac_c" 1>&6
728 echo "configure:729: checking if $EMACS is really XEmacs" >&5
729   
730 elisp="(if (string-match \"XEmacs\" emacs-version) \"yes\" \"no\") "
731 if test -z ""noecho""; then
732         echo $ac_n "checking for xemacsp""... $ac_c" 1>&6
733 echo "configure:734: checking for xemacsp" >&5
734 fi
735 if eval "test \"`echo '$''{'EMACS_cv_SYS_xemacsp'+set}'`\" = set"; then
736   echo $ac_n "(cached) $ac_c" 1>&6
737 else
738   
739         OUTPUT=./conftest-$$
740         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1  
741         ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
742         retval=`cat ${OUTPUT}`
743         echo "=> ${retval}" >& 5 2>&1
744         rm -f ${OUTPUT}
745         EMACS_cv_SYS_xemacsp=$retval
746
747 fi
748
749 xemacsp=${EMACS_cv_SYS_xemacsp}
750 if test -z ""noecho""; then
751         echo "$ac_t""$xemacsp" 1>&6
752 fi
753
754   XEMACS=${EMACS_cv_SYS_xemacsp}
755   EMACS_FLAVOR=emacs
756   if test "$XEMACS" = "yes"; then
757      EMACS_FLAVOR=xemacs
758   fi
759   echo "$ac_t""$XEMACS" 1>&6
760   
761   
762
763   if test "$prefix" = "NONE"; then
764         echo $ac_n "checking prefix for your Emacs""... $ac_c" 1>&6
765 echo "configure:766: checking prefix for your Emacs" >&5
766         
767 elisp="(expand-file-name \"..\" invocation-directory)"
768 if test -z ""noecho""; then
769         echo $ac_n "checking for prefix""... $ac_c" 1>&6
770 echo "configure:771: checking for prefix" >&5
771 fi
772 if eval "test \"`echo '$''{'EMACS_cv_SYS_prefix'+set}'`\" = set"; then
773   echo $ac_n "(cached) $ac_c" 1>&6
774 else
775   
776         OUTPUT=./conftest-$$
777         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1  
778         ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
779         retval=`cat ${OUTPUT}`
780         echo "=> ${retval}" >& 5 2>&1
781         rm -f ${OUTPUT}
782         EMACS_cv_SYS_prefix=$retval
783
784 fi
785
786 prefix=${EMACS_cv_SYS_prefix}
787 if test -z ""noecho""; then
788         echo "$ac_t""$prefix" 1>&6
789 fi
790
791         prefix=${EMACS_cv_SYS_prefix}
792         echo "$ac_t""$prefix" 1>&6
793   fi
794   # Check whether --with-lispdir or --without-lispdir was given.
795 if test "${with_lispdir+set}" = set; then
796   withval="$with_lispdir"
797   lispdir=${withval}
798 fi
799
800   echo $ac_n "checking where .elc files should go""... $ac_c" 1>&6
801 echo "configure:802: checking where .elc files should go" >&5
802   if test -z "$lispdir"; then
803         theprefix=$prefix
804     if test "x$theprefix" = "xNONE"; then
805         theprefix=$ac_default_prefix
806     fi
807     lispdir="\$(datadir)/${EMACS_FLAVOR}/site-lisp"
808     for thedir in share lib; do
809         potential=
810         if test -d ${theprefix}/${thedir}/${EMACS_FLAVOR}/site-lisp; then
811            lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-lisp"
812            break
813         fi
814     done
815   fi
816   echo "$ac_t""$lispdir" 1>&6
817   
818
819
820   # Check whether --with-etcdir or --without-etcdir was given.
821 if test "${with_etcdir+set}" = set; then
822   withval="$with_etcdir"
823   etcdir=${withval}
824 fi
825
826   echo $ac_n "checking where etc files should go""... $ac_c" 1>&6
827 echo "configure:828: checking where etc files should go" >&5
828   if test -z "$etcdir"; then
829         etcdir="\$(lispdir)/../etc"
830   fi
831   echo "$ac_t""$etcdir" 1>&6
832   
833
834
835 echo $ac_n "checking for acceptable URL version""... $ac_c" 1>&6
836 echo "configure:837: checking for acceptable URL version" >&5
837 if eval "test \"`echo '$''{'EMACS_cv_ACCEPTABLE_URL'+set}'`\" = set"; then
838   echo $ac_n "(cached) $ac_c" 1>&6
839 else
840   
841
842 if test -z ""noecho""; then
843         echo $ac_n "checking for url-retrieve in url""... $ac_c" 1>&6
844 echo "configure:845: checking for url-retrieve in url" >&5
845 fi
846 library=`echo url | tr _ -`
847
848 elisp="(progn (fmakunbound 'url-retrieve) (condition-case nil (progn (require '$library) (fboundp 'url-retrieve)) (error (prog1 nil (message \"$library not found\")))))"
849 if test -z ""noecho""; then
850         echo $ac_n "checking for url""... $ac_c" 1>&6
851 echo "configure:852: checking for url" >&5
852 fi
853 if eval "test \"`echo '$''{'EMACS_cv_SYS_url'+set}'`\" = set"; then
854   echo $ac_n "(cached) $ac_c" 1>&6
855 else
856   
857         OUTPUT=./conftest-$$
858         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1  
859         ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
860         retval=`cat ${OUTPUT}`
861         echo "=> ${retval}" >& 5 2>&1
862         rm -f ${OUTPUT}
863         EMACS_cv_SYS_url=$retval
864
865 fi
866
867 url=${EMACS_cv_SYS_url}
868 if test -z ""noecho""; then
869         echo "$ac_t""$url" 1>&6
870 fi
871
872 if test "${EMACS_cv_SYS_url}" = "nil"; then
873         EMACS_cv_SYS_url=no
874 fi
875 if test "${EMACS_cv_SYS_url}" = "t"; then
876         EMACS_cv_SYS_url=yes
877 fi
878 HAVE_url=${EMACS_cv_SYS_url}
879
880 if test -z ""noecho""; then
881         echo "$ac_t""$HAVE_url" 1>&6
882 fi
883
884 if test "${HAVE_url}" = "yes"; then
885         EMACS_cv_ACCEPTABLE_URL=yes
886 else
887         EMACS_cv_ACCEPTABLE_URL=no
888 fi
889
890 if test "${EMACS_cv_ACCEPTABLE_URL}" = "yes"; then
891         
892 elisp="(file-name-directory (locate-library \"url\"))"
893 if test -z ""noecho""; then
894         echo $ac_n "checking for url_dir""... $ac_c" 1>&6
895 echo "configure:896: checking for url_dir" >&5
896 fi
897 if eval "test \"`echo '$''{'EMACS_cv_SYS_url_dir'+set}'`\" = set"; then
898   echo $ac_n "(cached) $ac_c" 1>&6
899 else
900   
901         OUTPUT=./conftest-$$
902         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1  
903         ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
904         retval=`cat ${OUTPUT}`
905         echo "=> ${retval}" >& 5 2>&1
906         rm -f ${OUTPUT}
907         EMACS_cv_SYS_url_dir=$retval
908
909 fi
910
911 url_dir=${EMACS_cv_SYS_url_dir}
912 if test -z ""noecho""; then
913         echo "$ac_t""$url_dir" 1>&6
914 fi
915
916         EMACS_cv_ACCEPTABLE_URL=$EMACS_cv_SYS_url_dir
917 fi
918
919 fi
920
921    # Check whether --with-url or --without-url was given.
922 if test "${with_url+set}" = set; then
923   withval="$with_url"
924    EMACS_cv_ACCEPTABLE_URL=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null` 
925 fi
926
927    URL=${EMACS_cv_ACCEPTABLE_URL}
928    
929    echo "$ac_t"""${URL}"" 1>&6
930
931
932 echo $ac_n "checking for acceptable W3 version""... $ac_c" 1>&6
933 echo "configure:934: checking for acceptable W3 version" >&5
934 if eval "test \"`echo '$''{'EMACS_cv_ACCEPTABLE_W3'+set}'`\" = set"; then
935   echo $ac_n "(cached) $ac_c" 1>&6
936 else
937   
938
939 if test -z ""noecho""; then
940         echo $ac_n "checking for w3-form-encode-xwfu in w3_forms""... $ac_c" 1>&6
941 echo "configure:942: checking for w3-form-encode-xwfu in w3_forms" >&5
942 fi
943 library=`echo w3_forms | tr _ -`
944
945 elisp="(progn (fmakunbound 'w3-form-encode-xwfu) (condition-case nil (progn (require '$library) (fboundp 'w3-form-encode-xwfu)) (error (prog1 nil (message \"$library not found\")))))"
946 if test -z ""noecho""; then
947         echo $ac_n "checking for w3_forms""... $ac_c" 1>&6
948 echo "configure:949: checking for w3_forms" >&5
949 fi
950 if eval "test \"`echo '$''{'EMACS_cv_SYS_w3_forms'+set}'`\" = set"; then
951   echo $ac_n "(cached) $ac_c" 1>&6
952 else
953   
954         OUTPUT=./conftest-$$
955         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1  
956         ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
957         retval=`cat ${OUTPUT}`
958         echo "=> ${retval}" >& 5 2>&1
959         rm -f ${OUTPUT}
960         EMACS_cv_SYS_w3_forms=$retval
961
962 fi
963
964 w3_forms=${EMACS_cv_SYS_w3_forms}
965 if test -z ""noecho""; then
966         echo "$ac_t""$w3_forms" 1>&6
967 fi
968
969 if test "${EMACS_cv_SYS_w3_forms}" = "nil"; then
970         EMACS_cv_SYS_w3_forms=no
971 fi
972 if test "${EMACS_cv_SYS_w3_forms}" = "t"; then
973         EMACS_cv_SYS_w3_forms=yes
974 fi
975 HAVE_w3_forms=${EMACS_cv_SYS_w3_forms}
976
977 if test -z ""noecho""; then
978         echo "$ac_t""$HAVE_w3_forms" 1>&6
979 fi
980
981 if test "${HAVE_w3_forms}" = "yes"; then
982         EMACS_cv_ACCEPTABLE_W3=yes
983 else
984         EMACS_cv_ACCEPTABLE_W3=no
985 fi
986
987 if test "${EMACS_cv_ACCEPTABLE_W3}" = "yes"; then
988         
989 elisp="(file-name-directory (locate-library \"w3-forms\"))"
990 if test -z ""noecho""; then
991         echo $ac_n "checking for w3_dir""... $ac_c" 1>&6
992 echo "configure:993: checking for w3_dir" >&5
993 fi
994 if eval "test \"`echo '$''{'EMACS_cv_SYS_w3_dir'+set}'`\" = set"; then
995   echo $ac_n "(cached) $ac_c" 1>&6
996 else
997   
998         OUTPUT=./conftest-$$
999         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1  
1000         ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
1001         retval=`cat ${OUTPUT}`
1002         echo "=> ${retval}" >& 5 2>&1
1003         rm -f ${OUTPUT}
1004         EMACS_cv_SYS_w3_dir=$retval
1005
1006 fi
1007
1008 w3_dir=${EMACS_cv_SYS_w3_dir}
1009 if test -z ""noecho""; then
1010         echo "$ac_t""$w3_dir" 1>&6
1011 fi
1012
1013         EMACS_cv_ACCEPTABLE_W3=$EMACS_cv_SYS_w3_dir
1014 fi
1015
1016 fi
1017
1018    # Check whether --with-w3 or --without-w3 was given.
1019 if test "${with_w3+set}" = set; then
1020   withval="$with_w3"
1021    EMACS_cv_ACCEPTABLE_W3=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null` 
1022 fi
1023
1024    W3=${EMACS_cv_ACCEPTABLE_W3}
1025    
1026    echo "$ac_t"""${W3}"" 1>&6
1027
1028
1029 trap '' 1 2 15
1030 cat > confcache <<\EOF
1031 # This file is a shell script that caches the results of configure
1032 # tests run on this system so they can be shared between configure
1033 # scripts and configure runs.  It is not useful on other systems.
1034 # If it contains results you don't want to keep, you may remove or edit it.
1035 #
1036 # By default, configure uses ./config.cache as the cache file,
1037 # creating it if it does not exist already.  You can give configure
1038 # the --cache-file=FILE option to use a different cache file; that is
1039 # what configure does when it calls configure scripts in
1040 # subdirectories, so they share the cache.
1041 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1042 # config.status only pays attention to the cache file if you give it the
1043 # --recheck option to rerun configure.
1044 #
1045 EOF
1046 # The following way of writing the cache mishandles newlines in values,
1047 # but we know of no workaround that is simple, portable, and efficient.
1048 # So, don't put newlines in cache variables' values.
1049 # Ultrix sh set writes to stderr and can't be redirected directly,
1050 # and sets the high bit in the cache file unless we assign to the vars.
1051 (set) 2>&1 |
1052   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1053   *ac_space=\ *)
1054     # `set' does not quote correctly, so add quotes (double-quote substitution
1055     # turns \\\\ into \\, and sed turns \\ into \).
1056     sed -n \
1057       -e "s/'/'\\\\''/g" \
1058       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1059     ;;
1060   *)
1061     # `set' quotes correctly as required by POSIX, so do not add quotes.
1062     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1063     ;;
1064   esac >> confcache
1065 if cmp -s $cache_file confcache; then
1066   :
1067 else
1068   if test -w $cache_file; then
1069     echo "updating cache $cache_file"
1070     cat confcache > $cache_file
1071   else
1072     echo "not updating unwritable cache $cache_file"
1073   fi
1074 fi
1075 rm -f confcache
1076
1077 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1078
1079 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1080 # Let make expand exec_prefix.
1081 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1082
1083 # Any assignment to VPATH causes Sun make to only execute
1084 # the first set of double-colon rules, so remove it if not needed.
1085 # If there is a colon in the path, we need to keep it.
1086 if test "x$srcdir" = x.; then
1087   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1088 fi
1089
1090 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1091
1092 # Transform confdefs.h into DEFS.
1093 # Protect against shell expansion while executing Makefile rules.
1094 # Protect against Makefile macro expansion.
1095 cat > conftest.defs <<\EOF
1096 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1097 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1098 s%\[%\\&%g
1099 s%\]%\\&%g
1100 s%\$%$$%g
1101 EOF
1102 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1103 rm -f conftest.defs
1104
1105
1106 # Without the "./", some shells look in PATH for config.status.
1107 : ${CONFIG_STATUS=./config.status}
1108
1109 echo creating $CONFIG_STATUS
1110 rm -f $CONFIG_STATUS
1111 cat > $CONFIG_STATUS <<EOF
1112 #! /bin/sh
1113 # Generated automatically by configure.
1114 # Run this file to recreate the current configuration.
1115 # This directory was configured as follows,
1116 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1117 #
1118 # $0 $ac_configure_args
1119 #
1120 # Compiler output produced by configure, useful for debugging
1121 # configure, is in ./config.log if it exists.
1122
1123 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1124 for ac_option
1125 do
1126   case "\$ac_option" in
1127   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1128     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1129     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1130   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1131     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1132     exit 0 ;;
1133   -help | --help | --hel | --he | --h)
1134     echo "\$ac_cs_usage"; exit 0 ;;
1135   *) echo "\$ac_cs_usage"; exit 1 ;;
1136   esac
1137 done
1138
1139 ac_given_srcdir=$srcdir
1140 ac_given_INSTALL="$INSTALL"
1141
1142 trap 'rm -fr `echo "Makefile lisp/Makefile texi/Makefile etc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1143 EOF
1144 cat >> $CONFIG_STATUS <<EOF
1145
1146 # Protect against being on the right side of a sed subst in config.status.
1147 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1148  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1149 $ac_vpsub
1150 $extrasub
1151 s%@SHELL@%$SHELL%g
1152 s%@CFLAGS@%$CFLAGS%g
1153 s%@CPPFLAGS@%$CPPFLAGS%g
1154 s%@CXXFLAGS@%$CXXFLAGS%g
1155 s%@FFLAGS@%$FFLAGS%g
1156 s%@DEFS@%$DEFS%g
1157 s%@LDFLAGS@%$LDFLAGS%g
1158 s%@LIBS@%$LIBS%g
1159 s%@exec_prefix@%$exec_prefix%g
1160 s%@prefix@%$prefix%g
1161 s%@program_transform_name@%$program_transform_name%g
1162 s%@bindir@%$bindir%g
1163 s%@sbindir@%$sbindir%g
1164 s%@libexecdir@%$libexecdir%g
1165 s%@datadir@%$datadir%g
1166 s%@sysconfdir@%$sysconfdir%g
1167 s%@sharedstatedir@%$sharedstatedir%g
1168 s%@localstatedir@%$localstatedir%g
1169 s%@libdir@%$libdir%g
1170 s%@includedir@%$includedir%g
1171 s%@oldincludedir@%$oldincludedir%g
1172 s%@infodir@%$infodir%g
1173 s%@mandir@%$mandir%g
1174 s%@SET_MAKE@%$SET_MAKE%g
1175 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1176 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1177 s%@INSTALL_DATA@%$INSTALL_DATA%g
1178 s%@MAKEINFO@%$MAKEINFO%g
1179 s%@EMACS@%$EMACS%g
1180 s%@XEMACS@%$XEMACS%g
1181 s%@EMACS_FLAVOR@%$EMACS_FLAVOR%g
1182 s%@lispdir@%$lispdir%g
1183 s%@etcdir@%$etcdir%g
1184 s%@HAVE_url@%$HAVE_url%g
1185 s%@URL@%$URL%g
1186 s%@HAVE_w3_forms@%$HAVE_w3_forms%g
1187 s%@W3@%$W3%g
1188
1189 CEOF
1190 EOF
1191
1192 cat >> $CONFIG_STATUS <<\EOF
1193
1194 # Split the substitutions into bite-sized pieces for seds with
1195 # small command number limits, like on Digital OSF/1 and HP-UX.
1196 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1197 ac_file=1 # Number of current file.
1198 ac_beg=1 # First line for current file.
1199 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1200 ac_more_lines=:
1201 ac_sed_cmds=""
1202 while $ac_more_lines; do
1203   if test $ac_beg -gt 1; then
1204     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1205   else
1206     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1207   fi
1208   if test ! -s conftest.s$ac_file; then
1209     ac_more_lines=false
1210     rm -f conftest.s$ac_file
1211   else
1212     if test -z "$ac_sed_cmds"; then
1213       ac_sed_cmds="sed -f conftest.s$ac_file"
1214     else
1215       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1216     fi
1217     ac_file=`expr $ac_file + 1`
1218     ac_beg=$ac_end
1219     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1220   fi
1221 done
1222 if test -z "$ac_sed_cmds"; then
1223   ac_sed_cmds=cat
1224 fi
1225 EOF
1226
1227 cat >> $CONFIG_STATUS <<EOF
1228
1229 CONFIG_FILES=\${CONFIG_FILES-"Makefile lisp/Makefile texi/Makefile etc/Makefile"}
1230 EOF
1231 cat >> $CONFIG_STATUS <<\EOF
1232 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1233   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1234   case "$ac_file" in
1235   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1236        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1237   *) ac_file_in="${ac_file}.in" ;;
1238   esac
1239
1240   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1241
1242   # Remove last slash and all that follows it.  Not all systems have dirname.
1243   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1244   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1245     # The file is in a subdirectory.
1246     test ! -d "$ac_dir" && mkdir "$ac_dir"
1247     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1248     # A "../" for each directory in $ac_dir_suffix.
1249     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1250   else
1251     ac_dir_suffix= ac_dots=
1252   fi
1253
1254   case "$ac_given_srcdir" in
1255   .)  srcdir=.
1256       if test -z "$ac_dots"; then top_srcdir=.
1257       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1258   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1259   *) # Relative path.
1260     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1261     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1262   esac
1263
1264   case "$ac_given_INSTALL" in
1265   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1266   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1267   esac
1268
1269   echo creating "$ac_file"
1270   rm -f "$ac_file"
1271   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1272   case "$ac_file" in
1273   *Makefile*) ac_comsub="1i\\
1274 # $configure_input" ;;
1275   *) ac_comsub= ;;
1276   esac
1277
1278   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1279   sed -e "$ac_comsub
1280 s%@configure_input@%$configure_input%g
1281 s%@srcdir@%$srcdir%g
1282 s%@top_srcdir@%$top_srcdir%g
1283 s%@INSTALL@%$INSTALL%g
1284 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1285 fi; done
1286 rm -f conftest.s*
1287
1288 EOF
1289 cat >> $CONFIG_STATUS <<EOF
1290
1291 EOF
1292 cat >> $CONFIG_STATUS <<\EOF
1293
1294 exit 0
1295 EOF
1296 chmod +x $CONFIG_STATUS
1297 rm -fr confdefs* $ac_clean_files
1298 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1299