add changelog
[platform/upstream/gdbm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gdbm 1.11.
4 #
5 # Report bugs to <bug-gdbm@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-gdbm@gnu.org
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='gdbm'
592 PACKAGE_TARNAME='gdbm'
593 PACKAGE_VERSION='1.11'
594 PACKAGE_STRING='gdbm 1.11'
595 PACKAGE_BUGREPORT='bug-gdbm@gnu.org'
596 PACKAGE_URL='http://www.gnu.org/software/gdbm'
597
598 ac_unique_file="src/gdbmdefs.h"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 gt_needs=
636 ac_header_list=
637 ac_subst_vars='am__EXEEXT_FALSE
638 am__EXEEXT_TRUE
639 LTLIBOBJS
640 LIBOBJS
641 AUTOM4TE
642 ENABLE_EXPORT_FALSE
643 ENABLE_EXPORT_TRUE
644 COMPAT_OPT_FALSE
645 COMPAT_OPT_TRUE
646 GDBM183_INCLUDEDIR
647 GDBM183_LIBDIR
648 GDBM183_LIBRARY
649 POSUB
650 LTLIBINTL
651 LIBINTL
652 INTLLIBS
653 LTLIBICONV
654 LIBICONV
655 INTL_MACOSX_LIBS
656 XGETTEXT_EXTRA_OPTIONS
657 MSGMERGE
658 XGETTEXT_015
659 XGETTEXT
660 GMSGFMT_015
661 MSGFMT_015
662 GMSGFMT
663 MSGFMT
664 GETTEXT_MACRO_VERSION
665 USE_NLS
666 GDBM_COUNT_T
667 LEXLIB
668 LEX_OUTPUT_ROOT
669 LEX
670 YFLAGS
671 YACC
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 EGREP
690 GREP
691 SED
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 LIBTOOL
701 CPP
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__quote
710 am__include
711 DEPDIR
712 OBJEXT
713 EXEEXT
714 ac_ct_CC
715 CPPFLAGS
716 LDFLAGS
717 CFLAGS
718 CC
719 GDBM_VERSION_PATCH
720 GDBM_VERSION_MINOR
721 GDBM_VERSION_MAJOR
722 AM_BACKSLASH
723 AM_DEFAULT_VERBOSITY
724 AM_DEFAULT_V
725 AM_V
726 am__untar
727 am__tar
728 AMTAR
729 am__leading_dot
730 SET_MAKE
731 AWK
732 mkdir_p
733 MKDIR_P
734 INSTALL_STRIP_PROGRAM
735 STRIP
736 install_sh
737 MAKEINFO
738 AUTOHEADER
739 AUTOMAKE
740 AUTOCONF
741 ACLOCAL
742 VERSION
743 PACKAGE
744 CYGPATH_W
745 am__isrc
746 INSTALL_DATA
747 INSTALL_SCRIPT
748 INSTALL_PROGRAM
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 localstatedir
769 sharedstatedir
770 sysconfdir
771 datadir
772 datarootdir
773 libexecdir
774 sbindir
775 bindir
776 program_transform_name
777 prefix
778 exec_prefix
779 PACKAGE_URL
780 PACKAGE_BUGREPORT
781 PACKAGE_STRING
782 PACKAGE_VERSION
783 PACKAGE_TARNAME
784 PACKAGE_NAME
785 PATH_SEPARATOR
786 SHELL'
787 ac_subst_files=''
788 ac_user_opts='
789 enable_option_checking
790 enable_silent_rules
791 enable_memory_mapped_io
792 enable_libgdbm_compat
793 enable_gdbm_export
794 with_gdbm183_library
795 with_gdbm183_libdir
796 with_gdbm183_includedir
797 enable_dependency_tracking
798 enable_shared
799 enable_static
800 with_pic
801 enable_fast_install
802 with_gnu_ld
803 with_sysroot
804 enable_libtool_lock
805 enable_largefile
806 enable_nls
807 enable_rpath
808 with_libiconv_prefix
809 with_libintl_prefix
810 '
811       ac_precious_vars='build_alias
812 host_alias
813 target_alias
814 CC
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
819 CPP
820 YACC
821 YFLAGS'
822
823
824 # Initialize some variables set by options.
825 ac_init_help=
826 ac_init_version=false
827 ac_unrecognized_opts=
828 ac_unrecognized_sep=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
831 cache_file=/dev/null
832 exec_prefix=NONE
833 no_create=
834 no_recursion=
835 prefix=NONE
836 program_prefix=NONE
837 program_suffix=NONE
838 program_transform_name=s,x,x,
839 silent=
840 site=
841 srcdir=
842 verbose=
843 x_includes=NONE
844 x_libraries=NONE
845
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
864 htmldir='${docdir}'
865 dvidir='${docdir}'
866 pdfdir='${docdir}'
867 psdir='${docdir}'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
871
872 ac_prev=
873 ac_dashdash=
874 for ac_option
875 do
876   # If the previous option needs an argument, assign it.
877   if test -n "$ac_prev"; then
878     eval $ac_prev=\$ac_option
879     ac_prev=
880     continue
881   fi
882
883   case $ac_option in
884   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885   *=)   ac_optarg= ;;
886   *)    ac_optarg=yes ;;
887   esac
888
889   # Accept the important Cygnus configure options, so we can diagnose typos.
890
891   case $ac_dashdash$ac_option in
892   --)
893     ac_dashdash=yes ;;
894
895   -bindir | --bindir | --bindi | --bind | --bin | --bi)
896     ac_prev=bindir ;;
897   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898     bindir=$ac_optarg ;;
899
900   -build | --build | --buil | --bui | --bu)
901     ac_prev=build_alias ;;
902   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
903     build_alias=$ac_optarg ;;
904
905   -cache-file | --cache-file | --cache-fil | --cache-fi \
906   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
907     ac_prev=cache_file ;;
908   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
909   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
910     cache_file=$ac_optarg ;;
911
912   --config-cache | -C)
913     cache_file=config.cache ;;
914
915   -datadir | --datadir | --datadi | --datad)
916     ac_prev=datadir ;;
917   -datadir=* | --datadir=* | --datadi=* | --datad=*)
918     datadir=$ac_optarg ;;
919
920   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
921   | --dataroo | --dataro | --datar)
922     ac_prev=datarootdir ;;
923   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
924   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
925     datarootdir=$ac_optarg ;;
926
927   -disable-* | --disable-*)
928     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
929     # Reject names that are not valid shell variable names.
930     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931       as_fn_error $? "invalid feature name: $ac_useropt"
932     ac_useropt_orig=$ac_useropt
933     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934     case $ac_user_opts in
935       *"
936 "enable_$ac_useropt"
937 "*) ;;
938       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939          ac_unrecognized_sep=', ';;
940     esac
941     eval enable_$ac_useropt=no ;;
942
943   -docdir | --docdir | --docdi | --doc | --do)
944     ac_prev=docdir ;;
945   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946     docdir=$ac_optarg ;;
947
948   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949     ac_prev=dvidir ;;
950   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951     dvidir=$ac_optarg ;;
952
953   -enable-* | --enable-*)
954     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955     # Reject names that are not valid shell variable names.
956     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957       as_fn_error $? "invalid feature name: $ac_useropt"
958     ac_useropt_orig=$ac_useropt
959     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960     case $ac_user_opts in
961       *"
962 "enable_$ac_useropt"
963 "*) ;;
964       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
965          ac_unrecognized_sep=', ';;
966     esac
967     eval enable_$ac_useropt=\$ac_optarg ;;
968
969   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
970   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
971   | --exec | --exe | --ex)
972     ac_prev=exec_prefix ;;
973   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
974   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
975   | --exec=* | --exe=* | --ex=*)
976     exec_prefix=$ac_optarg ;;
977
978   -gas | --gas | --ga | --g)
979     # Obsolete; use --with-gas.
980     with_gas=yes ;;
981
982   -help | --help | --hel | --he | -h)
983     ac_init_help=long ;;
984   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
985     ac_init_help=recursive ;;
986   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
987     ac_init_help=short ;;
988
989   -host | --host | --hos | --ho)
990     ac_prev=host_alias ;;
991   -host=* | --host=* | --hos=* | --ho=*)
992     host_alias=$ac_optarg ;;
993
994   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
995     ac_prev=htmldir ;;
996   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
997   | --ht=*)
998     htmldir=$ac_optarg ;;
999
1000   -includedir | --includedir | --includedi | --included | --include \
1001   | --includ | --inclu | --incl | --inc)
1002     ac_prev=includedir ;;
1003   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1004   | --includ=* | --inclu=* | --incl=* | --inc=*)
1005     includedir=$ac_optarg ;;
1006
1007   -infodir | --infodir | --infodi | --infod | --info | --inf)
1008     ac_prev=infodir ;;
1009   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1010     infodir=$ac_optarg ;;
1011
1012   -libdir | --libdir | --libdi | --libd)
1013     ac_prev=libdir ;;
1014   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1015     libdir=$ac_optarg ;;
1016
1017   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1018   | --libexe | --libex | --libe)
1019     ac_prev=libexecdir ;;
1020   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1021   | --libexe=* | --libex=* | --libe=*)
1022     libexecdir=$ac_optarg ;;
1023
1024   -localedir | --localedir | --localedi | --localed | --locale)
1025     ac_prev=localedir ;;
1026   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1027     localedir=$ac_optarg ;;
1028
1029   -localstatedir | --localstatedir | --localstatedi | --localstated \
1030   | --localstate | --localstat | --localsta | --localst | --locals)
1031     ac_prev=localstatedir ;;
1032   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1033   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1034     localstatedir=$ac_optarg ;;
1035
1036   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1037     ac_prev=mandir ;;
1038   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1039     mandir=$ac_optarg ;;
1040
1041   -nfp | --nfp | --nf)
1042     # Obsolete; use --without-fp.
1043     with_fp=no ;;
1044
1045   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1046   | --no-cr | --no-c | -n)
1047     no_create=yes ;;
1048
1049   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051     no_recursion=yes ;;
1052
1053   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1054   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1055   | --oldin | --oldi | --old | --ol | --o)
1056     ac_prev=oldincludedir ;;
1057   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1058   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1059   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1060     oldincludedir=$ac_optarg ;;
1061
1062   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1063     ac_prev=prefix ;;
1064   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1065     prefix=$ac_optarg ;;
1066
1067   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1068   | --program-pre | --program-pr | --program-p)
1069     ac_prev=program_prefix ;;
1070   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1071   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1072     program_prefix=$ac_optarg ;;
1073
1074   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1075   | --program-suf | --program-su | --program-s)
1076     ac_prev=program_suffix ;;
1077   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1078   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1079     program_suffix=$ac_optarg ;;
1080
1081   -program-transform-name | --program-transform-name \
1082   | --program-transform-nam | --program-transform-na \
1083   | --program-transform-n | --program-transform- \
1084   | --program-transform | --program-transfor \
1085   | --program-transfo | --program-transf \
1086   | --program-trans | --program-tran \
1087   | --progr-tra | --program-tr | --program-t)
1088     ac_prev=program_transform_name ;;
1089   -program-transform-name=* | --program-transform-name=* \
1090   | --program-transform-nam=* | --program-transform-na=* \
1091   | --program-transform-n=* | --program-transform-=* \
1092   | --program-transform=* | --program-transfor=* \
1093   | --program-transfo=* | --program-transf=* \
1094   | --program-trans=* | --program-tran=* \
1095   | --progr-tra=* | --program-tr=* | --program-t=*)
1096     program_transform_name=$ac_optarg ;;
1097
1098   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1099     ac_prev=pdfdir ;;
1100   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1101     pdfdir=$ac_optarg ;;
1102
1103   -psdir | --psdir | --psdi | --psd | --ps)
1104     ac_prev=psdir ;;
1105   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106     psdir=$ac_optarg ;;
1107
1108   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109   | -silent | --silent | --silen | --sile | --sil)
1110     silent=yes ;;
1111
1112   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1113     ac_prev=sbindir ;;
1114   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1115   | --sbi=* | --sb=*)
1116     sbindir=$ac_optarg ;;
1117
1118   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1119   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1120   | --sharedst | --shareds | --shared | --share | --shar \
1121   | --sha | --sh)
1122     ac_prev=sharedstatedir ;;
1123   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1124   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1125   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1126   | --sha=* | --sh=*)
1127     sharedstatedir=$ac_optarg ;;
1128
1129   -site | --site | --sit)
1130     ac_prev=site ;;
1131   -site=* | --site=* | --sit=*)
1132     site=$ac_optarg ;;
1133
1134   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1135     ac_prev=srcdir ;;
1136   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1137     srcdir=$ac_optarg ;;
1138
1139   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1140   | --syscon | --sysco | --sysc | --sys | --sy)
1141     ac_prev=sysconfdir ;;
1142   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1143   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1144     sysconfdir=$ac_optarg ;;
1145
1146   -target | --target | --targe | --targ | --tar | --ta | --t)
1147     ac_prev=target_alias ;;
1148   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1149     target_alias=$ac_optarg ;;
1150
1151   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1152     verbose=yes ;;
1153
1154   -version | --version | --versio | --versi | --vers | -V)
1155     ac_init_version=: ;;
1156
1157   -with-* | --with-*)
1158     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1159     # Reject names that are not valid shell variable names.
1160     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161       as_fn_error $? "invalid package name: $ac_useropt"
1162     ac_useropt_orig=$ac_useropt
1163     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164     case $ac_user_opts in
1165       *"
1166 "with_$ac_useropt"
1167 "*) ;;
1168       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1169          ac_unrecognized_sep=', ';;
1170     esac
1171     eval with_$ac_useropt=\$ac_optarg ;;
1172
1173   -without-* | --without-*)
1174     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175     # Reject names that are not valid shell variable names.
1176     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177       as_fn_error $? "invalid package name: $ac_useropt"
1178     ac_useropt_orig=$ac_useropt
1179     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180     case $ac_user_opts in
1181       *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1185          ac_unrecognized_sep=', ';;
1186     esac
1187     eval with_$ac_useropt=no ;;
1188
1189   --x)
1190     # Obsolete; use --with-x.
1191     with_x=yes ;;
1192
1193   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194   | --x-incl | --x-inc | --x-in | --x-i)
1195     ac_prev=x_includes ;;
1196   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198     x_includes=$ac_optarg ;;
1199
1200   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202     ac_prev=x_libraries ;;
1203   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205     x_libraries=$ac_optarg ;;
1206
1207   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1208 Try \`$0 --help' for more information"
1209     ;;
1210
1211   *=*)
1212     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213     # Reject names that are not valid shell variable names.
1214     case $ac_envvar in #(
1215       '' | [0-9]* | *[!_$as_cr_alnum]* )
1216       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1217     esac
1218     eval $ac_envvar=\$ac_optarg
1219     export $ac_envvar ;;
1220
1221   *)
1222     # FIXME: should be removed in autoconf 3.0.
1223     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1227     ;;
1228
1229   esac
1230 done
1231
1232 if test -n "$ac_prev"; then
1233   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234   as_fn_error $? "missing argument to $ac_option"
1235 fi
1236
1237 if test -n "$ac_unrecognized_opts"; then
1238   case $enable_option_checking in
1239     no) ;;
1240     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1241     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1242   esac
1243 fi
1244
1245 # Check all directory arguments for consistency.
1246 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247                 datadir sysconfdir sharedstatedir localstatedir includedir \
1248                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249                 libdir localedir mandir
1250 do
1251   eval ac_val=\$$ac_var
1252   # Remove trailing slashes.
1253   case $ac_val in
1254     */ )
1255       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1256       eval $ac_var=\$ac_val;;
1257   esac
1258   # Be sure to have absolute directory names.
1259   case $ac_val in
1260     [\\/$]* | ?:[\\/]* )  continue;;
1261     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1262   esac
1263   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1264 done
1265
1266 # There might be people who depend on the old broken behavior: `$host'
1267 # used to hold the argument of --host etc.
1268 # FIXME: To remove some day.
1269 build=$build_alias
1270 host=$host_alias
1271 target=$target_alias
1272
1273 # FIXME: To remove some day.
1274 if test "x$host_alias" != x; then
1275   if test "x$build_alias" = x; then
1276     cross_compiling=maybe
1277   elif test "x$build_alias" != "x$host_alias"; then
1278     cross_compiling=yes
1279   fi
1280 fi
1281
1282 ac_tool_prefix=
1283 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1284
1285 test "$silent" = yes && exec 6>/dev/null
1286
1287
1288 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1289 ac_ls_di=`ls -di .` &&
1290 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1291   as_fn_error $? "working directory cannot be determined"
1292 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1293   as_fn_error $? "pwd does not report name of working directory"
1294
1295
1296 # Find the source files, if location was not specified.
1297 if test -z "$srcdir"; then
1298   ac_srcdir_defaulted=yes
1299   # Try the directory containing this script, then the parent directory.
1300   ac_confdir=`$as_dirname -- "$as_myself" ||
1301 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302          X"$as_myself" : 'X\(//\)[^/]' \| \
1303          X"$as_myself" : 'X\(//\)$' \| \
1304          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305 $as_echo X"$as_myself" |
1306     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307             s//\1/
1308             q
1309           }
1310           /^X\(\/\/\)[^/].*/{
1311             s//\1/
1312             q
1313           }
1314           /^X\(\/\/\)$/{
1315             s//\1/
1316             q
1317           }
1318           /^X\(\/\).*/{
1319             s//\1/
1320             q
1321           }
1322           s/.*/./; q'`
1323   srcdir=$ac_confdir
1324   if test ! -r "$srcdir/$ac_unique_file"; then
1325     srcdir=..
1326   fi
1327 else
1328   ac_srcdir_defaulted=no
1329 fi
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1333 fi
1334 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 ac_abs_confdir=`(
1336         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1337         pwd)`
1338 # When building in place, set srcdir=.
1339 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340   srcdir=.
1341 fi
1342 # Remove unnecessary trailing slashes from srcdir.
1343 # Double slashes in file names in object file debugging info
1344 # mess up M-x gdb in Emacs.
1345 case $srcdir in
1346 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1347 esac
1348 for ac_var in $ac_precious_vars; do
1349   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350   eval ac_env_${ac_var}_value=\$${ac_var}
1351   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353 done
1354
1355 #
1356 # Report the --help message.
1357 #
1358 if test "$ac_init_help" = "long"; then
1359   # Omit some internal or obsolete options to make the list less imposing.
1360   # This message is too long to be a string in the A/UX 3.1 sh.
1361   cat <<_ACEOF
1362 \`configure' configures gdbm 1.11 to adapt to many kinds of systems.
1363
1364 Usage: $0 [OPTION]... [VAR=VALUE]...
1365
1366 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367 VAR=VALUE.  See below for descriptions of some of the useful variables.
1368
1369 Defaults for the options are specified in brackets.
1370
1371 Configuration:
1372   -h, --help              display this help and exit
1373       --help=short        display options specific to this package
1374       --help=recursive    display the short help of all the included packages
1375   -V, --version           display version information and exit
1376   -q, --quiet, --silent   do not print \`checking ...' messages
1377       --cache-file=FILE   cache test results in FILE [disabled]
1378   -C, --config-cache      alias for \`--cache-file=config.cache'
1379   -n, --no-create         do not create output files
1380       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1381
1382 Installation directories:
1383   --prefix=PREFIX         install architecture-independent files in PREFIX
1384                           [$ac_default_prefix]
1385   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1386                           [PREFIX]
1387
1388 By default, \`make install' will install all the files in
1389 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1390 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1391 for instance \`--prefix=\$HOME'.
1392
1393 For better control, use the options below.
1394
1395 Fine tuning of the installation directories:
1396   --bindir=DIR            user executables [EPREFIX/bin]
1397   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1398   --libexecdir=DIR        program executables [EPREFIX/libexec]
1399   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1400   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1401   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1402   --libdir=DIR            object code libraries [EPREFIX/lib]
1403   --includedir=DIR        C header files [PREFIX/include]
1404   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1405   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1406   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1407   --infodir=DIR           info documentation [DATAROOTDIR/info]
1408   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1409   --mandir=DIR            man documentation [DATAROOTDIR/man]
1410   --docdir=DIR            documentation root [DATAROOTDIR/doc/gdbm]
1411   --htmldir=DIR           html documentation [DOCDIR]
1412   --dvidir=DIR            dvi documentation [DOCDIR]
1413   --pdfdir=DIR            pdf documentation [DOCDIR]
1414   --psdir=DIR             ps documentation [DOCDIR]
1415 _ACEOF
1416
1417   cat <<\_ACEOF
1418
1419 Program names:
1420   --program-prefix=PREFIX            prepend PREFIX to installed program names
1421   --program-suffix=SUFFIX            append SUFFIX to installed program names
1422   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1423
1424 System types:
1425   --build=BUILD     configure for building on BUILD [guessed]
1426   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1427 _ACEOF
1428 fi
1429
1430 if test -n "$ac_init_help"; then
1431   case $ac_init_help in
1432      short | recursive ) echo "Configuration of gdbm 1.11:";;
1433    esac
1434   cat <<\_ACEOF
1435
1436 Optional Features:
1437   --disable-option-checking  ignore unrecognized --enable/--with options
1438   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1439   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1440   --enable-silent-rules   less verbose build output (undo: "make V=1")
1441   --disable-silent-rules  verbose build output (undo: "make V=0")
1442   --enable-memory-mapped-io
1443     Use mmap(2) for disk I/O. (Default is YES.)
1444
1445   --enable-libgdbm-compat
1446     Build and install libgdbm_compat. (Default is NO.)
1447
1448   --enable-gdbm-export    Build and install gdbmexport with specified gdbm 1.8
1449                           library. (Default is NO.)
1450   --enable-dependency-tracking
1451                           do not reject slow dependency extractors
1452   --disable-dependency-tracking
1453                           speeds up one-time build
1454   --enable-shared[=PKGS]  build shared libraries [default=yes]
1455   --enable-static[=PKGS]  build static libraries [default=yes]
1456   --enable-fast-install[=PKGS]
1457                           optimize for fast installation [default=yes]
1458   --disable-libtool-lock  avoid locking (might break parallel builds)
1459   --disable-largefile     omit support for large files
1460   --disable-nls           do not use Native Language Support
1461   --disable-rpath         do not hardcode runtime library paths
1462
1463 Optional Packages:
1464   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1465   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1466   --with-gdbm183-library  Build gdbmexport with specified (static) library.
1467   --with-gdbm183-libdir   Build gdbmexport with the gdbm library in the
1468                           specified directory.
1469   --with-gdbm183-includedir
1470                           Build gdbmexport with gdbm.h in the specified
1471                           directory.
1472   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1473                           both]
1474   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1475   --with-sysroot=DIR Search for dependent libraries within DIR
1476                         (or the compiler's sysroot if not specified).
1477   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1478   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1479   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1480   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1481   --without-libintl-prefix     don't search for libintl in includedir and libdir
1482
1483 Some influential environment variables:
1484   CC          C compiler command
1485   CFLAGS      C compiler flags
1486   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1487               nonstandard directory <lib dir>
1488   LIBS        libraries to pass to the linker, e.g. -l<library>
1489   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490               you have headers in a nonstandard directory <include dir>
1491   CPP         C preprocessor
1492   YACC        The `Yet Another Compiler Compiler' implementation to use.
1493               Defaults to the first program found out of: `bison -y', `byacc',
1494               `yacc'.
1495   YFLAGS      The list of arguments that will be passed by default to $YACC.
1496               This script will default YFLAGS to the empty string to avoid a
1497               default value of `-d' given by some make applications.
1498
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1501
1502 Report bugs to <bug-gdbm@gnu.org>.
1503 gdbm home page: <http://www.gnu.org/software/gdbm>.
1504 _ACEOF
1505 ac_status=$?
1506 fi
1507
1508 if test "$ac_init_help" = "recursive"; then
1509   # If there are subdirs, report their specific --help.
1510   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511     test -d "$ac_dir" ||
1512       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1513       continue
1514     ac_builddir=.
1515
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *)
1519   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1520   # A ".." for each directory in $ac_dir_suffix.
1521   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1522   case $ac_top_builddir_sub in
1523   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525   esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1531
1532 case $srcdir in
1533   .)  # We are building in place.
1534     ac_srcdir=.
1535     ac_top_srcdir=$ac_top_builddir_sub
1536     ac_abs_top_srcdir=$ac_pwd ;;
1537   [\\/]* | ?:[\\/]* )  # Absolute name.
1538     ac_srcdir=$srcdir$ac_dir_suffix;
1539     ac_top_srcdir=$srcdir
1540     ac_abs_top_srcdir=$srcdir ;;
1541   *) # Relative name.
1542     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543     ac_top_srcdir=$ac_top_build_prefix$srcdir
1544     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548     cd "$ac_dir" || { ac_status=$?; continue; }
1549     # Check for guested configure.
1550     if test -f "$ac_srcdir/configure.gnu"; then
1551       echo &&
1552       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553     elif test -f "$ac_srcdir/configure"; then
1554       echo &&
1555       $SHELL "$ac_srcdir/configure" --help=recursive
1556     else
1557       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558     fi || ac_status=$?
1559     cd "$ac_pwd" || { ac_status=$?; break; }
1560   done
1561 fi
1562
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565   cat <<\_ACEOF
1566 gdbm configure 1.11
1567 generated by GNU Autoconf 2.69
1568
1569 Copyright (C) 2012 Free Software Foundation, Inc.
1570 This configure script is free software; the Free Software Foundation
1571 gives unlimited permission to copy, distribute and modify it.
1572 _ACEOF
1573   exit
1574 fi
1575
1576 ## ------------------------ ##
1577 ## Autoconf initialization. ##
1578 ## ------------------------ ##
1579
1580 # ac_fn_c_try_compile LINENO
1581 # --------------------------
1582 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_c_try_compile ()
1584 {
1585   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586   rm -f conftest.$ac_objext
1587   if { { ac_try="$ac_compile"
1588 case "(($ac_try" in
1589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590   *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594   (eval "$ac_compile") 2>conftest.err
1595   ac_status=$?
1596   if test -s conftest.err; then
1597     grep -v '^ *+' conftest.err >conftest.er1
1598     cat conftest.er1 >&5
1599     mv -f conftest.er1 conftest.err
1600   fi
1601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602   test $ac_status = 0; } && {
1603          test -z "$ac_c_werror_flag" ||
1604          test ! -s conftest.err
1605        } && test -s conftest.$ac_objext; then :
1606   ac_retval=0
1607 else
1608   $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611         ac_retval=1
1612 fi
1613   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614   as_fn_set_status $ac_retval
1615
1616 } # ac_fn_c_try_compile
1617
1618 # ac_fn_c_try_cpp LINENO
1619 # ----------------------
1620 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_cpp ()
1622 {
1623   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624   if { { ac_try="$ac_cpp conftest.$ac_ext"
1625 case "(($ac_try" in
1626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627   *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1632   ac_status=$?
1633   if test -s conftest.err; then
1634     grep -v '^ *+' conftest.err >conftest.er1
1635     cat conftest.er1 >&5
1636     mv -f conftest.er1 conftest.err
1637   fi
1638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639   test $ac_status = 0; } > conftest.i && {
1640          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1641          test ! -s conftest.err
1642        }; then :
1643   ac_retval=0
1644 else
1645   $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648     ac_retval=1
1649 fi
1650   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651   as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_cpp
1654
1655 # ac_fn_c_try_link LINENO
1656 # -----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_link ()
1659 {
1660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661   rm -f conftest.$ac_objext conftest$ac_exeext
1662   if { { ac_try="$ac_link"
1663 case "(($ac_try" in
1664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665   *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669   (eval "$ac_link") 2>conftest.err
1670   ac_status=$?
1671   if test -s conftest.err; then
1672     grep -v '^ *+' conftest.err >conftest.er1
1673     cat conftest.er1 >&5
1674     mv -f conftest.er1 conftest.err
1675   fi
1676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677   test $ac_status = 0; } && {
1678          test -z "$ac_c_werror_flag" ||
1679          test ! -s conftest.err
1680        } && test -s conftest$ac_exeext && {
1681          test "$cross_compiling" = yes ||
1682          test -x conftest$ac_exeext
1683        }; then :
1684   ac_retval=0
1685 else
1686   $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689         ac_retval=1
1690 fi
1691   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693   # interfere with the next link command; also delete a directory that is
1694   # left behind by Apple's compiler.  We do this before executing the actions.
1695   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697   as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_link
1700
1701 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists and can be compiled using the include files in
1704 # INCLUDES, setting the cache variable VAR accordingly.
1705 ac_fn_c_check_header_compile ()
1706 {
1707   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711   $as_echo_n "(cached) " >&6
1712 else
1713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h.  */
1715 $4
1716 #include <$2>
1717 _ACEOF
1718 if ac_fn_c_try_compile "$LINENO"; then :
1719   eval "$3=yes"
1720 else
1721   eval "$3=no"
1722 fi
1723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724 fi
1725 eval ac_res=\$$3
1726                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730 } # ac_fn_c_check_header_compile
1731
1732 # ac_fn_c_try_run LINENO
1733 # ----------------------
1734 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1735 # that executables *can* be run.
1736 ac_fn_c_try_run ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   if { { ac_try="$ac_link"
1740 case "(($ac_try" in
1741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742   *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746   (eval "$ac_link") 2>&5
1747   ac_status=$?
1748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1750   { { case "(($ac_try" in
1751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752   *) ac_try_echo=$ac_try;;
1753 esac
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756   (eval "$ac_try") 2>&5
1757   ac_status=$?
1758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759   test $ac_status = 0; }; }; then :
1760   ac_retval=0
1761 else
1762   $as_echo "$as_me: program exited with status $ac_status" >&5
1763        $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1765
1766        ac_retval=$ac_status
1767 fi
1768   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770   as_fn_set_status $ac_retval
1771
1772 } # ac_fn_c_try_run
1773
1774 # ac_fn_c_check_func LINENO FUNC VAR
1775 # ----------------------------------
1776 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1777 ac_fn_c_check_func ()
1778 {
1779   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781 $as_echo_n "checking for $2... " >&6; }
1782 if eval \${$3+:} false; then :
1783   $as_echo_n "(cached) " >&6
1784 else
1785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h.  */
1787 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1788    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1789 #define $2 innocuous_$2
1790
1791 /* System header to define __stub macros and hopefully few prototypes,
1792     which can conflict with char $2 (); below.
1793     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1794     <limits.h> exists even on freestanding compilers.  */
1795
1796 #ifdef __STDC__
1797 # include <limits.h>
1798 #else
1799 # include <assert.h>
1800 #endif
1801
1802 #undef $2
1803
1804 /* Override any GCC internal prototype to avoid an error.
1805    Use char because int might match the return type of a GCC
1806    builtin and then its argument prototype would still apply.  */
1807 #ifdef __cplusplus
1808 extern "C"
1809 #endif
1810 char $2 ();
1811 /* The GNU C library defines this for functions which it implements
1812     to always fail with ENOSYS.  Some functions are actually named
1813     something starting with __ and the normal name is an alias.  */
1814 #if defined __stub_$2 || defined __stub___$2
1815 choke me
1816 #endif
1817
1818 int
1819 main ()
1820 {
1821 return $2 ();
1822   ;
1823   return 0;
1824 }
1825 _ACEOF
1826 if ac_fn_c_try_link "$LINENO"; then :
1827   eval "$3=yes"
1828 else
1829   eval "$3=no"
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext \
1832     conftest$ac_exeext conftest.$ac_ext
1833 fi
1834 eval ac_res=\$$3
1835                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839 } # ac_fn_c_check_func
1840
1841 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1842 # -------------------------------------------------------
1843 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1844 # the include files in INCLUDES and setting the cache variable VAR
1845 # accordingly.
1846 ac_fn_c_check_header_mongrel ()
1847 {
1848   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849   if eval \${$3+:} false; then :
1850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853   $as_echo_n "(cached) " >&6
1854 fi
1855 eval ac_res=\$$3
1856                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 else
1859   # Is the header compilable?
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1861 $as_echo_n "checking $2 usability... " >&6; }
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h.  */
1864 $4
1865 #include <$2>
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868   ac_header_compiler=yes
1869 else
1870   ac_header_compiler=no
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1874 $as_echo "$ac_header_compiler" >&6; }
1875
1876 # Is the header present?
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1878 $as_echo_n "checking $2 presence... " >&6; }
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h.  */
1881 #include <$2>
1882 _ACEOF
1883 if ac_fn_c_try_cpp "$LINENO"; then :
1884   ac_header_preproc=yes
1885 else
1886   ac_header_preproc=no
1887 fi
1888 rm -f conftest.err conftest.i conftest.$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1890 $as_echo "$ac_header_preproc" >&6; }
1891
1892 # So?  What about this header?
1893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1894   yes:no: )
1895     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1896 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1897     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1898 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1899     ;;
1900   no:yes:* )
1901     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1902 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1903     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1904 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1905     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1906 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1907     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1908 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1909     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1910 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1911 ( $as_echo "## ------------------------------- ##
1912 ## Report this to bug-gdbm@gnu.org ##
1913 ## ------------------------------- ##"
1914      ) | sed "s/^/$as_me: WARNING:     /" >&2
1915     ;;
1916 esac
1917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if eval \${$3+:} false; then :
1920   $as_echo_n "(cached) " >&6
1921 else
1922   eval "$3=\$ac_header_compiler"
1923 fi
1924 eval ac_res=\$$3
1925                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927 fi
1928   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1929
1930 } # ac_fn_c_check_header_mongrel
1931
1932 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1933 # -------------------------------------------
1934 # Tests whether TYPE exists after having included INCLUDES, setting cache
1935 # variable VAR accordingly.
1936 ac_fn_c_check_type ()
1937 {
1938   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942   $as_echo_n "(cached) " >&6
1943 else
1944   eval "$3=no"
1945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h.  */
1947 $4
1948 int
1949 main ()
1950 {
1951 if (sizeof ($2))
1952          return 0;
1953   ;
1954   return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h.  */
1960 $4
1961 int
1962 main ()
1963 {
1964 if (sizeof (($2)))
1965             return 0;
1966   ;
1967   return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971
1972 else
1973   eval "$3=yes"
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 fi
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 fi
1979 eval ac_res=\$$3
1980                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983
1984 } # ac_fn_c_check_type
1985
1986 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1987 # --------------------------------------------
1988 # Tries to find the compile-time value of EXPR in a program that includes
1989 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1990 # computed
1991 ac_fn_c_compute_int ()
1992 {
1993   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994   if test "$cross_compiling" = yes; then
1995     # Depending upon the size, compute the lo and hi bounds.
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h.  */
1998 $4
1999 int
2000 main ()
2001 {
2002 static int test_array [1 - 2 * !(($2) >= 0)];
2003 test_array [0] = 0;
2004 return test_array [0];
2005
2006   ;
2007   return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011   ac_lo=0 ac_mid=0
2012   while :; do
2013     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h.  */
2015 $4
2016 int
2017 main ()
2018 {
2019 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2020 test_array [0] = 0;
2021 return test_array [0];
2022
2023   ;
2024   return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028   ac_hi=$ac_mid; break
2029 else
2030   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2031                         if test $ac_lo -le $ac_mid; then
2032                           ac_lo= ac_hi=
2033                           break
2034                         fi
2035                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038   done
2039 else
2040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h.  */
2042 $4
2043 int
2044 main ()
2045 {
2046 static int test_array [1 - 2 * !(($2) < 0)];
2047 test_array [0] = 0;
2048 return test_array [0];
2049
2050   ;
2051   return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055   ac_hi=-1 ac_mid=-1
2056   while :; do
2057     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h.  */
2059 $4
2060 int
2061 main ()
2062 {
2063 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2064 test_array [0] = 0;
2065 return test_array [0];
2066
2067   ;
2068   return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072   ac_lo=$ac_mid; break
2073 else
2074   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2075                         if test $ac_mid -le $ac_hi; then
2076                           ac_lo= ac_hi=
2077                           break
2078                         fi
2079                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2080 fi
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082   done
2083 else
2084   ac_lo= ac_hi=
2085 fi
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 # Binary search between lo and hi bounds.
2090 while test "x$ac_lo" != "x$ac_hi"; do
2091   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h.  */
2094 $4
2095 int
2096 main ()
2097 {
2098 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099 test_array [0] = 0;
2100 return test_array [0];
2101
2102   ;
2103   return 0;
2104 }
2105 _ACEOF
2106 if ac_fn_c_try_compile "$LINENO"; then :
2107   ac_hi=$ac_mid
2108 else
2109   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2110 fi
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 done
2113 case $ac_lo in #((
2114 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2115 '') ac_retval=1 ;;
2116 esac
2117   else
2118     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h.  */
2120 $4
2121 static long int longval () { return $2; }
2122 static unsigned long int ulongval () { return $2; }
2123 #include <stdio.h>
2124 #include <stdlib.h>
2125 int
2126 main ()
2127 {
2128
2129   FILE *f = fopen ("conftest.val", "w");
2130   if (! f)
2131     return 1;
2132   if (($2) < 0)
2133     {
2134       long int i = longval ();
2135       if (i != ($2))
2136         return 1;
2137       fprintf (f, "%ld", i);
2138     }
2139   else
2140     {
2141       unsigned long int i = ulongval ();
2142       if (i != ($2))
2143         return 1;
2144       fprintf (f, "%lu", i);
2145     }
2146   /* Do not output a trailing newline, as this causes \r\n confusion
2147      on some platforms.  */
2148   return ferror (f) || fclose (f) != 0;
2149
2150   ;
2151   return 0;
2152 }
2153 _ACEOF
2154 if ac_fn_c_try_run "$LINENO"; then :
2155   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2156 else
2157   ac_retval=1
2158 fi
2159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2160   conftest.$ac_objext conftest.beam conftest.$ac_ext
2161 rm -f conftest.val
2162
2163   fi
2164   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165   as_fn_set_status $ac_retval
2166
2167 } # ac_fn_c_compute_int
2168
2169 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2170 # ----------------------------------------------------
2171 # Tries to find if the field MEMBER exists in type AGGR, after including
2172 # INCLUDES, setting cache variable VAR accordingly.
2173 ac_fn_c_check_member ()
2174 {
2175   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2177 $as_echo_n "checking for $2.$3... " >&6; }
2178 if eval \${$4+:} false; then :
2179   $as_echo_n "(cached) " >&6
2180 else
2181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h.  */
2183 $5
2184 int
2185 main ()
2186 {
2187 static $2 ac_aggr;
2188 if (ac_aggr.$3)
2189 return 0;
2190   ;
2191   return 0;
2192 }
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195   eval "$4=yes"
2196 else
2197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h.  */
2199 $5
2200 int
2201 main ()
2202 {
2203 static $2 ac_aggr;
2204 if (sizeof ac_aggr.$3)
2205 return 0;
2206   ;
2207   return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_compile "$LINENO"; then :
2211   eval "$4=yes"
2212 else
2213   eval "$4=no"
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 fi
2219 eval ac_res=\$$4
2220                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223
2224 } # ac_fn_c_check_member
2225 cat >config.log <<_ACEOF
2226 This file contains any messages produced by compilers while
2227 running configure, to aid debugging if configure makes a mistake.
2228
2229 It was created by gdbm $as_me 1.11, which was
2230 generated by GNU Autoconf 2.69.  Invocation command line was
2231
2232   $ $0 $@
2233
2234 _ACEOF
2235 exec 5>>config.log
2236 {
2237 cat <<_ASUNAME
2238 ## --------- ##
2239 ## Platform. ##
2240 ## --------- ##
2241
2242 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2243 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2244 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2245 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2246 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2247
2248 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2249 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2250
2251 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2252 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2253 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2254 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2255 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2256 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2257 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2258
2259 _ASUNAME
2260
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2262 for as_dir in $PATH
2263 do
2264   IFS=$as_save_IFS
2265   test -z "$as_dir" && as_dir=.
2266     $as_echo "PATH: $as_dir"
2267   done
2268 IFS=$as_save_IFS
2269
2270 } >&5
2271
2272 cat >&5 <<_ACEOF
2273
2274
2275 ## ----------- ##
2276 ## Core tests. ##
2277 ## ----------- ##
2278
2279 _ACEOF
2280
2281
2282 # Keep a trace of the command line.
2283 # Strip out --no-create and --no-recursion so they do not pile up.
2284 # Strip out --silent because we don't want to record it for future runs.
2285 # Also quote any args containing shell meta-characters.
2286 # Make two passes to allow for proper duplicate-argument suppression.
2287 ac_configure_args=
2288 ac_configure_args0=
2289 ac_configure_args1=
2290 ac_must_keep_next=false
2291 for ac_pass in 1 2
2292 do
2293   for ac_arg
2294   do
2295     case $ac_arg in
2296     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2297     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2298     | -silent | --silent | --silen | --sile | --sil)
2299       continue ;;
2300     *\'*)
2301       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2302     esac
2303     case $ac_pass in
2304     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2305     2)
2306       as_fn_append ac_configure_args1 " '$ac_arg'"
2307       if test $ac_must_keep_next = true; then
2308         ac_must_keep_next=false # Got value, back to normal.
2309       else
2310         case $ac_arg in
2311           *=* | --config-cache | -C | -disable-* | --disable-* \
2312           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2313           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2314           | -with-* | --with-* | -without-* | --without-* | --x)
2315             case "$ac_configure_args0 " in
2316               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2317             esac
2318             ;;
2319           -* ) ac_must_keep_next=true ;;
2320         esac
2321       fi
2322       as_fn_append ac_configure_args " '$ac_arg'"
2323       ;;
2324     esac
2325   done
2326 done
2327 { ac_configure_args0=; unset ac_configure_args0;}
2328 { ac_configure_args1=; unset ac_configure_args1;}
2329
2330 # When interrupted or exit'd, cleanup temporary files, and complete
2331 # config.log.  We remove comments because anyway the quotes in there
2332 # would cause problems or look ugly.
2333 # WARNING: Use '\'' to represent an apostrophe within the trap.
2334 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2335 trap 'exit_status=$?
2336   # Save into config.log some information that might help in debugging.
2337   {
2338     echo
2339
2340     $as_echo "## ---------------- ##
2341 ## Cache variables. ##
2342 ## ---------------- ##"
2343     echo
2344     # The following way of writing the cache mishandles newlines in values,
2345 (
2346   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2347     eval ac_val=\$$ac_var
2348     case $ac_val in #(
2349     *${as_nl}*)
2350       case $ac_var in #(
2351       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2352 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2353       esac
2354       case $ac_var in #(
2355       _ | IFS | as_nl) ;; #(
2356       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2357       *) { eval $ac_var=; unset $ac_var;} ;;
2358       esac ;;
2359     esac
2360   done
2361   (set) 2>&1 |
2362     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2363     *${as_nl}ac_space=\ *)
2364       sed -n \
2365         "s/'\''/'\''\\\\'\'''\''/g;
2366           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2367       ;; #(
2368     *)
2369       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2370       ;;
2371     esac |
2372     sort
2373 )
2374     echo
2375
2376     $as_echo "## ----------------- ##
2377 ## Output variables. ##
2378 ## ----------------- ##"
2379     echo
2380     for ac_var in $ac_subst_vars
2381     do
2382       eval ac_val=\$$ac_var
2383       case $ac_val in
2384       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2385       esac
2386       $as_echo "$ac_var='\''$ac_val'\''"
2387     done | sort
2388     echo
2389
2390     if test -n "$ac_subst_files"; then
2391       $as_echo "## ------------------- ##
2392 ## File substitutions. ##
2393 ## ------------------- ##"
2394       echo
2395       for ac_var in $ac_subst_files
2396       do
2397         eval ac_val=\$$ac_var
2398         case $ac_val in
2399         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2400         esac
2401         $as_echo "$ac_var='\''$ac_val'\''"
2402       done | sort
2403       echo
2404     fi
2405
2406     if test -s confdefs.h; then
2407       $as_echo "## ----------- ##
2408 ## confdefs.h. ##
2409 ## ----------- ##"
2410       echo
2411       cat confdefs.h
2412       echo
2413     fi
2414     test "$ac_signal" != 0 &&
2415       $as_echo "$as_me: caught signal $ac_signal"
2416     $as_echo "$as_me: exit $exit_status"
2417   } >&5
2418   rm -f core *.core core.conftest.* &&
2419     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2420     exit $exit_status
2421 ' 0
2422 for ac_signal in 1 2 13 15; do
2423   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2424 done
2425 ac_signal=0
2426
2427 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2428 rm -f -r conftest* confdefs.h
2429
2430 $as_echo "/* confdefs.h */" > confdefs.h
2431
2432 # Predefined preprocessor variables.
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_NAME "$PACKAGE_NAME"
2436 _ACEOF
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2440 _ACEOF
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2444 _ACEOF
2445
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_STRING "$PACKAGE_STRING"
2448 _ACEOF
2449
2450 cat >>confdefs.h <<_ACEOF
2451 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2452 _ACEOF
2453
2454 cat >>confdefs.h <<_ACEOF
2455 #define PACKAGE_URL "$PACKAGE_URL"
2456 _ACEOF
2457
2458
2459 # Let the site file select an alternate cache file if it wants to.
2460 # Prefer an explicitly selected file to automatically selected ones.
2461 ac_site_file1=NONE
2462 ac_site_file2=NONE
2463 if test -n "$CONFIG_SITE"; then
2464   # We do not want a PATH search for config.site.
2465   case $CONFIG_SITE in #((
2466     -*)  ac_site_file1=./$CONFIG_SITE;;
2467     */*) ac_site_file1=$CONFIG_SITE;;
2468     *)   ac_site_file1=./$CONFIG_SITE;;
2469   esac
2470 elif test "x$prefix" != xNONE; then
2471   ac_site_file1=$prefix/share/config.site
2472   ac_site_file2=$prefix/etc/config.site
2473 else
2474   ac_site_file1=$ac_default_prefix/share/config.site
2475   ac_site_file2=$ac_default_prefix/etc/config.site
2476 fi
2477 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2478 do
2479   test "x$ac_site_file" = xNONE && continue
2480   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2481     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2482 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2483     sed 's/^/| /' "$ac_site_file" >&5
2484     . "$ac_site_file" \
2485       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487 as_fn_error $? "failed to load site script $ac_site_file
2488 See \`config.log' for more details" "$LINENO" 5; }
2489   fi
2490 done
2491
2492 if test -r "$cache_file"; then
2493   # Some versions of bash will fail to source /dev/null (special files
2494   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2495   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2496     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2497 $as_echo "$as_me: loading cache $cache_file" >&6;}
2498     case $cache_file in
2499       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2500       *)                      . "./$cache_file";;
2501     esac
2502   fi
2503 else
2504   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2505 $as_echo "$as_me: creating cache $cache_file" >&6;}
2506   >$cache_file
2507 fi
2508
2509 gt_needs="$gt_needs need-ngettext"
2510 as_fn_append ac_header_list " stdlib.h"
2511 as_fn_append ac_header_list " unistd.h"
2512 as_fn_append ac_header_list " sys/param.h"
2513 # Check that the precious variables saved in the cache have kept the same
2514 # value.
2515 ac_cache_corrupted=false
2516 for ac_var in $ac_precious_vars; do
2517   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2518   eval ac_new_set=\$ac_env_${ac_var}_set
2519   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2520   eval ac_new_val=\$ac_env_${ac_var}_value
2521   case $ac_old_set,$ac_new_set in
2522     set,)
2523       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2524 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2525       ac_cache_corrupted=: ;;
2526     ,set)
2527       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2528 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2529       ac_cache_corrupted=: ;;
2530     ,);;
2531     *)
2532       if test "x$ac_old_val" != "x$ac_new_val"; then
2533         # differences in whitespace do not lead to failure.
2534         ac_old_val_w=`echo x $ac_old_val`
2535         ac_new_val_w=`echo x $ac_new_val`
2536         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2537           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2538 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2539           ac_cache_corrupted=:
2540         else
2541           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2542 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2543           eval $ac_var=\$ac_old_val
2544         fi
2545         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2546 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2547         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2548 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2549       fi;;
2550   esac
2551   # Pass precious variables to config.status.
2552   if test "$ac_new_set" = set; then
2553     case $ac_new_val in
2554     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2555     *) ac_arg=$ac_var=$ac_new_val ;;
2556     esac
2557     case " $ac_configure_args " in
2558       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2559       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2560     esac
2561   fi
2562 done
2563 if $ac_cache_corrupted; then
2564   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2566   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2567 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2568   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2569 fi
2570 ## -------------------- ##
2571 ## Main body of script. ##
2572 ## -------------------- ##
2573
2574 ac_ext=c
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2579
2580
2581
2582
2583 ac_aux_dir=
2584 for ac_dir in build-aux "$srcdir"/build-aux; do
2585   if test -f "$ac_dir/install-sh"; then
2586     ac_aux_dir=$ac_dir
2587     ac_install_sh="$ac_aux_dir/install-sh -c"
2588     break
2589   elif test -f "$ac_dir/install.sh"; then
2590     ac_aux_dir=$ac_dir
2591     ac_install_sh="$ac_aux_dir/install.sh -c"
2592     break
2593   elif test -f "$ac_dir/shtool"; then
2594     ac_aux_dir=$ac_dir
2595     ac_install_sh="$ac_aux_dir/shtool install -c"
2596     break
2597   fi
2598 done
2599 if test -z "$ac_aux_dir"; then
2600   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2601 fi
2602
2603 # These three variables are undocumented and unsupported,
2604 # and are intended to be withdrawn in a future Autoconf release.
2605 # They can cause serious problems if a builder's source tree is in a directory
2606 # whose full name contains unusual characters.
2607 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2608 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2609 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2610
2611
2612 ac_config_headers="$ac_config_headers autoconf.h"
2613
2614
2615 am__api_version='1.14'
2616
2617 # Find a good install program.  We prefer a C program (faster),
2618 # so one script is as good as another.  But avoid the broken or
2619 # incompatible versions:
2620 # SysV /etc/install, /usr/sbin/install
2621 # SunOS /usr/etc/install
2622 # IRIX /sbin/install
2623 # AIX /bin/install
2624 # AmigaOS /C/install, which installs bootblocks on floppy discs
2625 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2626 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2627 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2628 # OS/2's system install, which has a completely different semantic
2629 # ./install, which can be erroneously created by make from ./install.sh.
2630 # Reject install programs that cannot install multiple files.
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2632 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2633 if test -z "$INSTALL"; then
2634 if ${ac_cv_path_install+:} false; then :
2635   $as_echo_n "(cached) " >&6
2636 else
2637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 for as_dir in $PATH
2639 do
2640   IFS=$as_save_IFS
2641   test -z "$as_dir" && as_dir=.
2642     # Account for people who put trailing slashes in PATH elements.
2643 case $as_dir/ in #((
2644   ./ | .// | /[cC]/* | \
2645   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2646   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2647   /usr/ucb/* ) ;;
2648   *)
2649     # OSF1 and SCO ODT 3.0 have their own names for install.
2650     # Don't use installbsd from OSF since it installs stuff as root
2651     # by default.
2652     for ac_prog in ginstall scoinst install; do
2653       for ac_exec_ext in '' $ac_executable_extensions; do
2654         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2655           if test $ac_prog = install &&
2656             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2657             # AIX install.  It has an incompatible calling convention.
2658             :
2659           elif test $ac_prog = install &&
2660             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2661             # program-specific install script used by HP pwplus--don't use.
2662             :
2663           else
2664             rm -rf conftest.one conftest.two conftest.dir
2665             echo one > conftest.one
2666             echo two > conftest.two
2667             mkdir conftest.dir
2668             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2669               test -s conftest.one && test -s conftest.two &&
2670               test -s conftest.dir/conftest.one &&
2671               test -s conftest.dir/conftest.two
2672             then
2673               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2674               break 3
2675             fi
2676           fi
2677         fi
2678       done
2679     done
2680     ;;
2681 esac
2682
2683   done
2684 IFS=$as_save_IFS
2685
2686 rm -rf conftest.one conftest.two conftest.dir
2687
2688 fi
2689   if test "${ac_cv_path_install+set}" = set; then
2690     INSTALL=$ac_cv_path_install
2691   else
2692     # As a last resort, use the slow shell script.  Don't cache a
2693     # value for INSTALL within a source directory, because that will
2694     # break other packages using the cache if that directory is
2695     # removed, or if the value is a relative name.
2696     INSTALL=$ac_install_sh
2697   fi
2698 fi
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2700 $as_echo "$INSTALL" >&6; }
2701
2702 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2703 # It thinks the first close brace ends the variable substitution.
2704 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2705
2706 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2707
2708 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2709
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2711 $as_echo_n "checking whether build environment is sane... " >&6; }
2712 # Reject unsafe characters in $srcdir or the absolute working directory
2713 # name.  Accept space and tab only in the latter.
2714 am_lf='
2715 '
2716 case `pwd` in
2717   *[\\\"\#\$\&\'\`$am_lf]*)
2718     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2719 esac
2720 case $srcdir in
2721   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2722     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2723 esac
2724
2725 # Do 'set' in a subshell so we don't clobber the current shell's
2726 # arguments.  Must try -L first in case configure is actually a
2727 # symlink; some systems play weird games with the mod time of symlinks
2728 # (eg FreeBSD returns the mod time of the symlink's containing
2729 # directory).
2730 if (
2731    am_has_slept=no
2732    for am_try in 1 2; do
2733      echo "timestamp, slept: $am_has_slept" > conftest.file
2734      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2735      if test "$*" = "X"; then
2736         # -L didn't work.
2737         set X `ls -t "$srcdir/configure" conftest.file`
2738      fi
2739      if test "$*" != "X $srcdir/configure conftest.file" \
2740         && test "$*" != "X conftest.file $srcdir/configure"; then
2741
2742         # If neither matched, then we have a broken ls.  This can happen
2743         # if, for instance, CONFIG_SHELL is bash and it inherits a
2744         # broken ls alias from the environment.  This has actually
2745         # happened.  Such a system could not be considered "sane".
2746         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2747   alias in your environment" "$LINENO" 5
2748      fi
2749      if test "$2" = conftest.file || test $am_try -eq 2; then
2750        break
2751      fi
2752      # Just in case.
2753      sleep 1
2754      am_has_slept=yes
2755    done
2756    test "$2" = conftest.file
2757    )
2758 then
2759    # Ok.
2760    :
2761 else
2762    as_fn_error $? "newly created file is older than distributed files!
2763 Check your system clock" "$LINENO" 5
2764 fi
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2766 $as_echo "yes" >&6; }
2767 # If we didn't sleep, we still need to ensure time stamps of config.status and
2768 # generated files are strictly newer.
2769 am_sleep_pid=
2770 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2771   ( sleep 1 ) &
2772   am_sleep_pid=$!
2773 fi
2774
2775 rm -f conftest.file
2776
2777 test "$program_prefix" != NONE &&
2778   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2779 # Use a double $ so make ignores it.
2780 test "$program_suffix" != NONE &&
2781   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2782 # Double any \ or $.
2783 # By default was `s,x,x', remove it if useless.
2784 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2785 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2786
2787 # expand $ac_aux_dir to an absolute path
2788 am_aux_dir=`cd $ac_aux_dir && pwd`
2789
2790 if test x"${MISSING+set}" != xset; then
2791   case $am_aux_dir in
2792   *\ * | *\     *)
2793     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2794   *)
2795     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2796   esac
2797 fi
2798 # Use eval to expand $SHELL
2799 if eval "$MISSING --is-lightweight"; then
2800   am_missing_run="$MISSING "
2801 else
2802   am_missing_run=
2803   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2804 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2805 fi
2806
2807 if test x"${install_sh}" != xset; then
2808   case $am_aux_dir in
2809   *\ * | *\     *)
2810     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2811   *)
2812     install_sh="\${SHELL} $am_aux_dir/install-sh"
2813   esac
2814 fi
2815
2816 # Installed binaries are usually stripped using 'strip' when the user
2817 # run "make install-strip".  However 'strip' might not be the right
2818 # tool to use in cross-compilation environments, therefore Automake
2819 # will honor the 'STRIP' environment variable to overrule this program.
2820 if test "$cross_compiling" != no; then
2821   if test -n "$ac_tool_prefix"; then
2822   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}strip; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if ${ac_cv_prog_STRIP+:} false; then :
2827   $as_echo_n "(cached) " >&6
2828 else
2829   if test -n "$STRIP"; then
2830   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837     for ac_exec_ext in '' $ac_executable_extensions; do
2838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841     break 2
2842   fi
2843 done
2844   done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 STRIP=$ac_cv_prog_STRIP
2850 if test -n "$STRIP"; then
2851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2852 $as_echo "$STRIP" >&6; }
2853 else
2854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858
2859 fi
2860 if test -z "$ac_cv_prog_STRIP"; then
2861   ac_ct_STRIP=$STRIP
2862   # Extract the first word of "strip", so it can be a program name with args.
2863 set dummy strip; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2867   $as_echo_n "(cached) " >&6
2868 else
2869   if test -n "$ac_ct_STRIP"; then
2870   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875   IFS=$as_save_IFS
2876   test -z "$as_dir" && as_dir=.
2877     for ac_exec_ext in '' $ac_executable_extensions; do
2878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2879     ac_cv_prog_ac_ct_STRIP="strip"
2880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881     break 2
2882   fi
2883 done
2884   done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2890 if test -n "$ac_ct_STRIP"; then
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2892 $as_echo "$ac_ct_STRIP" >&6; }
2893 else
2894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898   if test "x$ac_ct_STRIP" = x; then
2899     STRIP=":"
2900   else
2901     case $cross_compiling:$ac_tool_warned in
2902 yes:)
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2905 ac_tool_warned=yes ;;
2906 esac
2907     STRIP=$ac_ct_STRIP
2908   fi
2909 else
2910   STRIP="$ac_cv_prog_STRIP"
2911 fi
2912
2913 fi
2914 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2915
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2917 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2918 if test -z "$MKDIR_P"; then
2919   if ${ac_cv_path_mkdir+:} false; then :
2920   $as_echo_n "(cached) " >&6
2921 else
2922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2924 do
2925   IFS=$as_save_IFS
2926   test -z "$as_dir" && as_dir=.
2927     for ac_prog in mkdir gmkdir; do
2928          for ac_exec_ext in '' $ac_executable_extensions; do
2929            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2930            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2931              'mkdir (GNU coreutils) '* | \
2932              'mkdir (coreutils) '* | \
2933              'mkdir (fileutils) '4.1*)
2934                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2935                break 3;;
2936            esac
2937          done
2938        done
2939   done
2940 IFS=$as_save_IFS
2941
2942 fi
2943
2944   test -d ./--version && rmdir ./--version
2945   if test "${ac_cv_path_mkdir+set}" = set; then
2946     MKDIR_P="$ac_cv_path_mkdir -p"
2947   else
2948     # As a last resort, use the slow shell script.  Don't cache a
2949     # value for MKDIR_P within a source directory, because that will
2950     # break other packages using the cache if that directory is
2951     # removed, or if the value is a relative name.
2952     MKDIR_P="$ac_install_sh -d"
2953   fi
2954 fi
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2956 $as_echo "$MKDIR_P" >&6; }
2957
2958 for ac_prog in gawk mawk nawk awk
2959 do
2960   # Extract the first word of "$ac_prog", so it can be a program name with args.
2961 set dummy $ac_prog; ac_word=$2
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963 $as_echo_n "checking for $ac_word... " >&6; }
2964 if ${ac_cv_prog_AWK+:} false; then :
2965   $as_echo_n "(cached) " >&6
2966 else
2967   if test -n "$AWK"; then
2968   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2969 else
2970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 for as_dir in $PATH
2972 do
2973   IFS=$as_save_IFS
2974   test -z "$as_dir" && as_dir=.
2975     for ac_exec_ext in '' $ac_executable_extensions; do
2976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2977     ac_cv_prog_AWK="$ac_prog"
2978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979     break 2
2980   fi
2981 done
2982   done
2983 IFS=$as_save_IFS
2984
2985 fi
2986 fi
2987 AWK=$ac_cv_prog_AWK
2988 if test -n "$AWK"; then
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2990 $as_echo "$AWK" >&6; }
2991 else
2992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993 $as_echo "no" >&6; }
2994 fi
2995
2996
2997   test -n "$AWK" && break
2998 done
2999
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3001 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3002 set x ${MAKE-make}
3003 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3004 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3005   $as_echo_n "(cached) " >&6
3006 else
3007   cat >conftest.make <<\_ACEOF
3008 SHELL = /bin/sh
3009 all:
3010         @echo '@@@%%%=$(MAKE)=@@@%%%'
3011 _ACEOF
3012 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3013 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3014   *@@@%%%=?*=@@@%%%*)
3015     eval ac_cv_prog_make_${ac_make}_set=yes;;
3016   *)
3017     eval ac_cv_prog_make_${ac_make}_set=no;;
3018 esac
3019 rm -f conftest.make
3020 fi
3021 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3023 $as_echo "yes" >&6; }
3024   SET_MAKE=
3025 else
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028   SET_MAKE="MAKE=${MAKE-make}"
3029 fi
3030
3031 rm -rf .tst 2>/dev/null
3032 mkdir .tst 2>/dev/null
3033 if test -d .tst; then
3034   am__leading_dot=.
3035 else
3036   am__leading_dot=_
3037 fi
3038 rmdir .tst 2>/dev/null
3039
3040 # Check whether --enable-silent-rules was given.
3041 if test "${enable_silent_rules+set}" = set; then :
3042   enableval=$enable_silent_rules;
3043 fi
3044
3045 case $enable_silent_rules in # (((
3046   yes) AM_DEFAULT_VERBOSITY=0;;
3047    no) AM_DEFAULT_VERBOSITY=1;;
3048     *) AM_DEFAULT_VERBOSITY=1;;
3049 esac
3050 am_make=${MAKE-make}
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3052 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3053 if ${am_cv_make_support_nested_variables+:} false; then :
3054   $as_echo_n "(cached) " >&6
3055 else
3056   if $as_echo 'TRUE=$(BAR$(V))
3057 BAR0=false
3058 BAR1=true
3059 V=1
3060 am__doit:
3061         @$(TRUE)
3062 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3063   am_cv_make_support_nested_variables=yes
3064 else
3065   am_cv_make_support_nested_variables=no
3066 fi
3067 fi
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3069 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3070 if test $am_cv_make_support_nested_variables = yes; then
3071     AM_V='$(V)'
3072   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3073 else
3074   AM_V=$AM_DEFAULT_VERBOSITY
3075   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3076 fi
3077 AM_BACKSLASH='\'
3078
3079 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3080   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3081   # is not polluted with repeated "-I."
3082   am__isrc=' -I$(srcdir)'
3083   # test to see if srcdir already configured
3084   if test -f $srcdir/config.status; then
3085     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3086   fi
3087 fi
3088
3089 # test whether we have cygpath
3090 if test -z "$CYGPATH_W"; then
3091   if (cygpath --version) >/dev/null 2>/dev/null; then
3092     CYGPATH_W='cygpath -w'
3093   else
3094     CYGPATH_W=echo
3095   fi
3096 fi
3097
3098
3099 # Define the identity of the package.
3100  PACKAGE='gdbm'
3101  VERSION='1.11'
3102
3103
3104 cat >>confdefs.h <<_ACEOF
3105 #define PACKAGE "$PACKAGE"
3106 _ACEOF
3107
3108
3109 cat >>confdefs.h <<_ACEOF
3110 #define VERSION "$VERSION"
3111 _ACEOF
3112
3113 # Some tools Automake needs.
3114
3115 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3116
3117
3118 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3119
3120
3121 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3122
3123
3124 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3125
3126
3127 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3128
3129 # For better backward compatibility.  To be removed once Automake 1.9.x
3130 # dies out for good.  For more background, see:
3131 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3132 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3133 mkdir_p='$(MKDIR_P)'
3134
3135 # We need awk for the "check" target.  The system "awk" is bad on
3136 # some platforms.
3137 # Always define AMTAR for backward compatibility.  Yes, it's still used
3138 # in the wild :-(  We should find a proper way to deprecate it ...
3139 AMTAR='$${TAR-tar}'
3140
3141
3142 # We'll loop over all known methods to create a tar archive until one works.
3143 _am_tools='gnutar  pax cpio none'
3144
3145 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3146
3147
3148
3149
3150
3151
3152 # POSIX will say in a future version that running "rm -f" with no argument
3153 # is OK; and we want to be able to make that assumption in our Makefile
3154 # recipes.  So use an aggressive probe to check that the usage we want is
3155 # actually supported "in the wild" to an acceptable degree.
3156 # See automake bug#10828.
3157 # To make any issue more visible, cause the running configure to be aborted
3158 # by default if the 'rm' program in use doesn't match our expectations; the
3159 # user can still override this though.
3160 if rm -f && rm -fr && rm -rf; then : OK; else
3161   cat >&2 <<'END'
3162 Oops!
3163
3164 Your 'rm' program seems unable to run without file operands specified
3165 on the command line, even when the '-f' option is present.  This is contrary
3166 to the behaviour of most rm programs out there, and not conforming with
3167 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3168
3169 Please tell bug-automake@gnu.org about your system, including the value
3170 of your $PATH and any error possibly output before this message.  This
3171 can help us improve future automake versions.
3172
3173 END
3174   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3175     echo 'Configuration will proceed anyway, since you have set the' >&2
3176     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3177     echo >&2
3178   else
3179     cat >&2 <<'END'
3180 Aborting the configuration process, to ensure you take notice of the issue.
3181
3182 You can download and install GNU coreutils to get an 'rm' implementation
3183 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3184
3185 If you want to complete the configuration process using your problematic
3186 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3187 to "yes", and re-run configure.
3188
3189 END
3190     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3191   fi
3192 fi
3193
3194 # Enable silent rules by default:
3195 # Check whether --enable-silent-rules was given.
3196 if test "${enable_silent_rules+set}" = set; then :
3197   enableval=$enable_silent_rules;
3198 fi
3199
3200 case $enable_silent_rules in # (((
3201   yes) AM_DEFAULT_VERBOSITY=0;;
3202    no) AM_DEFAULT_VERBOSITY=1;;
3203     *) AM_DEFAULT_VERBOSITY=0;;
3204 esac
3205 am_make=${MAKE-make}
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3207 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3208 if ${am_cv_make_support_nested_variables+:} false; then :
3209   $as_echo_n "(cached) " >&6
3210 else
3211   if $as_echo 'TRUE=$(BAR$(V))
3212 BAR0=false
3213 BAR1=true
3214 V=1
3215 am__doit:
3216         @$(TRUE)
3217 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3218   am_cv_make_support_nested_variables=yes
3219 else
3220   am_cv_make_support_nested_variables=no
3221 fi
3222 fi
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3224 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3225 if test $am_cv_make_support_nested_variables = yes; then
3226     AM_V='$(V)'
3227   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3228 else
3229   AM_V=$AM_DEFAULT_VERBOSITY
3230   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3231 fi
3232 AM_BACKSLASH='\'
3233
3234
3235 GDBM_VERSION_MAJOR=1
3236
3237 GDBM_VERSION_MINOR=11
3238
3239 GDBM_VERSION_PATCH=0
3240
3241
3242 # Check whether --enable-memory-mapped-io was given.
3243 if test "${enable_memory_mapped_io+set}" = set; then :
3244   enableval=$enable_memory_mapped_io; mapped_io=$enableval
3245 else
3246   mapped_io=yes
3247 fi
3248
3249
3250 # Check whether --enable-libgdbm-compat was given.
3251 if test "${enable_libgdbm_compat+set}" = set; then :
3252   enableval=$enable_libgdbm_compat; want_compat=$enableval
3253 else
3254   want_compat=no
3255 fi
3256
3257
3258 # Check whether --enable-gdbm-export was given.
3259 if test "${enable_gdbm_export+set}" = set; then :
3260   enableval=$enable_gdbm_export; want_export=$enableval
3261 else
3262   want_export=no
3263 fi
3264
3265
3266
3267 # Check whether --with-gdbm183-library was given.
3268 if test "${with_gdbm183_library+set}" = set; then :
3269   withval=$with_gdbm183_library; GDBM183_LIBRARY=$withval
3270 else
3271   GDBM183_LIBRARY="-lgdbm"
3272 fi
3273
3274
3275
3276 # Check whether --with-gdbm183-libdir was given.
3277 if test "${with_gdbm183_libdir+set}" = set; then :
3278   withval=$with_gdbm183_libdir; GDBM183_LIBDIR=$withval
3279 else
3280   GDBM183_LIBDIR="/usr/local/lib"
3281 fi
3282
3283
3284
3285 # Check whether --with-gdbm183-includedir was given.
3286 if test "${with_gdbm183_includedir+set}" = set; then :
3287   withval=$with_gdbm183_includedir; GDBM183_INCLUDEDIR=$withval
3288 else
3289   GDBM183_INCLUDEDIR="/usr/local/include"
3290 fi
3291
3292
3293 ac_ext=c
3294 ac_cpp='$CPP $CPPFLAGS'
3295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298 if test -n "$ac_tool_prefix"; then
3299   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3300 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_CC+:} false; then :
3304   $as_echo_n "(cached) " >&6
3305 else
3306   if test -n "$CC"; then
3307   ac_cv_prog_CC="$CC" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312   IFS=$as_save_IFS
3313   test -z "$as_dir" && as_dir=.
3314     for ac_exec_ext in '' $ac_executable_extensions; do
3315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3316     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318     break 2
3319   fi
3320 done
3321   done
3322 IFS=$as_save_IFS
3323
3324 fi
3325 fi
3326 CC=$ac_cv_prog_CC
3327 if test -n "$CC"; then
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3330 else
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335
3336 fi
3337 if test -z "$ac_cv_prog_CC"; then
3338   ac_ct_CC=$CC
3339   # Extract the first word of "gcc", so it can be a program name with args.
3340 set dummy gcc; ac_word=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3344   $as_echo_n "(cached) " >&6
3345 else
3346   if test -n "$ac_ct_CC"; then
3347   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352   IFS=$as_save_IFS
3353   test -z "$as_dir" && as_dir=.
3354     for ac_exec_ext in '' $ac_executable_extensions; do
3355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356     ac_cv_prog_ac_ct_CC="gcc"
3357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358     break 2
3359   fi
3360 done
3361   done
3362 IFS=$as_save_IFS
3363
3364 fi
3365 fi
3366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3367 if test -n "$ac_ct_CC"; then
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3369 $as_echo "$ac_ct_CC" >&6; }
3370 else
3371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3373 fi
3374
3375   if test "x$ac_ct_CC" = x; then
3376     CC=""
3377   else
3378     case $cross_compiling:$ac_tool_warned in
3379 yes:)
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3382 ac_tool_warned=yes ;;
3383 esac
3384     CC=$ac_ct_CC
3385   fi
3386 else
3387   CC="$ac_cv_prog_CC"
3388 fi
3389
3390 if test -z "$CC"; then
3391           if test -n "$ac_tool_prefix"; then
3392     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3393 set dummy ${ac_tool_prefix}cc; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_CC+:} false; then :
3397   $as_echo_n "(cached) " >&6
3398 else
3399   if test -n "$CC"; then
3400   ac_cv_prog_CC="$CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405   IFS=$as_save_IFS
3406   test -z "$as_dir" && as_dir=.
3407     for ac_exec_ext in '' $ac_executable_extensions; do
3408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409     ac_cv_prog_CC="${ac_tool_prefix}cc"
3410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411     break 2
3412   fi
3413 done
3414   done
3415 IFS=$as_save_IFS
3416
3417 fi
3418 fi
3419 CC=$ac_cv_prog_CC
3420 if test -n "$CC"; then
3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422 $as_echo "$CC" >&6; }
3423 else
3424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3426 fi
3427
3428
3429   fi
3430 fi
3431 if test -z "$CC"; then
3432   # Extract the first word of "cc", so it can be a program name with args.
3433 set dummy cc; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_CC+:} false; then :
3437   $as_echo_n "(cached) " >&6
3438 else
3439   if test -n "$CC"; then
3440   ac_cv_prog_CC="$CC" # Let the user override the test.
3441 else
3442   ac_prog_rejected=no
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446   IFS=$as_save_IFS
3447   test -z "$as_dir" && as_dir=.
3448     for ac_exec_ext in '' $ac_executable_extensions; do
3449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451        ac_prog_rejected=yes
3452        continue
3453      fi
3454     ac_cv_prog_CC="cc"
3455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456     break 2
3457   fi
3458 done
3459   done
3460 IFS=$as_save_IFS
3461
3462 if test $ac_prog_rejected = yes; then
3463   # We found a bogon in the path, so make sure we never use it.
3464   set dummy $ac_cv_prog_CC
3465   shift
3466   if test $# != 0; then
3467     # We chose a different compiler from the bogus one.
3468     # However, it has the same basename, so the bogon will be chosen
3469     # first if we set CC to just the basename; use the full file name.
3470     shift
3471     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3472   fi
3473 fi
3474 fi
3475 fi
3476 CC=$ac_cv_prog_CC
3477 if test -n "$CC"; then
3478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479 $as_echo "$CC" >&6; }
3480 else
3481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3483 fi
3484
3485
3486 fi
3487 if test -z "$CC"; then
3488   if test -n "$ac_tool_prefix"; then
3489   for ac_prog in cl.exe
3490   do
3491     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if ${ac_cv_prog_CC+:} false; then :
3496   $as_echo_n "(cached) " >&6
3497 else
3498   if test -n "$CC"; then
3499   ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504   IFS=$as_save_IFS
3505   test -z "$as_dir" && as_dir=.
3506     for ac_exec_ext in '' $ac_executable_extensions; do
3507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510     break 2
3511   fi
3512 done
3513   done
3514 IFS=$as_save_IFS
3515
3516 fi
3517 fi
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3522 else
3523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 fi
3526
3527
3528     test -n "$CC" && break
3529   done
3530 fi
3531 if test -z "$CC"; then
3532   ac_ct_CC=$CC
3533   for ac_prog in cl.exe
3534 do
3535   # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3540   $as_echo_n "(cached) " >&6
3541 else
3542   if test -n "$ac_ct_CC"; then
3543   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548   IFS=$as_save_IFS
3549   test -z "$as_dir" && as_dir=.
3550     for ac_exec_ext in '' $ac_executable_extensions; do
3551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3552     ac_cv_prog_ac_ct_CC="$ac_prog"
3553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554     break 2
3555   fi
3556 done
3557   done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3566 else
3567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571
3572   test -n "$ac_ct_CC" && break
3573 done
3574
3575   if test "x$ac_ct_CC" = x; then
3576     CC=""
3577   else
3578     case $cross_compiling:$ac_tool_warned in
3579 yes:)
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582 ac_tool_warned=yes ;;
3583 esac
3584     CC=$ac_ct_CC
3585   fi
3586 fi
3587
3588 fi
3589
3590
3591 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "no acceptable C compiler found in \$PATH
3594 See \`config.log' for more details" "$LINENO" 5; }
3595
3596 # Provide some information about the compiler.
3597 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3598 set X $ac_compile
3599 ac_compiler=$2
3600 for ac_option in --version -v -V -qversion; do
3601   { { ac_try="$ac_compiler $ac_option >&5"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3609   ac_status=$?
3610   if test -s conftest.err; then
3611     sed '10a\
3612 ... rest of stderr output deleted ...
3613          10q' conftest.err >conftest.er1
3614     cat conftest.er1 >&5
3615   fi
3616   rm -f conftest.er1 conftest.err
3617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618   test $ac_status = 0; }
3619 done
3620
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h.  */
3623
3624 int
3625 main ()
3626 {
3627
3628   ;
3629   return 0;
3630 }
3631 _ACEOF
3632 ac_clean_files_save=$ac_clean_files
3633 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3634 # Try to create an executable without -o first, disregard a.out.
3635 # It will help us diagnose broken compilers, and finding out an intuition
3636 # of exeext.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3638 $as_echo_n "checking whether the C compiler works... " >&6; }
3639 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3640
3641 # The possible output files:
3642 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3643
3644 ac_rmfiles=
3645 for ac_file in $ac_files
3646 do
3647   case $ac_file in
3648     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3649     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3650   esac
3651 done
3652 rm -f $ac_rmfiles
3653
3654 if { { ac_try="$ac_link_default"
3655 case "(($ac_try" in
3656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657   *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661   (eval "$ac_link_default") 2>&5
3662   ac_status=$?
3663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664   test $ac_status = 0; }; then :
3665   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3666 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3667 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3668 # so that the user can short-circuit this test for compilers unknown to
3669 # Autoconf.
3670 for ac_file in $ac_files ''
3671 do
3672   test -f "$ac_file" || continue
3673   case $ac_file in
3674     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3675         ;;
3676     [ab].out )
3677         # We found the default executable, but exeext='' is most
3678         # certainly right.
3679         break;;
3680     *.* )
3681         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3682         then :; else
3683            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3684         fi
3685         # We set ac_cv_exeext here because the later test for it is not
3686         # safe: cross compilers may not add the suffix if given an `-o'
3687         # argument, so we may need to know it at that point already.
3688         # Even if this section looks crufty: it has the advantage of
3689         # actually working.
3690         break;;
3691     * )
3692         break;;
3693   esac
3694 done
3695 test "$ac_cv_exeext" = no && ac_cv_exeext=
3696
3697 else
3698   ac_file=''
3699 fi
3700 if test -z "$ac_file"; then :
3701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3703 $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error 77 "C compiler cannot create executables
3709 See \`config.log' for more details" "$LINENO" 5; }
3710 else
3711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712 $as_echo "yes" >&6; }
3713 fi
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3715 $as_echo_n "checking for C compiler default output file name... " >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3717 $as_echo "$ac_file" >&6; }
3718 ac_exeext=$ac_cv_exeext
3719
3720 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3721 ac_clean_files=$ac_clean_files_save
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3723 $as_echo_n "checking for suffix of executables... " >&6; }
3724 if { { ac_try="$ac_link"
3725 case "(($ac_try" in
3726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727   *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731   (eval "$ac_link") 2>&5
3732   ac_status=$?
3733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734   test $ac_status = 0; }; then :
3735   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3736 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3737 # work properly (i.e., refer to `conftest.exe'), while it won't with
3738 # `rm'.
3739 for ac_file in conftest.exe conftest conftest.*; do
3740   test -f "$ac_file" || continue
3741   case $ac_file in
3742     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3744           break;;
3745     * ) break;;
3746   esac
3747 done
3748 else
3749   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3752 See \`config.log' for more details" "$LINENO" 5; }
3753 fi
3754 rm -f conftest conftest$ac_cv_exeext
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3756 $as_echo "$ac_cv_exeext" >&6; }
3757
3758 rm -f conftest.$ac_ext
3759 EXEEXT=$ac_cv_exeext
3760 ac_exeext=$EXEEXT
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h.  */
3763 #include <stdio.h>
3764 int
3765 main ()
3766 {
3767 FILE *f = fopen ("conftest.out", "w");
3768  return ferror (f) || fclose (f) != 0;
3769
3770   ;
3771   return 0;
3772 }
3773 _ACEOF
3774 ac_clean_files="$ac_clean_files conftest.out"
3775 # Check that the compiler produces executables we can run.  If not, either
3776 # the compiler is broken, or we cross compile.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3778 $as_echo_n "checking whether we are cross compiling... " >&6; }
3779 if test "$cross_compiling" != yes; then
3780   { { ac_try="$ac_link"
3781 case "(($ac_try" in
3782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783   *) ac_try_echo=$ac_try;;
3784 esac
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787   (eval "$ac_link") 2>&5
3788   ac_status=$?
3789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790   test $ac_status = 0; }
3791   if { ac_try='./conftest$ac_cv_exeext'
3792   { { case "(($ac_try" in
3793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794   *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798   (eval "$ac_try") 2>&5
3799   ac_status=$?
3800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801   test $ac_status = 0; }; }; then
3802     cross_compiling=no
3803   else
3804     if test "$cross_compiling" = maybe; then
3805         cross_compiling=yes
3806     else
3807         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error $? "cannot run C compiled programs.
3810 If you meant to cross compile, use \`--host'.
3811 See \`config.log' for more details" "$LINENO" 5; }
3812     fi
3813   fi
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3816 $as_echo "$cross_compiling" >&6; }
3817
3818 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3819 ac_clean_files=$ac_clean_files_save
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3821 $as_echo_n "checking for suffix of object files... " >&6; }
3822 if ${ac_cv_objext+:} false; then :
3823   $as_echo_n "(cached) " >&6
3824 else
3825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h.  */
3827
3828 int
3829 main ()
3830 {
3831
3832   ;
3833   return 0;
3834 }
3835 _ACEOF
3836 rm -f conftest.o conftest.obj
3837 if { { ac_try="$ac_compile"
3838 case "(($ac_try" in
3839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840   *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844   (eval "$ac_compile") 2>&5
3845   ac_status=$?
3846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847   test $ac_status = 0; }; then :
3848   for ac_file in conftest.o conftest.obj conftest.*; do
3849   test -f "$ac_file" || continue;
3850   case $ac_file in
3851     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3852     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3853        break;;
3854   esac
3855 done
3856 else
3857   $as_echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3859
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "cannot compute suffix of object files: cannot compile
3863 See \`config.log' for more details" "$LINENO" 5; }
3864 fi
3865 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3866 fi
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3868 $as_echo "$ac_cv_objext" >&6; }
3869 OBJEXT=$ac_cv_objext
3870 ac_objext=$OBJEXT
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3872 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3873 if ${ac_cv_c_compiler_gnu+:} false; then :
3874   $as_echo_n "(cached) " >&6
3875 else
3876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h.  */
3878
3879 int
3880 main ()
3881 {
3882 #ifndef __GNUC__
3883        choke me
3884 #endif
3885
3886   ;
3887   return 0;
3888 }
3889 _ACEOF
3890 if ac_fn_c_try_compile "$LINENO"; then :
3891   ac_compiler_gnu=yes
3892 else
3893   ac_compiler_gnu=no
3894 fi
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3897
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3900 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3901 if test $ac_compiler_gnu = yes; then
3902   GCC=yes
3903 else
3904   GCC=
3905 fi
3906 ac_test_CFLAGS=${CFLAGS+set}
3907 ac_save_CFLAGS=$CFLAGS
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3909 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3910 if ${ac_cv_prog_cc_g+:} false; then :
3911   $as_echo_n "(cached) " >&6
3912 else
3913   ac_save_c_werror_flag=$ac_c_werror_flag
3914    ac_c_werror_flag=yes
3915    ac_cv_prog_cc_g=no
3916    CFLAGS="-g"
3917    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h.  */
3919
3920 int
3921 main ()
3922 {
3923
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 if ac_fn_c_try_compile "$LINENO"; then :
3929   ac_cv_prog_cc_g=yes
3930 else
3931   CFLAGS=""
3932       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h.  */
3934
3935 int
3936 main ()
3937 {
3938
3939   ;
3940   return 0;
3941 }
3942 _ACEOF
3943 if ac_fn_c_try_compile "$LINENO"; then :
3944
3945 else
3946   ac_c_werror_flag=$ac_save_c_werror_flag
3947          CFLAGS="-g"
3948          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h.  */
3950
3951 int
3952 main ()
3953 {
3954
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959 if ac_fn_c_try_compile "$LINENO"; then :
3960   ac_cv_prog_cc_g=yes
3961 fi
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 fi
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 fi
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967    ac_c_werror_flag=$ac_save_c_werror_flag
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3970 $as_echo "$ac_cv_prog_cc_g" >&6; }
3971 if test "$ac_test_CFLAGS" = set; then
3972   CFLAGS=$ac_save_CFLAGS
3973 elif test $ac_cv_prog_cc_g = yes; then
3974   if test "$GCC" = yes; then
3975     CFLAGS="-g -O2"
3976   else
3977     CFLAGS="-g"
3978   fi
3979 else
3980   if test "$GCC" = yes; then
3981     CFLAGS="-O2"
3982   else
3983     CFLAGS=
3984   fi
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3987 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3988 if ${ac_cv_prog_cc_c89+:} false; then :
3989   $as_echo_n "(cached) " >&6
3990 else
3991   ac_cv_prog_cc_c89=no
3992 ac_save_CC=$CC
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h.  */
3995 #include <stdarg.h>
3996 #include <stdio.h>
3997 struct stat;
3998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3999 struct buf { int x; };
4000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4001 static char *e (p, i)
4002      char **p;
4003      int i;
4004 {
4005   return p[i];
4006 }
4007 static char *f (char * (*g) (char **, int), char **p, ...)
4008 {
4009   char *s;
4010   va_list v;
4011   va_start (v,p);
4012   s = g (p, va_arg (v,int));
4013   va_end (v);
4014   return s;
4015 }
4016
4017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4018    function prototypes and stuff, but not '\xHH' hex character constants.
4019    These don't provoke an error unfortunately, instead are silently treated
4020    as 'x'.  The following induces an error, until -std is added to get
4021    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4022    array size at least.  It's necessary to write '\x00'==0 to get something
4023    that's true only with -std.  */
4024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4025
4026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4027    inside strings and character constants.  */
4028 #define FOO(x) 'x'
4029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4030
4031 int test (int i, double x);
4032 struct s1 {int (*f) (int a);};
4033 struct s2 {int (*f) (double a);};
4034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4035 int argc;
4036 char **argv;
4037 int
4038 main ()
4039 {
4040 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4041   ;
4042   return 0;
4043 }
4044 _ACEOF
4045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4046         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4047 do
4048   CC="$ac_save_CC $ac_arg"
4049   if ac_fn_c_try_compile "$LINENO"; then :
4050   ac_cv_prog_cc_c89=$ac_arg
4051 fi
4052 rm -f core conftest.err conftest.$ac_objext
4053   test "x$ac_cv_prog_cc_c89" != "xno" && break
4054 done
4055 rm -f conftest.$ac_ext
4056 CC=$ac_save_CC
4057
4058 fi
4059 # AC_CACHE_VAL
4060 case "x$ac_cv_prog_cc_c89" in
4061   x)
4062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4063 $as_echo "none needed" >&6; } ;;
4064   xno)
4065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4066 $as_echo "unsupported" >&6; } ;;
4067   *)
4068     CC="$CC $ac_cv_prog_cc_c89"
4069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4070 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4071 esac
4072 if test "x$ac_cv_prog_cc_c89" != xno; then :
4073
4074 fi
4075
4076 ac_ext=c
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4081
4082 ac_ext=c
4083 ac_cpp='$CPP $CPPFLAGS'
4084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4088 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4089 if ${am_cv_prog_cc_c_o+:} false; then :
4090   $as_echo_n "(cached) " >&6
4091 else
4092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h.  */
4094
4095 int
4096 main ()
4097 {
4098
4099   ;
4100   return 0;
4101 }
4102 _ACEOF
4103   # Make sure it works both with $CC and with simple cc.
4104   # Following AC_PROG_CC_C_O, we do the test twice because some
4105   # compilers refuse to overwrite an existing .o file with -o,
4106   # though they will create one.
4107   am_cv_prog_cc_c_o=yes
4108   for am_i in 1 2; do
4109     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4110    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4111    ac_status=$?
4112    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113    (exit $ac_status); } \
4114          && test -f conftest2.$ac_objext; then
4115       : OK
4116     else
4117       am_cv_prog_cc_c_o=no
4118       break
4119     fi
4120   done
4121   rm -f core conftest*
4122   unset am_i
4123 fi
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4125 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4126 if test "$am_cv_prog_cc_c_o" != yes; then
4127    # Losing compiler, so override with the script.
4128    # FIXME: It is wrong to rewrite CC.
4129    # But if we don't then we get into trouble of one sort or another.
4130    # A longer-term fix would be to have automake use am__CC in this case,
4131    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4132    CC="$am_aux_dir/compile $CC"
4133 fi
4134 ac_ext=c
4135 ac_cpp='$CPP $CPPFLAGS'
4136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140 DEPDIR="${am__leading_dot}deps"
4141
4142 ac_config_commands="$ac_config_commands depfiles"
4143
4144
4145 am_make=${MAKE-make}
4146 cat > confinc << 'END'
4147 am__doit:
4148         @echo this is the am__doit target
4149 .PHONY: am__doit
4150 END
4151 # If we don't find an include directive, just comment out the code.
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4153 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4154 am__include="#"
4155 am__quote=
4156 _am_result=none
4157 # First try GNU make style include.
4158 echo "include confinc" > confmf
4159 # Ignore all kinds of additional output from 'make'.
4160 case `$am_make -s -f confmf 2> /dev/null` in #(
4161 *the\ am__doit\ target*)
4162   am__include=include
4163   am__quote=
4164   _am_result=GNU
4165   ;;
4166 esac
4167 # Now try BSD make style include.
4168 if test "$am__include" = "#"; then
4169    echo '.include "confinc"' > confmf
4170    case `$am_make -s -f confmf 2> /dev/null` in #(
4171    *the\ am__doit\ target*)
4172      am__include=.include
4173      am__quote="\""
4174      _am_result=BSD
4175      ;;
4176    esac
4177 fi
4178
4179
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4181 $as_echo "$_am_result" >&6; }
4182 rm -f confinc confmf
4183
4184 # Check whether --enable-dependency-tracking was given.
4185 if test "${enable_dependency_tracking+set}" = set; then :
4186   enableval=$enable_dependency_tracking;
4187 fi
4188
4189 if test "x$enable_dependency_tracking" != xno; then
4190   am_depcomp="$ac_aux_dir/depcomp"
4191   AMDEPBACKSLASH='\'
4192   am__nodep='_no'
4193 fi
4194  if test "x$enable_dependency_tracking" != xno; then
4195   AMDEP_TRUE=
4196   AMDEP_FALSE='#'
4197 else
4198   AMDEP_TRUE='#'
4199   AMDEP_FALSE=
4200 fi
4201
4202
4203
4204 depcc="$CC"   am_compiler_list=
4205
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4207 $as_echo_n "checking dependency style of $depcc... " >&6; }
4208 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4209   $as_echo_n "(cached) " >&6
4210 else
4211   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4212   # We make a subdir and do the tests there.  Otherwise we can end up
4213   # making bogus files that we don't know about and never remove.  For
4214   # instance it was reported that on HP-UX the gcc test will end up
4215   # making a dummy file named 'D' -- because '-MD' means "put the output
4216   # in D".
4217   rm -rf conftest.dir
4218   mkdir conftest.dir
4219   # Copy depcomp to subdir because otherwise we won't find it if we're
4220   # using a relative directory.
4221   cp "$am_depcomp" conftest.dir
4222   cd conftest.dir
4223   # We will build objects and dependencies in a subdirectory because
4224   # it helps to detect inapplicable dependency modes.  For instance
4225   # both Tru64's cc and ICC support -MD to output dependencies as a
4226   # side effect of compilation, but ICC will put the dependencies in
4227   # the current directory while Tru64 will put them in the object
4228   # directory.
4229   mkdir sub
4230
4231   am_cv_CC_dependencies_compiler_type=none
4232   if test "$am_compiler_list" = ""; then
4233      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4234   fi
4235   am__universal=false
4236   case " $depcc " in #(
4237      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4238      esac
4239
4240   for depmode in $am_compiler_list; do
4241     # Setup a source with many dependencies, because some compilers
4242     # like to wrap large dependency lists on column 80 (with \), and
4243     # we should not choose a depcomp mode which is confused by this.
4244     #
4245     # We need to recreate these files for each test, as the compiler may
4246     # overwrite some of them when testing with obscure command lines.
4247     # This happens at least with the AIX C compiler.
4248     : > sub/conftest.c
4249     for i in 1 2 3 4 5 6; do
4250       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4251       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4252       # Solaris 10 /bin/sh.
4253       echo '/* dummy */' > sub/conftst$i.h
4254     done
4255     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4256
4257     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4258     # mode.  It turns out that the SunPro C++ compiler does not properly
4259     # handle '-M -o', and we need to detect this.  Also, some Intel
4260     # versions had trouble with output in subdirs.
4261     am__obj=sub/conftest.${OBJEXT-o}
4262     am__minus_obj="-o $am__obj"
4263     case $depmode in
4264     gcc)
4265       # This depmode causes a compiler race in universal mode.
4266       test "$am__universal" = false || continue
4267       ;;
4268     nosideeffect)
4269       # After this tag, mechanisms are not by side-effect, so they'll
4270       # only be used when explicitly requested.
4271       if test "x$enable_dependency_tracking" = xyes; then
4272         continue
4273       else
4274         break
4275       fi
4276       ;;
4277     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4278       # This compiler won't grok '-c -o', but also, the minuso test has
4279       # not run yet.  These depmodes are late enough in the game, and
4280       # so weak that their functioning should not be impacted.
4281       am__obj=conftest.${OBJEXT-o}
4282       am__minus_obj=
4283       ;;
4284     none) break ;;
4285     esac
4286     if depmode=$depmode \
4287        source=sub/conftest.c object=$am__obj \
4288        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4289        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4290          >/dev/null 2>conftest.err &&
4291        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4292        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4293        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4294        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4295       # icc doesn't choke on unknown options, it will just issue warnings
4296       # or remarks (even with -Werror).  So we grep stderr for any message
4297       # that says an option was ignored or not supported.
4298       # When given -MP, icc 7.0 and 7.1 complain thusly:
4299       #   icc: Command line warning: ignoring option '-M'; no argument required
4300       # The diagnosis changed in icc 8.0:
4301       #   icc: Command line remark: option '-MP' not supported
4302       if (grep 'ignoring option' conftest.err ||
4303           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4304         am_cv_CC_dependencies_compiler_type=$depmode
4305         break
4306       fi
4307     fi
4308   done
4309
4310   cd ..
4311   rm -rf conftest.dir
4312 else
4313   am_cv_CC_dependencies_compiler_type=none
4314 fi
4315
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4318 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4319 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4320
4321  if
4322   test "x$enable_dependency_tracking" != xno \
4323   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4324   am__fastdepCC_TRUE=
4325   am__fastdepCC_FALSE='#'
4326 else
4327   am__fastdepCC_TRUE='#'
4328   am__fastdepCC_FALSE=
4329 fi
4330
4331
4332 ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4338 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4339 # On Suns, sometimes $CPP names a directory.
4340 if test -n "$CPP" && test -d "$CPP"; then
4341   CPP=
4342 fi
4343 if test -z "$CPP"; then
4344   if ${ac_cv_prog_CPP+:} false; then :
4345   $as_echo_n "(cached) " >&6
4346 else
4347       # Double quotes because CPP needs to be expanded
4348     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4349     do
4350       ac_preproc_ok=false
4351 for ac_c_preproc_warn_flag in '' yes
4352 do
4353   # Use a header file that comes with gcc, so configuring glibc
4354   # with a fresh cross-compiler works.
4355   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4356   # <limits.h> exists even on freestanding compilers.
4357   # On the NeXT, cc -E runs the code through the compiler's parser,
4358   # not just through cpp. "Syntax error" is here to catch this case.
4359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h.  */
4361 #ifdef __STDC__
4362 # include <limits.h>
4363 #else
4364 # include <assert.h>
4365 #endif
4366                      Syntax error
4367 _ACEOF
4368 if ac_fn_c_try_cpp "$LINENO"; then :
4369
4370 else
4371   # Broken: fails on valid input.
4372 continue
4373 fi
4374 rm -f conftest.err conftest.i conftest.$ac_ext
4375
4376   # OK, works on sane cases.  Now check whether nonexistent headers
4377   # can be detected and how.
4378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h.  */
4380 #include <ac_nonexistent.h>
4381 _ACEOF
4382 if ac_fn_c_try_cpp "$LINENO"; then :
4383   # Broken: success on invalid input.
4384 continue
4385 else
4386   # Passes both tests.
4387 ac_preproc_ok=:
4388 break
4389 fi
4390 rm -f conftest.err conftest.i conftest.$ac_ext
4391
4392 done
4393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4394 rm -f conftest.i conftest.err conftest.$ac_ext
4395 if $ac_preproc_ok; then :
4396   break
4397 fi
4398
4399     done
4400     ac_cv_prog_CPP=$CPP
4401
4402 fi
4403   CPP=$ac_cv_prog_CPP
4404 else
4405   ac_cv_prog_CPP=$CPP
4406 fi
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4408 $as_echo "$CPP" >&6; }
4409 ac_preproc_ok=false
4410 for ac_c_preproc_warn_flag in '' yes
4411 do
4412   # Use a header file that comes with gcc, so configuring glibc
4413   # with a fresh cross-compiler works.
4414   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415   # <limits.h> exists even on freestanding compilers.
4416   # On the NeXT, cc -E runs the code through the compiler's parser,
4417   # not just through cpp. "Syntax error" is here to catch this case.
4418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h.  */
4420 #ifdef __STDC__
4421 # include <limits.h>
4422 #else
4423 # include <assert.h>
4424 #endif
4425                      Syntax error
4426 _ACEOF
4427 if ac_fn_c_try_cpp "$LINENO"; then :
4428
4429 else
4430   # Broken: fails on valid input.
4431 continue
4432 fi
4433 rm -f conftest.err conftest.i conftest.$ac_ext
4434
4435   # OK, works on sane cases.  Now check whether nonexistent headers
4436   # can be detected and how.
4437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h.  */
4439 #include <ac_nonexistent.h>
4440 _ACEOF
4441 if ac_fn_c_try_cpp "$LINENO"; then :
4442   # Broken: success on invalid input.
4443 continue
4444 else
4445   # Passes both tests.
4446 ac_preproc_ok=:
4447 break
4448 fi
4449 rm -f conftest.err conftest.i conftest.$ac_ext
4450
4451 done
4452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4453 rm -f conftest.i conftest.err conftest.$ac_ext
4454 if $ac_preproc_ok; then :
4455
4456 else
4457   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4459 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4460 See \`config.log' for more details" "$LINENO" 5; }
4461 fi
4462
4463 ac_ext=c
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468
4469
4470 case `pwd` in
4471   *\ * | *\     *)
4472     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4473 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4474 esac
4475
4476
4477
4478 macro_version='2.4.2'
4479 macro_revision='1.3337'
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493 ltmain="$ac_aux_dir/ltmain.sh"
4494
4495 # Make sure we can run config.sub.
4496 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4497   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4498
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4500 $as_echo_n "checking build system type... " >&6; }
4501 if ${ac_cv_build+:} false; then :
4502   $as_echo_n "(cached) " >&6
4503 else
4504   ac_build_alias=$build_alias
4505 test "x$ac_build_alias" = x &&
4506   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4507 test "x$ac_build_alias" = x &&
4508   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4509 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4510   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4511
4512 fi
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4514 $as_echo "$ac_cv_build" >&6; }
4515 case $ac_cv_build in
4516 *-*-*) ;;
4517 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4518 esac
4519 build=$ac_cv_build
4520 ac_save_IFS=$IFS; IFS='-'
4521 set x $ac_cv_build
4522 shift
4523 build_cpu=$1
4524 build_vendor=$2
4525 shift; shift
4526 # Remember, the first character of IFS is used to create $*,
4527 # except with old shells:
4528 build_os=$*
4529 IFS=$ac_save_IFS
4530 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4531
4532
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4534 $as_echo_n "checking host system type... " >&6; }
4535 if ${ac_cv_host+:} false; then :
4536   $as_echo_n "(cached) " >&6
4537 else
4538   if test "x$host_alias" = x; then
4539   ac_cv_host=$ac_cv_build
4540 else
4541   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4542     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4543 fi
4544
4545 fi
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4547 $as_echo "$ac_cv_host" >&6; }
4548 case $ac_cv_host in
4549 *-*-*) ;;
4550 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4551 esac
4552 host=$ac_cv_host
4553 ac_save_IFS=$IFS; IFS='-'
4554 set x $ac_cv_host
4555 shift
4556 host_cpu=$1
4557 host_vendor=$2
4558 shift; shift
4559 # Remember, the first character of IFS is used to create $*,
4560 # except with old shells:
4561 host_os=$*
4562 IFS=$ac_save_IFS
4563 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4564
4565
4566 # Backslashify metacharacters that are still active within
4567 # double-quoted strings.
4568 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4569
4570 # Same as above, but do not quote variable references.
4571 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4572
4573 # Sed substitution to delay expansion of an escaped shell variable in a
4574 # double_quote_subst'ed string.
4575 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4576
4577 # Sed substitution to delay expansion of an escaped single quote.
4578 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4579
4580 # Sed substitution to avoid accidental globbing in evaled expressions
4581 no_glob_subst='s/\*/\\\*/g'
4582
4583 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4584 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4585 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4586
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4588 $as_echo_n "checking how to print strings... " >&6; }
4589 # Test print first, because it will be a builtin if present.
4590 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4591    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4592   ECHO='print -r --'
4593 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4594   ECHO='printf %s\n'
4595 else
4596   # Use this function as a fallback that always works.
4597   func_fallback_echo ()
4598   {
4599     eval 'cat <<_LTECHO_EOF
4600 $1
4601 _LTECHO_EOF'
4602   }
4603   ECHO='func_fallback_echo'
4604 fi
4605
4606 # func_echo_all arg...
4607 # Invoke $ECHO with all args, space-separated.
4608 func_echo_all ()
4609 {
4610     $ECHO ""
4611 }
4612
4613 case "$ECHO" in
4614   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4615 $as_echo "printf" >&6; } ;;
4616   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4617 $as_echo "print -r" >&6; } ;;
4618   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4619 $as_echo "cat" >&6; } ;;
4620 esac
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4636 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4637 if ${ac_cv_path_SED+:} false; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4641      for ac_i in 1 2 3 4 5 6 7; do
4642        ac_script="$ac_script$as_nl$ac_script"
4643      done
4644      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4645      { ac_script=; unset ac_script;}
4646      if test -z "$SED"; then
4647   ac_path_SED_found=false
4648   # Loop through the user's path and test for each of PROGNAME-LIST
4649   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652   IFS=$as_save_IFS
4653   test -z "$as_dir" && as_dir=.
4654     for ac_prog in sed gsed; do
4655     for ac_exec_ext in '' $ac_executable_extensions; do
4656       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4657       as_fn_executable_p "$ac_path_SED" || continue
4658 # Check for GNU ac_path_SED and select it if it is found.
4659   # Check for GNU $ac_path_SED
4660 case `"$ac_path_SED" --version 2>&1` in
4661 *GNU*)
4662   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4663 *)
4664   ac_count=0
4665   $as_echo_n 0123456789 >"conftest.in"
4666   while :
4667   do
4668     cat "conftest.in" "conftest.in" >"conftest.tmp"
4669     mv "conftest.tmp" "conftest.in"
4670     cp "conftest.in" "conftest.nl"
4671     $as_echo '' >> "conftest.nl"
4672     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4673     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4674     as_fn_arith $ac_count + 1 && ac_count=$as_val
4675     if test $ac_count -gt ${ac_path_SED_max-0}; then
4676       # Best one so far, save it but keep looking for a better one
4677       ac_cv_path_SED="$ac_path_SED"
4678       ac_path_SED_max=$ac_count
4679     fi
4680     # 10*(2^10) chars as input seems more than enough
4681     test $ac_count -gt 10 && break
4682   done
4683   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4684 esac
4685
4686       $ac_path_SED_found && break 3
4687     done
4688   done
4689   done
4690 IFS=$as_save_IFS
4691   if test -z "$ac_cv_path_SED"; then
4692     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4693   fi
4694 else
4695   ac_cv_path_SED=$SED
4696 fi
4697
4698 fi
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4700 $as_echo "$ac_cv_path_SED" >&6; }
4701  SED="$ac_cv_path_SED"
4702   rm -f conftest.sed
4703
4704 test -z "$SED" && SED=sed
4705 Xsed="$SED -e 1s/^X//"
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4718 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4719 if ${ac_cv_path_GREP+:} false; then :
4720   $as_echo_n "(cached) " >&6
4721 else
4722   if test -z "$GREP"; then
4723   ac_path_GREP_found=false
4724   # Loop through the user's path and test for each of PROGNAME-LIST
4725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4727 do
4728   IFS=$as_save_IFS
4729   test -z "$as_dir" && as_dir=.
4730     for ac_prog in grep ggrep; do
4731     for ac_exec_ext in '' $ac_executable_extensions; do
4732       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4733       as_fn_executable_p "$ac_path_GREP" || continue
4734 # Check for GNU ac_path_GREP and select it if it is found.
4735   # Check for GNU $ac_path_GREP
4736 case `"$ac_path_GREP" --version 2>&1` in
4737 *GNU*)
4738   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4739 *)
4740   ac_count=0
4741   $as_echo_n 0123456789 >"conftest.in"
4742   while :
4743   do
4744     cat "conftest.in" "conftest.in" >"conftest.tmp"
4745     mv "conftest.tmp" "conftest.in"
4746     cp "conftest.in" "conftest.nl"
4747     $as_echo 'GREP' >> "conftest.nl"
4748     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4749     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4750     as_fn_arith $ac_count + 1 && ac_count=$as_val
4751     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4752       # Best one so far, save it but keep looking for a better one
4753       ac_cv_path_GREP="$ac_path_GREP"
4754       ac_path_GREP_max=$ac_count
4755     fi
4756     # 10*(2^10) chars as input seems more than enough
4757     test $ac_count -gt 10 && break
4758   done
4759   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4760 esac
4761
4762       $ac_path_GREP_found && break 3
4763     done
4764   done
4765   done
4766 IFS=$as_save_IFS
4767   if test -z "$ac_cv_path_GREP"; then
4768     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4769   fi
4770 else
4771   ac_cv_path_GREP=$GREP
4772 fi
4773
4774 fi
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4776 $as_echo "$ac_cv_path_GREP" >&6; }
4777  GREP="$ac_cv_path_GREP"
4778
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4781 $as_echo_n "checking for egrep... " >&6; }
4782 if ${ac_cv_path_EGREP+:} false; then :
4783   $as_echo_n "(cached) " >&6
4784 else
4785   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4786    then ac_cv_path_EGREP="$GREP -E"
4787    else
4788      if test -z "$EGREP"; then
4789   ac_path_EGREP_found=false
4790   # Loop through the user's path and test for each of PROGNAME-LIST
4791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796     for ac_prog in egrep; do
4797     for ac_exec_ext in '' $ac_executable_extensions; do
4798       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4799       as_fn_executable_p "$ac_path_EGREP" || continue
4800 # Check for GNU ac_path_EGREP and select it if it is found.
4801   # Check for GNU $ac_path_EGREP
4802 case `"$ac_path_EGREP" --version 2>&1` in
4803 *GNU*)
4804   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4805 *)
4806   ac_count=0
4807   $as_echo_n 0123456789 >"conftest.in"
4808   while :
4809   do
4810     cat "conftest.in" "conftest.in" >"conftest.tmp"
4811     mv "conftest.tmp" "conftest.in"
4812     cp "conftest.in" "conftest.nl"
4813     $as_echo 'EGREP' >> "conftest.nl"
4814     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4815     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4816     as_fn_arith $ac_count + 1 && ac_count=$as_val
4817     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4818       # Best one so far, save it but keep looking for a better one
4819       ac_cv_path_EGREP="$ac_path_EGREP"
4820       ac_path_EGREP_max=$ac_count
4821     fi
4822     # 10*(2^10) chars as input seems more than enough
4823     test $ac_count -gt 10 && break
4824   done
4825   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4826 esac
4827
4828       $ac_path_EGREP_found && break 3
4829     done
4830   done
4831   done
4832 IFS=$as_save_IFS
4833   if test -z "$ac_cv_path_EGREP"; then
4834     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4835   fi
4836 else
4837   ac_cv_path_EGREP=$EGREP
4838 fi
4839
4840    fi
4841 fi
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4843 $as_echo "$ac_cv_path_EGREP" >&6; }
4844  EGREP="$ac_cv_path_EGREP"
4845
4846
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4848 $as_echo_n "checking for fgrep... " >&6; }
4849 if ${ac_cv_path_FGREP+:} false; then :
4850   $as_echo_n "(cached) " >&6
4851 else
4852   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4853    then ac_cv_path_FGREP="$GREP -F"
4854    else
4855      if test -z "$FGREP"; then
4856   ac_path_FGREP_found=false
4857   # Loop through the user's path and test for each of PROGNAME-LIST
4858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4860 do
4861   IFS=$as_save_IFS
4862   test -z "$as_dir" && as_dir=.
4863     for ac_prog in fgrep; do
4864     for ac_exec_ext in '' $ac_executable_extensions; do
4865       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4866       as_fn_executable_p "$ac_path_FGREP" || continue
4867 # Check for GNU ac_path_FGREP and select it if it is found.
4868   # Check for GNU $ac_path_FGREP
4869 case `"$ac_path_FGREP" --version 2>&1` in
4870 *GNU*)
4871   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4872 *)
4873   ac_count=0
4874   $as_echo_n 0123456789 >"conftest.in"
4875   while :
4876   do
4877     cat "conftest.in" "conftest.in" >"conftest.tmp"
4878     mv "conftest.tmp" "conftest.in"
4879     cp "conftest.in" "conftest.nl"
4880     $as_echo 'FGREP' >> "conftest.nl"
4881     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4882     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4883     as_fn_arith $ac_count + 1 && ac_count=$as_val
4884     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4885       # Best one so far, save it but keep looking for a better one
4886       ac_cv_path_FGREP="$ac_path_FGREP"
4887       ac_path_FGREP_max=$ac_count
4888     fi
4889     # 10*(2^10) chars as input seems more than enough
4890     test $ac_count -gt 10 && break
4891   done
4892   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4893 esac
4894
4895       $ac_path_FGREP_found && break 3
4896     done
4897   done
4898   done
4899 IFS=$as_save_IFS
4900   if test -z "$ac_cv_path_FGREP"; then
4901     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4902   fi
4903 else
4904   ac_cv_path_FGREP=$FGREP
4905 fi
4906
4907    fi
4908 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4910 $as_echo "$ac_cv_path_FGREP" >&6; }
4911  FGREP="$ac_cv_path_FGREP"
4912
4913
4914 test -z "$GREP" && GREP=grep
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934 # Check whether --with-gnu-ld was given.
4935 if test "${with_gnu_ld+set}" = set; then :
4936   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4937 else
4938   with_gnu_ld=no
4939 fi
4940
4941 ac_prog=ld
4942 if test "$GCC" = yes; then
4943   # Check if gcc -print-prog-name=ld gives a path.
4944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4945 $as_echo_n "checking for ld used by $CC... " >&6; }
4946   case $host in
4947   *-*-mingw*)
4948     # gcc leaves a trailing carriage return which upsets mingw
4949     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4950   *)
4951     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4952   esac
4953   case $ac_prog in
4954     # Accept absolute paths.
4955     [\\/]* | ?:[\\/]*)
4956       re_direlt='/[^/][^/]*/\.\./'
4957       # Canonicalize the pathname of ld
4958       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4959       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4960         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4961       done
4962       test -z "$LD" && LD="$ac_prog"
4963       ;;
4964   "")
4965     # If it fails, then pretend we aren't using GCC.
4966     ac_prog=ld
4967     ;;
4968   *)
4969     # If it is relative, then search for the first ld in PATH.
4970     with_gnu_ld=unknown
4971     ;;
4972   esac
4973 elif test "$with_gnu_ld" = yes; then
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4975 $as_echo_n "checking for GNU ld... " >&6; }
4976 else
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4978 $as_echo_n "checking for non-GNU ld... " >&6; }
4979 fi
4980 if ${lt_cv_path_LD+:} false; then :
4981   $as_echo_n "(cached) " >&6
4982 else
4983   if test -z "$LD"; then
4984   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4985   for ac_dir in $PATH; do
4986     IFS="$lt_save_ifs"
4987     test -z "$ac_dir" && ac_dir=.
4988     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4989       lt_cv_path_LD="$ac_dir/$ac_prog"
4990       # Check to see if the program is GNU ld.  I'd rather use --version,
4991       # but apparently some variants of GNU ld only accept -v.
4992       # Break only if it was the GNU/non-GNU ld that we prefer.
4993       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4994       *GNU* | *'with BFD'*)
4995         test "$with_gnu_ld" != no && break
4996         ;;
4997       *)
4998         test "$with_gnu_ld" != yes && break
4999         ;;
5000       esac
5001     fi
5002   done
5003   IFS="$lt_save_ifs"
5004 else
5005   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5006 fi
5007 fi
5008
5009 LD="$lt_cv_path_LD"
5010 if test -n "$LD"; then
5011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5012 $as_echo "$LD" >&6; }
5013 else
5014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5016 fi
5017 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5019 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5020 if ${lt_cv_prog_gnu_ld+:} false; then :
5021   $as_echo_n "(cached) " >&6
5022 else
5023   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5024 case `$LD -v 2>&1 </dev/null` in
5025 *GNU* | *'with BFD'*)
5026   lt_cv_prog_gnu_ld=yes
5027   ;;
5028 *)
5029   lt_cv_prog_gnu_ld=no
5030   ;;
5031 esac
5032 fi
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5034 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5035 with_gnu_ld=$lt_cv_prog_gnu_ld
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5046 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5047 if ${lt_cv_path_NM+:} false; then :
5048   $as_echo_n "(cached) " >&6
5049 else
5050   if test -n "$NM"; then
5051   # Let the user override the test.
5052   lt_cv_path_NM="$NM"
5053 else
5054   lt_nm_to_check="${ac_tool_prefix}nm"
5055   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5056     lt_nm_to_check="$lt_nm_to_check nm"
5057   fi
5058   for lt_tmp_nm in $lt_nm_to_check; do
5059     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5060     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5061       IFS="$lt_save_ifs"
5062       test -z "$ac_dir" && ac_dir=.
5063       tmp_nm="$ac_dir/$lt_tmp_nm"
5064       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5065         # Check to see if the nm accepts a BSD-compat flag.
5066         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5067         #   nm: unknown option "B" ignored
5068         # Tru64's nm complains that /dev/null is an invalid object file
5069         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5070         */dev/null* | *'Invalid file or object type'*)
5071           lt_cv_path_NM="$tmp_nm -B"
5072           break
5073           ;;
5074         *)
5075           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5076           */dev/null*)
5077             lt_cv_path_NM="$tmp_nm -p"
5078             break
5079             ;;
5080           *)
5081             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5082             continue # so that we can try to find one that supports BSD flags
5083             ;;
5084           esac
5085           ;;
5086         esac
5087       fi
5088     done
5089     IFS="$lt_save_ifs"
5090   done
5091   : ${lt_cv_path_NM=no}
5092 fi
5093 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5095 $as_echo "$lt_cv_path_NM" >&6; }
5096 if test "$lt_cv_path_NM" != "no"; then
5097   NM="$lt_cv_path_NM"
5098 else
5099   # Didn't find any BSD compatible name lister, look for dumpbin.
5100   if test -n "$DUMPBIN"; then :
5101     # Let the user override the test.
5102   else
5103     if test -n "$ac_tool_prefix"; then
5104   for ac_prog in dumpbin "link -dump"
5105   do
5106     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5107 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if ${ac_cv_prog_DUMPBIN+:} false; then :
5111   $as_echo_n "(cached) " >&6
5112 else
5113   if test -n "$DUMPBIN"; then
5114   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119   IFS=$as_save_IFS
5120   test -z "$as_dir" && as_dir=.
5121     for ac_exec_ext in '' $ac_executable_extensions; do
5122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125     break 2
5126   fi
5127 done
5128   done
5129 IFS=$as_save_IFS
5130
5131 fi
5132 fi
5133 DUMPBIN=$ac_cv_prog_DUMPBIN
5134 if test -n "$DUMPBIN"; then
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5136 $as_echo "$DUMPBIN" >&6; }
5137 else
5138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5140 fi
5141
5142
5143     test -n "$DUMPBIN" && break
5144   done
5145 fi
5146 if test -z "$DUMPBIN"; then
5147   ac_ct_DUMPBIN=$DUMPBIN
5148   for ac_prog in dumpbin "link -dump"
5149 do
5150   # Extract the first word of "$ac_prog", so it can be a program name with args.
5151 set dummy $ac_prog; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5155   $as_echo_n "(cached) " >&6
5156 else
5157   if test -n "$ac_ct_DUMPBIN"; then
5158   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163   IFS=$as_save_IFS
5164   test -z "$as_dir" && as_dir=.
5165     for ac_exec_ext in '' $ac_executable_extensions; do
5166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169     break 2
5170   fi
5171 done
5172   done
5173 IFS=$as_save_IFS
5174
5175 fi
5176 fi
5177 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5178 if test -n "$ac_ct_DUMPBIN"; then
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5180 $as_echo "$ac_ct_DUMPBIN" >&6; }
5181 else
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185
5186
5187   test -n "$ac_ct_DUMPBIN" && break
5188 done
5189
5190   if test "x$ac_ct_DUMPBIN" = x; then
5191     DUMPBIN=":"
5192   else
5193     case $cross_compiling:$ac_tool_warned in
5194 yes:)
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5197 ac_tool_warned=yes ;;
5198 esac
5199     DUMPBIN=$ac_ct_DUMPBIN
5200   fi
5201 fi
5202
5203     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5204     *COFF*)
5205       DUMPBIN="$DUMPBIN -symbols"
5206       ;;
5207     *)
5208       DUMPBIN=:
5209       ;;
5210     esac
5211   fi
5212
5213   if test "$DUMPBIN" != ":"; then
5214     NM="$DUMPBIN"
5215   fi
5216 fi
5217 test -z "$NM" && NM=nm
5218
5219
5220
5221
5222
5223
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5225 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5226 if ${lt_cv_nm_interface+:} false; then :
5227   $as_echo_n "(cached) " >&6
5228 else
5229   lt_cv_nm_interface="BSD nm"
5230   echo "int some_variable = 0;" > conftest.$ac_ext
5231   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5232   (eval "$ac_compile" 2>conftest.err)
5233   cat conftest.err >&5
5234   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5235   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5236   cat conftest.err >&5
5237   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5238   cat conftest.out >&5
5239   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5240     lt_cv_nm_interface="MS dumpbin"
5241   fi
5242   rm -f conftest*
5243 fi
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5245 $as_echo "$lt_cv_nm_interface" >&6; }
5246
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5248 $as_echo_n "checking whether ln -s works... " >&6; }
5249 LN_S=$as_ln_s
5250 if test "$LN_S" = "ln -s"; then
5251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5252 $as_echo "yes" >&6; }
5253 else
5254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5255 $as_echo "no, using $LN_S" >&6; }
5256 fi
5257
5258 # find the maximum length of command line arguments
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5260 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5261 if ${lt_cv_sys_max_cmd_len+:} false; then :
5262   $as_echo_n "(cached) " >&6
5263 else
5264     i=0
5265   teststring="ABCD"
5266
5267   case $build_os in
5268   msdosdjgpp*)
5269     # On DJGPP, this test can blow up pretty badly due to problems in libc
5270     # (any single argument exceeding 2000 bytes causes a buffer overrun
5271     # during glob expansion).  Even if it were fixed, the result of this
5272     # check would be larger than it should be.
5273     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5274     ;;
5275
5276   gnu*)
5277     # Under GNU Hurd, this test is not required because there is
5278     # no limit to the length of command line arguments.
5279     # Libtool will interpret -1 as no limit whatsoever
5280     lt_cv_sys_max_cmd_len=-1;
5281     ;;
5282
5283   cygwin* | mingw* | cegcc*)
5284     # On Win9x/ME, this test blows up -- it succeeds, but takes
5285     # about 5 minutes as the teststring grows exponentially.
5286     # Worse, since 9x/ME are not pre-emptively multitasking,
5287     # you end up with a "frozen" computer, even though with patience
5288     # the test eventually succeeds (with a max line length of 256k).
5289     # Instead, let's just punt: use the minimum linelength reported by
5290     # all of the supported platforms: 8192 (on NT/2K/XP).
5291     lt_cv_sys_max_cmd_len=8192;
5292     ;;
5293
5294   mint*)
5295     # On MiNT this can take a long time and run out of memory.
5296     lt_cv_sys_max_cmd_len=8192;
5297     ;;
5298
5299   amigaos*)
5300     # On AmigaOS with pdksh, this test takes hours, literally.
5301     # So we just punt and use a minimum line length of 8192.
5302     lt_cv_sys_max_cmd_len=8192;
5303     ;;
5304
5305   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5306     # This has been around since 386BSD, at least.  Likely further.
5307     if test -x /sbin/sysctl; then
5308       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5309     elif test -x /usr/sbin/sysctl; then
5310       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5311     else
5312       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5313     fi
5314     # And add a safety zone
5315     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5316     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5317     ;;
5318
5319   interix*)
5320     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5321     lt_cv_sys_max_cmd_len=196608
5322     ;;
5323
5324   os2*)
5325     # The test takes a long time on OS/2.
5326     lt_cv_sys_max_cmd_len=8192
5327     ;;
5328
5329   osf*)
5330     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5331     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5332     # nice to cause kernel panics so lets avoid the loop below.
5333     # First set a reasonable default.
5334     lt_cv_sys_max_cmd_len=16384
5335     #
5336     if test -x /sbin/sysconfig; then
5337       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5338         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5339       esac
5340     fi
5341     ;;
5342   sco3.2v5*)
5343     lt_cv_sys_max_cmd_len=102400
5344     ;;
5345   sysv5* | sco5v6* | sysv4.2uw2*)
5346     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5347     if test -n "$kargmax"; then
5348       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5349     else
5350       lt_cv_sys_max_cmd_len=32768
5351     fi
5352     ;;
5353   *)
5354     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5355     if test -n "$lt_cv_sys_max_cmd_len"; then
5356       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5357       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5358     else
5359       # Make teststring a little bigger before we do anything with it.
5360       # a 1K string should be a reasonable start.
5361       for i in 1 2 3 4 5 6 7 8 ; do
5362         teststring=$teststring$teststring
5363       done
5364       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5365       # If test is not a shell built-in, we'll probably end up computing a
5366       # maximum length that is only half of the actual maximum length, but
5367       # we can't tell.
5368       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5369                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5370               test $i != 17 # 1/2 MB should be enough
5371       do
5372         i=`expr $i + 1`
5373         teststring=$teststring$teststring
5374       done
5375       # Only check the string length outside the loop.
5376       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5377       teststring=
5378       # Add a significant safety factor because C++ compilers can tack on
5379       # massive amounts of additional arguments before passing them to the
5380       # linker.  It appears as though 1/2 is a usable value.
5381       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5382     fi
5383     ;;
5384   esac
5385
5386 fi
5387
5388 if test -n $lt_cv_sys_max_cmd_len ; then
5389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5390 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5391 else
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5393 $as_echo "none" >&6; }
5394 fi
5395 max_cmd_len=$lt_cv_sys_max_cmd_len
5396
5397
5398
5399
5400
5401
5402 : ${CP="cp -f"}
5403 : ${MV="mv -f"}
5404 : ${RM="rm -f"}
5405
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5407 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5408 # Try some XSI features
5409 xsi_shell=no
5410 ( _lt_dummy="a/b/c"
5411   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5412       = c,a/b,b/c, \
5413     && eval 'test $(( 1 + 1 )) -eq 2 \
5414     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5415   && xsi_shell=yes
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5417 $as_echo "$xsi_shell" >&6; }
5418
5419
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5421 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5422 lt_shell_append=no
5423 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5424     >/dev/null 2>&1 \
5425   && lt_shell_append=yes
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5427 $as_echo "$lt_shell_append" >&6; }
5428
5429
5430 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5431   lt_unset=unset
5432 else
5433   lt_unset=false
5434 fi
5435
5436
5437
5438
5439
5440 # test EBCDIC or ASCII
5441 case `echo X|tr X '\101'` in
5442  A) # ASCII based system
5443     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5444   lt_SP2NL='tr \040 \012'
5445   lt_NL2SP='tr \015\012 \040\040'
5446   ;;
5447  *) # EBCDIC based system
5448   lt_SP2NL='tr \100 \n'
5449   lt_NL2SP='tr \r\n \100\100'
5450   ;;
5451 esac
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5462 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5463 if ${lt_cv_to_host_file_cmd+:} false; then :
5464   $as_echo_n "(cached) " >&6
5465 else
5466   case $host in
5467   *-*-mingw* )
5468     case $build in
5469       *-*-mingw* ) # actually msys
5470         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5471         ;;
5472       *-*-cygwin* )
5473         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5474         ;;
5475       * ) # otherwise, assume *nix
5476         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5477         ;;
5478     esac
5479     ;;
5480   *-*-cygwin* )
5481     case $build in
5482       *-*-mingw* ) # actually msys
5483         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5484         ;;
5485       *-*-cygwin* )
5486         lt_cv_to_host_file_cmd=func_convert_file_noop
5487         ;;
5488       * ) # otherwise, assume *nix
5489         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5490         ;;
5491     esac
5492     ;;
5493   * ) # unhandled hosts (and "normal" native builds)
5494     lt_cv_to_host_file_cmd=func_convert_file_noop
5495     ;;
5496 esac
5497
5498 fi
5499
5500 to_host_file_cmd=$lt_cv_to_host_file_cmd
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5502 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5503
5504
5505
5506
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5509 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5510 if ${lt_cv_to_tool_file_cmd+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   #assume ordinary cross tools, or native build.
5514 lt_cv_to_tool_file_cmd=func_convert_file_noop
5515 case $host in
5516   *-*-mingw* )
5517     case $build in
5518       *-*-mingw* ) # actually msys
5519         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5520         ;;
5521     esac
5522     ;;
5523 esac
5524
5525 fi
5526
5527 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5529 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5530
5531
5532
5533
5534
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5536 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5537 if ${lt_cv_ld_reload_flag+:} false; then :
5538   $as_echo_n "(cached) " >&6
5539 else
5540   lt_cv_ld_reload_flag='-r'
5541 fi
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5543 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5544 reload_flag=$lt_cv_ld_reload_flag
5545 case $reload_flag in
5546 "" | " "*) ;;
5547 *) reload_flag=" $reload_flag" ;;
5548 esac
5549 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5550 case $host_os in
5551   cygwin* | mingw* | pw32* | cegcc*)
5552     if test "$GCC" != yes; then
5553       reload_cmds=false
5554     fi
5555     ;;
5556   darwin*)
5557     if test "$GCC" = yes; then
5558       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5559     else
5560       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5561     fi
5562     ;;
5563 esac
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573 if test -n "$ac_tool_prefix"; then
5574   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_OBJDUMP+:} false; then :
5579   $as_echo_n "(cached) " >&6
5580 else
5581   if test -n "$OBJDUMP"; then
5582   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587   IFS=$as_save_IFS
5588   test -z "$as_dir" && as_dir=.
5589     for ac_exec_ext in '' $ac_executable_extensions; do
5590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593     break 2
5594   fi
5595 done
5596   done
5597 IFS=$as_save_IFS
5598
5599 fi
5600 fi
5601 OBJDUMP=$ac_cv_prog_OBJDUMP
5602 if test -n "$OBJDUMP"; then
5603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5604 $as_echo "$OBJDUMP" >&6; }
5605 else
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5608 fi
5609
5610
5611 fi
5612 if test -z "$ac_cv_prog_OBJDUMP"; then
5613   ac_ct_OBJDUMP=$OBJDUMP
5614   # Extract the first word of "objdump", so it can be a program name with args.
5615 set dummy objdump; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5619   $as_echo_n "(cached) " >&6
5620 else
5621   if test -n "$ac_ct_OBJDUMP"; then
5622   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5623 else
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 for as_dir in $PATH
5626 do
5627   IFS=$as_save_IFS
5628   test -z "$as_dir" && as_dir=.
5629     for ac_exec_ext in '' $ac_executable_extensions; do
5630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5631     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5633     break 2
5634   fi
5635 done
5636   done
5637 IFS=$as_save_IFS
5638
5639 fi
5640 fi
5641 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5642 if test -n "$ac_ct_OBJDUMP"; then
5643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5644 $as_echo "$ac_ct_OBJDUMP" >&6; }
5645 else
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5648 fi
5649
5650   if test "x$ac_ct_OBJDUMP" = x; then
5651     OBJDUMP="false"
5652   else
5653     case $cross_compiling:$ac_tool_warned in
5654 yes:)
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657 ac_tool_warned=yes ;;
5658 esac
5659     OBJDUMP=$ac_ct_OBJDUMP
5660   fi
5661 else
5662   OBJDUMP="$ac_cv_prog_OBJDUMP"
5663 fi
5664
5665 test -z "$OBJDUMP" && OBJDUMP=objdump
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5676 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5677 if ${lt_cv_deplibs_check_method+:} false; then :
5678   $as_echo_n "(cached) " >&6
5679 else
5680   lt_cv_file_magic_cmd='$MAGIC_CMD'
5681 lt_cv_file_magic_test_file=
5682 lt_cv_deplibs_check_method='unknown'
5683 # Need to set the preceding variable on all platforms that support
5684 # interlibrary dependencies.
5685 # 'none' -- dependencies not supported.
5686 # `unknown' -- same as none, but documents that we really don't know.
5687 # 'pass_all' -- all dependencies passed with no checks.
5688 # 'test_compile' -- check by making test program.
5689 # 'file_magic [[regex]]' -- check by looking for files in library path
5690 # which responds to the $file_magic_cmd with a given extended regex.
5691 # If you have `file' or equivalent on your system and you're not sure
5692 # whether `pass_all' will *always* work, you probably want this one.
5693
5694 case $host_os in
5695 aix[4-9]*)
5696   lt_cv_deplibs_check_method=pass_all
5697   ;;
5698
5699 beos*)
5700   lt_cv_deplibs_check_method=pass_all
5701   ;;
5702
5703 bsdi[45]*)
5704   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5705   lt_cv_file_magic_cmd='/usr/bin/file -L'
5706   lt_cv_file_magic_test_file=/shlib/libc.so
5707   ;;
5708
5709 cygwin*)
5710   # func_win32_libid is a shell function defined in ltmain.sh
5711   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5712   lt_cv_file_magic_cmd='func_win32_libid'
5713   ;;
5714
5715 mingw* | pw32*)
5716   # Base MSYS/MinGW do not provide the 'file' command needed by
5717   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5718   # unless we find 'file', for example because we are cross-compiling.
5719   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5720   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5721     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5722     lt_cv_file_magic_cmd='func_win32_libid'
5723   else
5724     # Keep this pattern in sync with the one in func_win32_libid.
5725     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5726     lt_cv_file_magic_cmd='$OBJDUMP -f'
5727   fi
5728   ;;
5729
5730 cegcc*)
5731   # use the weaker test based on 'objdump'. See mingw*.
5732   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5733   lt_cv_file_magic_cmd='$OBJDUMP -f'
5734   ;;
5735
5736 darwin* | rhapsody*)
5737   lt_cv_deplibs_check_method=pass_all
5738   ;;
5739
5740 freebsd* | dragonfly*)
5741   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5742     case $host_cpu in
5743     i*86 )
5744       # Not sure whether the presence of OpenBSD here was a mistake.
5745       # Let's accept both of them until this is cleared up.
5746       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5747       lt_cv_file_magic_cmd=/usr/bin/file
5748       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5749       ;;
5750     esac
5751   else
5752     lt_cv_deplibs_check_method=pass_all
5753   fi
5754   ;;
5755
5756 gnu*)
5757   lt_cv_deplibs_check_method=pass_all
5758   ;;
5759
5760 haiku*)
5761   lt_cv_deplibs_check_method=pass_all
5762   ;;
5763
5764 hpux10.20* | hpux11*)
5765   lt_cv_file_magic_cmd=/usr/bin/file
5766   case $host_cpu in
5767   ia64*)
5768     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5769     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5770     ;;
5771   hppa*64*)
5772     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5773     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5774     ;;
5775   *)
5776     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5777     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5778     ;;
5779   esac
5780   ;;
5781
5782 interix[3-9]*)
5783   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5784   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5785   ;;
5786
5787 irix5* | irix6* | nonstopux*)
5788   case $LD in
5789   *-32|*"-32 ") libmagic=32-bit;;
5790   *-n32|*"-n32 ") libmagic=N32;;
5791   *-64|*"-64 ") libmagic=64-bit;;
5792   *) libmagic=never-match;;
5793   esac
5794   lt_cv_deplibs_check_method=pass_all
5795   ;;
5796
5797 # This must be glibc/ELF.
5798 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5799   lt_cv_deplibs_check_method=pass_all
5800   ;;
5801
5802 netbsd*)
5803   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5804     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5805   else
5806     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5807   fi
5808   ;;
5809
5810 newos6*)
5811   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5812   lt_cv_file_magic_cmd=/usr/bin/file
5813   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5814   ;;
5815
5816 *nto* | *qnx*)
5817   lt_cv_deplibs_check_method=pass_all
5818   ;;
5819
5820 openbsd*)
5821   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5822     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5823   else
5824     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5825   fi
5826   ;;
5827
5828 osf3* | osf4* | osf5*)
5829   lt_cv_deplibs_check_method=pass_all
5830   ;;
5831
5832 rdos*)
5833   lt_cv_deplibs_check_method=pass_all
5834   ;;
5835
5836 solaris*)
5837   lt_cv_deplibs_check_method=pass_all
5838   ;;
5839
5840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5841   lt_cv_deplibs_check_method=pass_all
5842   ;;
5843
5844 sysv4 | sysv4.3*)
5845   case $host_vendor in
5846   motorola)
5847     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5848     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5849     ;;
5850   ncr)
5851     lt_cv_deplibs_check_method=pass_all
5852     ;;
5853   sequent)
5854     lt_cv_file_magic_cmd='/bin/file'
5855     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5856     ;;
5857   sni)
5858     lt_cv_file_magic_cmd='/bin/file'
5859     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5860     lt_cv_file_magic_test_file=/lib/libc.so
5861     ;;
5862   siemens)
5863     lt_cv_deplibs_check_method=pass_all
5864     ;;
5865   pc)
5866     lt_cv_deplibs_check_method=pass_all
5867     ;;
5868   esac
5869   ;;
5870
5871 tpf*)
5872   lt_cv_deplibs_check_method=pass_all
5873   ;;
5874 esac
5875
5876 fi
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5878 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5879
5880 file_magic_glob=
5881 want_nocaseglob=no
5882 if test "$build" = "$host"; then
5883   case $host_os in
5884   mingw* | pw32*)
5885     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5886       want_nocaseglob=yes
5887     else
5888       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5889     fi
5890     ;;
5891   esac
5892 fi
5893
5894 file_magic_cmd=$lt_cv_file_magic_cmd
5895 deplibs_check_method=$lt_cv_deplibs_check_method
5896 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919 if test -n "$ac_tool_prefix"; then
5920   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5921 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if ${ac_cv_prog_DLLTOOL+:} false; then :
5925   $as_echo_n "(cached) " >&6
5926 else
5927   if test -n "$DLLTOOL"; then
5928   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933   IFS=$as_save_IFS
5934   test -z "$as_dir" && as_dir=.
5935     for ac_exec_ext in '' $ac_executable_extensions; do
5936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939     break 2
5940   fi
5941 done
5942   done
5943 IFS=$as_save_IFS
5944
5945 fi
5946 fi
5947 DLLTOOL=$ac_cv_prog_DLLTOOL
5948 if test -n "$DLLTOOL"; then
5949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5950 $as_echo "$DLLTOOL" >&6; }
5951 else
5952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5954 fi
5955
5956
5957 fi
5958 if test -z "$ac_cv_prog_DLLTOOL"; then
5959   ac_ct_DLLTOOL=$DLLTOOL
5960   # Extract the first word of "dlltool", so it can be a program name with args.
5961 set dummy dlltool; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5965   $as_echo_n "(cached) " >&6
5966 else
5967   if test -n "$ac_ct_DLLTOOL"; then
5968   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973   IFS=$as_save_IFS
5974   test -z "$as_dir" && as_dir=.
5975     for ac_exec_ext in '' $ac_executable_extensions; do
5976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5977     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979     break 2
5980   fi
5981 done
5982   done
5983 IFS=$as_save_IFS
5984
5985 fi
5986 fi
5987 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5988 if test -n "$ac_ct_DLLTOOL"; then
5989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5990 $as_echo "$ac_ct_DLLTOOL" >&6; }
5991 else
5992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5994 fi
5995
5996   if test "x$ac_ct_DLLTOOL" = x; then
5997     DLLTOOL="false"
5998   else
5999     case $cross_compiling:$ac_tool_warned in
6000 yes:)
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6003 ac_tool_warned=yes ;;
6004 esac
6005     DLLTOOL=$ac_ct_DLLTOOL
6006   fi
6007 else
6008   DLLTOOL="$ac_cv_prog_DLLTOOL"
6009 fi
6010
6011 test -z "$DLLTOOL" && DLLTOOL=dlltool
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6023 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6024 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6025   $as_echo_n "(cached) " >&6
6026 else
6027   lt_cv_sharedlib_from_linklib_cmd='unknown'
6028
6029 case $host_os in
6030 cygwin* | mingw* | pw32* | cegcc*)
6031   # two different shell functions defined in ltmain.sh
6032   # decide which to use based on capabilities of $DLLTOOL
6033   case `$DLLTOOL --help 2>&1` in
6034   *--identify-strict*)
6035     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6036     ;;
6037   *)
6038     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6039     ;;
6040   esac
6041   ;;
6042 *)
6043   # fallback: assume linklib IS sharedlib
6044   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6045   ;;
6046 esac
6047
6048 fi
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6050 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6051 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6052 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6053
6054
6055
6056
6057
6058
6059
6060
6061 if test -n "$ac_tool_prefix"; then
6062   for ac_prog in ar
6063   do
6064     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if ${ac_cv_prog_AR+:} false; then :
6069   $as_echo_n "(cached) " >&6
6070 else
6071   if test -n "$AR"; then
6072   ac_cv_prog_AR="$AR" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077   IFS=$as_save_IFS
6078   test -z "$as_dir" && as_dir=.
6079     for ac_exec_ext in '' $ac_executable_extensions; do
6080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083     break 2
6084   fi
6085 done
6086   done
6087 IFS=$as_save_IFS
6088
6089 fi
6090 fi
6091 AR=$ac_cv_prog_AR
6092 if test -n "$AR"; then
6093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6094 $as_echo "$AR" >&6; }
6095 else
6096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6098 fi
6099
6100
6101     test -n "$AR" && break
6102   done
6103 fi
6104 if test -z "$AR"; then
6105   ac_ct_AR=$AR
6106   for ac_prog in ar
6107 do
6108   # Extract the first word of "$ac_prog", so it can be a program name with args.
6109 set dummy $ac_prog; ac_word=$2
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6111 $as_echo_n "checking for $ac_word... " >&6; }
6112 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6113   $as_echo_n "(cached) " >&6
6114 else
6115   if test -n "$ac_ct_AR"; then
6116   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6117 else
6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6119 for as_dir in $PATH
6120 do
6121   IFS=$as_save_IFS
6122   test -z "$as_dir" && as_dir=.
6123     for ac_exec_ext in '' $ac_executable_extensions; do
6124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6125     ac_cv_prog_ac_ct_AR="$ac_prog"
6126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127     break 2
6128   fi
6129 done
6130   done
6131 IFS=$as_save_IFS
6132
6133 fi
6134 fi
6135 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6136 if test -n "$ac_ct_AR"; then
6137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6138 $as_echo "$ac_ct_AR" >&6; }
6139 else
6140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 $as_echo "no" >&6; }
6142 fi
6143
6144
6145   test -n "$ac_ct_AR" && break
6146 done
6147
6148   if test "x$ac_ct_AR" = x; then
6149     AR="false"
6150   else
6151     case $cross_compiling:$ac_tool_warned in
6152 yes:)
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6155 ac_tool_warned=yes ;;
6156 esac
6157     AR=$ac_ct_AR
6158   fi
6159 fi
6160
6161 : ${AR=ar}
6162 : ${AR_FLAGS=cru}
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6175 $as_echo_n "checking for archiver @FILE support... " >&6; }
6176 if ${lt_cv_ar_at_file+:} false; then :
6177   $as_echo_n "(cached) " >&6
6178 else
6179   lt_cv_ar_at_file=no
6180    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h.  */
6182
6183 int
6184 main ()
6185 {
6186
6187   ;
6188   return 0;
6189 }
6190 _ACEOF
6191 if ac_fn_c_try_compile "$LINENO"; then :
6192   echo conftest.$ac_objext > conftest.lst
6193       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6194       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6195   (eval $lt_ar_try) 2>&5
6196   ac_status=$?
6197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198   test $ac_status = 0; }
6199       if test "$ac_status" -eq 0; then
6200         # Ensure the archiver fails upon bogus file names.
6201         rm -f conftest.$ac_objext libconftest.a
6202         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6203   (eval $lt_ar_try) 2>&5
6204   ac_status=$?
6205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6206   test $ac_status = 0; }
6207         if test "$ac_status" -ne 0; then
6208           lt_cv_ar_at_file=@
6209         fi
6210       fi
6211       rm -f conftest.* libconftest.a
6212
6213 fi
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215
6216 fi
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6218 $as_echo "$lt_cv_ar_at_file" >&6; }
6219
6220 if test "x$lt_cv_ar_at_file" = xno; then
6221   archiver_list_spec=
6222 else
6223   archiver_list_spec=$lt_cv_ar_at_file
6224 fi
6225
6226
6227
6228
6229
6230
6231
6232 if test -n "$ac_tool_prefix"; then
6233   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6234 set dummy ${ac_tool_prefix}strip; ac_word=$2
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6236 $as_echo_n "checking for $ac_word... " >&6; }
6237 if ${ac_cv_prog_STRIP+:} false; then :
6238   $as_echo_n "(cached) " >&6
6239 else
6240   if test -n "$STRIP"; then
6241   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6242 else
6243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246   IFS=$as_save_IFS
6247   test -z "$as_dir" && as_dir=.
6248     for ac_exec_ext in '' $ac_executable_extensions; do
6249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6250     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252     break 2
6253   fi
6254 done
6255   done
6256 IFS=$as_save_IFS
6257
6258 fi
6259 fi
6260 STRIP=$ac_cv_prog_STRIP
6261 if test -n "$STRIP"; then
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6263 $as_echo "$STRIP" >&6; }
6264 else
6265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266 $as_echo "no" >&6; }
6267 fi
6268
6269
6270 fi
6271 if test -z "$ac_cv_prog_STRIP"; then
6272   ac_ct_STRIP=$STRIP
6273   # Extract the first word of "strip", so it can be a program name with args.
6274 set dummy strip; ac_word=$2
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6276 $as_echo_n "checking for $ac_word... " >&6; }
6277 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6278   $as_echo_n "(cached) " >&6
6279 else
6280   if test -n "$ac_ct_STRIP"; then
6281   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6282 else
6283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 for as_dir in $PATH
6285 do
6286   IFS=$as_save_IFS
6287   test -z "$as_dir" && as_dir=.
6288     for ac_exec_ext in '' $ac_executable_extensions; do
6289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6290     ac_cv_prog_ac_ct_STRIP="strip"
6291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292     break 2
6293   fi
6294 done
6295   done
6296 IFS=$as_save_IFS
6297
6298 fi
6299 fi
6300 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6301 if test -n "$ac_ct_STRIP"; then
6302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6303 $as_echo "$ac_ct_STRIP" >&6; }
6304 else
6305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6306 $as_echo "no" >&6; }
6307 fi
6308
6309   if test "x$ac_ct_STRIP" = x; then
6310     STRIP=":"
6311   else
6312     case $cross_compiling:$ac_tool_warned in
6313 yes:)
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6316 ac_tool_warned=yes ;;
6317 esac
6318     STRIP=$ac_ct_STRIP
6319   fi
6320 else
6321   STRIP="$ac_cv_prog_STRIP"
6322 fi
6323
6324 test -z "$STRIP" && STRIP=:
6325
6326
6327
6328
6329
6330
6331 if test -n "$ac_tool_prefix"; then
6332   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_RANLIB+:} false; then :
6337   $as_echo_n "(cached) " >&6
6338 else
6339   if test -n "$RANLIB"; then
6340   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345   IFS=$as_save_IFS
6346   test -z "$as_dir" && as_dir=.
6347     for ac_exec_ext in '' $ac_executable_extensions; do
6348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351     break 2
6352   fi
6353 done
6354   done
6355 IFS=$as_save_IFS
6356
6357 fi
6358 fi
6359 RANLIB=$ac_cv_prog_RANLIB
6360 if test -n "$RANLIB"; then
6361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6362 $as_echo "$RANLIB" >&6; }
6363 else
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366 fi
6367
6368
6369 fi
6370 if test -z "$ac_cv_prog_RANLIB"; then
6371   ac_ct_RANLIB=$RANLIB
6372   # Extract the first word of "ranlib", so it can be a program name with args.
6373 set dummy ranlib; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6377   $as_echo_n "(cached) " >&6
6378 else
6379   if test -n "$ac_ct_RANLIB"; then
6380   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385   IFS=$as_save_IFS
6386   test -z "$as_dir" && as_dir=.
6387     for ac_exec_ext in '' $ac_executable_extensions; do
6388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389     ac_cv_prog_ac_ct_RANLIB="ranlib"
6390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391     break 2
6392   fi
6393 done
6394   done
6395 IFS=$as_save_IFS
6396
6397 fi
6398 fi
6399 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6400 if test -n "$ac_ct_RANLIB"; then
6401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6402 $as_echo "$ac_ct_RANLIB" >&6; }
6403 else
6404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6406 fi
6407
6408   if test "x$ac_ct_RANLIB" = x; then
6409     RANLIB=":"
6410   else
6411     case $cross_compiling:$ac_tool_warned in
6412 yes:)
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415 ac_tool_warned=yes ;;
6416 esac
6417     RANLIB=$ac_ct_RANLIB
6418   fi
6419 else
6420   RANLIB="$ac_cv_prog_RANLIB"
6421 fi
6422
6423 test -z "$RANLIB" && RANLIB=:
6424
6425
6426
6427
6428
6429
6430 # Determine commands to create old-style static archives.
6431 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6432 old_postinstall_cmds='chmod 644 $oldlib'
6433 old_postuninstall_cmds=
6434
6435 if test -n "$RANLIB"; then
6436   case $host_os in
6437   openbsd*)
6438     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6439     ;;
6440   *)
6441     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6442     ;;
6443   esac
6444   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6445 fi
6446
6447 case $host_os in
6448   darwin*)
6449     lock_old_archive_extraction=yes ;;
6450   *)
6451     lock_old_archive_extraction=no ;;
6452 esac
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492 # If no C compiler was specified, use CC.
6493 LTCC=${LTCC-"$CC"}
6494
6495 # If no C compiler flags were specified, use CFLAGS.
6496 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6497
6498 # Allow CC to be a program name with arguments.
6499 compiler=$CC
6500
6501
6502 # Check for command to grab the raw symbol name followed by C symbol from nm.
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6504 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6505 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6506   $as_echo_n "(cached) " >&6
6507 else
6508
6509 # These are sane defaults that work on at least a few old systems.
6510 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6511
6512 # Character class describing NM global symbol codes.
6513 symcode='[BCDEGRST]'
6514
6515 # Regexp to match symbols that can be accessed directly from C.
6516 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6517
6518 # Define system-specific variables.
6519 case $host_os in
6520 aix*)
6521   symcode='[BCDT]'
6522   ;;
6523 cygwin* | mingw* | pw32* | cegcc*)
6524   symcode='[ABCDGISTW]'
6525   ;;
6526 hpux*)
6527   if test "$host_cpu" = ia64; then
6528     symcode='[ABCDEGRST]'
6529   fi
6530   ;;
6531 irix* | nonstopux*)
6532   symcode='[BCDEGRST]'
6533   ;;
6534 osf*)
6535   symcode='[BCDEGQRST]'
6536   ;;
6537 solaris*)
6538   symcode='[BDRT]'
6539   ;;
6540 sco3.2v5*)
6541   symcode='[DT]'
6542   ;;
6543 sysv4.2uw2*)
6544   symcode='[DT]'
6545   ;;
6546 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6547   symcode='[ABDT]'
6548   ;;
6549 sysv4)
6550   symcode='[DFNSTU]'
6551   ;;
6552 esac
6553
6554 # If we're using GNU nm, then use its standard symbol codes.
6555 case `$NM -V 2>&1` in
6556 *GNU* | *'with BFD'*)
6557   symcode='[ABCDGIRSTW]' ;;
6558 esac
6559
6560 # Transform an extracted symbol line into a proper C declaration.
6561 # Some systems (esp. on ia64) link data and code symbols differently,
6562 # so use this general approach.
6563 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6564
6565 # Transform an extracted symbol line into symbol name and symbol address
6566 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6567 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6568
6569 # Handle CRLF in mingw tool chain
6570 opt_cr=
6571 case $build_os in
6572 mingw*)
6573   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6574   ;;
6575 esac
6576
6577 # Try without a prefix underscore, then with it.
6578 for ac_symprfx in "" "_"; do
6579
6580   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6581   symxfrm="\\1 $ac_symprfx\\2 \\2"
6582
6583   # Write the raw and C identifiers.
6584   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6585     # Fake it for dumpbin and say T for any non-static function
6586     # and D for any global variable.
6587     # Also find C++ and __fastcall symbols from MSVC++,
6588     # which start with @ or ?.
6589     lt_cv_sys_global_symbol_pipe="$AWK '"\
6590 "     {last_section=section; section=\$ 3};"\
6591 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6592 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6593 "     \$ 0!~/External *\|/{next};"\
6594 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6595 "     {if(hide[section]) next};"\
6596 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6597 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6598 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6599 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6600 "     ' prfx=^$ac_symprfx"
6601   else
6602     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6603   fi
6604   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6605
6606   # Check to see that the pipe works correctly.
6607   pipe_works=no
6608
6609   rm -f conftest*
6610   cat > conftest.$ac_ext <<_LT_EOF
6611 #ifdef __cplusplus
6612 extern "C" {
6613 #endif
6614 char nm_test_var;
6615 void nm_test_func(void);
6616 void nm_test_func(void){}
6617 #ifdef __cplusplus
6618 }
6619 #endif
6620 int main(){nm_test_var='a';nm_test_func();return(0);}
6621 _LT_EOF
6622
6623   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6624   (eval $ac_compile) 2>&5
6625   ac_status=$?
6626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6627   test $ac_status = 0; }; then
6628     # Now try to grab the symbols.
6629     nlist=conftest.nm
6630     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6631   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6632   ac_status=$?
6633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6634   test $ac_status = 0; } && test -s "$nlist"; then
6635       # Try sorting and uniquifying the output.
6636       if sort "$nlist" | uniq > "$nlist"T; then
6637         mv -f "$nlist"T "$nlist"
6638       else
6639         rm -f "$nlist"T
6640       fi
6641
6642       # Make sure that we snagged all the symbols we need.
6643       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6644         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6645           cat <<_LT_EOF > conftest.$ac_ext
6646 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6647 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6648 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6649    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6650 # define LT_DLSYM_CONST
6651 #elif defined(__osf__)
6652 /* This system does not cope well with relocations in const data.  */
6653 # define LT_DLSYM_CONST
6654 #else
6655 # define LT_DLSYM_CONST const
6656 #endif
6657
6658 #ifdef __cplusplus
6659 extern "C" {
6660 #endif
6661
6662 _LT_EOF
6663           # Now generate the symbol file.
6664           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6665
6666           cat <<_LT_EOF >> conftest.$ac_ext
6667
6668 /* The mapping between symbol names and symbols.  */
6669 LT_DLSYM_CONST struct {
6670   const char *name;
6671   void       *address;
6672 }
6673 lt__PROGRAM__LTX_preloaded_symbols[] =
6674 {
6675   { "@PROGRAM@", (void *) 0 },
6676 _LT_EOF
6677           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6678           cat <<\_LT_EOF >> conftest.$ac_ext
6679   {0, (void *) 0}
6680 };
6681
6682 /* This works around a problem in FreeBSD linker */
6683 #ifdef FREEBSD_WORKAROUND
6684 static const void *lt_preloaded_setup() {
6685   return lt__PROGRAM__LTX_preloaded_symbols;
6686 }
6687 #endif
6688
6689 #ifdef __cplusplus
6690 }
6691 #endif
6692 _LT_EOF
6693           # Now try linking the two files.
6694           mv conftest.$ac_objext conftstm.$ac_objext
6695           lt_globsym_save_LIBS=$LIBS
6696           lt_globsym_save_CFLAGS=$CFLAGS
6697           LIBS="conftstm.$ac_objext"
6698           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6699           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6700   (eval $ac_link) 2>&5
6701   ac_status=$?
6702   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6703   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6704             pipe_works=yes
6705           fi
6706           LIBS=$lt_globsym_save_LIBS
6707           CFLAGS=$lt_globsym_save_CFLAGS
6708         else
6709           echo "cannot find nm_test_func in $nlist" >&5
6710         fi
6711       else
6712         echo "cannot find nm_test_var in $nlist" >&5
6713       fi
6714     else
6715       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6716     fi
6717   else
6718     echo "$progname: failed program was:" >&5
6719     cat conftest.$ac_ext >&5
6720   fi
6721   rm -rf conftest* conftst*
6722
6723   # Do not use the global_symbol_pipe unless it works.
6724   if test "$pipe_works" = yes; then
6725     break
6726   else
6727     lt_cv_sys_global_symbol_pipe=
6728   fi
6729 done
6730
6731 fi
6732
6733 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6734   lt_cv_sys_global_symbol_to_cdecl=
6735 fi
6736 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6738 $as_echo "failed" >&6; }
6739 else
6740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6741 $as_echo "ok" >&6; }
6742 fi
6743
6744 # Response file support.
6745 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6746   nm_file_list_spec='@'
6747 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6748   nm_file_list_spec='@'
6749 fi
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6778 $as_echo_n "checking for sysroot... " >&6; }
6779
6780 # Check whether --with-sysroot was given.
6781 if test "${with_sysroot+set}" = set; then :
6782   withval=$with_sysroot;
6783 else
6784   with_sysroot=no
6785 fi
6786
6787
6788 lt_sysroot=
6789 case ${with_sysroot} in #(
6790  yes)
6791    if test "$GCC" = yes; then
6792      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6793    fi
6794    ;; #(
6795  /*)
6796    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6797    ;; #(
6798  no|'')
6799    ;; #(
6800  *)
6801    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6802 $as_echo "${with_sysroot}" >&6; }
6803    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6804    ;;
6805 esac
6806
6807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6808 $as_echo "${lt_sysroot:-no}" >&6; }
6809
6810
6811
6812
6813
6814 # Check whether --enable-libtool-lock was given.
6815 if test "${enable_libtool_lock+set}" = set; then :
6816   enableval=$enable_libtool_lock;
6817 fi
6818
6819 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6820
6821 # Some flags need to be propagated to the compiler or linker for good
6822 # libtool support.
6823 case $host in
6824 ia64-*-hpux*)
6825   # Find out which ABI we are using.
6826   echo 'int i;' > conftest.$ac_ext
6827   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6828   (eval $ac_compile) 2>&5
6829   ac_status=$?
6830   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6831   test $ac_status = 0; }; then
6832     case `/usr/bin/file conftest.$ac_objext` in
6833       *ELF-32*)
6834         HPUX_IA64_MODE="32"
6835         ;;
6836       *ELF-64*)
6837         HPUX_IA64_MODE="64"
6838         ;;
6839     esac
6840   fi
6841   rm -rf conftest*
6842   ;;
6843 *-*-irix6*)
6844   # Find out which ABI we are using.
6845   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6846   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6847   (eval $ac_compile) 2>&5
6848   ac_status=$?
6849   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6850   test $ac_status = 0; }; then
6851     if test "$lt_cv_prog_gnu_ld" = yes; then
6852       case `/usr/bin/file conftest.$ac_objext` in
6853         *32-bit*)
6854           LD="${LD-ld} -melf32bsmip"
6855           ;;
6856         *N32*)
6857           LD="${LD-ld} -melf32bmipn32"
6858           ;;
6859         *64-bit*)
6860           LD="${LD-ld} -melf64bmip"
6861         ;;
6862       esac
6863     else
6864       case `/usr/bin/file conftest.$ac_objext` in
6865         *32-bit*)
6866           LD="${LD-ld} -32"
6867           ;;
6868         *N32*)
6869           LD="${LD-ld} -n32"
6870           ;;
6871         *64-bit*)
6872           LD="${LD-ld} -64"
6873           ;;
6874       esac
6875     fi
6876   fi
6877   rm -rf conftest*
6878   ;;
6879
6880 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6881 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6882   # Find out which ABI we are using.
6883   echo 'int i;' > conftest.$ac_ext
6884   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6885   (eval $ac_compile) 2>&5
6886   ac_status=$?
6887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6888   test $ac_status = 0; }; then
6889     case `/usr/bin/file conftest.o` in
6890       *32-bit*)
6891         case $host in
6892           x86_64-*kfreebsd*-gnu)
6893             LD="${LD-ld} -m elf_i386_fbsd"
6894             ;;
6895           x86_64-*linux*)
6896             LD="${LD-ld} -m elf_i386"
6897             ;;
6898           ppc64-*linux*|powerpc64-*linux*)
6899             LD="${LD-ld} -m elf32ppclinux"
6900             ;;
6901           s390x-*linux*)
6902             LD="${LD-ld} -m elf_s390"
6903             ;;
6904           sparc64-*linux*)
6905             LD="${LD-ld} -m elf32_sparc"
6906             ;;
6907         esac
6908         ;;
6909       *64-bit*)
6910         case $host in
6911           x86_64-*kfreebsd*-gnu)
6912             LD="${LD-ld} -m elf_x86_64_fbsd"
6913             ;;
6914           x86_64-*linux*)
6915             LD="${LD-ld} -m elf_x86_64"
6916             ;;
6917           ppc*-*linux*|powerpc*-*linux*)
6918             LD="${LD-ld} -m elf64ppc"
6919             ;;
6920           s390*-*linux*|s390*-*tpf*)
6921             LD="${LD-ld} -m elf64_s390"
6922             ;;
6923           sparc*-*linux*)
6924             LD="${LD-ld} -m elf64_sparc"
6925             ;;
6926         esac
6927         ;;
6928     esac
6929   fi
6930   rm -rf conftest*
6931   ;;
6932
6933 *-*-sco3.2v5*)
6934   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6935   SAVE_CFLAGS="$CFLAGS"
6936   CFLAGS="$CFLAGS -belf"
6937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6938 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6939 if ${lt_cv_cc_needs_belf+:} false; then :
6940   $as_echo_n "(cached) " >&6
6941 else
6942   ac_ext=c
6943 ac_cpp='$CPP $CPPFLAGS'
6944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6947
6948      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h.  */
6950
6951 int
6952 main ()
6953 {
6954
6955   ;
6956   return 0;
6957 }
6958 _ACEOF
6959 if ac_fn_c_try_link "$LINENO"; then :
6960   lt_cv_cc_needs_belf=yes
6961 else
6962   lt_cv_cc_needs_belf=no
6963 fi
6964 rm -f core conftest.err conftest.$ac_objext \
6965     conftest$ac_exeext conftest.$ac_ext
6966      ac_ext=c
6967 ac_cpp='$CPP $CPPFLAGS'
6968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6971
6972 fi
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6974 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6975   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6976     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6977     CFLAGS="$SAVE_CFLAGS"
6978   fi
6979   ;;
6980 *-*solaris*)
6981   # Find out which ABI we are using.
6982   echo 'int i;' > conftest.$ac_ext
6983   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6984   (eval $ac_compile) 2>&5
6985   ac_status=$?
6986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6987   test $ac_status = 0; }; then
6988     case `/usr/bin/file conftest.o` in
6989     *64-bit*)
6990       case $lt_cv_prog_gnu_ld in
6991       yes*)
6992         case $host in
6993         i?86-*-solaris*)
6994           LD="${LD-ld} -m elf_x86_64"
6995           ;;
6996         sparc*-*-solaris*)
6997           LD="${LD-ld} -m elf64_sparc"
6998           ;;
6999         esac
7000         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7001         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7002           LD="${LD-ld}_sol2"
7003         fi
7004         ;;
7005       *)
7006         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7007           LD="${LD-ld} -64"
7008         fi
7009         ;;
7010       esac
7011       ;;
7012     esac
7013   fi
7014   rm -rf conftest*
7015   ;;
7016 esac
7017
7018 need_locks="$enable_libtool_lock"
7019
7020 if test -n "$ac_tool_prefix"; then
7021   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7022 set dummy ${ac_tool_prefix}mt; ac_word=$2
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024 $as_echo_n "checking for $ac_word... " >&6; }
7025 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7026   $as_echo_n "(cached) " >&6
7027 else
7028   if test -n "$MANIFEST_TOOL"; then
7029   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7030 else
7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032 for as_dir in $PATH
7033 do
7034   IFS=$as_save_IFS
7035   test -z "$as_dir" && as_dir=.
7036     for ac_exec_ext in '' $ac_executable_extensions; do
7037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7038     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7040     break 2
7041   fi
7042 done
7043   done
7044 IFS=$as_save_IFS
7045
7046 fi
7047 fi
7048 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7049 if test -n "$MANIFEST_TOOL"; then
7050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7051 $as_echo "$MANIFEST_TOOL" >&6; }
7052 else
7053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054 $as_echo "no" >&6; }
7055 fi
7056
7057
7058 fi
7059 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7060   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7061   # Extract the first word of "mt", so it can be a program name with args.
7062 set dummy mt; ac_word=$2
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7066   $as_echo_n "(cached) " >&6
7067 else
7068   if test -n "$ac_ct_MANIFEST_TOOL"; then
7069   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074   IFS=$as_save_IFS
7075   test -z "$as_dir" && as_dir=.
7076     for ac_exec_ext in '' $ac_executable_extensions; do
7077   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080     break 2
7081   fi
7082 done
7083   done
7084 IFS=$as_save_IFS
7085
7086 fi
7087 fi
7088 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7089 if test -n "$ac_ct_MANIFEST_TOOL"; then
7090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7091 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7092 else
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7095 fi
7096
7097   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7098     MANIFEST_TOOL=":"
7099   else
7100     case $cross_compiling:$ac_tool_warned in
7101 yes:)
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7104 ac_tool_warned=yes ;;
7105 esac
7106     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7107   fi
7108 else
7109   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7110 fi
7111
7112 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7114 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7115 if ${lt_cv_path_mainfest_tool+:} false; then :
7116   $as_echo_n "(cached) " >&6
7117 else
7118   lt_cv_path_mainfest_tool=no
7119   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7120   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7121   cat conftest.err >&5
7122   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7123     lt_cv_path_mainfest_tool=yes
7124   fi
7125   rm -f conftest*
7126 fi
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7128 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7129 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7130   MANIFEST_TOOL=:
7131 fi
7132
7133
7134
7135
7136
7137
7138   case $host_os in
7139     rhapsody* | darwin*)
7140     if test -n "$ac_tool_prefix"; then
7141   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7142 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7146   $as_echo_n "(cached) " >&6
7147 else
7148   if test -n "$DSYMUTIL"; then
7149   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154   IFS=$as_save_IFS
7155   test -z "$as_dir" && as_dir=.
7156     for ac_exec_ext in '' $ac_executable_extensions; do
7157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160     break 2
7161   fi
7162 done
7163   done
7164 IFS=$as_save_IFS
7165
7166 fi
7167 fi
7168 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7169 if test -n "$DSYMUTIL"; then
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7171 $as_echo "$DSYMUTIL" >&6; }
7172 else
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7175 fi
7176
7177
7178 fi
7179 if test -z "$ac_cv_prog_DSYMUTIL"; then
7180   ac_ct_DSYMUTIL=$DSYMUTIL
7181   # Extract the first word of "dsymutil", so it can be a program name with args.
7182 set dummy dsymutil; ac_word=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7186   $as_echo_n "(cached) " >&6
7187 else
7188   if test -n "$ac_ct_DSYMUTIL"; then
7189   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194   IFS=$as_save_IFS
7195   test -z "$as_dir" && as_dir=.
7196     for ac_exec_ext in '' $ac_executable_extensions; do
7197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200     break 2
7201   fi
7202 done
7203   done
7204 IFS=$as_save_IFS
7205
7206 fi
7207 fi
7208 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7209 if test -n "$ac_ct_DSYMUTIL"; then
7210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7211 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7212 else
7213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7215 fi
7216
7217   if test "x$ac_ct_DSYMUTIL" = x; then
7218     DSYMUTIL=":"
7219   else
7220     case $cross_compiling:$ac_tool_warned in
7221 yes:)
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224 ac_tool_warned=yes ;;
7225 esac
7226     DSYMUTIL=$ac_ct_DSYMUTIL
7227   fi
7228 else
7229   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7230 fi
7231
7232     if test -n "$ac_tool_prefix"; then
7233   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7234 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if ${ac_cv_prog_NMEDIT+:} false; then :
7238   $as_echo_n "(cached) " >&6
7239 else
7240   if test -n "$NMEDIT"; then
7241   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7242 else
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
7246   IFS=$as_save_IFS
7247   test -z "$as_dir" && as_dir=.
7248     for ac_exec_ext in '' $ac_executable_extensions; do
7249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7250     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252     break 2
7253   fi
7254 done
7255   done
7256 IFS=$as_save_IFS
7257
7258 fi
7259 fi
7260 NMEDIT=$ac_cv_prog_NMEDIT
7261 if test -n "$NMEDIT"; then
7262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7263 $as_echo "$NMEDIT" >&6; }
7264 else
7265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7267 fi
7268
7269
7270 fi
7271 if test -z "$ac_cv_prog_NMEDIT"; then
7272   ac_ct_NMEDIT=$NMEDIT
7273   # Extract the first word of "nmedit", so it can be a program name with args.
7274 set dummy nmedit; ac_word=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7278   $as_echo_n "(cached) " >&6
7279 else
7280   if test -n "$ac_ct_NMEDIT"; then
7281   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286   IFS=$as_save_IFS
7287   test -z "$as_dir" && as_dir=.
7288     for ac_exec_ext in '' $ac_executable_extensions; do
7289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7290     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292     break 2
7293   fi
7294 done
7295   done
7296 IFS=$as_save_IFS
7297
7298 fi
7299 fi
7300 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7301 if test -n "$ac_ct_NMEDIT"; then
7302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7303 $as_echo "$ac_ct_NMEDIT" >&6; }
7304 else
7305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7307 fi
7308
7309   if test "x$ac_ct_NMEDIT" = x; then
7310     NMEDIT=":"
7311   else
7312     case $cross_compiling:$ac_tool_warned in
7313 yes:)
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316 ac_tool_warned=yes ;;
7317 esac
7318     NMEDIT=$ac_ct_NMEDIT
7319   fi
7320 else
7321   NMEDIT="$ac_cv_prog_NMEDIT"
7322 fi
7323
7324     if test -n "$ac_tool_prefix"; then
7325   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7326 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if ${ac_cv_prog_LIPO+:} false; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   if test -n "$LIPO"; then
7333   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338   IFS=$as_save_IFS
7339   test -z "$as_dir" && as_dir=.
7340     for ac_exec_ext in '' $ac_executable_extensions; do
7341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7342     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344     break 2
7345   fi
7346 done
7347   done
7348 IFS=$as_save_IFS
7349
7350 fi
7351 fi
7352 LIPO=$ac_cv_prog_LIPO
7353 if test -n "$LIPO"; then
7354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7355 $as_echo "$LIPO" >&6; }
7356 else
7357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7359 fi
7360
7361
7362 fi
7363 if test -z "$ac_cv_prog_LIPO"; then
7364   ac_ct_LIPO=$LIPO
7365   # Extract the first word of "lipo", so it can be a program name with args.
7366 set dummy lipo; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7370   $as_echo_n "(cached) " >&6
7371 else
7372   if test -n "$ac_ct_LIPO"; then
7373   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7377 do
7378   IFS=$as_save_IFS
7379   test -z "$as_dir" && as_dir=.
7380     for ac_exec_ext in '' $ac_executable_extensions; do
7381   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7382     ac_cv_prog_ac_ct_LIPO="lipo"
7383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384     break 2
7385   fi
7386 done
7387   done
7388 IFS=$as_save_IFS
7389
7390 fi
7391 fi
7392 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7393 if test -n "$ac_ct_LIPO"; then
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7395 $as_echo "$ac_ct_LIPO" >&6; }
7396 else
7397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7399 fi
7400
7401   if test "x$ac_ct_LIPO" = x; then
7402     LIPO=":"
7403   else
7404     case $cross_compiling:$ac_tool_warned in
7405 yes:)
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7408 ac_tool_warned=yes ;;
7409 esac
7410     LIPO=$ac_ct_LIPO
7411   fi
7412 else
7413   LIPO="$ac_cv_prog_LIPO"
7414 fi
7415
7416     if test -n "$ac_tool_prefix"; then
7417   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7418 set dummy ${ac_tool_prefix}otool; ac_word=$2
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 $as_echo_n "checking for $ac_word... " >&6; }
7421 if ${ac_cv_prog_OTOOL+:} false; then :
7422   $as_echo_n "(cached) " >&6
7423 else
7424   if test -n "$OTOOL"; then
7425   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430   IFS=$as_save_IFS
7431   test -z "$as_dir" && as_dir=.
7432     for ac_exec_ext in '' $ac_executable_extensions; do
7433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436     break 2
7437   fi
7438 done
7439   done
7440 IFS=$as_save_IFS
7441
7442 fi
7443 fi
7444 OTOOL=$ac_cv_prog_OTOOL
7445 if test -n "$OTOOL"; then
7446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7447 $as_echo "$OTOOL" >&6; }
7448 else
7449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7451 fi
7452
7453
7454 fi
7455 if test -z "$ac_cv_prog_OTOOL"; then
7456   ac_ct_OTOOL=$OTOOL
7457   # Extract the first word of "otool", so it can be a program name with args.
7458 set dummy otool; ac_word=$2
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460 $as_echo_n "checking for $ac_word... " >&6; }
7461 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7462   $as_echo_n "(cached) " >&6
7463 else
7464   if test -n "$ac_ct_OTOOL"; then
7465   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7466 else
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7469 do
7470   IFS=$as_save_IFS
7471   test -z "$as_dir" && as_dir=.
7472     for ac_exec_ext in '' $ac_executable_extensions; do
7473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7474     ac_cv_prog_ac_ct_OTOOL="otool"
7475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476     break 2
7477   fi
7478 done
7479   done
7480 IFS=$as_save_IFS
7481
7482 fi
7483 fi
7484 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7485 if test -n "$ac_ct_OTOOL"; then
7486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7487 $as_echo "$ac_ct_OTOOL" >&6; }
7488 else
7489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7491 fi
7492
7493   if test "x$ac_ct_OTOOL" = x; then
7494     OTOOL=":"
7495   else
7496     case $cross_compiling:$ac_tool_warned in
7497 yes:)
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7500 ac_tool_warned=yes ;;
7501 esac
7502     OTOOL=$ac_ct_OTOOL
7503   fi
7504 else
7505   OTOOL="$ac_cv_prog_OTOOL"
7506 fi
7507
7508     if test -n "$ac_tool_prefix"; then
7509   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7510 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7512 $as_echo_n "checking for $ac_word... " >&6; }
7513 if ${ac_cv_prog_OTOOL64+:} false; then :
7514   $as_echo_n "(cached) " >&6
7515 else
7516   if test -n "$OTOOL64"; then
7517   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7518 else
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH
7521 do
7522   IFS=$as_save_IFS
7523   test -z "$as_dir" && as_dir=.
7524     for ac_exec_ext in '' $ac_executable_extensions; do
7525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7526     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528     break 2
7529   fi
7530 done
7531   done
7532 IFS=$as_save_IFS
7533
7534 fi
7535 fi
7536 OTOOL64=$ac_cv_prog_OTOOL64
7537 if test -n "$OTOOL64"; then
7538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7539 $as_echo "$OTOOL64" >&6; }
7540 else
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7543 fi
7544
7545
7546 fi
7547 if test -z "$ac_cv_prog_OTOOL64"; then
7548   ac_ct_OTOOL64=$OTOOL64
7549   # Extract the first word of "otool64", so it can be a program name with args.
7550 set dummy otool64; ac_word=$2
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7552 $as_echo_n "checking for $ac_word... " >&6; }
7553 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7554   $as_echo_n "(cached) " >&6
7555 else
7556   if test -n "$ac_ct_OTOOL64"; then
7557   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7558 else
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560 for as_dir in $PATH
7561 do
7562   IFS=$as_save_IFS
7563   test -z "$as_dir" && as_dir=.
7564     for ac_exec_ext in '' $ac_executable_extensions; do
7565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566     ac_cv_prog_ac_ct_OTOOL64="otool64"
7567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568     break 2
7569   fi
7570 done
7571   done
7572 IFS=$as_save_IFS
7573
7574 fi
7575 fi
7576 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7577 if test -n "$ac_ct_OTOOL64"; then
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7579 $as_echo "$ac_ct_OTOOL64" >&6; }
7580 else
7581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7583 fi
7584
7585   if test "x$ac_ct_OTOOL64" = x; then
7586     OTOOL64=":"
7587   else
7588     case $cross_compiling:$ac_tool_warned in
7589 yes:)
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7592 ac_tool_warned=yes ;;
7593 esac
7594     OTOOL64=$ac_ct_OTOOL64
7595   fi
7596 else
7597   OTOOL64="$ac_cv_prog_OTOOL64"
7598 fi
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7627 $as_echo_n "checking for -single_module linker flag... " >&6; }
7628 if ${lt_cv_apple_cc_single_mod+:} false; then :
7629   $as_echo_n "(cached) " >&6
7630 else
7631   lt_cv_apple_cc_single_mod=no
7632       if test -z "${LT_MULTI_MODULE}"; then
7633         # By default we will add the -single_module flag. You can override
7634         # by either setting the environment variable LT_MULTI_MODULE
7635         # non-empty at configure time, or by adding -multi_module to the
7636         # link flags.
7637         rm -rf libconftest.dylib*
7638         echo "int foo(void){return 1;}" > conftest.c
7639         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7640 -dynamiclib -Wl,-single_module conftest.c" >&5
7641         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7642           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7643         _lt_result=$?
7644         # If there is a non-empty error log, and "single_module"
7645         # appears in it, assume the flag caused a linker warning
7646         if test -s conftest.err && $GREP single_module conftest.err; then
7647           cat conftest.err >&5
7648         # Otherwise, if the output was created with a 0 exit code from
7649         # the compiler, it worked.
7650         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7651           lt_cv_apple_cc_single_mod=yes
7652         else
7653           cat conftest.err >&5
7654         fi
7655         rm -rf libconftest.dylib*
7656         rm -f conftest.*
7657       fi
7658 fi
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7660 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7661
7662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7663 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7664 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7665   $as_echo_n "(cached) " >&6
7666 else
7667   lt_cv_ld_exported_symbols_list=no
7668       save_LDFLAGS=$LDFLAGS
7669       echo "_main" > conftest.sym
7670       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7671       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h.  */
7673
7674 int
7675 main ()
7676 {
7677
7678   ;
7679   return 0;
7680 }
7681 _ACEOF
7682 if ac_fn_c_try_link "$LINENO"; then :
7683   lt_cv_ld_exported_symbols_list=yes
7684 else
7685   lt_cv_ld_exported_symbols_list=no
7686 fi
7687 rm -f core conftest.err conftest.$ac_objext \
7688     conftest$ac_exeext conftest.$ac_ext
7689         LDFLAGS="$save_LDFLAGS"
7690
7691 fi
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7693 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7694
7695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7696 $as_echo_n "checking for -force_load linker flag... " >&6; }
7697 if ${lt_cv_ld_force_load+:} false; then :
7698   $as_echo_n "(cached) " >&6
7699 else
7700   lt_cv_ld_force_load=no
7701       cat > conftest.c << _LT_EOF
7702 int forced_loaded() { return 2;}
7703 _LT_EOF
7704       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7705       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7706       echo "$AR cru libconftest.a conftest.o" >&5
7707       $AR cru libconftest.a conftest.o 2>&5
7708       echo "$RANLIB libconftest.a" >&5
7709       $RANLIB libconftest.a 2>&5
7710       cat > conftest.c << _LT_EOF
7711 int main() { return 0;}
7712 _LT_EOF
7713       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7714       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7715       _lt_result=$?
7716       if test -s conftest.err && $GREP force_load conftest.err; then
7717         cat conftest.err >&5
7718       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7719         lt_cv_ld_force_load=yes
7720       else
7721         cat conftest.err >&5
7722       fi
7723         rm -f conftest.err libconftest.a conftest conftest.c
7724         rm -rf conftest.dSYM
7725
7726 fi
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7728 $as_echo "$lt_cv_ld_force_load" >&6; }
7729     case $host_os in
7730     rhapsody* | darwin1.[012])
7731       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7732     darwin1.*)
7733       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7734     darwin*) # darwin 5.x on
7735       # if running on 10.5 or later, the deployment target defaults
7736       # to the OS version, if on x86, and 10.4, the deployment
7737       # target defaults to 10.4. Don't you love it?
7738       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7739         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7740           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7741         10.[012]*)
7742           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7743         10.*)
7744           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7745       esac
7746     ;;
7747   esac
7748     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7749       _lt_dar_single_mod='$single_module'
7750     fi
7751     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7752       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7753     else
7754       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7755     fi
7756     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7757       _lt_dsymutil='~$DSYMUTIL $lib || :'
7758     else
7759       _lt_dsymutil=
7760     fi
7761     ;;
7762   esac
7763
7764
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7766 $as_echo_n "checking for ANSI C header files... " >&6; }
7767 if ${ac_cv_header_stdc+:} false; then :
7768   $as_echo_n "(cached) " >&6
7769 else
7770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h.  */
7772 #include <stdlib.h>
7773 #include <stdarg.h>
7774 #include <string.h>
7775 #include <float.h>
7776
7777 int
7778 main ()
7779 {
7780
7781   ;
7782   return 0;
7783 }
7784 _ACEOF
7785 if ac_fn_c_try_compile "$LINENO"; then :
7786   ac_cv_header_stdc=yes
7787 else
7788   ac_cv_header_stdc=no
7789 fi
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791
7792 if test $ac_cv_header_stdc = yes; then
7793   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h.  */
7796 #include <string.h>
7797
7798 _ACEOF
7799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7800   $EGREP "memchr" >/dev/null 2>&1; then :
7801
7802 else
7803   ac_cv_header_stdc=no
7804 fi
7805 rm -f conftest*
7806
7807 fi
7808
7809 if test $ac_cv_header_stdc = yes; then
7810   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h.  */
7813 #include <stdlib.h>
7814
7815 _ACEOF
7816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7817   $EGREP "free" >/dev/null 2>&1; then :
7818
7819 else
7820   ac_cv_header_stdc=no
7821 fi
7822 rm -f conftest*
7823
7824 fi
7825
7826 if test $ac_cv_header_stdc = yes; then
7827   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7828   if test "$cross_compiling" = yes; then :
7829   :
7830 else
7831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h.  */
7833 #include <ctype.h>
7834 #include <stdlib.h>
7835 #if ((' ' & 0x0FF) == 0x020)
7836 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7837 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7838 #else
7839 # define ISLOWER(c) \
7840                    (('a' <= (c) && (c) <= 'i') \
7841                      || ('j' <= (c) && (c) <= 'r') \
7842                      || ('s' <= (c) && (c) <= 'z'))
7843 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7844 #endif
7845
7846 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7847 int
7848 main ()
7849 {
7850   int i;
7851   for (i = 0; i < 256; i++)
7852     if (XOR (islower (i), ISLOWER (i))
7853         || toupper (i) != TOUPPER (i))
7854       return 2;
7855   return 0;
7856 }
7857 _ACEOF
7858 if ac_fn_c_try_run "$LINENO"; then :
7859
7860 else
7861   ac_cv_header_stdc=no
7862 fi
7863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7864   conftest.$ac_objext conftest.beam conftest.$ac_ext
7865 fi
7866
7867 fi
7868 fi
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7870 $as_echo "$ac_cv_header_stdc" >&6; }
7871 if test $ac_cv_header_stdc = yes; then
7872
7873 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7874
7875 fi
7876
7877 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7878 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7879                   inttypes.h stdint.h unistd.h
7880 do :
7881   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7882 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7883 "
7884 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7885   cat >>confdefs.h <<_ACEOF
7886 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7887 _ACEOF
7888
7889 fi
7890
7891 done
7892
7893
7894 for ac_header in dlfcn.h
7895 do :
7896   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7897 "
7898 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7899   cat >>confdefs.h <<_ACEOF
7900 #define HAVE_DLFCN_H 1
7901 _ACEOF
7902
7903 fi
7904
7905 done
7906
7907
7908
7909
7910
7911 # Set options
7912
7913
7914
7915         enable_dlopen=no
7916
7917
7918   enable_win32_dll=no
7919
7920
7921             # Check whether --enable-shared was given.
7922 if test "${enable_shared+set}" = set; then :
7923   enableval=$enable_shared; p=${PACKAGE-default}
7924     case $enableval in
7925     yes) enable_shared=yes ;;
7926     no) enable_shared=no ;;
7927     *)
7928       enable_shared=no
7929       # Look at the argument we got.  We use all the common list separators.
7930       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7931       for pkg in $enableval; do
7932         IFS="$lt_save_ifs"
7933         if test "X$pkg" = "X$p"; then
7934           enable_shared=yes
7935         fi
7936       done
7937       IFS="$lt_save_ifs"
7938       ;;
7939     esac
7940 else
7941   enable_shared=yes
7942 fi
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952   # Check whether --enable-static was given.
7953 if test "${enable_static+set}" = set; then :
7954   enableval=$enable_static; p=${PACKAGE-default}
7955     case $enableval in
7956     yes) enable_static=yes ;;
7957     no) enable_static=no ;;
7958     *)
7959      enable_static=no
7960       # Look at the argument we got.  We use all the common list separators.
7961       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7962       for pkg in $enableval; do
7963         IFS="$lt_save_ifs"
7964         if test "X$pkg" = "X$p"; then
7965           enable_static=yes
7966         fi
7967       done
7968       IFS="$lt_save_ifs"
7969       ;;
7970     esac
7971 else
7972   enable_static=yes
7973 fi
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984 # Check whether --with-pic was given.
7985 if test "${with_pic+set}" = set; then :
7986   withval=$with_pic; lt_p=${PACKAGE-default}
7987     case $withval in
7988     yes|no) pic_mode=$withval ;;
7989     *)
7990       pic_mode=default
7991       # Look at the argument we got.  We use all the common list separators.
7992       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7993       for lt_pkg in $withval; do
7994         IFS="$lt_save_ifs"
7995         if test "X$lt_pkg" = "X$lt_p"; then
7996           pic_mode=yes
7997         fi
7998       done
7999       IFS="$lt_save_ifs"
8000       ;;
8001     esac
8002 else
8003   pic_mode=default
8004 fi
8005
8006
8007 test -z "$pic_mode" && pic_mode=default
8008
8009
8010
8011
8012
8013
8014
8015   # Check whether --enable-fast-install was given.
8016 if test "${enable_fast_install+set}" = set; then :
8017   enableval=$enable_fast_install; p=${PACKAGE-default}
8018     case $enableval in
8019     yes) enable_fast_install=yes ;;
8020     no) enable_fast_install=no ;;
8021     *)
8022       enable_fast_install=no
8023       # Look at the argument we got.  We use all the common list separators.
8024       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8025       for pkg in $enableval; do
8026         IFS="$lt_save_ifs"
8027         if test "X$pkg" = "X$p"; then
8028           enable_fast_install=yes
8029         fi
8030       done
8031       IFS="$lt_save_ifs"
8032       ;;
8033     esac
8034 else
8035   enable_fast_install=yes
8036 fi
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048 # This can be used to rebuild libtool when needed
8049 LIBTOOL_DEPS="$ltmain"
8050
8051 # Always use our own libtool.
8052 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083 test -z "$LN_S" && LN_S="ln -s"
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098 if test -n "${ZSH_VERSION+set}" ; then
8099    setopt NO_GLOB_SUBST
8100 fi
8101
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8103 $as_echo_n "checking for objdir... " >&6; }
8104 if ${lt_cv_objdir+:} false; then :
8105   $as_echo_n "(cached) " >&6
8106 else
8107   rm -f .libs 2>/dev/null
8108 mkdir .libs 2>/dev/null
8109 if test -d .libs; then
8110   lt_cv_objdir=.libs
8111 else
8112   # MS-DOS does not allow filenames that begin with a dot.
8113   lt_cv_objdir=_libs
8114 fi
8115 rmdir .libs 2>/dev/null
8116 fi
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8118 $as_echo "$lt_cv_objdir" >&6; }
8119 objdir=$lt_cv_objdir
8120
8121
8122
8123
8124
8125 cat >>confdefs.h <<_ACEOF
8126 #define LT_OBJDIR "$lt_cv_objdir/"
8127 _ACEOF
8128
8129
8130
8131
8132 case $host_os in
8133 aix3*)
8134   # AIX sometimes has problems with the GCC collect2 program.  For some
8135   # reason, if we set the COLLECT_NAMES environment variable, the problems
8136   # vanish in a puff of smoke.
8137   if test "X${COLLECT_NAMES+set}" != Xset; then
8138     COLLECT_NAMES=
8139     export COLLECT_NAMES
8140   fi
8141   ;;
8142 esac
8143
8144 # Global variables:
8145 ofile=libtool
8146 can_build_shared=yes
8147
8148 # All known linkers require a `.a' archive for static linking (except MSVC,
8149 # which needs '.lib').
8150 libext=a
8151
8152 with_gnu_ld="$lt_cv_prog_gnu_ld"
8153
8154 old_CC="$CC"
8155 old_CFLAGS="$CFLAGS"
8156
8157 # Set sane defaults for various variables
8158 test -z "$CC" && CC=cc
8159 test -z "$LTCC" && LTCC=$CC
8160 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8161 test -z "$LD" && LD=ld
8162 test -z "$ac_objext" && ac_objext=o
8163
8164 for cc_temp in $compiler""; do
8165   case $cc_temp in
8166     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8167     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8168     \-*) ;;
8169     *) break;;
8170   esac
8171 done
8172 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8173
8174
8175 # Only perform the check for file, if the check method requires it
8176 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8177 case $deplibs_check_method in
8178 file_magic*)
8179   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8181 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8182 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8183   $as_echo_n "(cached) " >&6
8184 else
8185   case $MAGIC_CMD in
8186 [\\/*] |  ?:[\\/]*)
8187   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8188   ;;
8189 *)
8190   lt_save_MAGIC_CMD="$MAGIC_CMD"
8191   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8192   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8193   for ac_dir in $ac_dummy; do
8194     IFS="$lt_save_ifs"
8195     test -z "$ac_dir" && ac_dir=.
8196     if test -f $ac_dir/${ac_tool_prefix}file; then
8197       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8198       if test -n "$file_magic_test_file"; then
8199         case $deplibs_check_method in
8200         "file_magic "*)
8201           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8202           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8203           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8204             $EGREP "$file_magic_regex" > /dev/null; then
8205             :
8206           else
8207             cat <<_LT_EOF 1>&2
8208
8209 *** Warning: the command libtool uses to detect shared libraries,
8210 *** $file_magic_cmd, produces output that libtool cannot recognize.
8211 *** The result is that libtool may fail to recognize shared libraries
8212 *** as such.  This will affect the creation of libtool libraries that
8213 *** depend on shared libraries, but programs linked with such libtool
8214 *** libraries will work regardless of this problem.  Nevertheless, you
8215 *** may want to report the problem to your system manager and/or to
8216 *** bug-libtool@gnu.org
8217
8218 _LT_EOF
8219           fi ;;
8220         esac
8221       fi
8222       break
8223     fi
8224   done
8225   IFS="$lt_save_ifs"
8226   MAGIC_CMD="$lt_save_MAGIC_CMD"
8227   ;;
8228 esac
8229 fi
8230
8231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8232 if test -n "$MAGIC_CMD"; then
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8234 $as_echo "$MAGIC_CMD" >&6; }
8235 else
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 fi
8239
8240
8241
8242
8243
8244 if test -z "$lt_cv_path_MAGIC_CMD"; then
8245   if test -n "$ac_tool_prefix"; then
8246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8247 $as_echo_n "checking for file... " >&6; }
8248 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8249   $as_echo_n "(cached) " >&6
8250 else
8251   case $MAGIC_CMD in
8252 [\\/*] |  ?:[\\/]*)
8253   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8254   ;;
8255 *)
8256   lt_save_MAGIC_CMD="$MAGIC_CMD"
8257   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8258   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8259   for ac_dir in $ac_dummy; do
8260     IFS="$lt_save_ifs"
8261     test -z "$ac_dir" && ac_dir=.
8262     if test -f $ac_dir/file; then
8263       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8264       if test -n "$file_magic_test_file"; then
8265         case $deplibs_check_method in
8266         "file_magic "*)
8267           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8268           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8269           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8270             $EGREP "$file_magic_regex" > /dev/null; then
8271             :
8272           else
8273             cat <<_LT_EOF 1>&2
8274
8275 *** Warning: the command libtool uses to detect shared libraries,
8276 *** $file_magic_cmd, produces output that libtool cannot recognize.
8277 *** The result is that libtool may fail to recognize shared libraries
8278 *** as such.  This will affect the creation of libtool libraries that
8279 *** depend on shared libraries, but programs linked with such libtool
8280 *** libraries will work regardless of this problem.  Nevertheless, you
8281 *** may want to report the problem to your system manager and/or to
8282 *** bug-libtool@gnu.org
8283
8284 _LT_EOF
8285           fi ;;
8286         esac
8287       fi
8288       break
8289     fi
8290   done
8291   IFS="$lt_save_ifs"
8292   MAGIC_CMD="$lt_save_MAGIC_CMD"
8293   ;;
8294 esac
8295 fi
8296
8297 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8298 if test -n "$MAGIC_CMD"; then
8299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8300 $as_echo "$MAGIC_CMD" >&6; }
8301 else
8302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8304 fi
8305
8306
8307   else
8308     MAGIC_CMD=:
8309   fi
8310 fi
8311
8312   fi
8313   ;;
8314 esac
8315
8316 # Use C for the default configuration in the libtool script
8317
8318 lt_save_CC="$CC"
8319 ac_ext=c
8320 ac_cpp='$CPP $CPPFLAGS'
8321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8324
8325
8326 # Source file extension for C test sources.
8327 ac_ext=c
8328
8329 # Object file extension for compiled C test sources.
8330 objext=o
8331 objext=$objext
8332
8333 # Code to be used in simple compile tests
8334 lt_simple_compile_test_code="int some_variable = 0;"
8335
8336 # Code to be used in simple link tests
8337 lt_simple_link_test_code='int main(){return(0);}'
8338
8339
8340
8341
8342
8343
8344
8345 # If no C compiler was specified, use CC.
8346 LTCC=${LTCC-"$CC"}
8347
8348 # If no C compiler flags were specified, use CFLAGS.
8349 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8350
8351 # Allow CC to be a program name with arguments.
8352 compiler=$CC
8353
8354 # Save the default compiler, since it gets overwritten when the other
8355 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8356 compiler_DEFAULT=$CC
8357
8358 # save warnings/boilerplate of simple test code
8359 ac_outfile=conftest.$ac_objext
8360 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8361 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8362 _lt_compiler_boilerplate=`cat conftest.err`
8363 $RM conftest*
8364
8365 ac_outfile=conftest.$ac_objext
8366 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8367 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8368 _lt_linker_boilerplate=`cat conftest.err`
8369 $RM -r conftest*
8370
8371
8372 ## CAVEAT EMPTOR:
8373 ## There is no encapsulation within the following macros, do not change
8374 ## the running order or otherwise move them around unless you know exactly
8375 ## what you are doing...
8376 if test -n "$compiler"; then
8377
8378 lt_prog_compiler_no_builtin_flag=
8379
8380 if test "$GCC" = yes; then
8381   case $cc_basename in
8382   nvcc*)
8383     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8384   *)
8385     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8386   esac
8387
8388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8389 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8390 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8391   $as_echo_n "(cached) " >&6
8392 else
8393   lt_cv_prog_compiler_rtti_exceptions=no
8394    ac_outfile=conftest.$ac_objext
8395    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8396    lt_compiler_flag="-fno-rtti -fno-exceptions"
8397    # Insert the option either (1) after the last *FLAGS variable, or
8398    # (2) before a word containing "conftest.", or (3) at the end.
8399    # Note that $ac_compile itself does not contain backslashes and begins
8400    # with a dollar sign (not a hyphen), so the echo should work correctly.
8401    # The option is referenced via a variable to avoid confusing sed.
8402    lt_compile=`echo "$ac_compile" | $SED \
8403    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8404    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8405    -e 's:$: $lt_compiler_flag:'`
8406    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8407    (eval "$lt_compile" 2>conftest.err)
8408    ac_status=$?
8409    cat conftest.err >&5
8410    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411    if (exit $ac_status) && test -s "$ac_outfile"; then
8412      # The compiler can only warn and ignore the option if not recognized
8413      # So say no if there are warnings other than the usual output.
8414      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8415      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8416      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8417        lt_cv_prog_compiler_rtti_exceptions=yes
8418      fi
8419    fi
8420    $RM conftest*
8421
8422 fi
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8424 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8425
8426 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8427     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8428 else
8429     :
8430 fi
8431
8432 fi
8433
8434
8435
8436
8437
8438
8439   lt_prog_compiler_wl=
8440 lt_prog_compiler_pic=
8441 lt_prog_compiler_static=
8442
8443
8444   if test "$GCC" = yes; then
8445     lt_prog_compiler_wl='-Wl,'
8446     lt_prog_compiler_static='-static'
8447
8448     case $host_os in
8449       aix*)
8450       # All AIX code is PIC.
8451       if test "$host_cpu" = ia64; then
8452         # AIX 5 now supports IA64 processor
8453         lt_prog_compiler_static='-Bstatic'
8454       fi
8455       ;;
8456
8457     amigaos*)
8458       case $host_cpu in
8459       powerpc)
8460             # see comment about AmigaOS4 .so support
8461             lt_prog_compiler_pic='-fPIC'
8462         ;;
8463       m68k)
8464             # FIXME: we need at least 68020 code to build shared libraries, but
8465             # adding the `-m68020' flag to GCC prevents building anything better,
8466             # like `-m68040'.
8467             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8468         ;;
8469       esac
8470       ;;
8471
8472     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8473       # PIC is the default for these OSes.
8474       ;;
8475
8476     mingw* | cygwin* | pw32* | os2* | cegcc*)
8477       # This hack is so that the source file can tell whether it is being
8478       # built for inclusion in a dll (and should export symbols for example).
8479       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8480       # (--disable-auto-import) libraries
8481       lt_prog_compiler_pic='-DDLL_EXPORT'
8482       ;;
8483
8484     darwin* | rhapsody*)
8485       # PIC is the default on this platform
8486       # Common symbols not allowed in MH_DYLIB files
8487       lt_prog_compiler_pic='-fno-common'
8488       ;;
8489
8490     haiku*)
8491       # PIC is the default for Haiku.
8492       # The "-static" flag exists, but is broken.
8493       lt_prog_compiler_static=
8494       ;;
8495
8496     hpux*)
8497       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8498       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8499       # sets the default TLS model and affects inlining.
8500       case $host_cpu in
8501       hppa*64*)
8502         # +Z the default
8503         ;;
8504       *)
8505         lt_prog_compiler_pic='-fPIC'
8506         ;;
8507       esac
8508       ;;
8509
8510     interix[3-9]*)
8511       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8512       # Instead, we relocate shared libraries at runtime.
8513       ;;
8514
8515     msdosdjgpp*)
8516       # Just because we use GCC doesn't mean we suddenly get shared libraries
8517       # on systems that don't support them.
8518       lt_prog_compiler_can_build_shared=no
8519       enable_shared=no
8520       ;;
8521
8522     *nto* | *qnx*)
8523       # QNX uses GNU C++, but need to define -shared option too, otherwise
8524       # it will coredump.
8525       lt_prog_compiler_pic='-fPIC -shared'
8526       ;;
8527
8528     sysv4*MP*)
8529       if test -d /usr/nec; then
8530         lt_prog_compiler_pic=-Kconform_pic
8531       fi
8532       ;;
8533
8534     *)
8535       lt_prog_compiler_pic='-fPIC'
8536       ;;
8537     esac
8538
8539     case $cc_basename in
8540     nvcc*) # Cuda Compiler Driver 2.2
8541       lt_prog_compiler_wl='-Xlinker '
8542       if test -n "$lt_prog_compiler_pic"; then
8543         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8544       fi
8545       ;;
8546     esac
8547   else
8548     # PORTME Check for flag to pass linker flags through the system compiler.
8549     case $host_os in
8550     aix*)
8551       lt_prog_compiler_wl='-Wl,'
8552       if test "$host_cpu" = ia64; then
8553         # AIX 5 now supports IA64 processor
8554         lt_prog_compiler_static='-Bstatic'
8555       else
8556         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8557       fi
8558       ;;
8559
8560     mingw* | cygwin* | pw32* | os2* | cegcc*)
8561       # This hack is so that the source file can tell whether it is being
8562       # built for inclusion in a dll (and should export symbols for example).
8563       lt_prog_compiler_pic='-DDLL_EXPORT'
8564       ;;
8565
8566     hpux9* | hpux10* | hpux11*)
8567       lt_prog_compiler_wl='-Wl,'
8568       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8569       # not for PA HP-UX.
8570       case $host_cpu in
8571       hppa*64*|ia64*)
8572         # +Z the default
8573         ;;
8574       *)
8575         lt_prog_compiler_pic='+Z'
8576         ;;
8577       esac
8578       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8579       lt_prog_compiler_static='${wl}-a ${wl}archive'
8580       ;;
8581
8582     irix5* | irix6* | nonstopux*)
8583       lt_prog_compiler_wl='-Wl,'
8584       # PIC (with -KPIC) is the default.
8585       lt_prog_compiler_static='-non_shared'
8586       ;;
8587
8588     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8589       case $cc_basename in
8590       # old Intel for x86_64 which still supported -KPIC.
8591       ecc*)
8592         lt_prog_compiler_wl='-Wl,'
8593         lt_prog_compiler_pic='-KPIC'
8594         lt_prog_compiler_static='-static'
8595         ;;
8596       # icc used to be incompatible with GCC.
8597       # ICC 10 doesn't accept -KPIC any more.
8598       icc* | ifort*)
8599         lt_prog_compiler_wl='-Wl,'
8600         lt_prog_compiler_pic='-fPIC'
8601         lt_prog_compiler_static='-static'
8602         ;;
8603       # Lahey Fortran 8.1.
8604       lf95*)
8605         lt_prog_compiler_wl='-Wl,'
8606         lt_prog_compiler_pic='--shared'
8607         lt_prog_compiler_static='--static'
8608         ;;
8609       nagfor*)
8610         # NAG Fortran compiler
8611         lt_prog_compiler_wl='-Wl,-Wl,,'
8612         lt_prog_compiler_pic='-PIC'
8613         lt_prog_compiler_static='-Bstatic'
8614         ;;
8615       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8616         # Portland Group compilers (*not* the Pentium gcc compiler,
8617         # which looks to be a dead project)
8618         lt_prog_compiler_wl='-Wl,'
8619         lt_prog_compiler_pic='-fpic'
8620         lt_prog_compiler_static='-Bstatic'
8621         ;;
8622       ccc*)
8623         lt_prog_compiler_wl='-Wl,'
8624         # All Alpha code is PIC.
8625         lt_prog_compiler_static='-non_shared'
8626         ;;
8627       xl* | bgxl* | bgf* | mpixl*)
8628         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8629         lt_prog_compiler_wl='-Wl,'
8630         lt_prog_compiler_pic='-qpic'
8631         lt_prog_compiler_static='-qstaticlink'
8632         ;;
8633       *)
8634         case `$CC -V 2>&1 | sed 5q` in
8635         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8636           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8637           lt_prog_compiler_pic='-KPIC'
8638           lt_prog_compiler_static='-Bstatic'
8639           lt_prog_compiler_wl=''
8640           ;;
8641         *Sun\ F* | *Sun*Fortran*)
8642           lt_prog_compiler_pic='-KPIC'
8643           lt_prog_compiler_static='-Bstatic'
8644           lt_prog_compiler_wl='-Qoption ld '
8645           ;;
8646         *Sun\ C*)
8647           # Sun C 5.9
8648           lt_prog_compiler_pic='-KPIC'
8649           lt_prog_compiler_static='-Bstatic'
8650           lt_prog_compiler_wl='-Wl,'
8651           ;;
8652         *Intel*\ [CF]*Compiler*)
8653           lt_prog_compiler_wl='-Wl,'
8654           lt_prog_compiler_pic='-fPIC'
8655           lt_prog_compiler_static='-static'
8656           ;;
8657         *Portland\ Group*)
8658           lt_prog_compiler_wl='-Wl,'
8659           lt_prog_compiler_pic='-fpic'
8660           lt_prog_compiler_static='-Bstatic'
8661           ;;
8662         esac
8663         ;;
8664       esac
8665       ;;
8666
8667     newsos6)
8668       lt_prog_compiler_pic='-KPIC'
8669       lt_prog_compiler_static='-Bstatic'
8670       ;;
8671
8672     *nto* | *qnx*)
8673       # QNX uses GNU C++, but need to define -shared option too, otherwise
8674       # it will coredump.
8675       lt_prog_compiler_pic='-fPIC -shared'
8676       ;;
8677
8678     osf3* | osf4* | osf5*)
8679       lt_prog_compiler_wl='-Wl,'
8680       # All OSF/1 code is PIC.
8681       lt_prog_compiler_static='-non_shared'
8682       ;;
8683
8684     rdos*)
8685       lt_prog_compiler_static='-non_shared'
8686       ;;
8687
8688     solaris*)
8689       lt_prog_compiler_pic='-KPIC'
8690       lt_prog_compiler_static='-Bstatic'
8691       case $cc_basename in
8692       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8693         lt_prog_compiler_wl='-Qoption ld ';;
8694       *)
8695         lt_prog_compiler_wl='-Wl,';;
8696       esac
8697       ;;
8698
8699     sunos4*)
8700       lt_prog_compiler_wl='-Qoption ld '
8701       lt_prog_compiler_pic='-PIC'
8702       lt_prog_compiler_static='-Bstatic'
8703       ;;
8704
8705     sysv4 | sysv4.2uw2* | sysv4.3*)
8706       lt_prog_compiler_wl='-Wl,'
8707       lt_prog_compiler_pic='-KPIC'
8708       lt_prog_compiler_static='-Bstatic'
8709       ;;
8710
8711     sysv4*MP*)
8712       if test -d /usr/nec ;then
8713         lt_prog_compiler_pic='-Kconform_pic'
8714         lt_prog_compiler_static='-Bstatic'
8715       fi
8716       ;;
8717
8718     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8719       lt_prog_compiler_wl='-Wl,'
8720       lt_prog_compiler_pic='-KPIC'
8721       lt_prog_compiler_static='-Bstatic'
8722       ;;
8723
8724     unicos*)
8725       lt_prog_compiler_wl='-Wl,'
8726       lt_prog_compiler_can_build_shared=no
8727       ;;
8728
8729     uts4*)
8730       lt_prog_compiler_pic='-pic'
8731       lt_prog_compiler_static='-Bstatic'
8732       ;;
8733
8734     *)
8735       lt_prog_compiler_can_build_shared=no
8736       ;;
8737     esac
8738   fi
8739
8740 case $host_os in
8741   # For platforms which do not support PIC, -DPIC is meaningless:
8742   *djgpp*)
8743     lt_prog_compiler_pic=
8744     ;;
8745   *)
8746     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8747     ;;
8748 esac
8749
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8751 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8752 if ${lt_cv_prog_compiler_pic+:} false; then :
8753   $as_echo_n "(cached) " >&6
8754 else
8755   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8756 fi
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8758 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8759 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8760
8761 #
8762 # Check to make sure the PIC flag actually works.
8763 #
8764 if test -n "$lt_prog_compiler_pic"; then
8765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8766 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8767 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8768   $as_echo_n "(cached) " >&6
8769 else
8770   lt_cv_prog_compiler_pic_works=no
8771    ac_outfile=conftest.$ac_objext
8772    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8773    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8774    # Insert the option either (1) after the last *FLAGS variable, or
8775    # (2) before a word containing "conftest.", or (3) at the end.
8776    # Note that $ac_compile itself does not contain backslashes and begins
8777    # with a dollar sign (not a hyphen), so the echo should work correctly.
8778    # The option is referenced via a variable to avoid confusing sed.
8779    lt_compile=`echo "$ac_compile" | $SED \
8780    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8781    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8782    -e 's:$: $lt_compiler_flag:'`
8783    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8784    (eval "$lt_compile" 2>conftest.err)
8785    ac_status=$?
8786    cat conftest.err >&5
8787    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788    if (exit $ac_status) && test -s "$ac_outfile"; then
8789      # The compiler can only warn and ignore the option if not recognized
8790      # So say no if there are warnings other than the usual output.
8791      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8792      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8793      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8794        lt_cv_prog_compiler_pic_works=yes
8795      fi
8796    fi
8797    $RM conftest*
8798
8799 fi
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8801 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8802
8803 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8804     case $lt_prog_compiler_pic in
8805      "" | " "*) ;;
8806      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8807      esac
8808 else
8809     lt_prog_compiler_pic=
8810      lt_prog_compiler_can_build_shared=no
8811 fi
8812
8813 fi
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825 #
8826 # Check to make sure the static flag actually works.
8827 #
8828 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8830 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8831 if ${lt_cv_prog_compiler_static_works+:} false; then :
8832   $as_echo_n "(cached) " >&6
8833 else
8834   lt_cv_prog_compiler_static_works=no
8835    save_LDFLAGS="$LDFLAGS"
8836    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8837    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8838    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8839      # The linker can only warn and ignore the option if not recognized
8840      # So say no if there are warnings
8841      if test -s conftest.err; then
8842        # Append any errors to the config.log.
8843        cat conftest.err 1>&5
8844        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8845        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8846        if diff conftest.exp conftest.er2 >/dev/null; then
8847          lt_cv_prog_compiler_static_works=yes
8848        fi
8849      else
8850        lt_cv_prog_compiler_static_works=yes
8851      fi
8852    fi
8853    $RM -r conftest*
8854    LDFLAGS="$save_LDFLAGS"
8855
8856 fi
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8858 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8859
8860 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8861     :
8862 else
8863     lt_prog_compiler_static=
8864 fi
8865
8866
8867
8868
8869
8870
8871
8872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8873 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8874 if ${lt_cv_prog_compiler_c_o+:} false; then :
8875   $as_echo_n "(cached) " >&6
8876 else
8877   lt_cv_prog_compiler_c_o=no
8878    $RM -r conftest 2>/dev/null
8879    mkdir conftest
8880    cd conftest
8881    mkdir out
8882    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8883
8884    lt_compiler_flag="-o out/conftest2.$ac_objext"
8885    # Insert the option either (1) after the last *FLAGS variable, or
8886    # (2) before a word containing "conftest.", or (3) at the end.
8887    # Note that $ac_compile itself does not contain backslashes and begins
8888    # with a dollar sign (not a hyphen), so the echo should work correctly.
8889    lt_compile=`echo "$ac_compile" | $SED \
8890    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8891    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8892    -e 's:$: $lt_compiler_flag:'`
8893    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8894    (eval "$lt_compile" 2>out/conftest.err)
8895    ac_status=$?
8896    cat out/conftest.err >&5
8897    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8899    then
8900      # The compiler can only warn and ignore the option if not recognized
8901      # So say no if there are warnings
8902      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8903      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8904      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8905        lt_cv_prog_compiler_c_o=yes
8906      fi
8907    fi
8908    chmod u+w . 2>&5
8909    $RM conftest*
8910    # SGI C++ compiler will create directory out/ii_files/ for
8911    # template instantiation
8912    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8913    $RM out/* && rmdir out
8914    cd ..
8915    $RM -r conftest
8916    $RM conftest*
8917
8918 fi
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8920 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8921
8922
8923
8924
8925
8926
8927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8928 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8929 if ${lt_cv_prog_compiler_c_o+:} false; then :
8930   $as_echo_n "(cached) " >&6
8931 else
8932   lt_cv_prog_compiler_c_o=no
8933    $RM -r conftest 2>/dev/null
8934    mkdir conftest
8935    cd conftest
8936    mkdir out
8937    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8938
8939    lt_compiler_flag="-o out/conftest2.$ac_objext"
8940    # Insert the option either (1) after the last *FLAGS variable, or
8941    # (2) before a word containing "conftest.", or (3) at the end.
8942    # Note that $ac_compile itself does not contain backslashes and begins
8943    # with a dollar sign (not a hyphen), so the echo should work correctly.
8944    lt_compile=`echo "$ac_compile" | $SED \
8945    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8946    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8947    -e 's:$: $lt_compiler_flag:'`
8948    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8949    (eval "$lt_compile" 2>out/conftest.err)
8950    ac_status=$?
8951    cat out/conftest.err >&5
8952    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8954    then
8955      # The compiler can only warn and ignore the option if not recognized
8956      # So say no if there are warnings
8957      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8958      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8959      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8960        lt_cv_prog_compiler_c_o=yes
8961      fi
8962    fi
8963    chmod u+w . 2>&5
8964    $RM conftest*
8965    # SGI C++ compiler will create directory out/ii_files/ for
8966    # template instantiation
8967    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8968    $RM out/* && rmdir out
8969    cd ..
8970    $RM -r conftest
8971    $RM conftest*
8972
8973 fi
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8975 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8976
8977
8978
8979
8980 hard_links="nottested"
8981 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8982   # do not overwrite the value of need_locks provided by the user
8983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8984 $as_echo_n "checking if we can lock with hard links... " >&6; }
8985   hard_links=yes
8986   $RM conftest*
8987   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8988   touch conftest.a
8989   ln conftest.a conftest.b 2>&5 || hard_links=no
8990   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8992 $as_echo "$hard_links" >&6; }
8993   if test "$hard_links" = no; then
8994     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8995 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8996     need_locks=warn
8997   fi
8998 else
8999   need_locks=no
9000 fi
9001
9002
9003
9004
9005
9006
9007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9008 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9009
9010   runpath_var=
9011   allow_undefined_flag=
9012   always_export_symbols=no
9013   archive_cmds=
9014   archive_expsym_cmds=
9015   compiler_needs_object=no
9016   enable_shared_with_static_runtimes=no
9017   export_dynamic_flag_spec=
9018   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9019   hardcode_automatic=no
9020   hardcode_direct=no
9021   hardcode_direct_absolute=no
9022   hardcode_libdir_flag_spec=
9023   hardcode_libdir_separator=
9024   hardcode_minus_L=no
9025   hardcode_shlibpath_var=unsupported
9026   inherit_rpath=no
9027   link_all_deplibs=unknown
9028   module_cmds=
9029   module_expsym_cmds=
9030   old_archive_from_new_cmds=
9031   old_archive_from_expsyms_cmds=
9032   thread_safe_flag_spec=
9033   whole_archive_flag_spec=
9034   # include_expsyms should be a list of space-separated symbols to be *always*
9035   # included in the symbol list
9036   include_expsyms=
9037   # exclude_expsyms can be an extended regexp of symbols to exclude
9038   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9039   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9040   # as well as any symbol that contains `d'.
9041   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9042   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9043   # platforms (ab)use it in PIC code, but their linkers get confused if
9044   # the symbol is explicitly referenced.  Since portable code cannot
9045   # rely on this symbol name, it's probably fine to never include it in
9046   # preloaded symbol tables.
9047   # Exclude shared library initialization/finalization symbols.
9048   extract_expsyms_cmds=
9049
9050   case $host_os in
9051   cygwin* | mingw* | pw32* | cegcc*)
9052     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9053     # When not using gcc, we currently assume that we are using
9054     # Microsoft Visual C++.
9055     if test "$GCC" != yes; then
9056       with_gnu_ld=no
9057     fi
9058     ;;
9059   interix*)
9060     # we just hope/assume this is gcc and not c89 (= MSVC++)
9061     with_gnu_ld=yes
9062     ;;
9063   openbsd*)
9064     with_gnu_ld=no
9065     ;;
9066   esac
9067
9068   ld_shlibs=yes
9069
9070   # On some targets, GNU ld is compatible enough with the native linker
9071   # that we're better off using the native interface for both.
9072   lt_use_gnu_ld_interface=no
9073   if test "$with_gnu_ld" = yes; then
9074     case $host_os in
9075       aix*)
9076         # The AIX port of GNU ld has always aspired to compatibility
9077         # with the native linker.  However, as the warning in the GNU ld
9078         # block says, versions before 2.19.5* couldn't really create working
9079         # shared libraries, regardless of the interface used.
9080         case `$LD -v 2>&1` in
9081           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9082           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9083           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9084           *)
9085             lt_use_gnu_ld_interface=yes
9086             ;;
9087         esac
9088         ;;
9089       *)
9090         lt_use_gnu_ld_interface=yes
9091         ;;
9092     esac
9093   fi
9094
9095   if test "$lt_use_gnu_ld_interface" = yes; then
9096     # If archive_cmds runs LD, not CC, wlarc should be empty
9097     wlarc='${wl}'
9098
9099     # Set some defaults for GNU ld with shared library support. These
9100     # are reset later if shared libraries are not supported. Putting them
9101     # here allows them to be overridden if necessary.
9102     runpath_var=LD_RUN_PATH
9103     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9104     export_dynamic_flag_spec='${wl}--export-dynamic'
9105     # ancient GNU ld didn't support --whole-archive et. al.
9106     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9107       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9108     else
9109       whole_archive_flag_spec=
9110     fi
9111     supports_anon_versioning=no
9112     case `$LD -v 2>&1` in
9113       *GNU\ gold*) supports_anon_versioning=yes ;;
9114       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9115       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9116       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9117       *\ 2.11.*) ;; # other 2.11 versions
9118       *) supports_anon_versioning=yes ;;
9119     esac
9120
9121     # See if GNU ld supports shared libraries.
9122     case $host_os in
9123     aix[3-9]*)
9124       # On AIX/PPC, the GNU linker is very broken
9125       if test "$host_cpu" != ia64; then
9126         ld_shlibs=no
9127         cat <<_LT_EOF 1>&2
9128
9129 *** Warning: the GNU linker, at least up to release 2.19, is reported
9130 *** to be unable to reliably create shared libraries on AIX.
9131 *** Therefore, libtool is disabling shared libraries support.  If you
9132 *** really care for shared libraries, you may want to install binutils
9133 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9134 *** You will then need to restart the configuration process.
9135
9136 _LT_EOF
9137       fi
9138       ;;
9139
9140     amigaos*)
9141       case $host_cpu in
9142       powerpc)
9143             # see comment about AmigaOS4 .so support
9144             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9145             archive_expsym_cmds=''
9146         ;;
9147       m68k)
9148             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9149             hardcode_libdir_flag_spec='-L$libdir'
9150             hardcode_minus_L=yes
9151         ;;
9152       esac
9153       ;;
9154
9155     beos*)
9156       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9157         allow_undefined_flag=unsupported
9158         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9159         # support --undefined.  This deserves some investigation.  FIXME
9160         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9161       else
9162         ld_shlibs=no
9163       fi
9164       ;;
9165
9166     cygwin* | mingw* | pw32* | cegcc*)
9167       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9168       # as there is no search path for DLLs.
9169       hardcode_libdir_flag_spec='-L$libdir'
9170       export_dynamic_flag_spec='${wl}--export-all-symbols'
9171       allow_undefined_flag=unsupported
9172       always_export_symbols=no
9173       enable_shared_with_static_runtimes=yes
9174       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9175       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9176
9177       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9178         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9179         # If the export-symbols file already is a .def file (1st line
9180         # is EXPORTS), use it as is; otherwise, prepend...
9181         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9182           cp $export_symbols $output_objdir/$soname.def;
9183         else
9184           echo EXPORTS > $output_objdir/$soname.def;
9185           cat $export_symbols >> $output_objdir/$soname.def;
9186         fi~
9187         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9188       else
9189         ld_shlibs=no
9190       fi
9191       ;;
9192
9193     haiku*)
9194       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9195       link_all_deplibs=yes
9196       ;;
9197
9198     interix[3-9]*)
9199       hardcode_direct=no
9200       hardcode_shlibpath_var=no
9201       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9202       export_dynamic_flag_spec='${wl}-E'
9203       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9204       # Instead, shared libraries are loaded at an image base (0x10000000 by
9205       # default) and relocated if they conflict, which is a slow very memory
9206       # consuming and fragmenting process.  To avoid this, we pick a random,
9207       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9208       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9209       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9210       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9211       ;;
9212
9213     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9214       tmp_diet=no
9215       if test "$host_os" = linux-dietlibc; then
9216         case $cc_basename in
9217           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9218         esac
9219       fi
9220       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9221          && test "$tmp_diet" = no
9222       then
9223         tmp_addflag=' $pic_flag'
9224         tmp_sharedflag='-shared'
9225         case $cc_basename,$host_cpu in
9226         pgcc*)                          # Portland Group C compiler
9227           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9228           tmp_addflag=' $pic_flag'
9229           ;;
9230         pgf77* | pgf90* | pgf95* | pgfortran*)
9231                                         # Portland Group f77 and f90 compilers
9232           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9233           tmp_addflag=' $pic_flag -Mnomain' ;;
9234         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9235           tmp_addflag=' -i_dynamic' ;;
9236         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9237           tmp_addflag=' -i_dynamic -nofor_main' ;;
9238         ifc* | ifort*)                  # Intel Fortran compiler
9239           tmp_addflag=' -nofor_main' ;;
9240         lf95*)                          # Lahey Fortran 8.1
9241           whole_archive_flag_spec=
9242           tmp_sharedflag='--shared' ;;
9243         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9244           tmp_sharedflag='-qmkshrobj'
9245           tmp_addflag= ;;
9246         nvcc*)  # Cuda Compiler Driver 2.2
9247           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9248           compiler_needs_object=yes
9249           ;;
9250         esac
9251         case `$CC -V 2>&1 | sed 5q` in
9252         *Sun\ C*)                       # Sun C 5.9
9253           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9254           compiler_needs_object=yes
9255           tmp_sharedflag='-G' ;;
9256         *Sun\ F*)                       # Sun Fortran 8.3
9257           tmp_sharedflag='-G' ;;
9258         esac
9259         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260
9261         if test "x$supports_anon_versioning" = xyes; then
9262           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9263             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9264             echo "local: *; };" >> $output_objdir/$libname.ver~
9265             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9266         fi
9267
9268         case $cc_basename in
9269         xlf* | bgf* | bgxlf* | mpixlf*)
9270           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9271           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9272           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9273           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9274           if test "x$supports_anon_versioning" = xyes; then
9275             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9276               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9277               echo "local: *; };" >> $output_objdir/$libname.ver~
9278               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9279           fi
9280           ;;
9281         esac
9282       else
9283         ld_shlibs=no
9284       fi
9285       ;;
9286
9287     netbsd*)
9288       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9289         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9290         wlarc=
9291       else
9292         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9294       fi
9295       ;;
9296
9297     solaris*)
9298       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9299         ld_shlibs=no
9300         cat <<_LT_EOF 1>&2
9301
9302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9303 *** create shared libraries on Solaris systems.  Therefore, libtool
9304 *** is disabling shared libraries support.  We urge you to upgrade GNU
9305 *** binutils to release 2.9.1 or newer.  Another option is to modify
9306 *** your PATH or compiler configuration so that the native linker is
9307 *** used, and then restart.
9308
9309 _LT_EOF
9310       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9311         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9313       else
9314         ld_shlibs=no
9315       fi
9316       ;;
9317
9318     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9319       case `$LD -v 2>&1` in
9320         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9321         ld_shlibs=no
9322         cat <<_LT_EOF 1>&2
9323
9324 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9325 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9326 *** is disabling shared libraries support.  We urge you to upgrade GNU
9327 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9328 *** your PATH or compiler configuration so that the native linker is
9329 *** used, and then restart.
9330
9331 _LT_EOF
9332         ;;
9333         *)
9334           # For security reasons, it is highly recommended that you always
9335           # use absolute paths for naming shared libraries, and exclude the
9336           # DT_RUNPATH tag from executables and libraries.  But doing so
9337           # requires that you compile everything twice, which is a pain.
9338           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9339             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9340             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9341             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9342           else
9343             ld_shlibs=no
9344           fi
9345         ;;
9346       esac
9347       ;;
9348
9349     sunos4*)
9350       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9351       wlarc=
9352       hardcode_direct=yes
9353       hardcode_shlibpath_var=no
9354       ;;
9355
9356     *)
9357       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9358         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9359         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9360       else
9361         ld_shlibs=no
9362       fi
9363       ;;
9364     esac
9365
9366     if test "$ld_shlibs" = no; then
9367       runpath_var=
9368       hardcode_libdir_flag_spec=
9369       export_dynamic_flag_spec=
9370       whole_archive_flag_spec=
9371     fi
9372   else
9373     # PORTME fill in a description of your system's linker (not GNU ld)
9374     case $host_os in
9375     aix3*)
9376       allow_undefined_flag=unsupported
9377       always_export_symbols=yes
9378       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9379       # Note: this linker hardcodes the directories in LIBPATH if there
9380       # are no directories specified by -L.
9381       hardcode_minus_L=yes
9382       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9383         # Neither direct hardcoding nor static linking is supported with a
9384         # broken collect2.
9385         hardcode_direct=unsupported
9386       fi
9387       ;;
9388
9389     aix[4-9]*)
9390       if test "$host_cpu" = ia64; then
9391         # On IA64, the linker does run time linking by default, so we don't
9392         # have to do anything special.
9393         aix_use_runtimelinking=no
9394         exp_sym_flag='-Bexport'
9395         no_entry_flag=""
9396       else
9397         # If we're using GNU nm, then we don't want the "-C" option.
9398         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9399         # Also, AIX nm treats weak defined symbols like other global
9400         # defined symbols, whereas GNU nm marks them as "W".
9401         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9402           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9403         else
9404           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9405         fi
9406         aix_use_runtimelinking=no
9407
9408         # Test if we are trying to use run time linking or normal
9409         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9410         # need to do runtime linking.
9411         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9412           for ld_flag in $LDFLAGS; do
9413           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9414             aix_use_runtimelinking=yes
9415             break
9416           fi
9417           done
9418           ;;
9419         esac
9420
9421         exp_sym_flag='-bexport'
9422         no_entry_flag='-bnoentry'
9423       fi
9424
9425       # When large executables or shared objects are built, AIX ld can
9426       # have problems creating the table of contents.  If linking a library
9427       # or program results in "error TOC overflow" add -mminimal-toc to
9428       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9429       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9430
9431       archive_cmds=''
9432       hardcode_direct=yes
9433       hardcode_direct_absolute=yes
9434       hardcode_libdir_separator=':'
9435       link_all_deplibs=yes
9436       file_list_spec='${wl}-f,'
9437
9438       if test "$GCC" = yes; then
9439         case $host_os in aix4.[012]|aix4.[012].*)
9440         # We only want to do this on AIX 4.2 and lower, the check
9441         # below for broken collect2 doesn't work under 4.3+
9442           collect2name=`${CC} -print-prog-name=collect2`
9443           if test -f "$collect2name" &&
9444            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9445           then
9446           # We have reworked collect2
9447           :
9448           else
9449           # We have old collect2
9450           hardcode_direct=unsupported
9451           # It fails to find uninstalled libraries when the uninstalled
9452           # path is not listed in the libpath.  Setting hardcode_minus_L
9453           # to unsupported forces relinking
9454           hardcode_minus_L=yes
9455           hardcode_libdir_flag_spec='-L$libdir'
9456           hardcode_libdir_separator=
9457           fi
9458           ;;
9459         esac
9460         shared_flag='-shared'
9461         if test "$aix_use_runtimelinking" = yes; then
9462           shared_flag="$shared_flag "'${wl}-G'
9463         fi
9464       else
9465         # not using gcc
9466         if test "$host_cpu" = ia64; then
9467         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9468         # chokes on -Wl,-G. The following line is correct:
9469           shared_flag='-G'
9470         else
9471           if test "$aix_use_runtimelinking" = yes; then
9472             shared_flag='${wl}-G'
9473           else
9474             shared_flag='${wl}-bM:SRE'
9475           fi
9476         fi
9477       fi
9478
9479       export_dynamic_flag_spec='${wl}-bexpall'
9480       # It seems that -bexpall does not export symbols beginning with
9481       # underscore (_), so it is better to generate a list of symbols to export.
9482       always_export_symbols=yes
9483       if test "$aix_use_runtimelinking" = yes; then
9484         # Warning - without using the other runtime loading flags (-brtl),
9485         # -berok will link without error, but may produce a broken library.
9486         allow_undefined_flag='-berok'
9487         # Determine the default libpath from the value encoded in an
9488         # empty executable.
9489         if test "${lt_cv_aix_libpath+set}" = set; then
9490   aix_libpath=$lt_cv_aix_libpath
9491 else
9492   if ${lt_cv_aix_libpath_+:} false; then :
9493   $as_echo_n "(cached) " >&6
9494 else
9495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h.  */
9497
9498 int
9499 main ()
9500 {
9501
9502   ;
9503   return 0;
9504 }
9505 _ACEOF
9506 if ac_fn_c_try_link "$LINENO"; then :
9507
9508   lt_aix_libpath_sed='
9509       /Import File Strings/,/^$/ {
9510           /^0/ {
9511               s/^0  *\([^ ]*\) *$/\1/
9512               p
9513           }
9514       }'
9515   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9516   # Check for a 64-bit object if we didn't find anything.
9517   if test -z "$lt_cv_aix_libpath_"; then
9518     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9519   fi
9520 fi
9521 rm -f core conftest.err conftest.$ac_objext \
9522     conftest$ac_exeext conftest.$ac_ext
9523   if test -z "$lt_cv_aix_libpath_"; then
9524     lt_cv_aix_libpath_="/usr/lib:/lib"
9525   fi
9526
9527 fi
9528
9529   aix_libpath=$lt_cv_aix_libpath_
9530 fi
9531
9532         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9533         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9534       else
9535         if test "$host_cpu" = ia64; then
9536           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9537           allow_undefined_flag="-z nodefs"
9538           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9539         else
9540          # Determine the default libpath from the value encoded in an
9541          # empty executable.
9542          if test "${lt_cv_aix_libpath+set}" = set; then
9543   aix_libpath=$lt_cv_aix_libpath
9544 else
9545   if ${lt_cv_aix_libpath_+:} false; then :
9546   $as_echo_n "(cached) " >&6
9547 else
9548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h.  */
9550
9551 int
9552 main ()
9553 {
9554
9555   ;
9556   return 0;
9557 }
9558 _ACEOF
9559 if ac_fn_c_try_link "$LINENO"; then :
9560
9561   lt_aix_libpath_sed='
9562       /Import File Strings/,/^$/ {
9563           /^0/ {
9564               s/^0  *\([^ ]*\) *$/\1/
9565               p
9566           }
9567       }'
9568   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9569   # Check for a 64-bit object if we didn't find anything.
9570   if test -z "$lt_cv_aix_libpath_"; then
9571     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9572   fi
9573 fi
9574 rm -f core conftest.err conftest.$ac_objext \
9575     conftest$ac_exeext conftest.$ac_ext
9576   if test -z "$lt_cv_aix_libpath_"; then
9577     lt_cv_aix_libpath_="/usr/lib:/lib"
9578   fi
9579
9580 fi
9581
9582   aix_libpath=$lt_cv_aix_libpath_
9583 fi
9584
9585          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9586           # Warning - without using the other run time loading flags,
9587           # -berok will link without error, but may produce a broken library.
9588           no_undefined_flag=' ${wl}-bernotok'
9589           allow_undefined_flag=' ${wl}-berok'
9590           if test "$with_gnu_ld" = yes; then
9591             # We only use this code for GNU lds that support --whole-archive.
9592             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9593           else
9594             # Exported symbols can be pulled into shared objects from archives
9595             whole_archive_flag_spec='$convenience'
9596           fi
9597           archive_cmds_need_lc=yes
9598           # This is similar to how AIX traditionally builds its shared libraries.
9599           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9600         fi
9601       fi
9602       ;;
9603
9604     amigaos*)
9605       case $host_cpu in
9606       powerpc)
9607             # see comment about AmigaOS4 .so support
9608             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9609             archive_expsym_cmds=''
9610         ;;
9611       m68k)
9612             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9613             hardcode_libdir_flag_spec='-L$libdir'
9614             hardcode_minus_L=yes
9615         ;;
9616       esac
9617       ;;
9618
9619     bsdi[45]*)
9620       export_dynamic_flag_spec=-rdynamic
9621       ;;
9622
9623     cygwin* | mingw* | pw32* | cegcc*)
9624       # When not using gcc, we currently assume that we are using
9625       # Microsoft Visual C++.
9626       # hardcode_libdir_flag_spec is actually meaningless, as there is
9627       # no search path for DLLs.
9628       case $cc_basename in
9629       cl*)
9630         # Native MSVC
9631         hardcode_libdir_flag_spec=' '
9632         allow_undefined_flag=unsupported
9633         always_export_symbols=yes
9634         file_list_spec='@'
9635         # Tell ltmain to make .lib files, not .a files.
9636         libext=lib
9637         # Tell ltmain to make .dll files, not .so files.
9638         shrext_cmds=".dll"
9639         # FIXME: Setting linknames here is a bad hack.
9640         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9641         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9642             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9643           else
9644             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9645           fi~
9646           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9647           linknames='
9648         # The linker will not automatically build a static lib if we build a DLL.
9649         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9650         enable_shared_with_static_runtimes=yes
9651         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9652         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9653         # Don't use ranlib
9654         old_postinstall_cmds='chmod 644 $oldlib'
9655         postlink_cmds='lt_outputfile="@OUTPUT@"~
9656           lt_tool_outputfile="@TOOL_OUTPUT@"~
9657           case $lt_outputfile in
9658             *.exe|*.EXE) ;;
9659             *)
9660               lt_outputfile="$lt_outputfile.exe"
9661               lt_tool_outputfile="$lt_tool_outputfile.exe"
9662               ;;
9663           esac~
9664           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9665             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9666             $RM "$lt_outputfile.manifest";
9667           fi'
9668         ;;
9669       *)
9670         # Assume MSVC wrapper
9671         hardcode_libdir_flag_spec=' '
9672         allow_undefined_flag=unsupported
9673         # Tell ltmain to make .lib files, not .a files.
9674         libext=lib
9675         # Tell ltmain to make .dll files, not .so files.
9676         shrext_cmds=".dll"
9677         # FIXME: Setting linknames here is a bad hack.
9678         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9679         # The linker will automatically build a .lib file if we build a DLL.
9680         old_archive_from_new_cmds='true'
9681         # FIXME: Should let the user specify the lib program.
9682         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9683         enable_shared_with_static_runtimes=yes
9684         ;;
9685       esac
9686       ;;
9687
9688     darwin* | rhapsody*)
9689
9690
9691   archive_cmds_need_lc=no
9692   hardcode_direct=no
9693   hardcode_automatic=yes
9694   hardcode_shlibpath_var=unsupported
9695   if test "$lt_cv_ld_force_load" = "yes"; then
9696     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9697
9698   else
9699     whole_archive_flag_spec=''
9700   fi
9701   link_all_deplibs=yes
9702   allow_undefined_flag="$_lt_dar_allow_undefined"
9703   case $cc_basename in
9704      ifort*) _lt_dar_can_shared=yes ;;
9705      *) _lt_dar_can_shared=$GCC ;;
9706   esac
9707   if test "$_lt_dar_can_shared" = "yes"; then
9708     output_verbose_link_cmd=func_echo_all
9709     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9710     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9711     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9712     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9713
9714   else
9715   ld_shlibs=no
9716   fi
9717
9718       ;;
9719
9720     dgux*)
9721       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722       hardcode_libdir_flag_spec='-L$libdir'
9723       hardcode_shlibpath_var=no
9724       ;;
9725
9726     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9727     # support.  Future versions do this automatically, but an explicit c++rt0.o
9728     # does not break anything, and helps significantly (at the cost of a little
9729     # extra space).
9730     freebsd2.2*)
9731       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9732       hardcode_libdir_flag_spec='-R$libdir'
9733       hardcode_direct=yes
9734       hardcode_shlibpath_var=no
9735       ;;
9736
9737     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9738     freebsd2.*)
9739       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9740       hardcode_direct=yes
9741       hardcode_minus_L=yes
9742       hardcode_shlibpath_var=no
9743       ;;
9744
9745     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9746     freebsd* | dragonfly*)
9747       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9748       hardcode_libdir_flag_spec='-R$libdir'
9749       hardcode_direct=yes
9750       hardcode_shlibpath_var=no
9751       ;;
9752
9753     hpux9*)
9754       if test "$GCC" = yes; then
9755         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9756       else
9757         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9758       fi
9759       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9760       hardcode_libdir_separator=:
9761       hardcode_direct=yes
9762
9763       # hardcode_minus_L: Not really in the search PATH,
9764       # but as the default location of the library.
9765       hardcode_minus_L=yes
9766       export_dynamic_flag_spec='${wl}-E'
9767       ;;
9768
9769     hpux10*)
9770       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9771         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9772       else
9773         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9774       fi
9775       if test "$with_gnu_ld" = no; then
9776         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9777         hardcode_libdir_separator=:
9778         hardcode_direct=yes
9779         hardcode_direct_absolute=yes
9780         export_dynamic_flag_spec='${wl}-E'
9781         # hardcode_minus_L: Not really in the search PATH,
9782         # but as the default location of the library.
9783         hardcode_minus_L=yes
9784       fi
9785       ;;
9786
9787     hpux11*)
9788       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9789         case $host_cpu in
9790         hppa*64*)
9791           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9792           ;;
9793         ia64*)
9794           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9795           ;;
9796         *)
9797           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9798           ;;
9799         esac
9800       else
9801         case $host_cpu in
9802         hppa*64*)
9803           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9804           ;;
9805         ia64*)
9806           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9807           ;;
9808         *)
9809
9810           # Older versions of the 11.00 compiler do not understand -b yet
9811           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9812           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9813 $as_echo_n "checking if $CC understands -b... " >&6; }
9814 if ${lt_cv_prog_compiler__b+:} false; then :
9815   $as_echo_n "(cached) " >&6
9816 else
9817   lt_cv_prog_compiler__b=no
9818    save_LDFLAGS="$LDFLAGS"
9819    LDFLAGS="$LDFLAGS -b"
9820    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9821    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9822      # The linker can only warn and ignore the option if not recognized
9823      # So say no if there are warnings
9824      if test -s conftest.err; then
9825        # Append any errors to the config.log.
9826        cat conftest.err 1>&5
9827        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9828        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9829        if diff conftest.exp conftest.er2 >/dev/null; then
9830          lt_cv_prog_compiler__b=yes
9831        fi
9832      else
9833        lt_cv_prog_compiler__b=yes
9834      fi
9835    fi
9836    $RM -r conftest*
9837    LDFLAGS="$save_LDFLAGS"
9838
9839 fi
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9841 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9842
9843 if test x"$lt_cv_prog_compiler__b" = xyes; then
9844     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9845 else
9846     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9847 fi
9848
9849           ;;
9850         esac
9851       fi
9852       if test "$with_gnu_ld" = no; then
9853         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9854         hardcode_libdir_separator=:
9855
9856         case $host_cpu in
9857         hppa*64*|ia64*)
9858           hardcode_direct=no
9859           hardcode_shlibpath_var=no
9860           ;;
9861         *)
9862           hardcode_direct=yes
9863           hardcode_direct_absolute=yes
9864           export_dynamic_flag_spec='${wl}-E'
9865
9866           # hardcode_minus_L: Not really in the search PATH,
9867           # but as the default location of the library.
9868           hardcode_minus_L=yes
9869           ;;
9870         esac
9871       fi
9872       ;;
9873
9874     irix5* | irix6* | nonstopux*)
9875       if test "$GCC" = yes; then
9876         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9877         # Try to use the -exported_symbol ld option, if it does not
9878         # work, assume that -exports_file does not work either and
9879         # implicitly export all symbols.
9880         # This should be the same for all languages, so no per-tag cache variable.
9881         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9882 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9883 if ${lt_cv_irix_exported_symbol+:} false; then :
9884   $as_echo_n "(cached) " >&6
9885 else
9886   save_LDFLAGS="$LDFLAGS"
9887            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9888            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889 /* end confdefs.h.  */
9890 int foo (void) { return 0; }
9891 _ACEOF
9892 if ac_fn_c_try_link "$LINENO"; then :
9893   lt_cv_irix_exported_symbol=yes
9894 else
9895   lt_cv_irix_exported_symbol=no
9896 fi
9897 rm -f core conftest.err conftest.$ac_objext \
9898     conftest$ac_exeext conftest.$ac_ext
9899            LDFLAGS="$save_LDFLAGS"
9900 fi
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9902 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9903         if test "$lt_cv_irix_exported_symbol" = yes; then
9904           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9905         fi
9906       else
9907         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9908         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9909       fi
9910       archive_cmds_need_lc='no'
9911       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9912       hardcode_libdir_separator=:
9913       inherit_rpath=yes
9914       link_all_deplibs=yes
9915       ;;
9916
9917     netbsd*)
9918       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9919         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9920       else
9921         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9922       fi
9923       hardcode_libdir_flag_spec='-R$libdir'
9924       hardcode_direct=yes
9925       hardcode_shlibpath_var=no
9926       ;;
9927
9928     newsos6)
9929       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9930       hardcode_direct=yes
9931       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9932       hardcode_libdir_separator=:
9933       hardcode_shlibpath_var=no
9934       ;;
9935
9936     *nto* | *qnx*)
9937       ;;
9938
9939     openbsd*)
9940       if test -f /usr/libexec/ld.so; then
9941         hardcode_direct=yes
9942         hardcode_shlibpath_var=no
9943         hardcode_direct_absolute=yes
9944         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9945           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9946           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9947           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9948           export_dynamic_flag_spec='${wl}-E'
9949         else
9950           case $host_os in
9951            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9952              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9953              hardcode_libdir_flag_spec='-R$libdir'
9954              ;;
9955            *)
9956              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9957              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9958              ;;
9959           esac
9960         fi
9961       else
9962         ld_shlibs=no
9963       fi
9964       ;;
9965
9966     os2*)
9967       hardcode_libdir_flag_spec='-L$libdir'
9968       hardcode_minus_L=yes
9969       allow_undefined_flag=unsupported
9970       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9971       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9972       ;;
9973
9974     osf3*)
9975       if test "$GCC" = yes; then
9976         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9977         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9978       else
9979         allow_undefined_flag=' -expect_unresolved \*'
9980         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9981       fi
9982       archive_cmds_need_lc='no'
9983       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9984       hardcode_libdir_separator=:
9985       ;;
9986
9987     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9988       if test "$GCC" = yes; then
9989         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9990         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9991         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9992       else
9993         allow_undefined_flag=' -expect_unresolved \*'
9994         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9995         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9996         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9997
9998         # Both c and cxx compiler support -rpath directly
9999         hardcode_libdir_flag_spec='-rpath $libdir'
10000       fi
10001       archive_cmds_need_lc='no'
10002       hardcode_libdir_separator=:
10003       ;;
10004
10005     solaris*)
10006       no_undefined_flag=' -z defs'
10007       if test "$GCC" = yes; then
10008         wlarc='${wl}'
10009         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10010         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10011           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10012       else
10013         case `$CC -V 2>&1` in
10014         *"Compilers 5.0"*)
10015           wlarc=''
10016           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10017           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10018           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10019           ;;
10020         *)
10021           wlarc='${wl}'
10022           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10023           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10024           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10025           ;;
10026         esac
10027       fi
10028       hardcode_libdir_flag_spec='-R$libdir'
10029       hardcode_shlibpath_var=no
10030       case $host_os in
10031       solaris2.[0-5] | solaris2.[0-5].*) ;;
10032       *)
10033         # The compiler driver will combine and reorder linker options,
10034         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10035         # but is careful enough not to reorder.
10036         # Supported since Solaris 2.6 (maybe 2.5.1?)
10037         if test "$GCC" = yes; then
10038           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10039         else
10040           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10041         fi
10042         ;;
10043       esac
10044       link_all_deplibs=yes
10045       ;;
10046
10047     sunos4*)
10048       if test "x$host_vendor" = xsequent; then
10049         # Use $CC to link under sequent, because it throws in some extra .o
10050         # files that make .init and .fini sections work.
10051         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10052       else
10053         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10054       fi
10055       hardcode_libdir_flag_spec='-L$libdir'
10056       hardcode_direct=yes
10057       hardcode_minus_L=yes
10058       hardcode_shlibpath_var=no
10059       ;;
10060
10061     sysv4)
10062       case $host_vendor in
10063         sni)
10064           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10065           hardcode_direct=yes # is this really true???
10066         ;;
10067         siemens)
10068           ## LD is ld it makes a PLAMLIB
10069           ## CC just makes a GrossModule.
10070           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10071           reload_cmds='$CC -r -o $output$reload_objs'
10072           hardcode_direct=no
10073         ;;
10074         motorola)
10075           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10076           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10077         ;;
10078       esac
10079       runpath_var='LD_RUN_PATH'
10080       hardcode_shlibpath_var=no
10081       ;;
10082
10083     sysv4.3*)
10084       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10085       hardcode_shlibpath_var=no
10086       export_dynamic_flag_spec='-Bexport'
10087       ;;
10088
10089     sysv4*MP*)
10090       if test -d /usr/nec; then
10091         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092         hardcode_shlibpath_var=no
10093         runpath_var=LD_RUN_PATH
10094         hardcode_runpath_var=yes
10095         ld_shlibs=yes
10096       fi
10097       ;;
10098
10099     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10100       no_undefined_flag='${wl}-z,text'
10101       archive_cmds_need_lc=no
10102       hardcode_shlibpath_var=no
10103       runpath_var='LD_RUN_PATH'
10104
10105       if test "$GCC" = yes; then
10106         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10108       else
10109         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10110         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10111       fi
10112       ;;
10113
10114     sysv5* | sco3.2v5* | sco5v6*)
10115       # Note: We can NOT use -z defs as we might desire, because we do not
10116       # link with -lc, and that would cause any symbols used from libc to
10117       # always be unresolved, which means just about no library would
10118       # ever link correctly.  If we're not using GNU ld we use -z text
10119       # though, which does catch some bad symbols but isn't as heavy-handed
10120       # as -z defs.
10121       no_undefined_flag='${wl}-z,text'
10122       allow_undefined_flag='${wl}-z,nodefs'
10123       archive_cmds_need_lc=no
10124       hardcode_shlibpath_var=no
10125       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10126       hardcode_libdir_separator=':'
10127       link_all_deplibs=yes
10128       export_dynamic_flag_spec='${wl}-Bexport'
10129       runpath_var='LD_RUN_PATH'
10130
10131       if test "$GCC" = yes; then
10132         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10134       else
10135         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10136         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10137       fi
10138       ;;
10139
10140     uts4*)
10141       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10142       hardcode_libdir_flag_spec='-L$libdir'
10143       hardcode_shlibpath_var=no
10144       ;;
10145
10146     *)
10147       ld_shlibs=no
10148       ;;
10149     esac
10150
10151     if test x$host_vendor = xsni; then
10152       case $host in
10153       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10154         export_dynamic_flag_spec='${wl}-Blargedynsym'
10155         ;;
10156       esac
10157     fi
10158   fi
10159
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10161 $as_echo "$ld_shlibs" >&6; }
10162 test "$ld_shlibs" = no && can_build_shared=no
10163
10164 with_gnu_ld=$with_gnu_ld
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180 #
10181 # Do we need to explicitly link libc?
10182 #
10183 case "x$archive_cmds_need_lc" in
10184 x|xyes)
10185   # Assume -lc should be added
10186   archive_cmds_need_lc=yes
10187
10188   if test "$enable_shared" = yes && test "$GCC" = yes; then
10189     case $archive_cmds in
10190     *'~'*)
10191       # FIXME: we may have to deal with multi-command sequences.
10192       ;;
10193     '$CC '*)
10194       # Test whether the compiler implicitly links with -lc since on some
10195       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10196       # to ld, don't add -lc before -lgcc.
10197       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10198 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10199 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10200   $as_echo_n "(cached) " >&6
10201 else
10202   $RM conftest*
10203         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10204
10205         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10206   (eval $ac_compile) 2>&5
10207   ac_status=$?
10208   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10209   test $ac_status = 0; } 2>conftest.err; then
10210           soname=conftest
10211           lib=conftest
10212           libobjs=conftest.$ac_objext
10213           deplibs=
10214           wl=$lt_prog_compiler_wl
10215           pic_flag=$lt_prog_compiler_pic
10216           compiler_flags=-v
10217           linker_flags=-v
10218           verstring=
10219           output_objdir=.
10220           libname=conftest
10221           lt_save_allow_undefined_flag=$allow_undefined_flag
10222           allow_undefined_flag=
10223           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10224   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10225   ac_status=$?
10226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10227   test $ac_status = 0; }
10228           then
10229             lt_cv_archive_cmds_need_lc=no
10230           else
10231             lt_cv_archive_cmds_need_lc=yes
10232           fi
10233           allow_undefined_flag=$lt_save_allow_undefined_flag
10234         else
10235           cat conftest.err 1>&5
10236         fi
10237         $RM conftest*
10238
10239 fi
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10241 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10242       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10243       ;;
10244     esac
10245   fi
10246   ;;
10247 esac
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10401 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10402
10403 if test "$GCC" = yes; then
10404   case $host_os in
10405     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10406     *) lt_awk_arg="/^libraries:/" ;;
10407   esac
10408   case $host_os in
10409     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10410     *) lt_sed_strip_eq="s,=/,/,g" ;;
10411   esac
10412   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10413   case $lt_search_path_spec in
10414   *\;*)
10415     # if the path contains ";" then we assume it to be the separator
10416     # otherwise default to the standard path separator (i.e. ":") - it is
10417     # assumed that no part of a normal pathname contains ";" but that should
10418     # okay in the real world where ";" in dirpaths is itself problematic.
10419     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10420     ;;
10421   *)
10422     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10423     ;;
10424   esac
10425   # Ok, now we have the path, separated by spaces, we can step through it
10426   # and add multilib dir if necessary.
10427   lt_tmp_lt_search_path_spec=
10428   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10429   for lt_sys_path in $lt_search_path_spec; do
10430     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10431       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10432     else
10433       test -d "$lt_sys_path" && \
10434         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10435     fi
10436   done
10437   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10438 BEGIN {RS=" "; FS="/|\n";} {
10439   lt_foo="";
10440   lt_count=0;
10441   for (lt_i = NF; lt_i > 0; lt_i--) {
10442     if ($lt_i != "" && $lt_i != ".") {
10443       if ($lt_i == "..") {
10444         lt_count++;
10445       } else {
10446         if (lt_count == 0) {
10447           lt_foo="/" $lt_i lt_foo;
10448         } else {
10449           lt_count--;
10450         }
10451       }
10452     }
10453   }
10454   if (lt_foo != "") { lt_freq[lt_foo]++; }
10455   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10456 }'`
10457   # AWK program above erroneously prepends '/' to C:/dos/paths
10458   # for these hosts.
10459   case $host_os in
10460     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10461       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10462   esac
10463   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10464 else
10465   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10466 fi
10467 library_names_spec=
10468 libname_spec='lib$name'
10469 soname_spec=
10470 shrext_cmds=".so"
10471 postinstall_cmds=
10472 postuninstall_cmds=
10473 finish_cmds=
10474 finish_eval=
10475 shlibpath_var=
10476 shlibpath_overrides_runpath=unknown
10477 version_type=none
10478 dynamic_linker="$host_os ld.so"
10479 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10480 need_lib_prefix=unknown
10481 hardcode_into_libs=no
10482
10483 # when you set need_version to no, make sure it does not cause -set_version
10484 # flags to be left without arguments
10485 need_version=unknown
10486
10487 case $host_os in
10488 aix3*)
10489   version_type=linux # correct to gnu/linux during the next big refactor
10490   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10491   shlibpath_var=LIBPATH
10492
10493   # AIX 3 has no versioning support, so we append a major version to the name.
10494   soname_spec='${libname}${release}${shared_ext}$major'
10495   ;;
10496
10497 aix[4-9]*)
10498   version_type=linux # correct to gnu/linux during the next big refactor
10499   need_lib_prefix=no
10500   need_version=no
10501   hardcode_into_libs=yes
10502   if test "$host_cpu" = ia64; then
10503     # AIX 5 supports IA64
10504     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10505     shlibpath_var=LD_LIBRARY_PATH
10506   else
10507     # With GCC up to 2.95.x, collect2 would create an import file
10508     # for dependence libraries.  The import file would start with
10509     # the line `#! .'.  This would cause the generated library to
10510     # depend on `.', always an invalid library.  This was fixed in
10511     # development snapshots of GCC prior to 3.0.
10512     case $host_os in
10513       aix4 | aix4.[01] | aix4.[01].*)
10514       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10515            echo ' yes '
10516            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10517         :
10518       else
10519         can_build_shared=no
10520       fi
10521       ;;
10522     esac
10523     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10524     # soname into executable. Probably we can add versioning support to
10525     # collect2, so additional links can be useful in future.
10526     if test "$aix_use_runtimelinking" = yes; then
10527       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10528       # instead of lib<name>.a to let people know that these are not
10529       # typical AIX shared libraries.
10530       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531     else
10532       # We preserve .a as extension for shared libraries through AIX4.2
10533       # and later when we are not doing run time linking.
10534       library_names_spec='${libname}${release}.a $libname.a'
10535       soname_spec='${libname}${release}${shared_ext}$major'
10536     fi
10537     shlibpath_var=LIBPATH
10538   fi
10539   ;;
10540
10541 amigaos*)
10542   case $host_cpu in
10543   powerpc)
10544     # Since July 2007 AmigaOS4 officially supports .so libraries.
10545     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10546     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10547     ;;
10548   m68k)
10549     library_names_spec='$libname.ixlibrary $libname.a'
10550     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10551     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10552     ;;
10553   esac
10554   ;;
10555
10556 beos*)
10557   library_names_spec='${libname}${shared_ext}'
10558   dynamic_linker="$host_os ld.so"
10559   shlibpath_var=LIBRARY_PATH
10560   ;;
10561
10562 bsdi[45]*)
10563   version_type=linux # correct to gnu/linux during the next big refactor
10564   need_version=no
10565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566   soname_spec='${libname}${release}${shared_ext}$major'
10567   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10568   shlibpath_var=LD_LIBRARY_PATH
10569   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10570   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10571   # the default ld.so.conf also contains /usr/contrib/lib and
10572   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10573   # libtool to hard-code these into programs
10574   ;;
10575
10576 cygwin* | mingw* | pw32* | cegcc*)
10577   version_type=windows
10578   shrext_cmds=".dll"
10579   need_version=no
10580   need_lib_prefix=no
10581
10582   case $GCC,$cc_basename in
10583   yes,*)
10584     # gcc
10585     library_names_spec='$libname.dll.a'
10586     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10587     postinstall_cmds='base_file=`basename \${file}`~
10588       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10589       dldir=$destdir/`dirname \$dlpath`~
10590       test -d \$dldir || mkdir -p \$dldir~
10591       $install_prog $dir/$dlname \$dldir/$dlname~
10592       chmod a+x \$dldir/$dlname~
10593       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10594         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10595       fi'
10596     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10597       dlpath=$dir/\$dldll~
10598        $RM \$dlpath'
10599     shlibpath_overrides_runpath=yes
10600
10601     case $host_os in
10602     cygwin*)
10603       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10604       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10605
10606       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10607       ;;
10608     mingw* | cegcc*)
10609       # MinGW DLLs use traditional 'lib' prefix
10610       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10611       ;;
10612     pw32*)
10613       # pw32 DLLs use 'pw' prefix rather than 'lib'
10614       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10615       ;;
10616     esac
10617     dynamic_linker='Win32 ld.exe'
10618     ;;
10619
10620   *,cl*)
10621     # Native MSVC
10622     libname_spec='$name'
10623     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10624     library_names_spec='${libname}.dll.lib'
10625
10626     case $build_os in
10627     mingw*)
10628       sys_lib_search_path_spec=
10629       lt_save_ifs=$IFS
10630       IFS=';'
10631       for lt_path in $LIB
10632       do
10633         IFS=$lt_save_ifs
10634         # Let DOS variable expansion print the short 8.3 style file name.
10635         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10636         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10637       done
10638       IFS=$lt_save_ifs
10639       # Convert to MSYS style.
10640       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10641       ;;
10642     cygwin*)
10643       # Convert to unix form, then to dos form, then back to unix form
10644       # but this time dos style (no spaces!) so that the unix form looks
10645       # like /cygdrive/c/PROGRA~1:/cygdr...
10646       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10647       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10648       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10649       ;;
10650     *)
10651       sys_lib_search_path_spec="$LIB"
10652       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10653         # It is most probably a Windows format PATH.
10654         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10655       else
10656         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10657       fi
10658       # FIXME: find the short name or the path components, as spaces are
10659       # common. (e.g. "Program Files" -> "PROGRA~1")
10660       ;;
10661     esac
10662
10663     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10664     postinstall_cmds='base_file=`basename \${file}`~
10665       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10666       dldir=$destdir/`dirname \$dlpath`~
10667       test -d \$dldir || mkdir -p \$dldir~
10668       $install_prog $dir/$dlname \$dldir/$dlname'
10669     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10670       dlpath=$dir/\$dldll~
10671        $RM \$dlpath'
10672     shlibpath_overrides_runpath=yes
10673     dynamic_linker='Win32 link.exe'
10674     ;;
10675
10676   *)
10677     # Assume MSVC wrapper
10678     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10679     dynamic_linker='Win32 ld.exe'
10680     ;;
10681   esac
10682   # FIXME: first we should search . and the directory the executable is in
10683   shlibpath_var=PATH
10684   ;;
10685
10686 darwin* | rhapsody*)
10687   dynamic_linker="$host_os dyld"
10688   version_type=darwin
10689   need_lib_prefix=no
10690   need_version=no
10691   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10692   soname_spec='${libname}${release}${major}$shared_ext'
10693   shlibpath_overrides_runpath=yes
10694   shlibpath_var=DYLD_LIBRARY_PATH
10695   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10696
10697   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10698   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10699   ;;
10700
10701 dgux*)
10702   version_type=linux # correct to gnu/linux during the next big refactor
10703   need_lib_prefix=no
10704   need_version=no
10705   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10706   soname_spec='${libname}${release}${shared_ext}$major'
10707   shlibpath_var=LD_LIBRARY_PATH
10708   ;;
10709
10710 freebsd* | dragonfly*)
10711   # DragonFly does not have aout.  When/if they implement a new
10712   # versioning mechanism, adjust this.
10713   if test -x /usr/bin/objformat; then
10714     objformat=`/usr/bin/objformat`
10715   else
10716     case $host_os in
10717     freebsd[23].*) objformat=aout ;;
10718     *) objformat=elf ;;
10719     esac
10720   fi
10721   version_type=freebsd-$objformat
10722   case $version_type in
10723     freebsd-elf*)
10724       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10725       need_version=no
10726       need_lib_prefix=no
10727       ;;
10728     freebsd-*)
10729       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10730       need_version=yes
10731       ;;
10732   esac
10733   shlibpath_var=LD_LIBRARY_PATH
10734   case $host_os in
10735   freebsd2.*)
10736     shlibpath_overrides_runpath=yes
10737     ;;
10738   freebsd3.[01]* | freebsdelf3.[01]*)
10739     shlibpath_overrides_runpath=yes
10740     hardcode_into_libs=yes
10741     ;;
10742   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10743   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10744     shlibpath_overrides_runpath=no
10745     hardcode_into_libs=yes
10746     ;;
10747   *) # from 4.6 on, and DragonFly
10748     shlibpath_overrides_runpath=yes
10749     hardcode_into_libs=yes
10750     ;;
10751   esac
10752   ;;
10753
10754 gnu*)
10755   version_type=linux # correct to gnu/linux during the next big refactor
10756   need_lib_prefix=no
10757   need_version=no
10758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10759   soname_spec='${libname}${release}${shared_ext}$major'
10760   shlibpath_var=LD_LIBRARY_PATH
10761   shlibpath_overrides_runpath=no
10762   hardcode_into_libs=yes
10763   ;;
10764
10765 haiku*)
10766   version_type=linux # correct to gnu/linux during the next big refactor
10767   need_lib_prefix=no
10768   need_version=no
10769   dynamic_linker="$host_os runtime_loader"
10770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10771   soname_spec='${libname}${release}${shared_ext}$major'
10772   shlibpath_var=LIBRARY_PATH
10773   shlibpath_overrides_runpath=yes
10774   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10775   hardcode_into_libs=yes
10776   ;;
10777
10778 hpux9* | hpux10* | hpux11*)
10779   # Give a soname corresponding to the major version so that dld.sl refuses to
10780   # link against other versions.
10781   version_type=sunos
10782   need_lib_prefix=no
10783   need_version=no
10784   case $host_cpu in
10785   ia64*)
10786     shrext_cmds='.so'
10787     hardcode_into_libs=yes
10788     dynamic_linker="$host_os dld.so"
10789     shlibpath_var=LD_LIBRARY_PATH
10790     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10791     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792     soname_spec='${libname}${release}${shared_ext}$major'
10793     if test "X$HPUX_IA64_MODE" = X32; then
10794       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10795     else
10796       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10797     fi
10798     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10799     ;;
10800   hppa*64*)
10801     shrext_cmds='.sl'
10802     hardcode_into_libs=yes
10803     dynamic_linker="$host_os dld.sl"
10804     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10805     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10806     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10807     soname_spec='${libname}${release}${shared_ext}$major'
10808     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10809     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10810     ;;
10811   *)
10812     shrext_cmds='.sl'
10813     dynamic_linker="$host_os dld.sl"
10814     shlibpath_var=SHLIB_PATH
10815     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10816     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817     soname_spec='${libname}${release}${shared_ext}$major'
10818     ;;
10819   esac
10820   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10821   postinstall_cmds='chmod 555 $lib'
10822   # or fails outright, so override atomically:
10823   install_override_mode=555
10824   ;;
10825
10826 interix[3-9]*)
10827   version_type=linux # correct to gnu/linux during the next big refactor
10828   need_lib_prefix=no
10829   need_version=no
10830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10831   soname_spec='${libname}${release}${shared_ext}$major'
10832   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10833   shlibpath_var=LD_LIBRARY_PATH
10834   shlibpath_overrides_runpath=no
10835   hardcode_into_libs=yes
10836   ;;
10837
10838 irix5* | irix6* | nonstopux*)
10839   case $host_os in
10840     nonstopux*) version_type=nonstopux ;;
10841     *)
10842         if test "$lt_cv_prog_gnu_ld" = yes; then
10843                 version_type=linux # correct to gnu/linux during the next big refactor
10844         else
10845                 version_type=irix
10846         fi ;;
10847   esac
10848   need_lib_prefix=no
10849   need_version=no
10850   soname_spec='${libname}${release}${shared_ext}$major'
10851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10852   case $host_os in
10853   irix5* | nonstopux*)
10854     libsuff= shlibsuff=
10855     ;;
10856   *)
10857     case $LD in # libtool.m4 will add one of these switches to LD
10858     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10859       libsuff= shlibsuff= libmagic=32-bit;;
10860     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10861       libsuff=32 shlibsuff=N32 libmagic=N32;;
10862     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10863       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10864     *) libsuff= shlibsuff= libmagic=never-match;;
10865     esac
10866     ;;
10867   esac
10868   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10869   shlibpath_overrides_runpath=no
10870   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10871   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10872   hardcode_into_libs=yes
10873   ;;
10874
10875 # No shared lib support for Linux oldld, aout, or coff.
10876 linux*oldld* | linux*aout* | linux*coff*)
10877   dynamic_linker=no
10878   ;;
10879
10880 # This must be glibc/ELF.
10881 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10882   version_type=linux # correct to gnu/linux during the next big refactor
10883   need_lib_prefix=no
10884   need_version=no
10885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886   soname_spec='${libname}${release}${shared_ext}$major'
10887   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10888   shlibpath_var=LD_LIBRARY_PATH
10889   shlibpath_overrides_runpath=no
10890
10891   # Some binutils ld are patched to set DT_RUNPATH
10892   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10893   $as_echo_n "(cached) " >&6
10894 else
10895   lt_cv_shlibpath_overrides_runpath=no
10896     save_LDFLAGS=$LDFLAGS
10897     save_libdir=$libdir
10898     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10899          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10900     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h.  */
10902
10903 int
10904 main ()
10905 {
10906
10907   ;
10908   return 0;
10909 }
10910 _ACEOF
10911 if ac_fn_c_try_link "$LINENO"; then :
10912   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10913   lt_cv_shlibpath_overrides_runpath=yes
10914 fi
10915 fi
10916 rm -f core conftest.err conftest.$ac_objext \
10917     conftest$ac_exeext conftest.$ac_ext
10918     LDFLAGS=$save_LDFLAGS
10919     libdir=$save_libdir
10920
10921 fi
10922
10923   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10924
10925   # This implies no fast_install, which is unacceptable.
10926   # Some rework will be needed to allow for fast_install
10927   # before this can be enabled.
10928   hardcode_into_libs=yes
10929
10930   # Append ld.so.conf contents to the search path
10931   if test -f /etc/ld.so.conf; then
10932     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10933     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10934   fi
10935
10936   # We used to test for /lib/ld.so.1 and disable shared libraries on
10937   # powerpc, because MkLinux only supported shared libraries with the
10938   # GNU dynamic linker.  Since this was broken with cross compilers,
10939   # most powerpc-linux boxes support dynamic linking these days and
10940   # people can always --disable-shared, the test was removed, and we
10941   # assume the GNU/Linux dynamic linker is in use.
10942   dynamic_linker='GNU/Linux ld.so'
10943   ;;
10944
10945 netbsd*)
10946   version_type=sunos
10947   need_lib_prefix=no
10948   need_version=no
10949   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10950     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10951     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10952     dynamic_linker='NetBSD (a.out) ld.so'
10953   else
10954     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10955     soname_spec='${libname}${release}${shared_ext}$major'
10956     dynamic_linker='NetBSD ld.elf_so'
10957   fi
10958   shlibpath_var=LD_LIBRARY_PATH
10959   shlibpath_overrides_runpath=yes
10960   hardcode_into_libs=yes
10961   ;;
10962
10963 newsos6)
10964   version_type=linux # correct to gnu/linux during the next big refactor
10965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966   shlibpath_var=LD_LIBRARY_PATH
10967   shlibpath_overrides_runpath=yes
10968   ;;
10969
10970 *nto* | *qnx*)
10971   version_type=qnx
10972   need_lib_prefix=no
10973   need_version=no
10974   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975   soname_spec='${libname}${release}${shared_ext}$major'
10976   shlibpath_var=LD_LIBRARY_PATH
10977   shlibpath_overrides_runpath=no
10978   hardcode_into_libs=yes
10979   dynamic_linker='ldqnx.so'
10980   ;;
10981
10982 openbsd*)
10983   version_type=sunos
10984   sys_lib_dlsearch_path_spec="/usr/lib"
10985   need_lib_prefix=no
10986   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10987   case $host_os in
10988     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10989     *)                          need_version=no  ;;
10990   esac
10991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10992   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10993   shlibpath_var=LD_LIBRARY_PATH
10994   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10995     case $host_os in
10996       openbsd2.[89] | openbsd2.[89].*)
10997         shlibpath_overrides_runpath=no
10998         ;;
10999       *)
11000         shlibpath_overrides_runpath=yes
11001         ;;
11002       esac
11003   else
11004     shlibpath_overrides_runpath=yes
11005   fi
11006   ;;
11007
11008 os2*)
11009   libname_spec='$name'
11010   shrext_cmds=".dll"
11011   need_lib_prefix=no
11012   library_names_spec='$libname${shared_ext} $libname.a'
11013   dynamic_linker='OS/2 ld.exe'
11014   shlibpath_var=LIBPATH
11015   ;;
11016
11017 osf3* | osf4* | osf5*)
11018   version_type=osf
11019   need_lib_prefix=no
11020   need_version=no
11021   soname_spec='${libname}${release}${shared_ext}$major'
11022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023   shlibpath_var=LD_LIBRARY_PATH
11024   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11025   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11026   ;;
11027
11028 rdos*)
11029   dynamic_linker=no
11030   ;;
11031
11032 solaris*)
11033   version_type=linux # correct to gnu/linux during the next big refactor
11034   need_lib_prefix=no
11035   need_version=no
11036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037   soname_spec='${libname}${release}${shared_ext}$major'
11038   shlibpath_var=LD_LIBRARY_PATH
11039   shlibpath_overrides_runpath=yes
11040   hardcode_into_libs=yes
11041   # ldd complains unless libraries are executable
11042   postinstall_cmds='chmod +x $lib'
11043   ;;
11044
11045 sunos4*)
11046   version_type=sunos
11047   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11048   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11049   shlibpath_var=LD_LIBRARY_PATH
11050   shlibpath_overrides_runpath=yes
11051   if test "$with_gnu_ld" = yes; then
11052     need_lib_prefix=no
11053   fi
11054   need_version=yes
11055   ;;
11056
11057 sysv4 | sysv4.3*)
11058   version_type=linux # correct to gnu/linux during the next big refactor
11059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11060   soname_spec='${libname}${release}${shared_ext}$major'
11061   shlibpath_var=LD_LIBRARY_PATH
11062   case $host_vendor in
11063     sni)
11064       shlibpath_overrides_runpath=no
11065       need_lib_prefix=no
11066       runpath_var=LD_RUN_PATH
11067       ;;
11068     siemens)
11069       need_lib_prefix=no
11070       ;;
11071     motorola)
11072       need_lib_prefix=no
11073       need_version=no
11074       shlibpath_overrides_runpath=no
11075       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11076       ;;
11077   esac
11078   ;;
11079
11080 sysv4*MP*)
11081   if test -d /usr/nec ;then
11082     version_type=linux # correct to gnu/linux during the next big refactor
11083     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11084     soname_spec='$libname${shared_ext}.$major'
11085     shlibpath_var=LD_LIBRARY_PATH
11086   fi
11087   ;;
11088
11089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11090   version_type=freebsd-elf
11091   need_lib_prefix=no
11092   need_version=no
11093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11094   soname_spec='${libname}${release}${shared_ext}$major'
11095   shlibpath_var=LD_LIBRARY_PATH
11096   shlibpath_overrides_runpath=yes
11097   hardcode_into_libs=yes
11098   if test "$with_gnu_ld" = yes; then
11099     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11100   else
11101     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11102     case $host_os in
11103       sco3.2v5*)
11104         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11105         ;;
11106     esac
11107   fi
11108   sys_lib_dlsearch_path_spec='/usr/lib'
11109   ;;
11110
11111 tpf*)
11112   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11113   version_type=linux # correct to gnu/linux during the next big refactor
11114   need_lib_prefix=no
11115   need_version=no
11116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11117   shlibpath_var=LD_LIBRARY_PATH
11118   shlibpath_overrides_runpath=no
11119   hardcode_into_libs=yes
11120   ;;
11121
11122 uts4*)
11123   version_type=linux # correct to gnu/linux during the next big refactor
11124   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125   soname_spec='${libname}${release}${shared_ext}$major'
11126   shlibpath_var=LD_LIBRARY_PATH
11127   ;;
11128
11129 *)
11130   dynamic_linker=no
11131   ;;
11132 esac
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11134 $as_echo "$dynamic_linker" >&6; }
11135 test "$dynamic_linker" = no && can_build_shared=no
11136
11137 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11138 if test "$GCC" = yes; then
11139   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11140 fi
11141
11142 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11143   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11144 fi
11145 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11146   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11147 fi
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11241 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11242 hardcode_action=
11243 if test -n "$hardcode_libdir_flag_spec" ||
11244    test -n "$runpath_var" ||
11245    test "X$hardcode_automatic" = "Xyes" ; then
11246
11247   # We can hardcode non-existent directories.
11248   if test "$hardcode_direct" != no &&
11249      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11250      # have to relink, otherwise we might link with an installed library
11251      # when we should be linking with a yet-to-be-installed one
11252      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11253      test "$hardcode_minus_L" != no; then
11254     # Linking always hardcodes the temporary library directory.
11255     hardcode_action=relink
11256   else
11257     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11258     hardcode_action=immediate
11259   fi
11260 else
11261   # We cannot hardcode anything, or else we can only hardcode existing
11262   # directories.
11263   hardcode_action=unsupported
11264 fi
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11266 $as_echo "$hardcode_action" >&6; }
11267
11268 if test "$hardcode_action" = relink ||
11269    test "$inherit_rpath" = yes; then
11270   # Fast installation is not supported
11271   enable_fast_install=no
11272 elif test "$shlibpath_overrides_runpath" = yes ||
11273      test "$enable_shared" = no; then
11274   # Fast installation is not necessary
11275   enable_fast_install=needless
11276 fi
11277
11278
11279
11280
11281
11282
11283   if test "x$enable_dlopen" != xyes; then
11284   enable_dlopen=unknown
11285   enable_dlopen_self=unknown
11286   enable_dlopen_self_static=unknown
11287 else
11288   lt_cv_dlopen=no
11289   lt_cv_dlopen_libs=
11290
11291   case $host_os in
11292   beos*)
11293     lt_cv_dlopen="load_add_on"
11294     lt_cv_dlopen_libs=
11295     lt_cv_dlopen_self=yes
11296     ;;
11297
11298   mingw* | pw32* | cegcc*)
11299     lt_cv_dlopen="LoadLibrary"
11300     lt_cv_dlopen_libs=
11301     ;;
11302
11303   cygwin*)
11304     lt_cv_dlopen="dlopen"
11305     lt_cv_dlopen_libs=
11306     ;;
11307
11308   darwin*)
11309   # if libdl is installed we need to link against it
11310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11311 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11312 if ${ac_cv_lib_dl_dlopen+:} false; then :
11313   $as_echo_n "(cached) " >&6
11314 else
11315   ac_check_lib_save_LIBS=$LIBS
11316 LIBS="-ldl  $LIBS"
11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h.  */
11319
11320 /* Override any GCC internal prototype to avoid an error.
11321    Use char because int might match the return type of a GCC
11322    builtin and then its argument prototype would still apply.  */
11323 #ifdef __cplusplus
11324 extern "C"
11325 #endif
11326 char dlopen ();
11327 int
11328 main ()
11329 {
11330 return dlopen ();
11331   ;
11332   return 0;
11333 }
11334 _ACEOF
11335 if ac_fn_c_try_link "$LINENO"; then :
11336   ac_cv_lib_dl_dlopen=yes
11337 else
11338   ac_cv_lib_dl_dlopen=no
11339 fi
11340 rm -f core conftest.err conftest.$ac_objext \
11341     conftest$ac_exeext conftest.$ac_ext
11342 LIBS=$ac_check_lib_save_LIBS
11343 fi
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11345 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11346 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11347   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11348 else
11349
11350     lt_cv_dlopen="dyld"
11351     lt_cv_dlopen_libs=
11352     lt_cv_dlopen_self=yes
11353
11354 fi
11355
11356     ;;
11357
11358   *)
11359     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11360 if test "x$ac_cv_func_shl_load" = xyes; then :
11361   lt_cv_dlopen="shl_load"
11362 else
11363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11364 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11365 if ${ac_cv_lib_dld_shl_load+:} false; then :
11366   $as_echo_n "(cached) " >&6
11367 else
11368   ac_check_lib_save_LIBS=$LIBS
11369 LIBS="-ldld  $LIBS"
11370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h.  */
11372
11373 /* Override any GCC internal prototype to avoid an error.
11374    Use char because int might match the return type of a GCC
11375    builtin and then its argument prototype would still apply.  */
11376 #ifdef __cplusplus
11377 extern "C"
11378 #endif
11379 char shl_load ();
11380 int
11381 main ()
11382 {
11383 return shl_load ();
11384   ;
11385   return 0;
11386 }
11387 _ACEOF
11388 if ac_fn_c_try_link "$LINENO"; then :
11389   ac_cv_lib_dld_shl_load=yes
11390 else
11391   ac_cv_lib_dld_shl_load=no
11392 fi
11393 rm -f core conftest.err conftest.$ac_objext \
11394     conftest$ac_exeext conftest.$ac_ext
11395 LIBS=$ac_check_lib_save_LIBS
11396 fi
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11398 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11399 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11400   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11401 else
11402   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11403 if test "x$ac_cv_func_dlopen" = xyes; then :
11404   lt_cv_dlopen="dlopen"
11405 else
11406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11407 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11408 if ${ac_cv_lib_dl_dlopen+:} false; then :
11409   $as_echo_n "(cached) " >&6
11410 else
11411   ac_check_lib_save_LIBS=$LIBS
11412 LIBS="-ldl  $LIBS"
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h.  */
11415
11416 /* Override any GCC internal prototype to avoid an error.
11417    Use char because int might match the return type of a GCC
11418    builtin and then its argument prototype would still apply.  */
11419 #ifdef __cplusplus
11420 extern "C"
11421 #endif
11422 char dlopen ();
11423 int
11424 main ()
11425 {
11426 return dlopen ();
11427   ;
11428   return 0;
11429 }
11430 _ACEOF
11431 if ac_fn_c_try_link "$LINENO"; then :
11432   ac_cv_lib_dl_dlopen=yes
11433 else
11434   ac_cv_lib_dl_dlopen=no
11435 fi
11436 rm -f core conftest.err conftest.$ac_objext \
11437     conftest$ac_exeext conftest.$ac_ext
11438 LIBS=$ac_check_lib_save_LIBS
11439 fi
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11441 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11442 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11443   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11444 else
11445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11446 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11447 if ${ac_cv_lib_svld_dlopen+:} false; then :
11448   $as_echo_n "(cached) " >&6
11449 else
11450   ac_check_lib_save_LIBS=$LIBS
11451 LIBS="-lsvld  $LIBS"
11452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h.  */
11454
11455 /* Override any GCC internal prototype to avoid an error.
11456    Use char because int might match the return type of a GCC
11457    builtin and then its argument prototype would still apply.  */
11458 #ifdef __cplusplus
11459 extern "C"
11460 #endif
11461 char dlopen ();
11462 int
11463 main ()
11464 {
11465 return dlopen ();
11466   ;
11467   return 0;
11468 }
11469 _ACEOF
11470 if ac_fn_c_try_link "$LINENO"; then :
11471   ac_cv_lib_svld_dlopen=yes
11472 else
11473   ac_cv_lib_svld_dlopen=no
11474 fi
11475 rm -f core conftest.err conftest.$ac_objext \
11476     conftest$ac_exeext conftest.$ac_ext
11477 LIBS=$ac_check_lib_save_LIBS
11478 fi
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11480 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11481 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11482   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11483 else
11484   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11485 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11486 if ${ac_cv_lib_dld_dld_link+:} false; then :
11487   $as_echo_n "(cached) " >&6
11488 else
11489   ac_check_lib_save_LIBS=$LIBS
11490 LIBS="-ldld  $LIBS"
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h.  */
11493
11494 /* Override any GCC internal prototype to avoid an error.
11495    Use char because int might match the return type of a GCC
11496    builtin and then its argument prototype would still apply.  */
11497 #ifdef __cplusplus
11498 extern "C"
11499 #endif
11500 char dld_link ();
11501 int
11502 main ()
11503 {
11504 return dld_link ();
11505   ;
11506   return 0;
11507 }
11508 _ACEOF
11509 if ac_fn_c_try_link "$LINENO"; then :
11510   ac_cv_lib_dld_dld_link=yes
11511 else
11512   ac_cv_lib_dld_dld_link=no
11513 fi
11514 rm -f core conftest.err conftest.$ac_objext \
11515     conftest$ac_exeext conftest.$ac_ext
11516 LIBS=$ac_check_lib_save_LIBS
11517 fi
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11519 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11520 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11521   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11522 fi
11523
11524
11525 fi
11526
11527
11528 fi
11529
11530
11531 fi
11532
11533
11534 fi
11535
11536
11537 fi
11538
11539     ;;
11540   esac
11541
11542   if test "x$lt_cv_dlopen" != xno; then
11543     enable_dlopen=yes
11544   else
11545     enable_dlopen=no
11546   fi
11547
11548   case $lt_cv_dlopen in
11549   dlopen)
11550     save_CPPFLAGS="$CPPFLAGS"
11551     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11552
11553     save_LDFLAGS="$LDFLAGS"
11554     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11555
11556     save_LIBS="$LIBS"
11557     LIBS="$lt_cv_dlopen_libs $LIBS"
11558
11559     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11560 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11561 if ${lt_cv_dlopen_self+:} false; then :
11562   $as_echo_n "(cached) " >&6
11563 else
11564           if test "$cross_compiling" = yes; then :
11565   lt_cv_dlopen_self=cross
11566 else
11567   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11568   lt_status=$lt_dlunknown
11569   cat > conftest.$ac_ext <<_LT_EOF
11570 #line $LINENO "configure"
11571 #include "confdefs.h"
11572
11573 #if HAVE_DLFCN_H
11574 #include <dlfcn.h>
11575 #endif
11576
11577 #include <stdio.h>
11578
11579 #ifdef RTLD_GLOBAL
11580 #  define LT_DLGLOBAL           RTLD_GLOBAL
11581 #else
11582 #  ifdef DL_GLOBAL
11583 #    define LT_DLGLOBAL         DL_GLOBAL
11584 #  else
11585 #    define LT_DLGLOBAL         0
11586 #  endif
11587 #endif
11588
11589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11590    find out it does not work in some platform. */
11591 #ifndef LT_DLLAZY_OR_NOW
11592 #  ifdef RTLD_LAZY
11593 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11594 #  else
11595 #    ifdef DL_LAZY
11596 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11597 #    else
11598 #      ifdef RTLD_NOW
11599 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11600 #      else
11601 #        ifdef DL_NOW
11602 #          define LT_DLLAZY_OR_NOW      DL_NOW
11603 #        else
11604 #          define LT_DLLAZY_OR_NOW      0
11605 #        endif
11606 #      endif
11607 #    endif
11608 #  endif
11609 #endif
11610
11611 /* When -fvisbility=hidden is used, assume the code has been annotated
11612    correspondingly for the symbols needed.  */
11613 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11614 int fnord () __attribute__((visibility("default")));
11615 #endif
11616
11617 int fnord () { return 42; }
11618 int main ()
11619 {
11620   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11621   int status = $lt_dlunknown;
11622
11623   if (self)
11624     {
11625       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11626       else
11627         {
11628           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11629           else puts (dlerror ());
11630         }
11631       /* dlclose (self); */
11632     }
11633   else
11634     puts (dlerror ());
11635
11636   return status;
11637 }
11638 _LT_EOF
11639   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11640   (eval $ac_link) 2>&5
11641   ac_status=$?
11642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11643   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11644     (./conftest; exit; ) >&5 2>/dev/null
11645     lt_status=$?
11646     case x$lt_status in
11647       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11648       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11649       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11650     esac
11651   else :
11652     # compilation failed
11653     lt_cv_dlopen_self=no
11654   fi
11655 fi
11656 rm -fr conftest*
11657
11658
11659 fi
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11661 $as_echo "$lt_cv_dlopen_self" >&6; }
11662
11663     if test "x$lt_cv_dlopen_self" = xyes; then
11664       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11665       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11666 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11667 if ${lt_cv_dlopen_self_static+:} false; then :
11668   $as_echo_n "(cached) " >&6
11669 else
11670           if test "$cross_compiling" = yes; then :
11671   lt_cv_dlopen_self_static=cross
11672 else
11673   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11674   lt_status=$lt_dlunknown
11675   cat > conftest.$ac_ext <<_LT_EOF
11676 #line $LINENO "configure"
11677 #include "confdefs.h"
11678
11679 #if HAVE_DLFCN_H
11680 #include <dlfcn.h>
11681 #endif
11682
11683 #include <stdio.h>
11684
11685 #ifdef RTLD_GLOBAL
11686 #  define LT_DLGLOBAL           RTLD_GLOBAL
11687 #else
11688 #  ifdef DL_GLOBAL
11689 #    define LT_DLGLOBAL         DL_GLOBAL
11690 #  else
11691 #    define LT_DLGLOBAL         0
11692 #  endif
11693 #endif
11694
11695 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11696    find out it does not work in some platform. */
11697 #ifndef LT_DLLAZY_OR_NOW
11698 #  ifdef RTLD_LAZY
11699 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11700 #  else
11701 #    ifdef DL_LAZY
11702 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11703 #    else
11704 #      ifdef RTLD_NOW
11705 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11706 #      else
11707 #        ifdef DL_NOW
11708 #          define LT_DLLAZY_OR_NOW      DL_NOW
11709 #        else
11710 #          define LT_DLLAZY_OR_NOW      0
11711 #        endif
11712 #      endif
11713 #    endif
11714 #  endif
11715 #endif
11716
11717 /* When -fvisbility=hidden is used, assume the code has been annotated
11718    correspondingly for the symbols needed.  */
11719 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11720 int fnord () __attribute__((visibility("default")));
11721 #endif
11722
11723 int fnord () { return 42; }
11724 int main ()
11725 {
11726   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11727   int status = $lt_dlunknown;
11728
11729   if (self)
11730     {
11731       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11732       else
11733         {
11734           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11735           else puts (dlerror ());
11736         }
11737       /* dlclose (self); */
11738     }
11739   else
11740     puts (dlerror ());
11741
11742   return status;
11743 }
11744 _LT_EOF
11745   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11746   (eval $ac_link) 2>&5
11747   ac_status=$?
11748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11749   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11750     (./conftest; exit; ) >&5 2>/dev/null
11751     lt_status=$?
11752     case x$lt_status in
11753       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11754       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11755       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11756     esac
11757   else :
11758     # compilation failed
11759     lt_cv_dlopen_self_static=no
11760   fi
11761 fi
11762 rm -fr conftest*
11763
11764
11765 fi
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11767 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11768     fi
11769
11770     CPPFLAGS="$save_CPPFLAGS"
11771     LDFLAGS="$save_LDFLAGS"
11772     LIBS="$save_LIBS"
11773     ;;
11774   esac
11775
11776   case $lt_cv_dlopen_self in
11777   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11778   *) enable_dlopen_self=unknown ;;
11779   esac
11780
11781   case $lt_cv_dlopen_self_static in
11782   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11783   *) enable_dlopen_self_static=unknown ;;
11784   esac
11785 fi
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803 striplib=
11804 old_striplib=
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11806 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11807 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11808   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11809   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11811 $as_echo "yes" >&6; }
11812 else
11813 # FIXME - insert some real tests, host_os isn't really good enough
11814   case $host_os in
11815   darwin*)
11816     if test -n "$STRIP" ; then
11817       striplib="$STRIP -x"
11818       old_striplib="$STRIP -S"
11819       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11820 $as_echo "yes" >&6; }
11821     else
11822       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11824     fi
11825     ;;
11826   *)
11827     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11829     ;;
11830   esac
11831 fi
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844   # Report which library types will actually be built
11845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11846 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11848 $as_echo "$can_build_shared" >&6; }
11849
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11851 $as_echo_n "checking whether to build shared libraries... " >&6; }
11852   test "$can_build_shared" = "no" && enable_shared=no
11853
11854   # On AIX, shared libraries and static libraries use the same namespace, and
11855   # are all built from PIC.
11856   case $host_os in
11857   aix3*)
11858     test "$enable_shared" = yes && enable_static=no
11859     if test -n "$RANLIB"; then
11860       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11861       postinstall_cmds='$RANLIB $lib'
11862     fi
11863     ;;
11864
11865   aix[4-9]*)
11866     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11867       test "$enable_shared" = yes && enable_static=no
11868     fi
11869     ;;
11870   esac
11871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11872 $as_echo "$enable_shared" >&6; }
11873
11874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11875 $as_echo_n "checking whether to build static libraries... " >&6; }
11876   # Make sure either enable_shared or enable_static is yes.
11877   test "$enable_shared" = yes || enable_static=yes
11878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11879 $as_echo "$enable_static" >&6; }
11880
11881
11882
11883
11884 fi
11885 ac_ext=c
11886 ac_cpp='$CPP $CPPFLAGS'
11887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11890
11891 CC="$lt_save_CC"
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907         ac_config_commands="$ac_config_commands libtool"
11908
11909
11910
11911
11912 # Only expand once:
11913
11914
11915 # Check whether --enable-largefile was given.
11916 if test "${enable_largefile+set}" = set; then :
11917   enableval=$enable_largefile;
11918 fi
11919
11920 if test "$enable_largefile" != no; then
11921
11922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11923 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11924 if ${ac_cv_sys_largefile_CC+:} false; then :
11925   $as_echo_n "(cached) " >&6
11926 else
11927   ac_cv_sys_largefile_CC=no
11928      if test "$GCC" != yes; then
11929        ac_save_CC=$CC
11930        while :; do
11931          # IRIX 6.2 and later do not support large files by default,
11932          # so use the C compiler's -n32 option if that helps.
11933          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h.  */
11935 #include <sys/types.h>
11936  /* Check that off_t can represent 2**63 - 1 correctly.
11937     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11938     since some C++ compilers masquerading as C compilers
11939     incorrectly reject 9223372036854775807.  */
11940 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11941   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11942                        && LARGE_OFF_T % 2147483647 == 1)
11943                       ? 1 : -1];
11944 int
11945 main ()
11946 {
11947
11948   ;
11949   return 0;
11950 }
11951 _ACEOF
11952          if ac_fn_c_try_compile "$LINENO"; then :
11953   break
11954 fi
11955 rm -f core conftest.err conftest.$ac_objext
11956          CC="$CC -n32"
11957          if ac_fn_c_try_compile "$LINENO"; then :
11958   ac_cv_sys_largefile_CC=' -n32'; break
11959 fi
11960 rm -f core conftest.err conftest.$ac_objext
11961          break
11962        done
11963        CC=$ac_save_CC
11964        rm -f conftest.$ac_ext
11965     fi
11966 fi
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11968 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11969   if test "$ac_cv_sys_largefile_CC" != no; then
11970     CC=$CC$ac_cv_sys_largefile_CC
11971   fi
11972
11973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11974 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11975 if ${ac_cv_sys_file_offset_bits+:} false; then :
11976   $as_echo_n "(cached) " >&6
11977 else
11978   while :; do
11979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h.  */
11981 #include <sys/types.h>
11982  /* Check that off_t can represent 2**63 - 1 correctly.
11983     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11984     since some C++ compilers masquerading as C compilers
11985     incorrectly reject 9223372036854775807.  */
11986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11987   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11988                        && LARGE_OFF_T % 2147483647 == 1)
11989                       ? 1 : -1];
11990 int
11991 main ()
11992 {
11993
11994   ;
11995   return 0;
11996 }
11997 _ACEOF
11998 if ac_fn_c_try_compile "$LINENO"; then :
11999   ac_cv_sys_file_offset_bits=no; break
12000 fi
12001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h.  */
12004 #define _FILE_OFFSET_BITS 64
12005 #include <sys/types.h>
12006  /* Check that off_t can represent 2**63 - 1 correctly.
12007     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12008     since some C++ compilers masquerading as C compilers
12009     incorrectly reject 9223372036854775807.  */
12010 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12011   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12012                        && LARGE_OFF_T % 2147483647 == 1)
12013                       ? 1 : -1];
12014 int
12015 main ()
12016 {
12017
12018   ;
12019   return 0;
12020 }
12021 _ACEOF
12022 if ac_fn_c_try_compile "$LINENO"; then :
12023   ac_cv_sys_file_offset_bits=64; break
12024 fi
12025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12026   ac_cv_sys_file_offset_bits=unknown
12027   break
12028 done
12029 fi
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12031 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12032 case $ac_cv_sys_file_offset_bits in #(
12033   no | unknown) ;;
12034   *)
12035 cat >>confdefs.h <<_ACEOF
12036 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12037 _ACEOF
12038 ;;
12039 esac
12040 rm -rf conftest*
12041   if test $ac_cv_sys_file_offset_bits = unknown; then
12042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12043 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12044 if ${ac_cv_sys_large_files+:} false; then :
12045   $as_echo_n "(cached) " >&6
12046 else
12047   while :; do
12048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h.  */
12050 #include <sys/types.h>
12051  /* Check that off_t can represent 2**63 - 1 correctly.
12052     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12053     since some C++ compilers masquerading as C compilers
12054     incorrectly reject 9223372036854775807.  */
12055 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12056   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12057                        && LARGE_OFF_T % 2147483647 == 1)
12058                       ? 1 : -1];
12059 int
12060 main ()
12061 {
12062
12063   ;
12064   return 0;
12065 }
12066 _ACEOF
12067 if ac_fn_c_try_compile "$LINENO"; then :
12068   ac_cv_sys_large_files=no; break
12069 fi
12070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h.  */
12073 #define _LARGE_FILES 1
12074 #include <sys/types.h>
12075  /* Check that off_t can represent 2**63 - 1 correctly.
12076     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12077     since some C++ compilers masquerading as C compilers
12078     incorrectly reject 9223372036854775807.  */
12079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12080   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12081                        && LARGE_OFF_T % 2147483647 == 1)
12082                       ? 1 : -1];
12083 int
12084 main ()
12085 {
12086
12087   ;
12088   return 0;
12089 }
12090 _ACEOF
12091 if ac_fn_c_try_compile "$LINENO"; then :
12092   ac_cv_sys_large_files=1; break
12093 fi
12094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12095   ac_cv_sys_large_files=unknown
12096   break
12097 done
12098 fi
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12100 $as_echo "$ac_cv_sys_large_files" >&6; }
12101 case $ac_cv_sys_large_files in #(
12102   no | unknown) ;;
12103   *)
12104 cat >>confdefs.h <<_ACEOF
12105 #define _LARGE_FILES $ac_cv_sys_large_files
12106 _ACEOF
12107 ;;
12108 esac
12109 rm -rf conftest*
12110   fi
12111
12112
12113 fi
12114
12115 for ac_prog in 'bison -y' byacc
12116 do
12117   # Extract the first word of "$ac_prog", so it can be a program name with args.
12118 set dummy $ac_prog; ac_word=$2
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120 $as_echo_n "checking for $ac_word... " >&6; }
12121 if ${ac_cv_prog_YACC+:} false; then :
12122   $as_echo_n "(cached) " >&6
12123 else
12124   if test -n "$YACC"; then
12125   ac_cv_prog_YACC="$YACC" # Let the user override the test.
12126 else
12127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128 for as_dir in $PATH
12129 do
12130   IFS=$as_save_IFS
12131   test -z "$as_dir" && as_dir=.
12132     for ac_exec_ext in '' $ac_executable_extensions; do
12133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12134     ac_cv_prog_YACC="$ac_prog"
12135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136     break 2
12137   fi
12138 done
12139   done
12140 IFS=$as_save_IFS
12141
12142 fi
12143 fi
12144 YACC=$ac_cv_prog_YACC
12145 if test -n "$YACC"; then
12146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12147 $as_echo "$YACC" >&6; }
12148 else
12149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150 $as_echo "no" >&6; }
12151 fi
12152
12153
12154   test -n "$YACC" && break
12155 done
12156 test -n "$YACC" || YACC="yacc"
12157
12158 for ac_prog in flex lex
12159 do
12160   # Extract the first word of "$ac_prog", so it can be a program name with args.
12161 set dummy $ac_prog; ac_word=$2
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12163 $as_echo_n "checking for $ac_word... " >&6; }
12164 if ${ac_cv_prog_LEX+:} false; then :
12165   $as_echo_n "(cached) " >&6
12166 else
12167   if test -n "$LEX"; then
12168   ac_cv_prog_LEX="$LEX" # Let the user override the test.
12169 else
12170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171 for as_dir in $PATH
12172 do
12173   IFS=$as_save_IFS
12174   test -z "$as_dir" && as_dir=.
12175     for ac_exec_ext in '' $ac_executable_extensions; do
12176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12177     ac_cv_prog_LEX="$ac_prog"
12178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12179     break 2
12180   fi
12181 done
12182   done
12183 IFS=$as_save_IFS
12184
12185 fi
12186 fi
12187 LEX=$ac_cv_prog_LEX
12188 if test -n "$LEX"; then
12189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12190 $as_echo "$LEX" >&6; }
12191 else
12192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193 $as_echo "no" >&6; }
12194 fi
12195
12196
12197   test -n "$LEX" && break
12198 done
12199 test -n "$LEX" || LEX=":"
12200
12201 if test "x$LEX" != "x:"; then
12202   cat >conftest.l <<_ACEOF
12203 %%
12204 a { ECHO; }
12205 b { REJECT; }
12206 c { yymore (); }
12207 d { yyless (1); }
12208 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
12209     yyless ((input () != 0)); }
12210 f { unput (yytext[0]); }
12211 . { BEGIN INITIAL; }
12212 %%
12213 #ifdef YYTEXT_POINTER
12214 extern char *yytext;
12215 #endif
12216 int
12217 main (void)
12218 {
12219   return ! yylex () + ! yywrap ();
12220 }
12221 _ACEOF
12222 { { ac_try="$LEX conftest.l"
12223 case "(($ac_try" in
12224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225   *) ac_try_echo=$ac_try;;
12226 esac
12227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12228 $as_echo "$ac_try_echo"; } >&5
12229   (eval "$LEX conftest.l") 2>&5
12230   ac_status=$?
12231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12232   test $ac_status = 0; }
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12234 $as_echo_n "checking lex output file root... " >&6; }
12235 if ${ac_cv_prog_lex_root+:} false; then :
12236   $as_echo_n "(cached) " >&6
12237 else
12238
12239 if test -f lex.yy.c; then
12240   ac_cv_prog_lex_root=lex.yy
12241 elif test -f lexyy.c; then
12242   ac_cv_prog_lex_root=lexyy
12243 else
12244   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12245 fi
12246 fi
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12248 $as_echo "$ac_cv_prog_lex_root" >&6; }
12249 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12250
12251 if test -z "${LEXLIB+set}"; then
12252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12253 $as_echo_n "checking lex library... " >&6; }
12254 if ${ac_cv_lib_lex+:} false; then :
12255   $as_echo_n "(cached) " >&6
12256 else
12257
12258     ac_save_LIBS=$LIBS
12259     ac_cv_lib_lex='none needed'
12260     for ac_lib in '' -lfl -ll; do
12261       LIBS="$ac_lib $ac_save_LIBS"
12262       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h.  */
12264 `cat $LEX_OUTPUT_ROOT.c`
12265 _ACEOF
12266 if ac_fn_c_try_link "$LINENO"; then :
12267   ac_cv_lib_lex=$ac_lib
12268 fi
12269 rm -f core conftest.err conftest.$ac_objext \
12270     conftest$ac_exeext conftest.$ac_ext
12271       test "$ac_cv_lib_lex" != 'none needed' && break
12272     done
12273     LIBS=$ac_save_LIBS
12274
12275 fi
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12277 $as_echo "$ac_cv_lib_lex" >&6; }
12278   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12279 fi
12280
12281
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12283 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12284 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12285   $as_echo_n "(cached) " >&6
12286 else
12287   # POSIX says lex can declare yytext either as a pointer or an array; the
12288 # default is implementation-dependent.  Figure out which it is, since
12289 # not all implementations provide the %pointer and %array declarations.
12290 ac_cv_prog_lex_yytext_pointer=no
12291 ac_save_LIBS=$LIBS
12292 LIBS="$LEXLIB $ac_save_LIBS"
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h.  */
12295
12296   #define YYTEXT_POINTER 1
12297 `cat $LEX_OUTPUT_ROOT.c`
12298 _ACEOF
12299 if ac_fn_c_try_link "$LINENO"; then :
12300   ac_cv_prog_lex_yytext_pointer=yes
12301 fi
12302 rm -f core conftest.err conftest.$ac_objext \
12303     conftest$ac_exeext conftest.$ac_ext
12304 LIBS=$ac_save_LIBS
12305
12306 fi
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12308 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12309 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12310
12311 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12312
12313 fi
12314 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12315
12316 fi
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12318 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12319 if ${ac_cv_c_const+:} false; then :
12320   $as_echo_n "(cached) " >&6
12321 else
12322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h.  */
12324
12325 int
12326 main ()
12327 {
12328
12329 #ifndef __cplusplus
12330   /* Ultrix mips cc rejects this sort of thing.  */
12331   typedef int charset[2];
12332   const charset cs = { 0, 0 };
12333   /* SunOS 4.1.1 cc rejects this.  */
12334   char const *const *pcpcc;
12335   char **ppc;
12336   /* NEC SVR4.0.2 mips cc rejects this.  */
12337   struct point {int x, y;};
12338   static struct point const zero = {0,0};
12339   /* AIX XL C 1.02.0.0 rejects this.
12340      It does not let you subtract one const X* pointer from another in
12341      an arm of an if-expression whose if-part is not a constant
12342      expression */
12343   const char *g = "string";
12344   pcpcc = &g + (g ? g-g : 0);
12345   /* HPUX 7.0 cc rejects these. */
12346   ++pcpcc;
12347   ppc = (char**) pcpcc;
12348   pcpcc = (char const *const *) ppc;
12349   { /* SCO 3.2v4 cc rejects this sort of thing.  */
12350     char tx;
12351     char *t = &tx;
12352     char const *s = 0 ? (char *) 0 : (char const *) 0;
12353
12354     *t++ = 0;
12355     if (s) return 0;
12356   }
12357   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12358     int x[] = {25, 17};
12359     const int *foo = &x[0];
12360     ++foo;
12361   }
12362   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12363     typedef const int *iptr;
12364     iptr p = 0;
12365     ++p;
12366   }
12367   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12368        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12369     struct s { int j; const int *ap[3]; } bx;
12370     struct s *b = &bx; b->j = 5;
12371   }
12372   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12373     const int foo = 10;
12374     if (!foo) return 0;
12375   }
12376   return !cs[0] && !zero.x;
12377 #endif
12378
12379   ;
12380   return 0;
12381 }
12382 _ACEOF
12383 if ac_fn_c_try_compile "$LINENO"; then :
12384   ac_cv_c_const=yes
12385 else
12386   ac_cv_c_const=no
12387 fi
12388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12389 fi
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12391 $as_echo "$ac_cv_c_const" >&6; }
12392 if test $ac_cv_c_const = no; then
12393
12394 $as_echo "#define const /**/" >>confdefs.h
12395
12396 fi
12397
12398
12399   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
12400 $as_echo_n "checking for unsigned long long int... " >&6; }
12401 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
12402   $as_echo_n "(cached) " >&6
12403 else
12404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h.  */
12406
12407   /* For now, do not test the preprocessor; as of 2007 there are too many
12408          implementations with broken preprocessors.  Perhaps this can
12409          be revisited in 2012.  In the meantime, code should not expect
12410          #if to work with literals wider than 32 bits.  */
12411       /* Test literals.  */
12412       long long int ll = 9223372036854775807ll;
12413       long long int nll = -9223372036854775807LL;
12414       unsigned long long int ull = 18446744073709551615ULL;
12415       /* Test constant expressions.   */
12416       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12417                      ? 1 : -1)];
12418       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12419                      ? 1 : -1)];
12420       int i = 63;
12421 int
12422 main ()
12423 {
12424 /* Test availability of runtime routines for shift and division.  */
12425       long long int llmax = 9223372036854775807ll;
12426       unsigned long long int ullmax = 18446744073709551615ull;
12427       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12428               | (llmax / ll) | (llmax % ll)
12429               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12430               | (ullmax / ull) | (ullmax % ull));
12431   ;
12432   return 0;
12433 }
12434
12435 _ACEOF
12436 if ac_fn_c_try_link "$LINENO"; then :
12437   ac_cv_type_unsigned_long_long_int=yes
12438 else
12439   ac_cv_type_unsigned_long_long_int=no
12440 fi
12441 rm -f core conftest.err conftest.$ac_objext \
12442     conftest$ac_exeext conftest.$ac_ext
12443 fi
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
12445 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
12446   if test $ac_cv_type_unsigned_long_long_int = yes; then
12447
12448 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12449
12450   fi
12451
12452
12453
12454 if test $ac_cv_type_unsigned_long_long_int = yes; then
12455         GDBM_COUNT_T="unsigned long long int"
12456 else
12457         GDBM_COUNT_T="unsigned long"
12458 fi
12459
12460
12461 mkdir_p="$MKDIR_P"
12462 case $mkdir_p in
12463   [\\/$]* | ?:[\\/]*) ;;
12464   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
12465 esac
12466
12467
12468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12469 $as_echo_n "checking whether NLS is requested... " >&6; }
12470     # Check whether --enable-nls was given.
12471 if test "${enable_nls+set}" = set; then :
12472   enableval=$enable_nls; USE_NLS=$enableval
12473 else
12474   USE_NLS=yes
12475 fi
12476
12477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12478 $as_echo "$USE_NLS" >&6; }
12479
12480
12481
12482
12483       GETTEXT_MACRO_VERSION=0.18
12484
12485
12486
12487
12488 # Prepare PATH_SEPARATOR.
12489 # The user is always right.
12490 if test "${PATH_SEPARATOR+set}" != set; then
12491   echo "#! /bin/sh" >conf$$.sh
12492   echo  "exit 0"   >>conf$$.sh
12493   chmod +x conf$$.sh
12494   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12495     PATH_SEPARATOR=';'
12496   else
12497     PATH_SEPARATOR=:
12498   fi
12499   rm -f conf$$.sh
12500 fi
12501
12502 # Find out how to test for executable files. Don't use a zero-byte file,
12503 # as systems may use methods other than mode bits to determine executability.
12504 cat >conf$$.file <<_ASEOF
12505 #! /bin/sh
12506 exit 0
12507 _ASEOF
12508 chmod +x conf$$.file
12509 if test -x conf$$.file >/dev/null 2>&1; then
12510   ac_executable_p="test -x"
12511 else
12512   ac_executable_p="test -f"
12513 fi
12514 rm -f conf$$.file
12515
12516 # Extract the first word of "msgfmt", so it can be a program name with args.
12517 set dummy msgfmt; ac_word=$2
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12519 $as_echo_n "checking for $ac_word... " >&6; }
12520 if ${ac_cv_path_MSGFMT+:} false; then :
12521   $as_echo_n "(cached) " >&6
12522 else
12523   case "$MSGFMT" in
12524   [\\/]* | ?:[\\/]*)
12525     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12526     ;;
12527   *)
12528     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12529     for ac_dir in $PATH; do
12530       IFS="$ac_save_IFS"
12531       test -z "$ac_dir" && ac_dir=.
12532       for ac_exec_ext in '' $ac_executable_extensions; do
12533         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12534           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12535           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12536      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12537             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12538             break 2
12539           fi
12540         fi
12541       done
12542     done
12543     IFS="$ac_save_IFS"
12544   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12545     ;;
12546 esac
12547 fi
12548 MSGFMT="$ac_cv_path_MSGFMT"
12549 if test "$MSGFMT" != ":"; then
12550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12551 $as_echo "$MSGFMT" >&6; }
12552 else
12553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12554 $as_echo "no" >&6; }
12555 fi
12556
12557   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12558 set dummy gmsgfmt; ac_word=$2
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12560 $as_echo_n "checking for $ac_word... " >&6; }
12561 if ${ac_cv_path_GMSGFMT+:} false; then :
12562   $as_echo_n "(cached) " >&6
12563 else
12564   case $GMSGFMT in
12565   [\\/]* | ?:[\\/]*)
12566   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12567   ;;
12568   *)
12569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570 for as_dir in $PATH
12571 do
12572   IFS=$as_save_IFS
12573   test -z "$as_dir" && as_dir=.
12574     for ac_exec_ext in '' $ac_executable_extensions; do
12575   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12576     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12578     break 2
12579   fi
12580 done
12581   done
12582 IFS=$as_save_IFS
12583
12584   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12585   ;;
12586 esac
12587 fi
12588 GMSGFMT=$ac_cv_path_GMSGFMT
12589 if test -n "$GMSGFMT"; then
12590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12591 $as_echo "$GMSGFMT" >&6; }
12592 else
12593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594 $as_echo "no" >&6; }
12595 fi
12596
12597
12598
12599     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12600     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12601     *) MSGFMT_015=$MSGFMT ;;
12602   esac
12603
12604   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12605     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12606     *) GMSGFMT_015=$GMSGFMT ;;
12607   esac
12608
12609
12610
12611 # Prepare PATH_SEPARATOR.
12612 # The user is always right.
12613 if test "${PATH_SEPARATOR+set}" != set; then
12614   echo "#! /bin/sh" >conf$$.sh
12615   echo  "exit 0"   >>conf$$.sh
12616   chmod +x conf$$.sh
12617   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12618     PATH_SEPARATOR=';'
12619   else
12620     PATH_SEPARATOR=:
12621   fi
12622   rm -f conf$$.sh
12623 fi
12624
12625 # Find out how to test for executable files. Don't use a zero-byte file,
12626 # as systems may use methods other than mode bits to determine executability.
12627 cat >conf$$.file <<_ASEOF
12628 #! /bin/sh
12629 exit 0
12630 _ASEOF
12631 chmod +x conf$$.file
12632 if test -x conf$$.file >/dev/null 2>&1; then
12633   ac_executable_p="test -x"
12634 else
12635   ac_executable_p="test -f"
12636 fi
12637 rm -f conf$$.file
12638
12639 # Extract the first word of "xgettext", so it can be a program name with args.
12640 set dummy xgettext; ac_word=$2
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12642 $as_echo_n "checking for $ac_word... " >&6; }
12643 if ${ac_cv_path_XGETTEXT+:} false; then :
12644   $as_echo_n "(cached) " >&6
12645 else
12646   case "$XGETTEXT" in
12647   [\\/]* | ?:[\\/]*)
12648     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12649     ;;
12650   *)
12651     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12652     for ac_dir in $PATH; do
12653       IFS="$ac_save_IFS"
12654       test -z "$ac_dir" && ac_dir=.
12655       for ac_exec_ext in '' $ac_executable_extensions; do
12656         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12657           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12658           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12659      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12660             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12661             break 2
12662           fi
12663         fi
12664       done
12665     done
12666     IFS="$ac_save_IFS"
12667   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12668     ;;
12669 esac
12670 fi
12671 XGETTEXT="$ac_cv_path_XGETTEXT"
12672 if test "$XGETTEXT" != ":"; then
12673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12674 $as_echo "$XGETTEXT" >&6; }
12675 else
12676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677 $as_echo "no" >&6; }
12678 fi
12679
12680     rm -f messages.po
12681
12682     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12683     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12684     *) XGETTEXT_015=$XGETTEXT ;;
12685   esac
12686
12687
12688
12689 # Prepare PATH_SEPARATOR.
12690 # The user is always right.
12691 if test "${PATH_SEPARATOR+set}" != set; then
12692   echo "#! /bin/sh" >conf$$.sh
12693   echo  "exit 0"   >>conf$$.sh
12694   chmod +x conf$$.sh
12695   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12696     PATH_SEPARATOR=';'
12697   else
12698     PATH_SEPARATOR=:
12699   fi
12700   rm -f conf$$.sh
12701 fi
12702
12703 # Find out how to test for executable files. Don't use a zero-byte file,
12704 # as systems may use methods other than mode bits to determine executability.
12705 cat >conf$$.file <<_ASEOF
12706 #! /bin/sh
12707 exit 0
12708 _ASEOF
12709 chmod +x conf$$.file
12710 if test -x conf$$.file >/dev/null 2>&1; then
12711   ac_executable_p="test -x"
12712 else
12713   ac_executable_p="test -f"
12714 fi
12715 rm -f conf$$.file
12716
12717 # Extract the first word of "msgmerge", so it can be a program name with args.
12718 set dummy msgmerge; ac_word=$2
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720 $as_echo_n "checking for $ac_word... " >&6; }
12721 if ${ac_cv_path_MSGMERGE+:} false; then :
12722   $as_echo_n "(cached) " >&6
12723 else
12724   case "$MSGMERGE" in
12725   [\\/]* | ?:[\\/]*)
12726     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12727     ;;
12728   *)
12729     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12730     for ac_dir in $PATH; do
12731       IFS="$ac_save_IFS"
12732       test -z "$ac_dir" && ac_dir=.
12733       for ac_exec_ext in '' $ac_executable_extensions; do
12734         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12735           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12736           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12737             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12738             break 2
12739           fi
12740         fi
12741       done
12742     done
12743     IFS="$ac_save_IFS"
12744   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12745     ;;
12746 esac
12747 fi
12748 MSGMERGE="$ac_cv_path_MSGMERGE"
12749 if test "$MSGMERGE" != ":"; then
12750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12751 $as_echo "$MSGMERGE" >&6; }
12752 else
12753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12754 $as_echo "no" >&6; }
12755 fi
12756
12757
12758         test -n "$localedir" || localedir='${datadir}/locale'
12759
12760
12761     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12762
12763
12764   ac_config_commands="$ac_config_commands po-directories"
12765
12766
12767
12768       if test "X$prefix" = "XNONE"; then
12769     acl_final_prefix="$ac_default_prefix"
12770   else
12771     acl_final_prefix="$prefix"
12772   fi
12773   if test "X$exec_prefix" = "XNONE"; then
12774     acl_final_exec_prefix='${prefix}'
12775   else
12776     acl_final_exec_prefix="$exec_prefix"
12777   fi
12778   acl_save_prefix="$prefix"
12779   prefix="$acl_final_prefix"
12780   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12781   prefix="$acl_save_prefix"
12782
12783
12784 # Check whether --with-gnu-ld was given.
12785 if test "${with_gnu_ld+set}" = set; then :
12786   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12787 else
12788   with_gnu_ld=no
12789 fi
12790
12791 # Prepare PATH_SEPARATOR.
12792 # The user is always right.
12793 if test "${PATH_SEPARATOR+set}" != set; then
12794   echo "#! /bin/sh" >conf$$.sh
12795   echo  "exit 0"   >>conf$$.sh
12796   chmod +x conf$$.sh
12797   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12798     PATH_SEPARATOR=';'
12799   else
12800     PATH_SEPARATOR=:
12801   fi
12802   rm -f conf$$.sh
12803 fi
12804 ac_prog=ld
12805 if test "$GCC" = yes; then
12806   # Check if gcc -print-prog-name=ld gives a path.
12807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12808 $as_echo_n "checking for ld used by GCC... " >&6; }
12809   case $host in
12810   *-*-mingw*)
12811     # gcc leaves a trailing carriage return which upsets mingw
12812     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12813   *)
12814     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12815   esac
12816   case $ac_prog in
12817     # Accept absolute paths.
12818     [\\/]* | [A-Za-z]:[\\/]*)
12819       re_direlt='/[^/][^/]*/\.\./'
12820       # Canonicalize the path of ld
12821       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12822       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12823         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12824       done
12825       test -z "$LD" && LD="$ac_prog"
12826       ;;
12827   "")
12828     # If it fails, then pretend we aren't using GCC.
12829     ac_prog=ld
12830     ;;
12831   *)
12832     # If it is relative, then search for the first ld in PATH.
12833     with_gnu_ld=unknown
12834     ;;
12835   esac
12836 elif test "$with_gnu_ld" = yes; then
12837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12838 $as_echo_n "checking for GNU ld... " >&6; }
12839 else
12840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12841 $as_echo_n "checking for non-GNU ld... " >&6; }
12842 fi
12843 if ${acl_cv_path_LD+:} false; then :
12844   $as_echo_n "(cached) " >&6
12845 else
12846   if test -z "$LD"; then
12847   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12848   for ac_dir in $PATH; do
12849     test -z "$ac_dir" && ac_dir=.
12850     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12851       acl_cv_path_LD="$ac_dir/$ac_prog"
12852       # Check to see if the program is GNU ld.  I'd rather use --version,
12853       # but apparently some GNU ld's only accept -v.
12854       # Break only if it was the GNU/non-GNU ld that we prefer.
12855       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12856       *GNU* | *'with BFD'*)
12857         test "$with_gnu_ld" != no && break ;;
12858       *)
12859         test "$with_gnu_ld" != yes && break ;;
12860       esac
12861     fi
12862   done
12863   IFS="$ac_save_ifs"
12864 else
12865   acl_cv_path_LD="$LD" # Let the user override the test with a path.
12866 fi
12867 fi
12868
12869 LD="$acl_cv_path_LD"
12870 if test -n "$LD"; then
12871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12872 $as_echo "$LD" >&6; }
12873 else
12874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875 $as_echo "no" >&6; }
12876 fi
12877 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12879 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12880 if ${acl_cv_prog_gnu_ld+:} false; then :
12881   $as_echo_n "(cached) " >&6
12882 else
12883   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12884 case `$LD -v 2>&1 </dev/null` in
12885 *GNU* | *'with BFD'*)
12886   acl_cv_prog_gnu_ld=yes ;;
12887 *)
12888   acl_cv_prog_gnu_ld=no ;;
12889 esac
12890 fi
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12892 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12893 with_gnu_ld=$acl_cv_prog_gnu_ld
12894
12895
12896
12897
12898                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12899 $as_echo_n "checking for shared library run path origin... " >&6; }
12900 if ${acl_cv_rpath+:} false; then :
12901   $as_echo_n "(cached) " >&6
12902 else
12903
12904     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12905     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12906     . ./conftest.sh
12907     rm -f ./conftest.sh
12908     acl_cv_rpath=done
12909
12910 fi
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12912 $as_echo "$acl_cv_rpath" >&6; }
12913   wl="$acl_cv_wl"
12914   acl_libext="$acl_cv_libext"
12915   acl_shlibext="$acl_cv_shlibext"
12916   acl_libname_spec="$acl_cv_libname_spec"
12917   acl_library_names_spec="$acl_cv_library_names_spec"
12918   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12919   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12920   acl_hardcode_direct="$acl_cv_hardcode_direct"
12921   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12922     # Check whether --enable-rpath was given.
12923 if test "${enable_rpath+set}" = set; then :
12924   enableval=$enable_rpath; :
12925 else
12926   enable_rpath=yes
12927 fi
12928
12929
12930
12931
12932   acl_libdirstem=lib
12933   acl_libdirstem2=
12934   case "$host_os" in
12935     solaris*)
12936                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12937 $as_echo_n "checking for 64-bit host... " >&6; }
12938 if ${gl_cv_solaris_64bit+:} false; then :
12939   $as_echo_n "(cached) " >&6
12940 else
12941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h.  */
12943
12944 #ifdef _LP64
12945 sixtyfour bits
12946 #endif
12947
12948 _ACEOF
12949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12950   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12951   gl_cv_solaris_64bit=yes
12952 else
12953   gl_cv_solaris_64bit=no
12954 fi
12955 rm -f conftest*
12956
12957
12958 fi
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12960 $as_echo "$gl_cv_solaris_64bit" >&6; }
12961       if test $gl_cv_solaris_64bit = yes; then
12962         acl_libdirstem=lib/64
12963         case "$host_cpu" in
12964           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
12965           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12966         esac
12967       fi
12968       ;;
12969     *)
12970       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12971       if test -n "$searchpath"; then
12972         acl_save_IFS="${IFS=    }"; IFS=":"
12973         for searchdir in $searchpath; do
12974           if test -d "$searchdir"; then
12975             case "$searchdir" in
12976               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12977               */../ | */.. )
12978                 # Better ignore directories of this form. They are misleading.
12979                 ;;
12980               *) searchdir=`cd "$searchdir" && pwd`
12981                  case "$searchdir" in
12982                    */lib64 ) acl_libdirstem=lib64 ;;
12983                  esac ;;
12984             esac
12985           fi
12986         done
12987         IFS="$acl_save_IFS"
12988       fi
12989       ;;
12990   esac
12991   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004     use_additional=yes
13005
13006   acl_save_prefix="$prefix"
13007   prefix="$acl_final_prefix"
13008   acl_save_exec_prefix="$exec_prefix"
13009   exec_prefix="$acl_final_exec_prefix"
13010
13011     eval additional_includedir=\"$includedir\"
13012     eval additional_libdir=\"$libdir\"
13013
13014   exec_prefix="$acl_save_exec_prefix"
13015   prefix="$acl_save_prefix"
13016
13017
13018 # Check whether --with-libiconv-prefix was given.
13019 if test "${with_libiconv_prefix+set}" = set; then :
13020   withval=$with_libiconv_prefix;
13021     if test "X$withval" = "Xno"; then
13022       use_additional=no
13023     else
13024       if test "X$withval" = "X"; then
13025
13026   acl_save_prefix="$prefix"
13027   prefix="$acl_final_prefix"
13028   acl_save_exec_prefix="$exec_prefix"
13029   exec_prefix="$acl_final_exec_prefix"
13030
13031           eval additional_includedir=\"$includedir\"
13032           eval additional_libdir=\"$libdir\"
13033
13034   exec_prefix="$acl_save_exec_prefix"
13035   prefix="$acl_save_prefix"
13036
13037       else
13038         additional_includedir="$withval/include"
13039         additional_libdir="$withval/$acl_libdirstem"
13040         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13041            && ! test -d "$withval/$acl_libdirstem"; then
13042           additional_libdir="$withval/$acl_libdirstem2"
13043         fi
13044       fi
13045     fi
13046
13047 fi
13048
13049       LIBICONV=
13050   LTLIBICONV=
13051   INCICONV=
13052   LIBICONV_PREFIX=
13053       HAVE_LIBICONV=
13054   rpathdirs=
13055   ltrpathdirs=
13056   names_already_handled=
13057   names_next_round='iconv '
13058   while test -n "$names_next_round"; do
13059     names_this_round="$names_next_round"
13060     names_next_round=
13061     for name in $names_this_round; do
13062       already_handled=
13063       for n in $names_already_handled; do
13064         if test "$n" = "$name"; then
13065           already_handled=yes
13066           break
13067         fi
13068       done
13069       if test -z "$already_handled"; then
13070         names_already_handled="$names_already_handled $name"
13071                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13072         eval value=\"\$HAVE_LIB$uppername\"
13073         if test -n "$value"; then
13074           if test "$value" = yes; then
13075             eval value=\"\$LIB$uppername\"
13076             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13077             eval value=\"\$LTLIB$uppername\"
13078             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13079           else
13080                                     :
13081           fi
13082         else
13083                               found_dir=
13084           found_la=
13085           found_so=
13086           found_a=
13087           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13088           if test -n "$acl_shlibext"; then
13089             shrext=".$acl_shlibext"             # typically: shrext=.so
13090           else
13091             shrext=
13092           fi
13093           if test $use_additional = yes; then
13094             dir="$additional_libdir"
13095                                     if test -n "$acl_shlibext"; then
13096               if test -f "$dir/$libname$shrext"; then
13097                 found_dir="$dir"
13098                 found_so="$dir/$libname$shrext"
13099               else
13100                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13101                   ver=`(cd "$dir" && \
13102                         for f in "$libname$shrext".*; do echo "$f"; done \
13103                         | sed -e "s,^$libname$shrext\\\\.,," \
13104                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13105                         | sed 1q ) 2>/dev/null`
13106                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13107                     found_dir="$dir"
13108                     found_so="$dir/$libname$shrext.$ver"
13109                   fi
13110                 else
13111                   eval library_names=\"$acl_library_names_spec\"
13112                   for f in $library_names; do
13113                     if test -f "$dir/$f"; then
13114                       found_dir="$dir"
13115                       found_so="$dir/$f"
13116                       break
13117                     fi
13118                   done
13119                 fi
13120               fi
13121             fi
13122                         if test "X$found_dir" = "X"; then
13123               if test -f "$dir/$libname.$acl_libext"; then
13124                 found_dir="$dir"
13125                 found_a="$dir/$libname.$acl_libext"
13126               fi
13127             fi
13128             if test "X$found_dir" != "X"; then
13129               if test -f "$dir/$libname.la"; then
13130                 found_la="$dir/$libname.la"
13131               fi
13132             fi
13133           fi
13134           if test "X$found_dir" = "X"; then
13135             for x in $LDFLAGS $LTLIBICONV; do
13136
13137   acl_save_prefix="$prefix"
13138   prefix="$acl_final_prefix"
13139   acl_save_exec_prefix="$exec_prefix"
13140   exec_prefix="$acl_final_exec_prefix"
13141   eval x=\"$x\"
13142   exec_prefix="$acl_save_exec_prefix"
13143   prefix="$acl_save_prefix"
13144
13145               case "$x" in
13146                 -L*)
13147                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13148                                     if test -n "$acl_shlibext"; then
13149                     if test -f "$dir/$libname$shrext"; then
13150                       found_dir="$dir"
13151                       found_so="$dir/$libname$shrext"
13152                     else
13153                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13154                         ver=`(cd "$dir" && \
13155                               for f in "$libname$shrext".*; do echo "$f"; done \
13156                               | sed -e "s,^$libname$shrext\\\\.,," \
13157                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13158                               | sed 1q ) 2>/dev/null`
13159                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13160                           found_dir="$dir"
13161                           found_so="$dir/$libname$shrext.$ver"
13162                         fi
13163                       else
13164                         eval library_names=\"$acl_library_names_spec\"
13165                         for f in $library_names; do
13166                           if test -f "$dir/$f"; then
13167                             found_dir="$dir"
13168                             found_so="$dir/$f"
13169                             break
13170                           fi
13171                         done
13172                       fi
13173                     fi
13174                   fi
13175                                     if test "X$found_dir" = "X"; then
13176                     if test -f "$dir/$libname.$acl_libext"; then
13177                       found_dir="$dir"
13178                       found_a="$dir/$libname.$acl_libext"
13179                     fi
13180                   fi
13181                   if test "X$found_dir" != "X"; then
13182                     if test -f "$dir/$libname.la"; then
13183                       found_la="$dir/$libname.la"
13184                     fi
13185                   fi
13186                   ;;
13187               esac
13188               if test "X$found_dir" != "X"; then
13189                 break
13190               fi
13191             done
13192           fi
13193           if test "X$found_dir" != "X"; then
13194                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13195             if test "X$found_so" != "X"; then
13196                                                         if test "$enable_rpath" = no \
13197                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13198                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13199                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13200               else
13201                                                                                 haveit=
13202                 for x in $ltrpathdirs; do
13203                   if test "X$x" = "X$found_dir"; then
13204                     haveit=yes
13205                     break
13206                   fi
13207                 done
13208                 if test -z "$haveit"; then
13209                   ltrpathdirs="$ltrpathdirs $found_dir"
13210                 fi
13211                                 if test "$acl_hardcode_direct" = yes; then
13212                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13213                 else
13214                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13215                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13216                                                             haveit=
13217                     for x in $rpathdirs; do
13218                       if test "X$x" = "X$found_dir"; then
13219                         haveit=yes
13220                         break
13221                       fi
13222                     done
13223                     if test -z "$haveit"; then
13224                       rpathdirs="$rpathdirs $found_dir"
13225                     fi
13226                   else
13227                                                                                 haveit=
13228                     for x in $LDFLAGS $LIBICONV; do
13229
13230   acl_save_prefix="$prefix"
13231   prefix="$acl_final_prefix"
13232   acl_save_exec_prefix="$exec_prefix"
13233   exec_prefix="$acl_final_exec_prefix"
13234   eval x=\"$x\"
13235   exec_prefix="$acl_save_exec_prefix"
13236   prefix="$acl_save_prefix"
13237
13238                       if test "X$x" = "X-L$found_dir"; then
13239                         haveit=yes
13240                         break
13241                       fi
13242                     done
13243                     if test -z "$haveit"; then
13244                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13245                     fi
13246                     if test "$acl_hardcode_minus_L" != no; then
13247                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13248                     else
13249                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13250                     fi
13251                   fi
13252                 fi
13253               fi
13254             else
13255               if test "X$found_a" != "X"; then
13256                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13257               else
13258                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13259               fi
13260             fi
13261                         additional_includedir=
13262             case "$found_dir" in
13263               */$acl_libdirstem | */$acl_libdirstem/)
13264                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13265                 if test "$name" = 'iconv'; then
13266                   LIBICONV_PREFIX="$basedir"
13267                 fi
13268                 additional_includedir="$basedir/include"
13269                 ;;
13270               */$acl_libdirstem2 | */$acl_libdirstem2/)
13271                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13272                 if test "$name" = 'iconv'; then
13273                   LIBICONV_PREFIX="$basedir"
13274                 fi
13275                 additional_includedir="$basedir/include"
13276                 ;;
13277             esac
13278             if test "X$additional_includedir" != "X"; then
13279                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13280                 haveit=
13281                 if test "X$additional_includedir" = "X/usr/local/include"; then
13282                   if test -n "$GCC"; then
13283                     case $host_os in
13284                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13285                     esac
13286                   fi
13287                 fi
13288                 if test -z "$haveit"; then
13289                   for x in $CPPFLAGS $INCICONV; do
13290
13291   acl_save_prefix="$prefix"
13292   prefix="$acl_final_prefix"
13293   acl_save_exec_prefix="$exec_prefix"
13294   exec_prefix="$acl_final_exec_prefix"
13295   eval x=\"$x\"
13296   exec_prefix="$acl_save_exec_prefix"
13297   prefix="$acl_save_prefix"
13298
13299                     if test "X$x" = "X-I$additional_includedir"; then
13300                       haveit=yes
13301                       break
13302                     fi
13303                   done
13304                   if test -z "$haveit"; then
13305                     if test -d "$additional_includedir"; then
13306                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13307                     fi
13308                   fi
13309                 fi
13310               fi
13311             fi
13312                         if test -n "$found_la"; then
13313                                                         save_libdir="$libdir"
13314               case "$found_la" in
13315                 */* | *\\*) . "$found_la" ;;
13316                 *) . "./$found_la" ;;
13317               esac
13318               libdir="$save_libdir"
13319                             for dep in $dependency_libs; do
13320                 case "$dep" in
13321                   -L*)
13322                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13323                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13324                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13325                       haveit=
13326                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13327                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13328                         if test -n "$GCC"; then
13329                           case $host_os in
13330                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13331                           esac
13332                         fi
13333                       fi
13334                       if test -z "$haveit"; then
13335                         haveit=
13336                         for x in $LDFLAGS $LIBICONV; do
13337
13338   acl_save_prefix="$prefix"
13339   prefix="$acl_final_prefix"
13340   acl_save_exec_prefix="$exec_prefix"
13341   exec_prefix="$acl_final_exec_prefix"
13342   eval x=\"$x\"
13343   exec_prefix="$acl_save_exec_prefix"
13344   prefix="$acl_save_prefix"
13345
13346                           if test "X$x" = "X-L$additional_libdir"; then
13347                             haveit=yes
13348                             break
13349                           fi
13350                         done
13351                         if test -z "$haveit"; then
13352                           if test -d "$additional_libdir"; then
13353                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13354                           fi
13355                         fi
13356                         haveit=
13357                         for x in $LDFLAGS $LTLIBICONV; do
13358
13359   acl_save_prefix="$prefix"
13360   prefix="$acl_final_prefix"
13361   acl_save_exec_prefix="$exec_prefix"
13362   exec_prefix="$acl_final_exec_prefix"
13363   eval x=\"$x\"
13364   exec_prefix="$acl_save_exec_prefix"
13365   prefix="$acl_save_prefix"
13366
13367                           if test "X$x" = "X-L$additional_libdir"; then
13368                             haveit=yes
13369                             break
13370                           fi
13371                         done
13372                         if test -z "$haveit"; then
13373                           if test -d "$additional_libdir"; then
13374                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13375                           fi
13376                         fi
13377                       fi
13378                     fi
13379                     ;;
13380                   -R*)
13381                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13382                     if test "$enable_rpath" != no; then
13383                                                                   haveit=
13384                       for x in $rpathdirs; do
13385                         if test "X$x" = "X$dir"; then
13386                           haveit=yes
13387                           break
13388                         fi
13389                       done
13390                       if test -z "$haveit"; then
13391                         rpathdirs="$rpathdirs $dir"
13392                       fi
13393                                                                   haveit=
13394                       for x in $ltrpathdirs; do
13395                         if test "X$x" = "X$dir"; then
13396                           haveit=yes
13397                           break
13398                         fi
13399                       done
13400                       if test -z "$haveit"; then
13401                         ltrpathdirs="$ltrpathdirs $dir"
13402                       fi
13403                     fi
13404                     ;;
13405                   -l*)
13406                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13407                     ;;
13408                   *.la)
13409                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13410                     ;;
13411                   *)
13412                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13413                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13414                     ;;
13415                 esac
13416               done
13417             fi
13418           else
13419                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13420             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13421           fi
13422         fi
13423       fi
13424     done
13425   done
13426   if test "X$rpathdirs" != "X"; then
13427     if test -n "$acl_hardcode_libdir_separator"; then
13428                         alldirs=
13429       for found_dir in $rpathdirs; do
13430         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13431       done
13432             acl_save_libdir="$libdir"
13433       libdir="$alldirs"
13434       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13435       libdir="$acl_save_libdir"
13436       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13437     else
13438             for found_dir in $rpathdirs; do
13439         acl_save_libdir="$libdir"
13440         libdir="$found_dir"
13441         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13442         libdir="$acl_save_libdir"
13443         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13444       done
13445     fi
13446   fi
13447   if test "X$ltrpathdirs" != "X"; then
13448             for found_dir in $ltrpathdirs; do
13449       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13450     done
13451   fi
13452
13453
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13484 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13485 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13486   $as_echo_n "(cached) " >&6
13487 else
13488   gt_save_LIBS="$LIBS"
13489      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13490      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491 /* end confdefs.h.  */
13492 #include <CoreFoundation/CFPreferences.h>
13493 int
13494 main ()
13495 {
13496 CFPreferencesCopyAppValue(NULL, NULL)
13497   ;
13498   return 0;
13499 }
13500 _ACEOF
13501 if ac_fn_c_try_link "$LINENO"; then :
13502   gt_cv_func_CFPreferencesCopyAppValue=yes
13503 else
13504   gt_cv_func_CFPreferencesCopyAppValue=no
13505 fi
13506 rm -f core conftest.err conftest.$ac_objext \
13507     conftest$ac_exeext conftest.$ac_ext
13508      LIBS="$gt_save_LIBS"
13509 fi
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13511 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13512   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13513
13514 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13515
13516   fi
13517     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13518 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13519 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13520   $as_echo_n "(cached) " >&6
13521 else
13522   gt_save_LIBS="$LIBS"
13523      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13524      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h.  */
13526 #include <CoreFoundation/CFLocale.h>
13527 int
13528 main ()
13529 {
13530 CFLocaleCopyCurrent();
13531   ;
13532   return 0;
13533 }
13534 _ACEOF
13535 if ac_fn_c_try_link "$LINENO"; then :
13536   gt_cv_func_CFLocaleCopyCurrent=yes
13537 else
13538   gt_cv_func_CFLocaleCopyCurrent=no
13539 fi
13540 rm -f core conftest.err conftest.$ac_objext \
13541     conftest$ac_exeext conftest.$ac_ext
13542      LIBS="$gt_save_LIBS"
13543 fi
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13545 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13546   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13547
13548 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13549
13550   fi
13551   INTL_MACOSX_LIBS=
13552   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13553     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13554   fi
13555
13556
13557
13558
13559
13560
13561   LIBINTL=
13562   LTLIBINTL=
13563   POSUB=
13564
13565     case " $gt_needs " in
13566     *" need-formatstring-macros "*) gt_api_version=3 ;;
13567     *" need-ngettext "*) gt_api_version=2 ;;
13568     *) gt_api_version=1 ;;
13569   esac
13570   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13571   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13572
13573     if test "$USE_NLS" = "yes"; then
13574     gt_use_preinstalled_gnugettext=no
13575
13576
13577         if test $gt_api_version -ge 3; then
13578           gt_revision_test_code='
13579 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13580 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13581 #endif
13582 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13583 '
13584         else
13585           gt_revision_test_code=
13586         fi
13587         if test $gt_api_version -ge 2; then
13588           gt_expression_test_code=' + * ngettext ("", "", 0)'
13589         else
13590           gt_expression_test_code=
13591         fi
13592
13593         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13594 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13595 if eval \${$gt_func_gnugettext_libc+:} false; then :
13596   $as_echo_n "(cached) " >&6
13597 else
13598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h.  */
13600 #include <libintl.h>
13601 $gt_revision_test_code
13602 extern int _nl_msg_cat_cntr;
13603 extern int *_nl_domain_bindings;
13604 int
13605 main ()
13606 {
13607 bindtextdomain ("", "");
13608 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13609   ;
13610   return 0;
13611 }
13612 _ACEOF
13613 if ac_fn_c_try_link "$LINENO"; then :
13614   eval "$gt_func_gnugettext_libc=yes"
13615 else
13616   eval "$gt_func_gnugettext_libc=no"
13617 fi
13618 rm -f core conftest.err conftest.$ac_objext \
13619     conftest$ac_exeext conftest.$ac_ext
13620 fi
13621 eval ac_res=\$$gt_func_gnugettext_libc
13622                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13623 $as_echo "$ac_res" >&6; }
13624
13625         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13626
13627
13628
13629
13630
13631           am_save_CPPFLAGS="$CPPFLAGS"
13632
13633   for element in $INCICONV; do
13634     haveit=
13635     for x in $CPPFLAGS; do
13636
13637   acl_save_prefix="$prefix"
13638   prefix="$acl_final_prefix"
13639   acl_save_exec_prefix="$exec_prefix"
13640   exec_prefix="$acl_final_exec_prefix"
13641   eval x=\"$x\"
13642   exec_prefix="$acl_save_exec_prefix"
13643   prefix="$acl_save_prefix"
13644
13645       if test "X$x" = "X$element"; then
13646         haveit=yes
13647         break
13648       fi
13649     done
13650     if test -z "$haveit"; then
13651       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13652     fi
13653   done
13654
13655
13656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13657 $as_echo_n "checking for iconv... " >&6; }
13658 if ${am_cv_func_iconv+:} false; then :
13659   $as_echo_n "(cached) " >&6
13660 else
13661
13662     am_cv_func_iconv="no, consider installing GNU libiconv"
13663     am_cv_lib_iconv=no
13664     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h.  */
13666 #include <stdlib.h>
13667 #include <iconv.h>
13668 int
13669 main ()
13670 {
13671 iconv_t cd = iconv_open("","");
13672        iconv(cd,NULL,NULL,NULL,NULL);
13673        iconv_close(cd);
13674   ;
13675   return 0;
13676 }
13677 _ACEOF
13678 if ac_fn_c_try_link "$LINENO"; then :
13679   am_cv_func_iconv=yes
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext \
13682     conftest$ac_exeext conftest.$ac_ext
13683     if test "$am_cv_func_iconv" != yes; then
13684       am_save_LIBS="$LIBS"
13685       LIBS="$LIBS $LIBICONV"
13686       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h.  */
13688 #include <stdlib.h>
13689 #include <iconv.h>
13690 int
13691 main ()
13692 {
13693 iconv_t cd = iconv_open("","");
13694          iconv(cd,NULL,NULL,NULL,NULL);
13695          iconv_close(cd);
13696   ;
13697   return 0;
13698 }
13699 _ACEOF
13700 if ac_fn_c_try_link "$LINENO"; then :
13701   am_cv_lib_iconv=yes
13702         am_cv_func_iconv=yes
13703 fi
13704 rm -f core conftest.err conftest.$ac_objext \
13705     conftest$ac_exeext conftest.$ac_ext
13706       LIBS="$am_save_LIBS"
13707     fi
13708
13709 fi
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13711 $as_echo "$am_cv_func_iconv" >&6; }
13712   if test "$am_cv_func_iconv" = yes; then
13713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13714 $as_echo_n "checking for working iconv... " >&6; }
13715 if ${am_cv_func_iconv_works+:} false; then :
13716   $as_echo_n "(cached) " >&6
13717 else
13718
13719             am_save_LIBS="$LIBS"
13720       if test $am_cv_lib_iconv = yes; then
13721         LIBS="$LIBS $LIBICONV"
13722       fi
13723       if test "$cross_compiling" = yes; then :
13724   case "$host_os" in
13725            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13726            *)            am_cv_func_iconv_works="guessing yes" ;;
13727          esac
13728 else
13729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h.  */
13731
13732 #include <iconv.h>
13733 #include <string.h>
13734 int main ()
13735 {
13736   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13737      returns.  */
13738   {
13739     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13740     if (cd_utf8_to_88591 != (iconv_t)(-1))
13741       {
13742         static const char input[] = "\342\202\254"; /* EURO SIGN */
13743         char buf[10];
13744         const char *inptr = input;
13745         size_t inbytesleft = strlen (input);
13746         char *outptr = buf;
13747         size_t outbytesleft = sizeof (buf);
13748         size_t res = iconv (cd_utf8_to_88591,
13749                             (char **) &inptr, &inbytesleft,
13750                             &outptr, &outbytesleft);
13751         if (res == 0)
13752           return 1;
13753       }
13754   }
13755   /* Test against Solaris 10 bug: Failures are not distinguishable from
13756      successful returns.  */
13757   {
13758     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13759     if (cd_ascii_to_88591 != (iconv_t)(-1))
13760       {
13761         static const char input[] = "\263";
13762         char buf[10];
13763         const char *inptr = input;
13764         size_t inbytesleft = strlen (input);
13765         char *outptr = buf;
13766         size_t outbytesleft = sizeof (buf);
13767         size_t res = iconv (cd_ascii_to_88591,
13768                             (char **) &inptr, &inbytesleft,
13769                             &outptr, &outbytesleft);
13770         if (res == 0)
13771           return 1;
13772       }
13773   }
13774 #if 0 /* This bug could be worked around by the caller.  */
13775   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
13776   {
13777     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13778     if (cd_88591_to_utf8 != (iconv_t)(-1))
13779       {
13780         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13781         char buf[50];
13782         const char *inptr = input;
13783         size_t inbytesleft = strlen (input);
13784         char *outptr = buf;
13785         size_t outbytesleft = sizeof (buf);
13786         size_t res = iconv (cd_88591_to_utf8,
13787                             (char **) &inptr, &inbytesleft,
13788                             &outptr, &outbytesleft);
13789         if ((int)res > 0)
13790           return 1;
13791       }
13792   }
13793 #endif
13794   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13795      provided.  */
13796   if (/* Try standardized names.  */
13797       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13798       /* Try IRIX, OSF/1 names.  */
13799       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13800       /* Try AIX names.  */
13801       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13802       /* Try HP-UX names.  */
13803       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13804     return 1;
13805   return 0;
13806 }
13807 _ACEOF
13808 if ac_fn_c_try_run "$LINENO"; then :
13809   am_cv_func_iconv_works=yes
13810 else
13811   am_cv_func_iconv_works=no
13812 fi
13813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13814   conftest.$ac_objext conftest.beam conftest.$ac_ext
13815 fi
13816
13817       LIBS="$am_save_LIBS"
13818
13819 fi
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13821 $as_echo "$am_cv_func_iconv_works" >&6; }
13822     case "$am_cv_func_iconv_works" in
13823       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13824       *)   am_func_iconv=yes ;;
13825     esac
13826   else
13827     am_func_iconv=no am_cv_lib_iconv=no
13828   fi
13829   if test "$am_func_iconv" = yes; then
13830
13831 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13832
13833   fi
13834   if test "$am_cv_lib_iconv" = yes; then
13835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13836 $as_echo_n "checking how to link with libiconv... " >&6; }
13837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13838 $as_echo "$LIBICONV" >&6; }
13839   else
13840             CPPFLAGS="$am_save_CPPFLAGS"
13841     LIBICONV=
13842     LTLIBICONV=
13843   fi
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855     use_additional=yes
13856
13857   acl_save_prefix="$prefix"
13858   prefix="$acl_final_prefix"
13859   acl_save_exec_prefix="$exec_prefix"
13860   exec_prefix="$acl_final_exec_prefix"
13861
13862     eval additional_includedir=\"$includedir\"
13863     eval additional_libdir=\"$libdir\"
13864
13865   exec_prefix="$acl_save_exec_prefix"
13866   prefix="$acl_save_prefix"
13867
13868
13869 # Check whether --with-libintl-prefix was given.
13870 if test "${with_libintl_prefix+set}" = set; then :
13871   withval=$with_libintl_prefix;
13872     if test "X$withval" = "Xno"; then
13873       use_additional=no
13874     else
13875       if test "X$withval" = "X"; then
13876
13877   acl_save_prefix="$prefix"
13878   prefix="$acl_final_prefix"
13879   acl_save_exec_prefix="$exec_prefix"
13880   exec_prefix="$acl_final_exec_prefix"
13881
13882           eval additional_includedir=\"$includedir\"
13883           eval additional_libdir=\"$libdir\"
13884
13885   exec_prefix="$acl_save_exec_prefix"
13886   prefix="$acl_save_prefix"
13887
13888       else
13889         additional_includedir="$withval/include"
13890         additional_libdir="$withval/$acl_libdirstem"
13891         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13892            && ! test -d "$withval/$acl_libdirstem"; then
13893           additional_libdir="$withval/$acl_libdirstem2"
13894         fi
13895       fi
13896     fi
13897
13898 fi
13899
13900       LIBINTL=
13901   LTLIBINTL=
13902   INCINTL=
13903   LIBINTL_PREFIX=
13904       HAVE_LIBINTL=
13905   rpathdirs=
13906   ltrpathdirs=
13907   names_already_handled=
13908   names_next_round='intl '
13909   while test -n "$names_next_round"; do
13910     names_this_round="$names_next_round"
13911     names_next_round=
13912     for name in $names_this_round; do
13913       already_handled=
13914       for n in $names_already_handled; do
13915         if test "$n" = "$name"; then
13916           already_handled=yes
13917           break
13918         fi
13919       done
13920       if test -z "$already_handled"; then
13921         names_already_handled="$names_already_handled $name"
13922                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13923         eval value=\"\$HAVE_LIB$uppername\"
13924         if test -n "$value"; then
13925           if test "$value" = yes; then
13926             eval value=\"\$LIB$uppername\"
13927             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13928             eval value=\"\$LTLIB$uppername\"
13929             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13930           else
13931                                     :
13932           fi
13933         else
13934                               found_dir=
13935           found_la=
13936           found_so=
13937           found_a=
13938           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13939           if test -n "$acl_shlibext"; then
13940             shrext=".$acl_shlibext"             # typically: shrext=.so
13941           else
13942             shrext=
13943           fi
13944           if test $use_additional = yes; then
13945             dir="$additional_libdir"
13946                                     if test -n "$acl_shlibext"; then
13947               if test -f "$dir/$libname$shrext"; then
13948                 found_dir="$dir"
13949                 found_so="$dir/$libname$shrext"
13950               else
13951                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13952                   ver=`(cd "$dir" && \
13953                         for f in "$libname$shrext".*; do echo "$f"; done \
13954                         | sed -e "s,^$libname$shrext\\\\.,," \
13955                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13956                         | sed 1q ) 2>/dev/null`
13957                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13958                     found_dir="$dir"
13959                     found_so="$dir/$libname$shrext.$ver"
13960                   fi
13961                 else
13962                   eval library_names=\"$acl_library_names_spec\"
13963                   for f in $library_names; do
13964                     if test -f "$dir/$f"; then
13965                       found_dir="$dir"
13966                       found_so="$dir/$f"
13967                       break
13968                     fi
13969                   done
13970                 fi
13971               fi
13972             fi
13973                         if test "X$found_dir" = "X"; then
13974               if test -f "$dir/$libname.$acl_libext"; then
13975                 found_dir="$dir"
13976                 found_a="$dir/$libname.$acl_libext"
13977               fi
13978             fi
13979             if test "X$found_dir" != "X"; then
13980               if test -f "$dir/$libname.la"; then
13981                 found_la="$dir/$libname.la"
13982               fi
13983             fi
13984           fi
13985           if test "X$found_dir" = "X"; then
13986             for x in $LDFLAGS $LTLIBINTL; do
13987
13988   acl_save_prefix="$prefix"
13989   prefix="$acl_final_prefix"
13990   acl_save_exec_prefix="$exec_prefix"
13991   exec_prefix="$acl_final_exec_prefix"
13992   eval x=\"$x\"
13993   exec_prefix="$acl_save_exec_prefix"
13994   prefix="$acl_save_prefix"
13995
13996               case "$x" in
13997                 -L*)
13998                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13999                                     if test -n "$acl_shlibext"; then
14000                     if test -f "$dir/$libname$shrext"; then
14001                       found_dir="$dir"
14002                       found_so="$dir/$libname$shrext"
14003                     else
14004                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14005                         ver=`(cd "$dir" && \
14006                               for f in "$libname$shrext".*; do echo "$f"; done \
14007                               | sed -e "s,^$libname$shrext\\\\.,," \
14008                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14009                               | sed 1q ) 2>/dev/null`
14010                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14011                           found_dir="$dir"
14012                           found_so="$dir/$libname$shrext.$ver"
14013                         fi
14014                       else
14015                         eval library_names=\"$acl_library_names_spec\"
14016                         for f in $library_names; do
14017                           if test -f "$dir/$f"; then
14018                             found_dir="$dir"
14019                             found_so="$dir/$f"
14020                             break
14021                           fi
14022                         done
14023                       fi
14024                     fi
14025                   fi
14026                                     if test "X$found_dir" = "X"; then
14027                     if test -f "$dir/$libname.$acl_libext"; then
14028                       found_dir="$dir"
14029                       found_a="$dir/$libname.$acl_libext"
14030                     fi
14031                   fi
14032                   if test "X$found_dir" != "X"; then
14033                     if test -f "$dir/$libname.la"; then
14034                       found_la="$dir/$libname.la"
14035                     fi
14036                   fi
14037                   ;;
14038               esac
14039               if test "X$found_dir" != "X"; then
14040                 break
14041               fi
14042             done
14043           fi
14044           if test "X$found_dir" != "X"; then
14045                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14046             if test "X$found_so" != "X"; then
14047                                                         if test "$enable_rpath" = no \
14048                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14049                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14050                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14051               else
14052                                                                                 haveit=
14053                 for x in $ltrpathdirs; do
14054                   if test "X$x" = "X$found_dir"; then
14055                     haveit=yes
14056                     break
14057                   fi
14058                 done
14059                 if test -z "$haveit"; then
14060                   ltrpathdirs="$ltrpathdirs $found_dir"
14061                 fi
14062                                 if test "$acl_hardcode_direct" = yes; then
14063                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14064                 else
14065                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14066                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14067                                                             haveit=
14068                     for x in $rpathdirs; do
14069                       if test "X$x" = "X$found_dir"; then
14070                         haveit=yes
14071                         break
14072                       fi
14073                     done
14074                     if test -z "$haveit"; then
14075                       rpathdirs="$rpathdirs $found_dir"
14076                     fi
14077                   else
14078                                                                                 haveit=
14079                     for x in $LDFLAGS $LIBINTL; do
14080
14081   acl_save_prefix="$prefix"
14082   prefix="$acl_final_prefix"
14083   acl_save_exec_prefix="$exec_prefix"
14084   exec_prefix="$acl_final_exec_prefix"
14085   eval x=\"$x\"
14086   exec_prefix="$acl_save_exec_prefix"
14087   prefix="$acl_save_prefix"
14088
14089                       if test "X$x" = "X-L$found_dir"; then
14090                         haveit=yes
14091                         break
14092                       fi
14093                     done
14094                     if test -z "$haveit"; then
14095                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14096                     fi
14097                     if test "$acl_hardcode_minus_L" != no; then
14098                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14099                     else
14100                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14101                     fi
14102                   fi
14103                 fi
14104               fi
14105             else
14106               if test "X$found_a" != "X"; then
14107                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14108               else
14109                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14110               fi
14111             fi
14112                         additional_includedir=
14113             case "$found_dir" in
14114               */$acl_libdirstem | */$acl_libdirstem/)
14115                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14116                 if test "$name" = 'intl'; then
14117                   LIBINTL_PREFIX="$basedir"
14118                 fi
14119                 additional_includedir="$basedir/include"
14120                 ;;
14121               */$acl_libdirstem2 | */$acl_libdirstem2/)
14122                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14123                 if test "$name" = 'intl'; then
14124                   LIBINTL_PREFIX="$basedir"
14125                 fi
14126                 additional_includedir="$basedir/include"
14127                 ;;
14128             esac
14129             if test "X$additional_includedir" != "X"; then
14130                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14131                 haveit=
14132                 if test "X$additional_includedir" = "X/usr/local/include"; then
14133                   if test -n "$GCC"; then
14134                     case $host_os in
14135                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14136                     esac
14137                   fi
14138                 fi
14139                 if test -z "$haveit"; then
14140                   for x in $CPPFLAGS $INCINTL; do
14141
14142   acl_save_prefix="$prefix"
14143   prefix="$acl_final_prefix"
14144   acl_save_exec_prefix="$exec_prefix"
14145   exec_prefix="$acl_final_exec_prefix"
14146   eval x=\"$x\"
14147   exec_prefix="$acl_save_exec_prefix"
14148   prefix="$acl_save_prefix"
14149
14150                     if test "X$x" = "X-I$additional_includedir"; then
14151                       haveit=yes
14152                       break
14153                     fi
14154                   done
14155                   if test -z "$haveit"; then
14156                     if test -d "$additional_includedir"; then
14157                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14158                     fi
14159                   fi
14160                 fi
14161               fi
14162             fi
14163                         if test -n "$found_la"; then
14164                                                         save_libdir="$libdir"
14165               case "$found_la" in
14166                 */* | *\\*) . "$found_la" ;;
14167                 *) . "./$found_la" ;;
14168               esac
14169               libdir="$save_libdir"
14170                             for dep in $dependency_libs; do
14171                 case "$dep" in
14172                   -L*)
14173                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14174                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14175                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14176                       haveit=
14177                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14178                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14179                         if test -n "$GCC"; then
14180                           case $host_os in
14181                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14182                           esac
14183                         fi
14184                       fi
14185                       if test -z "$haveit"; then
14186                         haveit=
14187                         for x in $LDFLAGS $LIBINTL; do
14188
14189   acl_save_prefix="$prefix"
14190   prefix="$acl_final_prefix"
14191   acl_save_exec_prefix="$exec_prefix"
14192   exec_prefix="$acl_final_exec_prefix"
14193   eval x=\"$x\"
14194   exec_prefix="$acl_save_exec_prefix"
14195   prefix="$acl_save_prefix"
14196
14197                           if test "X$x" = "X-L$additional_libdir"; then
14198                             haveit=yes
14199                             break
14200                           fi
14201                         done
14202                         if test -z "$haveit"; then
14203                           if test -d "$additional_libdir"; then
14204                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14205                           fi
14206                         fi
14207                         haveit=
14208                         for x in $LDFLAGS $LTLIBINTL; do
14209
14210   acl_save_prefix="$prefix"
14211   prefix="$acl_final_prefix"
14212   acl_save_exec_prefix="$exec_prefix"
14213   exec_prefix="$acl_final_exec_prefix"
14214   eval x=\"$x\"
14215   exec_prefix="$acl_save_exec_prefix"
14216   prefix="$acl_save_prefix"
14217
14218                           if test "X$x" = "X-L$additional_libdir"; then
14219                             haveit=yes
14220                             break
14221                           fi
14222                         done
14223                         if test -z "$haveit"; then
14224                           if test -d "$additional_libdir"; then
14225                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14226                           fi
14227                         fi
14228                       fi
14229                     fi
14230                     ;;
14231                   -R*)
14232                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14233                     if test "$enable_rpath" != no; then
14234                                                                   haveit=
14235                       for x in $rpathdirs; do
14236                         if test "X$x" = "X$dir"; then
14237                           haveit=yes
14238                           break
14239                         fi
14240                       done
14241                       if test -z "$haveit"; then
14242                         rpathdirs="$rpathdirs $dir"
14243                       fi
14244                                                                   haveit=
14245                       for x in $ltrpathdirs; do
14246                         if test "X$x" = "X$dir"; then
14247                           haveit=yes
14248                           break
14249                         fi
14250                       done
14251                       if test -z "$haveit"; then
14252                         ltrpathdirs="$ltrpathdirs $dir"
14253                       fi
14254                     fi
14255                     ;;
14256                   -l*)
14257                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14258                     ;;
14259                   *.la)
14260                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14261                     ;;
14262                   *)
14263                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14264                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14265                     ;;
14266                 esac
14267               done
14268             fi
14269           else
14270                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14271             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14272           fi
14273         fi
14274       fi
14275     done
14276   done
14277   if test "X$rpathdirs" != "X"; then
14278     if test -n "$acl_hardcode_libdir_separator"; then
14279                         alldirs=
14280       for found_dir in $rpathdirs; do
14281         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14282       done
14283             acl_save_libdir="$libdir"
14284       libdir="$alldirs"
14285       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14286       libdir="$acl_save_libdir"
14287       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14288     else
14289             for found_dir in $rpathdirs; do
14290         acl_save_libdir="$libdir"
14291         libdir="$found_dir"
14292         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14293         libdir="$acl_save_libdir"
14294         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14295       done
14296     fi
14297   fi
14298   if test "X$ltrpathdirs" != "X"; then
14299             for found_dir in $ltrpathdirs; do
14300       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14301     done
14302   fi
14303
14304
14305
14306
14307
14308
14309           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14310 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14311 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14312   $as_echo_n "(cached) " >&6
14313 else
14314   gt_save_CPPFLAGS="$CPPFLAGS"
14315             CPPFLAGS="$CPPFLAGS $INCINTL"
14316             gt_save_LIBS="$LIBS"
14317             LIBS="$LIBS $LIBINTL"
14318                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h.  */
14320 #include <libintl.h>
14321 $gt_revision_test_code
14322 extern int _nl_msg_cat_cntr;
14323 extern
14324 #ifdef __cplusplus
14325 "C"
14326 #endif
14327 const char *_nl_expand_alias (const char *);
14328 int
14329 main ()
14330 {
14331 bindtextdomain ("", "");
14332 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14333   ;
14334   return 0;
14335 }
14336 _ACEOF
14337 if ac_fn_c_try_link "$LINENO"; then :
14338   eval "$gt_func_gnugettext_libintl=yes"
14339 else
14340   eval "$gt_func_gnugettext_libintl=no"
14341 fi
14342 rm -f core conftest.err conftest.$ac_objext \
14343     conftest$ac_exeext conftest.$ac_ext
14344                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14345               LIBS="$LIBS $LIBICONV"
14346               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h.  */
14348 #include <libintl.h>
14349 $gt_revision_test_code
14350 extern int _nl_msg_cat_cntr;
14351 extern
14352 #ifdef __cplusplus
14353 "C"
14354 #endif
14355 const char *_nl_expand_alias (const char *);
14356 int
14357 main ()
14358 {
14359 bindtextdomain ("", "");
14360 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14361   ;
14362   return 0;
14363 }
14364 _ACEOF
14365 if ac_fn_c_try_link "$LINENO"; then :
14366   LIBINTL="$LIBINTL $LIBICONV"
14367                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14368                 eval "$gt_func_gnugettext_libintl=yes"
14369
14370 fi
14371 rm -f core conftest.err conftest.$ac_objext \
14372     conftest$ac_exeext conftest.$ac_ext
14373             fi
14374             CPPFLAGS="$gt_save_CPPFLAGS"
14375             LIBS="$gt_save_LIBS"
14376 fi
14377 eval ac_res=\$$gt_func_gnugettext_libintl
14378                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14379 $as_echo "$ac_res" >&6; }
14380         fi
14381
14382                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14383            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14384                 && test "$PACKAGE" != gettext-runtime \
14385                 && test "$PACKAGE" != gettext-tools; }; then
14386           gt_use_preinstalled_gnugettext=yes
14387         else
14388                     LIBINTL=
14389           LTLIBINTL=
14390           INCINTL=
14391         fi
14392
14393
14394
14395     if test -n "$INTL_MACOSX_LIBS"; then
14396       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14397          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14398                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14399         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14400       fi
14401     fi
14402
14403     if test "$gt_use_preinstalled_gnugettext" = "yes" \
14404        || test "$nls_cv_use_gnu_gettext" = "yes"; then
14405
14406 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14407
14408     else
14409       USE_NLS=no
14410     fi
14411   fi
14412
14413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14414 $as_echo_n "checking whether to use NLS... " >&6; }
14415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14416 $as_echo "$USE_NLS" >&6; }
14417   if test "$USE_NLS" = "yes"; then
14418     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14419 $as_echo_n "checking where the gettext function comes from... " >&6; }
14420     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14421       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14422         gt_source="external libintl"
14423       else
14424         gt_source="libc"
14425       fi
14426     else
14427       gt_source="included intl directory"
14428     fi
14429     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14430 $as_echo "$gt_source" >&6; }
14431   fi
14432
14433   if test "$USE_NLS" = "yes"; then
14434
14435     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14436       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14437         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14438 $as_echo_n "checking how to link with libintl... " >&6; }
14439         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14440 $as_echo "$LIBINTL" >&6; }
14441
14442   for element in $INCINTL; do
14443     haveit=
14444     for x in $CPPFLAGS; do
14445
14446   acl_save_prefix="$prefix"
14447   prefix="$acl_final_prefix"
14448   acl_save_exec_prefix="$exec_prefix"
14449   exec_prefix="$acl_final_exec_prefix"
14450   eval x=\"$x\"
14451   exec_prefix="$acl_save_exec_prefix"
14452   prefix="$acl_save_prefix"
14453
14454       if test "X$x" = "X$element"; then
14455         haveit=yes
14456         break
14457       fi
14458     done
14459     if test -z "$haveit"; then
14460       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14461     fi
14462   done
14463
14464       fi
14465
14466
14467 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14468
14469
14470 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14471
14472     fi
14473
14474         POSUB=po
14475   fi
14476
14477
14478
14479     INTLLIBS="$LIBINTL"
14480
14481
14482
14483
14484
14485
14486
14487
14488 for ac_header in sys/file.h sys/termios.h string.h locale.h getopt.h
14489 do :
14490   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14491 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14492 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14493   cat >>confdefs.h <<_ACEOF
14494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14495 _ACEOF
14496
14497 fi
14498
14499 done
14500
14501
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldbm" >&5
14503 $as_echo_n "checking for main in -ldbm... " >&6; }
14504 if ${ac_cv_lib_dbm_main+:} false; then :
14505   $as_echo_n "(cached) " >&6
14506 else
14507   ac_check_lib_save_LIBS=$LIBS
14508 LIBS="-ldbm  $LIBS"
14509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h.  */
14511
14512
14513 int
14514 main ()
14515 {
14516 return main ();
14517   ;
14518   return 0;
14519 }
14520 _ACEOF
14521 if ac_fn_c_try_link "$LINENO"; then :
14522   ac_cv_lib_dbm_main=yes
14523 else
14524   ac_cv_lib_dbm_main=no
14525 fi
14526 rm -f core conftest.err conftest.$ac_objext \
14527     conftest$ac_exeext conftest.$ac_ext
14528 LIBS=$ac_check_lib_save_LIBS
14529 fi
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbm_main" >&5
14531 $as_echo "$ac_cv_lib_dbm_main" >&6; }
14532 if test "x$ac_cv_lib_dbm_main" = xyes; then :
14533   cat >>confdefs.h <<_ACEOF
14534 #define HAVE_LIBDBM 1
14535 _ACEOF
14536
14537   LIBS="-ldbm $LIBS"
14538
14539 fi
14540
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lndbm" >&5
14542 $as_echo_n "checking for main in -lndbm... " >&6; }
14543 if ${ac_cv_lib_ndbm_main+:} false; then :
14544   $as_echo_n "(cached) " >&6
14545 else
14546   ac_check_lib_save_LIBS=$LIBS
14547 LIBS="-lndbm  $LIBS"
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h.  */
14550
14551
14552 int
14553 main ()
14554 {
14555 return main ();
14556   ;
14557   return 0;
14558 }
14559 _ACEOF
14560 if ac_fn_c_try_link "$LINENO"; then :
14561   ac_cv_lib_ndbm_main=yes
14562 else
14563   ac_cv_lib_ndbm_main=no
14564 fi
14565 rm -f core conftest.err conftest.$ac_objext \
14566     conftest$ac_exeext conftest.$ac_ext
14567 LIBS=$ac_check_lib_save_LIBS
14568 fi
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_main" >&5
14570 $as_echo "$ac_cv_lib_ndbm_main" >&6; }
14571 if test "x$ac_cv_lib_ndbm_main" = xyes; then :
14572   cat >>confdefs.h <<_ACEOF
14573 #define HAVE_LIBNDBM 1
14574 _ACEOF
14575
14576   LIBS="-lndbm $LIBS"
14577
14578 fi
14579
14580 for ac_func in rename ftruncate flock lockf fsync setlocale getopt_long
14581 do :
14582   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14583 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14584 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14585   cat >>confdefs.h <<_ACEOF
14586 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14587 _ACEOF
14588
14589 fi
14590 done
14591
14592
14593 if test x$mapped_io = xyes
14594 then
14595
14596
14597
14598   for ac_header in $ac_header_list
14599 do :
14600   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14601 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14602 "
14603 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14604   cat >>confdefs.h <<_ACEOF
14605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14606 _ACEOF
14607
14608 fi
14609
14610 done
14611
14612
14613
14614
14615
14616
14617
14618
14619 for ac_func in getpagesize
14620 do :
14621   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14622 if test "x$ac_cv_func_getpagesize" = xyes; then :
14623   cat >>confdefs.h <<_ACEOF
14624 #define HAVE_GETPAGESIZE 1
14625 _ACEOF
14626
14627 fi
14628 done
14629
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14631 $as_echo_n "checking for working mmap... " >&6; }
14632 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14633   $as_echo_n "(cached) " >&6
14634 else
14635   if test "$cross_compiling" = yes; then :
14636   ac_cv_func_mmap_fixed_mapped=no
14637 else
14638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14639 /* end confdefs.h.  */
14640 $ac_includes_default
14641 /* malloc might have been renamed as rpl_malloc. */
14642 #undef malloc
14643
14644 /* Thanks to Mike Haertel and Jim Avera for this test.
14645    Here is a matrix of mmap possibilities:
14646         mmap private not fixed
14647         mmap private fixed at somewhere currently unmapped
14648         mmap private fixed at somewhere already mapped
14649         mmap shared not fixed
14650         mmap shared fixed at somewhere currently unmapped
14651         mmap shared fixed at somewhere already mapped
14652    For private mappings, we should verify that changes cannot be read()
14653    back from the file, nor mmap's back from the file at a different
14654    address.  (There have been systems where private was not correctly
14655    implemented like the infamous i386 svr4.0, and systems where the
14656    VM page cache was not coherent with the file system buffer cache
14657    like early versions of FreeBSD and possibly contemporary NetBSD.)
14658    For shared mappings, we should conversely verify that changes get
14659    propagated back to all the places they're supposed to be.
14660
14661    Grep wants private fixed already mapped.
14662    The main things grep needs to know about mmap are:
14663    * does it exist and is it safe to write into the mmap'd area
14664    * how to use it (BSD variants)  */
14665
14666 #include <fcntl.h>
14667 #include <sys/mman.h>
14668
14669 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14670 char *malloc ();
14671 #endif
14672
14673 /* This mess was copied from the GNU getpagesize.h.  */
14674 #ifndef HAVE_GETPAGESIZE
14675 # ifdef _SC_PAGESIZE
14676 #  define getpagesize() sysconf(_SC_PAGESIZE)
14677 # else /* no _SC_PAGESIZE */
14678 #  ifdef HAVE_SYS_PARAM_H
14679 #   include <sys/param.h>
14680 #   ifdef EXEC_PAGESIZE
14681 #    define getpagesize() EXEC_PAGESIZE
14682 #   else /* no EXEC_PAGESIZE */
14683 #    ifdef NBPG
14684 #     define getpagesize() NBPG * CLSIZE
14685 #     ifndef CLSIZE
14686 #      define CLSIZE 1
14687 #     endif /* no CLSIZE */
14688 #    else /* no NBPG */
14689 #     ifdef NBPC
14690 #      define getpagesize() NBPC
14691 #     else /* no NBPC */
14692 #      ifdef PAGESIZE
14693 #       define getpagesize() PAGESIZE
14694 #      endif /* PAGESIZE */
14695 #     endif /* no NBPC */
14696 #    endif /* no NBPG */
14697 #   endif /* no EXEC_PAGESIZE */
14698 #  else /* no HAVE_SYS_PARAM_H */
14699 #   define getpagesize() 8192   /* punt totally */
14700 #  endif /* no HAVE_SYS_PARAM_H */
14701 # endif /* no _SC_PAGESIZE */
14702
14703 #endif /* no HAVE_GETPAGESIZE */
14704
14705 int
14706 main ()
14707 {
14708   char *data, *data2, *data3;
14709   const char *cdata2;
14710   int i, pagesize;
14711   int fd, fd2;
14712
14713   pagesize = getpagesize ();
14714
14715   /* First, make a file with some known garbage in it. */
14716   data = (char *) malloc (pagesize);
14717   if (!data)
14718     return 1;
14719   for (i = 0; i < pagesize; ++i)
14720     *(data + i) = rand ();
14721   umask (0);
14722   fd = creat ("conftest.mmap", 0600);
14723   if (fd < 0)
14724     return 2;
14725   if (write (fd, data, pagesize) != pagesize)
14726     return 3;
14727   close (fd);
14728
14729   /* Next, check that the tail of a page is zero-filled.  File must have
14730      non-zero length, otherwise we risk SIGBUS for entire page.  */
14731   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14732   if (fd2 < 0)
14733     return 4;
14734   cdata2 = "";
14735   if (write (fd2, cdata2, 1) != 1)
14736     return 5;
14737   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14738   if (data2 == MAP_FAILED)
14739     return 6;
14740   for (i = 0; i < pagesize; ++i)
14741     if (*(data2 + i))
14742       return 7;
14743   close (fd2);
14744   if (munmap (data2, pagesize))
14745     return 8;
14746
14747   /* Next, try to mmap the file at a fixed address which already has
14748      something else allocated at it.  If we can, also make sure that
14749      we see the same garbage.  */
14750   fd = open ("conftest.mmap", O_RDWR);
14751   if (fd < 0)
14752     return 9;
14753   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14754                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14755     return 10;
14756   for (i = 0; i < pagesize; ++i)
14757     if (*(data + i) != *(data2 + i))
14758       return 11;
14759
14760   /* Finally, make sure that changes to the mapped area do not
14761      percolate back to the file as seen by read().  (This is a bug on
14762      some variants of i386 svr4.0.)  */
14763   for (i = 0; i < pagesize; ++i)
14764     *(data2 + i) = *(data2 + i) + 1;
14765   data3 = (char *) malloc (pagesize);
14766   if (!data3)
14767     return 12;
14768   if (read (fd, data3, pagesize) != pagesize)
14769     return 13;
14770   for (i = 0; i < pagesize; ++i)
14771     if (*(data + i) != *(data3 + i))
14772       return 14;
14773   close (fd);
14774   return 0;
14775 }
14776 _ACEOF
14777 if ac_fn_c_try_run "$LINENO"; then :
14778   ac_cv_func_mmap_fixed_mapped=yes
14779 else
14780   ac_cv_func_mmap_fixed_mapped=no
14781 fi
14782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14783   conftest.$ac_objext conftest.beam conftest.$ac_ext
14784 fi
14785
14786 fi
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14788 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14789 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14790
14791 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14792
14793 fi
14794 rm -f conftest.mmap conftest.txt
14795
14796   for ac_func in msync
14797 do :
14798   ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
14799 if test "x$ac_cv_func_msync" = xyes; then :
14800   cat >>confdefs.h <<_ACEOF
14801 #define HAVE_MSYNC 1
14802 _ACEOF
14803
14804 fi
14805 done
14806
14807 fi
14808 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14809 if test "x$ac_cv_type_off_t" = xyes; then :
14810
14811 else
14812
14813 cat >>confdefs.h <<_ACEOF
14814 #define off_t long int
14815 _ACEOF
14816
14817 fi
14818
14819 # The cast to long int works around a bug in the HP C Compiler
14820 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14821 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14822 # This bug is HP SR number 8606223364.
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14824 $as_echo_n "checking size of off_t... " >&6; }
14825 if ${ac_cv_sizeof_off_t+:} false; then :
14826   $as_echo_n "(cached) " >&6
14827 else
14828   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
14829
14830 else
14831   if test "$ac_cv_type_off_t" = yes; then
14832      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14834 as_fn_error 77 "cannot compute sizeof (off_t)
14835 See \`config.log' for more details" "$LINENO" 5; }
14836    else
14837      ac_cv_sizeof_off_t=0
14838    fi
14839 fi
14840
14841 fi
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14843 $as_echo "$ac_cv_sizeof_off_t" >&6; }
14844
14845
14846
14847 cat >>confdefs.h <<_ACEOF
14848 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14849 _ACEOF
14850
14851
14852 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
14853 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
14854
14855 cat >>confdefs.h <<_ACEOF
14856 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14857 _ACEOF
14858
14859
14860 fi
14861
14862
14863
14864
14865
14866  if test "$want_compat" = yes; then
14867   COMPAT_OPT_TRUE=
14868   COMPAT_OPT_FALSE='#'
14869 else
14870   COMPAT_OPT_TRUE='#'
14871   COMPAT_OPT_FALSE=
14872 fi
14873
14874  if test "$want_export" = yes; then
14875   ENABLE_EXPORT_TRUE=
14876   ENABLE_EXPORT_FALSE='#'
14877 else
14878   ENABLE_EXPORT_TRUE='#'
14879   ENABLE_EXPORT_FALSE=
14880 fi
14881
14882
14883 # Initialize the test suite.
14884 ac_config_commands="$ac_config_commands tests/atconfig"
14885
14886 ac_config_files="$ac_config_files tests/Makefile tests/atlocal po/Makefile.in"
14887
14888
14889 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
14890
14891
14892 ac_config_files="$ac_config_files Makefile src/Makefile src/gdbm.h doc/Makefile compat/Makefile export/Makefile"
14893
14894 cat >confcache <<\_ACEOF
14895 # This file is a shell script that caches the results of configure
14896 # tests run on this system so they can be shared between configure
14897 # scripts and configure runs, see configure's option --config-cache.
14898 # It is not useful on other systems.  If it contains results you don't
14899 # want to keep, you may remove or edit it.
14900 #
14901 # config.status only pays attention to the cache file if you give it
14902 # the --recheck option to rerun configure.
14903 #
14904 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14905 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14906 # following values.
14907
14908 _ACEOF
14909
14910 # The following way of writing the cache mishandles newlines in values,
14911 # but we know of no workaround that is simple, portable, and efficient.
14912 # So, we kill variables containing newlines.
14913 # Ultrix sh set writes to stderr and can't be redirected directly,
14914 # and sets the high bit in the cache file unless we assign to the vars.
14915 (
14916   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14917     eval ac_val=\$$ac_var
14918     case $ac_val in #(
14919     *${as_nl}*)
14920       case $ac_var in #(
14921       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14922 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14923       esac
14924       case $ac_var in #(
14925       _ | IFS | as_nl) ;; #(
14926       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14927       *) { eval $ac_var=; unset $ac_var;} ;;
14928       esac ;;
14929     esac
14930   done
14931
14932   (set) 2>&1 |
14933     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14934     *${as_nl}ac_space=\ *)
14935       # `set' does not quote correctly, so add quotes: double-quote
14936       # substitution turns \\\\ into \\, and sed turns \\ into \.
14937       sed -n \
14938         "s/'/'\\\\''/g;
14939           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14940       ;; #(
14941     *)
14942       # `set' quotes correctly as required by POSIX, so do not add quotes.
14943       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14944       ;;
14945     esac |
14946     sort
14947 ) |
14948   sed '
14949      /^ac_cv_env_/b end
14950      t clear
14951      :clear
14952      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14953      t end
14954      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14955      :end' >>confcache
14956 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14957   if test -w "$cache_file"; then
14958     if test "x$cache_file" != "x/dev/null"; then
14959       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14960 $as_echo "$as_me: updating cache $cache_file" >&6;}
14961       if test ! -f "$cache_file" || test -h "$cache_file"; then
14962         cat confcache >"$cache_file"
14963       else
14964         case $cache_file in #(
14965         */* | ?:*)
14966           mv -f confcache "$cache_file"$$ &&
14967           mv -f "$cache_file"$$ "$cache_file" ;; #(
14968         *)
14969           mv -f confcache "$cache_file" ;;
14970         esac
14971       fi
14972     fi
14973   else
14974     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14975 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14976   fi
14977 fi
14978 rm -f confcache
14979
14980 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14981 # Let make expand exec_prefix.
14982 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14983
14984 DEFS=-DHAVE_CONFIG_H
14985
14986 ac_libobjs=
14987 ac_ltlibobjs=
14988 U=
14989 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14990   # 1. Remove the extension, and $U if already installed.
14991   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14992   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14993   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14994   #    will be set to the directory where LIBOBJS objects are built.
14995   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14996   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14997 done
14998 LIBOBJS=$ac_libobjs
14999
15000 LTLIBOBJS=$ac_ltlibobjs
15001
15002
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15004 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15005    if test -n "$am_sleep_pid"; then
15006      # Hide warnings about reused PIDs.
15007      wait $am_sleep_pid 2>/dev/null
15008    fi
15009    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15010 $as_echo "done" >&6; }
15011  if test -n "$EXEEXT"; then
15012   am__EXEEXT_TRUE=
15013   am__EXEEXT_FALSE='#'
15014 else
15015   am__EXEEXT_TRUE='#'
15016   am__EXEEXT_FALSE=
15017 fi
15018
15019 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15020   as_fn_error $? "conditional \"AMDEP\" was never defined.
15021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15022 fi
15023 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15024   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15026 fi
15027 if test -z "${COMPAT_OPT_TRUE}" && test -z "${COMPAT_OPT_FALSE}"; then
15028   as_fn_error $? "conditional \"COMPAT_OPT\" was never defined.
15029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15030 fi
15031 if test -z "${ENABLE_EXPORT_TRUE}" && test -z "${ENABLE_EXPORT_FALSE}"; then
15032   as_fn_error $? "conditional \"ENABLE_EXPORT\" was never defined.
15033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15034 fi
15035
15036 : "${CONFIG_STATUS=./config.status}"
15037 ac_write_fail=0
15038 ac_clean_files_save=$ac_clean_files
15039 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15041 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15042 as_write_fail=0
15043 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15044 #! $SHELL
15045 # Generated by $as_me.
15046 # Run this file to recreate the current configuration.
15047 # Compiler output produced by configure, useful for debugging
15048 # configure, is in config.log if it exists.
15049
15050 debug=false
15051 ac_cs_recheck=false
15052 ac_cs_silent=false
15053
15054 SHELL=\${CONFIG_SHELL-$SHELL}
15055 export SHELL
15056 _ASEOF
15057 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15058 ## -------------------- ##
15059 ## M4sh Initialization. ##
15060 ## -------------------- ##
15061
15062 # Be more Bourne compatible
15063 DUALCASE=1; export DUALCASE # for MKS sh
15064 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15065   emulate sh
15066   NULLCMD=:
15067   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15068   # is contrary to our usage.  Disable this feature.
15069   alias -g '${1+"$@"}'='"$@"'
15070   setopt NO_GLOB_SUBST
15071 else
15072   case `(set -o) 2>/dev/null` in #(
15073   *posix*) :
15074     set -o posix ;; #(
15075   *) :
15076      ;;
15077 esac
15078 fi
15079
15080
15081 as_nl='
15082 '
15083 export as_nl
15084 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15085 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15086 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15087 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15088 # Prefer a ksh shell builtin over an external printf program on Solaris,
15089 # but without wasting forks for bash or zsh.
15090 if test -z "$BASH_VERSION$ZSH_VERSION" \
15091     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15092   as_echo='print -r --'
15093   as_echo_n='print -rn --'
15094 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15095   as_echo='printf %s\n'
15096   as_echo_n='printf %s'
15097 else
15098   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15099     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15100     as_echo_n='/usr/ucb/echo -n'
15101   else
15102     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15103     as_echo_n_body='eval
15104       arg=$1;
15105       case $arg in #(
15106       *"$as_nl"*)
15107         expr "X$arg" : "X\\(.*\\)$as_nl";
15108         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15109       esac;
15110       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15111     '
15112     export as_echo_n_body
15113     as_echo_n='sh -c $as_echo_n_body as_echo'
15114   fi
15115   export as_echo_body
15116   as_echo='sh -c $as_echo_body as_echo'
15117 fi
15118
15119 # The user is always right.
15120 if test "${PATH_SEPARATOR+set}" != set; then
15121   PATH_SEPARATOR=:
15122   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15123     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15124       PATH_SEPARATOR=';'
15125   }
15126 fi
15127
15128
15129 # IFS
15130 # We need space, tab and new line, in precisely that order.  Quoting is
15131 # there to prevent editors from complaining about space-tab.
15132 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15133 # splitting by setting IFS to empty value.)
15134 IFS=" ""        $as_nl"
15135
15136 # Find who we are.  Look in the path if we contain no directory separator.
15137 as_myself=
15138 case $0 in #((
15139   *[\\/]* ) as_myself=$0 ;;
15140   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15141 for as_dir in $PATH
15142 do
15143   IFS=$as_save_IFS
15144   test -z "$as_dir" && as_dir=.
15145     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15146   done
15147 IFS=$as_save_IFS
15148
15149      ;;
15150 esac
15151 # We did not find ourselves, most probably we were run as `sh COMMAND'
15152 # in which case we are not to be found in the path.
15153 if test "x$as_myself" = x; then
15154   as_myself=$0
15155 fi
15156 if test ! -f "$as_myself"; then
15157   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15158   exit 1
15159 fi
15160
15161 # Unset variables that we do not need and which cause bugs (e.g. in
15162 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15163 # suppresses any "Segmentation fault" message there.  '((' could
15164 # trigger a bug in pdksh 5.2.14.
15165 for as_var in BASH_ENV ENV MAIL MAILPATH
15166 do eval test x\${$as_var+set} = xset \
15167   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15168 done
15169 PS1='$ '
15170 PS2='> '
15171 PS4='+ '
15172
15173 # NLS nuisances.
15174 LC_ALL=C
15175 export LC_ALL
15176 LANGUAGE=C
15177 export LANGUAGE
15178
15179 # CDPATH.
15180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15181
15182
15183 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15184 # ----------------------------------------
15185 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15186 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15187 # script with STATUS, using 1 if that was 0.
15188 as_fn_error ()
15189 {
15190   as_status=$1; test $as_status -eq 0 && as_status=1
15191   if test "$4"; then
15192     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15193     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15194   fi
15195   $as_echo "$as_me: error: $2" >&2
15196   as_fn_exit $as_status
15197 } # as_fn_error
15198
15199
15200 # as_fn_set_status STATUS
15201 # -----------------------
15202 # Set $? to STATUS, without forking.
15203 as_fn_set_status ()
15204 {
15205   return $1
15206 } # as_fn_set_status
15207
15208 # as_fn_exit STATUS
15209 # -----------------
15210 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15211 as_fn_exit ()
15212 {
15213   set +e
15214   as_fn_set_status $1
15215   exit $1
15216 } # as_fn_exit
15217
15218 # as_fn_unset VAR
15219 # ---------------
15220 # Portably unset VAR.
15221 as_fn_unset ()
15222 {
15223   { eval $1=; unset $1;}
15224 }
15225 as_unset=as_fn_unset
15226 # as_fn_append VAR VALUE
15227 # ----------------------
15228 # Append the text in VALUE to the end of the definition contained in VAR. Take
15229 # advantage of any shell optimizations that allow amortized linear growth over
15230 # repeated appends, instead of the typical quadratic growth present in naive
15231 # implementations.
15232 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15233   eval 'as_fn_append ()
15234   {
15235     eval $1+=\$2
15236   }'
15237 else
15238   as_fn_append ()
15239   {
15240     eval $1=\$$1\$2
15241   }
15242 fi # as_fn_append
15243
15244 # as_fn_arith ARG...
15245 # ------------------
15246 # Perform arithmetic evaluation on the ARGs, and store the result in the
15247 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15248 # must be portable across $(()) and expr.
15249 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15250   eval 'as_fn_arith ()
15251   {
15252     as_val=$(( $* ))
15253   }'
15254 else
15255   as_fn_arith ()
15256   {
15257     as_val=`expr "$@" || test $? -eq 1`
15258   }
15259 fi # as_fn_arith
15260
15261
15262 if expr a : '\(a\)' >/dev/null 2>&1 &&
15263    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15264   as_expr=expr
15265 else
15266   as_expr=false
15267 fi
15268
15269 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15270   as_basename=basename
15271 else
15272   as_basename=false
15273 fi
15274
15275 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15276   as_dirname=dirname
15277 else
15278   as_dirname=false
15279 fi
15280
15281 as_me=`$as_basename -- "$0" ||
15282 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15283          X"$0" : 'X\(//\)$' \| \
15284          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15285 $as_echo X/"$0" |
15286     sed '/^.*\/\([^/][^/]*\)\/*$/{
15287             s//\1/
15288             q
15289           }
15290           /^X\/\(\/\/\)$/{
15291             s//\1/
15292             q
15293           }
15294           /^X\/\(\/\).*/{
15295             s//\1/
15296             q
15297           }
15298           s/.*/./; q'`
15299
15300 # Avoid depending upon Character Ranges.
15301 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15302 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15303 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15304 as_cr_digits='0123456789'
15305 as_cr_alnum=$as_cr_Letters$as_cr_digits
15306
15307 ECHO_C= ECHO_N= ECHO_T=
15308 case `echo -n x` in #(((((
15309 -n*)
15310   case `echo 'xy\c'` in
15311   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15312   xy)  ECHO_C='\c';;
15313   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15314        ECHO_T=' ';;
15315   esac;;
15316 *)
15317   ECHO_N='-n';;
15318 esac
15319
15320 rm -f conf$$ conf$$.exe conf$$.file
15321 if test -d conf$$.dir; then
15322   rm -f conf$$.dir/conf$$.file
15323 else
15324   rm -f conf$$.dir
15325   mkdir conf$$.dir 2>/dev/null
15326 fi
15327 if (echo >conf$$.file) 2>/dev/null; then
15328   if ln -s conf$$.file conf$$ 2>/dev/null; then
15329     as_ln_s='ln -s'
15330     # ... but there are two gotchas:
15331     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15332     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15333     # In both cases, we have to default to `cp -pR'.
15334     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15335       as_ln_s='cp -pR'
15336   elif ln conf$$.file conf$$ 2>/dev/null; then
15337     as_ln_s=ln
15338   else
15339     as_ln_s='cp -pR'
15340   fi
15341 else
15342   as_ln_s='cp -pR'
15343 fi
15344 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15345 rmdir conf$$.dir 2>/dev/null
15346
15347
15348 # as_fn_mkdir_p
15349 # -------------
15350 # Create "$as_dir" as a directory, including parents if necessary.
15351 as_fn_mkdir_p ()
15352 {
15353
15354   case $as_dir in #(
15355   -*) as_dir=./$as_dir;;
15356   esac
15357   test -d "$as_dir" || eval $as_mkdir_p || {
15358     as_dirs=
15359     while :; do
15360       case $as_dir in #(
15361       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15362       *) as_qdir=$as_dir;;
15363       esac
15364       as_dirs="'$as_qdir' $as_dirs"
15365       as_dir=`$as_dirname -- "$as_dir" ||
15366 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15367          X"$as_dir" : 'X\(//\)[^/]' \| \
15368          X"$as_dir" : 'X\(//\)$' \| \
15369          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15370 $as_echo X"$as_dir" |
15371     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15372             s//\1/
15373             q
15374           }
15375           /^X\(\/\/\)[^/].*/{
15376             s//\1/
15377             q
15378           }
15379           /^X\(\/\/\)$/{
15380             s//\1/
15381             q
15382           }
15383           /^X\(\/\).*/{
15384             s//\1/
15385             q
15386           }
15387           s/.*/./; q'`
15388       test -d "$as_dir" && break
15389     done
15390     test -z "$as_dirs" || eval "mkdir $as_dirs"
15391   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15392
15393
15394 } # as_fn_mkdir_p
15395 if mkdir -p . 2>/dev/null; then
15396   as_mkdir_p='mkdir -p "$as_dir"'
15397 else
15398   test -d ./-p && rmdir ./-p
15399   as_mkdir_p=false
15400 fi
15401
15402
15403 # as_fn_executable_p FILE
15404 # -----------------------
15405 # Test if FILE is an executable regular file.
15406 as_fn_executable_p ()
15407 {
15408   test -f "$1" && test -x "$1"
15409 } # as_fn_executable_p
15410 as_test_x='test -x'
15411 as_executable_p=as_fn_executable_p
15412
15413 # Sed expression to map a string onto a valid CPP name.
15414 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15415
15416 # Sed expression to map a string onto a valid variable name.
15417 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15418
15419
15420 exec 6>&1
15421 ## ----------------------------------- ##
15422 ## Main body of $CONFIG_STATUS script. ##
15423 ## ----------------------------------- ##
15424 _ASEOF
15425 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15426
15427 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15428 # Save the log message, to keep $0 and so on meaningful, and to
15429 # report actual input values of CONFIG_FILES etc. instead of their
15430 # values after options handling.
15431 ac_log="
15432 This file was extended by gdbm $as_me 1.11, which was
15433 generated by GNU Autoconf 2.69.  Invocation command line was
15434
15435   CONFIG_FILES    = $CONFIG_FILES
15436   CONFIG_HEADERS  = $CONFIG_HEADERS
15437   CONFIG_LINKS    = $CONFIG_LINKS
15438   CONFIG_COMMANDS = $CONFIG_COMMANDS
15439   $ $0 $@
15440
15441 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15442 "
15443
15444 _ACEOF
15445
15446 case $ac_config_files in *"
15447 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15448 esac
15449
15450 case $ac_config_headers in *"
15451 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15452 esac
15453
15454
15455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15456 # Files that config.status was made for.
15457 config_files="$ac_config_files"
15458 config_headers="$ac_config_headers"
15459 config_commands="$ac_config_commands"
15460
15461 _ACEOF
15462
15463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15464 ac_cs_usage="\
15465 \`$as_me' instantiates files and other configuration actions
15466 from templates according to the current configuration.  Unless the files
15467 and actions are specified as TAGs, all are instantiated by default.
15468
15469 Usage: $0 [OPTION]... [TAG]...
15470
15471   -h, --help       print this help, then exit
15472   -V, --version    print version number and configuration settings, then exit
15473       --config     print configuration, then exit
15474   -q, --quiet, --silent
15475                    do not print progress messages
15476   -d, --debug      don't remove temporary files
15477       --recheck    update $as_me by reconfiguring in the same conditions
15478       --file=FILE[:TEMPLATE]
15479                    instantiate the configuration file FILE
15480       --header=FILE[:TEMPLATE]
15481                    instantiate the configuration header FILE
15482
15483 Configuration files:
15484 $config_files
15485
15486 Configuration headers:
15487 $config_headers
15488
15489 Configuration commands:
15490 $config_commands
15491
15492 Report bugs to <bug-gdbm@gnu.org>.
15493 gdbm home page: <http://www.gnu.org/software/gdbm>."
15494
15495 _ACEOF
15496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15497 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15498 ac_cs_version="\\
15499 gdbm config.status 1.11
15500 configured by $0, generated by GNU Autoconf 2.69,
15501   with options \\"\$ac_cs_config\\"
15502
15503 Copyright (C) 2012 Free Software Foundation, Inc.
15504 This config.status script is free software; the Free Software Foundation
15505 gives unlimited permission to copy, distribute and modify it."
15506
15507 ac_pwd='$ac_pwd'
15508 srcdir='$srcdir'
15509 INSTALL='$INSTALL'
15510 MKDIR_P='$MKDIR_P'
15511 AWK='$AWK'
15512 test -n "\$AWK" || AWK=awk
15513 _ACEOF
15514
15515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15516 # The default lists apply if the user does not specify any file.
15517 ac_need_defaults=:
15518 while test $# != 0
15519 do
15520   case $1 in
15521   --*=?*)
15522     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15523     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15524     ac_shift=:
15525     ;;
15526   --*=)
15527     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15528     ac_optarg=
15529     ac_shift=:
15530     ;;
15531   *)
15532     ac_option=$1
15533     ac_optarg=$2
15534     ac_shift=shift
15535     ;;
15536   esac
15537
15538   case $ac_option in
15539   # Handling of the options.
15540   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15541     ac_cs_recheck=: ;;
15542   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15543     $as_echo "$ac_cs_version"; exit ;;
15544   --config | --confi | --conf | --con | --co | --c )
15545     $as_echo "$ac_cs_config"; exit ;;
15546   --debug | --debu | --deb | --de | --d | -d )
15547     debug=: ;;
15548   --file | --fil | --fi | --f )
15549     $ac_shift
15550     case $ac_optarg in
15551     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15552     '') as_fn_error $? "missing file argument" ;;
15553     esac
15554     as_fn_append CONFIG_FILES " '$ac_optarg'"
15555     ac_need_defaults=false;;
15556   --header | --heade | --head | --hea )
15557     $ac_shift
15558     case $ac_optarg in
15559     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15560     esac
15561     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15562     ac_need_defaults=false;;
15563   --he | --h)
15564     # Conflict between --help and --header
15565     as_fn_error $? "ambiguous option: \`$1'
15566 Try \`$0 --help' for more information.";;
15567   --help | --hel | -h )
15568     $as_echo "$ac_cs_usage"; exit ;;
15569   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15570   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15571     ac_cs_silent=: ;;
15572
15573   # This is an error.
15574   -*) as_fn_error $? "unrecognized option: \`$1'
15575 Try \`$0 --help' for more information." ;;
15576
15577   *) as_fn_append ac_config_targets " $1"
15578      ac_need_defaults=false ;;
15579
15580   esac
15581   shift
15582 done
15583
15584 ac_configure_extra_args=
15585
15586 if $ac_cs_silent; then
15587   exec 6>/dev/null
15588   ac_configure_extra_args="$ac_configure_extra_args --silent"
15589 fi
15590
15591 _ACEOF
15592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15593 if \$ac_cs_recheck; then
15594   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15595   shift
15596   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15597   CONFIG_SHELL='$SHELL'
15598   export CONFIG_SHELL
15599   exec "\$@"
15600 fi
15601
15602 _ACEOF
15603 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15604 exec 5>>config.log
15605 {
15606   echo
15607   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15608 ## Running $as_me. ##
15609 _ASBOX
15610   $as_echo "$ac_log"
15611 } >&5
15612
15613 _ACEOF
15614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15615 #
15616 # INIT-COMMANDS
15617 #
15618 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15619
15620
15621 # The HP-UX ksh and POSIX shell print the target directory to stdout
15622 # if CDPATH is set.
15623 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15624
15625 sed_quote_subst='$sed_quote_subst'
15626 double_quote_subst='$double_quote_subst'
15627 delay_variable_subst='$delay_variable_subst'
15628 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15629 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15630 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15631 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15632 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15633 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15634 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15635 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15636 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15637 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15638 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15639 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15640 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15641 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15642 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15643 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15644 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15645 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15646 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15647 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15648 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15649 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15650 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15651 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15652 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15653 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15654 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15655 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15656 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15657 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15658 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15659 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15660 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15661 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15662 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15663 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15664 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15665 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15666 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15667 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15668 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15669 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15670 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15671 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15672 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15673 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15674 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15675 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15676 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15677 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15678 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15679 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15680 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15681 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15682 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15683 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15684 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
15685 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15686 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15687 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15688 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15689 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15690 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15691 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15692 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15693 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15694 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15695 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15696 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15697 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15698 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15699 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15700 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15701 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15702 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15703 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15704 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15705 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15706 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15707 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15708 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15709 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15710 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15711 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15712 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15713 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15714 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15715 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15716 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15717 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15718 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15719 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15720 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15721 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15722 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15723 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15724 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15725 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15726 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15727 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15728 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15729 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15730 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15731 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15732 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15733 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15734 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15735 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15736 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15737 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15738 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15739 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15740 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15741 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15742 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15743 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15744 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15745 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15746 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15747 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15748 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15749 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15750 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15751 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15752 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15753 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15754 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15755 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15756 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15757 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15758
15759 LTCC='$LTCC'
15760 LTCFLAGS='$LTCFLAGS'
15761 compiler='$compiler_DEFAULT'
15762
15763 # A function that is used when there is no print builtin or printf.
15764 func_fallback_echo ()
15765 {
15766   eval 'cat <<_LTECHO_EOF
15767 \$1
15768 _LTECHO_EOF'
15769 }
15770
15771 # Quote evaled strings.
15772 for var in SHELL \
15773 ECHO \
15774 PATH_SEPARATOR \
15775 SED \
15776 GREP \
15777 EGREP \
15778 FGREP \
15779 LD \
15780 NM \
15781 LN_S \
15782 lt_SP2NL \
15783 lt_NL2SP \
15784 reload_flag \
15785 OBJDUMP \
15786 deplibs_check_method \
15787 file_magic_cmd \
15788 file_magic_glob \
15789 want_nocaseglob \
15790 DLLTOOL \
15791 sharedlib_from_linklib_cmd \
15792 AR \
15793 AR_FLAGS \
15794 archiver_list_spec \
15795 STRIP \
15796 RANLIB \
15797 CC \
15798 CFLAGS \
15799 compiler \
15800 lt_cv_sys_global_symbol_pipe \
15801 lt_cv_sys_global_symbol_to_cdecl \
15802 lt_cv_sys_global_symbol_to_c_name_address \
15803 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15804 nm_file_list_spec \
15805 lt_prog_compiler_no_builtin_flag \
15806 lt_prog_compiler_pic \
15807 lt_prog_compiler_wl \
15808 lt_prog_compiler_static \
15809 lt_cv_prog_compiler_c_o \
15810 need_locks \
15811 MANIFEST_TOOL \
15812 DSYMUTIL \
15813 NMEDIT \
15814 LIPO \
15815 OTOOL \
15816 OTOOL64 \
15817 shrext_cmds \
15818 export_dynamic_flag_spec \
15819 whole_archive_flag_spec \
15820 compiler_needs_object \
15821 with_gnu_ld \
15822 allow_undefined_flag \
15823 no_undefined_flag \
15824 hardcode_libdir_flag_spec \
15825 hardcode_libdir_separator \
15826 exclude_expsyms \
15827 include_expsyms \
15828 file_list_spec \
15829 variables_saved_for_relink \
15830 libname_spec \
15831 library_names_spec \
15832 soname_spec \
15833 install_override_mode \
15834 finish_eval \
15835 old_striplib \
15836 striplib; do
15837     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15838     *[\\\\\\\`\\"\\\$]*)
15839       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15840       ;;
15841     *)
15842       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15843       ;;
15844     esac
15845 done
15846
15847 # Double-quote double-evaled strings.
15848 for var in reload_cmds \
15849 old_postinstall_cmds \
15850 old_postuninstall_cmds \
15851 old_archive_cmds \
15852 extract_expsyms_cmds \
15853 old_archive_from_new_cmds \
15854 old_archive_from_expsyms_cmds \
15855 archive_cmds \
15856 archive_expsym_cmds \
15857 module_cmds \
15858 module_expsym_cmds \
15859 export_symbols_cmds \
15860 prelink_cmds \
15861 postlink_cmds \
15862 postinstall_cmds \
15863 postuninstall_cmds \
15864 finish_cmds \
15865 sys_lib_search_path_spec \
15866 sys_lib_dlsearch_path_spec; do
15867     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15868     *[\\\\\\\`\\"\\\$]*)
15869       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15870       ;;
15871     *)
15872       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15873       ;;
15874     esac
15875 done
15876
15877 ac_aux_dir='$ac_aux_dir'
15878 xsi_shell='$xsi_shell'
15879 lt_shell_append='$lt_shell_append'
15880
15881 # See if we are running on zsh, and set the options which allow our
15882 # commands through without removal of \ escapes INIT.
15883 if test -n "\${ZSH_VERSION+set}" ; then
15884    setopt NO_GLOB_SUBST
15885 fi
15886
15887
15888     PACKAGE='$PACKAGE'
15889     VERSION='$VERSION'
15890     TIMESTAMP='$TIMESTAMP'
15891     RM='$RM'
15892     ofile='$ofile'
15893
15894
15895
15896 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15897     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15898     # from automake < 1.5.
15899     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15900     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15901     LINGUAS="${LINGUAS-%UNSET%}"
15902
15903
15904
15905 _ACEOF
15906
15907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15908
15909 # Handling of arguments.
15910 for ac_config_target in $ac_config_targets
15911 do
15912   case $ac_config_target in
15913     "autoconf.h") CONFIG_HEADERS="$CONFIG_HEADERS autoconf.h" ;;
15914     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15915     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15916     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15917     "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
15918     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15919     "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
15920     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15921     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15922     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15923     "src/gdbm.h") CONFIG_FILES="$CONFIG_FILES src/gdbm.h" ;;
15924     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15925     "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
15926     "export/Makefile") CONFIG_FILES="$CONFIG_FILES export/Makefile" ;;
15927
15928   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15929   esac
15930 done
15931
15932
15933 # If the user did not use the arguments to specify the items to instantiate,
15934 # then the envvar interface is used.  Set only those that are not.
15935 # We use the long form for the default assignment because of an extremely
15936 # bizarre bug on SunOS 4.1.3.
15937 if $ac_need_defaults; then
15938   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15939   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15940   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15941 fi
15942
15943 # Have a temporary directory for convenience.  Make it in the build tree
15944 # simply because there is no reason against having it here, and in addition,
15945 # creating and moving files from /tmp can sometimes cause problems.
15946 # Hook for its removal unless debugging.
15947 # Note that there is a small window in which the directory will not be cleaned:
15948 # after its creation but before its name has been assigned to `$tmp'.
15949 $debug ||
15950 {
15951   tmp= ac_tmp=
15952   trap 'exit_status=$?
15953   : "${ac_tmp:=$tmp}"
15954   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15955 ' 0
15956   trap 'as_fn_exit 1' 1 2 13 15
15957 }
15958 # Create a (secure) tmp directory for tmp files.
15959
15960 {
15961   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15962   test -d "$tmp"
15963 }  ||
15964 {
15965   tmp=./conf$$-$RANDOM
15966   (umask 077 && mkdir "$tmp")
15967 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15968 ac_tmp=$tmp
15969
15970 # Set up the scripts for CONFIG_FILES section.
15971 # No need to generate them if there are no CONFIG_FILES.
15972 # This happens for instance with `./config.status config.h'.
15973 if test -n "$CONFIG_FILES"; then
15974
15975
15976 ac_cr=`echo X | tr X '\015'`
15977 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15978 # But we know of no other shell where ac_cr would be empty at this
15979 # point, so we can use a bashism as a fallback.
15980 if test "x$ac_cr" = x; then
15981   eval ac_cr=\$\'\\r\'
15982 fi
15983 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15984 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15985   ac_cs_awk_cr='\\r'
15986 else
15987   ac_cs_awk_cr=$ac_cr
15988 fi
15989
15990 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15991 _ACEOF
15992
15993
15994 {
15995   echo "cat >conf$$subs.awk <<_ACEOF" &&
15996   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15997   echo "_ACEOF"
15998 } >conf$$subs.sh ||
15999   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16000 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16001 ac_delim='%!_!# '
16002 for ac_last_try in false false false false false :; do
16003   . ./conf$$subs.sh ||
16004     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16005
16006   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16007   if test $ac_delim_n = $ac_delim_num; then
16008     break
16009   elif $ac_last_try; then
16010     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16011   else
16012     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16013   fi
16014 done
16015 rm -f conf$$subs.sh
16016
16017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16018 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16019 _ACEOF
16020 sed -n '
16021 h
16022 s/^/S["/; s/!.*/"]=/
16023 p
16024 g
16025 s/^[^!]*!//
16026 :repl
16027 t repl
16028 s/'"$ac_delim"'$//
16029 t delim
16030 :nl
16031 h
16032 s/\(.\{148\}\)..*/\1/
16033 t more1
16034 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16035 p
16036 n
16037 b repl
16038 :more1
16039 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16040 p
16041 g
16042 s/.\{148\}//
16043 t nl
16044 :delim
16045 h
16046 s/\(.\{148\}\)..*/\1/
16047 t more2
16048 s/["\\]/\\&/g; s/^/"/; s/$/"/
16049 p
16050 b
16051 :more2
16052 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16053 p
16054 g
16055 s/.\{148\}//
16056 t delim
16057 ' <conf$$subs.awk | sed '
16058 /^[^""]/{
16059   N
16060   s/\n//
16061 }
16062 ' >>$CONFIG_STATUS || ac_write_fail=1
16063 rm -f conf$$subs.awk
16064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16065 _ACAWK
16066 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16067   for (key in S) S_is_set[key] = 1
16068   FS = "\a"
16069
16070 }
16071 {
16072   line = $ 0
16073   nfields = split(line, field, "@")
16074   substed = 0
16075   len = length(field[1])
16076   for (i = 2; i < nfields; i++) {
16077     key = field[i]
16078     keylen = length(key)
16079     if (S_is_set[key]) {
16080       value = S[key]
16081       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16082       len += length(value) + length(field[++i])
16083       substed = 1
16084     } else
16085       len += 1 + keylen
16086   }
16087
16088   print line
16089 }
16090
16091 _ACAWK
16092 _ACEOF
16093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16094 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16095   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16096 else
16097   cat
16098 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16099   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16100 _ACEOF
16101
16102 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16103 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16104 # trailing colons and then remove the whole line if VPATH becomes empty
16105 # (actually we leave an empty line to preserve line numbers).
16106 if test "x$srcdir" = x.; then
16107   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16108 h
16109 s///
16110 s/^/:/
16111 s/[      ]*$/:/
16112 s/:\$(srcdir):/:/g
16113 s/:\${srcdir}:/:/g
16114 s/:@srcdir@:/:/g
16115 s/^:*//
16116 s/:*$//
16117 x
16118 s/\(=[   ]*\).*/\1/
16119 G
16120 s/\n//
16121 s/^[^=]*=[       ]*$//
16122 }'
16123 fi
16124
16125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16126 fi # test -n "$CONFIG_FILES"
16127
16128 # Set up the scripts for CONFIG_HEADERS section.
16129 # No need to generate them if there are no CONFIG_HEADERS.
16130 # This happens for instance with `./config.status Makefile'.
16131 if test -n "$CONFIG_HEADERS"; then
16132 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16133 BEGIN {
16134 _ACEOF
16135
16136 # Transform confdefs.h into an awk script `defines.awk', embedded as
16137 # here-document in config.status, that substitutes the proper values into
16138 # config.h.in to produce config.h.
16139
16140 # Create a delimiter string that does not exist in confdefs.h, to ease
16141 # handling of long lines.
16142 ac_delim='%!_!# '
16143 for ac_last_try in false false :; do
16144   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16145   if test -z "$ac_tt"; then
16146     break
16147   elif $ac_last_try; then
16148     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16149   else
16150     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16151   fi
16152 done
16153
16154 # For the awk script, D is an array of macro values keyed by name,
16155 # likewise P contains macro parameters if any.  Preserve backslash
16156 # newline sequences.
16157
16158 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16159 sed -n '
16160 s/.\{148\}/&'"$ac_delim"'/g
16161 t rset
16162 :rset
16163 s/^[     ]*#[    ]*define[       ][      ]*/ /
16164 t def
16165 d
16166 :def
16167 s/\\$//
16168 t bsnl
16169 s/["\\]/\\&/g
16170 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16171 D["\1"]=" \3"/p
16172 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16173 d
16174 :bsnl
16175 s/["\\]/\\&/g
16176 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16177 D["\1"]=" \3\\\\\\n"\\/p
16178 t cont
16179 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16180 t cont
16181 d
16182 :cont
16183 n
16184 s/.\{148\}/&'"$ac_delim"'/g
16185 t clear
16186 :clear
16187 s/\\$//
16188 t bsnlc
16189 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16190 d
16191 :bsnlc
16192 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16193 b cont
16194 ' <confdefs.h | sed '
16195 s/'"$ac_delim"'/"\\\
16196 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16197
16198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16199   for (key in D) D_is_set[key] = 1
16200   FS = "\a"
16201 }
16202 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16203   line = \$ 0
16204   split(line, arg, " ")
16205   if (arg[1] == "#") {
16206     defundef = arg[2]
16207     mac1 = arg[3]
16208   } else {
16209     defundef = substr(arg[1], 2)
16210     mac1 = arg[2]
16211   }
16212   split(mac1, mac2, "(") #)
16213   macro = mac2[1]
16214   prefix = substr(line, 1, index(line, defundef) - 1)
16215   if (D_is_set[macro]) {
16216     # Preserve the white space surrounding the "#".
16217     print prefix "define", macro P[macro] D[macro]
16218     next
16219   } else {
16220     # Replace #undef with comments.  This is necessary, for example,
16221     # in the case of _POSIX_SOURCE, which is predefined and required
16222     # on some systems where configure will not decide to define it.
16223     if (defundef == "undef") {
16224       print "/*", prefix defundef, macro, "*/"
16225       next
16226     }
16227   }
16228 }
16229 { print }
16230 _ACAWK
16231 _ACEOF
16232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16233   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16234 fi # test -n "$CONFIG_HEADERS"
16235
16236
16237 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16238 shift
16239 for ac_tag
16240 do
16241   case $ac_tag in
16242   :[FHLC]) ac_mode=$ac_tag; continue;;
16243   esac
16244   case $ac_mode$ac_tag in
16245   :[FHL]*:*);;
16246   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16247   :[FH]-) ac_tag=-:-;;
16248   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16249   esac
16250   ac_save_IFS=$IFS
16251   IFS=:
16252   set x $ac_tag
16253   IFS=$ac_save_IFS
16254   shift
16255   ac_file=$1
16256   shift
16257
16258   case $ac_mode in
16259   :L) ac_source=$1;;
16260   :[FH])
16261     ac_file_inputs=
16262     for ac_f
16263     do
16264       case $ac_f in
16265       -) ac_f="$ac_tmp/stdin";;
16266       *) # Look for the file first in the build tree, then in the source tree
16267          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16268          # because $ac_f cannot contain `:'.
16269          test -f "$ac_f" ||
16270            case $ac_f in
16271            [\\/$]*) false;;
16272            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16273            esac ||
16274            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16275       esac
16276       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16277       as_fn_append ac_file_inputs " '$ac_f'"
16278     done
16279
16280     # Let's still pretend it is `configure' which instantiates (i.e., don't
16281     # use $as_me), people would be surprised to read:
16282     #    /* config.h.  Generated by config.status.  */
16283     configure_input='Generated from '`
16284           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16285         `' by configure.'
16286     if test x"$ac_file" != x-; then
16287       configure_input="$ac_file.  $configure_input"
16288       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16289 $as_echo "$as_me: creating $ac_file" >&6;}
16290     fi
16291     # Neutralize special characters interpreted by sed in replacement strings.
16292     case $configure_input in #(
16293     *\&* | *\|* | *\\* )
16294        ac_sed_conf_input=`$as_echo "$configure_input" |
16295        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16296     *) ac_sed_conf_input=$configure_input;;
16297     esac
16298
16299     case $ac_tag in
16300     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16301       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16302     esac
16303     ;;
16304   esac
16305
16306   ac_dir=`$as_dirname -- "$ac_file" ||
16307 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16308          X"$ac_file" : 'X\(//\)[^/]' \| \
16309          X"$ac_file" : 'X\(//\)$' \| \
16310          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16311 $as_echo X"$ac_file" |
16312     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16313             s//\1/
16314             q
16315           }
16316           /^X\(\/\/\)[^/].*/{
16317             s//\1/
16318             q
16319           }
16320           /^X\(\/\/\)$/{
16321             s//\1/
16322             q
16323           }
16324           /^X\(\/\).*/{
16325             s//\1/
16326             q
16327           }
16328           s/.*/./; q'`
16329   as_dir="$ac_dir"; as_fn_mkdir_p
16330   ac_builddir=.
16331
16332 case "$ac_dir" in
16333 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16334 *)
16335   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16336   # A ".." for each directory in $ac_dir_suffix.
16337   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16338   case $ac_top_builddir_sub in
16339   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16340   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16341   esac ;;
16342 esac
16343 ac_abs_top_builddir=$ac_pwd
16344 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16345 # for backward compatibility:
16346 ac_top_builddir=$ac_top_build_prefix
16347
16348 case $srcdir in
16349   .)  # We are building in place.
16350     ac_srcdir=.
16351     ac_top_srcdir=$ac_top_builddir_sub
16352     ac_abs_top_srcdir=$ac_pwd ;;
16353   [\\/]* | ?:[\\/]* )  # Absolute name.
16354     ac_srcdir=$srcdir$ac_dir_suffix;
16355     ac_top_srcdir=$srcdir
16356     ac_abs_top_srcdir=$srcdir ;;
16357   *) # Relative name.
16358     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16359     ac_top_srcdir=$ac_top_build_prefix$srcdir
16360     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16361 esac
16362 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16363
16364
16365   case $ac_mode in
16366   :F)
16367   #
16368   # CONFIG_FILE
16369   #
16370
16371   case $INSTALL in
16372   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16373   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16374   esac
16375   ac_MKDIR_P=$MKDIR_P
16376   case $MKDIR_P in
16377   [\\/$]* | ?:[\\/]* ) ;;
16378   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16379   esac
16380 _ACEOF
16381
16382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16383 # If the template does not know about datarootdir, expand it.
16384 # FIXME: This hack should be removed a few years after 2.60.
16385 ac_datarootdir_hack=; ac_datarootdir_seen=
16386 ac_sed_dataroot='
16387 /datarootdir/ {
16388   p
16389   q
16390 }
16391 /@datadir@/p
16392 /@docdir@/p
16393 /@infodir@/p
16394 /@localedir@/p
16395 /@mandir@/p'
16396 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16397 *datarootdir*) ac_datarootdir_seen=yes;;
16398 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16399   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16400 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16401 _ACEOF
16402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16403   ac_datarootdir_hack='
16404   s&@datadir@&$datadir&g
16405   s&@docdir@&$docdir&g
16406   s&@infodir@&$infodir&g
16407   s&@localedir@&$localedir&g
16408   s&@mandir@&$mandir&g
16409   s&\\\${datarootdir}&$datarootdir&g' ;;
16410 esac
16411 _ACEOF
16412
16413 # Neutralize VPATH when `$srcdir' = `.'.
16414 # Shell code in configure.ac might set extrasub.
16415 # FIXME: do we really want to maintain this feature?
16416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16417 ac_sed_extra="$ac_vpsub
16418 $extrasub
16419 _ACEOF
16420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16421 :t
16422 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16423 s|@configure_input@|$ac_sed_conf_input|;t t
16424 s&@top_builddir@&$ac_top_builddir_sub&;t t
16425 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16426 s&@srcdir@&$ac_srcdir&;t t
16427 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16428 s&@top_srcdir@&$ac_top_srcdir&;t t
16429 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16430 s&@builddir@&$ac_builddir&;t t
16431 s&@abs_builddir@&$ac_abs_builddir&;t t
16432 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16433 s&@INSTALL@&$ac_INSTALL&;t t
16434 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16435 $ac_datarootdir_hack
16436 "
16437 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16438   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16439
16440 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16441   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16442   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16443       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16444   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16445 which seems to be undefined.  Please make sure it is defined" >&5
16446 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16447 which seems to be undefined.  Please make sure it is defined" >&2;}
16448
16449   rm -f "$ac_tmp/stdin"
16450   case $ac_file in
16451   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16452   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16453   esac \
16454   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16455  ;;
16456   :H)
16457   #
16458   # CONFIG_HEADER
16459   #
16460   if test x"$ac_file" != x-; then
16461     {
16462       $as_echo "/* $configure_input  */" \
16463       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16464     } >"$ac_tmp/config.h" \
16465       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16466     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16467       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16468 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16469     else
16470       rm -f "$ac_file"
16471       mv "$ac_tmp/config.h" "$ac_file" \
16472         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16473     fi
16474   else
16475     $as_echo "/* $configure_input  */" \
16476       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16477       || as_fn_error $? "could not create -" "$LINENO" 5
16478   fi
16479 # Compute "$ac_file"'s index in $config_headers.
16480 _am_arg="$ac_file"
16481 _am_stamp_count=1
16482 for _am_header in $config_headers :; do
16483   case $_am_header in
16484     $_am_arg | $_am_arg:* )
16485       break ;;
16486     * )
16487       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16488   esac
16489 done
16490 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16491 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16492          X"$_am_arg" : 'X\(//\)[^/]' \| \
16493          X"$_am_arg" : 'X\(//\)$' \| \
16494          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16495 $as_echo X"$_am_arg" |
16496     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16497             s//\1/
16498             q
16499           }
16500           /^X\(\/\/\)[^/].*/{
16501             s//\1/
16502             q
16503           }
16504           /^X\(\/\/\)$/{
16505             s//\1/
16506             q
16507           }
16508           /^X\(\/\).*/{
16509             s//\1/
16510             q
16511           }
16512           s/.*/./; q'`/stamp-h$_am_stamp_count
16513  ;;
16514
16515   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16516 $as_echo "$as_me: executing $ac_file commands" >&6;}
16517  ;;
16518   esac
16519
16520
16521   case $ac_file$ac_mode in
16522     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16523   # Older Autoconf quotes --file arguments for eval, but not when files
16524   # are listed without --file.  Let's play safe and only enable the eval
16525   # if we detect the quoting.
16526   case $CONFIG_FILES in
16527   *\'*) eval set x "$CONFIG_FILES" ;;
16528   *)   set x $CONFIG_FILES ;;
16529   esac
16530   shift
16531   for mf
16532   do
16533     # Strip MF so we end up with the name of the file.
16534     mf=`echo "$mf" | sed -e 's/:.*$//'`
16535     # Check whether this is an Automake generated Makefile or not.
16536     # We used to match only the files named 'Makefile.in', but
16537     # some people rename them; so instead we look at the file content.
16538     # Grep'ing the first line is not enough: some people post-process
16539     # each Makefile.in and add a new line on top of each file to say so.
16540     # Grep'ing the whole file is not good either: AIX grep has a line
16541     # limit of 2048, but all sed's we know have understand at least 4000.
16542     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16543       dirpart=`$as_dirname -- "$mf" ||
16544 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16545          X"$mf" : 'X\(//\)[^/]' \| \
16546          X"$mf" : 'X\(//\)$' \| \
16547          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16548 $as_echo X"$mf" |
16549     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16550             s//\1/
16551             q
16552           }
16553           /^X\(\/\/\)[^/].*/{
16554             s//\1/
16555             q
16556           }
16557           /^X\(\/\/\)$/{
16558             s//\1/
16559             q
16560           }
16561           /^X\(\/\).*/{
16562             s//\1/
16563             q
16564           }
16565           s/.*/./; q'`
16566     else
16567       continue
16568     fi
16569     # Extract the definition of DEPDIR, am__include, and am__quote
16570     # from the Makefile without running 'make'.
16571     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16572     test -z "$DEPDIR" && continue
16573     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16574     test -z "$am__include" && continue
16575     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16576     # Find all dependency output files, they are included files with
16577     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16578     # simplest approach to changing $(DEPDIR) to its actual value in the
16579     # expansion.
16580     for file in `sed -n "
16581       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16582          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16583       # Make sure the directory exists.
16584       test -f "$dirpart/$file" && continue
16585       fdir=`$as_dirname -- "$file" ||
16586 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16587          X"$file" : 'X\(//\)[^/]' \| \
16588          X"$file" : 'X\(//\)$' \| \
16589          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16590 $as_echo X"$file" |
16591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16592             s//\1/
16593             q
16594           }
16595           /^X\(\/\/\)[^/].*/{
16596             s//\1/
16597             q
16598           }
16599           /^X\(\/\/\)$/{
16600             s//\1/
16601             q
16602           }
16603           /^X\(\/\).*/{
16604             s//\1/
16605             q
16606           }
16607           s/.*/./; q'`
16608       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16609       # echo "creating $dirpart/$file"
16610       echo '# dummy' > "$dirpart/$file"
16611     done
16612   done
16613 }
16614  ;;
16615     "libtool":C)
16616
16617     # See if we are running on zsh, and set the options which allow our
16618     # commands through without removal of \ escapes.
16619     if test -n "${ZSH_VERSION+set}" ; then
16620       setopt NO_GLOB_SUBST
16621     fi
16622
16623     cfgfile="${ofile}T"
16624     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16625     $RM "$cfgfile"
16626
16627     cat <<_LT_EOF >> "$cfgfile"
16628 #! $SHELL
16629
16630 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16631 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16632 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16633 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16634 #
16635 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16636 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16637 #                 Foundation, Inc.
16638 #   Written by Gordon Matzigkeit, 1996
16639 #
16640 #   This file is part of GNU Libtool.
16641 #
16642 # GNU Libtool is free software; you can redistribute it and/or
16643 # modify it under the terms of the GNU General Public License as
16644 # published by the Free Software Foundation; either version 2 of
16645 # the License, or (at your option) any later version.
16646 #
16647 # As a special exception to the GNU General Public License,
16648 # if you distribute this file as part of a program or library that
16649 # is built using GNU Libtool, you may include this file under the
16650 # same distribution terms that you use for the rest of that program.
16651 #
16652 # GNU Libtool is distributed in the hope that it will be useful,
16653 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16654 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16655 # GNU General Public License for more details.
16656 #
16657 # You should have received a copy of the GNU General Public License
16658 # along with GNU Libtool; see the file COPYING.  If not, a copy
16659 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16660 # obtained by writing to the Free Software Foundation, Inc.,
16661 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16662
16663
16664 # The names of the tagged configurations supported by this script.
16665 available_tags=""
16666
16667 # ### BEGIN LIBTOOL CONFIG
16668
16669 # Which release of libtool.m4 was used?
16670 macro_version=$macro_version
16671 macro_revision=$macro_revision
16672
16673 # Whether or not to build shared libraries.
16674 build_libtool_libs=$enable_shared
16675
16676 # Whether or not to build static libraries.
16677 build_old_libs=$enable_static
16678
16679 # What type of objects to build.
16680 pic_mode=$pic_mode
16681
16682 # Whether or not to optimize for fast installation.
16683 fast_install=$enable_fast_install
16684
16685 # Shell to use when invoking shell scripts.
16686 SHELL=$lt_SHELL
16687
16688 # An echo program that protects backslashes.
16689 ECHO=$lt_ECHO
16690
16691 # The PATH separator for the build system.
16692 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16693
16694 # The host system.
16695 host_alias=$host_alias
16696 host=$host
16697 host_os=$host_os
16698
16699 # The build system.
16700 build_alias=$build_alias
16701 build=$build
16702 build_os=$build_os
16703
16704 # A sed program that does not truncate output.
16705 SED=$lt_SED
16706
16707 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16708 Xsed="\$SED -e 1s/^X//"
16709
16710 # A grep program that handles long lines.
16711 GREP=$lt_GREP
16712
16713 # An ERE matcher.
16714 EGREP=$lt_EGREP
16715
16716 # A literal string matcher.
16717 FGREP=$lt_FGREP
16718
16719 # A BSD- or MS-compatible name lister.
16720 NM=$lt_NM
16721
16722 # Whether we need soft or hard links.
16723 LN_S=$lt_LN_S
16724
16725 # What is the maximum length of a command?
16726 max_cmd_len=$max_cmd_len
16727
16728 # Object file suffix (normally "o").
16729 objext=$ac_objext
16730
16731 # Executable file suffix (normally "").
16732 exeext=$exeext
16733
16734 # whether the shell understands "unset".
16735 lt_unset=$lt_unset
16736
16737 # turn spaces into newlines.
16738 SP2NL=$lt_lt_SP2NL
16739
16740 # turn newlines into spaces.
16741 NL2SP=$lt_lt_NL2SP
16742
16743 # convert \$build file names to \$host format.
16744 to_host_file_cmd=$lt_cv_to_host_file_cmd
16745
16746 # convert \$build files to toolchain format.
16747 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16748
16749 # An object symbol dumper.
16750 OBJDUMP=$lt_OBJDUMP
16751
16752 # Method to check whether dependent libraries are shared objects.
16753 deplibs_check_method=$lt_deplibs_check_method
16754
16755 # Command to use when deplibs_check_method = "file_magic".
16756 file_magic_cmd=$lt_file_magic_cmd
16757
16758 # How to find potential files when deplibs_check_method = "file_magic".
16759 file_magic_glob=$lt_file_magic_glob
16760
16761 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16762 want_nocaseglob=$lt_want_nocaseglob
16763
16764 # DLL creation program.
16765 DLLTOOL=$lt_DLLTOOL
16766
16767 # Command to associate shared and link libraries.
16768 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16769
16770 # The archiver.
16771 AR=$lt_AR
16772
16773 # Flags to create an archive.
16774 AR_FLAGS=$lt_AR_FLAGS
16775
16776 # How to feed a file listing to the archiver.
16777 archiver_list_spec=$lt_archiver_list_spec
16778
16779 # A symbol stripping program.
16780 STRIP=$lt_STRIP
16781
16782 # Commands used to install an old-style archive.
16783 RANLIB=$lt_RANLIB
16784 old_postinstall_cmds=$lt_old_postinstall_cmds
16785 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16786
16787 # Whether to use a lock for old archive extraction.
16788 lock_old_archive_extraction=$lock_old_archive_extraction
16789
16790 # A C compiler.
16791 LTCC=$lt_CC
16792
16793 # LTCC compiler flags.
16794 LTCFLAGS=$lt_CFLAGS
16795
16796 # Take the output of nm and produce a listing of raw symbols and C names.
16797 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16798
16799 # Transform the output of nm in a proper C declaration.
16800 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16801
16802 # Transform the output of nm in a C name address pair.
16803 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16804
16805 # Transform the output of nm in a C name address pair when lib prefix is needed.
16806 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16807
16808 # Specify filename containing input files for \$NM.
16809 nm_file_list_spec=$lt_nm_file_list_spec
16810
16811 # The root where to search for dependent libraries,and in which our libraries should be installed.
16812 lt_sysroot=$lt_sysroot
16813
16814 # The name of the directory that contains temporary libtool files.
16815 objdir=$objdir
16816
16817 # Used to examine libraries when file_magic_cmd begins with "file".
16818 MAGIC_CMD=$MAGIC_CMD
16819
16820 # Must we lock files when doing compilation?
16821 need_locks=$lt_need_locks
16822
16823 # Manifest tool.
16824 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16825
16826 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16827 DSYMUTIL=$lt_DSYMUTIL
16828
16829 # Tool to change global to local symbols on Mac OS X.
16830 NMEDIT=$lt_NMEDIT
16831
16832 # Tool to manipulate fat objects and archives on Mac OS X.
16833 LIPO=$lt_LIPO
16834
16835 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16836 OTOOL=$lt_OTOOL
16837
16838 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16839 OTOOL64=$lt_OTOOL64
16840
16841 # Old archive suffix (normally "a").
16842 libext=$libext
16843
16844 # Shared library suffix (normally ".so").
16845 shrext_cmds=$lt_shrext_cmds
16846
16847 # The commands to extract the exported symbol list from a shared archive.
16848 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16849
16850 # Variables whose values should be saved in libtool wrapper scripts and
16851 # restored at link time.
16852 variables_saved_for_relink=$lt_variables_saved_for_relink
16853
16854 # Do we need the "lib" prefix for modules?
16855 need_lib_prefix=$need_lib_prefix
16856
16857 # Do we need a version for libraries?
16858 need_version=$need_version
16859
16860 # Library versioning type.
16861 version_type=$version_type
16862
16863 # Shared library runtime path variable.
16864 runpath_var=$runpath_var
16865
16866 # Shared library path variable.
16867 shlibpath_var=$shlibpath_var
16868
16869 # Is shlibpath searched before the hard-coded library search path?
16870 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16871
16872 # Format of library name prefix.
16873 libname_spec=$lt_libname_spec
16874
16875 # List of archive names.  First name is the real one, the rest are links.
16876 # The last name is the one that the linker finds with -lNAME
16877 library_names_spec=$lt_library_names_spec
16878
16879 # The coded name of the library, if different from the real name.
16880 soname_spec=$lt_soname_spec
16881
16882 # Permission mode override for installation of shared libraries.
16883 install_override_mode=$lt_install_override_mode
16884
16885 # Command to use after installation of a shared archive.
16886 postinstall_cmds=$lt_postinstall_cmds
16887
16888 # Command to use after uninstallation of a shared archive.
16889 postuninstall_cmds=$lt_postuninstall_cmds
16890
16891 # Commands used to finish a libtool library installation in a directory.
16892 finish_cmds=$lt_finish_cmds
16893
16894 # As "finish_cmds", except a single script fragment to be evaled but
16895 # not shown.
16896 finish_eval=$lt_finish_eval
16897
16898 # Whether we should hardcode library paths into libraries.
16899 hardcode_into_libs=$hardcode_into_libs
16900
16901 # Compile-time system search path for libraries.
16902 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16903
16904 # Run-time system search path for libraries.
16905 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16906
16907 # Whether dlopen is supported.
16908 dlopen_support=$enable_dlopen
16909
16910 # Whether dlopen of programs is supported.
16911 dlopen_self=$enable_dlopen_self
16912
16913 # Whether dlopen of statically linked programs is supported.
16914 dlopen_self_static=$enable_dlopen_self_static
16915
16916 # Commands to strip libraries.
16917 old_striplib=$lt_old_striplib
16918 striplib=$lt_striplib
16919
16920
16921 # The linker used to build libraries.
16922 LD=$lt_LD
16923
16924 # How to create reloadable object files.
16925 reload_flag=$lt_reload_flag
16926 reload_cmds=$lt_reload_cmds
16927
16928 # Commands used to build an old-style archive.
16929 old_archive_cmds=$lt_old_archive_cmds
16930
16931 # A language specific compiler.
16932 CC=$lt_compiler
16933
16934 # Is the compiler the GNU compiler?
16935 with_gcc=$GCC
16936
16937 # Compiler flag to turn off builtin functions.
16938 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16939
16940 # Additional compiler flags for building library objects.
16941 pic_flag=$lt_lt_prog_compiler_pic
16942
16943 # How to pass a linker flag through the compiler.
16944 wl=$lt_lt_prog_compiler_wl
16945
16946 # Compiler flag to prevent dynamic linking.
16947 link_static_flag=$lt_lt_prog_compiler_static
16948
16949 # Does compiler simultaneously support -c and -o options?
16950 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16951
16952 # Whether or not to add -lc for building shared libraries.
16953 build_libtool_need_lc=$archive_cmds_need_lc
16954
16955 # Whether or not to disallow shared libs when runtime libs are static.
16956 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16957
16958 # Compiler flag to allow reflexive dlopens.
16959 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16960
16961 # Compiler flag to generate shared objects directly from archives.
16962 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16963
16964 # Whether the compiler copes with passing no objects directly.
16965 compiler_needs_object=$lt_compiler_needs_object
16966
16967 # Create an old-style archive from a shared archive.
16968 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16969
16970 # Create a temporary old-style archive to link instead of a shared archive.
16971 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16972
16973 # Commands used to build a shared archive.
16974 archive_cmds=$lt_archive_cmds
16975 archive_expsym_cmds=$lt_archive_expsym_cmds
16976
16977 # Commands used to build a loadable module if different from building
16978 # a shared archive.
16979 module_cmds=$lt_module_cmds
16980 module_expsym_cmds=$lt_module_expsym_cmds
16981
16982 # Whether we are building with GNU ld or not.
16983 with_gnu_ld=$lt_with_gnu_ld
16984
16985 # Flag that allows shared libraries with undefined symbols to be built.
16986 allow_undefined_flag=$lt_allow_undefined_flag
16987
16988 # Flag that enforces no undefined symbols.
16989 no_undefined_flag=$lt_no_undefined_flag
16990
16991 # Flag to hardcode \$libdir into a binary during linking.
16992 # This must work even if \$libdir does not exist
16993 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16994
16995 # Whether we need a single "-rpath" flag with a separated argument.
16996 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16997
16998 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16999 # DIR into the resulting binary.
17000 hardcode_direct=$hardcode_direct
17001
17002 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17003 # DIR into the resulting binary and the resulting library dependency is
17004 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17005 # library is relocated.
17006 hardcode_direct_absolute=$hardcode_direct_absolute
17007
17008 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17009 # into the resulting binary.
17010 hardcode_minus_L=$hardcode_minus_L
17011
17012 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17013 # into the resulting binary.
17014 hardcode_shlibpath_var=$hardcode_shlibpath_var
17015
17016 # Set to "yes" if building a shared library automatically hardcodes DIR
17017 # into the library and all subsequent libraries and executables linked
17018 # against it.
17019 hardcode_automatic=$hardcode_automatic
17020
17021 # Set to yes if linker adds runtime paths of dependent libraries
17022 # to runtime path list.
17023 inherit_rpath=$inherit_rpath
17024
17025 # Whether libtool must link a program against all its dependency libraries.
17026 link_all_deplibs=$link_all_deplibs
17027
17028 # Set to "yes" if exported symbols are required.
17029 always_export_symbols=$always_export_symbols
17030
17031 # The commands to list exported symbols.
17032 export_symbols_cmds=$lt_export_symbols_cmds
17033
17034 # Symbols that should not be listed in the preloaded symbols.
17035 exclude_expsyms=$lt_exclude_expsyms
17036
17037 # Symbols that must always be exported.
17038 include_expsyms=$lt_include_expsyms
17039
17040 # Commands necessary for linking programs (against libraries) with templates.
17041 prelink_cmds=$lt_prelink_cmds
17042
17043 # Commands necessary for finishing linking programs.
17044 postlink_cmds=$lt_postlink_cmds
17045
17046 # Specify filename containing input files.
17047 file_list_spec=$lt_file_list_spec
17048
17049 # How to hardcode a shared library path into an executable.
17050 hardcode_action=$hardcode_action
17051
17052 # ### END LIBTOOL CONFIG
17053
17054 _LT_EOF
17055
17056   case $host_os in
17057   aix3*)
17058     cat <<\_LT_EOF >> "$cfgfile"
17059 # AIX sometimes has problems with the GCC collect2 program.  For some
17060 # reason, if we set the COLLECT_NAMES environment variable, the problems
17061 # vanish in a puff of smoke.
17062 if test "X${COLLECT_NAMES+set}" != Xset; then
17063   COLLECT_NAMES=
17064   export COLLECT_NAMES
17065 fi
17066 _LT_EOF
17067     ;;
17068   esac
17069
17070
17071 ltmain="$ac_aux_dir/ltmain.sh"
17072
17073
17074   # We use sed instead of cat because bash on DJGPP gets confused if
17075   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17076   # text mode, it properly converts lines to CR/LF.  This bash problem
17077   # is reportedly fixed, but why not run on old versions too?
17078   sed '$q' "$ltmain" >> "$cfgfile" \
17079      || (rm -f "$cfgfile"; exit 1)
17080
17081   if test x"$xsi_shell" = xyes; then
17082   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17083 func_dirname ()\
17084 {\
17085 \    case ${1} in\
17086 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17087 \      *  ) func_dirname_result="${3}" ;;\
17088 \    esac\
17089 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17090   && mv -f "$cfgfile.tmp" "$cfgfile" \
17091     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17092 test 0 -eq $? || _lt_function_replace_fail=:
17093
17094
17095   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17096 func_basename ()\
17097 {\
17098 \    func_basename_result="${1##*/}"\
17099 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17100   && mv -f "$cfgfile.tmp" "$cfgfile" \
17101     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17102 test 0 -eq $? || _lt_function_replace_fail=:
17103
17104
17105   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17106 func_dirname_and_basename ()\
17107 {\
17108 \    case ${1} in\
17109 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17110 \      *  ) func_dirname_result="${3}" ;;\
17111 \    esac\
17112 \    func_basename_result="${1##*/}"\
17113 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17114   && mv -f "$cfgfile.tmp" "$cfgfile" \
17115     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17116 test 0 -eq $? || _lt_function_replace_fail=:
17117
17118
17119   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17120 func_stripname ()\
17121 {\
17122 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17123 \    # positional parameters, so assign one to ordinary parameter first.\
17124 \    func_stripname_result=${3}\
17125 \    func_stripname_result=${func_stripname_result#"${1}"}\
17126 \    func_stripname_result=${func_stripname_result%"${2}"}\
17127 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17128   && mv -f "$cfgfile.tmp" "$cfgfile" \
17129     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17130 test 0 -eq $? || _lt_function_replace_fail=:
17131
17132
17133   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17134 func_split_long_opt ()\
17135 {\
17136 \    func_split_long_opt_name=${1%%=*}\
17137 \    func_split_long_opt_arg=${1#*=}\
17138 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17139   && mv -f "$cfgfile.tmp" "$cfgfile" \
17140     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17141 test 0 -eq $? || _lt_function_replace_fail=:
17142
17143
17144   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17145 func_split_short_opt ()\
17146 {\
17147 \    func_split_short_opt_arg=${1#??}\
17148 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17149 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17150   && mv -f "$cfgfile.tmp" "$cfgfile" \
17151     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17152 test 0 -eq $? || _lt_function_replace_fail=:
17153
17154
17155   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17156 func_lo2o ()\
17157 {\
17158 \    case ${1} in\
17159 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17160 \      *)    func_lo2o_result=${1} ;;\
17161 \    esac\
17162 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17163   && mv -f "$cfgfile.tmp" "$cfgfile" \
17164     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17165 test 0 -eq $? || _lt_function_replace_fail=:
17166
17167
17168   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17169 func_xform ()\
17170 {\
17171     func_xform_result=${1%.*}.lo\
17172 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17173   && mv -f "$cfgfile.tmp" "$cfgfile" \
17174     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17175 test 0 -eq $? || _lt_function_replace_fail=:
17176
17177
17178   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17179 func_arith ()\
17180 {\
17181     func_arith_result=$(( $* ))\
17182 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17183   && mv -f "$cfgfile.tmp" "$cfgfile" \
17184     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17185 test 0 -eq $? || _lt_function_replace_fail=:
17186
17187
17188   sed -e '/^func_len ()$/,/^} # func_len /c\
17189 func_len ()\
17190 {\
17191     func_len_result=${#1}\
17192 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17193   && mv -f "$cfgfile.tmp" "$cfgfile" \
17194     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17195 test 0 -eq $? || _lt_function_replace_fail=:
17196
17197 fi
17198
17199 if test x"$lt_shell_append" = xyes; then
17200   sed -e '/^func_append ()$/,/^} # func_append /c\
17201 func_append ()\
17202 {\
17203     eval "${1}+=\\${2}"\
17204 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17205   && mv -f "$cfgfile.tmp" "$cfgfile" \
17206     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17207 test 0 -eq $? || _lt_function_replace_fail=:
17208
17209
17210   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17211 func_append_quoted ()\
17212 {\
17213 \    func_quote_for_eval "${2}"\
17214 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17215 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17216   && mv -f "$cfgfile.tmp" "$cfgfile" \
17217     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17218 test 0 -eq $? || _lt_function_replace_fail=:
17219
17220
17221   # Save a `func_append' function call where possible by direct use of '+='
17222   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17223     && mv -f "$cfgfile.tmp" "$cfgfile" \
17224       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17225   test 0 -eq $? || _lt_function_replace_fail=:
17226 else
17227   # Save a `func_append' function call even when '+=' is not available
17228   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17229     && mv -f "$cfgfile.tmp" "$cfgfile" \
17230       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17231   test 0 -eq $? || _lt_function_replace_fail=:
17232 fi
17233
17234 if test x"$_lt_function_replace_fail" = x":"; then
17235   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17236 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17237 fi
17238
17239
17240    mv -f "$cfgfile" "$ofile" ||
17241     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17242   chmod +x "$ofile"
17243
17244  ;;
17245     "po-directories":C)
17246     for ac_file in $CONFIG_FILES; do
17247       # Support "outfile[:infile[:infile...]]"
17248       case "$ac_file" in
17249         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17250       esac
17251       # PO directories have a Makefile.in generated from Makefile.in.in.
17252       case "$ac_file" in */Makefile.in)
17253         # Adjust a relative srcdir.
17254         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17255         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17256         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17257         # In autoconf-2.13 it is called $ac_given_srcdir.
17258         # In autoconf-2.50 it is called $srcdir.
17259         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17260         case "$ac_given_srcdir" in
17261           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17262           /*) top_srcdir="$ac_given_srcdir" ;;
17263           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17264         esac
17265         # Treat a directory as a PO directory if and only if it has a
17266         # POTFILES.in file. This allows packages to have multiple PO
17267         # directories under different names or in different locations.
17268         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17269           rm -f "$ac_dir/POTFILES"
17270           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17271           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17272           POMAKEFILEDEPS="POTFILES.in"
17273           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17274           # on $ac_dir but don't depend on user-specified configuration
17275           # parameters.
17276           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17277             # The LINGUAS file contains the set of available languages.
17278             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17279               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17280             fi
17281             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17282             # Hide the ALL_LINGUAS assigment from automake < 1.5.
17283             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17284             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17285           else
17286             # The set of available languages was given in configure.in.
17287             # Hide the ALL_LINGUAS assigment from automake < 1.5.
17288             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17289           fi
17290           # Compute POFILES
17291           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17292           # Compute UPDATEPOFILES
17293           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17294           # Compute DUMMYPOFILES
17295           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17296           # Compute GMOFILES
17297           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17298           case "$ac_given_srcdir" in
17299             .) srcdirpre= ;;
17300             *) srcdirpre='$(srcdir)/' ;;
17301           esac
17302           POFILES=
17303           UPDATEPOFILES=
17304           DUMMYPOFILES=
17305           GMOFILES=
17306           for lang in $ALL_LINGUAS; do
17307             POFILES="$POFILES $srcdirpre$lang.po"
17308             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17309             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17310             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17311           done
17312           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17313           # environment variable.
17314           INST_LINGUAS=
17315           if test -n "$ALL_LINGUAS"; then
17316             for presentlang in $ALL_LINGUAS; do
17317               useit=no
17318               if test "%UNSET%" != "$LINGUAS"; then
17319                 desiredlanguages="$LINGUAS"
17320               else
17321                 desiredlanguages="$ALL_LINGUAS"
17322               fi
17323               for desiredlang in $desiredlanguages; do
17324                 # Use the presentlang catalog if desiredlang is
17325                 #   a. equal to presentlang, or
17326                 #   b. a variant of presentlang (because in this case,
17327                 #      presentlang can be used as a fallback for messages
17328                 #      which are not translated in the desiredlang catalog).
17329                 case "$desiredlang" in
17330                   "$presentlang"*) useit=yes;;
17331                 esac
17332               done
17333               if test $useit = yes; then
17334                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17335               fi
17336             done
17337           fi
17338           CATALOGS=
17339           if test -n "$INST_LINGUAS"; then
17340             for lang in $INST_LINGUAS; do
17341               CATALOGS="$CATALOGS $lang.gmo"
17342             done
17343           fi
17344           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17345           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17346           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17347             if test -f "$f"; then
17348               case "$f" in
17349                 *.orig | *.bak | *~) ;;
17350                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17351               esac
17352             fi
17353           done
17354         fi
17355         ;;
17356       esac
17357     done ;;
17358     "tests/atconfig":C) cat >tests/atconfig <<ATEOF
17359 # Configurable variable values for building test suites.
17360 # Generated by $0.
17361 # Copyright (C) 2012 Free Software Foundation, Inc.
17362
17363 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
17364 at_testdir='tests'
17365 abs_builddir='$ac_abs_builddir'
17366 at_srcdir='$ac_srcdir'
17367 abs_srcdir='$ac_abs_srcdir'
17368 at_top_srcdir='$ac_top_srcdir'
17369 abs_top_srcdir='$ac_abs_top_srcdir'
17370 at_top_build_prefix='$ac_top_build_prefix'
17371 abs_top_builddir='$ac_abs_top_builddir'
17372
17373 # Backward compatibility with Autotest <= 2.59b:
17374 at_top_builddir=\$at_top_build_prefix
17375
17376 AUTOTEST_PATH='tests'
17377
17378 SHELL=\${CONFIG_SHELL-'$SHELL'}
17379 ATEOF
17380  ;;
17381
17382   esac
17383 done # for ac_tag
17384
17385
17386 as_fn_exit 0
17387 _ACEOF
17388 ac_clean_files=$ac_clean_files_save
17389
17390 test $ac_write_fail = 0 ||
17391   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17392
17393
17394 # configure is writing to config.log, and then calls config.status.
17395 # config.status does its own redirection, appending to config.log.
17396 # Unfortunately, on DOS this fails, as config.log is still kept open
17397 # by configure, so config.status won't be able to write to it; its
17398 # output is simply discarded.  So we exec the FD to /dev/null,
17399 # effectively closing config.log, so it can be properly (re)opened and
17400 # appended to by config.status.  When coming back to configure, we
17401 # need to make the FD available again.
17402 if test "$no_create" != yes; then
17403   ac_cs_success=:
17404   ac_config_status_args=
17405   test "$silent" = yes &&
17406     ac_config_status_args="$ac_config_status_args --quiet"
17407   exec 5>/dev/null
17408   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17409   exec 5>>config.log
17410   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17411   # would make configure fail if this is the last instruction.
17412   $ac_cs_success || as_fn_exit 1
17413 fi
17414 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17415   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17416 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17417 fi
17418