* lisp/nnshimbun.el (nnshimbun-type-definition): Follow URL change of `ZDNet'.
[elisp/gnus.git-] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.14.1 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-emacs=EMACS      compile with EMACS [EMACS=emacs, mule...]"
16 ac_help="$ac_help
17   --with-xemacs=XEMACS    compile with XEMACS [XEMACS=xemacs]"
18 ac_help="$ac_help
19   --with-lispdir=DIR      Where to install lisp files
20                           (for XEmacs package, use --with-packagedir instead)"
21 ac_help="$ac_help
22   --with-packagedir=DIR   package DIR for XEmacs"
23 ac_help="$ac_help
24   --with-addpath=PATH     search Emacs-Lisp libraries with PATH
25                           use colons to separate directory names"
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.14.1"
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       test -f "$cache_file" && . $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   GNUS_PRODUCT_NAME=t-gnus
537 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
538 echo "configure:539: checking whether ${MAKE-make} sets \${MAKE}" >&5
539 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
540 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
541   echo $ac_n "(cached) $ac_c" 1>&6
542 else
543   cat > conftestmake <<\EOF
544 all:
545         @echo 'ac_maketemp="${MAKE}"'
546 EOF
547 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
548 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
549 if test -n "$ac_maketemp"; then
550   eval ac_cv_prog_make_${ac_make}_set=yes
551 else
552   eval ac_cv_prog_make_${ac_make}_set=no
553 fi
554 rm -f conftestmake
555 fi
556 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
557   echo "$ac_t""yes" 1>&6
558   SET_MAKE=
559 else
560   echo "$ac_t""no" 1>&6
561   SET_MAKE="MAKE=${MAKE-make}"
562 fi
563
564 ac_aux_dir=
565 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
566   if test -f $ac_dir/install-sh; then
567     ac_aux_dir=$ac_dir
568     ac_install_sh="$ac_aux_dir/install-sh -c"
569     break
570   elif test -f $ac_dir/install.sh; then
571     ac_aux_dir=$ac_dir
572     ac_install_sh="$ac_aux_dir/install.sh -c"
573     break
574   fi
575 done
576 if test -z "$ac_aux_dir"; then
577   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
578 fi
579 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
580 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
581 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
582
583 # Find a good install program.  We prefer a C program (faster),
584 # so one script is as good as another.  But avoid the broken or
585 # incompatible versions:
586 # SysV /etc/install, /usr/sbin/install
587 # SunOS /usr/etc/install
588 # IRIX /sbin/install
589 # AIX /bin/install
590 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
591 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
592 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
593 # ./install, which can be erroneously created by make from ./install.sh.
594 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
595 echo "configure:596: checking for a BSD compatible install" >&5
596 if test -z "$INSTALL"; then
597 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
598   echo $ac_n "(cached) $ac_c" 1>&6
599 else
600     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
601   for ac_dir in $PATH; do
602     # Account for people who put trailing slashes in PATH elements.
603     case "$ac_dir/" in
604     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
605     *)
606       # OSF1 and SCO ODT 3.0 have their own names for install.
607       # Don't use installbsd from OSF since it installs stuff as root
608       # by default.
609       for ac_prog in ginstall scoinst install; do
610         if test -f $ac_dir/$ac_prog; then
611           if test $ac_prog = install &&
612             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
613             # AIX install.  It has an incompatible calling convention.
614             :
615           elif test $ac_prog = install &&
616             grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
617             # program-specific install script used by HP pwplus--don't use.
618             :
619           else
620             ac_cv_path_install="$ac_dir/$ac_prog -c"
621             break 2
622           fi
623         fi
624       done
625       ;;
626     esac
627   done
628   IFS="$ac_save_IFS"
629
630 fi
631   if test "${ac_cv_path_install+set}" = set; then
632     INSTALL="$ac_cv_path_install"
633   else
634     # As a last resort, use the slow shell script.  We don't cache a
635     # path for INSTALL within a source directory, because that will
636     # break other packages using the cache if that directory is
637     # removed, or if the path is relative.
638     INSTALL="$ac_install_sh"
639   fi
640 fi
641 echo "$ac_t""$INSTALL" 1>&6
642
643 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
644 # It thinks the first close brace ends the variable substitution.
645 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
646
647 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
648
649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
650
651 # Extract the first word of "makeinfo", so it can be a program name with args.
652 set dummy makeinfo; ac_word=$2
653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
654 echo "configure:655: checking for $ac_word" >&5
655 if eval "test \"\${ac_cv_prog_MAKEINFO+set}\" = set"; then
656   echo $ac_n "(cached) $ac_c" 1>&6
657 else
658   if test -n "$MAKEINFO"; then
659   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
660 else
661   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
662   ac_dummy="$PATH"
663   for ac_dir in $ac_dummy; do
664     test -z "$ac_dir" && ac_dir=.
665     if test -f $ac_dir/$ac_word; then
666       ac_cv_prog_MAKEINFO="makeinfo"
667       break
668     fi
669   done
670   IFS="$ac_save_ifs"
671   test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="no"
672 fi
673 fi
674 MAKEINFO="$ac_cv_prog_MAKEINFO"
675 if test -n "$MAKEINFO"; then
676   echo "$ac_t""$MAKEINFO" 1>&6
677 else
678   echo "$ac_t""no" 1>&6
679 fi
680
681
682       test x$EMACS = xt && EMACS=
683
684   # Check whether --with-emacs or --without-emacs was given.
685 if test "${with_emacs+set}" = set; then
686   withval="$with_emacs"
687   if test x$withval = xyes -o x$withval = x; then
688       for ac_prog in emacs xemacs mule
689 do
690 # Extract the first word of "$ac_prog", so it can be a program name with args.
691 set dummy $ac_prog; ac_word=$2
692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
693 echo "configure:694: checking for $ac_word" >&5
694 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
695   echo $ac_n "(cached) $ac_c" 1>&6
696 else
697   if test -n "$EMACS"; then
698   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
699 else
700   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
701   ac_dummy="$PATH"
702   for ac_dir in $ac_dummy; do
703     test -z "$ac_dir" && ac_dir=.
704     if test -f $ac_dir/$ac_word; then
705       ac_cv_prog_EMACS="$ac_prog"
706       break
707     fi
708   done
709   IFS="$ac_save_ifs"
710 fi
711 fi
712 EMACS="$ac_cv_prog_EMACS"
713 if test -n "$EMACS"; then
714   echo "$ac_t""$EMACS" 1>&6
715 else
716   echo "$ac_t""no" 1>&6
717 fi
718
719 test -n "$EMACS" && break
720 done
721 test -n "$EMACS" || EMACS="emacs"
722
723     else
724       # Extract the first word of "$withval", so it can be a program name with args.
725 set dummy $withval; ac_word=$2
726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
727 echo "configure:728: checking for $ac_word" >&5
728 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
729   echo $ac_n "(cached) $ac_c" 1>&6
730 else
731   if test -n "$EMACS"; then
732   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
733 else
734   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
735   ac_dummy="$PATH"
736   for ac_dir in $ac_dummy; do
737     test -z "$ac_dir" && ac_dir=.
738     if test -f $ac_dir/$ac_word; then
739       ac_cv_prog_EMACS="$withval"
740       break
741     fi
742   done
743   IFS="$ac_save_ifs"
744   test -z "$ac_cv_prog_EMACS" && ac_cv_prog_EMACS="emacs"
745 fi
746 fi
747 EMACS="$ac_cv_prog_EMACS"
748 if test -n "$EMACS"; then
749   echo "$ac_t""$EMACS" 1>&6
750 else
751   echo "$ac_t""no" 1>&6
752 fi
753
754     fi
755 fi
756
757   # Check whether --with-xemacs or --without-xemacs was given.
758 if test "${with_xemacs+set}" = set; then
759   withval="$with_xemacs"
760   if test x$withval = xyes -o x$withval = x; then
761       # Extract the first word of "xemacs", so it can be a program name with args.
762 set dummy xemacs; ac_word=$2
763 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
764 echo "configure:765: checking for $ac_word" >&5
765 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
766   echo $ac_n "(cached) $ac_c" 1>&6
767 else
768   if test -n "$XEMACS"; then
769   ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
770 else
771   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
772   ac_dummy="$PATH"
773   for ac_dir in $ac_dummy; do
774     test -z "$ac_dir" && ac_dir=.
775     if test -f $ac_dir/$ac_word; then
776       ac_cv_prog_XEMACS="xemacs"
777       break
778     fi
779   done
780   IFS="$ac_save_ifs"
781   test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
782 fi
783 fi
784 XEMACS="$ac_cv_prog_XEMACS"
785 if test -n "$XEMACS"; then
786   echo "$ac_t""$XEMACS" 1>&6
787 else
788   echo "$ac_t""no" 1>&6
789 fi
790
791     else
792       # Extract the first word of "$withval", so it can be a program name with args.
793 set dummy $withval; ac_word=$2
794 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
795 echo "configure:796: checking for $ac_word" >&5
796 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
797   echo $ac_n "(cached) $ac_c" 1>&6
798 else
799   if test -n "$XEMACS"; then
800   ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
801 else
802   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
803   ac_dummy="$PATH"
804   for ac_dir in $ac_dummy; do
805     test -z "$ac_dir" && ac_dir=.
806     if test -f $ac_dir/$ac_word; then
807       ac_cv_prog_XEMACS="$withval"
808       break
809     fi
810   done
811   IFS="$ac_save_ifs"
812   test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
813 fi
814 fi
815 XEMACS="$ac_cv_prog_XEMACS"
816 if test -n "$XEMACS"; then
817   echo "$ac_t""$XEMACS" 1>&6
818 else
819   echo "$ac_t""no" 1>&6
820 fi
821
822     fi
823     EMACS=$XEMACS
824 else
825   XEMACS=xemacs
826     test x$EMACS = x &&\
827       for ac_prog in emacs xemacs mule
828 do
829 # Extract the first word of "$ac_prog", so it can be a program name with args.
830 set dummy $ac_prog; ac_word=$2
831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
832 echo "configure:833: checking for $ac_word" >&5
833 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
834   echo $ac_n "(cached) $ac_c" 1>&6
835 else
836   if test -n "$EMACS"; then
837   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
838 else
839   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
840   ac_dummy="$PATH"
841   for ac_dir in $ac_dummy; do
842     test -z "$ac_dir" && ac_dir=.
843     if test -f $ac_dir/$ac_word; then
844       ac_cv_prog_EMACS="$ac_prog"
845       break
846     fi
847   done
848   IFS="$ac_save_ifs"
849 fi
850 fi
851 EMACS="$ac_cv_prog_EMACS"
852 if test -n "$EMACS"; then
853   echo "$ac_t""$EMACS" 1>&6
854 else
855   echo "$ac_t""no" 1>&6
856 fi
857
858 test -n "$EMACS" && break
859 done
860 test -n "$EMACS" || EMACS="emacs"
861
862 fi
863
864   
865   
866   echo $ac_n "checking where lisp files should go""... $ac_c" 1>&6
867 echo "configure:868: checking where lisp files should go" >&5
868   # Check whether --with-lispdir or --without-lispdir was given.
869 if test "${with_lispdir+set}" = set; then
870   withval="$with_lispdir"
871   lispdir=$withval
872 else
873   emacsdir=$datadir/emacs
874     test x$prefix = xNONE && prefix=$ac_default_prefix
875     case `echo x$EMACS | sed -e 's/x//' -e 's/^.*\///'` in
876     emacs|emacs-*)
877       if test -d $prefix/share/emacs; then
878         emacsdir=$prefix/share/emacs
879       elif test -d $prefix/lib/emacs; then
880         emacsdir=$prefix/lib/emacs
881       fi;;
882     xemacs|xemacs-*)
883       if test -d $prefix/lib/xemacs; then
884         emacsdir=$prefix/lib/xemacs
885       elif test -d $prefix/share/xemacs; then
886         emacsdir=$prefix/share/xemacs
887       fi;;
888     mule|mule-*)
889       if test -d $prefix/share/mule; then
890         emacsdir=$prefix/share/mule
891       elif test -d $prefix/lib/mule; then
892         emacsdir=$prefix/lib/mule
893       elif test -d $prefix/share/emacs; then
894         emacsdir=$prefix/share/emacs
895       elif test -d $prefix/lib/emacs; then
896         emacsdir=$prefix/lib/emacs
897       fi;;
898     esac
899     lispdir=$emacsdir/site-lisp/$GNUS_PRODUCT_NAME
900 fi
901
902   echo "$ac_t""$lispdir
903          (it will be ignored when \"make install-package[-ja]\" is done)" 1>&6
904   
905   # Check whether --with-packagedir or --without-packagedir was given.
906 if test "${with_packagedir+set}" = set; then
907   withval="$with_packagedir"
908   if test x$withval != xyes -a x$withval != x; then
909       echo $ac_n "checking where the package should go""... $ac_c" 1>&6
910 echo "configure:911: checking where the package should go" >&5
911       PACKAGEDIR=$withval
912       echo "$ac_t""$PACKAGEDIR" 1>&6
913     fi
914 else
915   PACKAGEDIR=
916 fi
917
918   
919   # Check whether --with-addpath or --without-addpath was given.
920 if test "${with_addpath+set}" = set; then
921   withval="$with_addpath"
922   if test x$withval != xyes -a x$withval != x; then
923       echo $ac_n "checking where to find the additional elisp libraries""... $ac_c" 1>&6
924 echo "configure:925: checking where to find the additional elisp libraries" >&5
925       ADDITIONAL_LOAD_PATH=$withval
926       echo "$ac_t""$ADDITIONAL_LOAD_PATH" 1>&6
927     fi
928 else
929   ADDITIONAL_LOAD_PATH=
930 fi
931
932   
933 trap '' 1 2 15
934 cat > confcache <<\EOF
935 # This file is a shell script that caches the results of configure
936 # tests run on this system so they can be shared between configure
937 # scripts and configure runs.  It is not useful on other systems.
938 # If it contains results you don't want to keep, you may remove or edit it.
939 #
940 # By default, configure uses ./config.cache as the cache file,
941 # creating it if it does not exist already.  You can give configure
942 # the --cache-file=FILE option to use a different cache file; that is
943 # what configure does when it calls configure scripts in
944 # subdirectories, so they share the cache.
945 # Giving --cache-file=/dev/null disables caching, for debugging configure.
946 # config.status only pays attention to the cache file if you give it the
947 # --recheck option to rerun configure.
948 #
949 EOF
950 # The following way of writing the cache mishandles newlines in values,
951 # but we know of no workaround that is simple, portable, and efficient.
952 # So, don't put newlines in cache variables' values.
953 # Ultrix sh set writes to stderr and can't be redirected directly,
954 # and sets the high bit in the cache file unless we assign to the vars.
955 (set) 2>&1 |
956   case `(ac_space=' '; set | grep ac_space) 2>&1` in
957   *ac_space=\ *)
958     # `set' does not quote correctly, so add quotes (double-quote substitution
959     # turns \\\\ into \\, and sed turns \\ into \).
960     sed -n \
961       -e "s/'/'\\\\''/g" \
962       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
963     ;;
964   *)
965     # `set' quotes correctly as required by POSIX, so do not add quotes.
966     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
967     ;;
968   esac >> confcache
969 if cmp -s $cache_file confcache; then
970   :
971 else
972   if test -w $cache_file; then
973     echo "updating cache $cache_file"
974     cat confcache > $cache_file
975   else
976     echo "not updating unwritable cache $cache_file"
977   fi
978 fi
979 rm -f confcache
980
981 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
982
983 test "x$prefix" = xNONE && prefix=$ac_default_prefix
984 # Let make expand exec_prefix.
985 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
986
987 # Any assignment to VPATH causes Sun make to only execute
988 # the first set of double-colon rules, so remove it if not needed.
989 # If there is a colon in the path, we need to keep it.
990 if test "x$srcdir" = x.; then
991   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
992 fi
993
994 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
995
996 # Transform confdefs.h into DEFS.
997 # Protect against shell expansion while executing Makefile rules.
998 # Protect against Makefile macro expansion.
999 cat > conftest.defs <<\EOF
1000 s%#define \([^  ][^     ]*\) *\(.*\)%-D\1=\2%g
1001 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1002 s%\[%\\&%g
1003 s%\]%\\&%g
1004 s%\$%$$%g
1005 EOF
1006 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1007 rm -f conftest.defs
1008
1009
1010 # Without the "./", some shells look in PATH for config.status.
1011 : ${CONFIG_STATUS=./config.status}
1012
1013 echo creating $CONFIG_STATUS
1014 rm -f $CONFIG_STATUS
1015 cat > $CONFIG_STATUS <<EOF
1016 #! /bin/sh
1017 # Generated automatically by configure.
1018 # Run this file to recreate the current configuration.
1019 # This directory was configured as follows,
1020 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1021 #
1022 # $0 $ac_configure_args
1023 #
1024 # Compiler output produced by configure, useful for debugging
1025 # configure, is in ./config.log if it exists.
1026
1027 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1028 for ac_option
1029 do
1030   case "\$ac_option" in
1031   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1032     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1033     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1034   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1035     echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
1036     exit 0 ;;
1037   -help | --help | --hel | --he | --h)
1038     echo "\$ac_cs_usage"; exit 0 ;;
1039   *) echo "\$ac_cs_usage"; exit 1 ;;
1040   esac
1041 done
1042
1043 ac_given_srcdir=$srcdir
1044 ac_given_INSTALL="$INSTALL"
1045
1046 trap 'rm -fr `echo "Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1047 EOF
1048 cat >> $CONFIG_STATUS <<EOF
1049
1050 # Protect against being on the right side of a sed subst in config.status.
1051 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1052  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1053 $ac_vpsub
1054 $extrasub
1055 s%@SHELL@%$SHELL%g
1056 s%@CFLAGS@%$CFLAGS%g
1057 s%@CPPFLAGS@%$CPPFLAGS%g
1058 s%@CXXFLAGS@%$CXXFLAGS%g
1059 s%@FFLAGS@%$FFLAGS%g
1060 s%@DEFS@%$DEFS%g
1061 s%@LDFLAGS@%$LDFLAGS%g
1062 s%@LIBS@%$LIBS%g
1063 s%@exec_prefix@%$exec_prefix%g
1064 s%@prefix@%$prefix%g
1065 s%@program_transform_name@%$program_transform_name%g
1066 s%@bindir@%$bindir%g
1067 s%@sbindir@%$sbindir%g
1068 s%@libexecdir@%$libexecdir%g
1069 s%@datadir@%$datadir%g
1070 s%@sysconfdir@%$sysconfdir%g
1071 s%@sharedstatedir@%$sharedstatedir%g
1072 s%@localstatedir@%$localstatedir%g
1073 s%@libdir@%$libdir%g
1074 s%@includedir@%$includedir%g
1075 s%@oldincludedir@%$oldincludedir%g
1076 s%@infodir@%$infodir%g
1077 s%@mandir@%$mandir%g
1078 s%@SET_MAKE@%$SET_MAKE%g
1079 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1080 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1081 s%@INSTALL_DATA@%$INSTALL_DATA%g
1082 s%@MAKEINFO@%$MAKEINFO%g
1083 s%@EMACS@%$EMACS%g
1084 s%@XEMACS@%$XEMACS%g
1085 s%@lispdir@%$lispdir%g
1086 s%@PACKAGEDIR@%$PACKAGEDIR%g
1087 s%@ADDITIONAL_LOAD_PATH@%$ADDITIONAL_LOAD_PATH%g
1088
1089 CEOF
1090 EOF
1091
1092 cat >> $CONFIG_STATUS <<\EOF
1093
1094 # Split the substitutions into bite-sized pieces for seds with
1095 # small command number limits, like on Digital OSF/1 and HP-UX.
1096 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1097 ac_file=1 # Number of current file.
1098 ac_beg=1 # First line for current file.
1099 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1100 ac_more_lines=:
1101 ac_sed_cmds=""
1102 while $ac_more_lines; do
1103   if test $ac_beg -gt 1; then
1104     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1105   else
1106     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1107   fi
1108   if test ! -s conftest.s$ac_file; then
1109     ac_more_lines=false
1110     rm -f conftest.s$ac_file
1111   else
1112     if test -z "$ac_sed_cmds"; then
1113       ac_sed_cmds="sed -f conftest.s$ac_file"
1114     else
1115       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1116     fi
1117     ac_file=`expr $ac_file + 1`
1118     ac_beg=$ac_end
1119     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1120   fi
1121 done
1122 if test -z "$ac_sed_cmds"; then
1123   ac_sed_cmds=cat
1124 fi
1125 EOF
1126
1127 cat >> $CONFIG_STATUS <<EOF
1128
1129 CONFIG_FILES=\${CONFIG_FILES-"Makefile lisp/Makefile lisp/dgnuspath.el texi/Makefile"}
1130 EOF
1131 cat >> $CONFIG_STATUS <<\EOF
1132 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1133   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1134   case "$ac_file" in
1135   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1136        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1137   *) ac_file_in="${ac_file}.in" ;;
1138   esac
1139
1140   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1141
1142   # Remove last slash and all that follows it.  Not all systems have dirname.
1143   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1144   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1145     # The file is in a subdirectory.
1146     test ! -d "$ac_dir" && mkdir "$ac_dir"
1147     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1148     # A "../" for each directory in $ac_dir_suffix.
1149     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1150   else
1151     ac_dir_suffix= ac_dots=
1152   fi
1153
1154   case "$ac_given_srcdir" in
1155   .)  srcdir=.
1156       if test -z "$ac_dots"; then top_srcdir=.
1157       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1158   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1159   *) # Relative path.
1160     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1161     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1162   esac
1163
1164   case "$ac_given_INSTALL" in
1165   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1166   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1167   esac
1168
1169   echo creating "$ac_file"
1170   rm -f "$ac_file"
1171   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1172   case "$ac_file" in
1173   *Makefile*) ac_comsub="1i\\
1174 # $configure_input" ;;
1175   *) ac_comsub= ;;
1176   esac
1177
1178   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1179   sed -e "$ac_comsub
1180 s%@configure_input@%$configure_input%g
1181 s%@srcdir@%$srcdir%g
1182 s%@top_srcdir@%$top_srcdir%g
1183 s%@INSTALL@%$INSTALL%g
1184 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1185 fi; done
1186 rm -f conftest.s*
1187
1188 EOF
1189 cat >> $CONFIG_STATUS <<EOF
1190
1191 EOF
1192 cat >> $CONFIG_STATUS <<\EOF
1193
1194 exit 0
1195 EOF
1196 chmod +x $CONFIG_STATUS
1197 rm -fr confdefs* $ac_clean_files
1198 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1199