* gnus-msg.el (gnus-summary-digest-mail-forward): Set article numbers to be
[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-etcdir=DIR       Where to install etc files"
23 ac_help="$ac_help
24   --with-url=DIR          Specify where to find the url package"
25 ac_help="$ac_help
26   --with-w3=DIR           Specify where to find the w3 package"
27 ac_help="$ac_help
28   --with-fonts            Assume all fonts required are available"
29 ac_help="$ac_help
30   --with-packagedir=DIR   package DIR for XEmacs"
31 ac_help="$ac_help
32   --with-addpath=PATH     search Emacs-Lisp libraries with PATH
33                           use colons to separate directory names"
34
35 # Initialize some variables set by options.
36 # The variables have the same names as the options, with
37 # dashes changed to underlines.
38 build=NONE
39 cache_file=./config.cache
40 exec_prefix=NONE
41 host=NONE
42 no_create=
43 nonopt=NONE
44 no_recursion=
45 prefix=NONE
46 program_prefix=NONE
47 program_suffix=NONE
48 program_transform_name=s,x,x,
49 silent=
50 site=
51 srcdir=
52 target=NONE
53 verbose=
54 x_includes=NONE
55 x_libraries=NONE
56 bindir='${exec_prefix}/bin'
57 sbindir='${exec_prefix}/sbin'
58 libexecdir='${exec_prefix}/libexec'
59 datadir='${prefix}/share'
60 sysconfdir='${prefix}/etc'
61 sharedstatedir='${prefix}/com'
62 localstatedir='${prefix}/var'
63 libdir='${exec_prefix}/lib'
64 includedir='${prefix}/include'
65 oldincludedir='/usr/include'
66 infodir='${prefix}/info'
67 mandir='${prefix}/man'
68
69 # Initialize some other variables.
70 subdirs=
71 MFLAGS= MAKEFLAGS=
72 SHELL=${CONFIG_SHELL-/bin/sh}
73 # Maximum number of lines to put in a shell here document.
74 ac_max_here_lines=12
75
76 ac_prev=
77 for ac_option
78 do
79
80   # If the previous option needs an argument, assign it.
81   if test -n "$ac_prev"; then
82     eval "$ac_prev=\$ac_option"
83     ac_prev=
84     continue
85   fi
86
87   case "$ac_option" in
88   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89   *) ac_optarg= ;;
90   esac
91
92   # Accept the important Cygnus configure options, so we can diagnose typos.
93
94   case "$ac_option" in
95
96   -bindir | --bindir | --bindi | --bind | --bin | --bi)
97     ac_prev=bindir ;;
98   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
99     bindir="$ac_optarg" ;;
100
101   -build | --build | --buil | --bui | --bu)
102     ac_prev=build ;;
103   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
104     build="$ac_optarg" ;;
105
106   -cache-file | --cache-file | --cache-fil | --cache-fi \
107   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
108     ac_prev=cache_file ;;
109   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
110   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
111     cache_file="$ac_optarg" ;;
112
113   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
114     ac_prev=datadir ;;
115   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
116   | --da=*)
117     datadir="$ac_optarg" ;;
118
119   -disable-* | --disable-*)
120     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
121     # Reject names that are not valid shell variable names.
122     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
123       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124     fi
125     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
126     eval "enable_${ac_feature}=no" ;;
127
128   -enable-* | --enable-*)
129     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
130     # Reject names that are not valid shell variable names.
131     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
132       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133     fi
134     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135     case "$ac_option" in
136       *=*) ;;
137       *) ac_optarg=yes ;;
138     esac
139     eval "enable_${ac_feature}='$ac_optarg'" ;;
140
141   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
142   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
143   | --exec | --exe | --ex)
144     ac_prev=exec_prefix ;;
145   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
146   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
147   | --exec=* | --exe=* | --ex=*)
148     exec_prefix="$ac_optarg" ;;
149
150   -gas | --gas | --ga | --g)
151     # Obsolete; use --with-gas.
152     with_gas=yes ;;
153
154   -help | --help | --hel | --he)
155     # Omit some internal or obsolete options to make the list less imposing.
156     # This message is too long to be a string in the A/UX 3.1 sh.
157     cat << EOF
158 Usage: configure [options] [host]
159 Options: [defaults in brackets after descriptions]
160 Configuration:
161   --cache-file=FILE       cache test results in FILE
162   --help                  print this message
163   --no-create             do not create output files
164   --quiet, --silent       do not print \`checking...' messages
165   --version               print the version of autoconf that created configure
166 Directory and file names:
167   --prefix=PREFIX         install architecture-independent files in PREFIX
168                           [$ac_default_prefix]
169   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
170                           [same as prefix]
171   --bindir=DIR            user executables in DIR [EPREFIX/bin]
172   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
173   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
174   --datadir=DIR           read-only architecture-independent data in DIR
175                           [PREFIX/share]
176   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
177   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
178                           [PREFIX/com]
179   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
180   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
181   --includedir=DIR        C header files in DIR [PREFIX/include]
182   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
183   --infodir=DIR           info documentation in DIR [PREFIX/info]
184   --mandir=DIR            man documentation in DIR [PREFIX/man]
185   --srcdir=DIR            find the sources in DIR [configure dir or ..]
186   --program-prefix=PREFIX prepend PREFIX to installed program names
187   --program-suffix=SUFFIX append SUFFIX to installed program names
188   --program-transform-name=PROGRAM
189                           run sed PROGRAM on installed program names
190 EOF
191     cat << EOF
192 Host type:
193   --build=BUILD           configure for building on BUILD [BUILD=HOST]
194   --host=HOST             configure for HOST [guessed]
195   --target=TARGET         configure for TARGET [TARGET=HOST]
196 Features and packages:
197   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
198   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
199   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
200   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
201   --x-includes=DIR        X include files are in DIR
202   --x-libraries=DIR       X library files are in DIR
203 EOF
204     if test -n "$ac_help"; then
205       echo "--enable and --with options recognized:$ac_help"
206     fi
207     exit 0 ;;
208
209   -host | --host | --hos | --ho)
210     ac_prev=host ;;
211   -host=* | --host=* | --hos=* | --ho=*)
212     host="$ac_optarg" ;;
213
214   -includedir | --includedir | --includedi | --included | --include \
215   | --includ | --inclu | --incl | --inc)
216     ac_prev=includedir ;;
217   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
218   | --includ=* | --inclu=* | --incl=* | --inc=*)
219     includedir="$ac_optarg" ;;
220
221   -infodir | --infodir | --infodi | --infod | --info | --inf)
222     ac_prev=infodir ;;
223   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
224     infodir="$ac_optarg" ;;
225
226   -libdir | --libdir | --libdi | --libd)
227     ac_prev=libdir ;;
228   -libdir=* | --libdir=* | --libdi=* | --libd=*)
229     libdir="$ac_optarg" ;;
230
231   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
232   | --libexe | --libex | --libe)
233     ac_prev=libexecdir ;;
234   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
235   | --libexe=* | --libex=* | --libe=*)
236     libexecdir="$ac_optarg" ;;
237
238   -localstatedir | --localstatedir | --localstatedi | --localstated \
239   | --localstate | --localstat | --localsta | --localst \
240   | --locals | --local | --loca | --loc | --lo)
241     ac_prev=localstatedir ;;
242   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
243   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
244   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
245     localstatedir="$ac_optarg" ;;
246
247   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
248     ac_prev=mandir ;;
249   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
250     mandir="$ac_optarg" ;;
251
252   -nfp | --nfp | --nf)
253     # Obsolete; use --without-fp.
254     with_fp=no ;;
255
256   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257   | --no-cr | --no-c)
258     no_create=yes ;;
259
260   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
261   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
262     no_recursion=yes ;;
263
264   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
265   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
266   | --oldin | --oldi | --old | --ol | --o)
267     ac_prev=oldincludedir ;;
268   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
269   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
270   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
271     oldincludedir="$ac_optarg" ;;
272
273   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
274     ac_prev=prefix ;;
275   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
276     prefix="$ac_optarg" ;;
277
278   -program-prefix | --program-prefix | --program-prefi | --program-pref \
279   | --program-pre | --program-pr | --program-p)
280     ac_prev=program_prefix ;;
281   -program-prefix=* | --program-prefix=* | --program-prefi=* \
282   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
283     program_prefix="$ac_optarg" ;;
284
285   -program-suffix | --program-suffix | --program-suffi | --program-suff \
286   | --program-suf | --program-su | --program-s)
287     ac_prev=program_suffix ;;
288   -program-suffix=* | --program-suffix=* | --program-suffi=* \
289   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
290     program_suffix="$ac_optarg" ;;
291
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     ac_prev=program_transform_name ;;
300   -program-transform-name=* | --program-transform-name=* \
301   | --program-transform-nam=* | --program-transform-na=* \
302   | --program-transform-n=* | --program-transform-=* \
303   | --program-transform=* | --program-transfor=* \
304   | --program-transfo=* | --program-transf=* \
305   | --program-trans=* | --program-tran=* \
306   | --progr-tra=* | --program-tr=* | --program-t=*)
307     program_transform_name="$ac_optarg" ;;
308
309   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
310   | -silent | --silent | --silen | --sile | --sil)
311     silent=yes ;;
312
313   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
314     ac_prev=sbindir ;;
315   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
316   | --sbi=* | --sb=*)
317     sbindir="$ac_optarg" ;;
318
319   -sharedstatedir | --sharedstatedir | --sharedstatedi \
320   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
321   | --sharedst | --shareds | --shared | --share | --shar \
322   | --sha | --sh)
323     ac_prev=sharedstatedir ;;
324   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
325   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
326   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
327   | --sha=* | --sh=*)
328     sharedstatedir="$ac_optarg" ;;
329
330   -site | --site | --sit)
331     ac_prev=site ;;
332   -site=* | --site=* | --sit=*)
333     site="$ac_optarg" ;;
334
335   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
336     ac_prev=srcdir ;;
337   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
338     srcdir="$ac_optarg" ;;
339
340   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
341   | --syscon | --sysco | --sysc | --sys | --sy)
342     ac_prev=sysconfdir ;;
343   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
344   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
345     sysconfdir="$ac_optarg" ;;
346
347   -target | --target | --targe | --targ | --tar | --ta | --t)
348     ac_prev=target ;;
349   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
350     target="$ac_optarg" ;;
351
352   -v | -verbose | --verbose | --verbos | --verbo | --verb)
353     verbose=yes ;;
354
355   -version | --version | --versio | --versi | --vers)
356     echo "configure generated by autoconf version 2.14.1"
357     exit 0 ;;
358
359   -with-* | --with-*)
360     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
361     # Reject names that are not valid shell variable names.
362     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
363       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364     fi
365     ac_package=`echo $ac_package| sed 's/-/_/g'`
366     case "$ac_option" in
367       *=*) ;;
368       *) ac_optarg=yes ;;
369     esac
370     eval "with_${ac_package}='$ac_optarg'" ;;
371
372   -without-* | --without-*)
373     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
374     # Reject names that are not valid shell variable names.
375     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
376       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377     fi
378     ac_package=`echo $ac_package| sed 's/-/_/g'`
379     eval "with_${ac_package}=no" ;;
380
381   --x)
382     # Obsolete; use --with-x.
383     with_x=yes ;;
384
385   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
386   | --x-incl | --x-inc | --x-in | --x-i)
387     ac_prev=x_includes ;;
388   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
389   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
390     x_includes="$ac_optarg" ;;
391
392   -x-libraries | --x-libraries | --x-librarie | --x-librari \
393   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
394     ac_prev=x_libraries ;;
395   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
396   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
397     x_libraries="$ac_optarg" ;;
398
399   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400     ;;
401
402   *)
403     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
404       echo "configure: warning: $ac_option: invalid host type" 1>&2
405     fi
406     if test "x$nonopt" != xNONE; then
407       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
408     fi
409     nonopt="$ac_option"
410     ;;
411
412   esac
413 done
414
415 if test -n "$ac_prev"; then
416   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
417 fi
418
419 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
420
421 # File descriptor usage:
422 # 0 standard input
423 # 1 file creation
424 # 2 errors and warnings
425 # 3 some systems may open it to /dev/tty
426 # 4 used on the Kubota Titan
427 # 6 checking for... messages and results
428 # 5 compiler messages saved in config.log
429 if test "$silent" = yes; then
430   exec 6>/dev/null
431 else
432   exec 6>&1
433 fi
434 exec 5>./config.log
435
436 echo "\
437 This file contains any messages produced by compilers while
438 running configure, to aid debugging if configure makes a mistake.
439 " 1>&5
440
441 # Strip out --no-create and --no-recursion so they do not pile up.
442 # Also quote any args containing shell metacharacters.
443 ac_configure_args=
444 for ac_arg
445 do
446   case "$ac_arg" in
447   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448   | --no-cr | --no-c) ;;
449   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
450   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
451   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
452   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
453   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454   esac
455 done
456
457 # NLS nuisances.
458 # Only set these to C if already set.  These must not be set unconditionally
459 # because not all systems understand e.g. LANG=C (notably SCO).
460 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
461 # Non-C LC_CTYPE values break the ctype check.
462 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
463 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
464 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
465 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
466
467 # confdefs.h avoids OS command line length limits that DEFS can exceed.
468 rm -rf conftest* confdefs.h
469 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
470 echo > confdefs.h
471
472 # A filename unique to this package, relative to the directory that
473 # configure is in, which we can look for to find out if srcdir is correct.
474 ac_unique_file=lisp/gnus.el
475
476 # Find the source files, if location was not specified.
477 if test -z "$srcdir"; then
478   ac_srcdir_defaulted=yes
479   # Try the directory containing this script, then its parent.
480   ac_prog=$0
481   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
482   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
483   srcdir=$ac_confdir
484   if test ! -r $srcdir/$ac_unique_file; then
485     srcdir=..
486   fi
487 else
488   ac_srcdir_defaulted=no
489 fi
490 if test ! -r $srcdir/$ac_unique_file; then
491   if test "$ac_srcdir_defaulted" = yes; then
492     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
493   else
494     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
495   fi
496 fi
497 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
498
499 # Prefer explicitly selected file to automatically selected ones.
500 if test -z "$CONFIG_SITE"; then
501   if test "x$prefix" != xNONE; then
502     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
503   else
504     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
505   fi
506 fi
507 for ac_site_file in $CONFIG_SITE; do
508   if test -r "$ac_site_file"; then
509     echo "loading site script $ac_site_file"
510     . "$ac_site_file"
511   fi
512 done
513
514 if test -r "$cache_file"; then
515   echo "loading cache $cache_file"
516       test -f "$cache_file" && . $cache_file
517 else
518   echo "creating cache $cache_file"
519   > $cache_file
520 fi
521
522 ac_ext=c
523 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
524 ac_cpp='$CPP $CPPFLAGS'
525 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
526 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
527 cross_compiling=$ac_cv_prog_cc_cross
528
529 ac_exeext=
530 ac_objext=o
531 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
532   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
533   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
534     ac_n= ac_c='
535 ' ac_t='        '
536   else
537     ac_n=-n ac_c= ac_t=
538   fi
539 else
540   ac_n= ac_c='\c' ac_t=
541 fi
542
543
544 echo $ac_n "defining gnus product name... $ac_c"
545   if eval "test \"\${EMACS_cv_GNUS_PRODUCT_NAME+set}\" = set"; then
546   echo $ac_n "(cached) $ac_c" 1>&6
547 else
548   EMACS_cv_GNUS_PRODUCT_NAME=t-gnus
549 fi
550
551   GNUS_PRODUCT_NAME=${EMACS_cv_GNUS_PRODUCT_NAME}
552   echo "$ac_t""${GNUS_PRODUCT_NAME}" 1>&6
553   
554 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
555 echo "configure:556: checking whether ${MAKE-make} sets \${MAKE}" >&5
556 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
557 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
558   echo $ac_n "(cached) $ac_c" 1>&6
559 else
560   cat > conftestmake <<\EOF
561 all:
562         @echo 'ac_maketemp="${MAKE}"'
563 EOF
564 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
565 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
566 if test -n "$ac_maketemp"; then
567   eval ac_cv_prog_make_${ac_make}_set=yes
568 else
569   eval ac_cv_prog_make_${ac_make}_set=no
570 fi
571 rm -f conftestmake
572 fi
573 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
574   echo "$ac_t""yes" 1>&6
575   SET_MAKE=
576 else
577   echo "$ac_t""no" 1>&6
578   SET_MAKE="MAKE=${MAKE-make}"
579 fi
580
581 ac_aux_dir=
582 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
583   if test -f $ac_dir/install-sh; then
584     ac_aux_dir=$ac_dir
585     ac_install_sh="$ac_aux_dir/install-sh -c"
586     break
587   elif test -f $ac_dir/install.sh; then
588     ac_aux_dir=$ac_dir
589     ac_install_sh="$ac_aux_dir/install.sh -c"
590     break
591   fi
592 done
593 if test -z "$ac_aux_dir"; then
594   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
595 fi
596 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
597 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
598 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
599
600 # Find a good install program.  We prefer a C program (faster),
601 # so one script is as good as another.  But avoid the broken or
602 # incompatible versions:
603 # SysV /etc/install, /usr/sbin/install
604 # SunOS /usr/etc/install
605 # IRIX /sbin/install
606 # AIX /bin/install
607 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
608 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
609 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
610 # ./install, which can be erroneously created by make from ./install.sh.
611 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
612 echo "configure:613: checking for a BSD compatible install" >&5
613 if test -z "$INSTALL"; then
614 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
615   echo $ac_n "(cached) $ac_c" 1>&6
616 else
617     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
618   for ac_dir in $PATH; do
619     # Account for people who put trailing slashes in PATH elements.
620     case "$ac_dir/" in
621     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
622     *)
623       # OSF1 and SCO ODT 3.0 have their own names for install.
624       # Don't use installbsd from OSF since it installs stuff as root
625       # by default.
626       for ac_prog in ginstall scoinst install; do
627         if test -f $ac_dir/$ac_prog; then
628           if test $ac_prog = install &&
629             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
630             # AIX install.  It has an incompatible calling convention.
631             :
632           elif test $ac_prog = install &&
633             grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
634             # program-specific install script used by HP pwplus--don't use.
635             :
636           else
637             ac_cv_path_install="$ac_dir/$ac_prog -c"
638             break 2
639           fi
640         fi
641       done
642       ;;
643     esac
644   done
645   IFS="$ac_save_IFS"
646
647 fi
648   if test "${ac_cv_path_install+set}" = set; then
649     INSTALL="$ac_cv_path_install"
650   else
651     # As a last resort, use the slow shell script.  We don't cache a
652     # path for INSTALL within a source directory, because that will
653     # break other packages using the cache if that directory is
654     # removed, or if the path is relative.
655     INSTALL="$ac_install_sh"
656   fi
657 fi
658 echo "$ac_t""$INSTALL" 1>&6
659
660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
661 # It thinks the first close brace ends the variable substitution.
662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
663
664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
665
666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
667
668 # Extract the first word of "makeinfo", so it can be a program name with args.
669 set dummy makeinfo; ac_word=$2
670 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
671 echo "configure:672: checking for $ac_word" >&5
672 if eval "test \"\${ac_cv_prog_MAKEINFO+set}\" = set"; then
673   echo $ac_n "(cached) $ac_c" 1>&6
674 else
675   if test -n "$MAKEINFO"; then
676   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
677 else
678   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
679   ac_dummy="$PATH"
680   for ac_dir in $ac_dummy; do
681     test -z "$ac_dir" && ac_dir=.
682     if test -f $ac_dir/$ac_word; then
683       ac_cv_prog_MAKEINFO="makeinfo"
684       break
685     fi
686   done
687   IFS="$ac_save_ifs"
688   test -z "$ac_cv_prog_MAKEINFO" && ac_cv_prog_MAKEINFO="no"
689 fi
690 fi
691 MAKEINFO="$ac_cv_prog_MAKEINFO"
692 if test -n "$MAKEINFO"; then
693   echo "$ac_t""$MAKEINFO" 1>&6
694 else
695   echo "$ac_t""no" 1>&6
696 fi
697
698
699       test "$EMACS" = t && EMACS=
700
701     unset ac_cv_prog_EMACS; unset ac_cv_prog_XEMACS;
702
703   # Check whether --with-emacs or --without-emacs was given.
704 if test "${with_emacs+set}" = set; then
705   withval="$with_emacs"
706   if test "$withval" = yes -o -z "$withval"; then
707       for ac_prog in emacs xemacs mule
708 do
709 # Extract the first word of "$ac_prog", so it can be a program name with args.
710 set dummy $ac_prog; ac_word=$2
711 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
712 echo "configure:713: checking for $ac_word" >&5
713 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
714   echo $ac_n "(cached) $ac_c" 1>&6
715 else
716   if test -n "$EMACS"; then
717   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
718 else
719   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
720   ac_dummy="$PATH"
721   for ac_dir in $ac_dummy; do
722     test -z "$ac_dir" && ac_dir=.
723     if test -f $ac_dir/$ac_word; then
724       ac_cv_prog_EMACS="$ac_prog"
725       break
726     fi
727   done
728   IFS="$ac_save_ifs"
729 fi
730 fi
731 EMACS="$ac_cv_prog_EMACS"
732 if test -n "$EMACS"; then
733   echo "$ac_t""$EMACS" 1>&6
734 else
735   echo "$ac_t""no" 1>&6
736 fi
737
738 test -n "$EMACS" && break
739 done
740 test -n "$EMACS" || EMACS="emacs"
741
742     else
743       # Extract the first word of "$withval", so it can be a program name with args.
744 set dummy $withval; ac_word=$2
745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
746 echo "configure:747: checking for $ac_word" >&5
747 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
748   echo $ac_n "(cached) $ac_c" 1>&6
749 else
750   if test -n "$EMACS"; then
751   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
752 else
753   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
754   ac_dummy="$PATH"
755   for ac_dir in $ac_dummy; do
756     test -z "$ac_dir" && ac_dir=.
757     if test -f $ac_dir/$ac_word; then
758       ac_cv_prog_EMACS="$withval"
759       break
760     fi
761   done
762   IFS="$ac_save_ifs"
763   test -z "$ac_cv_prog_EMACS" && ac_cv_prog_EMACS="emacs"
764 fi
765 fi
766 EMACS="$ac_cv_prog_EMACS"
767 if test -n "$EMACS"; then
768   echo "$ac_t""$EMACS" 1>&6
769 else
770   echo "$ac_t""no" 1>&6
771 fi
772
773     fi
774 fi
775
776   # Check whether --with-xemacs or --without-xemacs was given.
777 if test "${with_xemacs+set}" = set; then
778   withval="$with_xemacs"
779   if test "$withval" = yes -o -z "$withval"; then
780       # Extract the first word of "xemacs", so it can be a program name with args.
781 set dummy xemacs; ac_word=$2
782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
783 echo "configure:784: checking for $ac_word" >&5
784 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
785   echo $ac_n "(cached) $ac_c" 1>&6
786 else
787   if test -n "$XEMACS"; then
788   ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
789 else
790   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
791   ac_dummy="$PATH"
792   for ac_dir in $ac_dummy; do
793     test -z "$ac_dir" && ac_dir=.
794     if test -f $ac_dir/$ac_word; then
795       ac_cv_prog_XEMACS="xemacs"
796       break
797     fi
798   done
799   IFS="$ac_save_ifs"
800   test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
801 fi
802 fi
803 XEMACS="$ac_cv_prog_XEMACS"
804 if test -n "$XEMACS"; then
805   echo "$ac_t""$XEMACS" 1>&6
806 else
807   echo "$ac_t""no" 1>&6
808 fi
809
810     else
811       # Extract the first word of "$withval", so it can be a program name with args.
812 set dummy $withval; ac_word=$2
813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
814 echo "configure:815: checking for $ac_word" >&5
815 if eval "test \"\${ac_cv_prog_XEMACS+set}\" = set"; then
816   echo $ac_n "(cached) $ac_c" 1>&6
817 else
818   if test -n "$XEMACS"; then
819   ac_cv_prog_XEMACS="$XEMACS" # Let the user override the test.
820 else
821   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
822   ac_dummy="$PATH"
823   for ac_dir in $ac_dummy; do
824     test -z "$ac_dir" && ac_dir=.
825     if test -f $ac_dir/$ac_word; then
826       ac_cv_prog_XEMACS="$withval"
827       break
828     fi
829   done
830   IFS="$ac_save_ifs"
831   test -z "$ac_cv_prog_XEMACS" && ac_cv_prog_XEMACS="xemacs"
832 fi
833 fi
834 XEMACS="$ac_cv_prog_XEMACS"
835 if test -n "$XEMACS"; then
836   echo "$ac_t""$XEMACS" 1>&6
837 else
838   echo "$ac_t""no" 1>&6
839 fi
840
841     fi
842     EMACS=$XEMACS
843 else
844   XEMACS=xemacs
845     test -z "$EMACS" && for ac_prog in emacs xemacs mule
846 do
847 # Extract the first word of "$ac_prog", so it can be a program name with args.
848 set dummy $ac_prog; ac_word=$2
849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
850 echo "configure:851: checking for $ac_word" >&5
851 if eval "test \"\${ac_cv_prog_EMACS+set}\" = set"; then
852   echo $ac_n "(cached) $ac_c" 1>&6
853 else
854   if test -n "$EMACS"; then
855   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
856 else
857   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
858   ac_dummy="$PATH"
859   for ac_dir in $ac_dummy; do
860     test -z "$ac_dir" && ac_dir=.
861     if test -f $ac_dir/$ac_word; then
862       ac_cv_prog_EMACS="$ac_prog"
863       break
864     fi
865   done
866   IFS="$ac_save_ifs"
867 fi
868 fi
869 EMACS="$ac_cv_prog_EMACS"
870 if test -n "$EMACS"; then
871   echo "$ac_t""$EMACS" 1>&6
872 else
873   echo "$ac_t""no" 1>&6
874 fi
875
876 test -n "$EMACS" && break
877 done
878 test -n "$EMACS" || EMACS="emacs"
879
880 fi
881
882   
883   
884
885   echo $ac_n "checking what a flavor does $EMACS have""... $ac_c" 1>&6
886 echo "configure:887: checking what a flavor does $EMACS have" >&5
887
888     unset EMACS_cv_SYS_flavor;
889
890   
891 elisp="(cond ((featurep (quote xemacs)) \"XEmacs\")\
892           ((boundp (quote MULE)) \"MULE\")\
893           (t \"FSF Emacs\"))"
894 if test -z ""noecho""; then
895         echo $ac_n "checking for flavor""... $ac_c" 1>&6
896 echo "configure:897: checking for flavor" >&5
897 fi
898 if eval "test \"\${EMACS_cv_SYS_flavor+set}\" = set"; then
899   echo $ac_n "(cached) $ac_c" 1>&6
900 else
901   
902         OUTPUT=./conftest-$$
903         echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
904         eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
905         retval=`cat ${OUTPUT}`
906         echo "=> ${retval}" >& 5 2>&1
907         rm -f ${OUTPUT}
908         EMACS_cv_SYS_flavor=$retval
909
910 fi
911
912 flavor=${EMACS_cv_SYS_flavor}
913 if test -z ""noecho""; then
914         echo "$ac_t""$flavor" 1>&6
915 fi
916
917   case $EMACS_cv_SYS_flavor in
918   XEmacs)
919     EMACS_FLAVOR=xemacs;;
920   MULE)
921     EMACS_FLAVOR=mule;;
922   *)
923     EMACS_FLAVOR=emacs;;
924   esac
925   echo "$ac_t""$EMACS_cv_SYS_flavor" 1>&6
926   if test "$prefix" = NONE; then
927         echo $ac_n "checking prefix for your Emacs""... $ac_c" 1>&6
928 echo "configure:929: checking prefix for your Emacs" >&5
929         
930 elisp="(expand-file-name \"..\" invocation-directory)"
931 if test -z ""noecho""; then
932         echo $ac_n "checking for prefix""... $ac_c" 1>&6
933 echo "configure:934: checking for prefix" >&5
934 fi
935 if eval "test \"\${EMACS_cv_SYS_prefix+set}\" = set"; then
936   echo $ac_n "(cached) $ac_c" 1>&6
937 else
938   
939         OUTPUT=./conftest-$$
940         echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
941         eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
942         retval=`cat ${OUTPUT}`
943         echo "=> ${retval}" >& 5 2>&1
944         rm -f ${OUTPUT}
945         EMACS_cv_SYS_prefix=$retval
946
947 fi
948
949 prefix=${EMACS_cv_SYS_prefix}
950 if test -z ""noecho""; then
951         echo "$ac_t""$prefix" 1>&6
952 fi
953
954         prefix=${EMACS_cv_SYS_prefix}
955         echo "$ac_t""$prefix" 1>&6
956   fi
957   # Check whether --with-lispdir or --without-lispdir was given.
958 if test "${with_lispdir+set}" = set; then
959   withval="$with_lispdir"
960   lispdir=${withval}
961 fi
962
963   echo $ac_n "checking where lisp files should go""... $ac_c" 1>&6
964 echo "configure:965: checking where lisp files should go" >&5
965   if test -z "$lispdir"; then
966         theprefix=$prefix
967     if test "$theprefix" = NONE; then
968         theprefix=$ac_default_prefix
969     fi
970     if test "$EMACS_FLAVOR" = "xemacs"; then
971         lispdir="\$(datadir)/${EMACS_FLAVOR}/site-packages/lisp/${GNUS_PRODUCT_NAME}"
972     else
973         lispdir="\$(datadir)/${EMACS_FLAVOR}/site-lisp/${GNUS_PRODUCT_NAME}"
974     fi
975     for thedir in share lib; do
976         potential=
977         if test -d ${theprefix}/${thedir}/${EMACS_FLAVOR}/site-lisp; then
978            if test "$EMACS_FLAVOR" = "xemacs"; then
979                lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-packages/lisp/${GNUS_PRODUCT_NAME}"
980            else
981                lispdir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-lisp/${GNUS_PRODUCT_NAME}"
982            fi
983            break
984         fi
985     done
986   fi
987   if test ${EMACS_FLAVOR} = xemacs; then
988     echo "$ac_t""$lispdir
989          (it will be ignored when \"make install-package[-ja]\" is done)" 1>&6
990   else
991     echo "$ac_t""$lispdir" 1>&6
992   fi
993   
994
995
996   # Check whether --with-etcdir or --without-etcdir was given.
997 if test "${with_etcdir+set}" = set; then
998   withval="$with_etcdir"
999   etcdir=${withval}
1000 fi
1001
1002   echo $ac_n "checking where etc files should go""... $ac_c" 1>&6
1003 echo "configure:1004: checking where etc files should go" >&5
1004   if test -z "$etcdir"; then
1005         if test "$EMACS_FLAVOR" = "xemacs"; then
1006       etcdir="\$(lispdir)/../../etc"
1007     else
1008     etcdir="\$(lispdir)/../etc"
1009     fi
1010   fi
1011   echo "$ac_t""$etcdir" 1>&6
1012   
1013
1014
1015   echo $ac_n "checking where the TeXinfo docs should go""... $ac_c" 1>&6
1016 echo "configure:1017: checking where the TeXinfo docs should go" >&5
1017     if test "$infodir" = "\${prefix}/info"; then
1018     if test "$EMACS_FLAVOR" = "xemacs"; then
1019       info_dir="\$(prefix)/${thedir}/${EMACS_FLAVOR}/site-packages/info"
1020     else
1021       info_dir="\$(prefix)/info"
1022     fi
1023   else
1024     info_dir=$infodir
1025   fi
1026   echo "$ac_t""$info_dir" 1>&6
1027   
1028
1029
1030 echo $ac_n "checking for acceptable URL version""... $ac_c" 1>&6
1031 echo "configure:1032: checking for acceptable URL version" >&5
1032
1033 unset EMACS_cv_ACCEPTABLE_URL;
1034 unset EMACS_cv_SYS_url_dir;
1035 unset EMACS_cv_SYS_url;
1036
1037 if eval "test \"\${EMACS_cv_ACCEPTABLE_URL+set}\" = set"; then
1038   echo $ac_n "(cached) $ac_c" 1>&6
1039 else
1040   
1041
1042 if test -z ""noecho""; then
1043         echo $ac_n "checking for url-retrieve in url""... $ac_c" 1>&6
1044 echo "configure:1045: checking for url-retrieve in url" >&5
1045 fi
1046 library=`echo url | tr _ -`
1047
1048 elisp="(progn (fmakunbound (quote url-retrieve)) (condition-case nil (progn (require (quote $library)) (fboundp (quote url-retrieve))) (error (prog1 nil (message \"$library not found\")))))"
1049 if test -z ""noecho""; then
1050         echo $ac_n "checking for url""... $ac_c" 1>&6
1051 echo "configure:1052: checking for url" >&5
1052 fi
1053 if eval "test \"\${EMACS_cv_SYS_url+set}\" = set"; then
1054   echo $ac_n "(cached) $ac_c" 1>&6
1055 else
1056   
1057         OUTPUT=./conftest-$$
1058         echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1059         eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1060         retval=`cat ${OUTPUT}`
1061         echo "=> ${retval}" >& 5 2>&1
1062         rm -f ${OUTPUT}
1063         EMACS_cv_SYS_url=$retval
1064
1065 fi
1066
1067 url=${EMACS_cv_SYS_url}
1068 if test -z ""noecho""; then
1069         echo "$ac_t""$url" 1>&6
1070 fi
1071
1072 if test "${EMACS_cv_SYS_url}" = nil; then
1073         EMACS_cv_SYS_url=no
1074 fi
1075 if test "${EMACS_cv_SYS_url}" = t; then
1076         EMACS_cv_SYS_url=yes
1077 fi
1078 HAVE_url=${EMACS_cv_SYS_url}
1079
1080 if test -z ""noecho""; then
1081         echo "$ac_t""$HAVE_url" 1>&6
1082 fi
1083
1084 if test "${HAVE_url}" = yes; then
1085         EMACS_cv_ACCEPTABLE_URL=yes
1086 else
1087         EMACS_cv_ACCEPTABLE_URL=
1088 fi
1089
1090 if test "${EMACS_cv_ACCEPTABLE_URL}" = yes; then
1091         
1092 elisp="(file-name-directory (locate-library \"url\"))"
1093 if test -z ""noecho""; then
1094         echo $ac_n "checking for url_dir""... $ac_c" 1>&6
1095 echo "configure:1096: checking for url_dir" >&5
1096 fi
1097 if eval "test \"\${EMACS_cv_SYS_url_dir+set}\" = set"; then
1098   echo $ac_n "(cached) $ac_c" 1>&6
1099 else
1100   
1101         OUTPUT=./conftest-$$
1102         echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1103         eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1104         retval=`cat ${OUTPUT}`
1105         echo "=> ${retval}" >& 5 2>&1
1106         rm -f ${OUTPUT}
1107         EMACS_cv_SYS_url_dir=$retval
1108
1109 fi
1110
1111 url_dir=${EMACS_cv_SYS_url_dir}
1112 if test -z ""noecho""; then
1113         echo "$ac_t""$url_dir" 1>&6
1114 fi
1115
1116         EMACS_cv_ACCEPTABLE_URL=$EMACS_cv_SYS_url_dir
1117 fi
1118
1119 fi
1120
1121    # Check whether --with-url or --without-url was given.
1122 if test "${with_url+set}" = set; then
1123   withval="$with_url"
1124    EMACS_cv_ACCEPTABLE_URL=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null` 
1125 fi
1126
1127    URL=${EMACS_cv_ACCEPTABLE_URL}
1128    
1129    if test -z "${EMACS_cv_ACCEPTABLE_URL}"; then
1130         echo "$ac_t""not found" 1>&6
1131    else
1132         echo "$ac_t"""${URL}"" 1>&6
1133    fi
1134
1135
1136 echo $ac_n "checking for acceptable W3 version""... $ac_c" 1>&6
1137 echo "configure:1138: checking for acceptable W3 version" >&5
1138
1139 unset EMACS_cv_ACCEPTABLE_W3;
1140 unset EMACS_cv_SYS_w3_dir;
1141 unset EMACS_cv_SYS_w3_forms;
1142
1143 if eval "test \"\${EMACS_cv_ACCEPTABLE_W3+set}\" = set"; then
1144   echo $ac_n "(cached) $ac_c" 1>&6
1145 else
1146   
1147
1148 if test -z ""noecho""; then
1149         echo $ac_n "checking for w3-form-encode-xwfu in w3_forms""... $ac_c" 1>&6
1150 echo "configure:1151: checking for w3-form-encode-xwfu in w3_forms" >&5
1151 fi
1152 library=`echo w3_forms | tr _ -`
1153
1154 elisp="(progn (fmakunbound (quote w3-form-encode-xwfu)) (condition-case nil (progn (require (quote $library)) (fboundp (quote w3-form-encode-xwfu))) (error (prog1 nil (message \"$library not found\")))))"
1155 if test -z ""noecho""; then
1156         echo $ac_n "checking for w3_forms""... $ac_c" 1>&6
1157 echo "configure:1158: checking for w3_forms" >&5
1158 fi
1159 if eval "test \"\${EMACS_cv_SYS_w3_forms+set}\" = set"; then
1160   echo $ac_n "(cached) $ac_c" 1>&6
1161 else
1162   
1163         OUTPUT=./conftest-$$
1164         echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1165         eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1166         retval=`cat ${OUTPUT}`
1167         echo "=> ${retval}" >& 5 2>&1
1168         rm -f ${OUTPUT}
1169         EMACS_cv_SYS_w3_forms=$retval
1170
1171 fi
1172
1173 w3_forms=${EMACS_cv_SYS_w3_forms}
1174 if test -z ""noecho""; then
1175         echo "$ac_t""$w3_forms" 1>&6
1176 fi
1177
1178 if test "${EMACS_cv_SYS_w3_forms}" = nil; then
1179         EMACS_cv_SYS_w3_forms=no
1180 fi
1181 if test "${EMACS_cv_SYS_w3_forms}" = t; then
1182         EMACS_cv_SYS_w3_forms=yes
1183 fi
1184 HAVE_w3_forms=${EMACS_cv_SYS_w3_forms}
1185
1186 if test -z ""noecho""; then
1187         echo "$ac_t""$HAVE_w3_forms" 1>&6
1188 fi
1189
1190 if test "${HAVE_w3_forms}" = yes; then
1191         EMACS_cv_ACCEPTABLE_W3=yes
1192 else
1193         EMACS_cv_ACCEPTABLE_W3=
1194 fi
1195
1196 if test "${EMACS_cv_ACCEPTABLE_W3}" = yes; then
1197         
1198 elisp="(file-name-directory (locate-library \"w3-forms\"))"
1199 if test -z ""noecho""; then
1200         echo $ac_n "checking for w3_dir""... $ac_c" 1>&6
1201 echo "configure:1202: checking for w3_dir" >&5
1202 fi
1203 if eval "test \"\${EMACS_cv_SYS_w3_dir+set}\" = set"; then
1204   echo $ac_n "(cached) $ac_c" 1>&6
1205 else
1206   
1207         OUTPUT=./conftest-$$
1208         echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1209         eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1210         retval=`cat ${OUTPUT}`
1211         echo "=> ${retval}" >& 5 2>&1
1212         rm -f ${OUTPUT}
1213         EMACS_cv_SYS_w3_dir=$retval
1214
1215 fi
1216
1217 w3_dir=${EMACS_cv_SYS_w3_dir}
1218 if test -z ""noecho""; then
1219         echo "$ac_t""$w3_dir" 1>&6
1220 fi
1221
1222         EMACS_cv_ACCEPTABLE_W3=$EMACS_cv_SYS_w3_dir
1223 fi
1224
1225 fi
1226
1227    # Check whether --with-w3 or --without-w3 was given.
1228 if test "${with_w3+set}" = set; then
1229   withval="$with_w3"
1230    EMACS_cv_ACCEPTABLE_W3=`( cd $withval && pwd || echo "$withval" ) 2> /dev/null` 
1231 fi
1232
1233    W3=${EMACS_cv_ACCEPTABLE_W3}
1234    
1235    if test -z "${EMACS_cv_ACCEPTABLE_W3}"; then
1236         echo "$ac_t""not found" 1>&6
1237    else
1238         echo "$ac_t""${W3}" 1>&6
1239    fi
1240
1241
1242 test "$LATEX" = t && LATEX=
1243 test "$LATEX" || for ac_prog in latex
1244 do
1245 # Extract the first word of "$ac_prog", so it can be a program name with args.
1246 set dummy $ac_prog; ac_word=$2
1247 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1248 echo "configure:1249: checking for $ac_word" >&5
1249 if eval "test \"\${ac_cv_path_LATEX+set}\" = set"; then
1250   echo $ac_n "(cached) $ac_c" 1>&6
1251 else
1252   case "$LATEX" in
1253   /*)
1254   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
1255   ;;
1256   ?:/*)                  
1257   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a dos path.
1258   ;;
1259   *)
1260   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1261   ac_dummy="$PATH"
1262   for ac_dir in $ac_dummy; do 
1263     test -z "$ac_dir" && ac_dir=.
1264     if test -f $ac_dir/$ac_word; then
1265       ac_cv_path_LATEX="$ac_dir/$ac_word"
1266       break
1267     fi
1268   done
1269   IFS="$ac_save_ifs"
1270   ;;
1271 esac
1272 fi
1273 LATEX="$ac_cv_path_LATEX"
1274 if test -n "$LATEX"; then
1275   echo "$ac_t""$LATEX" 1>&6
1276 else
1277   echo "$ac_t""no" 1>&6
1278 fi
1279
1280 test -n "$LATEX" && break
1281 done
1282 test -n "$LATEX" || LATEX="no"
1283
1284 echo $ac_n "checking for available fonts""... $ac_c" 1>&6
1285 echo "configure:1286: checking for available fonts" >&5
1286 # Check whether --with-fonts or --without-fonts was given.
1287 if test "${with_fonts+set}" = set; then
1288   withval="$with_fonts"
1289   USE_FONTS="$withval"
1290 fi
1291
1292 WITH_FONTS_bembo='%'
1293 WITHOUT_FONTS_bembo=
1294 WITH_FONTS_pfu='%'
1295 WITHOUT_FONTS_pfu=
1296 WITH_FONTS_bcr='%'
1297 WITHOUT_FONTS_bcr=
1298 if test -z "${USE_FONTS}"; then
1299   if test "${LATEX}" = no; then
1300         :
1301   else
1302     OUTPUT=./conftest-$$
1303     echo '\nonstopmode\documentclass{article}\usepackage{bembo}\begin{document}\end{document}' > ${OUTPUT}
1304     if ${LATEX} ${OUTPUT} </dev/null >& 5 2>&1  ; then  
1305       if test -z "${USE_FONTS}"; then
1306         USE_FONTS="Adobe Bembo"
1307       else
1308         USE_FONTS="${USE_FONTS}, Adobe Bembo"
1309       fi
1310       WITH_FONTS_bembo=
1311       WITHOUT_FONTS_bembo='%'
1312     fi
1313     echo '\nonstopmode\documentclass{article}\begin{document}{\fontfamily{pfu}\fontsize{10pt}{10}\selectfont test}\end{document}' > ${OUTPUT}
1314     if retval=`${LATEX} ${OUTPUT} </dev/null 2>& 5`; then
1315       if echo "$retval" | grep 'Some font shapes were not available' >& 5 2>&1  ; then  
1316         :
1317       else
1318          if test -z "${USE_FONTS}"; then
1319           USE_FONTS="Adobe Futura"
1320          else
1321           USE_FONTS="${USE_FONTS}, Adobe Futura"
1322          fi
1323          WITH_FONTS_pfu=
1324          WITHOUT_FONTS_pfu='%'
1325       fi
1326     fi
1327     echo '\nonstopmode\documentclass{article}\begin{document}{\fontfamily{bcr}\fontsize{10pt}{10}\selectfont test}\end{document}' > ${OUTPUT}
1328     if retval=`${LATEX} ${OUTPUT} </dev/null 2>& 5`; then
1329       if echo "$retval" | grep 'Some font shapes were not available' >& 5 2>&1  ; then  
1330         :
1331       else
1332          if test -z "${USE_FONTS}"; then
1333           USE_FONTS="Bitstream Courier"
1334          else
1335           USE_FONTS="${USE_FONTS}, Bitstream Courier"
1336          fi
1337          WITH_FONTS_bcr=
1338          WITHOUT_FONTS_bcr='%'
1339       fi
1340     fi
1341     rm -f ${OUTPUT} ${OUTPUT}.aux ${OUTPUT}.log ${OUTPUT}.dvi
1342   fi
1343 elif test "${USE_FONTS}" = yes ; then
1344   WITH_FONTS_bembo=
1345   WITHOUT_FONTS_bembo='%'
1346   WITH_FONTS_pfu=
1347   WITHOUT_FONTS_pfu='%'
1348   WITH_FONTS_bcr=
1349   WITHOUT_FONTS_bcr='%'
1350 fi
1351
1352
1353
1354
1355
1356
1357 if test -z "${USE_FONTS}" ; then
1358   USE_FONTS=no
1359 fi
1360 USE_FONTS=`echo "${USE_FONTS}" | sed 's/,\([^,]*\)$/ and\1/'`
1361 echo "$ac_t"""${USE_FONTS}"" 1>&6
1362 if test "${USE_FONTS}" = yes ; then
1363   USE_FONTS='Set in Adobe Bembo, Adobe Futura and Bitstream Courier.'
1364 elif test "${USE_FONTS}" = no ; then
1365   USE_FONTS=''
1366 else
1367   USE_FONTS="Set in ${USE_FONTS}."
1368 fi
1369
1370
1371   if test ${EMACS_FLAVOR} = xemacs; then
1372     echo $ac_n "checking where the XEmacs package is""... $ac_c" 1>&6
1373 echo "configure:1374: checking where the XEmacs package is" >&5
1374     # Check whether --with-packagedir or --without-packagedir was given.
1375 if test "${with_packagedir+set}" = set; then
1376   withval="$with_packagedir"
1377   if test "$withval" != yes -a -n "$withval"; then
1378         PACKAGEDIR=$withval
1379       else
1380           
1381 elisp="(let (package-dir)\
1382       (if (boundp (quote early-packages))\
1383           (let ((dirs (delq nil (append (if early-package-load-path\
1384                                             early-packages)\
1385                                         (if late-package-load-path\
1386                                             late-packages)\
1387                                         (if last-package-load-path\
1388                                             last-packages)))))\
1389             (while (and dirs (not package-dir))\
1390               (if (file-directory-p (car dirs))\
1391                   (setq package-dir (car dirs)\
1392                         dirs (cdr dirs))))))\
1393       (or package-dir \"\"))"
1394 if test -z ""noecho""; then
1395         echo $ac_n "checking for PACKAGEDIR""... $ac_c" 1>&6
1396 echo "configure:1397: checking for PACKAGEDIR" >&5
1397 fi
1398 if eval "test \"\${EMACS_cv_SYS_PACKAGEDIR+set}\" = set"; then
1399   echo $ac_n "(cached) $ac_c" 1>&6
1400 else
1401   
1402         OUTPUT=./conftest-$$
1403         echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1404         eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1405         retval=`cat ${OUTPUT}`
1406         echo "=> ${retval}" >& 5 2>&1
1407         rm -f ${OUTPUT}
1408         EMACS_cv_SYS_PACKAGEDIR=$retval
1409
1410 fi
1411
1412 PACKAGEDIR=${EMACS_cv_SYS_PACKAGEDIR}
1413 if test -z ""noecho""; then
1414         echo "$ac_t""$PACKAGEDIR" 1>&6
1415 fi
1416
1417       fi
1418 else
1419     
1420 elisp="(let (package-dir)\
1421       (if (boundp (quote early-packages))\
1422           (let ((dirs (delq nil (append (if early-package-load-path\
1423                                             early-packages)\
1424                                         (if late-package-load-path\
1425                                             late-packages)\
1426                                         (if last-package-load-path\
1427                                             last-packages)))))\
1428             (while (and dirs (not package-dir))\
1429               (if (file-directory-p (car dirs))\
1430                   (setq package-dir (car dirs)\
1431                         dirs (cdr dirs))))))\
1432       (or package-dir \"\"))"
1433 if test -z ""noecho""; then
1434         echo $ac_n "checking for PACKAGEDIR""... $ac_c" 1>&6
1435 echo "configure:1436: checking for PACKAGEDIR" >&5
1436 fi
1437 if eval "test \"\${EMACS_cv_SYS_PACKAGEDIR+set}\" = set"; then
1438   echo $ac_n "(cached) $ac_c" 1>&6
1439 else
1440   
1441         OUTPUT=./conftest-$$
1442         echo ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1443         eval ${EMACS}' -batch -eval '\''(let ((x '${elisp}')) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil "'${OUTPUT}'" nil 5))'\' >& 5 2>&1
1444         retval=`cat ${OUTPUT}`
1445         echo "=> ${retval}" >& 5 2>&1
1446         rm -f ${OUTPUT}
1447         EMACS_cv_SYS_PACKAGEDIR=$retval
1448
1449 fi
1450
1451 PACKAGEDIR=${EMACS_cv_SYS_PACKAGEDIR}
1452 if test -z ""noecho""; then
1453         echo "$ac_t""$PACKAGEDIR" 1>&6
1454 fi
1455
1456 fi
1457
1458     if test -z "$PACKAGEDIR"; then
1459       echo "$ac_t""not found" 1>&6
1460     else
1461       echo "$ac_t""$PACKAGEDIR" 1>&6
1462     fi
1463   else
1464     PACKAGEDIR=
1465   fi
1466   
1467   # Check whether --with-addpath or --without-addpath was given.
1468 if test "${with_addpath+set}" = set; then
1469   withval="$with_addpath"
1470   if test "$withval" != yes -a -n "$withval"; then
1471       echo $ac_n "checking where to find the additional elisp libraries""... $ac_c" 1>&6
1472 echo "configure:1473: checking where to find the additional elisp libraries" >&5
1473       ADDITIONAL_LOAD_PATH=$withval
1474       echo "$ac_t""$ADDITIONAL_LOAD_PATH" 1>&6
1475     fi
1476 else
1477   ADDITIONAL_LOAD_PATH=
1478 fi
1479
1480   
1481 trap '' 1 2 15
1482 cat > confcache <<\EOF
1483 # This file is a shell script that caches the results of configure
1484 # tests run on this system so they can be shared between configure
1485 # scripts and configure runs.  It is not useful on other systems.
1486 # If it contains results you don't want to keep, you may remove or edit it.
1487 #
1488 # By default, configure uses ./config.cache as the cache file,
1489 # creating it if it does not exist already.  You can give configure
1490 # the --cache-file=FILE option to use a different cache file; that is
1491 # what configure does when it calls configure scripts in
1492 # subdirectories, so they share the cache.
1493 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1494 # config.status only pays attention to the cache file if you give it the
1495 # --recheck option to rerun configure.
1496 #
1497 EOF
1498 # The following way of writing the cache mishandles newlines in values,
1499 # but we know of no workaround that is simple, portable, and efficient.
1500 # So, don't put newlines in cache variables' values.
1501 # Ultrix sh set writes to stderr and can't be redirected directly,
1502 # and sets the high bit in the cache file unless we assign to the vars.
1503 (set) 2>&1 |
1504   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1505   *ac_space=\ *)
1506     # `set' does not quote correctly, so add quotes (double-quote substitution
1507     # turns \\\\ into \\, and sed turns \\ into \).
1508     sed -n \
1509       -e "s/'/'\\\\''/g" \
1510       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1511     ;;
1512   *)
1513     # `set' quotes correctly as required by POSIX, so do not add quotes.
1514     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1515     ;;
1516   esac >> confcache
1517 if cmp -s $cache_file confcache; then
1518   :
1519 else
1520   if test -w $cache_file; then
1521     echo "updating cache $cache_file"
1522     cat confcache > $cache_file
1523   else
1524     echo "not updating unwritable cache $cache_file"
1525   fi
1526 fi
1527 rm -f confcache
1528
1529 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1530
1531 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1532 # Let make expand exec_prefix.
1533 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1534
1535 # Any assignment to VPATH causes Sun make to only execute
1536 # the first set of double-colon rules, so remove it if not needed.
1537 # If there is a colon in the path, we need to keep it.
1538 if test "x$srcdir" = x.; then
1539   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1540 fi
1541
1542 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1543
1544 # Transform confdefs.h into DEFS.
1545 # Protect against shell expansion while executing Makefile rules.
1546 # Protect against Makefile macro expansion.
1547 cat > conftest.defs <<\EOF
1548 s%#define \([^  ][^     ]*\) *\(.*\)%-D\1=\2%g
1549 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1550 s%\[%\\&%g
1551 s%\]%\\&%g
1552 s%\$%$$%g
1553 EOF
1554 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1555 rm -f conftest.defs
1556
1557
1558 # Without the "./", some shells look in PATH for config.status.
1559 : ${CONFIG_STATUS=./config.status}
1560
1561 echo creating $CONFIG_STATUS
1562 rm -f $CONFIG_STATUS
1563 cat > $CONFIG_STATUS <<EOF
1564 #! /bin/sh
1565 # Generated automatically by configure.
1566 # Run this file to recreate the current configuration.
1567 # This directory was configured as follows,
1568 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1569 #
1570 # $0 $ac_configure_args
1571 #
1572 # Compiler output produced by configure, useful for debugging
1573 # configure, is in ./config.log if it exists.
1574
1575 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1576 for ac_option
1577 do
1578   case "\$ac_option" in
1579   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1580     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1581     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1582   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1583     echo "$CONFIG_STATUS generated by autoconf version 2.14.1"
1584     exit 0 ;;
1585   -help | --help | --hel | --he | --h)
1586     echo "\$ac_cs_usage"; exit 0 ;;
1587   *) echo "\$ac_cs_usage"; exit 1 ;;
1588   esac
1589 done
1590
1591 ac_given_srcdir=$srcdir
1592 ac_given_INSTALL="$INSTALL"
1593
1594 trap 'rm -fr `echo "Makefile etc/Makefile lisp/Makefile texi/Makefile \
1595  texi/gnusconfig.tex texi/ps/Makefile lisp/dgnuspath.el" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1596 EOF
1597 cat >> $CONFIG_STATUS <<EOF
1598
1599 # Protect against being on the right side of a sed subst in config.status.
1600 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1601  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1602 $ac_vpsub
1603 $extrasub
1604 s%@SHELL@%$SHELL%g
1605 s%@CFLAGS@%$CFLAGS%g
1606 s%@CPPFLAGS@%$CPPFLAGS%g
1607 s%@CXXFLAGS@%$CXXFLAGS%g
1608 s%@FFLAGS@%$FFLAGS%g
1609 s%@DEFS@%$DEFS%g
1610 s%@LDFLAGS@%$LDFLAGS%g
1611 s%@LIBS@%$LIBS%g
1612 s%@exec_prefix@%$exec_prefix%g
1613 s%@prefix@%$prefix%g
1614 s%@program_transform_name@%$program_transform_name%g
1615 s%@bindir@%$bindir%g
1616 s%@sbindir@%$sbindir%g
1617 s%@libexecdir@%$libexecdir%g
1618 s%@datadir@%$datadir%g
1619 s%@sysconfdir@%$sysconfdir%g
1620 s%@sharedstatedir@%$sharedstatedir%g
1621 s%@localstatedir@%$localstatedir%g
1622 s%@libdir@%$libdir%g
1623 s%@includedir@%$includedir%g
1624 s%@oldincludedir@%$oldincludedir%g
1625 s%@infodir@%$infodir%g
1626 s%@mandir@%$mandir%g
1627 s%@GNUS_PRODUCT_NAME@%$GNUS_PRODUCT_NAME%g
1628 s%@SET_MAKE@%$SET_MAKE%g
1629 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1630 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1631 s%@INSTALL_DATA@%$INSTALL_DATA%g
1632 s%@MAKEINFO@%$MAKEINFO%g
1633 s%@EMACS@%$EMACS%g
1634 s%@XEMACS@%$XEMACS%g
1635 s%@lispdir@%$lispdir%g
1636 s%@etcdir@%$etcdir%g
1637 s%@info_dir@%$info_dir%g
1638 s%@HAVE_url@%$HAVE_url%g
1639 s%@URL@%$URL%g
1640 s%@HAVE_w3_forms@%$HAVE_w3_forms%g
1641 s%@W3@%$W3%g
1642 s%@LATEX@%$LATEX%g
1643 s%@WITH_FONTS_bembo@%$WITH_FONTS_bembo%g
1644 s%@WITHOUT_FONTS_bembo@%$WITHOUT_FONTS_bembo%g
1645 s%@WITH_FONTS_pfu@%$WITH_FONTS_pfu%g
1646 s%@WITHOUT_FONTS_pfu@%$WITHOUT_FONTS_pfu%g
1647 s%@WITH_FONTS_bcr@%$WITH_FONTS_bcr%g
1648 s%@WITHOUT_FONTS_bcr@%$WITHOUT_FONTS_bcr%g
1649 s%@USE_FONTS@%$USE_FONTS%g
1650 s%@PACKAGEDIR@%$PACKAGEDIR%g
1651 s%@ADDITIONAL_LOAD_PATH@%$ADDITIONAL_LOAD_PATH%g
1652
1653 CEOF
1654 EOF
1655
1656 cat >> $CONFIG_STATUS <<\EOF
1657
1658 # Split the substitutions into bite-sized pieces for seds with
1659 # small command number limits, like on Digital OSF/1 and HP-UX.
1660 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1661 ac_file=1 # Number of current file.
1662 ac_beg=1 # First line for current file.
1663 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1664 ac_more_lines=:
1665 ac_sed_cmds=""
1666 while $ac_more_lines; do
1667   if test $ac_beg -gt 1; then
1668     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1669   else
1670     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1671   fi
1672   if test ! -s conftest.s$ac_file; then
1673     ac_more_lines=false
1674     rm -f conftest.s$ac_file
1675   else
1676     if test -z "$ac_sed_cmds"; then
1677       ac_sed_cmds="sed -f conftest.s$ac_file"
1678     else
1679       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1680     fi
1681     ac_file=`expr $ac_file + 1`
1682     ac_beg=$ac_end
1683     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1684   fi
1685 done
1686 if test -z "$ac_sed_cmds"; then
1687   ac_sed_cmds=cat
1688 fi
1689 EOF
1690
1691 cat >> $CONFIG_STATUS <<EOF
1692
1693 CONFIG_FILES=\${CONFIG_FILES-"Makefile etc/Makefile lisp/Makefile texi/Makefile \
1694  texi/gnusconfig.tex texi/ps/Makefile lisp/dgnuspath.el"}
1695 EOF
1696 cat >> $CONFIG_STATUS <<\EOF
1697 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1698   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1699   case "$ac_file" in
1700   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1701        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1702   *) ac_file_in="${ac_file}.in" ;;
1703   esac
1704
1705   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1706
1707   # Remove last slash and all that follows it.  Not all systems have dirname.
1708   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1709   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1710     # The file is in a subdirectory.
1711     test ! -d "$ac_dir" && mkdir "$ac_dir"
1712     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1713     # A "../" for each directory in $ac_dir_suffix.
1714     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1715   else
1716     ac_dir_suffix= ac_dots=
1717   fi
1718
1719   case "$ac_given_srcdir" in
1720   .)  srcdir=.
1721       if test -z "$ac_dots"; then top_srcdir=.
1722       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1723   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1724   *) # Relative path.
1725     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1726     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1727   esac
1728
1729   case "$ac_given_INSTALL" in
1730   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1731   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1732   esac
1733
1734   echo creating "$ac_file"
1735   rm -f "$ac_file"
1736   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1737   case "$ac_file" in
1738   *Makefile*) ac_comsub="1i\\
1739 # $configure_input" ;;
1740   *) ac_comsub= ;;
1741   esac
1742
1743   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1744   sed -e "$ac_comsub
1745 s%@configure_input@%$configure_input%g
1746 s%@srcdir@%$srcdir%g
1747 s%@top_srcdir@%$top_srcdir%g
1748 s%@INSTALL@%$INSTALL%g
1749 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1750 fi; done
1751 rm -f conftest.s*
1752
1753 EOF
1754 cat >> $CONFIG_STATUS <<EOF
1755
1756 EOF
1757 cat >> $CONFIG_STATUS <<\EOF
1758
1759 exit 0
1760 EOF
1761 chmod +x $CONFIG_STATUS
1762 rm -fr confdefs* $ac_clean_files
1763 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1764