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