This commit was generated by cvs2svn to compensate for changes in r6105,
[elisp/gnus.git-] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # 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.
9
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25   emulate sh
26   NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28   set -o posix
29 fi
30
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35   as_expr=expr
36 else
37   as_expr=false
38 fi
39
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43   # We could just check for DJGPP; but this test a) works b) is more generic
44   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45   if test -f conf$$.exe; then
46     # Don't use ln at all; we don't have any links
47     as_ln_s='cp -p'
48   else
49     as_ln_s='ln -s'
50   fi
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52   as_ln_s=ln
53 else
54   as_ln_s='cp -p'
55 fi
56 rm -f conf$$ conf$$.exe conf$$.file
57
58 as_executable_p="test -f"
59
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62   as_unset=unset
63 else
64   as_unset=false
65 fi
66
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
80 '
81 IFS="   $as_nl"
82
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91 exec 6>&1
92
93 #
94 # Initializations.
95 #
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
101
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete.  It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
106
107 ac_unique_file="lisp/gnus.el"
108
109 # Initialize some variables set by options.
110 ac_init_help=
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
114 cache_file=/dev/null
115 exec_prefix=NONE
116 no_create=
117 no_recursion=
118 prefix=NONE
119 program_prefix=NONE
120 program_suffix=NONE
121 program_transform_name=s,x,x,
122 silent=
123 site=
124 srcdir=
125 verbose=
126 x_includes=NONE
127 x_libraries=NONE
128
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datadir='${prefix}/share'
138 sysconfdir='${prefix}/etc'
139 sharedstatedir='${prefix}/com'
140 localstatedir='${prefix}/var'
141 libdir='${exec_prefix}/lib'
142 includedir='${prefix}/include'
143 oldincludedir='/usr/include'
144 infodir='${prefix}/info'
145 mandir='${prefix}/man'
146
147 # Identity of this package.
148 PACKAGE_NAME=
149 PACKAGE_TARNAME=
150 PACKAGE_VERSION=
151 PACKAGE_STRING=
152 PACKAGE_BUGREPORT=
153
154 ac_prev=
155 for ac_option
156 do
157   # If the previous option needs an argument, assign it.
158   if test -n "$ac_prev"; then
159     eval "$ac_prev=\$ac_option"
160     ac_prev=
161     continue
162   fi
163
164   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
165
166   # Accept the important Cygnus configure options, so we can diagnose typos.
167
168   case $ac_option in
169
170   -bindir | --bindir | --bindi | --bind | --bin | --bi)
171     ac_prev=bindir ;;
172   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
173     bindir=$ac_optarg ;;
174
175   -build | --build | --buil | --bui | --bu)
176     ac_prev=build_alias ;;
177   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178     build_alias=$ac_optarg ;;
179
180   -cache-file | --cache-file | --cache-fil | --cache-fi \
181   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182     ac_prev=cache_file ;;
183   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185     cache_file=$ac_optarg ;;
186
187   --config-cache | -C)
188     cache_file=config.cache ;;
189
190   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
191     ac_prev=datadir ;;
192   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
193   | --da=*)
194     datadir=$ac_optarg ;;
195
196   -disable-* | --disable-*)
197     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198     # Reject names that are not valid shell variable names.
199     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
200       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201    { (exit 1); exit 1; }; }
202     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203     eval "enable_$ac_feature=no" ;;
204
205   -enable-* | --enable-*)
206     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
207     # Reject names that are not valid shell variable names.
208     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210    { (exit 1); exit 1; }; }
211     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212     case $ac_option in
213       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
214       *) ac_optarg=yes ;;
215     esac
216     eval "enable_$ac_feature='$ac_optarg'" ;;
217
218   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220   | --exec | --exe | --ex)
221     ac_prev=exec_prefix ;;
222   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224   | --exec=* | --exe=* | --ex=*)
225     exec_prefix=$ac_optarg ;;
226
227   -gas | --gas | --ga | --g)
228     # Obsolete; use --with-gas.
229     with_gas=yes ;;
230
231   -help | --help | --hel | --he | -h)
232     ac_init_help=long ;;
233   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234     ac_init_help=recursive ;;
235   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236     ac_init_help=short ;;
237
238   -host | --host | --hos | --ho)
239     ac_prev=host_alias ;;
240   -host=* | --host=* | --hos=* | --ho=*)
241     host_alias=$ac_optarg ;;
242
243   -includedir | --includedir | --includedi | --included | --include \
244   | --includ | --inclu | --incl | --inc)
245     ac_prev=includedir ;;
246   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247   | --includ=* | --inclu=* | --incl=* | --inc=*)
248     includedir=$ac_optarg ;;
249
250   -infodir | --infodir | --infodi | --infod | --info | --inf)
251     ac_prev=infodir ;;
252   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253     infodir=$ac_optarg ;;
254
255   -libdir | --libdir | --libdi | --libd)
256     ac_prev=libdir ;;
257   -libdir=* | --libdir=* | --libdi=* | --libd=*)
258     libdir=$ac_optarg ;;
259
260   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261   | --libexe | --libex | --libe)
262     ac_prev=libexecdir ;;
263   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264   | --libexe=* | --libex=* | --libe=*)
265     libexecdir=$ac_optarg ;;
266
267   -localstatedir | --localstatedir | --localstatedi | --localstated \
268   | --localstate | --localstat | --localsta | --localst \
269   | --locals | --local | --loca | --loc | --lo)
270     ac_prev=localstatedir ;;
271   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274     localstatedir=$ac_optarg ;;
275
276   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277     ac_prev=mandir ;;
278   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279     mandir=$ac_optarg ;;
280
281   -nfp | --nfp | --nf)
282     # Obsolete; use --without-fp.
283     with_fp=no ;;
284
285   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286   | --no-cr | --no-c)
287     no_create=yes ;;
288
289   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291     no_recursion=yes ;;
292
293   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295   | --oldin | --oldi | --old | --ol | --o)
296     ac_prev=oldincludedir ;;
297   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300     oldincludedir=$ac_optarg ;;
301
302   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303     ac_prev=prefix ;;
304   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305     prefix=$ac_optarg ;;
306
307   -program-prefix | --program-prefix | --program-prefi | --program-pref \
308   | --program-pre | --program-pr | --program-p)
309     ac_prev=program_prefix ;;
310   -program-prefix=* | --program-prefix=* | --program-prefi=* \
311   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312     program_prefix=$ac_optarg ;;
313
314   -program-suffix | --program-suffix | --program-suffi | --program-suff \
315   | --program-suf | --program-su | --program-s)
316     ac_prev=program_suffix ;;
317   -program-suffix=* | --program-suffix=* | --program-suffi=* \
318   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319     program_suffix=$ac_optarg ;;
320
321   -program-transform-name | --program-transform-name \
322   | --program-transform-nam | --program-transform-na \
323   | --program-transform-n | --program-transform- \
324   | --program-transform | --program-transfor \
325   | --program-transfo | --program-transf \
326   | --program-trans | --program-tran \
327   | --progr-tra | --program-tr | --program-t)
328     ac_prev=program_transform_name ;;
329   -program-transform-name=* | --program-transform-name=* \
330   | --program-transform-nam=* | --program-transform-na=* \
331   | --program-transform-n=* | --program-transform-=* \
332   | --program-transform=* | --program-transfor=* \
333   | --program-transfo=* | --program-transf=* \
334   | --program-trans=* | --program-tran=* \
335   | --progr-tra=* | --program-tr=* | --program-t=*)
336     program_transform_name=$ac_optarg ;;
337
338   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339   | -silent | --silent | --silen | --sile | --sil)
340     silent=yes ;;
341
342   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343     ac_prev=sbindir ;;
344   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345   | --sbi=* | --sb=*)
346     sbindir=$ac_optarg ;;
347
348   -sharedstatedir | --sharedstatedir | --sharedstatedi \
349   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350   | --sharedst | --shareds | --shared | --share | --shar \
351   | --sha | --sh)
352     ac_prev=sharedstatedir ;;
353   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356   | --sha=* | --sh=*)
357     sharedstatedir=$ac_optarg ;;
358
359   -site | --site | --sit)
360     ac_prev=site ;;
361   -site=* | --site=* | --sit=*)
362     site=$ac_optarg ;;
363
364   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365     ac_prev=srcdir ;;
366   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367     srcdir=$ac_optarg ;;
368
369   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370   | --syscon | --sysco | --sysc | --sys | --sy)
371     ac_prev=sysconfdir ;;
372   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374     sysconfdir=$ac_optarg ;;
375
376   -target | --target | --targe | --targ | --tar | --ta | --t)
377     ac_prev=target_alias ;;
378   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379     target_alias=$ac_optarg ;;
380
381   -v | -verbose | --verbose | --verbos | --verbo | --verb)
382     verbose=yes ;;
383
384   -version | --version | --versio | --versi | --vers | -V)
385     ac_init_version=: ;;
386
387   -with-* | --with-*)
388     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389     # Reject names that are not valid shell variable names.
390     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
391       { echo "$as_me: error: invalid package name: $ac_package" >&2
392    { (exit 1); exit 1; }; }
393     ac_package=`echo $ac_package| sed 's/-/_/g'`
394     case $ac_option in
395       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
396       *) ac_optarg=yes ;;
397     esac
398     eval "with_$ac_package='$ac_optarg'" ;;
399
400   -without-* | --without-*)
401     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402     # Reject names that are not valid shell variable names.
403     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404       { echo "$as_me: error: invalid package name: $ac_package" >&2
405    { (exit 1); exit 1; }; }
406     ac_package=`echo $ac_package | sed 's/-/_/g'`
407     eval "with_$ac_package=no" ;;
408
409   --x)
410     # Obsolete; use --with-x.
411     with_x=yes ;;
412
413   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414   | --x-incl | --x-inc | --x-in | --x-i)
415     ac_prev=x_includes ;;
416   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418     x_includes=$ac_optarg ;;
419
420   -x-libraries | --x-libraries | --x-librarie | --x-librari \
421   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422     ac_prev=x_libraries ;;
423   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425     x_libraries=$ac_optarg ;;
426
427   -*) { echo "$as_me: error: unrecognized option: $ac_option
428 Try \`$0 --help' for more information." >&2
429    { (exit 1); exit 1; }; }
430     ;;
431
432   *=*)
433     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434     # Reject names that are not valid shell variable names.
435     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
436       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437    { (exit 1); exit 1; }; }
438     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439     eval "$ac_envvar='$ac_optarg'"
440     export $ac_envvar ;;
441
442   *)
443     # FIXME: should be removed in autoconf 3.0.
444     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
446       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
448     ;;
449
450   esac
451 done
452
453 if test -n "$ac_prev"; then
454   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455   { echo "$as_me: error: missing argument to $ac_option" >&2
456    { (exit 1); exit 1; }; }
457 fi
458
459 # Be sure to have absolute paths.
460 for ac_var in exec_prefix prefix
461 do
462   eval ac_val=$`echo $ac_var`
463   case $ac_val in
464     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
465     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
466    { (exit 1); exit 1; }; };;
467   esac
468 done
469
470 # Be sure to have absolute paths.
471 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
472               localstatedir libdir includedir oldincludedir infodir mandir
473 do
474   eval ac_val=$`echo $ac_var`
475   case $ac_val in
476     [\\/$]* | ?:[\\/]* ) ;;
477     *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
478    { (exit 1); exit 1; }; };;
479   esac
480 done
481
482 # There might be people who depend on the old broken behavior: `$host'
483 # used to hold the argument of --host etc.
484 build=$build_alias
485 host=$host_alias
486 target=$target_alias
487
488 # FIXME: should be removed in autoconf 3.0.
489 if test "x$host_alias" != x; then
490   if test "x$build_alias" = x; then
491     cross_compiling=maybe
492     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
493     If a cross compiler is detected then cross compile mode will be used." >&2
494   elif test "x$build_alias" != "x$host_alias"; then
495     cross_compiling=yes
496   fi
497 fi
498
499 ac_tool_prefix=
500 test -n "$host_alias" && ac_tool_prefix=$host_alias-
501
502 test "$silent" = yes && exec 6>/dev/null
503
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506   ac_srcdir_defaulted=yes
507   # Try the directory containing this script, then its parent.
508   ac_prog=$0
509   ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
510   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
511   srcdir=$ac_confdir
512   if test ! -r $srcdir/$ac_unique_file; then
513     srcdir=..
514   fi
515 else
516   ac_srcdir_defaulted=no
517 fi
518 if test ! -r $srcdir/$ac_unique_file; then
519   if test "$ac_srcdir_defaulted" = yes; then
520     { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
521    { (exit 1); exit 1; }; }
522   else
523     { echo "$as_me: error: cannot find sources in $srcdir" >&2
524    { (exit 1); exit 1; }; }
525   fi
526 fi
527 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
528 ac_env_build_alias_set=${build_alias+set}
529 ac_env_build_alias_value=$build_alias
530 ac_cv_env_build_alias_set=${build_alias+set}
531 ac_cv_env_build_alias_value=$build_alias
532 ac_env_host_alias_set=${host_alias+set}
533 ac_env_host_alias_value=$host_alias
534 ac_cv_env_host_alias_set=${host_alias+set}
535 ac_cv_env_host_alias_value=$host_alias
536 ac_env_target_alias_set=${target_alias+set}
537 ac_env_target_alias_value=$target_alias
538 ac_cv_env_target_alias_set=${target_alias+set}
539 ac_cv_env_target_alias_value=$target_alias
540
541 #
542 # Report the --help message.
543 #
544 if test "$ac_init_help" = "long"; then
545   # Omit some internal or obsolete options to make the list less imposing.
546   # This message is too long to be a string in the A/UX 3.1 sh.
547   cat <<EOF
548 \`configure' configures this package to adapt to many kinds of systems.
549
550 Usage: $0 [OPTION]... [VAR=VALUE]...
551
552 To assign environment variables (e.g., CC, CFLAGS...), specify them as
553 VAR=VALUE.  See below for descriptions of some of the useful variables.
554
555 Defaults for the options are specified in brackets.
556
557 Configuration:
558   -h, --help              display this help and exit
559       --help=short        display options specific to this package
560       --help=recursive    display the short help of all the included packages
561   -V, --version           display version information and exit
562   -q, --quiet, --silent   do not print \`checking...' messages
563       --cache-file=FILE   cache test results in FILE [disabled]
564   -C, --config-cache      alias for \`--cache-file=config.cache'
565   -n, --no-create         do not create output files
566       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
567
568 EOF
569
570   cat <<EOF
571 Installation directories:
572   --prefix=PREFIX         install architecture-independent files in PREFIX
573                           [$ac_default_prefix]
574   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
575                           [PREFIX]
576
577 By default, \`make install' will install all the files in
578 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
579 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
580 for instance \`--prefix=\$HOME'.
581
582 For better control, use the options below.
583
584 Fine tuning of the installation directories:
585   --bindir=DIR           user executables [EPREFIX/bin]
586   --sbindir=DIR          system admin executables [EPREFIX/sbin]
587   --libexecdir=DIR       program executables [EPREFIX/libexec]
588   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
589   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
590   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
591   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
592   --libdir=DIR           object code libraries [EPREFIX/lib]
593   --includedir=DIR       C header files [PREFIX/include]
594   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
595   --infodir=DIR          info documentation [PREFIX/info]
596   --mandir=DIR           man documentation [PREFIX/man]
597 EOF
598
599   cat <<\EOF
600 EOF
601 fi
602
603 if test -n "$ac_init_help"; then
604
605   cat <<\EOF
606
607 Optional Packages:
608   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
609   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
610   --with-xemacs           Use XEmacs to build
611   --with-emacs            Use Emacs to build
612   --with-lispdir=DIR      Where to install lisp files
613   --with-etcdir=DIR       Where to install etc files
614   --with-url=DIR          Specify where to find the url package
615   --with-w3=DIR           Specify where to find the w3 package
616   --with-fonts            Assume all fonts required are available
617
618 EOF
619 fi
620
621 if test "$ac_init_help" = "recursive"; then
622   # If there are subdirs, report their specific --help.
623   ac_popdir=`pwd`
624   for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
625     cd $ac_subdir
626     # A "../" for each directory in /$ac_subdir.
627     ac_dots=`echo $ac_subdir |
628              sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
629
630     case $srcdir in
631     .) # No --srcdir option.  We are building in place.
632       ac_sub_srcdir=$srcdir ;;
633     [\\/]* | ?:[\\/]* ) # Absolute path.
634       ac_sub_srcdir=$srcdir/$ac_subdir ;;
635     *) # Relative path.
636       ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
637     esac
638
639     # Check for guested configure; otherwise get Cygnus style configure.
640     if test -f $ac_sub_srcdir/configure.gnu; then
641       echo
642       $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
643     elif test -f $ac_sub_srcdir/configure; then
644       echo
645       $SHELL $ac_sub_srcdir/configure  --help=recursive
646     elif test -f $ac_sub_srcdir/configure.ac ||
647            test -f $ac_sub_srcdir/configure.in; then
648       echo
649       $ac_configure --help
650     else
651       echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
652     fi
653     cd $ac_popdir
654   done
655 fi
656
657 test -n "$ac_init_help" && exit 0
658 if $ac_init_version; then
659   cat <<\EOF
660
661 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
662 Free Software Foundation, Inc.
663 This configure script is free software; the Free Software Foundation
664 gives unlimited permission to copy, distribute and modify it.
665 EOF
666   exit 0
667 fi
668 exec 5>config.log
669 cat >&5 <<EOF
670 This file contains any messages produced by compilers while
671 running configure, to aid debugging if configure makes a mistake.
672
673 It was created by $as_me, which was
674 generated by GNU Autoconf 2.52.  Invocation command line was
675
676   $ $0 $@
677
678 EOF
679 {
680 cat <<_ASUNAME
681 ## ---------- ##
682 ## Platform.  ##
683 ## ---------- ##
684
685 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
686 uname -m = `(uname -m) 2>/dev/null || echo unknown`
687 uname -r = `(uname -r) 2>/dev/null || echo unknown`
688 uname -s = `(uname -s) 2>/dev/null || echo unknown`
689 uname -v = `(uname -v) 2>/dev/null || echo unknown`
690
691 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
692 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
693
694 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
695 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
696 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
697 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
698 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
699 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
700 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
701
702 PATH = $PATH
703
704 _ASUNAME
705 } >&5
706
707 cat >&5 <<EOF
708 ## ------------ ##
709 ## Core tests.  ##
710 ## ------------ ##
711
712 EOF
713
714 # Keep a trace of the command line.
715 # Strip out --no-create and --no-recursion so they do not pile up.
716 # Also quote any args containing shell meta-characters.
717 ac_configure_args=
718 ac_sep=
719 for ac_arg
720 do
721   case $ac_arg in
722   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
723   | --no-cr | --no-c) ;;
724   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
725   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
726   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
727     ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
728     ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
729     ac_sep=" " ;;
730   *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
731      ac_sep=" " ;;
732   esac
733   # Get rid of the leading space.
734 done
735
736 # When interrupted or exit'd, cleanup temporary files, and complete
737 # config.log.  We remove comments because anyway the quotes in there
738 # would cause problems or look ugly.
739 trap 'exit_status=$?
740   # Save into config.log some information that might help in debugging.
741   echo >&5
742   echo "## ----------------- ##" >&5
743   echo "## Cache variables.  ##" >&5
744   echo "## ----------------- ##" >&5
745   echo >&5
746   # The following way of writing the cache mishandles newlines in values,
747 {
748   (set) 2>&1 |
749     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
750     *ac_space=\ *)
751       sed -n \
752         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
753           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
754       ;;
755     *)
756       sed -n \
757         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
758       ;;
759     esac;
760 } >&5
761   sed "/^$/d" confdefs.h >conftest.log
762   if test -s conftest.log; then
763     echo >&5
764     echo "## ------------ ##" >&5
765     echo "## confdefs.h.  ##" >&5
766     echo "## ------------ ##" >&5
767     echo >&5
768     cat conftest.log >&5
769   fi
770   (echo; echo) >&5
771   test "$ac_signal" != 0 &&
772     echo "$as_me: caught signal $ac_signal" >&5
773   echo "$as_me: exit $exit_status" >&5
774   rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
775     exit $exit_status
776      ' 0
777 for ac_signal in 1 2 13 15; do
778   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
779 done
780 ac_signal=0
781
782 # confdefs.h avoids OS command line length limits that DEFS can exceed.
783 rm -rf conftest* confdefs.h
784 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
785 echo >confdefs.h
786
787 # Let the site file select an alternate cache file if it wants to.
788 # Prefer explicitly selected file to automatically selected ones.
789 if test -z "$CONFIG_SITE"; then
790   if test "x$prefix" != xNONE; then
791     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
792   else
793     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
794   fi
795 fi
796 for ac_site_file in $CONFIG_SITE; do
797   if test -r "$ac_site_file"; then
798     { echo "$as_me:798: loading site script $ac_site_file" >&5
799 echo "$as_me: loading site script $ac_site_file" >&6;}
800     cat "$ac_site_file" >&5
801     . "$ac_site_file"
802   fi
803 done
804
805 if test -r "$cache_file"; then
806   # Some versions of bash will fail to source /dev/null (special
807   # files actually), so we avoid doing that.
808   if test -f "$cache_file"; then
809     { echo "$as_me:809: loading cache $cache_file" >&5
810 echo "$as_me: loading cache $cache_file" >&6;}
811     case $cache_file in
812       [\\/]* | ?:[\\/]* ) . $cache_file;;
813       *)                      . ./$cache_file;;
814     esac
815   fi
816 else
817   { echo "$as_me:817: creating cache $cache_file" >&5
818 echo "$as_me: creating cache $cache_file" >&6;}
819   >$cache_file
820 fi
821
822 # Check that the precious variables saved in the cache have kept the same
823 # value.
824 ac_cache_corrupted=false
825 for ac_var in `(set) 2>&1 |
826                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
827   eval ac_old_set=\$ac_cv_env_${ac_var}_set
828   eval ac_new_set=\$ac_env_${ac_var}_set
829   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
830   eval ac_new_val="\$ac_env_${ac_var}_value"
831   case $ac_old_set,$ac_new_set in
832     set,)
833       { echo "$as_me:833: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
834 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
835       ac_cache_corrupted=: ;;
836     ,set)
837       { echo "$as_me:837: error: \`$ac_var' was not set in the previous run" >&5
838 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
839       ac_cache_corrupted=: ;;
840     ,);;
841     *)
842       if test "x$ac_old_val" != "x$ac_new_val"; then
843         { echo "$as_me:843: error: \`$ac_var' has changed since the previous run:" >&5
844 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
845         { echo "$as_me:845:   former value:  $ac_old_val" >&5
846 echo "$as_me:   former value:  $ac_old_val" >&2;}
847         { echo "$as_me:847:   current value: $ac_new_val" >&5
848 echo "$as_me:   current value: $ac_new_val" >&2;}
849         ac_cache_corrupted=:
850       fi;;
851   esac
852   # Pass precious variables to config.status.  It doesn't matter if
853   # we pass some twice (in addition to the command line arguments).
854   if test "$ac_new_set" = set; then
855     case $ac_new_val in
856     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
857       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
858       ac_configure_args="$ac_configure_args '$ac_arg'"
859       ;;
860     *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
861        ;;
862     esac
863   fi
864 done
865 if $ac_cache_corrupted; then
866   { echo "$as_me:866: error: changes in the environment can compromise the build" >&5
867 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
868   { { echo "$as_me:868: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
869 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
870    { (exit 1); exit 1; }; }
871 fi
872
873 ac_ext=c
874 ac_cpp='$CPP $CPPFLAGS'
875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
878
879 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
880   *c*,-n*) ECHO_N= ECHO_C='
881 ' ECHO_T='      ' ;;
882   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
883   *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
884 esac
885 echo "#! $SHELL" >conftest.sh
886 echo  "exit 0"   >>conftest.sh
887 chmod +x conftest.sh
888 if { (echo "$as_me:888: PATH=\".;.\"; conftest.sh") >&5
889   (PATH=".;."; conftest.sh) 2>&5
890   ac_status=$?
891   echo "$as_me:891: \$? = $ac_status" >&5
892   (exit $ac_status); }; then
893   ac_path_separator=';'
894 else
895   ac_path_separator=:
896 fi
897 PATH_SEPARATOR="$ac_path_separator"
898 rm -f conftest.sh
899
900 echo "$as_me:900: checking whether ${MAKE-make} sets \${MAKE}" >&5
901 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
902 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
903 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
904   echo $ECHO_N "(cached) $ECHO_C" >&6
905 else
906   cat >conftest.make <<\EOF
907 all:
908         @echo 'ac_maketemp="${MAKE}"'
909 EOF
910 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
911 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
912 if test -n "$ac_maketemp"; then
913   eval ac_cv_prog_make_${ac_make}_set=yes
914 else
915   eval ac_cv_prog_make_${ac_make}_set=no
916 fi
917 rm -f conftest.make
918 fi
919 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
920   echo "$as_me:920: result: yes" >&5
921 echo "${ECHO_T}yes" >&6
922   SET_MAKE=
923 else
924   echo "$as_me:924: result: no" >&5
925 echo "${ECHO_T}no" >&6
926   SET_MAKE="MAKE=${MAKE-make}"
927 fi
928
929 ac_aux_dir=
930 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
931   if test -f $ac_dir/install-sh; then
932     ac_aux_dir=$ac_dir
933     ac_install_sh="$ac_aux_dir/install-sh -c"
934     break
935   elif test -f $ac_dir/install.sh; then
936     ac_aux_dir=$ac_dir
937     ac_install_sh="$ac_aux_dir/install.sh -c"
938     break
939   elif test -f $ac_dir/shtool; then
940     ac_aux_dir=$ac_dir
941     ac_install_sh="$ac_aux_dir/shtool install -c"
942     break
943   fi
944 done
945 if test -z "$ac_aux_dir"; then
946   { { echo "$as_me:946: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
947 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
948    { (exit 1); exit 1; }; }
949 fi
950 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
951 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
952 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
953
954 # Find a good install program.  We prefer a C program (faster),
955 # so one script is as good as another.  But avoid the broken or
956 # incompatible versions:
957 # SysV /etc/install, /usr/sbin/install
958 # SunOS /usr/etc/install
959 # IRIX /sbin/install
960 # AIX /bin/install
961 # AmigaOS /C/install, which installs bootblocks on floppy discs
962 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
963 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
964 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
965 # ./install, which can be erroneously created by make from ./install.sh.
966 echo "$as_me:966: checking for a BSD compatible install" >&5
967 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
968 if test -z "$INSTALL"; then
969 if test "${ac_cv_path_install+set}" = set; then
970   echo $ECHO_N "(cached) $ECHO_C" >&6
971 else
972     ac_save_IFS=$IFS; IFS=$ac_path_separator
973   for ac_dir in $PATH; do
974     IFS=$ac_save_IFS
975     # Account for people who put trailing slashes in PATH elements.
976     case $ac_dir/ in
977     / | ./ | .// | /cC/* \
978     | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
979     | /usr/ucb/* ) ;;
980     *)
981       # OSF1 and SCO ODT 3.0 have their own names for install.
982       # Don't use installbsd from OSF since it installs stuff as root
983       # by default.
984       for ac_prog in ginstall scoinst install; do
985         if $as_executable_p "$ac_dir/$ac_prog"; then
986           if test $ac_prog = install &&
987             grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
988             # AIX install.  It has an incompatible calling convention.
989             :
990           elif test $ac_prog = install &&
991             grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
992             # program-specific install script used by HP pwplus--don't use.
993             :
994           else
995             ac_cv_path_install="$ac_dir/$ac_prog -c"
996             break 2
997           fi
998         fi
999       done
1000       ;;
1001     esac
1002   done
1003
1004 fi
1005   if test "${ac_cv_path_install+set}" = set; then
1006     INSTALL=$ac_cv_path_install
1007   else
1008     # As a last resort, use the slow shell script.  We don't cache a
1009     # path for INSTALL within a source directory, because that will
1010     # break other packages using the cache if that directory is
1011     # removed, or if the path is relative.
1012     INSTALL=$ac_install_sh
1013   fi
1014 fi
1015 echo "$as_me:1015: result: $INSTALL" >&5
1016 echo "${ECHO_T}$INSTALL" >&6
1017
1018 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1019 # It thinks the first close brace ends the variable substitution.
1020 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1021
1022 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1023
1024 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1025
1026 if test "${EMACS}" = "t"; then
1027    EMACS=""
1028 fi
1029
1030 # Check whether --with-xemacs or --without-xemacs was given.
1031 if test "${with_xemacs+set}" = set; then
1032   withval="$with_xemacs"
1033    if test "${withval}" = "yes"; then EMACS=xemacs; else EMACS=${withval}; fi
1034 fi;
1035
1036 # Check whether --with-emacs or --without-emacs was given.
1037 if test "${with_emacs+set}" = set; then
1038   withval="$with_emacs"
1039    if test "${withval}" = "yes"; then EMACS=emacs; else EMACS=${withval}; fi
1040 fi;
1041 # Extract the first word of "makeinfo", so it can be a program name with args.
1042 set dummy makeinfo; ac_word=$2
1043 echo "$as_me:1043: checking for $ac_word" >&5
1044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1045 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
1046   echo $ECHO_N "(cached) $ECHO_C" >&6
1047 else
1048   if test -n "$MAKEINFO"; then
1049   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
1050 else
1051   ac_save_IFS=$IFS; IFS=$ac_path_separator
1052 ac_dummy="$PATH"
1053 for ac_dir in $ac_dummy; do
1054   IFS=$ac_save_IFS
1055   test -z "$ac_dir" && ac_dir=.
1056   $as_executable_p "$ac_dir/$ac_word" || continue
1057 ac_cv_prog_MAKEINFO="makeinfo"
1058 echo "$as_me:1058: found $ac_dir/$ac_word" >&5
1059 break
1060 done
1061
1062   test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="no"
1063 fi
1064 fi
1065 MAKEINFO=$ac_cv_prog_MAKEINFO
1066 if test -n "$MAKEINFO"; then
1067   echo "$as_me:1067: result: $MAKEINFO" >&5
1068 echo "${ECHO_T}$MAKEINFO" >&6
1069 else
1070   echo "$as_me:1070: result: no" >&5
1071 echo "${ECHO_T}no" >&6
1072 fi
1073
1074 # Extract the first word of "emacs", so it can be a program name with args.
1075 set dummy emacs; ac_word=$2
1076 echo "$as_me:1076: checking for $ac_word" >&5
1077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1078 if test "${ac_cv_prog_EMACS+set}" = set; then
1079   echo $ECHO_N "(cached) $ECHO_C" >&6
1080 else
1081   if test -n "$EMACS"; then
1082   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1083 else
1084   ac_save_IFS=$IFS; IFS=$ac_path_separator
1085 ac_dummy="$PATH"
1086 for ac_dir in $ac_dummy; do
1087   IFS=$ac_save_IFS
1088   test -z "$ac_dir" && ac_dir=.
1089   $as_executable_p "$ac_dir/$ac_word" || continue
1090 ac_cv_prog_EMACS="emacs"
1091 echo "$as_me:1091: found $ac_dir/$ac_word" >&5
1092 break
1093 done
1094
1095   test -z "$ac_cv_prog_EMACS" && ac_cv_prog_EMACS="xemacs"
1096 fi
1097 fi
1098 EMACS=$ac_cv_prog_EMACS
1099 if test -n "$EMACS"; then
1100   echo "$as_me:1100: result: $EMACS" >&5
1101 echo "${ECHO_T}$EMACS" >&6
1102 else
1103   echo "$as_me:1103: result: no" >&5
1104 echo "${ECHO_T}no" >&6
1105 fi
1106
1107   echo "$as_me:1107: checking if $EMACS is really XEmacs" >&5
1108 echo $ECHO_N "checking if $EMACS is really XEmacs... $ECHO_C" >&6
1109
1110 elisp="(if (string-match \"XEmacs\" emacs-version) \"yes\" \"no\") "
1111 if test -z ""noecho""; then
1112         echo "$as_me:1112: checking for xemacsp" >&5
1113 echo $ECHO_N "checking for xemacsp... $ECHO_C" >&6
1114 fi
1115 if test "${EMACS_cv_SYS_xemacsp+set}" = set; then
1116   echo $ECHO_N "(cached) $ECHO_C" >&6
1117 else
1118
1119         OUTPUT=./conftest-$$
1120         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
1121         ${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
1122         retval=`cat ${OUTPUT}`
1123         echo "=> ${retval}" >& 5 2>&1
1124         rm -f ${OUTPUT}
1125         EMACS_cv_SYS_xemacsp=$retval
1126
1127 fi
1128
1129 xemacsp=${EMACS_cv_SYS_xemacsp}
1130 if test -z ""noecho""; then
1131         echo "$as_me:1131: result: $xemacsp" >&5
1132 echo "${ECHO_T}$xemacsp" >&6
1133 fi
1134
1135   XEMACS=${EMACS_cv_SYS_xemacsp}
1136   EMACS_FLAVOR=emacs
1137   if test "$XEMACS" = "yes"; then
1138      EMACS_FLAVOR=xemacs
1139   fi
1140   echo "$as_me:1140: result: $XEMACS" >&5
1141 echo "${ECHO_T}$XEMACS" >&6
1142
1143   if test "$prefix" = "NONE"; then
1144         echo "$as_me:1144: checking prefix for your Emacs" >&5
1145 echo $ECHO_N "checking prefix for your Emacs... $ECHO_C" >&6
1146
1147 elisp="(expand-file-name \"..\" invocation-directory)"
1148 if test -z ""noecho""; then
1149         echo "$as_me:1149: checking for prefix" >&5
1150 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1151 fi
1152 if test "${EMACS_cv_SYS_prefix+set}" = set; then
1153   echo $ECHO_N "(cached) $ECHO_C" >&6
1154 else
1155
1156         OUTPUT=./conftest-$$
1157         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
1158         ${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
1159         retval=`cat ${OUTPUT}`
1160         echo "=> ${retval}" >& 5 2>&1
1161         rm -f ${OUTPUT}
1162         EMACS_cv_SYS_prefix=$retval
1163
1164 fi
1165
1166 prefix=${EMACS_cv_SYS_prefix}
1167 if test -z ""noecho""; then
1168         echo "$as_me:1168: result: $prefix" >&5
1169 echo "${ECHO_T}$prefix" >&6
1170 fi
1171
1172         prefix=${EMACS_cv_SYS_prefix}
1173         echo "$as_me:1173: result: $prefix" >&5
1174 echo "${ECHO_T}$prefix" >&6
1175   fi
1176
1177 # Check whether --with-lispdir or --without-lispdir was given.
1178 if test "${with_lispdir+set}" = set; then
1179   withval="$with_lispdir"
1180   lispdir=${withval}
1181 fi;
1182   echo "$as_me:1182: checking where .elc files should go" >&5
1183 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1184   if test -z "$lispdir"; then
1185         theprefix=$prefix
1186     if test "x$theprefix" = "xNONE"; then
1187         theprefix=$ac_default_prefix
1188     fi
1189     if test "$EMACS_FLAVOR" = "xemacs"; then
1190         lispdir="\$(datadir)/${EMACS_FLAVOR}/site-packages/lisp/gnus"
1191     else
1192     lispdir="\$(datadir)/${EMACS_FLAVOR}/site-lisp"
1193     fi
1194     for thedir in share lib; do
1195         potential=
1196         if test -d ${theprefix}/${thedir}/${EMACS_FLAVOR}/site-lisp; then
1197            if test "$EMACS_FLAVOR" = "xemacs"; then
1198                lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-packages/lisp/gnus"
1199            else
1200                lispdir="\$(datadir)/${EMACS_FLAVOR}/site-lisp"
1201            fi
1202            break
1203         fi
1204     done
1205   fi
1206   echo "$as_me:1206: result: $lispdir" >&5
1207 echo "${ECHO_T}$lispdir" >&6
1208
1209 # Check whether --with-etcdir or --without-etcdir was given.
1210 if test "${with_etcdir+set}" = set; then
1211   withval="$with_etcdir"
1212   etcdir=${withval}
1213 fi;
1214   echo "$as_me:1214: checking where etc files should go" >&5
1215 echo $ECHO_N "checking where etc files should go... $ECHO_C" >&6
1216   if test -z "$etcdir"; then
1217         if test "$EMACS_FLAVOR" = "xemacs"; then
1218       etcdir="\$(lispdir)/../../etc"
1219     else
1220     etcdir="\$(lispdir)/../etc"
1221     fi
1222   fi
1223   echo "$as_me:1223: result: $etcdir" >&5
1224 echo "${ECHO_T}$etcdir" >&6
1225
1226   echo "$as_me:1226: checking where the TeXinfo docs should go" >&5
1227 echo $ECHO_N "checking where the TeXinfo docs should go... $ECHO_C" >&6
1228     if test "$infodir" = "\${prefix}/info"; then
1229     if test "$EMACS_FLAVOR" = "xemacs"; then
1230       info_dir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-packages/info"
1231     else
1232       info_dir="\$(prefix)/info"
1233     fi
1234   else
1235     info_dir=$infodir
1236   fi
1237   echo "$as_me:1237: result: $info_dir" >&5
1238 echo "${ECHO_T}$info_dir" >&6
1239
1240 echo "$as_me:1240: checking for acceptable URL version" >&5
1241 echo $ECHO_N "checking for acceptable URL version... $ECHO_C" >&6
1242 if test "${EMACS_cv_ACCEPTABLE_URL+set}" = set; then
1243   echo $ECHO_N "(cached) $ECHO_C" >&6
1244 else
1245
1246 if test -z ""noecho""; then
1247         echo "$as_me:1247: checking for url-retrieve in url" >&5
1248 echo $ECHO_N "checking for url-retrieve in url... $ECHO_C" >&6
1249 fi
1250 library=`echo url | tr _ -`
1251
1252 elisp="(progn (fmakunbound 'url-retrieve) (condition-case nil (progn (require '$library) (fboundp 'url-retrieve)) (error (prog1 nil (message \"$library not found\")))))"
1253 if test -z ""noecho""; then
1254         echo "$as_me:1254: checking for url" >&5
1255 echo $ECHO_N "checking for url... $ECHO_C" >&6
1256 fi
1257 if test "${EMACS_cv_SYS_url+set}" = set; then
1258   echo $ECHO_N "(cached) $ECHO_C" >&6
1259 else
1260
1261         OUTPUT=./conftest-$$
1262         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
1263         ${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
1264         retval=`cat ${OUTPUT}`
1265         echo "=> ${retval}" >& 5 2>&1
1266         rm -f ${OUTPUT}
1267         EMACS_cv_SYS_url=$retval
1268
1269 fi
1270
1271 url=${EMACS_cv_SYS_url}
1272 if test -z ""noecho""; then
1273         echo "$as_me:1273: result: $url" >&5
1274 echo "${ECHO_T}$url" >&6
1275 fi
1276
1277 if test "${EMACS_cv_SYS_url}" = "nil"; then
1278         EMACS_cv_SYS_url=no
1279 fi
1280 if test "${EMACS_cv_SYS_url}" = "t"; then
1281         EMACS_cv_SYS_url=yes
1282 fi
1283 HAVE_url=${EMACS_cv_SYS_url}
1284
1285 if test -z ""noecho""; then
1286         echo "$as_me:1286: result: $HAVE_url" >&5
1287 echo "${ECHO_T}$HAVE_url" >&6
1288 fi
1289
1290 if test "${HAVE_url}" = "yes"; then
1291         EMACS_cv_ACCEPTABLE_URL=yes
1292 else
1293         EMACS_cv_ACCEPTABLE_URL=no
1294 fi
1295
1296 if test "${EMACS_cv_ACCEPTABLE_URL}" = "yes"; then
1297
1298 elisp="(file-name-directory (locate-library \"url\"))"
1299 if test -z ""noecho""; then
1300         echo "$as_me:1300: checking for url_dir" >&5
1301 echo $ECHO_N "checking for url_dir... $ECHO_C" >&6
1302 fi
1303 if test "${EMACS_cv_SYS_url_dir+set}" = set; then
1304   echo $ECHO_N "(cached) $ECHO_C" >&6
1305 else
1306
1307         OUTPUT=./conftest-$$
1308         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
1309         ${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
1310         retval=`cat ${OUTPUT}`
1311         echo "=> ${retval}" >& 5 2>&1
1312         rm -f ${OUTPUT}
1313         EMACS_cv_SYS_url_dir=$retval
1314
1315 fi
1316
1317 url_dir=${EMACS_cv_SYS_url_dir}
1318 if test -z ""noecho""; then
1319         echo "$as_me:1319: result: $url_dir" >&5
1320 echo "${ECHO_T}$url_dir" >&6
1321 fi
1322
1323         EMACS_cv_ACCEPTABLE_URL=$EMACS_cv_SYS_url_dir
1324 fi
1325
1326 fi
1327
1328 # Check whether --with-url or --without-url was given.
1329 if test "${with_url+set}" = set; then
1330   withval="$with_url"
1331    EMACS_cv_ACCEPTABLE_URL=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null`
1332 fi;
1333    URL=${EMACS_cv_ACCEPTABLE_URL}
1334
1335    echo "$as_me:1335: result: \"${URL}\"" >&5
1336 echo "${ECHO_T}\"${URL}\"" >&6
1337
1338 echo "$as_me:1338: checking for acceptable W3 version" >&5
1339 echo $ECHO_N "checking for acceptable W3 version... $ECHO_C" >&6
1340 if test "${EMACS_cv_ACCEPTABLE_W3+set}" = set; then
1341   echo $ECHO_N "(cached) $ECHO_C" >&6
1342 else
1343
1344 if test -z ""noecho""; then
1345         echo "$as_me:1345: checking for w3-form-encode-xwfu in w3_forms" >&5
1346 echo $ECHO_N "checking for w3-form-encode-xwfu in w3_forms... $ECHO_C" >&6
1347 fi
1348 library=`echo w3_forms | tr _ -`
1349
1350 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\")))))"
1351 if test -z ""noecho""; then
1352         echo "$as_me:1352: checking for w3_forms" >&5
1353 echo $ECHO_N "checking for w3_forms... $ECHO_C" >&6
1354 fi
1355 if test "${EMACS_cv_SYS_w3_forms+set}" = set; then
1356   echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358
1359         OUTPUT=./conftest-$$
1360         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
1361         ${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
1362         retval=`cat ${OUTPUT}`
1363         echo "=> ${retval}" >& 5 2>&1
1364         rm -f ${OUTPUT}
1365         EMACS_cv_SYS_w3_forms=$retval
1366
1367 fi
1368
1369 w3_forms=${EMACS_cv_SYS_w3_forms}
1370 if test -z ""noecho""; then
1371         echo "$as_me:1371: result: $w3_forms" >&5
1372 echo "${ECHO_T}$w3_forms" >&6
1373 fi
1374
1375 if test "${EMACS_cv_SYS_w3_forms}" = "nil"; then
1376         EMACS_cv_SYS_w3_forms=no
1377 fi
1378 if test "${EMACS_cv_SYS_w3_forms}" = "t"; then
1379         EMACS_cv_SYS_w3_forms=yes
1380 fi
1381 HAVE_w3_forms=${EMACS_cv_SYS_w3_forms}
1382
1383 if test -z ""noecho""; then
1384         echo "$as_me:1384: result: $HAVE_w3_forms" >&5
1385 echo "${ECHO_T}$HAVE_w3_forms" >&6
1386 fi
1387
1388 if test "${HAVE_w3_forms}" = "yes"; then
1389         EMACS_cv_ACCEPTABLE_W3=yes
1390 else
1391         EMACS_cv_ACCEPTABLE_W3=no
1392 fi
1393
1394 if test "${EMACS_cv_ACCEPTABLE_W3}" = "yes"; then
1395
1396 elisp="(file-name-directory (locate-library \"w3-forms\"))"
1397 if test -z ""noecho""; then
1398         echo "$as_me:1398: checking for w3_dir" >&5
1399 echo $ECHO_N "checking for w3_dir... $ECHO_C" >&6
1400 fi
1401 if test "${EMACS_cv_SYS_w3_dir+set}" = set; then
1402   echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404
1405         OUTPUT=./conftest-$$
1406         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
1407         ${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
1408         retval=`cat ${OUTPUT}`
1409         echo "=> ${retval}" >& 5 2>&1
1410         rm -f ${OUTPUT}
1411         EMACS_cv_SYS_w3_dir=$retval
1412
1413 fi
1414
1415 w3_dir=${EMACS_cv_SYS_w3_dir}
1416 if test -z ""noecho""; then
1417         echo "$as_me:1417: result: $w3_dir" >&5
1418 echo "${ECHO_T}$w3_dir" >&6
1419 fi
1420
1421         EMACS_cv_ACCEPTABLE_W3=$EMACS_cv_SYS_w3_dir
1422 fi
1423
1424 fi
1425
1426 # Check whether --with-w3 or --without-w3 was given.
1427 if test "${with_w3+set}" = set; then
1428   withval="$with_w3"
1429    EMACS_cv_ACCEPTABLE_W3=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null`
1430 fi;
1431    W3=${EMACS_cv_ACCEPTABLE_W3}
1432
1433    echo "$as_me:1433: result: \"${W3}\"" >&5
1434 echo "${ECHO_T}\"${W3}\"" >&6
1435
1436 test "$LATEX" = t && LATEX=
1437 test "$LATEX" || for ac_prog in latex
1438 do
1439   # Extract the first word of "$ac_prog", so it can be a program name with args.
1440 set dummy $ac_prog; ac_word=$2
1441 echo "$as_me:1441: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_path_LATEX+set}" = set; then
1444   echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446   case $LATEX in
1447   [\\/]* | ?:[\\/]*)
1448   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
1449   ;;
1450   *)
1451   ac_save_IFS=$IFS; IFS=$ac_path_separator
1452 ac_dummy="$PATH"
1453 for ac_dir in $ac_dummy; do
1454   IFS=$ac_save_IFS
1455   test -z "$ac_dir" && ac_dir=.
1456   if $as_executable_p "$ac_dir/$ac_word"; then
1457    ac_cv_path_LATEX="$ac_dir/$ac_word"
1458    echo "$as_me:1458: found $ac_dir/$ac_word" >&5
1459    break
1460 fi
1461 done
1462
1463   ;;
1464 esac
1465 fi
1466 LATEX=$ac_cv_path_LATEX
1467
1468 if test -n "$LATEX"; then
1469   echo "$as_me:1469: result: $LATEX" >&5
1470 echo "${ECHO_T}$LATEX" >&6
1471 else
1472   echo "$as_me:1472: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1474 fi
1475
1476   test -n "$LATEX" && break
1477 done
1478 test -n "$LATEX" || LATEX="no"
1479
1480 echo "$as_me:1480: checking for available fonts" >&5
1481 echo $ECHO_N "checking for available fonts... $ECHO_C" >&6
1482
1483 # Check whether --with-fonts or --without-fonts was given.
1484 if test "${with_fonts+set}" = set; then
1485   withval="$with_fonts"
1486   USE_FONTS="$withval"
1487 fi;
1488 WITH_FONTS_bembo='%'
1489 WITHOUT_FONTS_bembo=
1490 WITH_FONTS_pfu='%'
1491 WITHOUT_FONTS_pfu=
1492 WITH_FONTS_bcr='%'
1493 WITHOUT_FONTS_bcr=
1494 if test -z "${USE_FONTS}"; then
1495   if test "${LATEX}" = no; then
1496         :
1497   else
1498     OUTPUT=./conftest-$$
1499     echo '\nonstopmode\documentclass{article}\usepackage{bembo}\begin{document}\end{document}' > ${OUTPUT}
1500     if ${LATEX} ${OUTPUT} </dev/null >& 5 2>&1  ; then
1501       if test -z "${USE_FONTS}"; then
1502         USE_FONTS="Adobe Bembo"
1503       else
1504         USE_FONTS="${USE_FONTS}, Adobe Bembo"
1505       fi
1506       WITH_FONTS_bembo=
1507       WITHOUT_FONTS_bembo='%'
1508     fi
1509     echo '\nonstopmode\documentclass{article}\begin{document}{\fontfamily{pfu}\fontsize{10pt}{10}\selectfont test}\end{document}' > ${OUTPUT}
1510     if retval=`${LATEX} ${OUTPUT} </dev/null 2>& 5`; then
1511       if echo "$retval" | grep 'Some font shapes were not available' >& 5 2>&1  ; then
1512         :
1513       else
1514         if test -z "${USE_FONTS}"; then
1515           USE_FONTS="Adobe Futura"
1516         else
1517           USE_FONTS="${USE_FONTS}, Adobe Futura"
1518         fi
1519         WITH_FONTS_pfu=
1520         WITHOUT_FONTS_pfu='%'
1521       fi
1522     fi
1523     echo '\nonstopmode\documentclass{article}\begin{document}{\fontfamily{bcr}\fontsize{10pt}{10}\selectfont test}\end{document}' > ${OUTPUT}
1524     if retval=`${LATEX} ${OUTPUT} </dev/null 2>& 5`; then
1525       if echo "$retval" | grep 'Some font shapes were not available' >& 5 2>&1  ; then
1526         :
1527       else
1528         if test -z "${USE_FONTS}"; then
1529           USE_FONTS="Bitstream Courier"
1530         else
1531           USE_FONTS="${USE_FONTS}, Bitstream Courier"
1532         fi
1533         WITH_FONTS_bcr=
1534         WITHOUT_FONTS_bcr='%'
1535       fi
1536     fi
1537     rm -f ${OUTPUT} ${OUTPUT}.aux ${OUTPUT}.log ${OUTPUT}.dvi
1538   fi
1539 elif test "${USE_FONTS}" = yes ; then
1540   WITH_FONTS_bembo=
1541   WITHOUT_FONTS_bembo='%'
1542   WITH_FONTS_pfu=
1543   WITHOUT_FONTS_pfu='%'
1544   WITH_FONTS_bcr=
1545   WITHOUT_FONTS_bcr='%'
1546 fi
1547
1548 if test -z "${USE_FONTS}" ; then
1549   USE_FONTS=no
1550 fi
1551 USE_FONTS=`echo "${USE_FONTS}" | sed 's/,\([^,]*\)$/ and\1/'`
1552 echo "$as_me:1552: result: \"${USE_FONTS}\"" >&5
1553 echo "${ECHO_T}\"${USE_FONTS}\"" >&6
1554 if test "${USE_FONTS}" = yes ; then
1555   USE_FONTS='Set in Adobe Bembo, Adobe Futura and Bitstream Courier.'
1556 elif test "${USE_FONTS}" = no ; then
1557   USE_FONTS=''
1558 else
1559   USE_FONTS="Set in ${USE_FONTS}."
1560 fi
1561
1562 ac_config_files="$ac_config_files Makefile etc/Makefile lisp/Makefile texi/Makefile texi/gnusconfig.tex texi/ps/Makefile"
1563 cat >confcache <<\_ACEOF
1564 # This file is a shell script that caches the results of configure
1565 # tests run on this system so they can be shared between configure
1566 # scripts and configure runs, see configure's option --config-cache.
1567 # It is not useful on other systems.  If it contains results you don't
1568 # want to keep, you may remove or edit it.
1569 #
1570 # config.status only pays attention to the cache file if you give it
1571 # the --recheck option to rerun configure.
1572 #
1573 # `ac_cv_env_foo' variables (set or unset) will be overriden when
1574 # loading this file, other *unset* `ac_cv_foo' will be assigned the
1575 # following values.
1576
1577 _ACEOF
1578
1579 # The following way of writing the cache mishandles newlines in values,
1580 # but we know of no workaround that is simple, portable, and efficient.
1581 # So, don't put newlines in cache variables' values.
1582 # Ultrix sh set writes to stderr and can't be redirected directly,
1583 # and sets the high bit in the cache file unless we assign to the vars.
1584 {
1585   (set) 2>&1 |
1586     case `(ac_space=' '; set | grep ac_space) 2>&1` in
1587     *ac_space=\ *)
1588       # `set' does not quote correctly, so add quotes (double-quote
1589       # substitution turns \\\\ into \\, and sed turns \\ into \).
1590       sed -n \
1591         "s/'/'\\\\''/g;
1592           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1593       ;;
1594     *)
1595       # `set' quotes correctly as required by POSIX, so do not add quotes.
1596       sed -n \
1597         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1598       ;;
1599     esac;
1600 } |
1601   sed '
1602      t clear
1603      : clear
1604      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1605      t end
1606      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1607      : end' >>confcache
1608 if cmp -s $cache_file confcache; then :; else
1609   if test -w $cache_file; then
1610     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1611     cat confcache >$cache_file
1612   else
1613     echo "not updating unwritable cache $cache_file"
1614   fi
1615 fi
1616 rm -f confcache
1617
1618 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1619 # Let make expand exec_prefix.
1620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1621
1622 # VPATH may cause trouble with some makes, so we remove $(srcdir),
1623 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1624 # trailing colons and then remove the whole line if VPATH becomes empty
1625 # (actually we leave an empty line to preserve line numbers).
1626 if test "x$srcdir" = x.; then
1627   ac_vpsub='/^[         ]*VPATH[        ]*=/{
1628 s/:*\$(srcdir):*/:/;
1629 s/:*\${srcdir}:*/:/;
1630 s/:*@srcdir@:*/:/;
1631 s/^\([^=]*=[    ]*\):*/\1/;
1632 s/:*$//;
1633 s/^[^=]*=[      ]*$//;
1634 }'
1635 fi
1636
1637 # Transform confdefs.h into DEFS.
1638 # Protect against shell expansion while executing Makefile rules.
1639 # Protect against Makefile macro expansion.
1640 #
1641 # If the first sed substitution is executed (which looks for macros that
1642 # take arguments), then we branch to the quote section.  Otherwise,
1643 # look for a macro that doesn't take arguments.
1644 cat >confdef2opt.sed <<\EOF
1645 t clear
1646 : clear
1647 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
1648 t quote
1649 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
1650 t quote
1651 d
1652 : quote
1653 s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
1654 s,\[,\\&,g
1655 s,\],\\&,g
1656 s,\$,$$,g
1657 p
1658 EOF
1659 # We use echo to avoid assuming a particular line-breaking character.
1660 # The extra dot is to prevent the shell from consuming trailing
1661 # line-breaks from the sub-command output.  A line-break within
1662 # single-quotes doesn't work because, if this script is created in a
1663 # platform that uses two characters for line-breaks (e.g., DOS), tr
1664 # would break.
1665 ac_LF_and_DOT=`echo; echo .`
1666 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1667 rm -f confdef2opt.sed
1668
1669 : ${CONFIG_STATUS=./config.status}
1670 ac_clean_files_save=$ac_clean_files
1671 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1672 { echo "$as_me:1672: creating $CONFIG_STATUS" >&5
1673 echo "$as_me: creating $CONFIG_STATUS" >&6;}
1674 cat >$CONFIG_STATUS <<_ACEOF
1675 #! $SHELL
1676 # Generated automatically by configure.
1677 # Run this file to recreate the current configuration.
1678 # Compiler output produced by configure, useful for debugging
1679 # configure, is in config.log if it exists.
1680
1681 debug=false
1682 SHELL=\${CONFIG_SHELL-$SHELL}
1683 ac_cs_invocation="\$0 \$@"
1684
1685 _ACEOF
1686
1687 cat >>$CONFIG_STATUS <<\_ACEOF
1688 # Be Bourne compatible
1689 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1690   emulate sh
1691   NULLCMD=:
1692 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1693   set -o posix
1694 fi
1695
1696 # Name of the executable.
1697 as_me=`echo "$0" |sed 's,.*[\\/],,'`
1698
1699 if expr a : '\(a\)' >/dev/null 2>&1; then
1700   as_expr=expr
1701 else
1702   as_expr=false
1703 fi
1704
1705 rm -f conf$$ conf$$.exe conf$$.file
1706 echo >conf$$.file
1707 if ln -s conf$$.file conf$$ 2>/dev/null; then
1708   # We could just check for DJGPP; but this test a) works b) is more generic
1709   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
1710   if test -f conf$$.exe; then
1711     # Don't use ln at all; we don't have any links
1712     as_ln_s='cp -p'
1713   else
1714     as_ln_s='ln -s'
1715   fi
1716 elif ln conf$$.file conf$$ 2>/dev/null; then
1717   as_ln_s=ln
1718 else
1719   as_ln_s='cp -p'
1720 fi
1721 rm -f conf$$ conf$$.exe conf$$.file
1722
1723 as_executable_p="test -f"
1724
1725 # Support unset when possible.
1726 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
1727   as_unset=unset
1728 else
1729   as_unset=false
1730 fi
1731
1732 # NLS nuisances.
1733 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
1734 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
1735 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
1736 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
1737 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
1738 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
1739 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
1740 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
1741
1742 # IFS
1743 # We need space, tab and new line, in precisely that order.
1744 as_nl='
1745 '
1746 IFS="   $as_nl"
1747
1748 # CDPATH.
1749 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1750
1751 exec 6>&1
1752
1753 _ACEOF
1754
1755 # Files that config.status was made for.
1756 if test -n "$ac_config_files"; then
1757   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
1758 fi
1759
1760 if test -n "$ac_config_headers"; then
1761   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
1762 fi
1763
1764 if test -n "$ac_config_links"; then
1765   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
1766 fi
1767
1768 if test -n "$ac_config_commands"; then
1769   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
1770 fi
1771
1772 cat >>$CONFIG_STATUS <<\EOF
1773
1774 ac_cs_usage="\
1775 \`$as_me' instantiates files from templates according to the
1776 current configuration.
1777
1778 Usage: $0 [OPTIONS] [FILE]...
1779
1780   -h, --help       print this help, then exit
1781   -V, --version    print version number, then exit
1782   -d, --debug      don't remove temporary files
1783       --recheck    update $as_me by reconfiguring in the same conditions
1784   --file=FILE[:TEMPLATE]
1785                    instantiate the configuration file FILE
1786
1787 Configuration files:
1788 $config_files
1789
1790 Report bugs to <bug-autoconf@gnu.org>."
1791 EOF
1792
1793 cat >>$CONFIG_STATUS <<EOF
1794 ac_cs_version="\\
1795 config.status
1796 configured by $0, generated by GNU Autoconf 2.52,
1797   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1798
1799 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
1800 Free Software Foundation, Inc.
1801 This config.status script is free software; the Free Software Foundation
1802 gives unlimited permission to copy, distribute and modify it."
1803 srcdir=$srcdir
1804 INSTALL="$INSTALL"
1805 EOF
1806
1807 cat >>$CONFIG_STATUS <<\EOF
1808 # If no file are specified by the user, then we need to provide default
1809 # value.  By we need to know if files were specified by the user.
1810 ac_need_defaults=:
1811 while test $# != 0
1812 do
1813   case $1 in
1814   --*=*)
1815     ac_option=`expr "x$1" : 'x\([^=]*\)='`
1816     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1817     shift
1818     set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
1819     shift
1820     ;;
1821   -*);;
1822   *) # This is not an option, so the user has probably given explicit
1823      # arguments.
1824      ac_need_defaults=false;;
1825   esac
1826
1827   case $1 in
1828   # Handling of the options.
1829 EOF
1830 cat >>$CONFIG_STATUS <<EOF
1831   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1832     echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
1833     exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
1834 EOF
1835 cat >>$CONFIG_STATUS <<\EOF
1836   --version | --vers* | -V )
1837     echo "$ac_cs_version"; exit 0 ;;
1838   --he | --h)
1839     # Conflict between --help and --header
1840     { { echo "$as_me:1840: error: ambiguous option: $1
1841 Try \`$0 --help' for more information." >&5
1842 echo "$as_me: error: ambiguous option: $1
1843 Try \`$0 --help' for more information." >&2;}
1844    { (exit 1); exit 1; }; };;
1845   --help | --hel | -h )
1846     echo "$ac_cs_usage"; exit 0 ;;
1847   --debug | --d* | -d )
1848     debug=: ;;
1849   --file | --fil | --fi | --f )
1850     shift
1851     CONFIG_FILES="$CONFIG_FILES $1"
1852     ac_need_defaults=false;;
1853   --header | --heade | --head | --hea )
1854     shift
1855     CONFIG_HEADERS="$CONFIG_HEADERS $1"
1856     ac_need_defaults=false;;
1857
1858   # This is an error.
1859   -*) { { echo "$as_me:1859: error: unrecognized option: $1
1860 Try \`$0 --help' for more information." >&5
1861 echo "$as_me: error: unrecognized option: $1
1862 Try \`$0 --help' for more information." >&2;}
1863    { (exit 1); exit 1; }; } ;;
1864
1865   *) ac_config_targets="$ac_config_targets $1" ;;
1866
1867   esac
1868   shift
1869 done
1870
1871 exec 5>>config.log
1872 cat >&5 << _ACEOF
1873
1874 ## ----------------------- ##
1875 ## Running config.status.  ##
1876 ## ----------------------- ##
1877
1878 This file was extended by $as_me 2.52, executed with
1879   CONFIG_FILES    = $CONFIG_FILES
1880   CONFIG_HEADERS  = $CONFIG_HEADERS
1881   CONFIG_LINKS    = $CONFIG_LINKS
1882   CONFIG_COMMANDS = $CONFIG_COMMANDS
1883   > $ac_cs_invocation
1884 on `(hostname || uname -n) 2>/dev/null | sed 1q`
1885
1886 _ACEOF
1887 EOF
1888
1889 cat >>$CONFIG_STATUS <<\EOF
1890 for ac_config_target in $ac_config_targets
1891 do
1892   case "$ac_config_target" in
1893   # Handling of arguments.
1894   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1895   "etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
1896   "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
1897   "texi/Makefile" ) CONFIG_FILES="$CONFIG_FILES texi/Makefile" ;;
1898   "texi/gnusconfig.tex" ) CONFIG_FILES="$CONFIG_FILES texi/gnusconfig.tex" ;;
1899   "texi/ps/Makefile" ) CONFIG_FILES="$CONFIG_FILES texi/ps/Makefile" ;;
1900   *) { { echo "$as_me:1900: error: invalid argument: $ac_config_target" >&5
1901 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
1902    { (exit 1); exit 1; }; };;
1903   esac
1904 done
1905
1906 # If the user did not use the arguments to specify the items to instantiate,
1907 # then the envvar interface is used.  Set only those that are not.
1908 # We use the long form for the default assignment because of an extremely
1909 # bizarre bug on SunOS 4.1.3.
1910 if $ac_need_defaults; then
1911   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1912 fi
1913
1914 # Create a temporary directory, and hook for its removal unless debugging.
1915 $debug ||
1916 {
1917   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1918   trap '{ (exit 1); exit 1; }' 1 2 13 15
1919 }
1920
1921 # Create a (secure) tmp directory for tmp files.
1922 : ${TMPDIR=/tmp}
1923 {
1924   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
1925   test -n "$tmp" && test -d "$tmp"
1926 }  ||
1927 {
1928   tmp=$TMPDIR/cs$$-$RANDOM
1929   (umask 077 && mkdir $tmp)
1930 } ||
1931 {
1932    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
1933    { (exit 1); exit 1; }
1934 }
1935
1936 EOF
1937
1938 cat >>$CONFIG_STATUS <<EOF
1939
1940 #
1941 # CONFIG_FILES section.
1942 #
1943
1944 # No need to generate the scripts if there are no CONFIG_FILES.
1945 # This happens for instance when ./config.status config.h
1946 if test -n "\$CONFIG_FILES"; then
1947   # Protect against being on the right side of a sed subst in config.status.
1948   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
1949    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
1950 s,@SHELL@,$SHELL,;t t
1951 s,@exec_prefix@,$exec_prefix,;t t
1952 s,@prefix@,$prefix,;t t
1953 s,@program_transform_name@,$program_transform_name,;t t
1954 s,@bindir@,$bindir,;t t
1955 s,@sbindir@,$sbindir,;t t
1956 s,@libexecdir@,$libexecdir,;t t
1957 s,@datadir@,$datadir,;t t
1958 s,@sysconfdir@,$sysconfdir,;t t
1959 s,@sharedstatedir@,$sharedstatedir,;t t
1960 s,@localstatedir@,$localstatedir,;t t
1961 s,@libdir@,$libdir,;t t
1962 s,@includedir@,$includedir,;t t
1963 s,@oldincludedir@,$oldincludedir,;t t
1964 s,@infodir@,$infodir,;t t
1965 s,@mandir@,$mandir,;t t
1966 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
1967 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
1968 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
1969 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
1970 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
1971 s,@build_alias@,$build_alias,;t t
1972 s,@host_alias@,$host_alias,;t t
1973 s,@target_alias@,$target_alias,;t t
1974 s,@ECHO_C@,$ECHO_C,;t t
1975 s,@ECHO_N@,$ECHO_N,;t t
1976 s,@ECHO_T@,$ECHO_T,;t t
1977 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
1978 s,@DEFS@,$DEFS,;t t
1979 s,@LIBS@,$LIBS,;t t
1980 s,@SET_MAKE@,$SET_MAKE,;t t
1981 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
1982 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
1983 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
1984 s,@MAKEINFO@,$MAKEINFO,;t t
1985 s,@EMACS@,$EMACS,;t t
1986 s,@XEMACS@,$XEMACS,;t t
1987 s,@EMACS_FLAVOR@,$EMACS_FLAVOR,;t t
1988 s,@lispdir@,$lispdir,;t t
1989 s,@etcdir@,$etcdir,;t t
1990 s,@info_dir@,$info_dir,;t t
1991 s,@HAVE_url@,$HAVE_url,;t t
1992 s,@URL@,$URL,;t t
1993 s,@HAVE_w3_forms@,$HAVE_w3_forms,;t t
1994 s,@W3@,$W3,;t t
1995 s,@LATEX@,$LATEX,;t t
1996 s,@WITH_FONTS_bembo@,$WITH_FONTS_bembo,;t t
1997 s,@WITHOUT_FONTS_bembo@,$WITHOUT_FONTS_bembo,;t t
1998 s,@WITH_FONTS_pfu@,$WITH_FONTS_pfu,;t t
1999 s,@WITHOUT_FONTS_pfu@,$WITHOUT_FONTS_pfu,;t t
2000 s,@WITH_FONTS_bcr@,$WITH_FONTS_bcr,;t t
2001 s,@WITHOUT_FONTS_bcr@,$WITHOUT_FONTS_bcr,;t t
2002 s,@USE_FONTS@,$USE_FONTS,;t t
2003 CEOF
2004
2005 EOF
2006
2007   cat >>$CONFIG_STATUS <<\EOF
2008   # Split the substitutions into bite-sized pieces for seds with
2009   # small command number limits, like on Digital OSF/1 and HP-UX.
2010   ac_max_sed_lines=48
2011   ac_sed_frag=1 # Number of current file.
2012   ac_beg=1 # First line for current file.
2013   ac_end=$ac_max_sed_lines # Line after last line for current file.
2014   ac_more_lines=:
2015   ac_sed_cmds=
2016   while $ac_more_lines; do
2017     if test $ac_beg -gt 1; then
2018       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2019     else
2020       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2021     fi
2022     if test ! -s $tmp/subs.frag; then
2023       ac_more_lines=false
2024     else
2025       # The purpose of the label and of the branching condition is to
2026       # speed up the sed processing (if there are no `@' at all, there
2027       # is no need to browse any of the substitutions).
2028       # These are the two extra sed commands mentioned above.
2029       (echo ':t
2030   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2031       if test -z "$ac_sed_cmds"; then
2032         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2033       else
2034         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2035       fi
2036       ac_sed_frag=`expr $ac_sed_frag + 1`
2037       ac_beg=$ac_end
2038       ac_end=`expr $ac_end + $ac_max_sed_lines`
2039     fi
2040   done
2041   if test -z "$ac_sed_cmds"; then
2042     ac_sed_cmds=cat
2043   fi
2044 fi # test -n "$CONFIG_FILES"
2045
2046 EOF
2047 cat >>$CONFIG_STATUS <<\EOF
2048 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2049   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2050   case $ac_file in
2051   - | *:- | *:-:* ) # input from stdin
2052         cat >$tmp/stdin
2053         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2054         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2055   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2056         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2057   * )   ac_file_in=$ac_file.in ;;
2058   esac
2059
2060   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2061   ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2062          X"$ac_file" : 'X\(//\)[^/]' \| \
2063          X"$ac_file" : 'X\(//\)$' \| \
2064          X"$ac_file" : 'X\(/\)' \| \
2065          .     : '\(.\)' 2>/dev/null ||
2066 echo X"$ac_file" |
2067     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2068           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2069           /^X\(\/\/\)$/{ s//\1/; q; }
2070           /^X\(\/\).*/{ s//\1/; q; }
2071           s/.*/./; q'`
2072   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2073     { case "$ac_dir" in
2074   [\\/]* | ?:[\\/]* ) as_incr_dir=;;
2075   *)                      as_incr_dir=.;;
2076 esac
2077 as_dummy="$ac_dir"
2078 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
2079   case $as_mkdir_dir in
2080     # Skip DOS drivespec
2081     ?:) as_incr_dir=$as_mkdir_dir ;;
2082     *)
2083       as_incr_dir=$as_incr_dir/$as_mkdir_dir
2084       test -d "$as_incr_dir" || mkdir "$as_incr_dir"
2085     ;;
2086   esac
2087 done; }
2088
2089     ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
2090     # A "../" for each directory in $ac_dir_suffix.
2091     ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
2092   else
2093     ac_dir_suffix= ac_dots=
2094   fi
2095
2096   case $srcdir in
2097   .)  ac_srcdir=.
2098       if test -z "$ac_dots"; then
2099          ac_top_srcdir=.
2100       else
2101          ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
2102       fi ;;
2103   [\\/]* | ?:[\\/]* )
2104       ac_srcdir=$srcdir$ac_dir_suffix;
2105       ac_top_srcdir=$srcdir ;;
2106   *) # Relative path.
2107     ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
2108     ac_top_srcdir=$ac_dots$srcdir ;;
2109   esac
2110
2111   case $INSTALL in
2112   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2113   *) ac_INSTALL=$ac_dots$INSTALL ;;
2114   esac
2115
2116   if test x"$ac_file" != x-; then
2117     { echo "$as_me:2117: creating $ac_file" >&5
2118 echo "$as_me: creating $ac_file" >&6;}
2119     rm -f "$ac_file"
2120   fi
2121   # Let's still pretend it is `configure' which instantiates (i.e., don't
2122   # use $as_me), people would be surprised to read:
2123   #    /* config.h.  Generated automatically by config.status.  */
2124   configure_input="Generated automatically from `echo $ac_file_in |
2125                                                  sed 's,.*/,,'` by configure."
2126
2127   # First look for the input files in the build tree, otherwise in the
2128   # src tree.
2129   ac_file_inputs=`IFS=:
2130     for f in $ac_file_in; do
2131       case $f in
2132       -) echo $tmp/stdin ;;
2133       [\\/$]*)
2134          # Absolute (can't be DOS-style, as IFS=:)
2135          test -f "$f" || { { echo "$as_me:2135: error: cannot find input file: $f" >&5
2136 echo "$as_me: error: cannot find input file: $f" >&2;}
2137    { (exit 1); exit 1; }; }
2138          echo $f;;
2139       *) # Relative
2140          if test -f "$f"; then
2141            # Build tree
2142            echo $f
2143          elif test -f "$srcdir/$f"; then
2144            # Source tree
2145            echo $srcdir/$f
2146          else
2147            # /dev/null tree
2148            { { echo "$as_me:2148: error: cannot find input file: $f" >&5
2149 echo "$as_me: error: cannot find input file: $f" >&2;}
2150    { (exit 1); exit 1; }; }
2151          fi;;
2152       esac
2153     done` || { (exit 1); exit 1; }
2154 EOF
2155 cat >>$CONFIG_STATUS <<EOF
2156   sed "$ac_vpsub
2157 $extrasub
2158 EOF
2159 cat >>$CONFIG_STATUS <<\EOF
2160 :t
2161 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2162 s,@configure_input@,$configure_input,;t t
2163 s,@srcdir@,$ac_srcdir,;t t
2164 s,@top_srcdir@,$ac_top_srcdir,;t t
2165 s,@INSTALL@,$ac_INSTALL,;t t
2166 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2167   rm -f $tmp/stdin
2168   if test x"$ac_file" != x-; then
2169     mv $tmp/out $ac_file
2170   else
2171     cat $tmp/out
2172     rm -f $tmp/out
2173   fi
2174
2175 done
2176 EOF
2177
2178 cat >>$CONFIG_STATUS <<\EOF
2179
2180 { (exit 0); exit 0; }
2181 EOF
2182 chmod +x $CONFIG_STATUS
2183 ac_clean_files=$ac_clean_files_save
2184
2185 # configure is writing to config.log, and then calls config.status.
2186 # config.status does its own redirection, appending to config.log.
2187 # Unfortunately, on DOS this fails, as config.log is still kept open
2188 # by configure, so config.status won't be able to write to it; its
2189 # output is simply discarded.  So we exec the FD to /dev/null,
2190 # effectively closing config.log, so it can be properly (re)opened and
2191 # appended to by config.status.  When coming back to configure, we
2192 # need to make the FD available again.
2193 if test "$no_create" != yes; then
2194   ac_cs_success=:
2195   exec 5>/dev/null
2196   $SHELL $CONFIG_STATUS || ac_cs_success=false
2197   exec 5>>config.log
2198   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2199   # would make configure fail if this is the last instruction.
2200   $ac_cs_success || { (exit 1); exit 1; }
2201 fi
2202