more fiddling around with ctdlsh
[citadel.git] / ctdlsh / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for ctdlsh 1.0.
4 #
5 # Report bugs to <bug-automake@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 case $0 in #((
95   *[\\/]* ) as_myself=$0 ;;
96   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99   IFS=$as_save_IFS
100   test -z "$as_dir" && as_dir=.
101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102   done
103 IFS=$as_save_IFS
104
105      ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110   as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114   exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there.  '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 if test "x$CONFIG_SHELL" = x; then
139   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140   emulate sh
141   NULLCMD=:
142   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143   # is contrary to our usage.  Disable this feature.
144   alias -g '\${1+\"\$@\"}'='\"\$@\"'
145   setopt NO_GLOB_SUBST
146 else
147   case \`(set -o) 2>/dev/null\` in #(
148   *posix*) :
149     set -o posix ;; #(
150   *) :
151      ;;
152 esac
153 fi
154 "
155   as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
160
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168 else
169   exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
176   if (eval "$as_required") 2>/dev/null; then :
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188   IFS=$as_save_IFS
189   test -z "$as_dir" && as_dir=.
190   as_found=:
191   case $as_dir in #(
192          /*)
193            for as_base in sh bash ksh sh5; do
194              # Try only shells that exist, to save several forks.
195              as_shell=$as_dir/$as_base
196              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198   CONFIG_SHELL=$as_shell as_have_required=yes
199                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   break 2
201 fi
202 fi
203            done;;
204        esac
205   as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209   CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214       if test "x$CONFIG_SHELL" != x; then :
215   # We cannot yet assume a decent shell, so we have to provide a
216         # neutralization value for shells without unset; and this also
217         # works around shells that cannot unset nonexistent variables.
218         BASH_ENV=/dev/null
219         ENV=/dev/null
220         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221         export CONFIG_SHELL
222         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
223 fi
224
225     if test x$as_have_required = xno; then :
226   $as_echo "$0: This script requires a shell more modern than all"
227   $as_echo "$0: the shells that I found on your system."
228   if test x${ZSH_VERSION+set} = xset ; then
229     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231   else
232     $as_echo "$0: Please tell bug-autoconf@gnu.org and
233 $0: bug-automake@gnu.org about your system, including any
234 $0: error possibly output before this message. Then install
235 $0: a modern shell, or manually run the script under such a
236 $0: shell if you do have one."
237   fi
238   exit 1
239 fi
240 fi
241 fi
242 SHELL=${CONFIG_SHELL-/bin/sh}
243 export SHELL
244 # Unset more variables known to interfere with behavior of common tools.
245 CLICOLOR_FORCE= GREP_OPTIONS=
246 unset CLICOLOR_FORCE GREP_OPTIONS
247
248 ## --------------------- ##
249 ## M4sh Shell Functions. ##
250 ## --------------------- ##
251 # as_fn_unset VAR
252 # ---------------
253 # Portably unset VAR.
254 as_fn_unset ()
255 {
256   { eval $1=; unset $1;}
257 }
258 as_unset=as_fn_unset
259
260 # as_fn_set_status STATUS
261 # -----------------------
262 # Set $? to STATUS, without forking.
263 as_fn_set_status ()
264 {
265   return $1
266 } # as_fn_set_status
267
268 # as_fn_exit STATUS
269 # -----------------
270 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
271 as_fn_exit ()
272 {
273   set +e
274   as_fn_set_status $1
275   exit $1
276 } # as_fn_exit
277
278 # as_fn_mkdir_p
279 # -------------
280 # Create "$as_dir" as a directory, including parents if necessary.
281 as_fn_mkdir_p ()
282 {
283
284   case $as_dir in #(
285   -*) as_dir=./$as_dir;;
286   esac
287   test -d "$as_dir" || eval $as_mkdir_p || {
288     as_dirs=
289     while :; do
290       case $as_dir in #(
291       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292       *) as_qdir=$as_dir;;
293       esac
294       as_dirs="'$as_qdir' $as_dirs"
295       as_dir=`$as_dirname -- "$as_dir" ||
296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297          X"$as_dir" : 'X\(//\)[^/]' \| \
298          X"$as_dir" : 'X\(//\)$' \| \
299          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300 $as_echo X"$as_dir" |
301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)[^/].*/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)$/{
310             s//\1/
311             q
312           }
313           /^X\(\/\).*/{
314             s//\1/
315             q
316           }
317           s/.*/./; q'`
318       test -d "$as_dir" && break
319     done
320     test -z "$as_dirs" || eval "mkdir $as_dirs"
321   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
322
323
324 } # as_fn_mkdir_p
325 # as_fn_append VAR VALUE
326 # ----------------------
327 # Append the text in VALUE to the end of the definition contained in VAR. Take
328 # advantage of any shell optimizations that allow amortized linear growth over
329 # repeated appends, instead of the typical quadratic growth present in naive
330 # implementations.
331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332   eval 'as_fn_append ()
333   {
334     eval $1+=\$2
335   }'
336 else
337   as_fn_append ()
338   {
339     eval $1=\$$1\$2
340   }
341 fi # as_fn_append
342
343 # as_fn_arith ARG...
344 # ------------------
345 # Perform arithmetic evaluation on the ARGs, and store the result in the
346 # global $as_val. Take advantage of shells that can avoid forks. The arguments
347 # must be portable across $(()) and expr.
348 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
349   eval 'as_fn_arith ()
350   {
351     as_val=$(( $* ))
352   }'
353 else
354   as_fn_arith ()
355   {
356     as_val=`expr "$@" || test $? -eq 1`
357   }
358 fi # as_fn_arith
359
360
361 # as_fn_error STATUS ERROR [LINENO LOG_FD]
362 # ----------------------------------------
363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365 # script with STATUS, using 1 if that was 0.
366 as_fn_error ()
367 {
368   as_status=$1; test $as_status -eq 0 && as_status=1
369   if test "$4"; then
370     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
372   fi
373   $as_echo "$as_me: error: $2" >&2
374   as_fn_exit $as_status
375 } # as_fn_error
376
377 if expr a : '\(a\)' >/dev/null 2>&1 &&
378    test "X`expr 00001 : '.*\(...\)'`" = X001; then
379   as_expr=expr
380 else
381   as_expr=false
382 fi
383
384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
385   as_basename=basename
386 else
387   as_basename=false
388 fi
389
390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
391   as_dirname=dirname
392 else
393   as_dirname=false
394 fi
395
396 as_me=`$as_basename -- "$0" ||
397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398          X"$0" : 'X\(//\)$' \| \
399          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 $as_echo X/"$0" |
401     sed '/^.*\/\([^/][^/]*\)\/*$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\/\)$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\).*/{
410             s//\1/
411             q
412           }
413           s/.*/./; q'`
414
415 # Avoid depending upon Character Ranges.
416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419 as_cr_digits='0123456789'
420 as_cr_alnum=$as_cr_Letters$as_cr_digits
421
422
423   as_lineno_1=$LINENO as_lineno_1a=$LINENO
424   as_lineno_2=$LINENO as_lineno_2a=$LINENO
425   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
428   sed -n '
429     p
430     /[$]LINENO/=
431   ' <$as_myself |
432     sed '
433       s/[$]LINENO.*/&-/
434       t lineno
435       b
436       :lineno
437       N
438       :loop
439       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
440       t loop
441       s/-\n.*//
442     ' >$as_me.lineno &&
443   chmod +x "$as_me.lineno" ||
444     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445
446   # Don't try to exec as it changes $[0], causing all sort of problems
447   # (the dirname of $[0] is not the place where we might find the
448   # original and so on.  Autoconf is especially sensitive to this).
449   . "./$as_me.lineno"
450   # Exit status is that of the last command.
451   exit
452 }
453
454 ECHO_C= ECHO_N= ECHO_T=
455 case `echo -n x` in #(((((
456 -n*)
457   case `echo 'xy\c'` in
458   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
459   xy)  ECHO_C='\c';;
460   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
461        ECHO_T=' ';;
462   esac;;
463 *)
464   ECHO_N='-n';;
465 esac
466
467 rm -f conf$$ conf$$.exe conf$$.file
468 if test -d conf$$.dir; then
469   rm -f conf$$.dir/conf$$.file
470 else
471   rm -f conf$$.dir
472   mkdir conf$$.dir 2>/dev/null
473 fi
474 if (echo >conf$$.file) 2>/dev/null; then
475   if ln -s conf$$.file conf$$ 2>/dev/null; then
476     as_ln_s='ln -s'
477     # ... but there are two gotchas:
478     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480     # In both cases, we have to default to `cp -p'.
481     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482       as_ln_s='cp -p'
483   elif ln conf$$.file conf$$ 2>/dev/null; then
484     as_ln_s=ln
485   else
486     as_ln_s='cp -p'
487   fi
488 else
489   as_ln_s='cp -p'
490 fi
491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492 rmdir conf$$.dir 2>/dev/null
493
494 if mkdir -p . 2>/dev/null; then
495   as_mkdir_p='mkdir -p "$as_dir"'
496 else
497   test -d ./-p && rmdir ./-p
498   as_mkdir_p=false
499 fi
500
501 if test -x / >/dev/null 2>&1; then
502   as_test_x='test -x'
503 else
504   if ls -dL / >/dev/null 2>&1; then
505     as_ls_L_option=L
506   else
507     as_ls_L_option=
508   fi
509   as_test_x='
510     eval sh -c '\''
511       if test -d "$1"; then
512         test -d "$1/.";
513       else
514         case $1 in #(
515         -*)set "./$1";;
516         esac;
517         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518         ???[sx]*):;;*)false;;esac;fi
519     '\'' sh
520   '
521 fi
522 as_executable_p=$as_test_x
523
524 # Sed expression to map a string onto a valid CPP name.
525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526
527 # Sed expression to map a string onto a valid variable name.
528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529
530
531 test -n "$DJDIR" || exec 7<&0 </dev/null
532 exec 6>&1
533
534 # Name of the host.
535 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
536 # so uname gets run too.
537 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538
539 #
540 # Initializations.
541 #
542 ac_default_prefix=/usr/local
543 ac_clean_files=
544 ac_config_libobj_dir=.
545 LIBOBJS=
546 cross_compiling=no
547 subdirs=
548 MFLAGS=
549 MAKEFLAGS=
550
551 # Identity of this package.
552 PACKAGE_NAME='ctdlsh'
553 PACKAGE_TARNAME='ctdlsh'
554 PACKAGE_VERSION='1.0'
555 PACKAGE_STRING='ctdlsh 1.0'
556 PACKAGE_BUGREPORT='bug-automake@gnu.org'
557 PACKAGE_URL=''
558
559 ac_subst_vars='am__EXEEXT_FALSE
560 am__EXEEXT_TRUE
561 LTLIBOBJS
562 LIBOBJS
563 am__fastdepCC_FALSE
564 am__fastdepCC_TRUE
565 CCDEPMODE
566 AMDEPBACKSLASH
567 AMDEP_FALSE
568 AMDEP_TRUE
569 am__quote
570 am__include
571 DEPDIR
572 OBJEXT
573 EXEEXT
574 ac_ct_CC
575 CPPFLAGS
576 LDFLAGS
577 CFLAGS
578 CC
579 am__untar
580 am__tar
581 AMTAR
582 am__leading_dot
583 SET_MAKE
584 AWK
585 mkdir_p
586 MKDIR_P
587 INSTALL_STRIP_PROGRAM
588 STRIP
589 install_sh
590 MAKEINFO
591 AUTOHEADER
592 AUTOMAKE
593 AUTOCONF
594 ACLOCAL
595 VERSION
596 PACKAGE
597 CYGPATH_W
598 am__isrc
599 INSTALL_DATA
600 INSTALL_SCRIPT
601 INSTALL_PROGRAM
602 target_alias
603 host_alias
604 build_alias
605 LIBS
606 ECHO_T
607 ECHO_N
608 ECHO_C
609 DEFS
610 mandir
611 localedir
612 libdir
613 psdir
614 pdfdir
615 dvidir
616 htmldir
617 infodir
618 docdir
619 oldincludedir
620 includedir
621 localstatedir
622 sharedstatedir
623 sysconfdir
624 datadir
625 datarootdir
626 libexecdir
627 sbindir
628 bindir
629 program_transform_name
630 prefix
631 exec_prefix
632 PACKAGE_URL
633 PACKAGE_BUGREPORT
634 PACKAGE_STRING
635 PACKAGE_VERSION
636 PACKAGE_TARNAME
637 PACKAGE_NAME
638 PATH_SEPARATOR
639 SHELL'
640 ac_subst_files=''
641 ac_user_opts='
642 enable_option_checking
643 enable_dependency_tracking
644 with_readline
645 '
646       ac_precious_vars='build_alias
647 host_alias
648 target_alias
649 CC
650 CFLAGS
651 LDFLAGS
652 LIBS
653 CPPFLAGS'
654
655
656 # Initialize some variables set by options.
657 ac_init_help=
658 ac_init_version=false
659 ac_unrecognized_opts=
660 ac_unrecognized_sep=
661 # The variables have the same names as the options, with
662 # dashes changed to underlines.
663 cache_file=/dev/null
664 exec_prefix=NONE
665 no_create=
666 no_recursion=
667 prefix=NONE
668 program_prefix=NONE
669 program_suffix=NONE
670 program_transform_name=s,x,x,
671 silent=
672 site=
673 srcdir=
674 verbose=
675 x_includes=NONE
676 x_libraries=NONE
677
678 # Installation directory options.
679 # These are left unexpanded so users can "make install exec_prefix=/foo"
680 # and all the variables that are supposed to be based on exec_prefix
681 # by default will actually change.
682 # Use braces instead of parens because sh, perl, etc. also accept them.
683 # (The list follows the same order as the GNU Coding Standards.)
684 bindir='${exec_prefix}/bin'
685 sbindir='${exec_prefix}/sbin'
686 libexecdir='${exec_prefix}/libexec'
687 datarootdir='${prefix}/share'
688 datadir='${datarootdir}'
689 sysconfdir='${prefix}/etc'
690 sharedstatedir='${prefix}/com'
691 localstatedir='${prefix}/var'
692 includedir='${prefix}/include'
693 oldincludedir='/usr/include'
694 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
695 infodir='${datarootdir}/info'
696 htmldir='${docdir}'
697 dvidir='${docdir}'
698 pdfdir='${docdir}'
699 psdir='${docdir}'
700 libdir='${exec_prefix}/lib'
701 localedir='${datarootdir}/locale'
702 mandir='${datarootdir}/man'
703
704 ac_prev=
705 ac_dashdash=
706 for ac_option
707 do
708   # If the previous option needs an argument, assign it.
709   if test -n "$ac_prev"; then
710     eval $ac_prev=\$ac_option
711     ac_prev=
712     continue
713   fi
714
715   case $ac_option in
716   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
717   *=)   ac_optarg= ;;
718   *)    ac_optarg=yes ;;
719   esac
720
721   # Accept the important Cygnus configure options, so we can diagnose typos.
722
723   case $ac_dashdash$ac_option in
724   --)
725     ac_dashdash=yes ;;
726
727   -bindir | --bindir | --bindi | --bind | --bin | --bi)
728     ac_prev=bindir ;;
729   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
730     bindir=$ac_optarg ;;
731
732   -build | --build | --buil | --bui | --bu)
733     ac_prev=build_alias ;;
734   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
735     build_alias=$ac_optarg ;;
736
737   -cache-file | --cache-file | --cache-fil | --cache-fi \
738   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
739     ac_prev=cache_file ;;
740   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
741   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
742     cache_file=$ac_optarg ;;
743
744   --config-cache | -C)
745     cache_file=config.cache ;;
746
747   -datadir | --datadir | --datadi | --datad)
748     ac_prev=datadir ;;
749   -datadir=* | --datadir=* | --datadi=* | --datad=*)
750     datadir=$ac_optarg ;;
751
752   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
753   | --dataroo | --dataro | --datar)
754     ac_prev=datarootdir ;;
755   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
756   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
757     datarootdir=$ac_optarg ;;
758
759   -disable-* | --disable-*)
760     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
761     # Reject names that are not valid shell variable names.
762     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
763       as_fn_error $? "invalid feature name: $ac_useropt"
764     ac_useropt_orig=$ac_useropt
765     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
766     case $ac_user_opts in
767       *"
768 "enable_$ac_useropt"
769 "*) ;;
770       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
771          ac_unrecognized_sep=', ';;
772     esac
773     eval enable_$ac_useropt=no ;;
774
775   -docdir | --docdir | --docdi | --doc | --do)
776     ac_prev=docdir ;;
777   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
778     docdir=$ac_optarg ;;
779
780   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
781     ac_prev=dvidir ;;
782   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
783     dvidir=$ac_optarg ;;
784
785   -enable-* | --enable-*)
786     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
789       as_fn_error $? "invalid feature name: $ac_useropt"
790     ac_useropt_orig=$ac_useropt
791     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
792     case $ac_user_opts in
793       *"
794 "enable_$ac_useropt"
795 "*) ;;
796       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
797          ac_unrecognized_sep=', ';;
798     esac
799     eval enable_$ac_useropt=\$ac_optarg ;;
800
801   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
802   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
803   | --exec | --exe | --ex)
804     ac_prev=exec_prefix ;;
805   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
806   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
807   | --exec=* | --exe=* | --ex=*)
808     exec_prefix=$ac_optarg ;;
809
810   -gas | --gas | --ga | --g)
811     # Obsolete; use --with-gas.
812     with_gas=yes ;;
813
814   -help | --help | --hel | --he | -h)
815     ac_init_help=long ;;
816   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
817     ac_init_help=recursive ;;
818   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
819     ac_init_help=short ;;
820
821   -host | --host | --hos | --ho)
822     ac_prev=host_alias ;;
823   -host=* | --host=* | --hos=* | --ho=*)
824     host_alias=$ac_optarg ;;
825
826   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
827     ac_prev=htmldir ;;
828   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
829   | --ht=*)
830     htmldir=$ac_optarg ;;
831
832   -includedir | --includedir | --includedi | --included | --include \
833   | --includ | --inclu | --incl | --inc)
834     ac_prev=includedir ;;
835   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
836   | --includ=* | --inclu=* | --incl=* | --inc=*)
837     includedir=$ac_optarg ;;
838
839   -infodir | --infodir | --infodi | --infod | --info | --inf)
840     ac_prev=infodir ;;
841   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
842     infodir=$ac_optarg ;;
843
844   -libdir | --libdir | --libdi | --libd)
845     ac_prev=libdir ;;
846   -libdir=* | --libdir=* | --libdi=* | --libd=*)
847     libdir=$ac_optarg ;;
848
849   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
850   | --libexe | --libex | --libe)
851     ac_prev=libexecdir ;;
852   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
853   | --libexe=* | --libex=* | --libe=*)
854     libexecdir=$ac_optarg ;;
855
856   -localedir | --localedir | --localedi | --localed | --locale)
857     ac_prev=localedir ;;
858   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
859     localedir=$ac_optarg ;;
860
861   -localstatedir | --localstatedir | --localstatedi | --localstated \
862   | --localstate | --localstat | --localsta | --localst | --locals)
863     ac_prev=localstatedir ;;
864   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
865   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
866     localstatedir=$ac_optarg ;;
867
868   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
869     ac_prev=mandir ;;
870   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
871     mandir=$ac_optarg ;;
872
873   -nfp | --nfp | --nf)
874     # Obsolete; use --without-fp.
875     with_fp=no ;;
876
877   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
878   | --no-cr | --no-c | -n)
879     no_create=yes ;;
880
881   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
882   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
883     no_recursion=yes ;;
884
885   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
886   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
887   | --oldin | --oldi | --old | --ol | --o)
888     ac_prev=oldincludedir ;;
889   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
890   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
891   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
892     oldincludedir=$ac_optarg ;;
893
894   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
895     ac_prev=prefix ;;
896   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
897     prefix=$ac_optarg ;;
898
899   -program-prefix | --program-prefix | --program-prefi | --program-pref \
900   | --program-pre | --program-pr | --program-p)
901     ac_prev=program_prefix ;;
902   -program-prefix=* | --program-prefix=* | --program-prefi=* \
903   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
904     program_prefix=$ac_optarg ;;
905
906   -program-suffix | --program-suffix | --program-suffi | --program-suff \
907   | --program-suf | --program-su | --program-s)
908     ac_prev=program_suffix ;;
909   -program-suffix=* | --program-suffix=* | --program-suffi=* \
910   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
911     program_suffix=$ac_optarg ;;
912
913   -program-transform-name | --program-transform-name \
914   | --program-transform-nam | --program-transform-na \
915   | --program-transform-n | --program-transform- \
916   | --program-transform | --program-transfor \
917   | --program-transfo | --program-transf \
918   | --program-trans | --program-tran \
919   | --progr-tra | --program-tr | --program-t)
920     ac_prev=program_transform_name ;;
921   -program-transform-name=* | --program-transform-name=* \
922   | --program-transform-nam=* | --program-transform-na=* \
923   | --program-transform-n=* | --program-transform-=* \
924   | --program-transform=* | --program-transfor=* \
925   | --program-transfo=* | --program-transf=* \
926   | --program-trans=* | --program-tran=* \
927   | --progr-tra=* | --program-tr=* | --program-t=*)
928     program_transform_name=$ac_optarg ;;
929
930   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
931     ac_prev=pdfdir ;;
932   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
933     pdfdir=$ac_optarg ;;
934
935   -psdir | --psdir | --psdi | --psd | --ps)
936     ac_prev=psdir ;;
937   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
938     psdir=$ac_optarg ;;
939
940   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
941   | -silent | --silent | --silen | --sile | --sil)
942     silent=yes ;;
943
944   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
945     ac_prev=sbindir ;;
946   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
947   | --sbi=* | --sb=*)
948     sbindir=$ac_optarg ;;
949
950   -sharedstatedir | --sharedstatedir | --sharedstatedi \
951   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
952   | --sharedst | --shareds | --shared | --share | --shar \
953   | --sha | --sh)
954     ac_prev=sharedstatedir ;;
955   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
956   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
957   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
958   | --sha=* | --sh=*)
959     sharedstatedir=$ac_optarg ;;
960
961   -site | --site | --sit)
962     ac_prev=site ;;
963   -site=* | --site=* | --sit=*)
964     site=$ac_optarg ;;
965
966   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
967     ac_prev=srcdir ;;
968   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
969     srcdir=$ac_optarg ;;
970
971   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
972   | --syscon | --sysco | --sysc | --sys | --sy)
973     ac_prev=sysconfdir ;;
974   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
975   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
976     sysconfdir=$ac_optarg ;;
977
978   -target | --target | --targe | --targ | --tar | --ta | --t)
979     ac_prev=target_alias ;;
980   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
981     target_alias=$ac_optarg ;;
982
983   -v | -verbose | --verbose | --verbos | --verbo | --verb)
984     verbose=yes ;;
985
986   -version | --version | --versio | --versi | --vers | -V)
987     ac_init_version=: ;;
988
989   -with-* | --with-*)
990     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
991     # Reject names that are not valid shell variable names.
992     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993       as_fn_error $? "invalid package name: $ac_useropt"
994     ac_useropt_orig=$ac_useropt
995     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996     case $ac_user_opts in
997       *"
998 "with_$ac_useropt"
999 "*) ;;
1000       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1001          ac_unrecognized_sep=', ';;
1002     esac
1003     eval with_$ac_useropt=\$ac_optarg ;;
1004
1005   -without-* | --without-*)
1006     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1007     # Reject names that are not valid shell variable names.
1008     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009       as_fn_error $? "invalid package name: $ac_useropt"
1010     ac_useropt_orig=$ac_useropt
1011     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012     case $ac_user_opts in
1013       *"
1014 "with_$ac_useropt"
1015 "*) ;;
1016       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1017          ac_unrecognized_sep=', ';;
1018     esac
1019     eval with_$ac_useropt=no ;;
1020
1021   --x)
1022     # Obsolete; use --with-x.
1023     with_x=yes ;;
1024
1025   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1026   | --x-incl | --x-inc | --x-in | --x-i)
1027     ac_prev=x_includes ;;
1028   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1029   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1030     x_includes=$ac_optarg ;;
1031
1032   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1033   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1034     ac_prev=x_libraries ;;
1035   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1036   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1037     x_libraries=$ac_optarg ;;
1038
1039   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1040 Try \`$0 --help' for more information"
1041     ;;
1042
1043   *=*)
1044     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1045     # Reject names that are not valid shell variable names.
1046     case $ac_envvar in #(
1047       '' | [0-9]* | *[!_$as_cr_alnum]* )
1048       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1049     esac
1050     eval $ac_envvar=\$ac_optarg
1051     export $ac_envvar ;;
1052
1053   *)
1054     # FIXME: should be removed in autoconf 3.0.
1055     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1056     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1057       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1058     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1059     ;;
1060
1061   esac
1062 done
1063
1064 if test -n "$ac_prev"; then
1065   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1066   as_fn_error $? "missing argument to $ac_option"
1067 fi
1068
1069 if test -n "$ac_unrecognized_opts"; then
1070   case $enable_option_checking in
1071     no) ;;
1072     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1073     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1074   esac
1075 fi
1076
1077 # Check all directory arguments for consistency.
1078 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1079                 datadir sysconfdir sharedstatedir localstatedir includedir \
1080                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1081                 libdir localedir mandir
1082 do
1083   eval ac_val=\$$ac_var
1084   # Remove trailing slashes.
1085   case $ac_val in
1086     */ )
1087       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1088       eval $ac_var=\$ac_val;;
1089   esac
1090   # Be sure to have absolute directory names.
1091   case $ac_val in
1092     [\\/$]* | ?:[\\/]* )  continue;;
1093     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1094   esac
1095   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1096 done
1097
1098 # There might be people who depend on the old broken behavior: `$host'
1099 # used to hold the argument of --host etc.
1100 # FIXME: To remove some day.
1101 build=$build_alias
1102 host=$host_alias
1103 target=$target_alias
1104
1105 # FIXME: To remove some day.
1106 if test "x$host_alias" != x; then
1107   if test "x$build_alias" = x; then
1108     cross_compiling=maybe
1109     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1110     If a cross compiler is detected then cross compile mode will be used" >&2
1111   elif test "x$build_alias" != "x$host_alias"; then
1112     cross_compiling=yes
1113   fi
1114 fi
1115
1116 ac_tool_prefix=
1117 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1118
1119 test "$silent" = yes && exec 6>/dev/null
1120
1121
1122 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1123 ac_ls_di=`ls -di .` &&
1124 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1125   as_fn_error $? "working directory cannot be determined"
1126 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1127   as_fn_error $? "pwd does not report name of working directory"
1128
1129
1130 # Find the source files, if location was not specified.
1131 if test -z "$srcdir"; then
1132   ac_srcdir_defaulted=yes
1133   # Try the directory containing this script, then the parent directory.
1134   ac_confdir=`$as_dirname -- "$as_myself" ||
1135 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1136          X"$as_myself" : 'X\(//\)[^/]' \| \
1137          X"$as_myself" : 'X\(//\)$' \| \
1138          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1139 $as_echo X"$as_myself" |
1140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1141             s//\1/
1142             q
1143           }
1144           /^X\(\/\/\)[^/].*/{
1145             s//\1/
1146             q
1147           }
1148           /^X\(\/\/\)$/{
1149             s//\1/
1150             q
1151           }
1152           /^X\(\/\).*/{
1153             s//\1/
1154             q
1155           }
1156           s/.*/./; q'`
1157   srcdir=$ac_confdir
1158   if test ! -r "$srcdir/$ac_unique_file"; then
1159     srcdir=..
1160   fi
1161 else
1162   ac_srcdir_defaulted=no
1163 fi
1164 if test ! -r "$srcdir/$ac_unique_file"; then
1165   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1166   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1167 fi
1168 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1169 ac_abs_confdir=`(
1170         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1171         pwd)`
1172 # When building in place, set srcdir=.
1173 if test "$ac_abs_confdir" = "$ac_pwd"; then
1174   srcdir=.
1175 fi
1176 # Remove unnecessary trailing slashes from srcdir.
1177 # Double slashes in file names in object file debugging info
1178 # mess up M-x gdb in Emacs.
1179 case $srcdir in
1180 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1181 esac
1182 for ac_var in $ac_precious_vars; do
1183   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1184   eval ac_env_${ac_var}_value=\$${ac_var}
1185   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1186   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1187 done
1188
1189 #
1190 # Report the --help message.
1191 #
1192 if test "$ac_init_help" = "long"; then
1193   # Omit some internal or obsolete options to make the list less imposing.
1194   # This message is too long to be a string in the A/UX 3.1 sh.
1195   cat <<_ACEOF
1196 \`configure' configures ctdlsh 1.0 to adapt to many kinds of systems.
1197
1198 Usage: $0 [OPTION]... [VAR=VALUE]...
1199
1200 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1201 VAR=VALUE.  See below for descriptions of some of the useful variables.
1202
1203 Defaults for the options are specified in brackets.
1204
1205 Configuration:
1206   -h, --help              display this help and exit
1207       --help=short        display options specific to this package
1208       --help=recursive    display the short help of all the included packages
1209   -V, --version           display version information and exit
1210   -q, --quiet, --silent   do not print \`checking ...' messages
1211       --cache-file=FILE   cache test results in FILE [disabled]
1212   -C, --config-cache      alias for \`--cache-file=config.cache'
1213   -n, --no-create         do not create output files
1214       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1215
1216 Installation directories:
1217   --prefix=PREFIX         install architecture-independent files in PREFIX
1218                           [$ac_default_prefix]
1219   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1220                           [PREFIX]
1221
1222 By default, \`make install' will install all the files in
1223 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1224 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1225 for instance \`--prefix=\$HOME'.
1226
1227 For better control, use the options below.
1228
1229 Fine tuning of the installation directories:
1230   --bindir=DIR            user executables [EPREFIX/bin]
1231   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1232   --libexecdir=DIR        program executables [EPREFIX/libexec]
1233   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1234   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1235   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1236   --libdir=DIR            object code libraries [EPREFIX/lib]
1237   --includedir=DIR        C header files [PREFIX/include]
1238   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1239   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1240   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1241   --infodir=DIR           info documentation [DATAROOTDIR/info]
1242   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1243   --mandir=DIR            man documentation [DATAROOTDIR/man]
1244   --docdir=DIR            documentation root [DATAROOTDIR/doc/ctdlsh]
1245   --htmldir=DIR           html documentation [DOCDIR]
1246   --dvidir=DIR            dvi documentation [DOCDIR]
1247   --pdfdir=DIR            pdf documentation [DOCDIR]
1248   --psdir=DIR             ps documentation [DOCDIR]
1249 _ACEOF
1250
1251   cat <<\_ACEOF
1252
1253 Program names:
1254   --program-prefix=PREFIX            prepend PREFIX to installed program names
1255   --program-suffix=SUFFIX            append SUFFIX to installed program names
1256   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1257 _ACEOF
1258 fi
1259
1260 if test -n "$ac_init_help"; then
1261   case $ac_init_help in
1262      short | recursive ) echo "Configuration of ctdlsh 1.0:";;
1263    esac
1264   cat <<\_ACEOF
1265
1266 Optional Features:
1267   --disable-option-checking  ignore unrecognized --enable/--with options
1268   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1269   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1270   --disable-dependency-tracking  speeds up one-time build
1271   --enable-dependency-tracking   do not reject slow dependency extractors
1272
1273 Optional Packages:
1274   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1275   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1276   --with-readline=prefix  try this for a non-standard install prefix of the
1277                           readline library
1278
1279 Some influential environment variables:
1280   CC          C compiler command
1281   CFLAGS      C compiler flags
1282   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1283               nonstandard directory <lib dir>
1284   LIBS        libraries to pass to the linker, e.g. -l<library>
1285   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1286               you have headers in a nonstandard directory <include dir>
1287
1288 Use these variables to override the choices made by `configure' or to help
1289 it to find libraries and programs with nonstandard names/locations.
1290
1291 Report bugs to <bug-automake@gnu.org>.
1292 _ACEOF
1293 ac_status=$?
1294 fi
1295
1296 if test "$ac_init_help" = "recursive"; then
1297   # If there are subdirs, report their specific --help.
1298   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1299     test -d "$ac_dir" ||
1300       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1301       continue
1302     ac_builddir=.
1303
1304 case "$ac_dir" in
1305 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1306 *)
1307   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1308   # A ".." for each directory in $ac_dir_suffix.
1309   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1310   case $ac_top_builddir_sub in
1311   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1312   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1313   esac ;;
1314 esac
1315 ac_abs_top_builddir=$ac_pwd
1316 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1317 # for backward compatibility:
1318 ac_top_builddir=$ac_top_build_prefix
1319
1320 case $srcdir in
1321   .)  # We are building in place.
1322     ac_srcdir=.
1323     ac_top_srcdir=$ac_top_builddir_sub
1324     ac_abs_top_srcdir=$ac_pwd ;;
1325   [\\/]* | ?:[\\/]* )  # Absolute name.
1326     ac_srcdir=$srcdir$ac_dir_suffix;
1327     ac_top_srcdir=$srcdir
1328     ac_abs_top_srcdir=$srcdir ;;
1329   *) # Relative name.
1330     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1331     ac_top_srcdir=$ac_top_build_prefix$srcdir
1332     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1333 esac
1334 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1335
1336     cd "$ac_dir" || { ac_status=$?; continue; }
1337     # Check for guested configure.
1338     if test -f "$ac_srcdir/configure.gnu"; then
1339       echo &&
1340       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1341     elif test -f "$ac_srcdir/configure"; then
1342       echo &&
1343       $SHELL "$ac_srcdir/configure" --help=recursive
1344     else
1345       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1346     fi || ac_status=$?
1347     cd "$ac_pwd" || { ac_status=$?; break; }
1348   done
1349 fi
1350
1351 test -n "$ac_init_help" && exit $ac_status
1352 if $ac_init_version; then
1353   cat <<\_ACEOF
1354 ctdlsh configure 1.0
1355 generated by GNU Autoconf 2.67
1356
1357 Copyright (C) 2010 Free Software Foundation, Inc.
1358 This configure script is free software; the Free Software Foundation
1359 gives unlimited permission to copy, distribute and modify it.
1360 _ACEOF
1361   exit
1362 fi
1363
1364 ## ------------------------ ##
1365 ## Autoconf initialization. ##
1366 ## ------------------------ ##
1367
1368 # ac_fn_c_try_compile LINENO
1369 # --------------------------
1370 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1371 ac_fn_c_try_compile ()
1372 {
1373   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1374   rm -f conftest.$ac_objext
1375   if { { ac_try="$ac_compile"
1376 case "(($ac_try" in
1377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1378   *) ac_try_echo=$ac_try;;
1379 esac
1380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1381 $as_echo "$ac_try_echo"; } >&5
1382   (eval "$ac_compile") 2>conftest.err
1383   ac_status=$?
1384   if test -s conftest.err; then
1385     grep -v '^ *+' conftest.err >conftest.er1
1386     cat conftest.er1 >&5
1387     mv -f conftest.er1 conftest.err
1388   fi
1389   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1390   test $ac_status = 0; } && {
1391          test -z "$ac_c_werror_flag" ||
1392          test ! -s conftest.err
1393        } && test -s conftest.$ac_objext; then :
1394   ac_retval=0
1395 else
1396   $as_echo "$as_me: failed program was:" >&5
1397 sed 's/^/| /' conftest.$ac_ext >&5
1398
1399         ac_retval=1
1400 fi
1401   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1402   as_fn_set_status $ac_retval
1403
1404 } # ac_fn_c_try_compile
1405
1406 # ac_fn_c_try_link LINENO
1407 # -----------------------
1408 # Try to link conftest.$ac_ext, and return whether this succeeded.
1409 ac_fn_c_try_link ()
1410 {
1411   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1412   rm -f conftest.$ac_objext conftest$ac_exeext
1413   if { { ac_try="$ac_link"
1414 case "(($ac_try" in
1415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1416   *) ac_try_echo=$ac_try;;
1417 esac
1418 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1419 $as_echo "$ac_try_echo"; } >&5
1420   (eval "$ac_link") 2>conftest.err
1421   ac_status=$?
1422   if test -s conftest.err; then
1423     grep -v '^ *+' conftest.err >conftest.er1
1424     cat conftest.er1 >&5
1425     mv -f conftest.er1 conftest.err
1426   fi
1427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1428   test $ac_status = 0; } && {
1429          test -z "$ac_c_werror_flag" ||
1430          test ! -s conftest.err
1431        } && test -s conftest$ac_exeext && {
1432          test "$cross_compiling" = yes ||
1433          $as_test_x conftest$ac_exeext
1434        }; then :
1435   ac_retval=0
1436 else
1437   $as_echo "$as_me: failed program was:" >&5
1438 sed 's/^/| /' conftest.$ac_ext >&5
1439
1440         ac_retval=1
1441 fi
1442   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1443   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1444   # interfere with the next link command; also delete a directory that is
1445   # left behind by Apple's compiler.  We do this before executing the actions.
1446   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1447   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1448   as_fn_set_status $ac_retval
1449
1450 } # ac_fn_c_try_link
1451 cat >config.log <<_ACEOF
1452 This file contains any messages produced by compilers while
1453 running configure, to aid debugging if configure makes a mistake.
1454
1455 It was created by ctdlsh $as_me 1.0, which was
1456 generated by GNU Autoconf 2.67.  Invocation command line was
1457
1458   $ $0 $@
1459
1460 _ACEOF
1461 exec 5>>config.log
1462 {
1463 cat <<_ASUNAME
1464 ## --------- ##
1465 ## Platform. ##
1466 ## --------- ##
1467
1468 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1469 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1470 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1471 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1472 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1473
1474 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1475 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1476
1477 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1478 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1479 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1480 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1481 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1482 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1483 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1484
1485 _ASUNAME
1486
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1489 do
1490   IFS=$as_save_IFS
1491   test -z "$as_dir" && as_dir=.
1492     $as_echo "PATH: $as_dir"
1493   done
1494 IFS=$as_save_IFS
1495
1496 } >&5
1497
1498 cat >&5 <<_ACEOF
1499
1500
1501 ## ----------- ##
1502 ## Core tests. ##
1503 ## ----------- ##
1504
1505 _ACEOF
1506
1507
1508 # Keep a trace of the command line.
1509 # Strip out --no-create and --no-recursion so they do not pile up.
1510 # Strip out --silent because we don't want to record it for future runs.
1511 # Also quote any args containing shell meta-characters.
1512 # Make two passes to allow for proper duplicate-argument suppression.
1513 ac_configure_args=
1514 ac_configure_args0=
1515 ac_configure_args1=
1516 ac_must_keep_next=false
1517 for ac_pass in 1 2
1518 do
1519   for ac_arg
1520   do
1521     case $ac_arg in
1522     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1523     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1524     | -silent | --silent | --silen | --sile | --sil)
1525       continue ;;
1526     *\'*)
1527       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1528     esac
1529     case $ac_pass in
1530     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1531     2)
1532       as_fn_append ac_configure_args1 " '$ac_arg'"
1533       if test $ac_must_keep_next = true; then
1534         ac_must_keep_next=false # Got value, back to normal.
1535       else
1536         case $ac_arg in
1537           *=* | --config-cache | -C | -disable-* | --disable-* \
1538           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1539           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1540           | -with-* | --with-* | -without-* | --without-* | --x)
1541             case "$ac_configure_args0 " in
1542               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1543             esac
1544             ;;
1545           -* ) ac_must_keep_next=true ;;
1546         esac
1547       fi
1548       as_fn_append ac_configure_args " '$ac_arg'"
1549       ;;
1550     esac
1551   done
1552 done
1553 { ac_configure_args0=; unset ac_configure_args0;}
1554 { ac_configure_args1=; unset ac_configure_args1;}
1555
1556 # When interrupted or exit'd, cleanup temporary files, and complete
1557 # config.log.  We remove comments because anyway the quotes in there
1558 # would cause problems or look ugly.
1559 # WARNING: Use '\'' to represent an apostrophe within the trap.
1560 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1561 trap 'exit_status=$?
1562   # Save into config.log some information that might help in debugging.
1563   {
1564     echo
1565
1566     $as_echo "## ---------------- ##
1567 ## Cache variables. ##
1568 ## ---------------- ##"
1569     echo
1570     # The following way of writing the cache mishandles newlines in values,
1571 (
1572   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1573     eval ac_val=\$$ac_var
1574     case $ac_val in #(
1575     *${as_nl}*)
1576       case $ac_var in #(
1577       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1578 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1579       esac
1580       case $ac_var in #(
1581       _ | IFS | as_nl) ;; #(
1582       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1583       *) { eval $ac_var=; unset $ac_var;} ;;
1584       esac ;;
1585     esac
1586   done
1587   (set) 2>&1 |
1588     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1589     *${as_nl}ac_space=\ *)
1590       sed -n \
1591         "s/'\''/'\''\\\\'\'''\''/g;
1592           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1593       ;; #(
1594     *)
1595       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1596       ;;
1597     esac |
1598     sort
1599 )
1600     echo
1601
1602     $as_echo "## ----------------- ##
1603 ## Output variables. ##
1604 ## ----------------- ##"
1605     echo
1606     for ac_var in $ac_subst_vars
1607     do
1608       eval ac_val=\$$ac_var
1609       case $ac_val in
1610       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1611       esac
1612       $as_echo "$ac_var='\''$ac_val'\''"
1613     done | sort
1614     echo
1615
1616     if test -n "$ac_subst_files"; then
1617       $as_echo "## ------------------- ##
1618 ## File substitutions. ##
1619 ## ------------------- ##"
1620       echo
1621       for ac_var in $ac_subst_files
1622       do
1623         eval ac_val=\$$ac_var
1624         case $ac_val in
1625         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626         esac
1627         $as_echo "$ac_var='\''$ac_val'\''"
1628       done | sort
1629       echo
1630     fi
1631
1632     if test -s confdefs.h; then
1633       $as_echo "## ----------- ##
1634 ## confdefs.h. ##
1635 ## ----------- ##"
1636       echo
1637       cat confdefs.h
1638       echo
1639     fi
1640     test "$ac_signal" != 0 &&
1641       $as_echo "$as_me: caught signal $ac_signal"
1642     $as_echo "$as_me: exit $exit_status"
1643   } >&5
1644   rm -f core *.core core.conftest.* &&
1645     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1646     exit $exit_status
1647 ' 0
1648 for ac_signal in 1 2 13 15; do
1649   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1650 done
1651 ac_signal=0
1652
1653 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1654 rm -f -r conftest* confdefs.h
1655
1656 $as_echo "/* confdefs.h */" > confdefs.h
1657
1658 # Predefined preprocessor variables.
1659
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_NAME "$PACKAGE_NAME"
1662 _ACEOF
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1666 _ACEOF
1667
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1670 _ACEOF
1671
1672 cat >>confdefs.h <<_ACEOF
1673 #define PACKAGE_STRING "$PACKAGE_STRING"
1674 _ACEOF
1675
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1678 _ACEOF
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_URL "$PACKAGE_URL"
1682 _ACEOF
1683
1684
1685 # Let the site file select an alternate cache file if it wants to.
1686 # Prefer an explicitly selected file to automatically selected ones.
1687 ac_site_file1=NONE
1688 ac_site_file2=NONE
1689 if test -n "$CONFIG_SITE"; then
1690   # We do not want a PATH search for config.site.
1691   case $CONFIG_SITE in #((
1692     -*)  ac_site_file1=./$CONFIG_SITE;;
1693     */*) ac_site_file1=$CONFIG_SITE;;
1694     *)   ac_site_file1=./$CONFIG_SITE;;
1695   esac
1696 elif test "x$prefix" != xNONE; then
1697   ac_site_file1=$prefix/share/config.site
1698   ac_site_file2=$prefix/etc/config.site
1699 else
1700   ac_site_file1=$ac_default_prefix/share/config.site
1701   ac_site_file2=$ac_default_prefix/etc/config.site
1702 fi
1703 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1704 do
1705   test "x$ac_site_file" = xNONE && continue
1706   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1707     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1708 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1709     sed 's/^/| /' "$ac_site_file" >&5
1710     . "$ac_site_file" \
1711       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1713 as_fn_error $? "failed to load site script $ac_site_file
1714 See \`config.log' for more details" "$LINENO" 5 ; }
1715   fi
1716 done
1717
1718 if test -r "$cache_file"; then
1719   # Some versions of bash will fail to source /dev/null (special files
1720   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
1721   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1722     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1723 $as_echo "$as_me: loading cache $cache_file" >&6;}
1724     case $cache_file in
1725       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1726       *)                      . "./$cache_file";;
1727     esac
1728   fi
1729 else
1730   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1731 $as_echo "$as_me: creating cache $cache_file" >&6;}
1732   >$cache_file
1733 fi
1734
1735 # Check that the precious variables saved in the cache have kept the same
1736 # value.
1737 ac_cache_corrupted=false
1738 for ac_var in $ac_precious_vars; do
1739   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1740   eval ac_new_set=\$ac_env_${ac_var}_set
1741   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1742   eval ac_new_val=\$ac_env_${ac_var}_value
1743   case $ac_old_set,$ac_new_set in
1744     set,)
1745       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1746 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1747       ac_cache_corrupted=: ;;
1748     ,set)
1749       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1750 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1751       ac_cache_corrupted=: ;;
1752     ,);;
1753     *)
1754       if test "x$ac_old_val" != "x$ac_new_val"; then
1755         # differences in whitespace do not lead to failure.
1756         ac_old_val_w=`echo x $ac_old_val`
1757         ac_new_val_w=`echo x $ac_new_val`
1758         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1759           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1760 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1761           ac_cache_corrupted=:
1762         else
1763           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1764 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1765           eval $ac_var=\$ac_old_val
1766         fi
1767         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
1768 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1769         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
1770 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1771       fi;;
1772   esac
1773   # Pass precious variables to config.status.
1774   if test "$ac_new_set" = set; then
1775     case $ac_new_val in
1776     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1777     *) ac_arg=$ac_var=$ac_new_val ;;
1778     esac
1779     case " $ac_configure_args " in
1780       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1781       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1782     esac
1783   fi
1784 done
1785 if $ac_cache_corrupted; then
1786   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1788   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1789 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1790   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1791 fi
1792 ## -------------------- ##
1793 ## Main body of script. ##
1794 ## -------------------- ##
1795
1796 ac_ext=c
1797 ac_cpp='$CPP $CPPFLAGS'
1798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1801
1802
1803 am__api_version='1.11'
1804
1805 ac_aux_dir=
1806 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1807   if test -f "$ac_dir/install-sh"; then
1808     ac_aux_dir=$ac_dir
1809     ac_install_sh="$ac_aux_dir/install-sh -c"
1810     break
1811   elif test -f "$ac_dir/install.sh"; then
1812     ac_aux_dir=$ac_dir
1813     ac_install_sh="$ac_aux_dir/install.sh -c"
1814     break
1815   elif test -f "$ac_dir/shtool"; then
1816     ac_aux_dir=$ac_dir
1817     ac_install_sh="$ac_aux_dir/shtool install -c"
1818     break
1819   fi
1820 done
1821 if test -z "$ac_aux_dir"; then
1822   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1823 fi
1824
1825 # These three variables are undocumented and unsupported,
1826 # and are intended to be withdrawn in a future Autoconf release.
1827 # They can cause serious problems if a builder's source tree is in a directory
1828 # whose full name contains unusual characters.
1829 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1830 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1831 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1832
1833
1834 # Find a good install program.  We prefer a C program (faster),
1835 # so one script is as good as another.  But avoid the broken or
1836 # incompatible versions:
1837 # SysV /etc/install, /usr/sbin/install
1838 # SunOS /usr/etc/install
1839 # IRIX /sbin/install
1840 # AIX /bin/install
1841 # AmigaOS /C/install, which installs bootblocks on floppy discs
1842 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1843 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1844 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1845 # OS/2's system install, which has a completely different semantic
1846 # ./install, which can be erroneously created by make from ./install.sh.
1847 # Reject install programs that cannot install multiple files.
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1849 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1850 if test -z "$INSTALL"; then
1851 if test "${ac_cv_path_install+set}" = set; then :
1852   $as_echo_n "(cached) " >&6
1853 else
1854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1856 do
1857   IFS=$as_save_IFS
1858   test -z "$as_dir" && as_dir=.
1859     # Account for people who put trailing slashes in PATH elements.
1860 case $as_dir/ in #((
1861   ./ | .// | /[cC]/* | \
1862   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1863   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1864   /usr/ucb/* ) ;;
1865   *)
1866     # OSF1 and SCO ODT 3.0 have their own names for install.
1867     # Don't use installbsd from OSF since it installs stuff as root
1868     # by default.
1869     for ac_prog in ginstall scoinst install; do
1870       for ac_exec_ext in '' $ac_executable_extensions; do
1871         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1872           if test $ac_prog = install &&
1873             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1874             # AIX install.  It has an incompatible calling convention.
1875             :
1876           elif test $ac_prog = install &&
1877             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1878             # program-specific install script used by HP pwplus--don't use.
1879             :
1880           else
1881             rm -rf conftest.one conftest.two conftest.dir
1882             echo one > conftest.one
1883             echo two > conftest.two
1884             mkdir conftest.dir
1885             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1886               test -s conftest.one && test -s conftest.two &&
1887               test -s conftest.dir/conftest.one &&
1888               test -s conftest.dir/conftest.two
1889             then
1890               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1891               break 3
1892             fi
1893           fi
1894         fi
1895       done
1896     done
1897     ;;
1898 esac
1899
1900   done
1901 IFS=$as_save_IFS
1902
1903 rm -rf conftest.one conftest.two conftest.dir
1904
1905 fi
1906   if test "${ac_cv_path_install+set}" = set; then
1907     INSTALL=$ac_cv_path_install
1908   else
1909     # As a last resort, use the slow shell script.  Don't cache a
1910     # value for INSTALL within a source directory, because that will
1911     # break other packages using the cache if that directory is
1912     # removed, or if the value is a relative name.
1913     INSTALL=$ac_install_sh
1914   fi
1915 fi
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1917 $as_echo "$INSTALL" >&6; }
1918
1919 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1920 # It thinks the first close brace ends the variable substitution.
1921 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1922
1923 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1924
1925 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1926
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
1928 $as_echo_n "checking whether build environment is sane... " >&6; }
1929 # Just in case
1930 sleep 1
1931 echo timestamp > conftest.file
1932 # Reject unsafe characters in $srcdir or the absolute working directory
1933 # name.  Accept space and tab only in the latter.
1934 am_lf='
1935 '
1936 case `pwd` in
1937   *[\\\"\#\$\&\'\`$am_lf]*)
1938     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
1939 esac
1940 case $srcdir in
1941   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
1942     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
1943 esac
1944
1945 # Do `set' in a subshell so we don't clobber the current shell's
1946 # arguments.  Must try -L first in case configure is actually a
1947 # symlink; some systems play weird games with the mod time of symlinks
1948 # (eg FreeBSD returns the mod time of the symlink's containing
1949 # directory).
1950 if (
1951    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1952    if test "$*" = "X"; then
1953       # -L didn't work.
1954       set X `ls -t "$srcdir/configure" conftest.file`
1955    fi
1956    rm -f conftest.file
1957    if test "$*" != "X $srcdir/configure conftest.file" \
1958       && test "$*" != "X conftest.file $srcdir/configure"; then
1959
1960       # If neither matched, then we have a broken ls.  This can happen
1961       # if, for instance, CONFIG_SHELL is bash and it inherits a
1962       # broken ls alias from the environment.  This has actually
1963       # happened.  Such a system could not be considered "sane".
1964       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
1965 alias in your environment" "$LINENO" 5
1966    fi
1967
1968    test "$2" = conftest.file
1969    )
1970 then
1971    # Ok.
1972    :
1973 else
1974    as_fn_error $? "newly created file is older than distributed files!
1975 Check your system clock" "$LINENO" 5
1976 fi
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1978 $as_echo "yes" >&6; }
1979 test "$program_prefix" != NONE &&
1980   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1981 # Use a double $ so make ignores it.
1982 test "$program_suffix" != NONE &&
1983   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1984 # Double any \ or $.
1985 # By default was `s,x,x', remove it if useless.
1986 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1987 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1988
1989 # expand $ac_aux_dir to an absolute path
1990 am_aux_dir=`cd $ac_aux_dir && pwd`
1991
1992 if test x"${MISSING+set}" != xset; then
1993   case $am_aux_dir in
1994   *\ * | *\     *)
1995     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1996   *)
1997     MISSING="\${SHELL} $am_aux_dir/missing" ;;
1998   esac
1999 fi
2000 # Use eval to expand $SHELL
2001 if eval "$MISSING --run true"; then
2002   am_missing_run="$MISSING --run "
2003 else
2004   am_missing_run=
2005   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2006 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2007 fi
2008
2009 if test x"${install_sh}" != xset; then
2010   case $am_aux_dir in
2011   *\ * | *\     *)
2012     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2013   *)
2014     install_sh="\${SHELL} $am_aux_dir/install-sh"
2015   esac
2016 fi
2017
2018 # Installed binaries are usually stripped using `strip' when the user
2019 # run `make install-strip'.  However `strip' might not be the right
2020 # tool to use in cross-compilation environments, therefore Automake
2021 # will honor the `STRIP' environment variable to overrule this program.
2022 if test "$cross_compiling" != no; then
2023   if test -n "$ac_tool_prefix"; then
2024   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2025 set dummy ${ac_tool_prefix}strip; ac_word=$2
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2027 $as_echo_n "checking for $ac_word... " >&6; }
2028 if test "${ac_cv_prog_STRIP+set}" = set; then :
2029   $as_echo_n "(cached) " >&6
2030 else
2031   if test -n "$STRIP"; then
2032   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2036 do
2037   IFS=$as_save_IFS
2038   test -z "$as_dir" && as_dir=.
2039     for ac_exec_ext in '' $ac_executable_extensions; do
2040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2041     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2043     break 2
2044   fi
2045 done
2046   done
2047 IFS=$as_save_IFS
2048
2049 fi
2050 fi
2051 STRIP=$ac_cv_prog_STRIP
2052 if test -n "$STRIP"; then
2053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2054 $as_echo "$STRIP" >&6; }
2055 else
2056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2057 $as_echo "no" >&6; }
2058 fi
2059
2060
2061 fi
2062 if test -z "$ac_cv_prog_STRIP"; then
2063   ac_ct_STRIP=$STRIP
2064   # Extract the first word of "strip", so it can be a program name with args.
2065 set dummy strip; ac_word=$2
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2067 $as_echo_n "checking for $ac_word... " >&6; }
2068 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2069   $as_echo_n "(cached) " >&6
2070 else
2071   if test -n "$ac_ct_STRIP"; then
2072   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2073 else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2076 do
2077   IFS=$as_save_IFS
2078   test -z "$as_dir" && as_dir=.
2079     for ac_exec_ext in '' $ac_executable_extensions; do
2080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2081     ac_cv_prog_ac_ct_STRIP="strip"
2082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2083     break 2
2084   fi
2085 done
2086   done
2087 IFS=$as_save_IFS
2088
2089 fi
2090 fi
2091 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2092 if test -n "$ac_ct_STRIP"; then
2093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2094 $as_echo "$ac_ct_STRIP" >&6; }
2095 else
2096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2097 $as_echo "no" >&6; }
2098 fi
2099
2100   if test "x$ac_ct_STRIP" = x; then
2101     STRIP=":"
2102   else
2103     case $cross_compiling:$ac_tool_warned in
2104 yes:)
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2107 ac_tool_warned=yes ;;
2108 esac
2109     STRIP=$ac_ct_STRIP
2110   fi
2111 else
2112   STRIP="$ac_cv_prog_STRIP"
2113 fi
2114
2115 fi
2116 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2117
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2119 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2120 if test -z "$MKDIR_P"; then
2121   if test "${ac_cv_path_mkdir+set}" = set; then :
2122   $as_echo_n "(cached) " >&6
2123 else
2124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2126 do
2127   IFS=$as_save_IFS
2128   test -z "$as_dir" && as_dir=.
2129     for ac_prog in mkdir gmkdir; do
2130          for ac_exec_ext in '' $ac_executable_extensions; do
2131            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2132            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2133              'mkdir (GNU coreutils) '* | \
2134              'mkdir (coreutils) '* | \
2135              'mkdir (fileutils) '4.1*)
2136                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2137                break 3;;
2138            esac
2139          done
2140        done
2141   done
2142 IFS=$as_save_IFS
2143
2144 fi
2145
2146   test -d ./--version && rmdir ./--version
2147   if test "${ac_cv_path_mkdir+set}" = set; then
2148     MKDIR_P="$ac_cv_path_mkdir -p"
2149   else
2150     # As a last resort, use the slow shell script.  Don't cache a
2151     # value for MKDIR_P within a source directory, because that will
2152     # break other packages using the cache if that directory is
2153     # removed, or if the value is a relative name.
2154     MKDIR_P="$ac_install_sh -d"
2155   fi
2156 fi
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2158 $as_echo "$MKDIR_P" >&6; }
2159
2160 mkdir_p="$MKDIR_P"
2161 case $mkdir_p in
2162   [\\/$]* | ?:[\\/]*) ;;
2163   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2164 esac
2165
2166 for ac_prog in gawk mawk nawk awk
2167 do
2168   # Extract the first word of "$ac_prog", so it can be a program name with args.
2169 set dummy $ac_prog; ac_word=$2
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2171 $as_echo_n "checking for $ac_word... " >&6; }
2172 if test "${ac_cv_prog_AWK+set}" = set; then :
2173   $as_echo_n "(cached) " >&6
2174 else
2175   if test -n "$AWK"; then
2176   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2177 else
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 for as_dir in $PATH
2180 do
2181   IFS=$as_save_IFS
2182   test -z "$as_dir" && as_dir=.
2183     for ac_exec_ext in '' $ac_executable_extensions; do
2184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2185     ac_cv_prog_AWK="$ac_prog"
2186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2187     break 2
2188   fi
2189 done
2190   done
2191 IFS=$as_save_IFS
2192
2193 fi
2194 fi
2195 AWK=$ac_cv_prog_AWK
2196 if test -n "$AWK"; then
2197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2198 $as_echo "$AWK" >&6; }
2199 else
2200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2201 $as_echo "no" >&6; }
2202 fi
2203
2204
2205   test -n "$AWK" && break
2206 done
2207
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2209 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2210 set x ${MAKE-make}
2211 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2212 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2213   $as_echo_n "(cached) " >&6
2214 else
2215   cat >conftest.make <<\_ACEOF
2216 SHELL = /bin/sh
2217 all:
2218         @echo '@@@%%%=$(MAKE)=@@@%%%'
2219 _ACEOF
2220 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2221 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2222   *@@@%%%=?*=@@@%%%*)
2223     eval ac_cv_prog_make_${ac_make}_set=yes;;
2224   *)
2225     eval ac_cv_prog_make_${ac_make}_set=no;;
2226 esac
2227 rm -f conftest.make
2228 fi
2229 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2231 $as_echo "yes" >&6; }
2232   SET_MAKE=
2233 else
2234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2235 $as_echo "no" >&6; }
2236   SET_MAKE="MAKE=${MAKE-make}"
2237 fi
2238
2239 rm -rf .tst 2>/dev/null
2240 mkdir .tst 2>/dev/null
2241 if test -d .tst; then
2242   am__leading_dot=.
2243 else
2244   am__leading_dot=_
2245 fi
2246 rmdir .tst 2>/dev/null
2247
2248 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2249   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2250   # is not polluted with repeated "-I."
2251   am__isrc=' -I$(srcdir)'
2252   # test to see if srcdir already configured
2253   if test -f $srcdir/config.status; then
2254     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2255   fi
2256 fi
2257
2258 # test whether we have cygpath
2259 if test -z "$CYGPATH_W"; then
2260   if (cygpath --version) >/dev/null 2>/dev/null; then
2261     CYGPATH_W='cygpath -w'
2262   else
2263     CYGPATH_W=echo
2264   fi
2265 fi
2266
2267
2268 # Define the identity of the package.
2269  PACKAGE='ctdlsh'
2270  VERSION='1.0'
2271
2272
2273 cat >>confdefs.h <<_ACEOF
2274 #define PACKAGE "$PACKAGE"
2275 _ACEOF
2276
2277
2278 cat >>confdefs.h <<_ACEOF
2279 #define VERSION "$VERSION"
2280 _ACEOF
2281
2282 # Some tools Automake needs.
2283
2284 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2285
2286
2287 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2288
2289
2290 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2291
2292
2293 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2294
2295
2296 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2297
2298 # We need awk for the "check" target.  The system "awk" is bad on
2299 # some platforms.
2300 # Always define AMTAR for backward compatibility.
2301
2302 AMTAR=${AMTAR-"${am_missing_run}tar"}
2303
2304 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2305
2306
2307
2308
2309
2310 ac_ext=c
2311 ac_cpp='$CPP $CPPFLAGS'
2312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315 if test -n "$ac_tool_prefix"; then
2316   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2317 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2319 $as_echo_n "checking for $ac_word... " >&6; }
2320 if test "${ac_cv_prog_CC+set}" = set; then :
2321   $as_echo_n "(cached) " >&6
2322 else
2323   if test -n "$CC"; then
2324   ac_cv_prog_CC="$CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329   IFS=$as_save_IFS
2330   test -z "$as_dir" && as_dir=.
2331     for ac_exec_ext in '' $ac_executable_extensions; do
2332   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2333     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2335     break 2
2336   fi
2337 done
2338   done
2339 IFS=$as_save_IFS
2340
2341 fi
2342 fi
2343 CC=$ac_cv_prog_CC
2344 if test -n "$CC"; then
2345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2346 $as_echo "$CC" >&6; }
2347 else
2348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2349 $as_echo "no" >&6; }
2350 fi
2351
2352
2353 fi
2354 if test -z "$ac_cv_prog_CC"; then
2355   ac_ct_CC=$CC
2356   # Extract the first word of "gcc", so it can be a program name with args.
2357 set dummy gcc; ac_word=$2
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2359 $as_echo_n "checking for $ac_word... " >&6; }
2360 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2361   $as_echo_n "(cached) " >&6
2362 else
2363   if test -n "$ac_ct_CC"; then
2364   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2365 else
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2368 do
2369   IFS=$as_save_IFS
2370   test -z "$as_dir" && as_dir=.
2371     for ac_exec_ext in '' $ac_executable_extensions; do
2372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373     ac_cv_prog_ac_ct_CC="gcc"
2374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2375     break 2
2376   fi
2377 done
2378   done
2379 IFS=$as_save_IFS
2380
2381 fi
2382 fi
2383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2384 if test -n "$ac_ct_CC"; then
2385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2386 $as_echo "$ac_ct_CC" >&6; }
2387 else
2388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2389 $as_echo "no" >&6; }
2390 fi
2391
2392   if test "x$ac_ct_CC" = x; then
2393     CC=""
2394   else
2395     case $cross_compiling:$ac_tool_warned in
2396 yes:)
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2399 ac_tool_warned=yes ;;
2400 esac
2401     CC=$ac_ct_CC
2402   fi
2403 else
2404   CC="$ac_cv_prog_CC"
2405 fi
2406
2407 if test -z "$CC"; then
2408           if test -n "$ac_tool_prefix"; then
2409     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2410 set dummy ${ac_tool_prefix}cc; ac_word=$2
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412 $as_echo_n "checking for $ac_word... " >&6; }
2413 if test "${ac_cv_prog_CC+set}" = set; then :
2414   $as_echo_n "(cached) " >&6
2415 else
2416   if test -n "$CC"; then
2417   ac_cv_prog_CC="$CC" # Let the user override the test.
2418 else
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 for as_dir in $PATH
2421 do
2422   IFS=$as_save_IFS
2423   test -z "$as_dir" && as_dir=.
2424     for ac_exec_ext in '' $ac_executable_extensions; do
2425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426     ac_cv_prog_CC="${ac_tool_prefix}cc"
2427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2428     break 2
2429   fi
2430 done
2431   done
2432 IFS=$as_save_IFS
2433
2434 fi
2435 fi
2436 CC=$ac_cv_prog_CC
2437 if test -n "$CC"; then
2438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2439 $as_echo "$CC" >&6; }
2440 else
2441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442 $as_echo "no" >&6; }
2443 fi
2444
2445
2446   fi
2447 fi
2448 if test -z "$CC"; then
2449   # Extract the first word of "cc", so it can be a program name with args.
2450 set dummy cc; ac_word=$2
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2452 $as_echo_n "checking for $ac_word... " >&6; }
2453 if test "${ac_cv_prog_CC+set}" = set; then :
2454   $as_echo_n "(cached) " >&6
2455 else
2456   if test -n "$CC"; then
2457   ac_cv_prog_CC="$CC" # Let the user override the test.
2458 else
2459   ac_prog_rejected=no
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463   IFS=$as_save_IFS
2464   test -z "$as_dir" && as_dir=.
2465     for ac_exec_ext in '' $ac_executable_extensions; do
2466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2468        ac_prog_rejected=yes
2469        continue
2470      fi
2471     ac_cv_prog_CC="cc"
2472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473     break 2
2474   fi
2475 done
2476   done
2477 IFS=$as_save_IFS
2478
2479 if test $ac_prog_rejected = yes; then
2480   # We found a bogon in the path, so make sure we never use it.
2481   set dummy $ac_cv_prog_CC
2482   shift
2483   if test $# != 0; then
2484     # We chose a different compiler from the bogus one.
2485     # However, it has the same basename, so the bogon will be chosen
2486     # first if we set CC to just the basename; use the full file name.
2487     shift
2488     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2489   fi
2490 fi
2491 fi
2492 fi
2493 CC=$ac_cv_prog_CC
2494 if test -n "$CC"; then
2495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2496 $as_echo "$CC" >&6; }
2497 else
2498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2499 $as_echo "no" >&6; }
2500 fi
2501
2502
2503 fi
2504 if test -z "$CC"; then
2505   if test -n "$ac_tool_prefix"; then
2506   for ac_prog in cl.exe
2507   do
2508     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2509 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511 $as_echo_n "checking for $ac_word... " >&6; }
2512 if test "${ac_cv_prog_CC+set}" = set; then :
2513   $as_echo_n "(cached) " >&6
2514 else
2515   if test -n "$CC"; then
2516   ac_cv_prog_CC="$CC" # Let the user override the test.
2517 else
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 for as_dir in $PATH
2520 do
2521   IFS=$as_save_IFS
2522   test -z "$as_dir" && as_dir=.
2523     for ac_exec_ext in '' $ac_executable_extensions; do
2524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2527     break 2
2528   fi
2529 done
2530   done
2531 IFS=$as_save_IFS
2532
2533 fi
2534 fi
2535 CC=$ac_cv_prog_CC
2536 if test -n "$CC"; then
2537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2538 $as_echo "$CC" >&6; }
2539 else
2540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541 $as_echo "no" >&6; }
2542 fi
2543
2544
2545     test -n "$CC" && break
2546   done
2547 fi
2548 if test -z "$CC"; then
2549   ac_ct_CC=$CC
2550   for ac_prog in cl.exe
2551 do
2552   # Extract the first word of "$ac_prog", so it can be a program name with args.
2553 set dummy $ac_prog; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2557   $as_echo_n "(cached) " >&6
2558 else
2559   if test -n "$ac_ct_CC"; then
2560   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565   IFS=$as_save_IFS
2566   test -z "$as_dir" && as_dir=.
2567     for ac_exec_ext in '' $ac_executable_extensions; do
2568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569     ac_cv_prog_ac_ct_CC="$ac_prog"
2570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571     break 2
2572   fi
2573 done
2574   done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2580 if test -n "$ac_ct_CC"; then
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2582 $as_echo "$ac_ct_CC" >&6; }
2583 else
2584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 fi
2587
2588
2589   test -n "$ac_ct_CC" && break
2590 done
2591
2592   if test "x$ac_ct_CC" = x; then
2593     CC=""
2594   else
2595     case $cross_compiling:$ac_tool_warned in
2596 yes:)
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2599 ac_tool_warned=yes ;;
2600 esac
2601     CC=$ac_ct_CC
2602   fi
2603 fi
2604
2605 fi
2606
2607
2608 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610 as_fn_error $? "no acceptable C compiler found in \$PATH
2611 See \`config.log' for more details" "$LINENO" 5 ; }
2612
2613 # Provide some information about the compiler.
2614 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2615 set X $ac_compile
2616 ac_compiler=$2
2617 for ac_option in --version -v -V -qversion; do
2618   { { ac_try="$ac_compiler $ac_option >&5"
2619 case "(($ac_try" in
2620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621   *) ac_try_echo=$ac_try;;
2622 esac
2623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2624 $as_echo "$ac_try_echo"; } >&5
2625   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2626   ac_status=$?
2627   if test -s conftest.err; then
2628     sed '10a\
2629 ... rest of stderr output deleted ...
2630          10q' conftest.err >conftest.er1
2631     cat conftest.er1 >&5
2632   fi
2633   rm -f conftest.er1 conftest.err
2634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635   test $ac_status = 0; }
2636 done
2637
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h.  */
2640
2641 int
2642 main ()
2643 {
2644
2645   ;
2646   return 0;
2647 }
2648 _ACEOF
2649 ac_clean_files_save=$ac_clean_files
2650 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2651 # Try to create an executable without -o first, disregard a.out.
2652 # It will help us diagnose broken compilers, and finding out an intuition
2653 # of exeext.
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2655 $as_echo_n "checking whether the C compiler works... " >&6; }
2656 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2657
2658 # The possible output files:
2659 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2660
2661 ac_rmfiles=
2662 for ac_file in $ac_files
2663 do
2664   case $ac_file in
2665     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2666     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2667   esac
2668 done
2669 rm -f $ac_rmfiles
2670
2671 if { { ac_try="$ac_link_default"
2672 case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677 $as_echo "$ac_try_echo"; } >&5
2678   (eval "$ac_link_default") 2>&5
2679   ac_status=$?
2680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2681   test $ac_status = 0; }; then :
2682   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2683 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2684 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2685 # so that the user can short-circuit this test for compilers unknown to
2686 # Autoconf.
2687 for ac_file in $ac_files ''
2688 do
2689   test -f "$ac_file" || continue
2690   case $ac_file in
2691     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2692         ;;
2693     [ab].out )
2694         # We found the default executable, but exeext='' is most
2695         # certainly right.
2696         break;;
2697     *.* )
2698         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2699         then :; else
2700            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2701         fi
2702         # We set ac_cv_exeext here because the later test for it is not
2703         # safe: cross compilers may not add the suffix if given an `-o'
2704         # argument, so we may need to know it at that point already.
2705         # Even if this section looks crufty: it has the advantage of
2706         # actually working.
2707         break;;
2708     * )
2709         break;;
2710   esac
2711 done
2712 test "$ac_cv_exeext" = no && ac_cv_exeext=
2713
2714 else
2715   ac_file=''
2716 fi
2717 if test -z "$ac_file"; then :
2718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2720 $as_echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2725 as_fn_error 77 "C compiler cannot create executables
2726 See \`config.log' for more details" "$LINENO" 5 ; }
2727 else
2728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2729 $as_echo "yes" >&6; }
2730 fi
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2732 $as_echo_n "checking for C compiler default output file name... " >&6; }
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2734 $as_echo "$ac_file" >&6; }
2735 ac_exeext=$ac_cv_exeext
2736
2737 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2738 ac_clean_files=$ac_clean_files_save
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2740 $as_echo_n "checking for suffix of executables... " >&6; }
2741 if { { ac_try="$ac_link"
2742 case "(($ac_try" in
2743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744   *) ac_try_echo=$ac_try;;
2745 esac
2746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2747 $as_echo "$ac_try_echo"; } >&5
2748   (eval "$ac_link") 2>&5
2749   ac_status=$?
2750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2751   test $ac_status = 0; }; then :
2752   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2753 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2754 # work properly (i.e., refer to `conftest.exe'), while it won't with
2755 # `rm'.
2756 for ac_file in conftest.exe conftest conftest.*; do
2757   test -f "$ac_file" || continue
2758   case $ac_file in
2759     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2760     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2761           break;;
2762     * ) break;;
2763   esac
2764 done
2765 else
2766   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2768 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2769 See \`config.log' for more details" "$LINENO" 5 ; }
2770 fi
2771 rm -f conftest conftest$ac_cv_exeext
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2773 $as_echo "$ac_cv_exeext" >&6; }
2774
2775 rm -f conftest.$ac_ext
2776 EXEEXT=$ac_cv_exeext
2777 ac_exeext=$EXEEXT
2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2779 /* end confdefs.h.  */
2780 #include <stdio.h>
2781 int
2782 main ()
2783 {
2784 FILE *f = fopen ("conftest.out", "w");
2785  return ferror (f) || fclose (f) != 0;
2786
2787   ;
2788   return 0;
2789 }
2790 _ACEOF
2791 ac_clean_files="$ac_clean_files conftest.out"
2792 # Check that the compiler produces executables we can run.  If not, either
2793 # the compiler is broken, or we cross compile.
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2795 $as_echo_n "checking whether we are cross compiling... " >&6; }
2796 if test "$cross_compiling" != yes; then
2797   { { ac_try="$ac_link"
2798 case "(($ac_try" in
2799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800   *) ac_try_echo=$ac_try;;
2801 esac
2802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2803 $as_echo "$ac_try_echo"; } >&5
2804   (eval "$ac_link") 2>&5
2805   ac_status=$?
2806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2807   test $ac_status = 0; }
2808   if { ac_try='./conftest$ac_cv_exeext'
2809   { { case "(($ac_try" in
2810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811   *) ac_try_echo=$ac_try;;
2812 esac
2813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2814 $as_echo "$ac_try_echo"; } >&5
2815   (eval "$ac_try") 2>&5
2816   ac_status=$?
2817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2818   test $ac_status = 0; }; }; then
2819     cross_compiling=no
2820   else
2821     if test "$cross_compiling" = maybe; then
2822         cross_compiling=yes
2823     else
2824         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826 as_fn_error $? "cannot run C compiled programs.
2827 If you meant to cross compile, use \`--host'.
2828 See \`config.log' for more details" "$LINENO" 5 ; }
2829     fi
2830   fi
2831 fi
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2833 $as_echo "$cross_compiling" >&6; }
2834
2835 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2836 ac_clean_files=$ac_clean_files_save
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2838 $as_echo_n "checking for suffix of object files... " >&6; }
2839 if test "${ac_cv_objext+set}" = set; then :
2840   $as_echo_n "(cached) " >&6
2841 else
2842   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h.  */
2844
2845 int
2846 main ()
2847 {
2848
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 rm -f conftest.o conftest.obj
2854 if { { ac_try="$ac_compile"
2855 case "(($ac_try" in
2856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857   *) ac_try_echo=$ac_try;;
2858 esac
2859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2860 $as_echo "$ac_try_echo"; } >&5
2861   (eval "$ac_compile") 2>&5
2862   ac_status=$?
2863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2864   test $ac_status = 0; }; then :
2865   for ac_file in conftest.o conftest.obj conftest.*; do
2866   test -f "$ac_file" || continue;
2867   case $ac_file in
2868     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2869     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2870        break;;
2871   esac
2872 done
2873 else
2874   $as_echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2876
2877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879 as_fn_error $? "cannot compute suffix of object files: cannot compile
2880 See \`config.log' for more details" "$LINENO" 5 ; }
2881 fi
2882 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2883 fi
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2885 $as_echo "$ac_cv_objext" >&6; }
2886 OBJEXT=$ac_cv_objext
2887 ac_objext=$OBJEXT
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2889 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2890 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2891   $as_echo_n "(cached) " >&6
2892 else
2893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894 /* end confdefs.h.  */
2895
2896 int
2897 main ()
2898 {
2899 #ifndef __GNUC__
2900        choke me
2901 #endif
2902
2903   ;
2904   return 0;
2905 }
2906 _ACEOF
2907 if ac_fn_c_try_compile "$LINENO"; then :
2908   ac_compiler_gnu=yes
2909 else
2910   ac_compiler_gnu=no
2911 fi
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2914
2915 fi
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2917 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2918 if test $ac_compiler_gnu = yes; then
2919   GCC=yes
2920 else
2921   GCC=
2922 fi
2923 ac_test_CFLAGS=${CFLAGS+set}
2924 ac_save_CFLAGS=$CFLAGS
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2926 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2927 if test "${ac_cv_prog_cc_g+set}" = set; then :
2928   $as_echo_n "(cached) " >&6
2929 else
2930   ac_save_c_werror_flag=$ac_c_werror_flag
2931    ac_c_werror_flag=yes
2932    ac_cv_prog_cc_g=no
2933    CFLAGS="-g"
2934    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2935 /* end confdefs.h.  */
2936
2937 int
2938 main ()
2939 {
2940
2941   ;
2942   return 0;
2943 }
2944 _ACEOF
2945 if ac_fn_c_try_compile "$LINENO"; then :
2946   ac_cv_prog_cc_g=yes
2947 else
2948   CFLAGS=""
2949       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950 /* end confdefs.h.  */
2951
2952 int
2953 main ()
2954 {
2955
2956   ;
2957   return 0;
2958 }
2959 _ACEOF
2960 if ac_fn_c_try_compile "$LINENO"; then :
2961
2962 else
2963   ac_c_werror_flag=$ac_save_c_werror_flag
2964          CFLAGS="-g"
2965          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2966 /* end confdefs.h.  */
2967
2968 int
2969 main ()
2970 {
2971
2972   ;
2973   return 0;
2974 }
2975 _ACEOF
2976 if ac_fn_c_try_compile "$LINENO"; then :
2977   ac_cv_prog_cc_g=yes
2978 fi
2979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 fi
2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982 fi
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984    ac_c_werror_flag=$ac_save_c_werror_flag
2985 fi
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2987 $as_echo "$ac_cv_prog_cc_g" >&6; }
2988 if test "$ac_test_CFLAGS" = set; then
2989   CFLAGS=$ac_save_CFLAGS
2990 elif test $ac_cv_prog_cc_g = yes; then
2991   if test "$GCC" = yes; then
2992     CFLAGS="-g -O2"
2993   else
2994     CFLAGS="-g"
2995   fi
2996 else
2997   if test "$GCC" = yes; then
2998     CFLAGS="-O2"
2999   else
3000     CFLAGS=
3001   fi
3002 fi
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3004 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3005 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3006   $as_echo_n "(cached) " >&6
3007 else
3008   ac_cv_prog_cc_c89=no
3009 ac_save_CC=$CC
3010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3011 /* end confdefs.h.  */
3012 #include <stdarg.h>
3013 #include <stdio.h>
3014 #include <sys/types.h>
3015 #include <sys/stat.h>
3016 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3017 struct buf { int x; };
3018 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3019 static char *e (p, i)
3020      char **p;
3021      int i;
3022 {
3023   return p[i];
3024 }
3025 static char *f (char * (*g) (char **, int), char **p, ...)
3026 {
3027   char *s;
3028   va_list v;
3029   va_start (v,p);
3030   s = g (p, va_arg (v,int));
3031   va_end (v);
3032   return s;
3033 }
3034
3035 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3036    function prototypes and stuff, but not '\xHH' hex character constants.
3037    These don't provoke an error unfortunately, instead are silently treated
3038    as 'x'.  The following induces an error, until -std is added to get
3039    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3040    array size at least.  It's necessary to write '\x00'==0 to get something
3041    that's true only with -std.  */
3042 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3043
3044 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3045    inside strings and character constants.  */
3046 #define FOO(x) 'x'
3047 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3048
3049 int test (int i, double x);
3050 struct s1 {int (*f) (int a);};
3051 struct s2 {int (*f) (double a);};
3052 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3053 int argc;
3054 char **argv;
3055 int
3056 main ()
3057 {
3058 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3059   ;
3060   return 0;
3061 }
3062 _ACEOF
3063 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3064         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3065 do
3066   CC="$ac_save_CC $ac_arg"
3067   if ac_fn_c_try_compile "$LINENO"; then :
3068   ac_cv_prog_cc_c89=$ac_arg
3069 fi
3070 rm -f core conftest.err conftest.$ac_objext
3071   test "x$ac_cv_prog_cc_c89" != "xno" && break
3072 done
3073 rm -f conftest.$ac_ext
3074 CC=$ac_save_CC
3075
3076 fi
3077 # AC_CACHE_VAL
3078 case "x$ac_cv_prog_cc_c89" in
3079   x)
3080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3081 $as_echo "none needed" >&6; } ;;
3082   xno)
3083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3084 $as_echo "unsupported" >&6; } ;;
3085   *)
3086     CC="$CC $ac_cv_prog_cc_c89"
3087     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3088 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3089 esac
3090 if test "x$ac_cv_prog_cc_c89" != xno; then :
3091
3092 fi
3093
3094 ac_ext=c
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099 DEPDIR="${am__leading_dot}deps"
3100
3101 ac_config_commands="$ac_config_commands depfiles"
3102
3103
3104 am_make=${MAKE-make}
3105 cat > confinc << 'END'
3106 am__doit:
3107         @echo this is the am__doit target
3108 .PHONY: am__doit
3109 END
3110 # If we don't find an include directive, just comment out the code.
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3112 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3113 am__include="#"
3114 am__quote=
3115 _am_result=none
3116 # First try GNU make style include.
3117 echo "include confinc" > confmf
3118 # Ignore all kinds of additional output from `make'.
3119 case `$am_make -s -f confmf 2> /dev/null` in #(
3120 *the\ am__doit\ target*)
3121   am__include=include
3122   am__quote=
3123   _am_result=GNU
3124   ;;
3125 esac
3126 # Now try BSD make style include.
3127 if test "$am__include" = "#"; then
3128    echo '.include "confinc"' > confmf
3129    case `$am_make -s -f confmf 2> /dev/null` in #(
3130    *the\ am__doit\ target*)
3131      am__include=.include
3132      am__quote="\""
3133      _am_result=BSD
3134      ;;
3135    esac
3136 fi
3137
3138
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3140 $as_echo "$_am_result" >&6; }
3141 rm -f confinc confmf
3142
3143 # Check whether --enable-dependency-tracking was given.
3144 if test "${enable_dependency_tracking+set}" = set; then :
3145   enableval=$enable_dependency_tracking;
3146 fi
3147
3148 if test "x$enable_dependency_tracking" != xno; then
3149   am_depcomp="$ac_aux_dir/depcomp"
3150   AMDEPBACKSLASH='\'
3151 fi
3152  if test "x$enable_dependency_tracking" != xno; then
3153   AMDEP_TRUE=
3154   AMDEP_FALSE='#'
3155 else
3156   AMDEP_TRUE='#'
3157   AMDEP_FALSE=
3158 fi
3159
3160
3161
3162 depcc="$CC"   am_compiler_list=
3163
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3165 $as_echo_n "checking dependency style of $depcc... " >&6; }
3166 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3167   $as_echo_n "(cached) " >&6
3168 else
3169   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3170   # We make a subdir and do the tests there.  Otherwise we can end up
3171   # making bogus files that we don't know about and never remove.  For
3172   # instance it was reported that on HP-UX the gcc test will end up
3173   # making a dummy file named `D' -- because `-MD' means `put the output
3174   # in D'.
3175   mkdir conftest.dir
3176   # Copy depcomp to subdir because otherwise we won't find it if we're
3177   # using a relative directory.
3178   cp "$am_depcomp" conftest.dir
3179   cd conftest.dir
3180   # We will build objects and dependencies in a subdirectory because
3181   # it helps to detect inapplicable dependency modes.  For instance
3182   # both Tru64's cc and ICC support -MD to output dependencies as a
3183   # side effect of compilation, but ICC will put the dependencies in
3184   # the current directory while Tru64 will put them in the object
3185   # directory.
3186   mkdir sub
3187
3188   am_cv_CC_dependencies_compiler_type=none
3189   if test "$am_compiler_list" = ""; then
3190      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3191   fi
3192   am__universal=false
3193   case " $depcc " in #(
3194      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3195      esac
3196
3197   for depmode in $am_compiler_list; do
3198     # Setup a source with many dependencies, because some compilers
3199     # like to wrap large dependency lists on column 80 (with \), and
3200     # we should not choose a depcomp mode which is confused by this.
3201     #
3202     # We need to recreate these files for each test, as the compiler may
3203     # overwrite some of them when testing with obscure command lines.
3204     # This happens at least with the AIX C compiler.
3205     : > sub/conftest.c
3206     for i in 1 2 3 4 5 6; do
3207       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3208       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3209       # Solaris 8's {/usr,}/bin/sh.
3210       touch sub/conftst$i.h
3211     done
3212     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3213
3214     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3215     # mode.  It turns out that the SunPro C++ compiler does not properly
3216     # handle `-M -o', and we need to detect this.  Also, some Intel
3217     # versions had trouble with output in subdirs
3218     am__obj=sub/conftest.${OBJEXT-o}
3219     am__minus_obj="-o $am__obj"
3220     case $depmode in
3221     gcc)
3222       # This depmode causes a compiler race in universal mode.
3223       test "$am__universal" = false || continue
3224       ;;
3225     nosideeffect)
3226       # after this tag, mechanisms are not by side-effect, so they'll
3227       # only be used when explicitly requested
3228       if test "x$enable_dependency_tracking" = xyes; then
3229         continue
3230       else
3231         break
3232       fi
3233       ;;
3234     msvisualcpp | msvcmsys)
3235       # This compiler won't grok `-c -o', but also, the minuso test has
3236       # not run yet.  These depmodes are late enough in the game, and
3237       # so weak that their functioning should not be impacted.
3238       am__obj=conftest.${OBJEXT-o}
3239       am__minus_obj=
3240       ;;
3241     none) break ;;
3242     esac
3243     if depmode=$depmode \
3244        source=sub/conftest.c object=$am__obj \
3245        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3246        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3247          >/dev/null 2>conftest.err &&
3248        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3249        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3250        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3251        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3252       # icc doesn't choke on unknown options, it will just issue warnings
3253       # or remarks (even with -Werror).  So we grep stderr for any message
3254       # that says an option was ignored or not supported.
3255       # When given -MP, icc 7.0 and 7.1 complain thusly:
3256       #   icc: Command line warning: ignoring option '-M'; no argument required
3257       # The diagnosis changed in icc 8.0:
3258       #   icc: Command line remark: option '-MP' not supported
3259       if (grep 'ignoring option' conftest.err ||
3260           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3261         am_cv_CC_dependencies_compiler_type=$depmode
3262         break
3263       fi
3264     fi
3265   done
3266
3267   cd ..
3268   rm -rf conftest.dir
3269 else
3270   am_cv_CC_dependencies_compiler_type=none
3271 fi
3272
3273 fi
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3275 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3276 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3277
3278  if
3279   test "x$enable_dependency_tracking" != xno \
3280   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3281   am__fastdepCC_TRUE=
3282   am__fastdepCC_FALSE='#'
3283 else
3284   am__fastdepCC_TRUE='#'
3285   am__fastdepCC_FALSE=
3286 fi
3287
3288
3289 ac_config_headers="$ac_config_headers config.h"
3290
3291
3292 ##########################################################################
3293 # adding the readline library (e.g. with static name 'libreadline.a')
3294 ##########################################################################
3295
3296 # adding the lib to the files to link
3297 LIBS="-lreadline $LIBS"
3298
3299 # introduce the optional configure parameter for a non-standard install prefix of readline
3300
3301 # Check whether --with-readline was given.
3302 if test "${with_readline+set}" = set; then :
3303   withval=$with_readline; readlinePATHSET=1
3304 else
3305   readlinePATHSET=0
3306 fi
3307
3308
3309 # if optional parameter used, extend path flags for compliler and linker
3310 if test $readlinePATHSET = 1 ; then
3311     # extend the compiler and linker flags according to the path set
3312     AM_CXXFLAGS="$AM_CXXFLAGS -I$with_readline/include"
3313     AM_LDFLAGS="$AM_LDFLAGS -L$with_readline/lib"
3314 fi
3315
3316 ##########################################################################
3317
3318
3319 ##########################################################################
3320 # check for readline library
3321 ##########################################################################
3322
3323 # store current *FLAGS and merge with AM_*FLAGS for compilation and linker check
3324 OLD_CXXFLAGS=$CXXFLAGS;
3325 OLD_LDFLAGS=$LDFLAGS;
3326 CXXFLAGS="$AM_CXXFLAGS $CXXFLAGS"
3327 LDFLAGS="$AM_LDFLAGS $LDFLAGS"
3328
3329 # ensure the library to check for is covered by the LIBS variable
3330 OLD_LIBS=$LIBS
3331 LIBS="$LIBS -lreadline"
3332
3333 # check for readline library headers
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the readline library headers" >&5
3335 $as_echo_n "checking for the readline library headers... " >&6; }
3336 # try to compile a file that includes a header of the library readline
3337
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h.  */
3340 #include <readline/readline.h>
3341 _ACEOF
3342 if ac_fn_c_try_compile "$LINENO"; then :
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
3344 $as_echo "found" >&6; }
3345         # try to link the function 'rl_initialize' out of library readline
3346         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the readline library can be linked" >&5
3347 $as_echo_n "checking whether the readline library can be linked... " >&6; }
3348         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3349 /* end confdefs.h.  */
3350 #include <readline/readline.h>
3351 int
3352 main ()
3353 {
3354 rl_initialize();
3355   ;
3356   return 0;
3357 }
3358 _ACEOF
3359 if ac_fn_c_try_link "$LINENO"; then :
3360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3361 $as_echo "yes" >&6; }
3362                 FOUND_readline=1;
3363 else
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3366                 LIBS=$OLD_LIBS;                 FOUND_readline=0;
3367 fi
3368 rm -f core conftest.err conftest.$ac_objext \
3369     conftest$ac_exeext conftest.$ac_ext
3370 else
3371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3372 $as_echo "not found" >&6; }
3373         FOUND_readline=0;
3374 fi
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376
3377 # reset original *FLAGS
3378 CXXFLAGS=$OLD_CXXFLAGS
3379 LDFLAGS=$OLD_LDFLAGS
3380
3381 # handle check results
3382 if test $FOUND_readline != 1; then
3383     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
3384 $as_echo "$as_me: " >&6;}
3385     { $as_echo "$as_me:${as_lineno-$LINENO}: The readline library was not found!" >&5
3386 $as_echo "$as_me: The readline library was not found!" >&6;}
3387     if test  $readlinePATHSET = 1 ; then
3388         { $as_echo "$as_me:${as_lineno-$LINENO}:  The install prefix '$with_readline' for the readline library was set." >&5
3389 $as_echo "$as_me:  The install prefix '$with_readline' for the readline library was set." >&6;}
3390         { $as_echo "$as_me:${as_lineno-$LINENO}:  --> Maybe wrong ???" >&5
3391 $as_echo "$as_me:  --> Maybe wrong ???" >&6;}
3392     else
3393         { $as_echo "$as_me:${as_lineno-$LINENO}:  No non-standard install prefix was set." >&5
3394 $as_echo "$as_me:  No non-standard install prefix was set." >&6;}
3395         { $as_echo "$as_me:${as_lineno-$LINENO}:  --> You might want to use '--with-readline=PREFIX' ?!?" >&5
3396 $as_echo "$as_me:  --> You might want to use '--with-readline=PREFIX' ?!?" >&6;}
3397     fi
3398     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
3399 $as_echo "$as_me: " >&6;}
3400     as_fn_error $? " readline library is an essential dependency : cannot build and stop here !" "$LINENO" 5
3401 fi
3402
3403 ##########################################################################
3404
3405
3406
3407
3408
3409 ac_config_files="$ac_config_files Makefile src/Makefile"
3410
3411 cat >confcache <<\_ACEOF
3412 # This file is a shell script that caches the results of configure
3413 # tests run on this system so they can be shared between configure
3414 # scripts and configure runs, see configure's option --config-cache.
3415 # It is not useful on other systems.  If it contains results you don't
3416 # want to keep, you may remove or edit it.
3417 #
3418 # config.status only pays attention to the cache file if you give it
3419 # the --recheck option to rerun configure.
3420 #
3421 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3422 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3423 # following values.
3424
3425 _ACEOF
3426
3427 # The following way of writing the cache mishandles newlines in values,
3428 # but we know of no workaround that is simple, portable, and efficient.
3429 # So, we kill variables containing newlines.
3430 # Ultrix sh set writes to stderr and can't be redirected directly,
3431 # and sets the high bit in the cache file unless we assign to the vars.
3432 (
3433   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3434     eval ac_val=\$$ac_var
3435     case $ac_val in #(
3436     *${as_nl}*)
3437       case $ac_var in #(
3438       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3439 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3440       esac
3441       case $ac_var in #(
3442       _ | IFS | as_nl) ;; #(
3443       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3444       *) { eval $ac_var=; unset $ac_var;} ;;
3445       esac ;;
3446     esac
3447   done
3448
3449   (set) 2>&1 |
3450     case $as_nl`(ac_space=' '; set) 2>&1` in #(
3451     *${as_nl}ac_space=\ *)
3452       # `set' does not quote correctly, so add quotes: double-quote
3453       # substitution turns \\\\ into \\, and sed turns \\ into \.
3454       sed -n \
3455         "s/'/'\\\\''/g;
3456           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3457       ;; #(
3458     *)
3459       # `set' quotes correctly as required by POSIX, so do not add quotes.
3460       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3461       ;;
3462     esac |
3463     sort
3464 ) |
3465   sed '
3466      /^ac_cv_env_/b end
3467      t clear
3468      :clear
3469      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3470      t end
3471      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3472      :end' >>confcache
3473 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3474   if test -w "$cache_file"; then
3475     test "x$cache_file" != "x/dev/null" &&
3476       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3477 $as_echo "$as_me: updating cache $cache_file" >&6;}
3478     cat confcache >$cache_file
3479   else
3480     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3481 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3482   fi
3483 fi
3484 rm -f confcache
3485
3486 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3487 # Let make expand exec_prefix.
3488 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3489
3490 DEFS=-DHAVE_CONFIG_H
3491
3492 ac_libobjs=
3493 ac_ltlibobjs=
3494 U=
3495 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3496   # 1. Remove the extension, and $U if already installed.
3497   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3498   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3499   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3500   #    will be set to the directory where LIBOBJS objects are built.
3501   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3502   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3503 done
3504 LIBOBJS=$ac_libobjs
3505
3506 LTLIBOBJS=$ac_ltlibobjs
3507
3508
3509  if test -n "$EXEEXT"; then
3510   am__EXEEXT_TRUE=
3511   am__EXEEXT_FALSE='#'
3512 else
3513   am__EXEEXT_TRUE='#'
3514   am__EXEEXT_FALSE=
3515 fi
3516
3517 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
3518   as_fn_error $? "conditional \"AMDEP\" was never defined.
3519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3520 fi
3521 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
3522   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
3523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
3524 fi
3525
3526 : ${CONFIG_STATUS=./config.status}
3527 ac_write_fail=0
3528 ac_clean_files_save=$ac_clean_files
3529 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3531 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3532 as_write_fail=0
3533 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3534 #! $SHELL
3535 # Generated by $as_me.
3536 # Run this file to recreate the current configuration.
3537 # Compiler output produced by configure, useful for debugging
3538 # configure, is in config.log if it exists.
3539
3540 debug=false
3541 ac_cs_recheck=false
3542 ac_cs_silent=false
3543
3544 SHELL=\${CONFIG_SHELL-$SHELL}
3545 export SHELL
3546 _ASEOF
3547 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
3548 ## -------------------- ##
3549 ## M4sh Initialization. ##
3550 ## -------------------- ##
3551
3552 # Be more Bourne compatible
3553 DUALCASE=1; export DUALCASE # for MKS sh
3554 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
3555   emulate sh
3556   NULLCMD=:
3557   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
3558   # is contrary to our usage.  Disable this feature.
3559   alias -g '${1+"$@"}'='"$@"'
3560   setopt NO_GLOB_SUBST
3561 else
3562   case `(set -o) 2>/dev/null` in #(
3563   *posix*) :
3564     set -o posix ;; #(
3565   *) :
3566      ;;
3567 esac
3568 fi
3569
3570
3571 as_nl='
3572 '
3573 export as_nl
3574 # Printing a long string crashes Solaris 7 /usr/bin/printf.
3575 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3576 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
3577 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
3578 # Prefer a ksh shell builtin over an external printf program on Solaris,
3579 # but without wasting forks for bash or zsh.
3580 if test -z "$BASH_VERSION$ZSH_VERSION" \
3581     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
3582   as_echo='print -r --'
3583   as_echo_n='print -rn --'
3584 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
3585   as_echo='printf %s\n'
3586   as_echo_n='printf %s'
3587 else
3588   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
3589     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
3590     as_echo_n='/usr/ucb/echo -n'
3591   else
3592     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
3593     as_echo_n_body='eval
3594       arg=$1;
3595       case $arg in #(
3596       *"$as_nl"*)
3597         expr "X$arg" : "X\\(.*\\)$as_nl";
3598         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
3599       esac;
3600       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
3601     '
3602     export as_echo_n_body
3603     as_echo_n='sh -c $as_echo_n_body as_echo'
3604   fi
3605   export as_echo_body
3606   as_echo='sh -c $as_echo_body as_echo'
3607 fi
3608
3609 # The user is always right.
3610 if test "${PATH_SEPARATOR+set}" != set; then
3611   PATH_SEPARATOR=:
3612   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
3613     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
3614       PATH_SEPARATOR=';'
3615   }
3616 fi
3617
3618
3619 # IFS
3620 # We need space, tab and new line, in precisely that order.  Quoting is
3621 # there to prevent editors from complaining about space-tab.
3622 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3623 # splitting by setting IFS to empty value.)
3624 IFS=" ""        $as_nl"
3625
3626 # Find who we are.  Look in the path if we contain no directory separator.
3627 case $0 in #((
3628   *[\\/]* ) as_myself=$0 ;;
3629   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH
3631 do
3632   IFS=$as_save_IFS
3633   test -z "$as_dir" && as_dir=.
3634     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3635   done
3636 IFS=$as_save_IFS
3637
3638      ;;
3639 esac
3640 # We did not find ourselves, most probably we were run as `sh COMMAND'
3641 # in which case we are not to be found in the path.
3642 if test "x$as_myself" = x; then
3643   as_myself=$0
3644 fi
3645 if test ! -f "$as_myself"; then
3646   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3647   exit 1
3648 fi
3649
3650 # Unset variables that we do not need and which cause bugs (e.g. in
3651 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
3652 # suppresses any "Segmentation fault" message there.  '((' could
3653 # trigger a bug in pdksh 5.2.14.
3654 for as_var in BASH_ENV ENV MAIL MAILPATH
3655 do eval test x\${$as_var+set} = xset \
3656   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
3657 done
3658 PS1='$ '
3659 PS2='> '
3660 PS4='+ '
3661
3662 # NLS nuisances.
3663 LC_ALL=C
3664 export LC_ALL
3665 LANGUAGE=C
3666 export LANGUAGE
3667
3668 # CDPATH.
3669 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3670
3671
3672 # as_fn_error STATUS ERROR [LINENO LOG_FD]
3673 # ----------------------------------------
3674 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
3675 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
3676 # script with STATUS, using 1 if that was 0.
3677 as_fn_error ()
3678 {
3679   as_status=$1; test $as_status -eq 0 && as_status=1
3680   if test "$4"; then
3681     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3682     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
3683   fi
3684   $as_echo "$as_me: error: $2" >&2
3685   as_fn_exit $as_status
3686 } # as_fn_error
3687
3688
3689 # as_fn_set_status STATUS
3690 # -----------------------
3691 # Set $? to STATUS, without forking.
3692 as_fn_set_status ()
3693 {
3694   return $1
3695 } # as_fn_set_status
3696
3697 # as_fn_exit STATUS
3698 # -----------------
3699 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
3700 as_fn_exit ()
3701 {
3702   set +e
3703   as_fn_set_status $1
3704   exit $1
3705 } # as_fn_exit
3706
3707 # as_fn_unset VAR
3708 # ---------------
3709 # Portably unset VAR.
3710 as_fn_unset ()
3711 {
3712   { eval $1=; unset $1;}
3713 }
3714 as_unset=as_fn_unset
3715 # as_fn_append VAR VALUE
3716 # ----------------------
3717 # Append the text in VALUE to the end of the definition contained in VAR. Take
3718 # advantage of any shell optimizations that allow amortized linear growth over
3719 # repeated appends, instead of the typical quadratic growth present in naive
3720 # implementations.
3721 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
3722   eval 'as_fn_append ()
3723   {
3724     eval $1+=\$2
3725   }'
3726 else
3727   as_fn_append ()
3728   {
3729     eval $1=\$$1\$2
3730   }
3731 fi # as_fn_append
3732
3733 # as_fn_arith ARG...
3734 # ------------------
3735 # Perform arithmetic evaluation on the ARGs, and store the result in the
3736 # global $as_val. Take advantage of shells that can avoid forks. The arguments
3737 # must be portable across $(()) and expr.
3738 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
3739   eval 'as_fn_arith ()
3740   {
3741     as_val=$(( $* ))
3742   }'
3743 else
3744   as_fn_arith ()
3745   {
3746     as_val=`expr "$@" || test $? -eq 1`
3747   }
3748 fi # as_fn_arith
3749
3750
3751 if expr a : '\(a\)' >/dev/null 2>&1 &&
3752    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3753   as_expr=expr
3754 else
3755   as_expr=false
3756 fi
3757
3758 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3759   as_basename=basename
3760 else
3761   as_basename=false
3762 fi
3763
3764 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3765   as_dirname=dirname
3766 else
3767   as_dirname=false
3768 fi
3769
3770 as_me=`$as_basename -- "$0" ||
3771 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3772          X"$0" : 'X\(//\)$' \| \
3773          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3774 $as_echo X/"$0" |
3775     sed '/^.*\/\([^/][^/]*\)\/*$/{
3776             s//\1/
3777             q
3778           }
3779           /^X\/\(\/\/\)$/{
3780             s//\1/
3781             q
3782           }
3783           /^X\/\(\/\).*/{
3784             s//\1/
3785             q
3786           }
3787           s/.*/./; q'`
3788
3789 # Avoid depending upon Character Ranges.
3790 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3791 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3792 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3793 as_cr_digits='0123456789'
3794 as_cr_alnum=$as_cr_Letters$as_cr_digits
3795
3796 ECHO_C= ECHO_N= ECHO_T=
3797 case `echo -n x` in #(((((
3798 -n*)
3799   case `echo 'xy\c'` in
3800   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
3801   xy)  ECHO_C='\c';;
3802   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
3803        ECHO_T=' ';;
3804   esac;;
3805 *)
3806   ECHO_N='-n';;
3807 esac
3808
3809 rm -f conf$$ conf$$.exe conf$$.file
3810 if test -d conf$$.dir; then
3811   rm -f conf$$.dir/conf$$.file
3812 else
3813   rm -f conf$$.dir
3814   mkdir conf$$.dir 2>/dev/null
3815 fi
3816 if (echo >conf$$.file) 2>/dev/null; then
3817   if ln -s conf$$.file conf$$ 2>/dev/null; then
3818     as_ln_s='ln -s'
3819     # ... but there are two gotchas:
3820     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3821     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3822     # In both cases, we have to default to `cp -p'.
3823     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3824       as_ln_s='cp -p'
3825   elif ln conf$$.file conf$$ 2>/dev/null; then
3826     as_ln_s=ln
3827   else
3828     as_ln_s='cp -p'
3829   fi
3830 else
3831   as_ln_s='cp -p'
3832 fi
3833 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3834 rmdir conf$$.dir 2>/dev/null
3835
3836
3837 # as_fn_mkdir_p
3838 # -------------
3839 # Create "$as_dir" as a directory, including parents if necessary.
3840 as_fn_mkdir_p ()
3841 {
3842
3843   case $as_dir in #(
3844   -*) as_dir=./$as_dir;;
3845   esac
3846   test -d "$as_dir" || eval $as_mkdir_p || {
3847     as_dirs=
3848     while :; do
3849       case $as_dir in #(
3850       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
3851       *) as_qdir=$as_dir;;
3852       esac
3853       as_dirs="'$as_qdir' $as_dirs"
3854       as_dir=`$as_dirname -- "$as_dir" ||
3855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3856          X"$as_dir" : 'X\(//\)[^/]' \| \
3857          X"$as_dir" : 'X\(//\)$' \| \
3858          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3859 $as_echo X"$as_dir" |
3860     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3861             s//\1/
3862             q
3863           }
3864           /^X\(\/\/\)[^/].*/{
3865             s//\1/
3866             q
3867           }
3868           /^X\(\/\/\)$/{
3869             s//\1/
3870             q
3871           }
3872           /^X\(\/\).*/{
3873             s//\1/
3874             q
3875           }
3876           s/.*/./; q'`
3877       test -d "$as_dir" && break
3878     done
3879     test -z "$as_dirs" || eval "mkdir $as_dirs"
3880   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
3881
3882
3883 } # as_fn_mkdir_p
3884 if mkdir -p . 2>/dev/null; then
3885   as_mkdir_p='mkdir -p "$as_dir"'
3886 else
3887   test -d ./-p && rmdir ./-p
3888   as_mkdir_p=false
3889 fi
3890
3891 if test -x / >/dev/null 2>&1; then
3892   as_test_x='test -x'
3893 else
3894   if ls -dL / >/dev/null 2>&1; then
3895     as_ls_L_option=L
3896   else
3897     as_ls_L_option=
3898   fi
3899   as_test_x='
3900     eval sh -c '\''
3901       if test -d "$1"; then
3902         test -d "$1/.";
3903       else
3904         case $1 in #(
3905         -*)set "./$1";;
3906         esac;
3907         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
3908         ???[sx]*):;;*)false;;esac;fi
3909     '\'' sh
3910   '
3911 fi
3912 as_executable_p=$as_test_x
3913
3914 # Sed expression to map a string onto a valid CPP name.
3915 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3916
3917 # Sed expression to map a string onto a valid variable name.
3918 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3919
3920
3921 exec 6>&1
3922 ## ----------------------------------- ##
3923 ## Main body of $CONFIG_STATUS script. ##
3924 ## ----------------------------------- ##
3925 _ASEOF
3926 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
3927
3928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3929 # Save the log message, to keep $0 and so on meaningful, and to
3930 # report actual input values of CONFIG_FILES etc. instead of their
3931 # values after options handling.
3932 ac_log="
3933 This file was extended by ctdlsh $as_me 1.0, which was
3934 generated by GNU Autoconf 2.67.  Invocation command line was
3935
3936   CONFIG_FILES    = $CONFIG_FILES
3937   CONFIG_HEADERS  = $CONFIG_HEADERS
3938   CONFIG_LINKS    = $CONFIG_LINKS
3939   CONFIG_COMMANDS = $CONFIG_COMMANDS
3940   $ $0 $@
3941
3942 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3943 "
3944
3945 _ACEOF
3946
3947 case $ac_config_files in *"
3948 "*) set x $ac_config_files; shift; ac_config_files=$*;;
3949 esac
3950
3951 case $ac_config_headers in *"
3952 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
3953 esac
3954
3955
3956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3957 # Files that config.status was made for.
3958 config_files="$ac_config_files"
3959 config_headers="$ac_config_headers"
3960 config_commands="$ac_config_commands"
3961
3962 _ACEOF
3963
3964 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3965 ac_cs_usage="\
3966 \`$as_me' instantiates files and other configuration actions
3967 from templates according to the current configuration.  Unless the files
3968 and actions are specified as TAGs, all are instantiated by default.
3969
3970 Usage: $0 [OPTION]... [TAG]...
3971
3972   -h, --help       print this help, then exit
3973   -V, --version    print version number and configuration settings, then exit
3974       --config     print configuration, then exit
3975   -q, --quiet, --silent
3976                    do not print progress messages
3977   -d, --debug      don't remove temporary files
3978       --recheck    update $as_me by reconfiguring in the same conditions
3979       --file=FILE[:TEMPLATE]
3980                    instantiate the configuration file FILE
3981       --header=FILE[:TEMPLATE]
3982                    instantiate the configuration header FILE
3983
3984 Configuration files:
3985 $config_files
3986
3987 Configuration headers:
3988 $config_headers
3989
3990 Configuration commands:
3991 $config_commands
3992
3993 Report bugs to <bug-automake@gnu.org>."
3994
3995 _ACEOF
3996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3997 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
3998 ac_cs_version="\\
3999 ctdlsh config.status 1.0
4000 configured by $0, generated by GNU Autoconf 2.67,
4001   with options \\"\$ac_cs_config\\"
4002
4003 Copyright (C) 2010 Free Software Foundation, Inc.
4004 This config.status script is free software; the Free Software Foundation
4005 gives unlimited permission to copy, distribute and modify it."
4006
4007 ac_pwd='$ac_pwd'
4008 srcdir='$srcdir'
4009 INSTALL='$INSTALL'
4010 MKDIR_P='$MKDIR_P'
4011 AWK='$AWK'
4012 test -n "\$AWK" || AWK=awk
4013 _ACEOF
4014
4015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4016 # The default lists apply if the user does not specify any file.
4017 ac_need_defaults=:
4018 while test $# != 0
4019 do
4020   case $1 in
4021   --*=?*)
4022     ac_option=`expr "X$1" : 'X\([^=]*\)='`
4023     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4024     ac_shift=:
4025     ;;
4026   --*=)
4027     ac_option=`expr "X$1" : 'X\([^=]*\)='`
4028     ac_optarg=
4029     ac_shift=:
4030     ;;
4031   *)
4032     ac_option=$1
4033     ac_optarg=$2
4034     ac_shift=shift
4035     ;;
4036   esac
4037
4038   case $ac_option in
4039   # Handling of the options.
4040   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4041     ac_cs_recheck=: ;;
4042   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4043     $as_echo "$ac_cs_version"; exit ;;
4044   --config | --confi | --conf | --con | --co | --c )
4045     $as_echo "$ac_cs_config"; exit ;;
4046   --debug | --debu | --deb | --de | --d | -d )
4047     debug=: ;;
4048   --file | --fil | --fi | --f )
4049     $ac_shift
4050     case $ac_optarg in
4051     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4052     '') as_fn_error $? "missing file argument" ;;
4053     esac
4054     as_fn_append CONFIG_FILES " '$ac_optarg'"
4055     ac_need_defaults=false;;
4056   --header | --heade | --head | --hea )
4057     $ac_shift
4058     case $ac_optarg in
4059     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4060     esac
4061     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4062     ac_need_defaults=false;;
4063   --he | --h)
4064     # Conflict between --help and --header
4065     as_fn_error $? "ambiguous option: \`$1'
4066 Try \`$0 --help' for more information.";;
4067   --help | --hel | -h )
4068     $as_echo "$ac_cs_usage"; exit ;;
4069   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4070   | -silent | --silent | --silen | --sile | --sil | --si | --s)
4071     ac_cs_silent=: ;;
4072
4073   # This is an error.
4074   -*) as_fn_error $? "unrecognized option: \`$1'
4075 Try \`$0 --help' for more information." ;;
4076
4077   *) as_fn_append ac_config_targets " $1"
4078      ac_need_defaults=false ;;
4079
4080   esac
4081   shift
4082 done
4083
4084 ac_configure_extra_args=
4085
4086 if $ac_cs_silent; then
4087   exec 6>/dev/null
4088   ac_configure_extra_args="$ac_configure_extra_args --silent"
4089 fi
4090
4091 _ACEOF
4092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4093 if \$ac_cs_recheck; then
4094   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4095   shift
4096   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4097   CONFIG_SHELL='$SHELL'
4098   export CONFIG_SHELL
4099   exec "\$@"
4100 fi
4101
4102 _ACEOF
4103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4104 exec 5>>config.log
4105 {
4106   echo
4107   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4108 ## Running $as_me. ##
4109 _ASBOX
4110   $as_echo "$ac_log"
4111 } >&5
4112
4113 _ACEOF
4114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4115 #
4116 # INIT-COMMANDS
4117 #
4118 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4119
4120 _ACEOF
4121
4122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4123
4124 # Handling of arguments.
4125 for ac_config_target in $ac_config_targets
4126 do
4127   case $ac_config_target in
4128     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4129     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4130     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4131     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4132
4133   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
4134   esac
4135 done
4136
4137
4138 # If the user did not use the arguments to specify the items to instantiate,
4139 # then the envvar interface is used.  Set only those that are not.
4140 # We use the long form for the default assignment because of an extremely
4141 # bizarre bug on SunOS 4.1.3.
4142 if $ac_need_defaults; then
4143   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4144   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4145   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4146 fi
4147
4148 # Have a temporary directory for convenience.  Make it in the build tree
4149 # simply because there is no reason against having it here, and in addition,
4150 # creating and moving files from /tmp can sometimes cause problems.
4151 # Hook for its removal unless debugging.
4152 # Note that there is a small window in which the directory will not be cleaned:
4153 # after its creation but before its name has been assigned to `$tmp'.
4154 $debug ||
4155 {
4156   tmp=
4157   trap 'exit_status=$?
4158   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4159 ' 0
4160   trap 'as_fn_exit 1' 1 2 13 15
4161 }
4162 # Create a (secure) tmp directory for tmp files.
4163
4164 {
4165   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4166   test -n "$tmp" && test -d "$tmp"
4167 }  ||
4168 {
4169   tmp=./conf$$-$RANDOM
4170   (umask 077 && mkdir "$tmp")
4171 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4172
4173 # Set up the scripts for CONFIG_FILES section.
4174 # No need to generate them if there are no CONFIG_FILES.
4175 # This happens for instance with `./config.status config.h'.
4176 if test -n "$CONFIG_FILES"; then
4177
4178
4179 ac_cr=`echo X | tr X '\015'`
4180 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4181 # But we know of no other shell where ac_cr would be empty at this
4182 # point, so we can use a bashism as a fallback.
4183 if test "x$ac_cr" = x; then
4184   eval ac_cr=\$\'\\r\'
4185 fi
4186 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4187 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4188   ac_cs_awk_cr='\\r'
4189 else
4190   ac_cs_awk_cr=$ac_cr
4191 fi
4192
4193 echo 'BEGIN {' >"$tmp/subs1.awk" &&
4194 _ACEOF
4195
4196
4197 {
4198   echo "cat >conf$$subs.awk <<_ACEOF" &&
4199   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4200   echo "_ACEOF"
4201 } >conf$$subs.sh ||
4202   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4203 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4204 ac_delim='%!_!# '
4205 for ac_last_try in false false false false false :; do
4206   . ./conf$$subs.sh ||
4207     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4208
4209   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4210   if test $ac_delim_n = $ac_delim_num; then
4211     break
4212   elif $ac_last_try; then
4213     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4214   else
4215     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4216   fi
4217 done
4218 rm -f conf$$subs.sh
4219
4220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4221 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
4222 _ACEOF
4223 sed -n '
4224 h
4225 s/^/S["/; s/!.*/"]=/
4226 p
4227 g
4228 s/^[^!]*!//
4229 :repl
4230 t repl
4231 s/'"$ac_delim"'$//
4232 t delim
4233 :nl
4234 h
4235 s/\(.\{148\}\)..*/\1/
4236 t more1
4237 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4238 p
4239 n
4240 b repl
4241 :more1
4242 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4243 p
4244 g
4245 s/.\{148\}//
4246 t nl
4247 :delim
4248 h
4249 s/\(.\{148\}\)..*/\1/
4250 t more2
4251 s/["\\]/\\&/g; s/^/"/; s/$/"/
4252 p
4253 b
4254 :more2
4255 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4256 p
4257 g
4258 s/.\{148\}//
4259 t delim
4260 ' <conf$$subs.awk | sed '
4261 /^[^""]/{
4262   N
4263   s/\n//
4264 }
4265 ' >>$CONFIG_STATUS || ac_write_fail=1
4266 rm -f conf$$subs.awk
4267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4268 _ACAWK
4269 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
4270   for (key in S) S_is_set[key] = 1
4271   FS = "\a"
4272
4273 }
4274 {
4275   line = $ 0
4276   nfields = split(line, field, "@")
4277   substed = 0
4278   len = length(field[1])
4279   for (i = 2; i < nfields; i++) {
4280     key = field[i]
4281     keylen = length(key)
4282     if (S_is_set[key]) {
4283       value = S[key]
4284       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4285       len += length(value) + length(field[++i])
4286       substed = 1
4287     } else
4288       len += 1 + keylen
4289   }
4290
4291   print line
4292 }
4293
4294 _ACAWK
4295 _ACEOF
4296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4297 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4298   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4299 else
4300   cat
4301 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4302   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4303 _ACEOF
4304
4305 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4306 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4307 # trailing colons and then remove the whole line if VPATH becomes empty
4308 # (actually we leave an empty line to preserve line numbers).
4309 if test "x$srcdir" = x.; then
4310   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
4311 h
4312 s///
4313 s/^/:/
4314 s/[      ]*$/:/
4315 s/:\$(srcdir):/:/g
4316 s/:\${srcdir}:/:/g
4317 s/:@srcdir@:/:/g
4318 s/^:*//
4319 s/:*$//
4320 x
4321 s/\(=[   ]*\).*/\1/
4322 G
4323 s/\n//
4324 s/^[^=]*=[       ]*$//
4325 }'
4326 fi
4327
4328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4329 fi # test -n "$CONFIG_FILES"
4330
4331 # Set up the scripts for CONFIG_HEADERS section.
4332 # No need to generate them if there are no CONFIG_HEADERS.
4333 # This happens for instance with `./config.status Makefile'.
4334 if test -n "$CONFIG_HEADERS"; then
4335 cat >"$tmp/defines.awk" <<\_ACAWK ||
4336 BEGIN {
4337 _ACEOF
4338
4339 # Transform confdefs.h into an awk script `defines.awk', embedded as
4340 # here-document in config.status, that substitutes the proper values into
4341 # config.h.in to produce config.h.
4342
4343 # Create a delimiter string that does not exist in confdefs.h, to ease
4344 # handling of long lines.
4345 ac_delim='%!_!# '
4346 for ac_last_try in false false :; do
4347   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
4348   if test -z "$ac_t"; then
4349     break
4350   elif $ac_last_try; then
4351     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4352   else
4353     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4354   fi
4355 done
4356
4357 # For the awk script, D is an array of macro values keyed by name,
4358 # likewise P contains macro parameters if any.  Preserve backslash
4359 # newline sequences.
4360
4361 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4362 sed -n '
4363 s/.\{148\}/&'"$ac_delim"'/g
4364 t rset
4365 :rset
4366 s/^[     ]*#[    ]*define[       ][      ]*/ /
4367 t def
4368 d
4369 :def
4370 s/\\$//
4371 t bsnl
4372 s/["\\]/\\&/g
4373 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
4374 D["\1"]=" \3"/p
4375 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
4376 d
4377 :bsnl
4378 s/["\\]/\\&/g
4379 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
4380 D["\1"]=" \3\\\\\\n"\\/p
4381 t cont
4382 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4383 t cont
4384 d
4385 :cont
4386 n
4387 s/.\{148\}/&'"$ac_delim"'/g
4388 t clear
4389 :clear
4390 s/\\$//
4391 t bsnlc
4392 s/["\\]/\\&/g; s/^/"/; s/$/"/p
4393 d
4394 :bsnlc
4395 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4396 b cont
4397 ' <confdefs.h | sed '
4398 s/'"$ac_delim"'/"\\\
4399 "/g' >>$CONFIG_STATUS || ac_write_fail=1
4400
4401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4402   for (key in D) D_is_set[key] = 1
4403   FS = "\a"
4404 }
4405 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4406   line = \$ 0
4407   split(line, arg, " ")
4408   if (arg[1] == "#") {
4409     defundef = arg[2]
4410     mac1 = arg[3]
4411   } else {
4412     defundef = substr(arg[1], 2)
4413     mac1 = arg[2]
4414   }
4415   split(mac1, mac2, "(") #)
4416   macro = mac2[1]
4417   prefix = substr(line, 1, index(line, defundef) - 1)
4418   if (D_is_set[macro]) {
4419     # Preserve the white space surrounding the "#".
4420     print prefix "define", macro P[macro] D[macro]
4421     next
4422   } else {
4423     # Replace #undef with comments.  This is necessary, for example,
4424     # in the case of _POSIX_SOURCE, which is predefined and required
4425     # on some systems where configure will not decide to define it.
4426     if (defundef == "undef") {
4427       print "/*", prefix defundef, macro, "*/"
4428       next
4429     }
4430   }
4431 }
4432 { print }
4433 _ACAWK
4434 _ACEOF
4435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4436   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4437 fi # test -n "$CONFIG_HEADERS"
4438
4439
4440 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
4441 shift
4442 for ac_tag
4443 do
4444   case $ac_tag in
4445   :[FHLC]) ac_mode=$ac_tag; continue;;
4446   esac
4447   case $ac_mode$ac_tag in
4448   :[FHL]*:*);;
4449   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
4450   :[FH]-) ac_tag=-:-;;
4451   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4452   esac
4453   ac_save_IFS=$IFS
4454   IFS=:
4455   set x $ac_tag
4456   IFS=$ac_save_IFS
4457   shift
4458   ac_file=$1
4459   shift
4460
4461   case $ac_mode in
4462   :L) ac_source=$1;;
4463   :[FH])
4464     ac_file_inputs=
4465     for ac_f
4466     do
4467       case $ac_f in
4468       -) ac_f="$tmp/stdin";;
4469       *) # Look for the file first in the build tree, then in the source tree
4470          # (if the path is not absolute).  The absolute path cannot be DOS-style,
4471          # because $ac_f cannot contain `:'.
4472          test -f "$ac_f" ||
4473            case $ac_f in
4474            [\\/$]*) false;;
4475            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4476            esac ||
4477            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
4478       esac
4479       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4480       as_fn_append ac_file_inputs " '$ac_f'"
4481     done
4482
4483     # Let's still pretend it is `configure' which instantiates (i.e., don't
4484     # use $as_me), people would be surprised to read:
4485     #    /* config.h.  Generated by config.status.  */
4486     configure_input='Generated from '`
4487           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4488         `' by configure.'
4489     if test x"$ac_file" != x-; then
4490       configure_input="$ac_file.  $configure_input"
4491       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4492 $as_echo "$as_me: creating $ac_file" >&6;}
4493     fi
4494     # Neutralize special characters interpreted by sed in replacement strings.
4495     case $configure_input in #(
4496     *\&* | *\|* | *\\* )
4497        ac_sed_conf_input=`$as_echo "$configure_input" |
4498        sed 's/[\\\\&|]/\\\\&/g'`;; #(
4499     *) ac_sed_conf_input=$configure_input;;
4500     esac
4501
4502     case $ac_tag in
4503     *:-:* | *:-) cat >"$tmp/stdin" \
4504       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
4505     esac
4506     ;;
4507   esac
4508
4509   ac_dir=`$as_dirname -- "$ac_file" ||
4510 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4511          X"$ac_file" : 'X\(//\)[^/]' \| \
4512          X"$ac_file" : 'X\(//\)$' \| \
4513          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4514 $as_echo X"$ac_file" |
4515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4516             s//\1/
4517             q
4518           }
4519           /^X\(\/\/\)[^/].*/{
4520             s//\1/
4521             q
4522           }
4523           /^X\(\/\/\)$/{
4524             s//\1/
4525             q
4526           }
4527           /^X\(\/\).*/{
4528             s//\1/
4529             q
4530           }
4531           s/.*/./; q'`
4532   as_dir="$ac_dir"; as_fn_mkdir_p
4533   ac_builddir=.
4534
4535 case "$ac_dir" in
4536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4537 *)
4538   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4539   # A ".." for each directory in $ac_dir_suffix.
4540   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4541   case $ac_top_builddir_sub in
4542   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4543   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4544   esac ;;
4545 esac
4546 ac_abs_top_builddir=$ac_pwd
4547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4548 # for backward compatibility:
4549 ac_top_builddir=$ac_top_build_prefix
4550
4551 case $srcdir in
4552   .)  # We are building in place.
4553     ac_srcdir=.
4554     ac_top_srcdir=$ac_top_builddir_sub
4555     ac_abs_top_srcdir=$ac_pwd ;;
4556   [\\/]* | ?:[\\/]* )  # Absolute name.
4557     ac_srcdir=$srcdir$ac_dir_suffix;
4558     ac_top_srcdir=$srcdir
4559     ac_abs_top_srcdir=$srcdir ;;
4560   *) # Relative name.
4561     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4562     ac_top_srcdir=$ac_top_build_prefix$srcdir
4563     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4564 esac
4565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4566
4567
4568   case $ac_mode in
4569   :F)
4570   #
4571   # CONFIG_FILE
4572   #
4573
4574   case $INSTALL in
4575   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4576   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
4577   esac
4578   ac_MKDIR_P=$MKDIR_P
4579   case $MKDIR_P in
4580   [\\/$]* | ?:[\\/]* ) ;;
4581   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
4582   esac
4583 _ACEOF
4584
4585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4586 # If the template does not know about datarootdir, expand it.
4587 # FIXME: This hack should be removed a few years after 2.60.
4588 ac_datarootdir_hack=; ac_datarootdir_seen=
4589 ac_sed_dataroot='
4590 /datarootdir/ {
4591   p
4592   q
4593 }
4594 /@datadir@/p
4595 /@docdir@/p
4596 /@infodir@/p
4597 /@localedir@/p
4598 /@mandir@/p'
4599 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4600 *datarootdir*) ac_datarootdir_seen=yes;;
4601 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4602   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4603 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4604 _ACEOF
4605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4606   ac_datarootdir_hack='
4607   s&@datadir@&$datadir&g
4608   s&@docdir@&$docdir&g
4609   s&@infodir@&$infodir&g
4610   s&@localedir@&$localedir&g
4611   s&@mandir@&$mandir&g
4612   s&\\\${datarootdir}&$datarootdir&g' ;;
4613 esac
4614 _ACEOF
4615
4616 # Neutralize VPATH when `$srcdir' = `.'.
4617 # Shell code in configure.ac might set extrasub.
4618 # FIXME: do we really want to maintain this feature?
4619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4620 ac_sed_extra="$ac_vpsub
4621 $extrasub
4622 _ACEOF
4623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4624 :t
4625 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4626 s|@configure_input@|$ac_sed_conf_input|;t t
4627 s&@top_builddir@&$ac_top_builddir_sub&;t t
4628 s&@top_build_prefix@&$ac_top_build_prefix&;t t
4629 s&@srcdir@&$ac_srcdir&;t t
4630 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4631 s&@top_srcdir@&$ac_top_srcdir&;t t
4632 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4633 s&@builddir@&$ac_builddir&;t t
4634 s&@abs_builddir@&$ac_abs_builddir&;t t
4635 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4636 s&@INSTALL@&$ac_INSTALL&;t t
4637 s&@MKDIR_P@&$ac_MKDIR_P&;t t
4638 $ac_datarootdir_hack
4639 "
4640 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
4641   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4642
4643 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4644   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4645   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4646   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4647 which seems to be undefined.  Please make sure it is defined" >&5
4648 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4649 which seems to be undefined.  Please make sure it is defined" >&2;}
4650
4651   rm -f "$tmp/stdin"
4652   case $ac_file in
4653   -) cat "$tmp/out" && rm -f "$tmp/out";;
4654   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
4655   esac \
4656   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4657  ;;
4658   :H)
4659   #
4660   # CONFIG_HEADER
4661   #
4662   if test x"$ac_file" != x-; then
4663     {
4664       $as_echo "/* $configure_input  */" \
4665       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
4666     } >"$tmp/config.h" \
4667       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4668     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
4669       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
4670 $as_echo "$as_me: $ac_file is unchanged" >&6;}
4671     else
4672       rm -f "$ac_file"
4673       mv "$tmp/config.h" "$ac_file" \
4674         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4675     fi
4676   else
4677     $as_echo "/* $configure_input  */" \
4678       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
4679       || as_fn_error $? "could not create -" "$LINENO" 5
4680   fi
4681 # Compute "$ac_file"'s index in $config_headers.
4682 _am_arg="$ac_file"
4683 _am_stamp_count=1
4684 for _am_header in $config_headers :; do
4685   case $_am_header in
4686     $_am_arg | $_am_arg:* )
4687       break ;;
4688     * )
4689       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
4690   esac
4691 done
4692 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
4693 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4694          X"$_am_arg" : 'X\(//\)[^/]' \| \
4695          X"$_am_arg" : 'X\(//\)$' \| \
4696          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
4697 $as_echo X"$_am_arg" |
4698     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4699             s//\1/
4700             q
4701           }
4702           /^X\(\/\/\)[^/].*/{
4703             s//\1/
4704             q
4705           }
4706           /^X\(\/\/\)$/{
4707             s//\1/
4708             q
4709           }
4710           /^X\(\/\).*/{
4711             s//\1/
4712             q
4713           }
4714           s/.*/./; q'`/stamp-h$_am_stamp_count
4715  ;;
4716
4717   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
4718 $as_echo "$as_me: executing $ac_file commands" >&6;}
4719  ;;
4720   esac
4721
4722
4723   case $ac_file$ac_mode in
4724     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
4725   # Autoconf 2.62 quotes --file arguments for eval, but not when files
4726   # are listed without --file.  Let's play safe and only enable the eval
4727   # if we detect the quoting.
4728   case $CONFIG_FILES in
4729   *\'*) eval set x "$CONFIG_FILES" ;;
4730   *)   set x $CONFIG_FILES ;;
4731   esac
4732   shift
4733   for mf
4734   do
4735     # Strip MF so we end up with the name of the file.
4736     mf=`echo "$mf" | sed -e 's/:.*$//'`
4737     # Check whether this is an Automake generated Makefile or not.
4738     # We used to match only the files named `Makefile.in', but
4739     # some people rename them; so instead we look at the file content.
4740     # Grep'ing the first line is not enough: some people post-process
4741     # each Makefile.in and add a new line on top of each file to say so.
4742     # Grep'ing the whole file is not good either: AIX grep has a line
4743     # limit of 2048, but all sed's we know have understand at least 4000.
4744     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
4745       dirpart=`$as_dirname -- "$mf" ||
4746 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4747          X"$mf" : 'X\(//\)[^/]' \| \
4748          X"$mf" : 'X\(//\)$' \| \
4749          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
4750 $as_echo X"$mf" |
4751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4752             s//\1/
4753             q
4754           }
4755           /^X\(\/\/\)[^/].*/{
4756             s//\1/
4757             q
4758           }
4759           /^X\(\/\/\)$/{
4760             s//\1/
4761             q
4762           }
4763           /^X\(\/\).*/{
4764             s//\1/
4765             q
4766           }
4767           s/.*/./; q'`
4768     else
4769       continue
4770     fi
4771     # Extract the definition of DEPDIR, am__include, and am__quote
4772     # from the Makefile without running `make'.
4773     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
4774     test -z "$DEPDIR" && continue
4775     am__include=`sed -n 's/^am__include = //p' < "$mf"`
4776     test -z "am__include" && continue
4777     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
4778     # When using ansi2knr, U may be empty or an underscore; expand it
4779     U=`sed -n 's/^U = //p' < "$mf"`
4780     # Find all dependency output files, they are included files with
4781     # $(DEPDIR) in their names.  We invoke sed twice because it is the
4782     # simplest approach to changing $(DEPDIR) to its actual value in the
4783     # expansion.
4784     for file in `sed -n "
4785       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
4786          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4787       # Make sure the directory exists.
4788       test -f "$dirpart/$file" && continue
4789       fdir=`$as_dirname -- "$file" ||
4790 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4791          X"$file" : 'X\(//\)[^/]' \| \
4792          X"$file" : 'X\(//\)$' \| \
4793          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
4794 $as_echo X"$file" |
4795     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4796             s//\1/
4797             q
4798           }
4799           /^X\(\/\/\)[^/].*/{
4800             s//\1/
4801             q
4802           }
4803           /^X\(\/\/\)$/{
4804             s//\1/
4805             q
4806           }
4807           /^X\(\/\).*/{
4808             s//\1/
4809             q
4810           }
4811           s/.*/./; q'`
4812       as_dir=$dirpart/$fdir; as_fn_mkdir_p
4813       # echo "creating $dirpart/$file"
4814       echo '# dummy' > "$dirpart/$file"
4815     done
4816   done
4817 }
4818  ;;
4819
4820   esac
4821 done # for ac_tag
4822
4823
4824 as_fn_exit 0
4825 _ACEOF
4826 ac_clean_files=$ac_clean_files_save
4827
4828 test $ac_write_fail = 0 ||
4829   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
4830
4831
4832 # configure is writing to config.log, and then calls config.status.
4833 # config.status does its own redirection, appending to config.log.
4834 # Unfortunately, on DOS this fails, as config.log is still kept open
4835 # by configure, so config.status won't be able to write to it; its
4836 # output is simply discarded.  So we exec the FD to /dev/null,
4837 # effectively closing config.log, so it can be properly (re)opened and
4838 # appended to by config.status.  When coming back to configure, we
4839 # need to make the FD available again.
4840 if test "$no_create" != yes; then
4841   ac_cs_success=:
4842   ac_config_status_args=
4843   test "$silent" = yes &&
4844     ac_config_status_args="$ac_config_status_args --quiet"
4845   exec 5>/dev/null
4846   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4847   exec 5>>config.log
4848   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4849   # would make configure fail if this is the last instruction.
4850   $ac_cs_success || as_fn_exit 1
4851 fi
4852 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
4853   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
4854 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
4855 fi
4856