added textile-mode and mmm-mode. xpath stuff
[emacs-init.git] / mmm-mode-0.4.8 / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot EMACS lispdir EMACS_VERSION LIBOBJS LTLIBOBJS'
275 ac_subst_files=''
276
277 # Initialize some variables set by options.
278 ac_init_help=
279 ac_init_version=false
280 # The variables have the same names as the options, with
281 # dashes changed to underlines.
282 cache_file=/dev/null
283 exec_prefix=NONE
284 no_create=
285 no_recursion=
286 prefix=NONE
287 program_prefix=NONE
288 program_suffix=NONE
289 program_transform_name=s,x,x,
290 silent=
291 site=
292 srcdir=
293 verbose=
294 x_includes=NONE
295 x_libraries=NONE
296
297 # Installation directory options.
298 # These are left unexpanded so users can "make install exec_prefix=/foo"
299 # and all the variables that are supposed to be based on exec_prefix
300 # by default will actually change.
301 # Use braces instead of parens because sh, perl, etc. also accept them.
302 bindir='${exec_prefix}/bin'
303 sbindir='${exec_prefix}/sbin'
304 libexecdir='${exec_prefix}/libexec'
305 datadir='${prefix}/share'
306 sysconfdir='${prefix}/etc'
307 sharedstatedir='${prefix}/com'
308 localstatedir='${prefix}/var'
309 libdir='${exec_prefix}/lib'
310 includedir='${prefix}/include'
311 oldincludedir='/usr/include'
312 infodir='${prefix}/info'
313 mandir='${prefix}/man'
314
315 ac_prev=
316 for ac_option
317 do
318   # If the previous option needs an argument, assign it.
319   if test -n "$ac_prev"; then
320     eval "$ac_prev=\$ac_option"
321     ac_prev=
322     continue
323   fi
324
325   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
326
327   # Accept the important Cygnus configure options, so we can diagnose typos.
328
329   case $ac_option in
330
331   -bindir | --bindir | --bindi | --bind | --bin | --bi)
332     ac_prev=bindir ;;
333   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
334     bindir=$ac_optarg ;;
335
336   -build | --build | --buil | --bui | --bu)
337     ac_prev=build_alias ;;
338   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
339     build_alias=$ac_optarg ;;
340
341   -cache-file | --cache-file | --cache-fil | --cache-fi \
342   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
343     ac_prev=cache_file ;;
344   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
345   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
346     cache_file=$ac_optarg ;;
347
348   --config-cache | -C)
349     cache_file=config.cache ;;
350
351   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
352     ac_prev=datadir ;;
353   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
354   | --da=*)
355     datadir=$ac_optarg ;;
356
357   -disable-* | --disable-*)
358     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
359     # Reject names that are not valid shell variable names.
360     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
361       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
362    { (exit 1); exit 1; }; }
363     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
364     eval "enable_$ac_feature=no" ;;
365
366   -enable-* | --enable-*)
367     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
368     # Reject names that are not valid shell variable names.
369     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
370       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
371    { (exit 1); exit 1; }; }
372     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
373     case $ac_option in
374       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
375       *) ac_optarg=yes ;;
376     esac
377     eval "enable_$ac_feature='$ac_optarg'" ;;
378
379   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
380   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
381   | --exec | --exe | --ex)
382     ac_prev=exec_prefix ;;
383   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
384   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
385   | --exec=* | --exe=* | --ex=*)
386     exec_prefix=$ac_optarg ;;
387
388   -gas | --gas | --ga | --g)
389     # Obsolete; use --with-gas.
390     with_gas=yes ;;
391
392   -help | --help | --hel | --he | -h)
393     ac_init_help=long ;;
394   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
395     ac_init_help=recursive ;;
396   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
397     ac_init_help=short ;;
398
399   -host | --host | --hos | --ho)
400     ac_prev=host_alias ;;
401   -host=* | --host=* | --hos=* | --ho=*)
402     host_alias=$ac_optarg ;;
403
404   -includedir | --includedir | --includedi | --included | --include \
405   | --includ | --inclu | --incl | --inc)
406     ac_prev=includedir ;;
407   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
408   | --includ=* | --inclu=* | --incl=* | --inc=*)
409     includedir=$ac_optarg ;;
410
411   -infodir | --infodir | --infodi | --infod | --info | --inf)
412     ac_prev=infodir ;;
413   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
414     infodir=$ac_optarg ;;
415
416   -libdir | --libdir | --libdi | --libd)
417     ac_prev=libdir ;;
418   -libdir=* | --libdir=* | --libdi=* | --libd=*)
419     libdir=$ac_optarg ;;
420
421   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
422   | --libexe | --libex | --libe)
423     ac_prev=libexecdir ;;
424   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
425   | --libexe=* | --libex=* | --libe=*)
426     libexecdir=$ac_optarg ;;
427
428   -localstatedir | --localstatedir | --localstatedi | --localstated \
429   | --localstate | --localstat | --localsta | --localst \
430   | --locals | --local | --loca | --loc | --lo)
431     ac_prev=localstatedir ;;
432   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
433   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
434   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
435     localstatedir=$ac_optarg ;;
436
437   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
438     ac_prev=mandir ;;
439   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
440     mandir=$ac_optarg ;;
441
442   -nfp | --nfp | --nf)
443     # Obsolete; use --without-fp.
444     with_fp=no ;;
445
446   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
447   | --no-cr | --no-c | -n)
448     no_create=yes ;;
449
450   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
452     no_recursion=yes ;;
453
454   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
455   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
456   | --oldin | --oldi | --old | --ol | --o)
457     ac_prev=oldincludedir ;;
458   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
459   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
460   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
461     oldincludedir=$ac_optarg ;;
462
463   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
464     ac_prev=prefix ;;
465   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
466     prefix=$ac_optarg ;;
467
468   -program-prefix | --program-prefix | --program-prefi | --program-pref \
469   | --program-pre | --program-pr | --program-p)
470     ac_prev=program_prefix ;;
471   -program-prefix=* | --program-prefix=* | --program-prefi=* \
472   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
473     program_prefix=$ac_optarg ;;
474
475   -program-suffix | --program-suffix | --program-suffi | --program-suff \
476   | --program-suf | --program-su | --program-s)
477     ac_prev=program_suffix ;;
478   -program-suffix=* | --program-suffix=* | --program-suffi=* \
479   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
480     program_suffix=$ac_optarg ;;
481
482   -program-transform-name | --program-transform-name \
483   | --program-transform-nam | --program-transform-na \
484   | --program-transform-n | --program-transform- \
485   | --program-transform | --program-transfor \
486   | --program-transfo | --program-transf \
487   | --program-trans | --program-tran \
488   | --progr-tra | --program-tr | --program-t)
489     ac_prev=program_transform_name ;;
490   -program-transform-name=* | --program-transform-name=* \
491   | --program-transform-nam=* | --program-transform-na=* \
492   | --program-transform-n=* | --program-transform-=* \
493   | --program-transform=* | --program-transfor=* \
494   | --program-transfo=* | --program-transf=* \
495   | --program-trans=* | --program-tran=* \
496   | --progr-tra=* | --program-tr=* | --program-t=*)
497     program_transform_name=$ac_optarg ;;
498
499   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
500   | -silent | --silent | --silen | --sile | --sil)
501     silent=yes ;;
502
503   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
504     ac_prev=sbindir ;;
505   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
506   | --sbi=* | --sb=*)
507     sbindir=$ac_optarg ;;
508
509   -sharedstatedir | --sharedstatedir | --sharedstatedi \
510   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
511   | --sharedst | --shareds | --shared | --share | --shar \
512   | --sha | --sh)
513     ac_prev=sharedstatedir ;;
514   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
515   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
516   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
517   | --sha=* | --sh=*)
518     sharedstatedir=$ac_optarg ;;
519
520   -site | --site | --sit)
521     ac_prev=site ;;
522   -site=* | --site=* | --sit=*)
523     site=$ac_optarg ;;
524
525   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
526     ac_prev=srcdir ;;
527   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
528     srcdir=$ac_optarg ;;
529
530   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
531   | --syscon | --sysco | --sysc | --sys | --sy)
532     ac_prev=sysconfdir ;;
533   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
534   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
535     sysconfdir=$ac_optarg ;;
536
537   -target | --target | --targe | --targ | --tar | --ta | --t)
538     ac_prev=target_alias ;;
539   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
540     target_alias=$ac_optarg ;;
541
542   -v | -verbose | --verbose | --verbos | --verbo | --verb)
543     verbose=yes ;;
544
545   -version | --version | --versio | --versi | --vers | -V)
546     ac_init_version=: ;;
547
548   -with-* | --with-*)
549     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
550     # Reject names that are not valid shell variable names.
551     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552       { echo "$as_me: error: invalid package name: $ac_package" >&2
553    { (exit 1); exit 1; }; }
554     ac_package=`echo $ac_package| sed 's/-/_/g'`
555     case $ac_option in
556       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557       *) ac_optarg=yes ;;
558     esac
559     eval "with_$ac_package='$ac_optarg'" ;;
560
561   -without-* | --without-*)
562     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
563     # Reject names that are not valid shell variable names.
564     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565       { echo "$as_me: error: invalid package name: $ac_package" >&2
566    { (exit 1); exit 1; }; }
567     ac_package=`echo $ac_package | sed 's/-/_/g'`
568     eval "with_$ac_package=no" ;;
569
570   --x)
571     # Obsolete; use --with-x.
572     with_x=yes ;;
573
574   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
575   | --x-incl | --x-inc | --x-in | --x-i)
576     ac_prev=x_includes ;;
577   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
578   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
579     x_includes=$ac_optarg ;;
580
581   -x-libraries | --x-libraries | --x-librarie | --x-librari \
582   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
583     ac_prev=x_libraries ;;
584   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
585   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
586     x_libraries=$ac_optarg ;;
587
588   -*) { echo "$as_me: error: unrecognized option: $ac_option
589 Try \`$0 --help' for more information." >&2
590    { (exit 1); exit 1; }; }
591     ;;
592
593   *=*)
594     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
595     # Reject names that are not valid shell variable names.
596     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
597       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
598    { (exit 1); exit 1; }; }
599     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
600     eval "$ac_envvar='$ac_optarg'"
601     export $ac_envvar ;;
602
603   *)
604     # FIXME: should be removed in autoconf 3.0.
605     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
606     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
607       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
608     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
609     ;;
610
611   esac
612 done
613
614 if test -n "$ac_prev"; then
615   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
616   { echo "$as_me: error: missing argument to $ac_option" >&2
617    { (exit 1); exit 1; }; }
618 fi
619
620 # Be sure to have absolute paths.
621 for ac_var in exec_prefix prefix
622 do
623   eval ac_val=$`echo $ac_var`
624   case $ac_val in
625     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
626     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
627    { (exit 1); exit 1; }; };;
628   esac
629 done
630
631 # Be sure to have absolute paths.
632 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
633               localstatedir libdir includedir oldincludedir infodir mandir
634 do
635   eval ac_val=$`echo $ac_var`
636   case $ac_val in
637     [\\/$]* | ?:[\\/]* ) ;;
638     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
639    { (exit 1); exit 1; }; };;
640   esac
641 done
642
643 # There might be people who depend on the old broken behavior: `$host'
644 # used to hold the argument of --host etc.
645 # FIXME: To remove some day.
646 build=$build_alias
647 host=$host_alias
648 target=$target_alias
649
650 # FIXME: To remove some day.
651 if test "x$host_alias" != x; then
652   if test "x$build_alias" = x; then
653     cross_compiling=maybe
654     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
655     If a cross compiler is detected then cross compile mode will be used." >&2
656   elif test "x$build_alias" != "x$host_alias"; then
657     cross_compiling=yes
658   fi
659 fi
660
661 ac_tool_prefix=
662 test -n "$host_alias" && ac_tool_prefix=$host_alias-
663
664 test "$silent" = yes && exec 6>/dev/null
665
666
667 # Find the source files, if location was not specified.
668 if test -z "$srcdir"; then
669   ac_srcdir_defaulted=yes
670   # Try the directory containing this script, then its parent.
671   ac_confdir=`(dirname "$0") 2>/dev/null ||
672 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
673          X"$0" : 'X\(//\)[^/]' \| \
674          X"$0" : 'X\(//\)$' \| \
675          X"$0" : 'X\(/\)' \| \
676          .     : '\(.\)' 2>/dev/null ||
677 echo X"$0" |
678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
679           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
680           /^X\(\/\/\)$/{ s//\1/; q; }
681           /^X\(\/\).*/{ s//\1/; q; }
682           s/.*/./; q'`
683   srcdir=$ac_confdir
684   if test ! -r $srcdir/$ac_unique_file; then
685     srcdir=..
686   fi
687 else
688   ac_srcdir_defaulted=no
689 fi
690 if test ! -r $srcdir/$ac_unique_file; then
691   if test "$ac_srcdir_defaulted" = yes; then
692     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
693    { (exit 1); exit 1; }; }
694   else
695     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
696    { (exit 1); exit 1; }; }
697   fi
698 fi
699 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
700   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
701    { (exit 1); exit 1; }; }
702 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
703 ac_env_build_alias_set=${build_alias+set}
704 ac_env_build_alias_value=$build_alias
705 ac_cv_env_build_alias_set=${build_alias+set}
706 ac_cv_env_build_alias_value=$build_alias
707 ac_env_host_alias_set=${host_alias+set}
708 ac_env_host_alias_value=$host_alias
709 ac_cv_env_host_alias_set=${host_alias+set}
710 ac_cv_env_host_alias_value=$host_alias
711 ac_env_target_alias_set=${target_alias+set}
712 ac_env_target_alias_value=$target_alias
713 ac_cv_env_target_alias_set=${target_alias+set}
714 ac_cv_env_target_alias_value=$target_alias
715
716 #
717 # Report the --help message.
718 #
719 if test "$ac_init_help" = "long"; then
720   # Omit some internal or obsolete options to make the list less imposing.
721   # This message is too long to be a string in the A/UX 3.1 sh.
722   cat <<_ACEOF
723 \`configure' configures this package to adapt to many kinds of systems.
724
725 Usage: $0 [OPTION]... [VAR=VALUE]...
726
727 To assign environment variables (e.g., CC, CFLAGS...), specify them as
728 VAR=VALUE.  See below for descriptions of some of the useful variables.
729
730 Defaults for the options are specified in brackets.
731
732 Configuration:
733   -h, --help              display this help and exit
734       --help=short        display options specific to this package
735       --help=recursive    display the short help of all the included packages
736   -V, --version           display version information and exit
737   -q, --quiet, --silent   do not print \`checking...' messages
738       --cache-file=FILE   cache test results in FILE [disabled]
739   -C, --config-cache      alias for \`--cache-file=config.cache'
740   -n, --no-create         do not create output files
741       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
742
743 _ACEOF
744
745   cat <<_ACEOF
746 Installation directories:
747   --prefix=PREFIX         install architecture-independent files in PREFIX
748                           [$ac_default_prefix]
749   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
750                           [PREFIX]
751
752 By default, \`make install' will install all the files in
753 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
754 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
755 for instance \`--prefix=\$HOME'.
756
757 For better control, use the options below.
758
759 Fine tuning of the installation directories:
760   --bindir=DIR           user executables [EPREFIX/bin]
761   --sbindir=DIR          system admin executables [EPREFIX/sbin]
762   --libexecdir=DIR       program executables [EPREFIX/libexec]
763   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
764   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
765   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
766   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
767   --libdir=DIR           object code libraries [EPREFIX/lib]
768   --includedir=DIR       C header files [PREFIX/include]
769   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
770   --infodir=DIR          info documentation [PREFIX/info]
771   --mandir=DIR           man documentation [PREFIX/man]
772 _ACEOF
773
774   cat <<\_ACEOF
775
776 Program names:
777   --program-prefix=PREFIX            prepend PREFIX to installed program names
778   --program-suffix=SUFFIX            append SUFFIX to installed program names
779   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
780 _ACEOF
781 fi
782
783 if test -n "$ac_init_help"; then
784
785   cat <<\_ACEOF
786
787 Optional Packages:
788   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
789   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
790 --with-xemacs             Use XEmacs to build
791 --with-emacs              Use Emacs to build
792   --with-lispdir          Override the default lisp directory
793
794 _ACEOF
795 fi
796
797 if test "$ac_init_help" = "recursive"; then
798   # If there are subdirs, report their specific --help.
799   ac_popdir=`pwd`
800   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
801     test -d $ac_dir || continue
802     ac_builddir=.
803
804 if test "$ac_dir" != .; then
805   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
806   # A "../" for each directory in $ac_dir_suffix.
807   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
808 else
809   ac_dir_suffix= ac_top_builddir=
810 fi
811
812 case $srcdir in
813   .)  # No --srcdir option.  We are building in place.
814     ac_srcdir=.
815     if test -z "$ac_top_builddir"; then
816        ac_top_srcdir=.
817     else
818        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
819     fi ;;
820   [\\/]* | ?:[\\/]* )  # Absolute path.
821     ac_srcdir=$srcdir$ac_dir_suffix;
822     ac_top_srcdir=$srcdir ;;
823   *) # Relative path.
824     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
825     ac_top_srcdir=$ac_top_builddir$srcdir ;;
826 esac
827
828 # Do not use `cd foo && pwd` to compute absolute paths, because
829 # the directories may not exist.
830 case `pwd` in
831 .) ac_abs_builddir="$ac_dir";;
832 *)
833   case "$ac_dir" in
834   .) ac_abs_builddir=`pwd`;;
835   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
836   *) ac_abs_builddir=`pwd`/"$ac_dir";;
837   esac;;
838 esac
839 case $ac_abs_builddir in
840 .) ac_abs_top_builddir=${ac_top_builddir}.;;
841 *)
842   case ${ac_top_builddir}. in
843   .) ac_abs_top_builddir=$ac_abs_builddir;;
844   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
845   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
846   esac;;
847 esac
848 case $ac_abs_builddir in
849 .) ac_abs_srcdir=$ac_srcdir;;
850 *)
851   case $ac_srcdir in
852   .) ac_abs_srcdir=$ac_abs_builddir;;
853   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
854   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
855   esac;;
856 esac
857 case $ac_abs_builddir in
858 .) ac_abs_top_srcdir=$ac_top_srcdir;;
859 *)
860   case $ac_top_srcdir in
861   .) ac_abs_top_srcdir=$ac_abs_builddir;;
862   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
863   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
864   esac;;
865 esac
866
867     cd $ac_dir
868     # Check for guested configure; otherwise get Cygnus style configure.
869     if test -f $ac_srcdir/configure.gnu; then
870       echo
871       $SHELL $ac_srcdir/configure.gnu  --help=recursive
872     elif test -f $ac_srcdir/configure; then
873       echo
874       $SHELL $ac_srcdir/configure  --help=recursive
875     elif test -f $ac_srcdir/configure.ac ||
876            test -f $ac_srcdir/configure.in; then
877       echo
878       $ac_configure --help
879     else
880       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
881     fi
882     cd "$ac_popdir"
883   done
884 fi
885
886 test -n "$ac_init_help" && exit 0
887 if $ac_init_version; then
888   cat <<\_ACEOF
889
890 Copyright (C) 2003 Free Software Foundation, Inc.
891 This configure script is free software; the Free Software Foundation
892 gives unlimited permission to copy, distribute and modify it.
893 _ACEOF
894   exit 0
895 fi
896 exec 5>config.log
897 cat >&5 <<_ACEOF
898 This file contains any messages produced by compilers while
899 running configure, to aid debugging if configure makes a mistake.
900
901 It was created by $as_me, which was
902 generated by GNU Autoconf 2.59.  Invocation command line was
903
904   $ $0 $@
905
906 _ACEOF
907 {
908 cat <<_ASUNAME
909 ## --------- ##
910 ## Platform. ##
911 ## --------- ##
912
913 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
914 uname -m = `(uname -m) 2>/dev/null || echo unknown`
915 uname -r = `(uname -r) 2>/dev/null || echo unknown`
916 uname -s = `(uname -s) 2>/dev/null || echo unknown`
917 uname -v = `(uname -v) 2>/dev/null || echo unknown`
918
919 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
920 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
921
922 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
923 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
924 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
925 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
926 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
927 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
928 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
929
930 _ASUNAME
931
932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
933 for as_dir in $PATH
934 do
935   IFS=$as_save_IFS
936   test -z "$as_dir" && as_dir=.
937   echo "PATH: $as_dir"
938 done
939
940 } >&5
941
942 cat >&5 <<_ACEOF
943
944
945 ## ----------- ##
946 ## Core tests. ##
947 ## ----------- ##
948
949 _ACEOF
950
951
952 # Keep a trace of the command line.
953 # Strip out --no-create and --no-recursion so they do not pile up.
954 # Strip out --silent because we don't want to record it for future runs.
955 # Also quote any args containing shell meta-characters.
956 # Make two passes to allow for proper duplicate-argument suppression.
957 ac_configure_args=
958 ac_configure_args0=
959 ac_configure_args1=
960 ac_sep=
961 ac_must_keep_next=false
962 for ac_pass in 1 2
963 do
964   for ac_arg
965   do
966     case $ac_arg in
967     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
968     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
969     | -silent | --silent | --silen | --sile | --sil)
970       continue ;;
971     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
972       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
973     esac
974     case $ac_pass in
975     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
976     2)
977       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
978       if test $ac_must_keep_next = true; then
979         ac_must_keep_next=false # Got value, back to normal.
980       else
981         case $ac_arg in
982           *=* | --config-cache | -C | -disable-* | --disable-* \
983           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
984           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
985           | -with-* | --with-* | -without-* | --without-* | --x)
986             case "$ac_configure_args0 " in
987               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
988             esac
989             ;;
990           -* ) ac_must_keep_next=true ;;
991         esac
992       fi
993       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
994       # Get rid of the leading space.
995       ac_sep=" "
996       ;;
997     esac
998   done
999 done
1000 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1001 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1002
1003 # When interrupted or exit'd, cleanup temporary files, and complete
1004 # config.log.  We remove comments because anyway the quotes in there
1005 # would cause problems or look ugly.
1006 # WARNING: Be sure not to use single quotes in there, as some shells,
1007 # such as our DU 5.0 friend, will then `close' the trap.
1008 trap 'exit_status=$?
1009   # Save into config.log some information that might help in debugging.
1010   {
1011     echo
1012
1013     cat <<\_ASBOX
1014 ## ---------------- ##
1015 ## Cache variables. ##
1016 ## ---------------- ##
1017 _ASBOX
1018     echo
1019     # The following way of writing the cache mishandles newlines in values,
1020 {
1021   (set) 2>&1 |
1022     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1023     *ac_space=\ *)
1024       sed -n \
1025         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1026           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1027       ;;
1028     *)
1029       sed -n \
1030         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1031       ;;
1032     esac;
1033 }
1034     echo
1035
1036     cat <<\_ASBOX
1037 ## ----------------- ##
1038 ## Output variables. ##
1039 ## ----------------- ##
1040 _ASBOX
1041     echo
1042     for ac_var in $ac_subst_vars
1043     do
1044       eval ac_val=$`echo $ac_var`
1045       echo "$ac_var='"'"'$ac_val'"'"'"
1046     done | sort
1047     echo
1048
1049     if test -n "$ac_subst_files"; then
1050       cat <<\_ASBOX
1051 ## ------------- ##
1052 ## Output files. ##
1053 ## ------------- ##
1054 _ASBOX
1055       echo
1056       for ac_var in $ac_subst_files
1057       do
1058         eval ac_val=$`echo $ac_var`
1059         echo "$ac_var='"'"'$ac_val'"'"'"
1060       done | sort
1061       echo
1062     fi
1063
1064     if test -s confdefs.h; then
1065       cat <<\_ASBOX
1066 ## ----------- ##
1067 ## confdefs.h. ##
1068 ## ----------- ##
1069 _ASBOX
1070       echo
1071       sed "/^$/d" confdefs.h | sort
1072       echo
1073     fi
1074     test "$ac_signal" != 0 &&
1075       echo "$as_me: caught signal $ac_signal"
1076     echo "$as_me: exit $exit_status"
1077   } >&5
1078   rm -f core *.core &&
1079   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1080     exit $exit_status
1081      ' 0
1082 for ac_signal in 1 2 13 15; do
1083   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1084 done
1085 ac_signal=0
1086
1087 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1088 rm -rf conftest* confdefs.h
1089 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1090 echo >confdefs.h
1091
1092 # Predefined preprocessor variables.
1093
1094 cat >>confdefs.h <<_ACEOF
1095 #define PACKAGE_NAME "$PACKAGE_NAME"
1096 _ACEOF
1097
1098
1099 cat >>confdefs.h <<_ACEOF
1100 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1101 _ACEOF
1102
1103
1104 cat >>confdefs.h <<_ACEOF
1105 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1106 _ACEOF
1107
1108
1109 cat >>confdefs.h <<_ACEOF
1110 #define PACKAGE_STRING "$PACKAGE_STRING"
1111 _ACEOF
1112
1113
1114 cat >>confdefs.h <<_ACEOF
1115 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1116 _ACEOF
1117
1118
1119 # Let the site file select an alternate cache file if it wants to.
1120 # Prefer explicitly selected file to automatically selected ones.
1121 if test -z "$CONFIG_SITE"; then
1122   if test "x$prefix" != xNONE; then
1123     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1124   else
1125     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1126   fi
1127 fi
1128 for ac_site_file in $CONFIG_SITE; do
1129   if test -r "$ac_site_file"; then
1130     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1131 echo "$as_me: loading site script $ac_site_file" >&6;}
1132     sed 's/^/| /' "$ac_site_file" >&5
1133     . "$ac_site_file"
1134   fi
1135 done
1136
1137 if test -r "$cache_file"; then
1138   # Some versions of bash will fail to source /dev/null (special
1139   # files actually), so we avoid doing that.
1140   if test -f "$cache_file"; then
1141     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1142 echo "$as_me: loading cache $cache_file" >&6;}
1143     case $cache_file in
1144       [\\/]* | ?:[\\/]* ) . $cache_file;;
1145       *)                      . ./$cache_file;;
1146     esac
1147   fi
1148 else
1149   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1150 echo "$as_me: creating cache $cache_file" >&6;}
1151   >$cache_file
1152 fi
1153
1154 # Check that the precious variables saved in the cache have kept the same
1155 # value.
1156 ac_cache_corrupted=false
1157 for ac_var in `(set) 2>&1 |
1158                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1159   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1160   eval ac_new_set=\$ac_env_${ac_var}_set
1161   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1162   eval ac_new_val="\$ac_env_${ac_var}_value"
1163   case $ac_old_set,$ac_new_set in
1164     set,)
1165       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1166 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1167       ac_cache_corrupted=: ;;
1168     ,set)
1169       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1170 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1171       ac_cache_corrupted=: ;;
1172     ,);;
1173     *)
1174       if test "x$ac_old_val" != "x$ac_new_val"; then
1175         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1176 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1177         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1178 echo "$as_me:   former value:  $ac_old_val" >&2;}
1179         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1180 echo "$as_me:   current value: $ac_new_val" >&2;}
1181         ac_cache_corrupted=:
1182       fi;;
1183   esac
1184   # Pass precious variables to config.status.
1185   if test "$ac_new_set" = set; then
1186     case $ac_new_val in
1187     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1188       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1189     *) ac_arg=$ac_var=$ac_new_val ;;
1190     esac
1191     case " $ac_configure_args " in
1192       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1193       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1194     esac
1195   fi
1196 done
1197 if $ac_cache_corrupted; then
1198   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1199 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1200   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1201 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1202    { (exit 1); exit 1; }; }
1203 fi
1204
1205 ac_ext=c
1206 ac_cpp='$CPP $CPPFLAGS'
1207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230 am__api_version="1.7"
1231 ac_aux_dir=
1232 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1233   if test -f $ac_dir/install-sh; then
1234     ac_aux_dir=$ac_dir
1235     ac_install_sh="$ac_aux_dir/install-sh -c"
1236     break
1237   elif test -f $ac_dir/install.sh; then
1238     ac_aux_dir=$ac_dir
1239     ac_install_sh="$ac_aux_dir/install.sh -c"
1240     break
1241   elif test -f $ac_dir/shtool; then
1242     ac_aux_dir=$ac_dir
1243     ac_install_sh="$ac_aux_dir/shtool install -c"
1244     break
1245   fi
1246 done
1247 if test -z "$ac_aux_dir"; then
1248   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1249 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1250    { (exit 1); exit 1; }; }
1251 fi
1252 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1253 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1254 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1255
1256 # Find a good install program.  We prefer a C program (faster),
1257 # so one script is as good as another.  But avoid the broken or
1258 # incompatible versions:
1259 # SysV /etc/install, /usr/sbin/install
1260 # SunOS /usr/etc/install
1261 # IRIX /sbin/install
1262 # AIX /bin/install
1263 # AmigaOS /C/install, which installs bootblocks on floppy discs
1264 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1265 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1266 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1267 # OS/2's system install, which has a completely different semantic
1268 # ./install, which can be erroneously created by make from ./install.sh.
1269 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1270 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1271 if test -z "$INSTALL"; then
1272 if test "${ac_cv_path_install+set}" = set; then
1273   echo $ECHO_N "(cached) $ECHO_C" >&6
1274 else
1275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1276 for as_dir in $PATH
1277 do
1278   IFS=$as_save_IFS
1279   test -z "$as_dir" && as_dir=.
1280   # Account for people who put trailing slashes in PATH elements.
1281 case $as_dir/ in
1282   ./ | .// | /cC/* | \
1283   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1284   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1285   /usr/ucb/* ) ;;
1286   *)
1287     # OSF1 and SCO ODT 3.0 have their own names for install.
1288     # Don't use installbsd from OSF since it installs stuff as root
1289     # by default.
1290     for ac_prog in ginstall scoinst install; do
1291       for ac_exec_ext in '' $ac_executable_extensions; do
1292         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1293           if test $ac_prog = install &&
1294             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1295             # AIX install.  It has an incompatible calling convention.
1296             :
1297           elif test $ac_prog = install &&
1298             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1299             # program-specific install script used by HP pwplus--don't use.
1300             :
1301           else
1302             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1303             break 3
1304           fi
1305         fi
1306       done
1307     done
1308     ;;
1309 esac
1310 done
1311
1312
1313 fi
1314   if test "${ac_cv_path_install+set}" = set; then
1315     INSTALL=$ac_cv_path_install
1316   else
1317     # As a last resort, use the slow shell script.  We don't cache a
1318     # path for INSTALL within a source directory, because that will
1319     # break other packages using the cache if that directory is
1320     # removed, or if the path is relative.
1321     INSTALL=$ac_install_sh
1322   fi
1323 fi
1324 echo "$as_me:$LINENO: result: $INSTALL" >&5
1325 echo "${ECHO_T}$INSTALL" >&6
1326
1327 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1328 # It thinks the first close brace ends the variable substitution.
1329 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1330
1331 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1332
1333 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1334
1335 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1336 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1337 # Just in case
1338 sleep 1
1339 echo timestamp > conftest.file
1340 # Do `set' in a subshell so we don't clobber the current shell's
1341 # arguments.  Must try -L first in case configure is actually a
1342 # symlink; some systems play weird games with the mod time of symlinks
1343 # (eg FreeBSD returns the mod time of the symlink's containing
1344 # directory).
1345 if (
1346    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1347    if test "$*" = "X"; then
1348       # -L didn't work.
1349       set X `ls -t $srcdir/configure conftest.file`
1350    fi
1351    rm -f conftest.file
1352    if test "$*" != "X $srcdir/configure conftest.file" \
1353       && test "$*" != "X conftest.file $srcdir/configure"; then
1354
1355       # If neither matched, then we have a broken ls.  This can happen
1356       # if, for instance, CONFIG_SHELL is bash and it inherits a
1357       # broken ls alias from the environment.  This has actually
1358       # happened.  Such a system could not be considered "sane".
1359       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1360 alias in your environment" >&5
1361 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1362 alias in your environment" >&2;}
1363    { (exit 1); exit 1; }; }
1364    fi
1365
1366    test "$2" = conftest.file
1367    )
1368 then
1369    # Ok.
1370    :
1371 else
1372    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1373 Check your system clock" >&5
1374 echo "$as_me: error: newly created file is older than distributed files!
1375 Check your system clock" >&2;}
1376    { (exit 1); exit 1; }; }
1377 fi
1378 echo "$as_me:$LINENO: result: yes" >&5
1379 echo "${ECHO_T}yes" >&6
1380 test "$program_prefix" != NONE &&
1381   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1382 # Use a double $ so make ignores it.
1383 test "$program_suffix" != NONE &&
1384   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1385 # Double any \ or $.  echo might interpret backslashes.
1386 # By default was `s,x,x', remove it if useless.
1387 cat <<\_ACEOF >conftest.sed
1388 s/[\\$]/&&/g;s/;s,x,x,$//
1389 _ACEOF
1390 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1391 rm conftest.sed
1392
1393
1394 # expand $ac_aux_dir to an absolute path
1395 am_aux_dir=`cd $ac_aux_dir && pwd`
1396
1397 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1398 # Use eval to expand $SHELL
1399 if eval "$MISSING --run true"; then
1400   am_missing_run="$MISSING --run "
1401 else
1402   am_missing_run=
1403   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1404 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1405 fi
1406
1407 for ac_prog in gawk mawk nawk awk
1408 do
1409   # Extract the first word of "$ac_prog", so it can be a program name with args.
1410 set dummy $ac_prog; ac_word=$2
1411 echo "$as_me:$LINENO: checking for $ac_word" >&5
1412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1413 if test "${ac_cv_prog_AWK+set}" = set; then
1414   echo $ECHO_N "(cached) $ECHO_C" >&6
1415 else
1416   if test -n "$AWK"; then
1417   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1418 else
1419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1420 for as_dir in $PATH
1421 do
1422   IFS=$as_save_IFS
1423   test -z "$as_dir" && as_dir=.
1424   for ac_exec_ext in '' $ac_executable_extensions; do
1425   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1426     ac_cv_prog_AWK="$ac_prog"
1427     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1428     break 2
1429   fi
1430 done
1431 done
1432
1433 fi
1434 fi
1435 AWK=$ac_cv_prog_AWK
1436 if test -n "$AWK"; then
1437   echo "$as_me:$LINENO: result: $AWK" >&5
1438 echo "${ECHO_T}$AWK" >&6
1439 else
1440   echo "$as_me:$LINENO: result: no" >&5
1441 echo "${ECHO_T}no" >&6
1442 fi
1443
1444   test -n "$AWK" && break
1445 done
1446
1447 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1448 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1449 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1450 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1451   echo $ECHO_N "(cached) $ECHO_C" >&6
1452 else
1453   cat >conftest.make <<\_ACEOF
1454 all:
1455         @echo 'ac_maketemp="$(MAKE)"'
1456 _ACEOF
1457 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1458 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1459 if test -n "$ac_maketemp"; then
1460   eval ac_cv_prog_make_${ac_make}_set=yes
1461 else
1462   eval ac_cv_prog_make_${ac_make}_set=no
1463 fi
1464 rm -f conftest.make
1465 fi
1466 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1467   echo "$as_me:$LINENO: result: yes" >&5
1468 echo "${ECHO_T}yes" >&6
1469   SET_MAKE=
1470 else
1471   echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1473   SET_MAKE="MAKE=${MAKE-make}"
1474 fi
1475
1476 rm -rf .tst 2>/dev/null
1477 mkdir .tst 2>/dev/null
1478 if test -d .tst; then
1479   am__leading_dot=.
1480 else
1481   am__leading_dot=_
1482 fi
1483 rmdir .tst 2>/dev/null
1484
1485  # test to see if srcdir already configured
1486 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1487    test -f $srcdir/config.status; then
1488   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1489 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1490    { (exit 1); exit 1; }; }
1491 fi
1492
1493 # test whether we have cygpath
1494 if test -z "$CYGPATH_W"; then
1495   if (cygpath --version) >/dev/null 2>/dev/null; then
1496     CYGPATH_W='cygpath -w'
1497   else
1498     CYGPATH_W=echo
1499   fi
1500 fi
1501
1502
1503 # Define the identity of the package.
1504  PACKAGE=mmm-mode
1505  VERSION=0.4.8
1506
1507
1508 cat >>confdefs.h <<_ACEOF
1509 #define PACKAGE "$PACKAGE"
1510 _ACEOF
1511
1512
1513 cat >>confdefs.h <<_ACEOF
1514 #define VERSION "$VERSION"
1515 _ACEOF
1516
1517 # Some tools Automake needs.
1518
1519 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1520
1521
1522 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1523
1524
1525 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1526
1527
1528 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1529
1530
1531 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1532
1533
1534 AMTAR=${AMTAR-"${am_missing_run}tar"}
1535
1536 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1537
1538 # Installed binaries are usually stripped using `strip' when the user
1539 # run `make install-strip'.  However `strip' might not be the right
1540 # tool to use in cross-compilation environments, therefore Automake
1541 # will honor the `STRIP' environment variable to overrule this program.
1542 if test "$cross_compiling" != no; then
1543   if test -n "$ac_tool_prefix"; then
1544   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1545 set dummy ${ac_tool_prefix}strip; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_STRIP+set}" = set; then
1549   echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551   if test -n "$STRIP"; then
1552   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1553 else
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1556 do
1557   IFS=$as_save_IFS
1558   test -z "$as_dir" && as_dir=.
1559   for ac_exec_ext in '' $ac_executable_extensions; do
1560   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1562     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563     break 2
1564   fi
1565 done
1566 done
1567
1568 fi
1569 fi
1570 STRIP=$ac_cv_prog_STRIP
1571 if test -n "$STRIP"; then
1572   echo "$as_me:$LINENO: result: $STRIP" >&5
1573 echo "${ECHO_T}$STRIP" >&6
1574 else
1575   echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1577 fi
1578
1579 fi
1580 if test -z "$ac_cv_prog_STRIP"; then
1581   ac_ct_STRIP=$STRIP
1582   # Extract the first word of "strip", so it can be a program name with args.
1583 set dummy strip; ac_word=$2
1584 echo "$as_me:$LINENO: checking for $ac_word" >&5
1585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   if test -n "$ac_ct_STRIP"; then
1590   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1591 else
1592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593 for as_dir in $PATH
1594 do
1595   IFS=$as_save_IFS
1596   test -z "$as_dir" && as_dir=.
1597   for ac_exec_ext in '' $ac_executable_extensions; do
1598   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1599     ac_cv_prog_ac_ct_STRIP="strip"
1600     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601     break 2
1602   fi
1603 done
1604 done
1605
1606   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1607 fi
1608 fi
1609 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1610 if test -n "$ac_ct_STRIP"; then
1611   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1612 echo "${ECHO_T}$ac_ct_STRIP" >&6
1613 else
1614   echo "$as_me:$LINENO: result: no" >&5
1615 echo "${ECHO_T}no" >&6
1616 fi
1617
1618   STRIP=$ac_ct_STRIP
1619 else
1620   STRIP="$ac_cv_prog_STRIP"
1621 fi
1622
1623 fi
1624 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1625
1626 # We need awk for the "check" target.  The system "awk" is bad on
1627 # some platforms.
1628
1629
1630
1631
1632 if test "${EMACS}" = "t"; then
1633    EMACS=""
1634 fi
1635
1636
1637 # Check whether --with-xemacs or --without-xemacs was given.
1638 if test "${with_xemacs+set}" = set; then
1639   withval="$with_xemacs"
1640    if test "${withval}" = "yes"; then EMACS=xemacs; else EMACS=${withval}; fi
1641 fi;
1642
1643 # Check whether --with-emacs or --without-emacs was given.
1644 if test "${with_emacs+set}" = set; then
1645   withval="$with_emacs"
1646    if test "${withval}" = "yes"; then EMACS=emacs; else EMACS=${withval}; fi
1647 fi;
1648
1649 # Extract the first word of "xemacs", so it can be a program name with args.
1650 set dummy xemacs; ac_word=$2
1651 echo "$as_me:$LINENO: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_EMACS+set}" = set; then
1654   echo $ECHO_N "(cached) $ECHO_C" >&6
1655 else
1656   if test -n "$EMACS"; then
1657   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1658 else
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 for as_dir in $PATH
1661 do
1662   IFS=$as_save_IFS
1663   test -z "$as_dir" && as_dir=.
1664   for ac_exec_ext in '' $ac_executable_extensions; do
1665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666     ac_cv_prog_EMACS="xemacs"
1667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668     break 2
1669   fi
1670 done
1671 done
1672
1673   test -z "$ac_cv_prog_EMACS" && ac_cv_prog_EMACS="emacs"
1674 fi
1675 fi
1676 EMACS=$ac_cv_prog_EMACS
1677 if test -n "$EMACS"; then
1678   echo "$as_me:$LINENO: result: $EMACS" >&5
1679 echo "${ECHO_T}$EMACS" >&6
1680 else
1681   echo "$as_me:$LINENO: result: no" >&5
1682 echo "${ECHO_T}no" >&6
1683 fi
1684
1685
1686
1687 # Check whether --with-lispdir or --without-lispdir was given.
1688 if test "${with_lispdir+set}" = set; then
1689   withval="$with_lispdir"
1690    lispdir="$withval"
1691    echo "$as_me:$LINENO: checking where .elc files should go" >&5
1692 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1693    echo "$as_me:$LINENO: result: $lispdir" >&5
1694 echo "${ECHO_T}$lispdir" >&6
1695 else
1696
1697  # If set to t, that means we are running in a shell under Emacs.
1698  # If you have an Emacs named "t", then use the full path.
1699  test x"$EMACS" = xt && EMACS=
1700  for ac_prog in emacs xemacs
1701 do
1702   # Extract the first word of "$ac_prog", so it can be a program name with args.
1703 set dummy $ac_prog; ac_word=$2
1704 echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706 if test "${ac_cv_prog_EMACS+set}" = set; then
1707   echo $ECHO_N "(cached) $ECHO_C" >&6
1708 else
1709   if test -n "$EMACS"; then
1710   ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1711 else
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1713 for as_dir in $PATH
1714 do
1715   IFS=$as_save_IFS
1716   test -z "$as_dir" && as_dir=.
1717   for ac_exec_ext in '' $ac_executable_extensions; do
1718   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719     ac_cv_prog_EMACS="$ac_prog"
1720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721     break 2
1722   fi
1723 done
1724 done
1725
1726 fi
1727 fi
1728 EMACS=$ac_cv_prog_EMACS
1729 if test -n "$EMACS"; then
1730   echo "$as_me:$LINENO: result: $EMACS" >&5
1731 echo "${ECHO_T}$EMACS" >&6
1732 else
1733   echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1735 fi
1736
1737   test -n "$EMACS" && break
1738 done
1739 test -n "$EMACS" || EMACS="no"
1740
1741  if test $EMACS != "no"; then
1742    if test x${lispdir+set} != xset; then
1743      echo "$as_me:$LINENO: checking where .elc files should go" >&5
1744 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1745 if test "${am_cv_lispdir+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
1749   # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
1750   #  which is non-obvious for non-emacs users.
1751   # Redirecting /dev/null should help a bit; pity we can't detect "broken"
1752   #  emacsen earlier and avoid running this altogether.
1753   { (echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
1754   ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
1755   ac_status=$?
1756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757   (exit $ac_status); }
1758         am_cv_lispdir=`sed -n \
1759        -e 's,/$,,' \
1760        -e '/.*\/lib\/x\?emacs\/site-lisp$/{s,.*/lib/\(x\?emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
1761        -e '/.*\/share\/x\?emacs\/site-lisp$/{s,.*/share/\(x\?emacs/site-lisp\),${datadir}/\1,;p;q;}' \
1762        conftest.out`
1763        rm conftest.out
1764        if test -z "$am_cv_lispdir"; then
1765          am_cv_lispdir='${datadir}/emacs/site-lisp'
1766        fi
1767
1768 fi
1769 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
1770 echo "${ECHO_T}$am_cv_lispdir" >&6
1771      lispdir="$am_cv_lispdir"
1772    fi
1773  fi
1774
1775 fi;
1776
1777
1778
1779
1780 echo "$as_me:$LINENO: checking for emacs version" >&5
1781 echo $ECHO_N "checking for emacs version... $ECHO_C" >&6
1782
1783 elisp="(and (boundp 'emacs-major-version) (format \"%d.%d\" emacs-major-version emacs-minor-version))"
1784 if test -z ""noecho""; then
1785         echo "$as_me:$LINENO: checking for version" >&5
1786 echo $ECHO_N "checking for version... $ECHO_C" >&6
1787 fi
1788 if test "${EMACS_cv_SYS_version+set}" = set; then
1789   echo $ECHO_N "(cached) $ECHO_C" >&6
1790 else
1791
1792         OUTPUT=./conftest-$$
1793         echo ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x) (prin1-to-string x)) nil \"${OUTPUT}\"))" >& 5 2>&1
1794         ${EMACS} -batch -eval "(let ((x ${elisp})) (write-region (if (stringp x) (princ x 'ignore) (prin1-to-string x)) nil \"${OUTPUT}\"nil 5))" >& 5 2>&1
1795         retval=`cat ${OUTPUT}`
1796         echo "=> ${retval}" >& 5 2>&1
1797         rm -f ${OUTPUT}
1798         EMACS_cv_SYS_version=$retval
1799
1800 fi
1801
1802 version=${EMACS_cv_SYS_version}
1803 if test -z ""noecho""; then
1804         echo "$as_me:$LINENO: result: $version" >&5
1805 echo "${ECHO_T}$version" >&6
1806 fi
1807
1808
1809 EMACS_VERSION=${EMACS_cv_SYS_version}
1810
1811 echo "$as_me:$LINENO: result: ${EMACS_VERSION}" >&5
1812 echo "${ECHO_T}${EMACS_VERSION}" >&6
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823           ac_config_files="$ac_config_files Makefile"
1824 cat >confcache <<\_ACEOF
1825 # This file is a shell script that caches the results of configure
1826 # tests run on this system so they can be shared between configure
1827 # scripts and configure runs, see configure's option --config-cache.
1828 # It is not useful on other systems.  If it contains results you don't
1829 # want to keep, you may remove or edit it.
1830 #
1831 # config.status only pays attention to the cache file if you give it
1832 # the --recheck option to rerun configure.
1833 #
1834 # `ac_cv_env_foo' variables (set or unset) will be overridden when
1835 # loading this file, other *unset* `ac_cv_foo' will be assigned the
1836 # following values.
1837
1838 _ACEOF
1839
1840 # The following way of writing the cache mishandles newlines in values,
1841 # but we know of no workaround that is simple, portable, and efficient.
1842 # So, don't put newlines in cache variables' values.
1843 # Ultrix sh set writes to stderr and can't be redirected directly,
1844 # and sets the high bit in the cache file unless we assign to the vars.
1845 {
1846   (set) 2>&1 |
1847     case `(ac_space=' '; set | grep ac_space) 2>&1` in
1848     *ac_space=\ *)
1849       # `set' does not quote correctly, so add quotes (double-quote
1850       # substitution turns \\\\ into \\, and sed turns \\ into \).
1851       sed -n \
1852         "s/'/'\\\\''/g;
1853           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1854       ;;
1855     *)
1856       # `set' quotes correctly as required by POSIX, so do not add quotes.
1857       sed -n \
1858         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1859       ;;
1860     esac;
1861 } |
1862   sed '
1863      t clear
1864      : clear
1865      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1866      t end
1867      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1868      : end' >>confcache
1869 if diff $cache_file confcache >/dev/null 2>&1; then :; else
1870   if test -w $cache_file; then
1871     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1872     cat confcache >$cache_file
1873   else
1874     echo "not updating unwritable cache $cache_file"
1875   fi
1876 fi
1877 rm -f confcache
1878
1879 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1880 # Let make expand exec_prefix.
1881 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1882
1883 # VPATH may cause trouble with some makes, so we remove $(srcdir),
1884 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1885 # trailing colons and then remove the whole line if VPATH becomes empty
1886 # (actually we leave an empty line to preserve line numbers).
1887 if test "x$srcdir" = x.; then
1888   ac_vpsub='/^[  ]*VPATH[        ]*=/{
1889 s/:*\$(srcdir):*/:/;
1890 s/:*\${srcdir}:*/:/;
1891 s/:*@srcdir@:*/:/;
1892 s/^\([^=]*=[     ]*\):*/\1/;
1893 s/:*$//;
1894 s/^[^=]*=[       ]*$//;
1895 }'
1896 fi
1897
1898 # Transform confdefs.h into DEFS.
1899 # Protect against shell expansion while executing Makefile rules.
1900 # Protect against Makefile macro expansion.
1901 #
1902 # If the first sed substitution is executed (which looks for macros that
1903 # take arguments), then we branch to the quote section.  Otherwise,
1904 # look for a macro that doesn't take arguments.
1905 cat >confdef2opt.sed <<\_ACEOF
1906 t clear
1907 : clear
1908 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
1909 t quote
1910 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
1911 t quote
1912 d
1913 : quote
1914 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
1915 s,\[,\\&,g
1916 s,\],\\&,g
1917 s,\$,$$,g
1918 p
1919 _ACEOF
1920 # We use echo to avoid assuming a particular line-breaking character.
1921 # The extra dot is to prevent the shell from consuming trailing
1922 # line-breaks from the sub-command output.  A line-break within
1923 # single-quotes doesn't work because, if this script is created in a
1924 # platform that uses two characters for line-breaks (e.g., DOS), tr
1925 # would break.
1926 ac_LF_and_DOT=`echo; echo .`
1927 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
1928 rm -f confdef2opt.sed
1929
1930
1931 ac_libobjs=
1932 ac_ltlibobjs=
1933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1934   # 1. Remove the extension, and $U if already installed.
1935   ac_i=`echo "$ac_i" |
1936          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1937   # 2. Add them.
1938   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
1939   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1940 done
1941 LIBOBJS=$ac_libobjs
1942
1943 LTLIBOBJS=$ac_ltlibobjs
1944
1945
1946
1947 : ${CONFIG_STATUS=./config.status}
1948 ac_clean_files_save=$ac_clean_files
1949 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1950 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
1951 echo "$as_me: creating $CONFIG_STATUS" >&6;}
1952 cat >$CONFIG_STATUS <<_ACEOF
1953 #! $SHELL
1954 # Generated by $as_me.
1955 # Run this file to recreate the current configuration.
1956 # Compiler output produced by configure, useful for debugging
1957 # configure, is in config.log if it exists.
1958
1959 debug=false
1960 ac_cs_recheck=false
1961 ac_cs_silent=false
1962 SHELL=\${CONFIG_SHELL-$SHELL}
1963 _ACEOF
1964
1965 cat >>$CONFIG_STATUS <<\_ACEOF
1966 ## --------------------- ##
1967 ## M4sh Initialization.  ##
1968 ## --------------------- ##
1969
1970 # Be Bourne compatible
1971 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1972   emulate sh
1973   NULLCMD=:
1974   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1975   # is contrary to our usage.  Disable this feature.
1976   alias -g '${1+"$@"}'='"$@"'
1977 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1978   set -o posix
1979 fi
1980 DUALCASE=1; export DUALCASE # for MKS sh
1981
1982 # Support unset when possible.
1983 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1984   as_unset=unset
1985 else
1986   as_unset=false
1987 fi
1988
1989
1990 # Work around bugs in pre-3.0 UWIN ksh.
1991 $as_unset ENV MAIL MAILPATH
1992 PS1='$ '
1993 PS2='> '
1994 PS4='+ '
1995
1996 # NLS nuisances.
1997 for as_var in \
1998   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
1999   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2000   LC_TELEPHONE LC_TIME
2001 do
2002   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2003     eval $as_var=C; export $as_var
2004   else
2005     $as_unset $as_var
2006   fi
2007 done
2008
2009 # Required to use basename.
2010 if expr a : '\(a\)' >/dev/null 2>&1; then
2011   as_expr=expr
2012 else
2013   as_expr=false
2014 fi
2015
2016 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2017   as_basename=basename
2018 else
2019   as_basename=false
2020 fi
2021
2022
2023 # Name of the executable.
2024 as_me=`$as_basename "$0" ||
2025 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2026          X"$0" : 'X\(//\)$' \| \
2027          X"$0" : 'X\(/\)$' \| \
2028          .     : '\(.\)' 2>/dev/null ||
2029 echo X/"$0" |
2030     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2031           /^X\/\(\/\/\)$/{ s//\1/; q; }
2032           /^X\/\(\/\).*/{ s//\1/; q; }
2033           s/.*/./; q'`
2034
2035
2036 # PATH needs CR, and LINENO needs CR and PATH.
2037 # Avoid depending upon Character Ranges.
2038 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2039 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2040 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2041 as_cr_digits='0123456789'
2042 as_cr_alnum=$as_cr_Letters$as_cr_digits
2043
2044 # The user is always right.
2045 if test "${PATH_SEPARATOR+set}" != set; then
2046   echo "#! /bin/sh" >conf$$.sh
2047   echo  "exit 0"   >>conf$$.sh
2048   chmod +x conf$$.sh
2049   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2050     PATH_SEPARATOR=';'
2051   else
2052     PATH_SEPARATOR=:
2053   fi
2054   rm -f conf$$.sh
2055 fi
2056
2057
2058   as_lineno_1=$LINENO
2059   as_lineno_2=$LINENO
2060   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2061   test "x$as_lineno_1" != "x$as_lineno_2" &&
2062   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
2063   # Find who we are.  Look in the path if we contain no path at all
2064   # relative or not.
2065   case $0 in
2066     *[\\/]* ) as_myself=$0 ;;
2067     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 for as_dir in $PATH
2069 do
2070   IFS=$as_save_IFS
2071   test -z "$as_dir" && as_dir=.
2072   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2073 done
2074
2075        ;;
2076   esac
2077   # We did not find ourselves, most probably we were run as `sh COMMAND'
2078   # in which case we are not to be found in the path.
2079   if test "x$as_myself" = x; then
2080     as_myself=$0
2081   fi
2082   if test ! -f "$as_myself"; then
2083     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2084 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2085    { (exit 1); exit 1; }; }
2086   fi
2087   case $CONFIG_SHELL in
2088   '')
2089     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2091 do
2092   IFS=$as_save_IFS
2093   test -z "$as_dir" && as_dir=.
2094   for as_base in sh bash ksh sh5; do
2095          case $as_dir in
2096          /*)
2097            if ("$as_dir/$as_base" -c '
2098   as_lineno_1=$LINENO
2099   as_lineno_2=$LINENO
2100   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2101   test "x$as_lineno_1" != "x$as_lineno_2" &&
2102   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
2103              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2104              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2105              CONFIG_SHELL=$as_dir/$as_base
2106              export CONFIG_SHELL
2107              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2108            fi;;
2109          esac
2110        done
2111 done
2112 ;;
2113   esac
2114
2115   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2116   # uniformly replaced by the line number.  The first 'sed' inserts a
2117   # line-number line before each line; the second 'sed' does the real
2118   # work.  The second script uses 'N' to pair each line-number line
2119   # with the numbered line, and appends trailing '-' during
2120   # substitution so that $LINENO is not a special case at line end.
2121   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2122   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
2123   sed '=' <$as_myself |
2124     sed '
2125       N
2126       s,$,-,
2127       : loop
2128       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2129       t loop
2130       s,-$,,
2131       s,^['$as_cr_digits']*\n,,
2132     ' >$as_me.lineno &&
2133   chmod +x $as_me.lineno ||
2134     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2135 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2136    { (exit 1); exit 1; }; }
2137
2138   # Don't try to exec as it changes $[0], causing all sort of problems
2139   # (the dirname of $[0] is not the place where we might find the
2140   # original and so on.  Autoconf is especially sensible to this).
2141   . ./$as_me.lineno
2142   # Exit status is that of the last command.
2143   exit
2144 }
2145
2146
2147 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2148   *c*,-n*) ECHO_N= ECHO_C='
2149 ' ECHO_T='      ' ;;
2150   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2151   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
2152 esac
2153
2154 if expr a : '\(a\)' >/dev/null 2>&1; then
2155   as_expr=expr
2156 else
2157   as_expr=false
2158 fi
2159
2160 rm -f conf$$ conf$$.exe conf$$.file
2161 echo >conf$$.file
2162 if ln -s conf$$.file conf$$ 2>/dev/null; then
2163   # We could just check for DJGPP; but this test a) works b) is more generic
2164   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2165   if test -f conf$$.exe; then
2166     # Don't use ln at all; we don't have any links
2167     as_ln_s='cp -p'
2168   else
2169     as_ln_s='ln -s'
2170   fi
2171 elif ln conf$$.file conf$$ 2>/dev/null; then
2172   as_ln_s=ln
2173 else
2174   as_ln_s='cp -p'
2175 fi
2176 rm -f conf$$ conf$$.exe conf$$.file
2177
2178 if mkdir -p . 2>/dev/null; then
2179   as_mkdir_p=:
2180 else
2181   test -d ./-p && rmdir ./-p
2182   as_mkdir_p=false
2183 fi
2184
2185 as_executable_p="test -f"
2186
2187 # Sed expression to map a string onto a valid CPP name.
2188 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2189
2190 # Sed expression to map a string onto a valid variable name.
2191 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2192
2193
2194 # IFS
2195 # We need space, tab and new line, in precisely that order.
2196 as_nl='
2197 '
2198 IFS="   $as_nl"
2199
2200 # CDPATH.
2201 $as_unset CDPATH
2202
2203 exec 6>&1
2204
2205 # Open the log real soon, to keep \$[0] and so on meaningful, and to
2206 # report actual input values of CONFIG_FILES etc. instead of their
2207 # values after options handling.  Logging --version etc. is OK.
2208 exec 5>>config.log
2209 {
2210   echo
2211   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2212 ## Running $as_me. ##
2213 _ASBOX
2214 } >&5
2215 cat >&5 <<_CSEOF
2216
2217 This file was extended by $as_me, which was
2218 generated by GNU Autoconf 2.59.  Invocation command line was
2219
2220   CONFIG_FILES    = $CONFIG_FILES
2221   CONFIG_HEADERS  = $CONFIG_HEADERS
2222   CONFIG_LINKS    = $CONFIG_LINKS
2223   CONFIG_COMMANDS = $CONFIG_COMMANDS
2224   $ $0 $@
2225
2226 _CSEOF
2227 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2228 echo >&5
2229 _ACEOF
2230
2231 # Files that config.status was made for.
2232 if test -n "$ac_config_files"; then
2233   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2234 fi
2235
2236 if test -n "$ac_config_headers"; then
2237   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2238 fi
2239
2240 if test -n "$ac_config_links"; then
2241   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2242 fi
2243
2244 if test -n "$ac_config_commands"; then
2245   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2246 fi
2247
2248 cat >>$CONFIG_STATUS <<\_ACEOF
2249
2250 ac_cs_usage="\
2251 \`$as_me' instantiates files from templates according to the
2252 current configuration.
2253
2254 Usage: $0 [OPTIONS] [FILE]...
2255
2256   -h, --help       print this help, then exit
2257   -V, --version    print version number, then exit
2258   -q, --quiet      do not print progress messages
2259   -d, --debug      don't remove temporary files
2260       --recheck    update $as_me by reconfiguring in the same conditions
2261   --file=FILE[:TEMPLATE]
2262                    instantiate the configuration file FILE
2263
2264 Configuration files:
2265 $config_files
2266
2267 Report bugs to <bug-autoconf@gnu.org>."
2268 _ACEOF
2269
2270 cat >>$CONFIG_STATUS <<_ACEOF
2271 ac_cs_version="\\
2272 config.status
2273 configured by $0, generated by GNU Autoconf 2.59,
2274   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2275
2276 Copyright (C) 2003 Free Software Foundation, Inc.
2277 This config.status script is free software; the Free Software Foundation
2278 gives unlimited permission to copy, distribute and modify it."
2279 srcdir=$srcdir
2280 INSTALL="$INSTALL"
2281 _ACEOF
2282
2283 cat >>$CONFIG_STATUS <<\_ACEOF
2284 # If no file are specified by the user, then we need to provide default
2285 # value.  By we need to know if files were specified by the user.
2286 ac_need_defaults=:
2287 while test $# != 0
2288 do
2289   case $1 in
2290   --*=*)
2291     ac_option=`expr "x$1" : 'x\([^=]*\)='`
2292     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2293     ac_shift=:
2294     ;;
2295   -*)
2296     ac_option=$1
2297     ac_optarg=$2
2298     ac_shift=shift
2299     ;;
2300   *) # This is not an option, so the user has probably given explicit
2301      # arguments.
2302      ac_option=$1
2303      ac_need_defaults=false;;
2304   esac
2305
2306   case $ac_option in
2307   # Handling of the options.
2308 _ACEOF
2309 cat >>$CONFIG_STATUS <<\_ACEOF
2310   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2311     ac_cs_recheck=: ;;
2312   --version | --vers* | -V )
2313     echo "$ac_cs_version"; exit 0 ;;
2314   --he | --h)
2315     # Conflict between --help and --header
2316     { { echo "$as_me:$LINENO: error: ambiguous option: $1
2317 Try \`$0 --help' for more information." >&5
2318 echo "$as_me: error: ambiguous option: $1
2319 Try \`$0 --help' for more information." >&2;}
2320    { (exit 1); exit 1; }; };;
2321   --help | --hel | -h )
2322     echo "$ac_cs_usage"; exit 0 ;;
2323   --debug | --d* | -d )
2324     debug=: ;;
2325   --file | --fil | --fi | --f )
2326     $ac_shift
2327     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2328     ac_need_defaults=false;;
2329   --header | --heade | --head | --hea )
2330     $ac_shift
2331     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2332     ac_need_defaults=false;;
2333   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2334   | -silent | --silent | --silen | --sile | --sil | --si | --s)
2335     ac_cs_silent=: ;;
2336
2337   # This is an error.
2338   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
2339 Try \`$0 --help' for more information." >&5
2340 echo "$as_me: error: unrecognized option: $1
2341 Try \`$0 --help' for more information." >&2;}
2342    { (exit 1); exit 1; }; } ;;
2343
2344   *) ac_config_targets="$ac_config_targets $1" ;;
2345
2346   esac
2347   shift
2348 done
2349
2350 ac_configure_extra_args=
2351
2352 if $ac_cs_silent; then
2353   exec 6>/dev/null
2354   ac_configure_extra_args="$ac_configure_extra_args --silent"
2355 fi
2356
2357 _ACEOF
2358 cat >>$CONFIG_STATUS <<_ACEOF
2359 if \$ac_cs_recheck; then
2360   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2361   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2362 fi
2363
2364 _ACEOF
2365
2366
2367
2368
2369
2370 cat >>$CONFIG_STATUS <<\_ACEOF
2371 for ac_config_target in $ac_config_targets
2372 do
2373   case "$ac_config_target" in
2374   # Handling of arguments.
2375   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2376   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2377 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2378    { (exit 1); exit 1; }; };;
2379   esac
2380 done
2381
2382 # If the user did not use the arguments to specify the items to instantiate,
2383 # then the envvar interface is used.  Set only those that are not.
2384 # We use the long form for the default assignment because of an extremely
2385 # bizarre bug on SunOS 4.1.3.
2386 if $ac_need_defaults; then
2387   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2388 fi
2389
2390 # Have a temporary directory for convenience.  Make it in the build tree
2391 # simply because there is no reason to put it here, and in addition,
2392 # creating and moving files from /tmp can sometimes cause problems.
2393 # Create a temporary directory, and hook for its removal unless debugging.
2394 $debug ||
2395 {
2396   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2397   trap '{ (exit 1); exit 1; }' 1 2 13 15
2398 }
2399
2400 # Create a (secure) tmp directory for tmp files.
2401
2402 {
2403   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
2404   test -n "$tmp" && test -d "$tmp"
2405 }  ||
2406 {
2407   tmp=./confstat$$-$RANDOM
2408   (umask 077 && mkdir $tmp)
2409 } ||
2410 {
2411    echo "$me: cannot create a temporary directory in ." >&2
2412    { (exit 1); exit 1; }
2413 }
2414
2415 _ACEOF
2416
2417 cat >>$CONFIG_STATUS <<_ACEOF
2418
2419 #
2420 # CONFIG_FILES section.
2421 #
2422
2423 # No need to generate the scripts if there are no CONFIG_FILES.
2424 # This happens for instance when ./config.status config.h
2425 if test -n "\$CONFIG_FILES"; then
2426   # Protect against being on the right side of a sed subst in config.status.
2427   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
2428    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
2429 s,@SHELL@,$SHELL,;t t
2430 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
2431 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
2432 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
2433 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
2434 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
2435 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
2436 s,@exec_prefix@,$exec_prefix,;t t
2437 s,@prefix@,$prefix,;t t
2438 s,@program_transform_name@,$program_transform_name,;t t
2439 s,@bindir@,$bindir,;t t
2440 s,@sbindir@,$sbindir,;t t
2441 s,@libexecdir@,$libexecdir,;t t
2442 s,@datadir@,$datadir,;t t
2443 s,@sysconfdir@,$sysconfdir,;t t
2444 s,@sharedstatedir@,$sharedstatedir,;t t
2445 s,@localstatedir@,$localstatedir,;t t
2446 s,@libdir@,$libdir,;t t
2447 s,@includedir@,$includedir,;t t
2448 s,@oldincludedir@,$oldincludedir,;t t
2449 s,@infodir@,$infodir,;t t
2450 s,@mandir@,$mandir,;t t
2451 s,@build_alias@,$build_alias,;t t
2452 s,@host_alias@,$host_alias,;t t
2453 s,@target_alias@,$target_alias,;t t
2454 s,@DEFS@,$DEFS,;t t
2455 s,@ECHO_C@,$ECHO_C,;t t
2456 s,@ECHO_N@,$ECHO_N,;t t
2457 s,@ECHO_T@,$ECHO_T,;t t
2458 s,@LIBS@,$LIBS,;t t
2459 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
2460 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
2461 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
2462 s,@CYGPATH_W@,$CYGPATH_W,;t t
2463 s,@PACKAGE@,$PACKAGE,;t t
2464 s,@VERSION@,$VERSION,;t t
2465 s,@ACLOCAL@,$ACLOCAL,;t t
2466 s,@AUTOCONF@,$AUTOCONF,;t t
2467 s,@AUTOMAKE@,$AUTOMAKE,;t t
2468 s,@AUTOHEADER@,$AUTOHEADER,;t t
2469 s,@MAKEINFO@,$MAKEINFO,;t t
2470 s,@AMTAR@,$AMTAR,;t t
2471 s,@install_sh@,$install_sh,;t t
2472 s,@STRIP@,$STRIP,;t t
2473 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
2474 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
2475 s,@AWK@,$AWK,;t t
2476 s,@SET_MAKE@,$SET_MAKE,;t t
2477 s,@am__leading_dot@,$am__leading_dot,;t t
2478 s,@EMACS@,$EMACS,;t t
2479 s,@lispdir@,$lispdir,;t t
2480 s,@EMACS_VERSION@,$EMACS_VERSION,;t t
2481 s,@LIBOBJS@,$LIBOBJS,;t t
2482 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
2483 CEOF
2484
2485 _ACEOF
2486
2487   cat >>$CONFIG_STATUS <<\_ACEOF
2488   # Split the substitutions into bite-sized pieces for seds with
2489   # small command number limits, like on Digital OSF/1 and HP-UX.
2490   ac_max_sed_lines=48
2491   ac_sed_frag=1 # Number of current file.
2492   ac_beg=1 # First line for current file.
2493   ac_end=$ac_max_sed_lines # Line after last line for current file.
2494   ac_more_lines=:
2495   ac_sed_cmds=
2496   while $ac_more_lines; do
2497     if test $ac_beg -gt 1; then
2498       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2499     else
2500       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
2501     fi
2502     if test ! -s $tmp/subs.frag; then
2503       ac_more_lines=false
2504     else
2505       # The purpose of the label and of the branching condition is to
2506       # speed up the sed processing (if there are no `@' at all, there
2507       # is no need to browse any of the substitutions).
2508       # These are the two extra sed commands mentioned above.
2509       (echo ':t
2510   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
2511       if test -z "$ac_sed_cmds"; then
2512         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
2513       else
2514         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
2515       fi
2516       ac_sed_frag=`expr $ac_sed_frag + 1`
2517       ac_beg=$ac_end
2518       ac_end=`expr $ac_end + $ac_max_sed_lines`
2519     fi
2520   done
2521   if test -z "$ac_sed_cmds"; then
2522     ac_sed_cmds=cat
2523   fi
2524 fi # test -n "$CONFIG_FILES"
2525
2526 _ACEOF
2527 cat >>$CONFIG_STATUS <<\_ACEOF
2528 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
2529   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2530   case $ac_file in
2531   - | *:- | *:-:* ) # input from stdin
2532         cat >$tmp/stdin
2533         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2534         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2535   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
2536         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
2537   * )   ac_file_in=$ac_file.in ;;
2538   esac
2539
2540   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
2541   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
2542 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2543          X"$ac_file" : 'X\(//\)[^/]' \| \
2544          X"$ac_file" : 'X\(//\)$' \| \
2545          X"$ac_file" : 'X\(/\)' \| \
2546          .     : '\(.\)' 2>/dev/null ||
2547 echo X"$ac_file" |
2548     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2549           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2550           /^X\(\/\/\)$/{ s//\1/; q; }
2551           /^X\(\/\).*/{ s//\1/; q; }
2552           s/.*/./; q'`
2553   { if $as_mkdir_p; then
2554     mkdir -p "$ac_dir"
2555   else
2556     as_dir="$ac_dir"
2557     as_dirs=
2558     while test ! -d "$as_dir"; do
2559       as_dirs="$as_dir $as_dirs"
2560       as_dir=`(dirname "$as_dir") 2>/dev/null ||
2561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2562          X"$as_dir" : 'X\(//\)[^/]' \| \
2563          X"$as_dir" : 'X\(//\)$' \| \
2564          X"$as_dir" : 'X\(/\)' \| \
2565          .     : '\(.\)' 2>/dev/null ||
2566 echo X"$as_dir" |
2567     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
2568           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
2569           /^X\(\/\/\)$/{ s//\1/; q; }
2570           /^X\(\/\).*/{ s//\1/; q; }
2571           s/.*/./; q'`
2572     done
2573     test ! -n "$as_dirs" || mkdir $as_dirs
2574   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
2575 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
2576    { (exit 1); exit 1; }; }; }
2577
2578   ac_builddir=.
2579
2580 if test "$ac_dir" != .; then
2581   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
2582   # A "../" for each directory in $ac_dir_suffix.
2583   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
2584 else
2585   ac_dir_suffix= ac_top_builddir=
2586 fi
2587
2588 case $srcdir in
2589   .)  # No --srcdir option.  We are building in place.
2590     ac_srcdir=.
2591     if test -z "$ac_top_builddir"; then
2592        ac_top_srcdir=.
2593     else
2594        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
2595     fi ;;
2596   [\\/]* | ?:[\\/]* )  # Absolute path.
2597     ac_srcdir=$srcdir$ac_dir_suffix;
2598     ac_top_srcdir=$srcdir ;;
2599   *) # Relative path.
2600     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
2601     ac_top_srcdir=$ac_top_builddir$srcdir ;;
2602 esac
2603
2604 # Do not use `cd foo && pwd` to compute absolute paths, because
2605 # the directories may not exist.
2606 case `pwd` in
2607 .) ac_abs_builddir="$ac_dir";;
2608 *)
2609   case "$ac_dir" in
2610   .) ac_abs_builddir=`pwd`;;
2611   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
2612   *) ac_abs_builddir=`pwd`/"$ac_dir";;
2613   esac;;
2614 esac
2615 case $ac_abs_builddir in
2616 .) ac_abs_top_builddir=${ac_top_builddir}.;;
2617 *)
2618   case ${ac_top_builddir}. in
2619   .) ac_abs_top_builddir=$ac_abs_builddir;;
2620   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
2621   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
2622   esac;;
2623 esac
2624 case $ac_abs_builddir in
2625 .) ac_abs_srcdir=$ac_srcdir;;
2626 *)
2627   case $ac_srcdir in
2628   .) ac_abs_srcdir=$ac_abs_builddir;;
2629   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
2630   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
2631   esac;;
2632 esac
2633 case $ac_abs_builddir in
2634 .) ac_abs_top_srcdir=$ac_top_srcdir;;
2635 *)
2636   case $ac_top_srcdir in
2637   .) ac_abs_top_srcdir=$ac_abs_builddir;;
2638   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
2639   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
2640   esac;;
2641 esac
2642
2643
2644   case $INSTALL in
2645   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2646   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
2647   esac
2648
2649   # Let's still pretend it is `configure' which instantiates (i.e., don't
2650   # use $as_me), people would be surprised to read:
2651   #    /* config.h.  Generated by config.status.  */
2652   if test x"$ac_file" = x-; then
2653     configure_input=
2654   else
2655     configure_input="$ac_file.  "
2656   fi
2657   configure_input=$configure_input"Generated from `echo $ac_file_in |
2658                                      sed 's,.*/,,'` by configure."
2659
2660   # First look for the input files in the build tree, otherwise in the
2661   # src tree.
2662   ac_file_inputs=`IFS=:
2663     for f in $ac_file_in; do
2664       case $f in
2665       -) echo $tmp/stdin ;;
2666       [\\/$]*)
2667          # Absolute (can't be DOS-style, as IFS=:)
2668          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2669 echo "$as_me: error: cannot find input file: $f" >&2;}
2670    { (exit 1); exit 1; }; }
2671          echo "$f";;
2672       *) # Relative
2673          if test -f "$f"; then
2674            # Build tree
2675            echo "$f"
2676          elif test -f "$srcdir/$f"; then
2677            # Source tree
2678            echo "$srcdir/$f"
2679          else
2680            # /dev/null tree
2681            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
2682 echo "$as_me: error: cannot find input file: $f" >&2;}
2683    { (exit 1); exit 1; }; }
2684          fi;;
2685       esac
2686     done` || { (exit 1); exit 1; }
2687
2688   if test x"$ac_file" != x-; then
2689     { echo "$as_me:$LINENO: creating $ac_file" >&5
2690 echo "$as_me: creating $ac_file" >&6;}
2691     rm -f "$ac_file"
2692   fi
2693 _ACEOF
2694 cat >>$CONFIG_STATUS <<_ACEOF
2695   sed "$ac_vpsub
2696 $extrasub
2697 _ACEOF
2698 cat >>$CONFIG_STATUS <<\_ACEOF
2699 :t
2700 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2701 s,@configure_input@,$configure_input,;t t
2702 s,@srcdir@,$ac_srcdir,;t t
2703 s,@abs_srcdir@,$ac_abs_srcdir,;t t
2704 s,@top_srcdir@,$ac_top_srcdir,;t t
2705 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
2706 s,@builddir@,$ac_builddir,;t t
2707 s,@abs_builddir@,$ac_abs_builddir,;t t
2708 s,@top_builddir@,$ac_top_builddir,;t t
2709 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
2710 s,@INSTALL@,$ac_INSTALL,;t t
2711 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
2712   rm -f $tmp/stdin
2713   if test x"$ac_file" != x-; then
2714     mv $tmp/out $ac_file
2715   else
2716     cat $tmp/out
2717     rm -f $tmp/out
2718   fi
2719
2720 done
2721 _ACEOF
2722
2723 cat >>$CONFIG_STATUS <<\_ACEOF
2724
2725 { (exit 0); exit 0; }
2726 _ACEOF
2727 chmod +x $CONFIG_STATUS
2728 ac_clean_files=$ac_clean_files_save
2729
2730
2731 # configure is writing to config.log, and then calls config.status.
2732 # config.status does its own redirection, appending to config.log.
2733 # Unfortunately, on DOS this fails, as config.log is still kept open
2734 # by configure, so config.status won't be able to write to it; its
2735 # output is simply discarded.  So we exec the FD to /dev/null,
2736 # effectively closing config.log, so it can be properly (re)opened and
2737 # appended to by config.status.  When coming back to configure, we
2738 # need to make the FD available again.
2739 if test "$no_create" != yes; then
2740   ac_cs_success=:
2741   ac_config_status_args=
2742   test "$silent" = yes &&
2743     ac_config_status_args="$ac_config_status_args --quiet"
2744   exec 5>/dev/null
2745   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2746   exec 5>>config.log
2747   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2748   # would make configure fail if this is the last instruction.
2749   $ac_cs_success || { (exit 1); exit 1; }
2750 fi
2751