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