merge debian patch
[sqlcipher.git] / configure
blob7373415b6806d1b98f5acdac87462b5cdba75856
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sqlite 3.7.14.1.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
541 case X$lt_ECHO in
542 X*--fallback-echo)
543 # Remove one level of quotation (which was required for Make).
544 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
546 esac
548 ECHO=${lt_ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550 # Discard the --no-reexec flag, and continue.
551 shift
552 elif test "X$1" = X--fallback-echo; then
553 # Avoid inline document here, it may be left over
555 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
556 # Yippee, $ECHO works!
558 else
559 # Restart under the correct shell.
560 exec $SHELL "$0" --no-reexec ${1+"$@"}
563 if test "X$1" = X--fallback-echo; then
564 # used as fallback echo
565 shift
566 cat <<_LT_EOF
568 _LT_EOF
569 exit 0
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
576 if test -z "$lt_ECHO"; then
577 if test "X${echo_test_string+set}" != Xset; then
578 # find a string as large as possible, as long as the shell can cope with it
579 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
582 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
583 then
584 break
586 done
589 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
590 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
591 test "X$echo_testing_string" = "X$echo_test_string"; then
593 else
594 # The Solaris, AIX, and Digital Unix default echo programs unquote
595 # backslashes. This makes it impossible to quote backslashes using
596 # echo "$something" | sed 's/\\/\\\\/g'
598 # So, first we look for a working echo in the user's PATH.
600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601 for dir in $PATH /usr/ucb; do
602 IFS="$lt_save_ifs"
603 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 ECHO="$dir/echo"
608 break
610 done
611 IFS="$lt_save_ifs"
613 if test "X$ECHO" = Xecho; then
614 # We didn't find a better echo, so look for alternatives.
615 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
616 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
617 test "X$echo_testing_string" = "X$echo_test_string"; then
618 # This shell has a builtin print -r that does the trick.
619 ECHO='print -r'
620 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
621 test "X$CONFIG_SHELL" != X/bin/ksh; then
622 # If we have ksh, try running configure again with it.
623 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624 export ORIGINAL_CONFIG_SHELL
625 CONFIG_SHELL=/bin/ksh
626 export CONFIG_SHELL
627 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
628 else
629 # Try using printf.
630 ECHO='printf %s\n'
631 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # Cool, printf works
636 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637 test "X$echo_testing_string" = 'X\t' &&
638 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
640 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
641 export CONFIG_SHELL
642 SHELL="$CONFIG_SHELL"
643 export SHELL
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646 test "X$echo_testing_string" = 'X\t' &&
647 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 ECHO="$CONFIG_SHELL $0 --fallback-echo"
650 else
651 # maybe with a smaller string...
652 prev=:
654 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
656 then
657 break
659 prev="$cmd"
660 done
662 if test "$prev" != 'sed 50q "$0"'; then
663 echo_test_string=`eval $prev`
664 export echo_test_string
665 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
666 else
667 # Oops. We lost completely, so just stick with echo.
668 ECHO=echo
676 # Copy echo and quote the copy suitably for passing to libtool from
677 # the Makefile, instead of quoting the original, which is used later.
678 lt_ECHO=$ECHO
679 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686 test -n "$DJDIR" || exec 7<&0 </dev/null
687 exec 6>&1
689 # Name of the host.
690 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
691 # so uname gets run too.
692 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
695 # Initializations.
697 ac_default_prefix=/usr/local
698 ac_clean_files=
699 ac_config_libobj_dir=.
700 LIBOBJS=
701 cross_compiling=no
702 subdirs=
703 MFLAGS=
704 MAKEFLAGS=
706 # Identity of this package.
707 PACKAGE_NAME='sqlite'
708 PACKAGE_TARNAME='sqlite'
709 PACKAGE_VERSION='3.7.14.1'
710 PACKAGE_STRING='sqlite 3.7.14.1'
711 PACKAGE_BUGREPORT=''
712 PACKAGE_URL=''
714 # Factoring default headers for most tests.
715 ac_includes_default="\
716 #include <stdio.h>
717 #ifdef HAVE_SYS_TYPES_H
718 # include <sys/types.h>
719 #endif
720 #ifdef HAVE_SYS_STAT_H
721 # include <sys/stat.h>
722 #endif
723 #ifdef STDC_HEADERS
724 # include <stdlib.h>
725 # include <stddef.h>
726 #else
727 # ifdef HAVE_STDLIB_H
728 # include <stdlib.h>
729 # endif
730 #endif
731 #ifdef HAVE_STRING_H
732 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733 # include <memory.h>
734 # endif
735 # include <string.h>
736 #endif
737 #ifdef HAVE_STRINGS_H
738 # include <strings.h>
739 #endif
740 #ifdef HAVE_INTTYPES_H
741 # include <inttypes.h>
742 #endif
743 #ifdef HAVE_STDINT_H
744 # include <stdint.h>
745 #endif
746 #ifdef HAVE_UNISTD_H
747 # include <unistd.h>
748 #endif"
750 ac_subst_vars='LTLIBOBJS
751 LIBOBJS
752 BUILD_CFLAGS
753 USE_GCOV
754 OPT_FEATURE_FLAGS
755 USE_AMALGAMATION
756 TARGET_DEBUG
757 TARGET_HAVE_READLINE
758 TARGET_READLINE_INC
759 TARGET_READLINE_LIBS
760 HAVE_TCL
761 TCL_STUB_LIB_SPEC
762 TCL_STUB_LIB_FLAG
763 TCL_STUB_LIB_FILE
764 TCL_LIB_SPEC
765 TCL_LIB_FLAG
766 TCL_LIB_FILE
767 TCL_INCLUDE_SPEC
768 TCL_LIBS
769 TCL_SRC_DIR
770 TCL_BIN_DIR
771 TCL_VERSION
772 TARGET_EXEEXT
773 SQLITE_OS_OS2
774 SQLITE_OS_WIN
775 SQLITE_OS_UNIX
776 BUILD_EXEEXT
777 TEMP_STORE
778 ALLOWRELEASE
779 XTHREADCONNECT
780 SQLITE_THREADSAFE
781 BUILD_CC
782 VERSION_NUMBER
783 RELEASE
784 VERSION
785 program_prefix
786 TCLLIBDIR
787 TCLSH_CMD
789 INSTALL_DATA
790 INSTALL_SCRIPT
791 INSTALL_PROGRAM
793 OTOOL64
794 OTOOL
795 LIPO
796 NMEDIT
797 DSYMUTIL
798 lt_ECHO
799 RANLIB
800 STRIP
802 OBJDUMP
803 LN_S
805 ac_ct_DUMPBIN
806 DUMPBIN
808 FGREP
809 EGREP
810 GREP
812 OBJEXT
813 EXEEXT
814 ac_ct_CC
815 CPPFLAGS
816 LDFLAGS
817 CFLAGS
819 host_os
820 host_vendor
821 host_cpu
822 host
823 build_os
824 build_vendor
825 build_cpu
826 build
827 LIBTOOL
828 target_alias
829 host_alias
830 build_alias
831 LIBS
832 ECHO_T
833 ECHO_N
834 ECHO_C
835 DEFS
836 mandir
837 localedir
838 libdir
839 psdir
840 pdfdir
841 dvidir
842 htmldir
843 infodir
844 docdir
845 oldincludedir
846 includedir
847 localstatedir
848 sharedstatedir
849 sysconfdir
850 datadir
851 datarootdir
852 libexecdir
853 sbindir
854 bindir
855 program_transform_name
856 prefix
857 exec_prefix
858 PACKAGE_URL
859 PACKAGE_BUGREPORT
860 PACKAGE_STRING
861 PACKAGE_VERSION
862 PACKAGE_TARNAME
863 PACKAGE_NAME
864 PATH_SEPARATOR
865 SHELL'
866 ac_subst_files=''
867 ac_user_opts='
868 enable_option_checking
869 enable_shared
870 enable_static
871 with_pic
872 enable_fast_install
873 with_gnu_ld
874 enable_libtool_lock
875 enable_largefile
876 with_hints
877 enable_threadsafe
878 enable_cross_thread_connections
879 enable_releasemode
880 enable_tempstore
881 enable_tcl
882 with_tcl
883 enable_readline
884 with_readline_lib
885 with_readline_inc
886 enable_debug
887 enable_amalgamation
888 enable_load_extension
889 enable_gcov
891 ac_precious_vars='build_alias
892 host_alias
893 target_alias
895 CFLAGS
896 LDFLAGS
897 LIBS
898 CPPFLAGS
900 TCLLIBDIR'
903 # Initialize some variables set by options.
904 ac_init_help=
905 ac_init_version=false
906 ac_unrecognized_opts=
907 ac_unrecognized_sep=
908 # The variables have the same names as the options, with
909 # dashes changed to underlines.
910 cache_file=/dev/null
911 exec_prefix=NONE
912 no_create=
913 no_recursion=
914 prefix=NONE
915 program_prefix=NONE
916 program_suffix=NONE
917 program_transform_name=s,x,x,
918 silent=
919 site=
920 srcdir=
921 verbose=
922 x_includes=NONE
923 x_libraries=NONE
925 # Installation directory options.
926 # These are left unexpanded so users can "make install exec_prefix=/foo"
927 # and all the variables that are supposed to be based on exec_prefix
928 # by default will actually change.
929 # Use braces instead of parens because sh, perl, etc. also accept them.
930 # (The list follows the same order as the GNU Coding Standards.)
931 bindir='${exec_prefix}/bin'
932 sbindir='${exec_prefix}/sbin'
933 libexecdir='${exec_prefix}/libexec'
934 datarootdir='${prefix}/share'
935 datadir='${datarootdir}'
936 sysconfdir='${prefix}/etc'
937 sharedstatedir='${prefix}/com'
938 localstatedir='${prefix}/var'
939 includedir='${prefix}/include'
940 oldincludedir='/usr/include'
941 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
942 infodir='${datarootdir}/info'
943 htmldir='${docdir}'
944 dvidir='${docdir}'
945 pdfdir='${docdir}'
946 psdir='${docdir}'
947 libdir='${exec_prefix}/lib'
948 localedir='${datarootdir}/locale'
949 mandir='${datarootdir}/man'
951 ac_prev=
952 ac_dashdash=
953 for ac_option
955 # If the previous option needs an argument, assign it.
956 if test -n "$ac_prev"; then
957 eval $ac_prev=\$ac_option
958 ac_prev=
959 continue
962 case $ac_option in
963 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
964 *=) ac_optarg= ;;
965 *) ac_optarg=yes ;;
966 esac
968 # Accept the important Cygnus configure options, so we can diagnose typos.
970 case $ac_dashdash$ac_option in
972 ac_dashdash=yes ;;
974 -bindir | --bindir | --bindi | --bind | --bin | --bi)
975 ac_prev=bindir ;;
976 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 bindir=$ac_optarg ;;
979 -build | --build | --buil | --bui | --bu)
980 ac_prev=build_alias ;;
981 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
982 build_alias=$ac_optarg ;;
984 -cache-file | --cache-file | --cache-fil | --cache-fi \
985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
986 ac_prev=cache_file ;;
987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
989 cache_file=$ac_optarg ;;
991 --config-cache | -C)
992 cache_file=config.cache ;;
994 -datadir | --datadir | --datadi | --datad)
995 ac_prev=datadir ;;
996 -datadir=* | --datadir=* | --datadi=* | --datad=*)
997 datadir=$ac_optarg ;;
999 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1000 | --dataroo | --dataro | --datar)
1001 ac_prev=datarootdir ;;
1002 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1003 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1004 datarootdir=$ac_optarg ;;
1006 -disable-* | --disable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1015 "enable_$ac_useropt"
1016 "*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=no ;;
1022 -docdir | --docdir | --docdi | --doc | --do)
1023 ac_prev=docdir ;;
1024 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1025 docdir=$ac_optarg ;;
1027 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1028 ac_prev=dvidir ;;
1029 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1030 dvidir=$ac_optarg ;;
1032 -enable-* | --enable-*)
1033 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1036 as_fn_error $? "invalid feature name: $ac_useropt"
1037 ac_useropt_orig=$ac_useropt
1038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1041 "enable_$ac_useropt"
1042 "*) ;;
1043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1044 ac_unrecognized_sep=', ';;
1045 esac
1046 eval enable_$ac_useropt=\$ac_optarg ;;
1048 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1049 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1050 | --exec | --exe | --ex)
1051 ac_prev=exec_prefix ;;
1052 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1053 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1054 | --exec=* | --exe=* | --ex=*)
1055 exec_prefix=$ac_optarg ;;
1057 -gas | --gas | --ga | --g)
1058 # Obsolete; use --with-gas.
1059 with_gas=yes ;;
1061 -help | --help | --hel | --he | -h)
1062 ac_init_help=long ;;
1063 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1064 ac_init_help=recursive ;;
1065 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1066 ac_init_help=short ;;
1068 -host | --host | --hos | --ho)
1069 ac_prev=host_alias ;;
1070 -host=* | --host=* | --hos=* | --ho=*)
1071 host_alias=$ac_optarg ;;
1073 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1074 ac_prev=htmldir ;;
1075 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1076 | --ht=*)
1077 htmldir=$ac_optarg ;;
1079 -includedir | --includedir | --includedi | --included | --include \
1080 | --includ | --inclu | --incl | --inc)
1081 ac_prev=includedir ;;
1082 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1083 | --includ=* | --inclu=* | --incl=* | --inc=*)
1084 includedir=$ac_optarg ;;
1086 -infodir | --infodir | --infodi | --infod | --info | --inf)
1087 ac_prev=infodir ;;
1088 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1089 infodir=$ac_optarg ;;
1091 -libdir | --libdir | --libdi | --libd)
1092 ac_prev=libdir ;;
1093 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1094 libdir=$ac_optarg ;;
1096 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1097 | --libexe | --libex | --libe)
1098 ac_prev=libexecdir ;;
1099 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1100 | --libexe=* | --libex=* | --libe=*)
1101 libexecdir=$ac_optarg ;;
1103 -localedir | --localedir | --localedi | --localed | --locale)
1104 ac_prev=localedir ;;
1105 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1106 localedir=$ac_optarg ;;
1108 -localstatedir | --localstatedir | --localstatedi | --localstated \
1109 | --localstate | --localstat | --localsta | --localst | --locals)
1110 ac_prev=localstatedir ;;
1111 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1112 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1113 localstatedir=$ac_optarg ;;
1115 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1116 ac_prev=mandir ;;
1117 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1118 mandir=$ac_optarg ;;
1120 -nfp | --nfp | --nf)
1121 # Obsolete; use --without-fp.
1122 with_fp=no ;;
1124 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1125 | --no-cr | --no-c | -n)
1126 no_create=yes ;;
1128 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1129 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 no_recursion=yes ;;
1132 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1133 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1134 | --oldin | --oldi | --old | --ol | --o)
1135 ac_prev=oldincludedir ;;
1136 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1137 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1138 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1139 oldincludedir=$ac_optarg ;;
1141 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1142 ac_prev=prefix ;;
1143 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1144 prefix=$ac_optarg ;;
1146 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1147 | --program-pre | --program-pr | --program-p)
1148 ac_prev=program_prefix ;;
1149 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1150 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1151 program_prefix=$ac_optarg ;;
1153 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1154 | --program-suf | --program-su | --program-s)
1155 ac_prev=program_suffix ;;
1156 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1157 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1158 program_suffix=$ac_optarg ;;
1160 -program-transform-name | --program-transform-name \
1161 | --program-transform-nam | --program-transform-na \
1162 | --program-transform-n | --program-transform- \
1163 | --program-transform | --program-transfor \
1164 | --program-transfo | --program-transf \
1165 | --program-trans | --program-tran \
1166 | --progr-tra | --program-tr | --program-t)
1167 ac_prev=program_transform_name ;;
1168 -program-transform-name=* | --program-transform-name=* \
1169 | --program-transform-nam=* | --program-transform-na=* \
1170 | --program-transform-n=* | --program-transform-=* \
1171 | --program-transform=* | --program-transfor=* \
1172 | --program-transfo=* | --program-transf=* \
1173 | --program-trans=* | --program-tran=* \
1174 | --progr-tra=* | --program-tr=* | --program-t=*)
1175 program_transform_name=$ac_optarg ;;
1177 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1178 ac_prev=pdfdir ;;
1179 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1180 pdfdir=$ac_optarg ;;
1182 -psdir | --psdir | --psdi | --psd | --ps)
1183 ac_prev=psdir ;;
1184 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 psdir=$ac_optarg ;;
1187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1188 | -silent | --silent | --silen | --sile | --sil)
1189 silent=yes ;;
1191 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1192 ac_prev=sbindir ;;
1193 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1194 | --sbi=* | --sb=*)
1195 sbindir=$ac_optarg ;;
1197 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1198 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1199 | --sharedst | --shareds | --shared | --share | --shar \
1200 | --sha | --sh)
1201 ac_prev=sharedstatedir ;;
1202 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1203 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1204 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1205 | --sha=* | --sh=*)
1206 sharedstatedir=$ac_optarg ;;
1208 -site | --site | --sit)
1209 ac_prev=site ;;
1210 -site=* | --site=* | --sit=*)
1211 site=$ac_optarg ;;
1213 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1214 ac_prev=srcdir ;;
1215 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1216 srcdir=$ac_optarg ;;
1218 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1219 | --syscon | --sysco | --sysc | --sys | --sy)
1220 ac_prev=sysconfdir ;;
1221 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1222 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1223 sysconfdir=$ac_optarg ;;
1225 -target | --target | --targe | --targ | --tar | --ta | --t)
1226 ac_prev=target_alias ;;
1227 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1228 target_alias=$ac_optarg ;;
1230 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 verbose=yes ;;
1233 -version | --version | --versio | --versi | --vers | -V)
1234 ac_init_version=: ;;
1236 -with-* | --with-*)
1237 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1240 as_fn_error $? "invalid package name: $ac_useropt"
1241 ac_useropt_orig=$ac_useropt
1242 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1243 case $ac_user_opts in
1245 "with_$ac_useropt"
1246 "*) ;;
1247 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1248 ac_unrecognized_sep=', ';;
1249 esac
1250 eval with_$ac_useropt=\$ac_optarg ;;
1252 -without-* | --without-*)
1253 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1256 as_fn_error $? "invalid package name: $ac_useropt"
1257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1261 "with_$ac_useropt"
1262 "*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=no ;;
1268 --x)
1269 # Obsolete; use --with-x.
1270 with_x=yes ;;
1272 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1273 | --x-incl | --x-inc | --x-in | --x-i)
1274 ac_prev=x_includes ;;
1275 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1276 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1277 x_includes=$ac_optarg ;;
1279 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1280 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1281 ac_prev=x_libraries ;;
1282 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1283 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1284 x_libraries=$ac_optarg ;;
1286 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1287 Try \`$0 --help' for more information"
1290 *=*)
1291 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1292 # Reject names that are not valid shell variable names.
1293 case $ac_envvar in #(
1294 '' | [0-9]* | *[!_$as_cr_alnum]* )
1295 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1296 esac
1297 eval $ac_envvar=\$ac_optarg
1298 export $ac_envvar ;;
1301 # FIXME: should be removed in autoconf 3.0.
1302 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1303 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1304 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1305 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 esac
1309 done
1311 if test -n "$ac_prev"; then
1312 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1313 as_fn_error $? "missing argument to $ac_option"
1316 if test -n "$ac_unrecognized_opts"; then
1317 case $enable_option_checking in
1318 no) ;;
1319 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1320 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1321 esac
1324 # Check all directory arguments for consistency.
1325 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1326 datadir sysconfdir sharedstatedir localstatedir includedir \
1327 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1328 libdir localedir mandir
1330 eval ac_val=\$$ac_var
1331 # Remove trailing slashes.
1332 case $ac_val in
1333 */ )
1334 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1335 eval $ac_var=\$ac_val;;
1336 esac
1337 # Be sure to have absolute directory names.
1338 case $ac_val in
1339 [\\/$]* | ?:[\\/]* ) continue;;
1340 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1341 esac
1342 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1343 done
1345 # There might be people who depend on the old broken behavior: `$host'
1346 # used to hold the argument of --host etc.
1347 # FIXME: To remove some day.
1348 build=$build_alias
1349 host=$host_alias
1350 target=$target_alias
1352 # FIXME: To remove some day.
1353 if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1357 If a cross compiler is detected then cross compile mode will be used" >&2
1358 elif test "x$build_alias" != "x$host_alias"; then
1359 cross_compiling=yes
1363 ac_tool_prefix=
1364 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1366 test "$silent" = yes && exec 6>/dev/null
1369 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370 ac_ls_di=`ls -di .` &&
1371 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372 as_fn_error $? "working directory cannot be determined"
1373 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1374 as_fn_error $? "pwd does not report name of working directory"
1377 # Find the source files, if location was not specified.
1378 if test -z "$srcdir"; then
1379 ac_srcdir_defaulted=yes
1380 # Try the directory containing this script, then the parent directory.
1381 ac_confdir=`$as_dirname -- "$as_myself" ||
1382 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1383 X"$as_myself" : 'X\(//\)[^/]' \| \
1384 X"$as_myself" : 'X\(//\)$' \| \
1385 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1386 $as_echo X"$as_myself" |
1387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1388 s//\1/
1391 /^X\(\/\/\)[^/].*/{
1392 s//\1/
1395 /^X\(\/\/\)$/{
1396 s//\1/
1399 /^X\(\/\).*/{
1400 s//\1/
1403 s/.*/./; q'`
1404 srcdir=$ac_confdir
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406 srcdir=..
1408 else
1409 ac_srcdir_defaulted=no
1411 if test ! -r "$srcdir/$ac_unique_file"; then
1412 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1413 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1415 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416 ac_abs_confdir=`(
1417 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1418 pwd)`
1419 # When building in place, set srcdir=.
1420 if test "$ac_abs_confdir" = "$ac_pwd"; then
1421 srcdir=.
1423 # Remove unnecessary trailing slashes from srcdir.
1424 # Double slashes in file names in object file debugging info
1425 # mess up M-x gdb in Emacs.
1426 case $srcdir in
1427 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 esac
1429 for ac_var in $ac_precious_vars; do
1430 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1431 eval ac_env_${ac_var}_value=\$${ac_var}
1432 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1434 done
1437 # Report the --help message.
1439 if test "$ac_init_help" = "long"; then
1440 # Omit some internal or obsolete options to make the list less imposing.
1441 # This message is too long to be a string in the A/UX 3.1 sh.
1442 cat <<_ACEOF
1443 \`configure' configures sqlite 3.7.14.1 to adapt to many kinds of systems.
1445 Usage: $0 [OPTION]... [VAR=VALUE]...
1447 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1448 VAR=VALUE. See below for descriptions of some of the useful variables.
1450 Defaults for the options are specified in brackets.
1452 Configuration:
1453 -h, --help display this help and exit
1454 --help=short display options specific to this package
1455 --help=recursive display the short help of all the included packages
1456 -V, --version display version information and exit
1457 -q, --quiet, --silent do not print \`checking ...' messages
1458 --cache-file=FILE cache test results in FILE [disabled]
1459 -C, --config-cache alias for \`--cache-file=config.cache'
1460 -n, --no-create do not create output files
1461 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1463 Installation directories:
1464 --prefix=PREFIX install architecture-independent files in PREFIX
1465 [$ac_default_prefix]
1466 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1467 [PREFIX]
1469 By default, \`make install' will install all the files in
1470 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1471 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1472 for instance \`--prefix=\$HOME'.
1474 For better control, use the options below.
1476 Fine tuning of the installation directories:
1477 --bindir=DIR user executables [EPREFIX/bin]
1478 --sbindir=DIR system admin executables [EPREFIX/sbin]
1479 --libexecdir=DIR program executables [EPREFIX/libexec]
1480 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1481 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1482 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1483 --libdir=DIR object code libraries [EPREFIX/lib]
1484 --includedir=DIR C header files [PREFIX/include]
1485 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1486 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1487 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1488 --infodir=DIR info documentation [DATAROOTDIR/info]
1489 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1490 --mandir=DIR man documentation [DATAROOTDIR/man]
1491 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1492 --htmldir=DIR html documentation [DOCDIR]
1493 --dvidir=DIR dvi documentation [DOCDIR]
1494 --pdfdir=DIR pdf documentation [DOCDIR]
1495 --psdir=DIR ps documentation [DOCDIR]
1496 _ACEOF
1498 cat <<\_ACEOF
1500 System types:
1501 --build=BUILD configure for building on BUILD [guessed]
1502 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1503 _ACEOF
1506 if test -n "$ac_init_help"; then
1507 case $ac_init_help in
1508 short | recursive ) echo "Configuration of sqlite 3.7.14.1:";;
1509 esac
1510 cat <<\_ACEOF
1512 Optional Features:
1513 --disable-option-checking ignore unrecognized --enable/--with options
1514 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1515 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1516 --enable-shared[=PKGS] build shared libraries [default=yes]
1517 --enable-static[=PKGS] build static libraries [default=yes]
1518 --enable-fast-install[=PKGS]
1519 optimize for fast installation [default=yes]
1520 --disable-libtool-lock avoid locking (might break parallel builds)
1521 --disable-largefile omit support for large files
1522 --enable-threadsafe Support threadsafe operation
1523 --enable-cross-thread-connections
1524 Allow connection sharing across threads
1525 --enable-releasemode Support libtool link to release mode
1526 --enable-tempstore Use an in-ram database for temporary tables
1527 (never,no,yes,always)
1528 --disable-tcl do not build TCL extension
1529 --disable-readline disable readline support [default=detect]
1530 --enable-debug enable debugging & verbose explain
1531 --disable-amalgamation Disable the amalgamation and instead build all files
1532 separately
1533 --enable-load-extension Enable loading of external extensions
1534 --enable-gcov Enable coverage testing using gcov
1536 Optional Packages:
1537 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1538 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1539 --with-pic try to use only PIC/non-PIC objects [default=use
1540 both]
1541 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1542 --with-hints=FILE Read configuration options from FILE
1543 --with-tcl=DIR directory containing tcl configuration
1544 (tclConfig.sh)
1545 --with-readline-lib specify readline library
1546 --with-readline-inc specify readline include paths
1548 Some influential environment variables:
1549 CC C compiler command
1550 CFLAGS C compiler flags
1551 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1552 nonstandard directory <lib dir>
1553 LIBS libraries to pass to the linker, e.g. -l<library>
1554 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1555 you have headers in a nonstandard directory <include dir>
1556 CPP C preprocessor
1557 TCLLIBDIR Where to install tcl plugin
1559 Use these variables to override the choices made by `configure' or to help
1560 it to find libraries and programs with nonstandard names/locations.
1562 Report bugs to the package provider.
1563 _ACEOF
1564 ac_status=$?
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572 continue
1573 ac_builddir=.
1575 case "$ac_dir" in
1576 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584 esac ;;
1585 esac
1586 ac_abs_top_builddir=$ac_pwd
1587 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir=$ac_top_build_prefix
1591 case $srcdir in
1592 .) # We are building in place.
1593 ac_srcdir=.
1594 ac_top_srcdir=$ac_top_builddir_sub
1595 ac_abs_top_srcdir=$ac_pwd ;;
1596 [\\/]* | ?:[\\/]* ) # Absolute name.
1597 ac_srcdir=$srcdir$ac_dir_suffix;
1598 ac_top_srcdir=$srcdir
1599 ac_abs_top_srcdir=$srcdir ;;
1600 *) # Relative name.
1601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604 esac
1605 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607 cd "$ac_dir" || { ac_status=$?; continue; }
1608 # Check for guested configure.
1609 if test -f "$ac_srcdir/configure.gnu"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612 elif test -f "$ac_srcdir/configure"; then
1613 echo &&
1614 $SHELL "$ac_srcdir/configure" --help=recursive
1615 else
1616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617 fi || ac_status=$?
1618 cd "$ac_pwd" || { ac_status=$?; break; }
1619 done
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1624 cat <<\_ACEOF
1625 sqlite configure 3.7.14.1
1626 generated by GNU Autoconf 2.68
1628 Copyright (C) 2010 Free Software Foundation, Inc.
1629 This configure script is free software; the Free Software Foundation
1630 gives unlimited permission to copy, distribute and modify it.
1631 _ACEOF
1632 exit
1635 ## ------------------------ ##
1636 ## Autoconf initialization. ##
1637 ## ------------------------ ##
1639 # ac_fn_c_try_compile LINENO
1640 # --------------------------
1641 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1642 ac_fn_c_try_compile ()
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 rm -f conftest.$ac_objext
1646 if { { ac_try="$ac_compile"
1647 case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_compile") 2>conftest.err
1654 ac_status=$?
1655 if test -s conftest.err; then
1656 grep -v '^ *+' conftest.err >conftest.er1
1657 cat conftest.er1 >&5
1658 mv -f conftest.er1 conftest.err
1660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661 test $ac_status = 0; } && {
1662 test -z "$ac_c_werror_flag" ||
1663 test ! -s conftest.err
1664 } && test -s conftest.$ac_objext; then :
1665 ac_retval=0
1666 else
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1670 ac_retval=1
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673 as_fn_set_status $ac_retval
1675 } # ac_fn_c_try_compile
1677 # ac_fn_c_try_link LINENO
1678 # -----------------------
1679 # Try to link conftest.$ac_ext, and return whether this succeeded.
1680 ac_fn_c_try_link ()
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 rm -f conftest.$ac_objext conftest$ac_exeext
1684 if { { ac_try="$ac_link"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_link") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && {
1700 test -z "$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 } && test -s conftest$ac_exeext && {
1703 test "$cross_compiling" = yes ||
1704 $as_test_x conftest$ac_exeext
1705 }; then :
1706 ac_retval=0
1707 else
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1711 ac_retval=1
1713 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715 # interfere with the next link command; also delete a directory that is
1716 # left behind by Apple's compiler. We do this before executing the actions.
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1721 } # ac_fn_c_try_link
1723 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724 # -------------------------------------------------------
1725 # Tests whether HEADER exists and can be compiled using the include files in
1726 # INCLUDES, setting the cache variable VAR accordingly.
1727 ac_fn_c_check_header_compile ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if eval \${$3+:} false; then :
1733 $as_echo_n "(cached) " >&6
1734 else
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1738 #include <$2>
1739 _ACEOF
1740 if ac_fn_c_try_compile "$LINENO"; then :
1741 eval "$3=yes"
1742 else
1743 eval "$3=no"
1745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1747 eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 } # ac_fn_c_check_header_compile
1754 # ac_fn_c_try_cpp LINENO
1755 # ----------------------
1756 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1757 ac_fn_c_try_cpp ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { { ac_try="$ac_cpp conftest.$ac_ext"
1761 case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1768 ac_status=$?
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } > conftest.i && {
1776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 }; then :
1779 ac_retval=0
1780 else
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1784 ac_retval=1
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1789 } # ac_fn_c_try_cpp
1791 # ac_fn_c_try_run LINENO
1792 # ----------------------
1793 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1794 # that executables *can* be run.
1795 ac_fn_c_try_run ()
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if { { ac_try="$ac_link"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>&5
1806 ac_status=$?
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1809 { { case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_try") 2>&5
1816 ac_status=$?
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; }; }; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: program exited with status $ac_status" >&5
1822 $as_echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1825 ac_retval=$ac_status
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829 as_fn_set_status $ac_retval
1831 } # ac_fn_c_try_run
1833 # ac_fn_c_check_func LINENO FUNC VAR
1834 # ----------------------------------
1835 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1836 ac_fn_c_check_func ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1843 else
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1846 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1848 #define $2 innocuous_$2
1850 /* System header to define __stub macros and hopefully few prototypes,
1851 which can conflict with char $2 (); below.
1852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853 <limits.h> exists even on freestanding compilers. */
1855 #ifdef __STDC__
1856 # include <limits.h>
1857 #else
1858 # include <assert.h>
1859 #endif
1861 #undef $2
1863 /* Override any GCC internal prototype to avoid an error.
1864 Use char because int might match the return type of a GCC
1865 builtin and then its argument prototype would still apply. */
1866 #ifdef __cplusplus
1867 extern "C"
1868 #endif
1869 char $2 ();
1870 /* The GNU C library defines this for functions which it implements
1871 to always fail with ENOSYS. Some functions are actually named
1872 something starting with __ and the normal name is an alias. */
1873 #if defined __stub_$2 || defined __stub___$2
1874 choke me
1875 #endif
1878 main ()
1880 return $2 ();
1882 return 0;
1884 _ACEOF
1885 if ac_fn_c_try_link "$LINENO"; then :
1886 eval "$3=yes"
1887 else
1888 eval "$3=no"
1890 rm -f core conftest.err conftest.$ac_objext \
1891 conftest$ac_exeext conftest.$ac_ext
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 } # ac_fn_c_check_func
1900 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1901 # -------------------------------------------
1902 # Tests whether TYPE exists after having included INCLUDES, setting cache
1903 # variable VAR accordingly.
1904 ac_fn_c_check_type ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910 $as_echo_n "(cached) " >&6
1911 else
1912 eval "$3=no"
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1917 main ()
1919 if (sizeof ($2))
1920 return 0;
1922 return 0;
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1930 main ()
1932 if (sizeof (($2)))
1933 return 0;
1935 return 0;
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1940 else
1941 eval "$3=yes"
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 eval ac_res=\$$3
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949 $as_echo "$ac_res" >&6; }
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 } # ac_fn_c_check_type
1954 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1955 # -------------------------------------------------------
1956 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1957 # the include files in INCLUDES and setting the cache variable VAR
1958 # accordingly.
1959 ac_fn_c_check_header_mongrel ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 if eval \${$3+:} false; then :
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964 $as_echo_n "checking for $2... " >&6; }
1965 if eval \${$3+:} false; then :
1966 $as_echo_n "(cached) " >&6
1968 eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970 $as_echo "$ac_res" >&6; }
1971 else
1972 # Is the header compilable?
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1974 $as_echo_n "checking $2 usability... " >&6; }
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976 /* end confdefs.h. */
1978 #include <$2>
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 ac_header_compiler=yes
1982 else
1983 ac_header_compiler=no
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1987 $as_echo "$ac_header_compiler" >&6; }
1989 # Is the header present?
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1991 $as_echo_n "checking $2 presence... " >&6; }
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1994 #include <$2>
1995 _ACEOF
1996 if ac_fn_c_try_cpp "$LINENO"; then :
1997 ac_header_preproc=yes
1998 else
1999 ac_header_preproc=no
2001 rm -f conftest.err conftest.i conftest.$ac_ext
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2003 $as_echo "$ac_header_preproc" >&6; }
2005 # So? What about this header?
2006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2007 yes:no: )
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2009 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 no:yes:* )
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2015 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2017 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2019 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2021 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2025 esac
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2027 $as_echo_n "checking for $2... " >&6; }
2028 if eval \${$3+:} false; then :
2029 $as_echo_n "(cached) " >&6
2030 else
2031 eval "$3=\$ac_header_compiler"
2033 eval ac_res=\$$3
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 } # ac_fn_c_check_header_mongrel
2040 cat >config.log <<_ACEOF
2041 This file contains any messages produced by compilers while
2042 running configure, to aid debugging if configure makes a mistake.
2044 It was created by sqlite $as_me 3.7.14.1, which was
2045 generated by GNU Autoconf 2.68. Invocation command line was
2047 $ $0 $@
2049 _ACEOF
2050 exec 5>>config.log
2052 cat <<_ASUNAME
2053 ## --------- ##
2054 ## Platform. ##
2055 ## --------- ##
2057 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2058 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2059 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2060 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2061 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2063 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2064 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2066 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2067 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2068 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2069 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2070 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2071 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2072 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2074 _ASUNAME
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 $as_echo "PATH: $as_dir"
2082 done
2083 IFS=$as_save_IFS
2085 } >&5
2087 cat >&5 <<_ACEOF
2090 ## ----------- ##
2091 ## Core tests. ##
2092 ## ----------- ##
2094 _ACEOF
2097 # Keep a trace of the command line.
2098 # Strip out --no-create and --no-recursion so they do not pile up.
2099 # Strip out --silent because we don't want to record it for future runs.
2100 # Also quote any args containing shell meta-characters.
2101 # Make two passes to allow for proper duplicate-argument suppression.
2102 ac_configure_args=
2103 ac_configure_args0=
2104 ac_configure_args1=
2105 ac_must_keep_next=false
2106 for ac_pass in 1 2
2108 for ac_arg
2110 case $ac_arg in
2111 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2113 | -silent | --silent | --silen | --sile | --sil)
2114 continue ;;
2115 *\'*)
2116 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2117 esac
2118 case $ac_pass in
2119 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2121 as_fn_append ac_configure_args1 " '$ac_arg'"
2122 if test $ac_must_keep_next = true; then
2123 ac_must_keep_next=false # Got value, back to normal.
2124 else
2125 case $ac_arg in
2126 *=* | --config-cache | -C | -disable-* | --disable-* \
2127 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2128 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2129 | -with-* | --with-* | -without-* | --without-* | --x)
2130 case "$ac_configure_args0 " in
2131 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2132 esac
2134 -* ) ac_must_keep_next=true ;;
2135 esac
2137 as_fn_append ac_configure_args " '$ac_arg'"
2139 esac
2140 done
2141 done
2142 { ac_configure_args0=; unset ac_configure_args0;}
2143 { ac_configure_args1=; unset ac_configure_args1;}
2145 # When interrupted or exit'd, cleanup temporary files, and complete
2146 # config.log. We remove comments because anyway the quotes in there
2147 # would cause problems or look ugly.
2148 # WARNING: Use '\'' to represent an apostrophe within the trap.
2149 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2150 trap 'exit_status=$?
2151 # Save into config.log some information that might help in debugging.
2153 echo
2155 $as_echo "## ---------------- ##
2156 ## Cache variables. ##
2157 ## ---------------- ##"
2158 echo
2159 # The following way of writing the cache mishandles newlines in values,
2161 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2162 eval ac_val=\$$ac_var
2163 case $ac_val in #(
2164 *${as_nl}*)
2165 case $ac_var in #(
2166 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2167 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2168 esac
2169 case $ac_var in #(
2170 _ | IFS | as_nl) ;; #(
2171 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2172 *) { eval $ac_var=; unset $ac_var;} ;;
2173 esac ;;
2174 esac
2175 done
2176 (set) 2>&1 |
2177 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2178 *${as_nl}ac_space=\ *)
2179 sed -n \
2180 "s/'\''/'\''\\\\'\'''\''/g;
2181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2182 ;; #(
2184 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2186 esac |
2187 sort
2189 echo
2191 $as_echo "## ----------------- ##
2192 ## Output variables. ##
2193 ## ----------------- ##"
2194 echo
2195 for ac_var in $ac_subst_vars
2197 eval ac_val=\$$ac_var
2198 case $ac_val in
2199 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2200 esac
2201 $as_echo "$ac_var='\''$ac_val'\''"
2202 done | sort
2203 echo
2205 if test -n "$ac_subst_files"; then
2206 $as_echo "## ------------------- ##
2207 ## File substitutions. ##
2208 ## ------------------- ##"
2209 echo
2210 for ac_var in $ac_subst_files
2212 eval ac_val=\$$ac_var
2213 case $ac_val in
2214 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2215 esac
2216 $as_echo "$ac_var='\''$ac_val'\''"
2217 done | sort
2218 echo
2221 if test -s confdefs.h; then
2222 $as_echo "## ----------- ##
2223 ## confdefs.h. ##
2224 ## ----------- ##"
2225 echo
2226 cat confdefs.h
2227 echo
2229 test "$ac_signal" != 0 &&
2230 $as_echo "$as_me: caught signal $ac_signal"
2231 $as_echo "$as_me: exit $exit_status"
2232 } >&5
2233 rm -f core *.core core.conftest.* &&
2234 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2235 exit $exit_status
2237 for ac_signal in 1 2 13 15; do
2238 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2239 done
2240 ac_signal=0
2242 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2243 rm -f -r conftest* confdefs.h
2245 $as_echo "/* confdefs.h */" > confdefs.h
2247 # Predefined preprocessor variables.
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_NAME "$PACKAGE_NAME"
2251 _ACEOF
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2255 _ACEOF
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2259 _ACEOF
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_STRING "$PACKAGE_STRING"
2263 _ACEOF
2265 cat >>confdefs.h <<_ACEOF
2266 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2267 _ACEOF
2269 cat >>confdefs.h <<_ACEOF
2270 #define PACKAGE_URL "$PACKAGE_URL"
2271 _ACEOF
2274 # Let the site file select an alternate cache file if it wants to.
2275 # Prefer an explicitly selected file to automatically selected ones.
2276 ac_site_file1=NONE
2277 ac_site_file2=NONE
2278 if test -n "$CONFIG_SITE"; then
2279 # We do not want a PATH search for config.site.
2280 case $CONFIG_SITE in #((
2281 -*) ac_site_file1=./$CONFIG_SITE;;
2282 */*) ac_site_file1=$CONFIG_SITE;;
2283 *) ac_site_file1=./$CONFIG_SITE;;
2284 esac
2285 elif test "x$prefix" != xNONE; then
2286 ac_site_file1=$prefix/share/config.site
2287 ac_site_file2=$prefix/etc/config.site
2288 else
2289 ac_site_file1=$ac_default_prefix/share/config.site
2290 ac_site_file2=$ac_default_prefix/etc/config.site
2292 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2294 test "x$ac_site_file" = xNONE && continue
2295 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2297 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2298 sed 's/^/| /' "$ac_site_file" >&5
2299 . "$ac_site_file" \
2300 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2302 as_fn_error $? "failed to load site script $ac_site_file
2303 See \`config.log' for more details" "$LINENO" 5; }
2305 done
2307 if test -r "$cache_file"; then
2308 # Some versions of bash will fail to source /dev/null (special files
2309 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2310 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2312 $as_echo "$as_me: loading cache $cache_file" >&6;}
2313 case $cache_file in
2314 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2315 *) . "./$cache_file";;
2316 esac
2318 else
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2320 $as_echo "$as_me: creating cache $cache_file" >&6;}
2321 >$cache_file
2324 # Check that the precious variables saved in the cache have kept the same
2325 # value.
2326 ac_cache_corrupted=false
2327 for ac_var in $ac_precious_vars; do
2328 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2329 eval ac_new_set=\$ac_env_${ac_var}_set
2330 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2331 eval ac_new_val=\$ac_env_${ac_var}_value
2332 case $ac_old_set,$ac_new_set in
2333 set,)
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2335 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2336 ac_cache_corrupted=: ;;
2337 ,set)
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2339 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2340 ac_cache_corrupted=: ;;
2341 ,);;
2343 if test "x$ac_old_val" != "x$ac_new_val"; then
2344 # differences in whitespace do not lead to failure.
2345 ac_old_val_w=`echo x $ac_old_val`
2346 ac_new_val_w=`echo x $ac_new_val`
2347 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2349 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2350 ac_cache_corrupted=:
2351 else
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2353 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2354 eval $ac_var=\$ac_old_val
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2357 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2359 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2360 fi;;
2361 esac
2362 # Pass precious variables to config.status.
2363 if test "$ac_new_set" = set; then
2364 case $ac_new_val in
2365 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2366 *) ac_arg=$ac_var=$ac_new_val ;;
2367 esac
2368 case " $ac_configure_args " in
2369 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2370 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2371 esac
2373 done
2374 if $ac_cache_corrupted; then
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2378 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2379 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2381 ## -------------------- ##
2382 ## Main body of script. ##
2383 ## -------------------- ##
2385 ac_ext=c
2386 ac_cpp='$CPP $CPPFLAGS'
2387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2393 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2394 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2395 as_fn_error $? "configure script is out of date:
2396 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2397 top level VERSION file = $sqlite_version_sanity_check
2398 please regen with autoconf" "$LINENO" 5
2401 # The following RCS revision string applies to configure.in
2402 # $Revision: 1.56 $
2404 #########
2405 # Programs needed
2407 case `pwd` in
2408 *\ * | *\ *)
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2410 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2411 esac
2415 macro_version='2.2.6'
2416 macro_revision='1.3012'
2430 ltmain="$ac_aux_dir/ltmain.sh"
2432 ac_aux_dir=
2433 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2434 if test -f "$ac_dir/install-sh"; then
2435 ac_aux_dir=$ac_dir
2436 ac_install_sh="$ac_aux_dir/install-sh -c"
2437 break
2438 elif test -f "$ac_dir/install.sh"; then
2439 ac_aux_dir=$ac_dir
2440 ac_install_sh="$ac_aux_dir/install.sh -c"
2441 break
2442 elif test -f "$ac_dir/shtool"; then
2443 ac_aux_dir=$ac_dir
2444 ac_install_sh="$ac_aux_dir/shtool install -c"
2445 break
2447 done
2448 if test -z "$ac_aux_dir"; then
2449 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2452 # These three variables are undocumented and unsupported,
2453 # and are intended to be withdrawn in a future Autoconf release.
2454 # They can cause serious problems if a builder's source tree is in a directory
2455 # whose full name contains unusual characters.
2456 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2457 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2458 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2461 # Make sure we can run config.sub.
2462 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2463 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2466 $as_echo_n "checking build system type... " >&6; }
2467 if ${ac_cv_build+:} false; then :
2468 $as_echo_n "(cached) " >&6
2469 else
2470 ac_build_alias=$build_alias
2471 test "x$ac_build_alias" = x &&
2472 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2473 test "x$ac_build_alias" = x &&
2474 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2475 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2476 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2480 $as_echo "$ac_cv_build" >&6; }
2481 case $ac_cv_build in
2482 *-*-*) ;;
2483 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2484 esac
2485 build=$ac_cv_build
2486 ac_save_IFS=$IFS; IFS='-'
2487 set x $ac_cv_build
2488 shift
2489 build_cpu=$1
2490 build_vendor=$2
2491 shift; shift
2492 # Remember, the first character of IFS is used to create $*,
2493 # except with old shells:
2494 build_os=$*
2495 IFS=$ac_save_IFS
2496 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2500 $as_echo_n "checking host system type... " >&6; }
2501 if ${ac_cv_host+:} false; then :
2502 $as_echo_n "(cached) " >&6
2503 else
2504 if test "x$host_alias" = x; then
2505 ac_cv_host=$ac_cv_build
2506 else
2507 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2508 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2513 $as_echo "$ac_cv_host" >&6; }
2514 case $ac_cv_host in
2515 *-*-*) ;;
2516 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2517 esac
2518 host=$ac_cv_host
2519 ac_save_IFS=$IFS; IFS='-'
2520 set x $ac_cv_host
2521 shift
2522 host_cpu=$1
2523 host_vendor=$2
2524 shift; shift
2525 # Remember, the first character of IFS is used to create $*,
2526 # except with old shells:
2527 host_os=$*
2528 IFS=$ac_save_IFS
2529 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2532 ac_ext=c
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537 if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_CC+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2559 done
2560 done
2561 IFS=$as_save_IFS
2565 CC=$ac_cv_prog_CC
2566 if test -n "$CC"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2568 $as_echo "$CC" >&6; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2576 if test -z "$ac_cv_prog_CC"; then
2577 ac_ct_CC=$CC
2578 # Extract the first word of "gcc", so it can be a program name with args.
2579 set dummy gcc; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test -n "$ac_ct_CC"; then
2586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 ac_cv_prog_ac_ct_CC="gcc"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2599 done
2600 done
2601 IFS=$as_save_IFS
2605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2606 if test -n "$ac_ct_CC"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2608 $as_echo "$ac_ct_CC" >&6; }
2609 else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 $as_echo "no" >&6; }
2614 if test "x$ac_ct_CC" = x; then
2615 CC=""
2616 else
2617 case $cross_compiling:$ac_tool_warned in
2618 yes:)
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2621 ac_tool_warned=yes ;;
2622 esac
2623 CC=$ac_ct_CC
2625 else
2626 CC="$ac_cv_prog_CC"
2629 if test -z "$CC"; then
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2632 set dummy ${ac_tool_prefix}cc; ac_word=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if ${ac_cv_prog_CC+:} false; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_CC="${ac_tool_prefix}cc"
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2652 done
2653 done
2654 IFS=$as_save_IFS
2658 CC=$ac_cv_prog_CC
2659 if test -n "$CC"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2661 $as_echo "$CC" >&6; }
2662 else
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664 $as_echo "no" >&6; }
2670 if test -z "$CC"; then
2671 # Extract the first word of "cc", so it can be a program name with args.
2672 set dummy cc; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_CC+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 else
2681 ac_prog_rejected=no
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2690 ac_prog_rejected=yes
2691 continue
2693 ac_cv_prog_CC="cc"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2697 done
2698 done
2699 IFS=$as_save_IFS
2701 if test $ac_prog_rejected = yes; then
2702 # We found a bogon in the path, so make sure we never use it.
2703 set dummy $ac_cv_prog_CC
2704 shift
2705 if test $# != 0; then
2706 # We chose a different compiler from the bogus one.
2707 # However, it has the same basename, so the bogon will be chosen
2708 # first if we set CC to just the basename; use the full file name.
2709 shift
2710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2715 CC=$ac_cv_prog_CC
2716 if test -n "$CC"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718 $as_echo "$CC" >&6; }
2719 else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2726 if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
2728 for ac_prog in cl.exe
2730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if ${ac_cv_prog_CC+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2751 done
2752 done
2753 IFS=$as_save_IFS
2757 CC=$ac_cv_prog_CC
2758 if test -n "$CC"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2760 $as_echo "$CC" >&6; }
2761 else
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2767 test -n "$CC" && break
2768 done
2770 if test -z "$CC"; then
2771 ac_ct_CC=$CC
2772 for ac_prog in cl.exe
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775 set dummy $ac_prog; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 if test -n "$ac_ct_CC"; then
2782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2791 ac_cv_prog_ac_ct_CC="$ac_prog"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2795 done
2796 done
2797 IFS=$as_save_IFS
2801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2802 if test -n "$ac_ct_CC"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2804 $as_echo "$ac_ct_CC" >&6; }
2805 else
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2811 test -n "$ac_ct_CC" && break
2812 done
2814 if test "x$ac_ct_CC" = x; then
2815 CC=""
2816 else
2817 case $cross_compiling:$ac_tool_warned in
2818 yes:)
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2821 ac_tool_warned=yes ;;
2822 esac
2823 CC=$ac_ct_CC
2830 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2832 as_fn_error $? "no acceptable C compiler found in \$PATH
2833 See \`config.log' for more details" "$LINENO" 5; }
2835 # Provide some information about the compiler.
2836 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2837 set X $ac_compile
2838 ac_compiler=$2
2839 for ac_option in --version -v -V -qversion; do
2840 { { ac_try="$ac_compiler $ac_option >&5"
2841 case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844 esac
2845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846 $as_echo "$ac_try_echo"; } >&5
2847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2848 ac_status=$?
2849 if test -s conftest.err; then
2850 sed '10a\
2851 ... rest of stderr output deleted ...
2852 10q' conftest.err >conftest.er1
2853 cat conftest.er1 >&5
2855 rm -f conftest.er1 conftest.err
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; }
2858 done
2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h. */
2864 main ()
2868 return 0;
2870 _ACEOF
2871 ac_clean_files_save=$ac_clean_files
2872 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2873 # Try to create an executable without -o first, disregard a.out.
2874 # It will help us diagnose broken compilers, and finding out an intuition
2875 # of exeext.
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2877 $as_echo_n "checking whether the C compiler works... " >&6; }
2878 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2880 # The possible output files:
2881 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2883 ac_rmfiles=
2884 for ac_file in $ac_files
2886 case $ac_file in
2887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2888 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2889 esac
2890 done
2891 rm -f $ac_rmfiles
2893 if { { ac_try="$ac_link_default"
2894 case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897 esac
2898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2899 $as_echo "$ac_try_echo"; } >&5
2900 (eval "$ac_link_default") 2>&5
2901 ac_status=$?
2902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2903 test $ac_status = 0; }; then :
2904 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2905 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2906 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2907 # so that the user can short-circuit this test for compilers unknown to
2908 # Autoconf.
2909 for ac_file in $ac_files ''
2911 test -f "$ac_file" || continue
2912 case $ac_file in
2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2915 [ab].out )
2916 # We found the default executable, but exeext='' is most
2917 # certainly right.
2918 break;;
2919 *.* )
2920 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2921 then :; else
2922 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2924 # We set ac_cv_exeext here because the later test for it is not
2925 # safe: cross compilers may not add the suffix if given an `-o'
2926 # argument, so we may need to know it at that point already.
2927 # Even if this section looks crufty: it has the advantage of
2928 # actually working.
2929 break;;
2931 break;;
2932 esac
2933 done
2934 test "$ac_cv_exeext" = no && ac_cv_exeext=
2936 else
2937 ac_file=''
2939 if test -z "$ac_file"; then :
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2942 $as_echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2947 as_fn_error 77 "C compiler cannot create executables
2948 See \`config.log' for more details" "$LINENO" 5; }
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951 $as_echo "yes" >&6; }
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2954 $as_echo_n "checking for C compiler default output file name... " >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2956 $as_echo "$ac_file" >&6; }
2957 ac_exeext=$ac_cv_exeext
2959 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2960 ac_clean_files=$ac_clean_files_save
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2962 $as_echo_n "checking for suffix of executables... " >&6; }
2963 if { { ac_try="$ac_link"
2964 case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967 esac
2968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969 $as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_link") 2>&5
2971 ac_status=$?
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }; then :
2974 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2975 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2976 # work properly (i.e., refer to `conftest.exe'), while it won't with
2977 # `rm'.
2978 for ac_file in conftest.exe conftest conftest.*; do
2979 test -f "$ac_file" || continue
2980 case $ac_file in
2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2983 break;;
2984 * ) break;;
2985 esac
2986 done
2987 else
2988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2991 See \`config.log' for more details" "$LINENO" 5; }
2993 rm -f conftest conftest$ac_cv_exeext
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2995 $as_echo "$ac_cv_exeext" >&6; }
2997 rm -f conftest.$ac_ext
2998 EXEEXT=$ac_cv_exeext
2999 ac_exeext=$EXEEXT
3000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001 /* end confdefs.h. */
3002 #include <stdio.h>
3004 main ()
3006 FILE *f = fopen ("conftest.out", "w");
3007 return ferror (f) || fclose (f) != 0;
3010 return 0;
3012 _ACEOF
3013 ac_clean_files="$ac_clean_files conftest.out"
3014 # Check that the compiler produces executables we can run. If not, either
3015 # the compiler is broken, or we cross compile.
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3017 $as_echo_n "checking whether we are cross compiling... " >&6; }
3018 if test "$cross_compiling" != yes; then
3019 { { ac_try="$ac_link"
3020 case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023 esac
3024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025 $as_echo "$ac_try_echo"; } >&5
3026 (eval "$ac_link") 2>&5
3027 ac_status=$?
3028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029 test $ac_status = 0; }
3030 if { ac_try='./conftest$ac_cv_exeext'
3031 { { case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034 esac
3035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036 $as_echo "$ac_try_echo"; } >&5
3037 (eval "$ac_try") 2>&5
3038 ac_status=$?
3039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040 test $ac_status = 0; }; }; then
3041 cross_compiling=no
3042 else
3043 if test "$cross_compiling" = maybe; then
3044 cross_compiling=yes
3045 else
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error $? "cannot run C compiled programs.
3049 If you meant to cross compile, use \`--host'.
3050 See \`config.log' for more details" "$LINENO" 5; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3055 $as_echo "$cross_compiling" >&6; }
3057 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3058 ac_clean_files=$ac_clean_files_save
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3060 $as_echo_n "checking for suffix of object files... " >&6; }
3061 if ${ac_cv_objext+:} false; then :
3062 $as_echo_n "(cached) " >&6
3063 else
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065 /* end confdefs.h. */
3068 main ()
3072 return 0;
3074 _ACEOF
3075 rm -f conftest.o conftest.obj
3076 if { { ac_try="$ac_compile"
3077 case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080 esac
3081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082 $as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_compile") 2>&5
3084 ac_status=$?
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; then :
3087 for ac_file in conftest.o conftest.obj conftest.*; do
3088 test -f "$ac_file" || continue;
3089 case $ac_file in
3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3091 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3092 break;;
3093 esac
3094 done
3095 else
3096 $as_echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101 as_fn_error $? "cannot compute suffix of object files: cannot compile
3102 See \`config.log' for more details" "$LINENO" 5; }
3104 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3107 $as_echo "$ac_cv_objext" >&6; }
3108 OBJEXT=$ac_cv_objext
3109 ac_objext=$OBJEXT
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3111 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3112 if ${ac_cv_c_compiler_gnu+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116 /* end confdefs.h. */
3119 main ()
3121 #ifndef __GNUC__
3122 choke me
3123 #endif
3126 return 0;
3128 _ACEOF
3129 if ac_fn_c_try_compile "$LINENO"; then :
3130 ac_compiler_gnu=yes
3131 else
3132 ac_compiler_gnu=no
3134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3135 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3139 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3140 if test $ac_compiler_gnu = yes; then
3141 GCC=yes
3142 else
3143 GCC=
3145 ac_test_CFLAGS=${CFLAGS+set}
3146 ac_save_CFLAGS=$CFLAGS
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3148 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3149 if ${ac_cv_prog_cc_g+:} false; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3152 ac_save_c_werror_flag=$ac_c_werror_flag
3153 ac_c_werror_flag=yes
3154 ac_cv_prog_cc_g=no
3155 CFLAGS="-g"
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3160 main ()
3164 return 0;
3166 _ACEOF
3167 if ac_fn_c_try_compile "$LINENO"; then :
3168 ac_cv_prog_cc_g=yes
3169 else
3170 CFLAGS=""
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172 /* end confdefs.h. */
3175 main ()
3179 return 0;
3181 _ACEOF
3182 if ac_fn_c_try_compile "$LINENO"; then :
3184 else
3185 ac_c_werror_flag=$ac_save_c_werror_flag
3186 CFLAGS="-g"
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188 /* end confdefs.h. */
3191 main ()
3195 return 0;
3197 _ACEOF
3198 if ac_fn_c_try_compile "$LINENO"; then :
3199 ac_cv_prog_cc_g=yes
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3209 $as_echo "$ac_cv_prog_cc_g" >&6; }
3210 if test "$ac_test_CFLAGS" = set; then
3211 CFLAGS=$ac_save_CFLAGS
3212 elif test $ac_cv_prog_cc_g = yes; then
3213 if test "$GCC" = yes; then
3214 CFLAGS="-g -O2"
3215 else
3216 CFLAGS="-g"
3218 else
3219 if test "$GCC" = yes; then
3220 CFLAGS="-O2"
3221 else
3222 CFLAGS=
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3226 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3227 if ${ac_cv_prog_cc_c89+:} false; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 ac_cv_prog_cc_c89=no
3231 ac_save_CC=$CC
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233 /* end confdefs.h. */
3234 #include <stdarg.h>
3235 #include <stdio.h>
3236 #include <sys/types.h>
3237 #include <sys/stat.h>
3238 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3239 struct buf { int x; };
3240 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3241 static char *e (p, i)
3242 char **p;
3243 int i;
3245 return p[i];
3247 static char *f (char * (*g) (char **, int), char **p, ...)
3249 char *s;
3250 va_list v;
3251 va_start (v,p);
3252 s = g (p, va_arg (v,int));
3253 va_end (v);
3254 return s;
3257 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3258 function prototypes and stuff, but not '\xHH' hex character constants.
3259 These don't provoke an error unfortunately, instead are silently treated
3260 as 'x'. The following induces an error, until -std is added to get
3261 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3262 array size at least. It's necessary to write '\x00'==0 to get something
3263 that's true only with -std. */
3264 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3266 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3267 inside strings and character constants. */
3268 #define FOO(x) 'x'
3269 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3271 int test (int i, double x);
3272 struct s1 {int (*f) (int a);};
3273 struct s2 {int (*f) (double a);};
3274 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3275 int argc;
3276 char **argv;
3278 main ()
3280 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3282 return 0;
3284 _ACEOF
3285 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3286 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3288 CC="$ac_save_CC $ac_arg"
3289 if ac_fn_c_try_compile "$LINENO"; then :
3290 ac_cv_prog_cc_c89=$ac_arg
3292 rm -f core conftest.err conftest.$ac_objext
3293 test "x$ac_cv_prog_cc_c89" != "xno" && break
3294 done
3295 rm -f conftest.$ac_ext
3296 CC=$ac_save_CC
3299 # AC_CACHE_VAL
3300 case "x$ac_cv_prog_cc_c89" in
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3303 $as_echo "none needed" >&6; } ;;
3304 xno)
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3306 $as_echo "unsupported" >&6; } ;;
3308 CC="$CC $ac_cv_prog_cc_c89"
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3310 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3311 esac
3312 if test "x$ac_cv_prog_cc_c89" != xno; then :
3316 ac_ext=c
3317 ac_cpp='$CPP $CPPFLAGS'
3318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3323 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3324 if ${ac_cv_path_SED+:} false; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3328 for ac_i in 1 2 3 4 5 6 7; do
3329 ac_script="$ac_script$as_nl$ac_script"
3330 done
3331 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3332 { ac_script=; unset ac_script;}
3333 if test -z "$SED"; then
3334 ac_path_SED_found=false
3335 # Loop through the user's path and test for each of PROGNAME-LIST
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_prog in sed gsed; do
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3344 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3345 # Check for GNU ac_path_SED and select it if it is found.
3346 # Check for GNU $ac_path_SED
3347 case `"$ac_path_SED" --version 2>&1` in
3348 *GNU*)
3349 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3351 ac_count=0
3352 $as_echo_n 0123456789 >"conftest.in"
3353 while :
3355 cat "conftest.in" "conftest.in" >"conftest.tmp"
3356 mv "conftest.tmp" "conftest.in"
3357 cp "conftest.in" "conftest.nl"
3358 $as_echo '' >> "conftest.nl"
3359 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3361 as_fn_arith $ac_count + 1 && ac_count=$as_val
3362 if test $ac_count -gt ${ac_path_SED_max-0}; then
3363 # Best one so far, save it but keep looking for a better one
3364 ac_cv_path_SED="$ac_path_SED"
3365 ac_path_SED_max=$ac_count
3367 # 10*(2^10) chars as input seems more than enough
3368 test $ac_count -gt 10 && break
3369 done
3370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3371 esac
3373 $ac_path_SED_found && break 3
3374 done
3375 done
3376 done
3377 IFS=$as_save_IFS
3378 if test -z "$ac_cv_path_SED"; then
3379 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3381 else
3382 ac_cv_path_SED=$SED
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3387 $as_echo "$ac_cv_path_SED" >&6; }
3388 SED="$ac_cv_path_SED"
3389 rm -f conftest.sed
3391 test -z "$SED" && SED=sed
3392 Xsed="$SED -e 1s/^X//"
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3405 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3406 if ${ac_cv_path_GREP+:} false; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 if test -z "$GREP"; then
3410 ac_path_GREP_found=false
3411 # Loop through the user's path and test for each of PROGNAME-LIST
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3415 IFS=$as_save_IFS
3416 test -z "$as_dir" && as_dir=.
3417 for ac_prog in grep ggrep; do
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3420 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3421 # Check for GNU ac_path_GREP and select it if it is found.
3422 # Check for GNU $ac_path_GREP
3423 case `"$ac_path_GREP" --version 2>&1` in
3424 *GNU*)
3425 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3427 ac_count=0
3428 $as_echo_n 0123456789 >"conftest.in"
3429 while :
3431 cat "conftest.in" "conftest.in" >"conftest.tmp"
3432 mv "conftest.tmp" "conftest.in"
3433 cp "conftest.in" "conftest.nl"
3434 $as_echo 'GREP' >> "conftest.nl"
3435 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3436 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3437 as_fn_arith $ac_count + 1 && ac_count=$as_val
3438 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3439 # Best one so far, save it but keep looking for a better one
3440 ac_cv_path_GREP="$ac_path_GREP"
3441 ac_path_GREP_max=$ac_count
3443 # 10*(2^10) chars as input seems more than enough
3444 test $ac_count -gt 10 && break
3445 done
3446 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3447 esac
3449 $ac_path_GREP_found && break 3
3450 done
3451 done
3452 done
3453 IFS=$as_save_IFS
3454 if test -z "$ac_cv_path_GREP"; then
3455 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3457 else
3458 ac_cv_path_GREP=$GREP
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3463 $as_echo "$ac_cv_path_GREP" >&6; }
3464 GREP="$ac_cv_path_GREP"
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3468 $as_echo_n "checking for egrep... " >&6; }
3469 if ${ac_cv_path_EGREP+:} false; then :
3470 $as_echo_n "(cached) " >&6
3471 else
3472 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3473 then ac_cv_path_EGREP="$GREP -E"
3474 else
3475 if test -z "$EGREP"; then
3476 ac_path_EGREP_found=false
3477 # Loop through the user's path and test for each of PROGNAME-LIST
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_prog in egrep; do
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3486 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3487 # Check for GNU ac_path_EGREP and select it if it is found.
3488 # Check for GNU $ac_path_EGREP
3489 case `"$ac_path_EGREP" --version 2>&1` in
3490 *GNU*)
3491 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3493 ac_count=0
3494 $as_echo_n 0123456789 >"conftest.in"
3495 while :
3497 cat "conftest.in" "conftest.in" >"conftest.tmp"
3498 mv "conftest.tmp" "conftest.in"
3499 cp "conftest.in" "conftest.nl"
3500 $as_echo 'EGREP' >> "conftest.nl"
3501 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3503 as_fn_arith $ac_count + 1 && ac_count=$as_val
3504 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3505 # Best one so far, save it but keep looking for a better one
3506 ac_cv_path_EGREP="$ac_path_EGREP"
3507 ac_path_EGREP_max=$ac_count
3509 # 10*(2^10) chars as input seems more than enough
3510 test $ac_count -gt 10 && break
3511 done
3512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3513 esac
3515 $ac_path_EGREP_found && break 3
3516 done
3517 done
3518 done
3519 IFS=$as_save_IFS
3520 if test -z "$ac_cv_path_EGREP"; then
3521 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3523 else
3524 ac_cv_path_EGREP=$EGREP
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3530 $as_echo "$ac_cv_path_EGREP" >&6; }
3531 EGREP="$ac_cv_path_EGREP"
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3535 $as_echo_n "checking for fgrep... " >&6; }
3536 if ${ac_cv_path_FGREP+:} false; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3540 then ac_cv_path_FGREP="$GREP -F"
3541 else
3542 if test -z "$FGREP"; then
3543 ac_path_FGREP_found=false
3544 # Loop through the user's path and test for each of PROGNAME-LIST
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_prog in fgrep; do
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3553 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3554 # Check for GNU ac_path_FGREP and select it if it is found.
3555 # Check for GNU $ac_path_FGREP
3556 case `"$ac_path_FGREP" --version 2>&1` in
3557 *GNU*)
3558 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3560 ac_count=0
3561 $as_echo_n 0123456789 >"conftest.in"
3562 while :
3564 cat "conftest.in" "conftest.in" >"conftest.tmp"
3565 mv "conftest.tmp" "conftest.in"
3566 cp "conftest.in" "conftest.nl"
3567 $as_echo 'FGREP' >> "conftest.nl"
3568 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3570 as_fn_arith $ac_count + 1 && ac_count=$as_val
3571 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3572 # Best one so far, save it but keep looking for a better one
3573 ac_cv_path_FGREP="$ac_path_FGREP"
3574 ac_path_FGREP_max=$ac_count
3576 # 10*(2^10) chars as input seems more than enough
3577 test $ac_count -gt 10 && break
3578 done
3579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3580 esac
3582 $ac_path_FGREP_found && break 3
3583 done
3584 done
3585 done
3586 IFS=$as_save_IFS
3587 if test -z "$ac_cv_path_FGREP"; then
3588 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3590 else
3591 ac_cv_path_FGREP=$FGREP
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3597 $as_echo "$ac_cv_path_FGREP" >&6; }
3598 FGREP="$ac_cv_path_FGREP"
3601 test -z "$GREP" && GREP=grep
3621 # Check whether --with-gnu-ld was given.
3622 if test "${with_gnu_ld+set}" = set; then :
3623 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3624 else
3625 with_gnu_ld=no
3628 ac_prog=ld
3629 if test "$GCC" = yes; then
3630 # Check if gcc -print-prog-name=ld gives a path.
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3632 $as_echo_n "checking for ld used by $CC... " >&6; }
3633 case $host in
3634 *-*-mingw*)
3635 # gcc leaves a trailing carriage return which upsets mingw
3636 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3638 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3639 esac
3640 case $ac_prog in
3641 # Accept absolute paths.
3642 [\\/]* | ?:[\\/]*)
3643 re_direlt='/[^/][^/]*/\.\./'
3644 # Canonicalize the pathname of ld
3645 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3646 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3647 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3648 done
3649 test -z "$LD" && LD="$ac_prog"
3652 # If it fails, then pretend we aren't using GCC.
3653 ac_prog=ld
3656 # If it is relative, then search for the first ld in PATH.
3657 with_gnu_ld=unknown
3659 esac
3660 elif test "$with_gnu_ld" = yes; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3662 $as_echo_n "checking for GNU ld... " >&6; }
3663 else
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3665 $as_echo_n "checking for non-GNU ld... " >&6; }
3667 if ${lt_cv_path_LD+:} false; then :
3668 $as_echo_n "(cached) " >&6
3669 else
3670 if test -z "$LD"; then
3671 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3672 for ac_dir in $PATH; do
3673 IFS="$lt_save_ifs"
3674 test -z "$ac_dir" && ac_dir=.
3675 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3676 lt_cv_path_LD="$ac_dir/$ac_prog"
3677 # Check to see if the program is GNU ld. I'd rather use --version,
3678 # but apparently some variants of GNU ld only accept -v.
3679 # Break only if it was the GNU/non-GNU ld that we prefer.
3680 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3681 *GNU* | *'with BFD'*)
3682 test "$with_gnu_ld" != no && break
3685 test "$with_gnu_ld" != yes && break
3687 esac
3689 done
3690 IFS="$lt_save_ifs"
3691 else
3692 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3696 LD="$lt_cv_path_LD"
3697 if test -n "$LD"; then
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3699 $as_echo "$LD" >&6; }
3700 else
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3704 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3706 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3707 if ${lt_cv_prog_gnu_ld+:} false; then :
3708 $as_echo_n "(cached) " >&6
3709 else
3710 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3711 case `$LD -v 2>&1 </dev/null` in
3712 *GNU* | *'with BFD'*)
3713 lt_cv_prog_gnu_ld=yes
3716 lt_cv_prog_gnu_ld=no
3718 esac
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3721 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3722 with_gnu_ld=$lt_cv_prog_gnu_ld
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3733 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3734 if ${lt_cv_path_NM+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test -n "$NM"; then
3738 # Let the user override the test.
3739 lt_cv_path_NM="$NM"
3740 else
3741 lt_nm_to_check="${ac_tool_prefix}nm"
3742 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3743 lt_nm_to_check="$lt_nm_to_check nm"
3745 for lt_tmp_nm in $lt_nm_to_check; do
3746 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3747 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3748 IFS="$lt_save_ifs"
3749 test -z "$ac_dir" && ac_dir=.
3750 tmp_nm="$ac_dir/$lt_tmp_nm"
3751 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3752 # Check to see if the nm accepts a BSD-compat flag.
3753 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3754 # nm: unknown option "B" ignored
3755 # Tru64's nm complains that /dev/null is an invalid object file
3756 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3757 */dev/null* | *'Invalid file or object type'*)
3758 lt_cv_path_NM="$tmp_nm -B"
3759 break
3762 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3763 */dev/null*)
3764 lt_cv_path_NM="$tmp_nm -p"
3765 break
3768 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3769 continue # so that we can try to find one that supports BSD flags
3771 esac
3773 esac
3775 done
3776 IFS="$lt_save_ifs"
3777 done
3778 : ${lt_cv_path_NM=no}
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3782 $as_echo "$lt_cv_path_NM" >&6; }
3783 if test "$lt_cv_path_NM" != "no"; then
3784 NM="$lt_cv_path_NM"
3785 else
3786 # Didn't find any BSD compatible name lister, look for dumpbin.
3787 if test -n "$ac_tool_prefix"; then
3788 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3793 $as_echo_n "checking for $ac_word... " >&6; }
3794 if ${ac_cv_prog_DUMPBIN+:} false; then :
3795 $as_echo_n "(cached) " >&6
3796 else
3797 if test -n "$DUMPBIN"; then
3798 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3799 else
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3807 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 break 2
3811 done
3812 done
3813 IFS=$as_save_IFS
3817 DUMPBIN=$ac_cv_prog_DUMPBIN
3818 if test -n "$DUMPBIN"; then
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3820 $as_echo "$DUMPBIN" >&6; }
3821 else
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823 $as_echo "no" >&6; }
3827 test -n "$DUMPBIN" && break
3828 done
3830 if test -z "$DUMPBIN"; then
3831 ac_ct_DUMPBIN=$DUMPBIN
3832 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3834 # Extract the first word of "$ac_prog", so it can be a program name with args.
3835 set dummy $ac_prog; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 if test -n "$ac_ct_DUMPBIN"; then
3842 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3843 else
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 break 2
3855 done
3856 done
3857 IFS=$as_save_IFS
3861 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3862 if test -n "$ac_ct_DUMPBIN"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3864 $as_echo "$ac_ct_DUMPBIN" >&6; }
3865 else
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3871 test -n "$ac_ct_DUMPBIN" && break
3872 done
3874 if test "x$ac_ct_DUMPBIN" = x; then
3875 DUMPBIN=":"
3876 else
3877 case $cross_compiling:$ac_tool_warned in
3878 yes:)
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3881 ac_tool_warned=yes ;;
3882 esac
3883 DUMPBIN=$ac_ct_DUMPBIN
3888 if test "$DUMPBIN" != ":"; then
3889 NM="$DUMPBIN"
3892 test -z "$NM" && NM=nm
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3900 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3901 if ${lt_cv_nm_interface+:} false; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 lt_cv_nm_interface="BSD nm"
3905 echo "int some_variable = 0;" > conftest.$ac_ext
3906 (eval echo "\"\$as_me:3906: $ac_compile\"" >&5)
3907 (eval "$ac_compile" 2>conftest.err)
3908 cat conftest.err >&5
3909 (eval echo "\"\$as_me:3909: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3910 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3911 cat conftest.err >&5
3912 (eval echo "\"\$as_me:3912: output\"" >&5)
3913 cat conftest.out >&5
3914 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3915 lt_cv_nm_interface="MS dumpbin"
3917 rm -f conftest*
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3920 $as_echo "$lt_cv_nm_interface" >&6; }
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3923 $as_echo_n "checking whether ln -s works... " >&6; }
3924 LN_S=$as_ln_s
3925 if test "$LN_S" = "ln -s"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3927 $as_echo "yes" >&6; }
3928 else
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3930 $as_echo "no, using $LN_S" >&6; }
3933 # find the maximum length of command line arguments
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3935 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3936 if ${lt_cv_sys_max_cmd_len+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3940 teststring="ABCD"
3942 case $build_os in
3943 msdosdjgpp*)
3944 # On DJGPP, this test can blow up pretty badly due to problems in libc
3945 # (any single argument exceeding 2000 bytes causes a buffer overrun
3946 # during glob expansion). Even if it were fixed, the result of this
3947 # check would be larger than it should be.
3948 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3951 gnu*)
3952 # Under GNU Hurd, this test is not required because there is
3953 # no limit to the length of command line arguments.
3954 # Libtool will interpret -1 as no limit whatsoever
3955 lt_cv_sys_max_cmd_len=-1;
3958 cygwin* | mingw* | cegcc*)
3959 # On Win9x/ME, this test blows up -- it succeeds, but takes
3960 # about 5 minutes as the teststring grows exponentially.
3961 # Worse, since 9x/ME are not pre-emptively multitasking,
3962 # you end up with a "frozen" computer, even though with patience
3963 # the test eventually succeeds (with a max line length of 256k).
3964 # Instead, let's just punt: use the minimum linelength reported by
3965 # all of the supported platforms: 8192 (on NT/2K/XP).
3966 lt_cv_sys_max_cmd_len=8192;
3969 amigaos*)
3970 # On AmigaOS with pdksh, this test takes hours, literally.
3971 # So we just punt and use a minimum line length of 8192.
3972 lt_cv_sys_max_cmd_len=8192;
3975 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3976 # This has been around since 386BSD, at least. Likely further.
3977 if test -x /sbin/sysctl; then
3978 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3979 elif test -x /usr/sbin/sysctl; then
3980 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3981 else
3982 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3984 # And add a safety zone
3985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3989 interix*)
3990 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3991 lt_cv_sys_max_cmd_len=196608
3994 osf*)
3995 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3996 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3997 # nice to cause kernel panics so lets avoid the loop below.
3998 # First set a reasonable default.
3999 lt_cv_sys_max_cmd_len=16384
4001 if test -x /sbin/sysconfig; then
4002 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4003 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4004 esac
4007 sco3.2v5*)
4008 lt_cv_sys_max_cmd_len=102400
4010 sysv5* | sco5v6* | sysv4.2uw2*)
4011 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4012 if test -n "$kargmax"; then
4013 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4014 else
4015 lt_cv_sys_max_cmd_len=32768
4019 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4020 if test -n "$lt_cv_sys_max_cmd_len"; then
4021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4023 else
4024 # Make teststring a little bigger before we do anything with it.
4025 # a 1K string should be a reasonable start.
4026 for i in 1 2 3 4 5 6 7 8 ; do
4027 teststring=$teststring$teststring
4028 done
4029 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4030 # If test is not a shell built-in, we'll probably end up computing a
4031 # maximum length that is only half of the actual maximum length, but
4032 # we can't tell.
4033 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4034 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4035 test $i != 17 # 1/2 MB should be enough
4037 i=`expr $i + 1`
4038 teststring=$teststring$teststring
4039 done
4040 # Only check the string length outside the loop.
4041 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4042 teststring=
4043 # Add a significant safety factor because C++ compilers can tack on
4044 # massive amounts of additional arguments before passing them to the
4045 # linker. It appears as though 1/2 is a usable value.
4046 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4049 esac
4053 if test -n $lt_cv_sys_max_cmd_len ; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4055 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4056 else
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4058 $as_echo "none" >&6; }
4060 max_cmd_len=$lt_cv_sys_max_cmd_len
4067 : ${CP="cp -f"}
4068 : ${MV="mv -f"}
4069 : ${RM="rm -f"}
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4072 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4073 # Try some XSI features
4074 xsi_shell=no
4075 ( _lt_dummy="a/b/c"
4076 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4077 = c,a/b,, \
4078 && eval 'test $(( 1 + 1 )) -eq 2 \
4079 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4080 && xsi_shell=yes
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4082 $as_echo "$xsi_shell" >&6; }
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4086 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4087 lt_shell_append=no
4088 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4089 >/dev/null 2>&1 \
4090 && lt_shell_append=yes
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4092 $as_echo "$lt_shell_append" >&6; }
4095 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4096 lt_unset=unset
4097 else
4098 lt_unset=false
4105 # test EBCDIC or ASCII
4106 case `echo X|tr X '\101'` in
4107 A) # ASCII based system
4108 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4109 lt_SP2NL='tr \040 \012'
4110 lt_NL2SP='tr \015\012 \040\040'
4112 *) # EBCDIC based system
4113 lt_SP2NL='tr \100 \n'
4114 lt_NL2SP='tr \r\n \100\100'
4116 esac
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4127 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4128 if ${lt_cv_ld_reload_flag+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 lt_cv_ld_reload_flag='-r'
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4134 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4135 reload_flag=$lt_cv_ld_reload_flag
4136 case $reload_flag in
4137 "" | " "*) ;;
4138 *) reload_flag=" $reload_flag" ;;
4139 esac
4140 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4141 case $host_os in
4142 darwin*)
4143 if test "$GCC" = yes; then
4144 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4145 else
4146 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4149 esac
4159 if test -n "$ac_tool_prefix"; then
4160 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4161 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if ${ac_cv_prog_OBJDUMP+:} false; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 if test -n "$OBJDUMP"; then
4168 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 break 2
4181 done
4182 done
4183 IFS=$as_save_IFS
4187 OBJDUMP=$ac_cv_prog_OBJDUMP
4188 if test -n "$OBJDUMP"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4190 $as_echo "$OBJDUMP" >&6; }
4191 else
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4198 if test -z "$ac_cv_prog_OBJDUMP"; then
4199 ac_ct_OBJDUMP=$OBJDUMP
4200 # Extract the first word of "objdump", so it can be a program name with args.
4201 set dummy objdump; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 if test -n "$ac_ct_OBJDUMP"; then
4208 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4221 done
4222 done
4223 IFS=$as_save_IFS
4227 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4228 if test -n "$ac_ct_OBJDUMP"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4230 $as_echo "$ac_ct_OBJDUMP" >&6; }
4231 else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4236 if test "x$ac_ct_OBJDUMP" = x; then
4237 OBJDUMP="false"
4238 else
4239 case $cross_compiling:$ac_tool_warned in
4240 yes:)
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4243 ac_tool_warned=yes ;;
4244 esac
4245 OBJDUMP=$ac_ct_OBJDUMP
4247 else
4248 OBJDUMP="$ac_cv_prog_OBJDUMP"
4251 test -z "$OBJDUMP" && OBJDUMP=objdump
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4262 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4263 if ${lt_cv_deplibs_check_method+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 lt_cv_file_magic_cmd='$MAGIC_CMD'
4267 lt_cv_file_magic_test_file=
4268 lt_cv_deplibs_check_method='unknown'
4269 # Need to set the preceding variable on all platforms that support
4270 # interlibrary dependencies.
4271 # 'none' -- dependencies not supported.
4272 # `unknown' -- same as none, but documents that we really don't know.
4273 # 'pass_all' -- all dependencies passed with no checks.
4274 # 'test_compile' -- check by making test program.
4275 # 'file_magic [[regex]]' -- check by looking for files in library path
4276 # which responds to the $file_magic_cmd with a given extended regex.
4277 # If you have `file' or equivalent on your system and you're not sure
4278 # whether `pass_all' will *always* work, you probably want this one.
4280 case $host_os in
4281 aix[4-9]*)
4282 lt_cv_deplibs_check_method=pass_all
4285 beos*)
4286 lt_cv_deplibs_check_method=pass_all
4289 bsdi[45]*)
4290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4291 lt_cv_file_magic_cmd='/usr/bin/file -L'
4292 lt_cv_file_magic_test_file=/shlib/libc.so
4295 cygwin*)
4296 # func_win32_libid is a shell function defined in ltmain.sh
4297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4298 lt_cv_file_magic_cmd='func_win32_libid'
4301 mingw* | pw32*)
4302 # Base MSYS/MinGW do not provide the 'file' command needed by
4303 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4304 # unless we find 'file', for example because we are cross-compiling.
4305 if ( file / ) >/dev/null 2>&1; then
4306 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4307 lt_cv_file_magic_cmd='func_win32_libid'
4308 else
4309 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4310 lt_cv_file_magic_cmd='$OBJDUMP -f'
4314 cegcc)
4315 # use the weaker test based on 'objdump'. See mingw*.
4316 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4317 lt_cv_file_magic_cmd='$OBJDUMP -f'
4320 darwin* | rhapsody*)
4321 lt_cv_deplibs_check_method=pass_all
4324 freebsd* | dragonfly*)
4325 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4326 case $host_cpu in
4327 i*86 )
4328 # Not sure whether the presence of OpenBSD here was a mistake.
4329 # Let's accept both of them until this is cleared up.
4330 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4331 lt_cv_file_magic_cmd=/usr/bin/file
4332 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4334 esac
4335 else
4336 lt_cv_deplibs_check_method=pass_all
4340 gnu*)
4341 lt_cv_deplibs_check_method=pass_all
4344 hpux10.20* | hpux11*)
4345 lt_cv_file_magic_cmd=/usr/bin/file
4346 case $host_cpu in
4347 ia64*)
4348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4349 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4351 hppa*64*)
4352 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4353 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4356 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4357 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4359 esac
4362 interix[3-9]*)
4363 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4367 irix5* | irix6* | nonstopux*)
4368 case $LD in
4369 *-32|*"-32 ") libmagic=32-bit;;
4370 *-n32|*"-n32 ") libmagic=N32;;
4371 *-64|*"-64 ") libmagic=64-bit;;
4372 *) libmagic=never-match;;
4373 esac
4374 lt_cv_deplibs_check_method=pass_all
4377 # This must be Linux ELF.
4378 linux* | k*bsd*-gnu)
4379 lt_cv_deplibs_check_method=pass_all
4382 netbsd*)
4383 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4385 else
4386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4390 newos6*)
4391 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4392 lt_cv_file_magic_cmd=/usr/bin/file
4393 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4396 *nto* | *qnx*)
4397 lt_cv_deplibs_check_method=pass_all
4400 openbsd*)
4401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4403 else
4404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4408 osf3* | osf4* | osf5*)
4409 lt_cv_deplibs_check_method=pass_all
4412 rdos*)
4413 lt_cv_deplibs_check_method=pass_all
4416 solaris*)
4417 lt_cv_deplibs_check_method=pass_all
4420 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4421 lt_cv_deplibs_check_method=pass_all
4424 sysv4 | sysv4.3*)
4425 case $host_vendor in
4426 motorola)
4427 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]'
4428 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4430 ncr)
4431 lt_cv_deplibs_check_method=pass_all
4433 sequent)
4434 lt_cv_file_magic_cmd='/bin/file'
4435 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4437 sni)
4438 lt_cv_file_magic_cmd='/bin/file'
4439 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4440 lt_cv_file_magic_test_file=/lib/libc.so
4442 siemens)
4443 lt_cv_deplibs_check_method=pass_all
4446 lt_cv_deplibs_check_method=pass_all
4448 esac
4451 tpf*)
4452 lt_cv_deplibs_check_method=pass_all
4454 esac
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4458 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4459 file_magic_cmd=$lt_cv_file_magic_cmd
4460 deplibs_check_method=$lt_cv_deplibs_check_method
4461 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4474 if test -n "$ac_tool_prefix"; then
4475 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4476 set dummy ${ac_tool_prefix}ar; ac_word=$2
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478 $as_echo_n "checking for $ac_word... " >&6; }
4479 if ${ac_cv_prog_AR+:} false; then :
4480 $as_echo_n "(cached) " >&6
4481 else
4482 if test -n "$AR"; then
4483 ac_cv_prog_AR="$AR" # Let the user override the test.
4484 else
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 for as_dir in $PATH
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4492 ac_cv_prog_AR="${ac_tool_prefix}ar"
4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 break 2
4496 done
4497 done
4498 IFS=$as_save_IFS
4502 AR=$ac_cv_prog_AR
4503 if test -n "$AR"; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4505 $as_echo "$AR" >&6; }
4506 else
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508 $as_echo "no" >&6; }
4513 if test -z "$ac_cv_prog_AR"; then
4514 ac_ct_AR=$AR
4515 # Extract the first word of "ar", so it can be a program name with args.
4516 set dummy ar; ac_word=$2
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4518 $as_echo_n "checking for $ac_word... " >&6; }
4519 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 if test -n "$ac_ct_AR"; then
4523 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4524 else
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4532 ac_cv_prog_ac_ct_AR="ar"
4533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 break 2
4536 done
4537 done
4538 IFS=$as_save_IFS
4542 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4543 if test -n "$ac_ct_AR"; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4545 $as_echo "$ac_ct_AR" >&6; }
4546 else
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4551 if test "x$ac_ct_AR" = x; then
4552 AR="false"
4553 else
4554 case $cross_compiling:$ac_tool_warned in
4555 yes:)
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4558 ac_tool_warned=yes ;;
4559 esac
4560 AR=$ac_ct_AR
4562 else
4563 AR="$ac_cv_prog_AR"
4566 test -z "$AR" && AR=ar
4567 test -z "$AR_FLAGS" && AR_FLAGS=cru
4579 if test -n "$ac_tool_prefix"; then
4580 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4581 set dummy ${ac_tool_prefix}strip; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if ${ac_cv_prog_STRIP+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586 else
4587 if test -n "$STRIP"; then
4588 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4601 done
4602 done
4603 IFS=$as_save_IFS
4607 STRIP=$ac_cv_prog_STRIP
4608 if test -n "$STRIP"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4610 $as_echo "$STRIP" >&6; }
4611 else
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4618 if test -z "$ac_cv_prog_STRIP"; then
4619 ac_ct_STRIP=$STRIP
4620 # Extract the first word of "strip", so it can be a program name with args.
4621 set dummy strip; ac_word=$2
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4623 $as_echo_n "checking for $ac_word... " >&6; }
4624 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4625 $as_echo_n "(cached) " >&6
4626 else
4627 if test -n "$ac_ct_STRIP"; then
4628 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4629 else
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_ac_ct_STRIP="strip"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4641 done
4642 done
4643 IFS=$as_save_IFS
4647 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4648 if test -n "$ac_ct_STRIP"; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4650 $as_echo "$ac_ct_STRIP" >&6; }
4651 else
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4653 $as_echo "no" >&6; }
4656 if test "x$ac_ct_STRIP" = x; then
4657 STRIP=":"
4658 else
4659 case $cross_compiling:$ac_tool_warned in
4660 yes:)
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4663 ac_tool_warned=yes ;;
4664 esac
4665 STRIP=$ac_ct_STRIP
4667 else
4668 STRIP="$ac_cv_prog_STRIP"
4671 test -z "$STRIP" && STRIP=:
4678 if test -n "$ac_tool_prefix"; then
4679 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4680 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if ${ac_cv_prog_RANLIB+:} false; then :
4684 $as_echo_n "(cached) " >&6
4685 else
4686 if test -n "$RANLIB"; then
4687 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 break 2
4700 done
4701 done
4702 IFS=$as_save_IFS
4706 RANLIB=$ac_cv_prog_RANLIB
4707 if test -n "$RANLIB"; then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4709 $as_echo "$RANLIB" >&6; }
4710 else
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4717 if test -z "$ac_cv_prog_RANLIB"; then
4718 ac_ct_RANLIB=$RANLIB
4719 # Extract the first word of "ranlib", so it can be a program name with args.
4720 set dummy ranlib; ac_word=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 if test -n "$ac_ct_RANLIB"; then
4727 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4728 else
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_prog_ac_ct_RANLIB="ranlib"
4737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 break 2
4740 done
4741 done
4742 IFS=$as_save_IFS
4746 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4747 if test -n "$ac_ct_RANLIB"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4749 $as_echo "$ac_ct_RANLIB" >&6; }
4750 else
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4755 if test "x$ac_ct_RANLIB" = x; then
4756 RANLIB=":"
4757 else
4758 case $cross_compiling:$ac_tool_warned in
4759 yes:)
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4762 ac_tool_warned=yes ;;
4763 esac
4764 RANLIB=$ac_ct_RANLIB
4766 else
4767 RANLIB="$ac_cv_prog_RANLIB"
4770 test -z "$RANLIB" && RANLIB=:
4777 # Determine commands to create old-style static archives.
4778 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4779 old_postinstall_cmds='chmod 644 $oldlib'
4780 old_postuninstall_cmds=
4782 if test -n "$RANLIB"; then
4783 case $host_os in
4784 openbsd*)
4785 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4788 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4790 esac
4791 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4827 # If no C compiler was specified, use CC.
4828 LTCC=${LTCC-"$CC"}
4830 # If no C compiler flags were specified, use CFLAGS.
4831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4833 # Allow CC to be a program name with arguments.
4834 compiler=$CC
4837 # Check for command to grab the raw symbol name followed by C symbol from nm.
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4839 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4840 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4844 # These are sane defaults that work on at least a few old systems.
4845 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4847 # Character class describing NM global symbol codes.
4848 symcode='[BCDEGRST]'
4850 # Regexp to match symbols that can be accessed directly from C.
4851 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4853 # Define system-specific variables.
4854 case $host_os in
4855 aix*)
4856 symcode='[BCDT]'
4858 cygwin* | mingw* | pw32* | cegcc*)
4859 symcode='[ABCDGISTW]'
4861 hpux*)
4862 if test "$host_cpu" = ia64; then
4863 symcode='[ABCDEGRST]'
4866 irix* | nonstopux*)
4867 symcode='[BCDEGRST]'
4869 osf*)
4870 symcode='[BCDEGQRST]'
4872 solaris*)
4873 symcode='[BDRT]'
4875 sco3.2v5*)
4876 symcode='[DT]'
4878 sysv4.2uw2*)
4879 symcode='[DT]'
4881 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4882 symcode='[ABDT]'
4884 sysv4)
4885 symcode='[DFNSTU]'
4887 esac
4889 # If we're using GNU nm, then use its standard symbol codes.
4890 case `$NM -V 2>&1` in
4891 *GNU* | *'with BFD'*)
4892 symcode='[ABCDGIRSTW]' ;;
4893 esac
4895 # Transform an extracted symbol line into a proper C declaration.
4896 # Some systems (esp. on ia64) link data and code symbols differently,
4897 # so use this general approach.
4898 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4900 # Transform an extracted symbol line into symbol name and symbol address
4901 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4902 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'"
4904 # Handle CRLF in mingw tool chain
4905 opt_cr=
4906 case $build_os in
4907 mingw*)
4908 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4910 esac
4912 # Try without a prefix underscore, then with it.
4913 for ac_symprfx in "" "_"; do
4915 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4916 symxfrm="\\1 $ac_symprfx\\2 \\2"
4918 # Write the raw and C identifiers.
4919 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4920 # Fake it for dumpbin and say T for any non-static function
4921 # and D for any global variable.
4922 # Also find C++ and __fastcall symbols from MSVC++,
4923 # which start with @ or ?.
4924 lt_cv_sys_global_symbol_pipe="$AWK '"\
4925 " {last_section=section; section=\$ 3};"\
4926 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4927 " \$ 0!~/External *\|/{next};"\
4928 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4929 " {if(hide[section]) next};"\
4930 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4931 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4932 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4933 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4934 " ' prfx=^$ac_symprfx"
4935 else
4936 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4939 # Check to see that the pipe works correctly.
4940 pipe_works=no
4942 rm -f conftest*
4943 cat > conftest.$ac_ext <<_LT_EOF
4944 #ifdef __cplusplus
4945 extern "C" {
4946 #endif
4947 char nm_test_var;
4948 void nm_test_func(void);
4949 void nm_test_func(void){}
4950 #ifdef __cplusplus
4952 #endif
4953 int main(){nm_test_var='a';nm_test_func();return(0);}
4954 _LT_EOF
4956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4957 (eval $ac_compile) 2>&5
4958 ac_status=$?
4959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4960 test $ac_status = 0; }; then
4961 # Now try to grab the symbols.
4962 nlist=conftest.nm
4963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4964 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4965 ac_status=$?
4966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4967 test $ac_status = 0; } && test -s "$nlist"; then
4968 # Try sorting and uniquifying the output.
4969 if sort "$nlist" | uniq > "$nlist"T; then
4970 mv -f "$nlist"T "$nlist"
4971 else
4972 rm -f "$nlist"T
4975 # Make sure that we snagged all the symbols we need.
4976 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4977 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4978 cat <<_LT_EOF > conftest.$ac_ext
4979 #ifdef __cplusplus
4980 extern "C" {
4981 #endif
4983 _LT_EOF
4984 # Now generate the symbol file.
4985 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4987 cat <<_LT_EOF >> conftest.$ac_ext
4989 /* The mapping between symbol names and symbols. */
4990 const struct {
4991 const char *name;
4992 void *address;
4994 lt__PROGRAM__LTX_preloaded_symbols[] =
4996 { "@PROGRAM@", (void *) 0 },
4997 _LT_EOF
4998 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4999 cat <<\_LT_EOF >> conftest.$ac_ext
5000 {0, (void *) 0}
5003 /* This works around a problem in FreeBSD linker */
5004 #ifdef FREEBSD_WORKAROUND
5005 static const void *lt_preloaded_setup() {
5006 return lt__PROGRAM__LTX_preloaded_symbols;
5008 #endif
5010 #ifdef __cplusplus
5012 #endif
5013 _LT_EOF
5014 # Now try linking the two files.
5015 mv conftest.$ac_objext conftstm.$ac_objext
5016 lt_save_LIBS="$LIBS"
5017 lt_save_CFLAGS="$CFLAGS"
5018 LIBS="conftstm.$ac_objext"
5019 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5021 (eval $ac_link) 2>&5
5022 ac_status=$?
5023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5024 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5025 pipe_works=yes
5027 LIBS="$lt_save_LIBS"
5028 CFLAGS="$lt_save_CFLAGS"
5029 else
5030 echo "cannot find nm_test_func in $nlist" >&5
5032 else
5033 echo "cannot find nm_test_var in $nlist" >&5
5035 else
5036 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5038 else
5039 echo "$progname: failed program was:" >&5
5040 cat conftest.$ac_ext >&5
5042 rm -rf conftest* conftst*
5044 # Do not use the global_symbol_pipe unless it works.
5045 if test "$pipe_works" = yes; then
5046 break
5047 else
5048 lt_cv_sys_global_symbol_pipe=
5050 done
5054 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5055 lt_cv_sys_global_symbol_to_cdecl=
5057 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5059 $as_echo "failed" >&6; }
5060 else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5062 $as_echo "ok" >&6; }
5087 # Check whether --enable-libtool-lock was given.
5088 if test "${enable_libtool_lock+set}" = set; then :
5089 enableval=$enable_libtool_lock;
5092 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5094 # Some flags need to be propagated to the compiler or linker for good
5095 # libtool support.
5096 case $host in
5097 ia64-*-hpux*)
5098 # Find out which ABI we are using.
5099 echo 'int i;' > conftest.$ac_ext
5100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5101 (eval $ac_compile) 2>&5
5102 ac_status=$?
5103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5104 test $ac_status = 0; }; then
5105 case `/usr/bin/file conftest.$ac_objext` in
5106 *ELF-32*)
5107 HPUX_IA64_MODE="32"
5109 *ELF-64*)
5110 HPUX_IA64_MODE="64"
5112 esac
5114 rm -rf conftest*
5116 *-*-irix6*)
5117 # Find out which ABI we are using.
5118 echo '#line 5118 "configure"' > conftest.$ac_ext
5119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5120 (eval $ac_compile) 2>&5
5121 ac_status=$?
5122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5123 test $ac_status = 0; }; then
5124 if test "$lt_cv_prog_gnu_ld" = yes; then
5125 case `/usr/bin/file conftest.$ac_objext` in
5126 *32-bit*)
5127 LD="${LD-ld} -melf32bsmip"
5129 *N32*)
5130 LD="${LD-ld} -melf32bmipn32"
5132 *64-bit*)
5133 LD="${LD-ld} -melf64bmip"
5135 esac
5136 else
5137 case `/usr/bin/file conftest.$ac_objext` in
5138 *32-bit*)
5139 LD="${LD-ld} -32"
5141 *N32*)
5142 LD="${LD-ld} -n32"
5144 *64-bit*)
5145 LD="${LD-ld} -64"
5147 esac
5150 rm -rf conftest*
5153 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5154 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5155 # Find out which ABI we are using.
5156 echo 'int i;' > conftest.$ac_ext
5157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5158 (eval $ac_compile) 2>&5
5159 ac_status=$?
5160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5161 test $ac_status = 0; }; then
5162 case `/usr/bin/file conftest.o` in
5163 *32-bit*)
5164 case $host in
5165 x86_64-*kfreebsd*-gnu)
5166 LD="${LD-ld} -m elf_i386_fbsd"
5168 x86_64-*linux*)
5169 LD="${LD-ld} -m elf_i386"
5171 ppc64-*linux*|powerpc64-*linux*)
5172 LD="${LD-ld} -m elf32ppclinux"
5174 s390x-*linux*)
5175 LD="${LD-ld} -m elf_s390"
5177 sparc64-*linux*)
5178 LD="${LD-ld} -m elf32_sparc"
5180 esac
5182 *64-bit*)
5183 case $host in
5184 x86_64-*kfreebsd*-gnu)
5185 LD="${LD-ld} -m elf_x86_64_fbsd"
5187 x86_64-*linux*)
5188 LD="${LD-ld} -m elf_x86_64"
5190 ppc*-*linux*|powerpc*-*linux*)
5191 LD="${LD-ld} -m elf64ppc"
5193 s390*-*linux*|s390*-*tpf*)
5194 LD="${LD-ld} -m elf64_s390"
5196 sparc*-*linux*)
5197 LD="${LD-ld} -m elf64_sparc"
5199 esac
5201 esac
5203 rm -rf conftest*
5206 *-*-sco3.2v5*)
5207 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5208 SAVE_CFLAGS="$CFLAGS"
5209 CFLAGS="$CFLAGS -belf"
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5211 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5212 if ${lt_cv_cc_needs_belf+:} false; then :
5213 $as_echo_n "(cached) " >&6
5214 else
5215 ac_ext=c
5216 ac_cpp='$CPP $CPPFLAGS'
5217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222 /* end confdefs.h. */
5225 main ()
5229 return 0;
5231 _ACEOF
5232 if ac_fn_c_try_link "$LINENO"; then :
5233 lt_cv_cc_needs_belf=yes
5234 else
5235 lt_cv_cc_needs_belf=no
5237 rm -f core conftest.err conftest.$ac_objext \
5238 conftest$ac_exeext conftest.$ac_ext
5239 ac_ext=c
5240 ac_cpp='$CPP $CPPFLAGS'
5241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5247 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5248 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5249 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5250 CFLAGS="$SAVE_CFLAGS"
5253 sparc*-*solaris*)
5254 # Find out which ABI we are using.
5255 echo 'int i;' > conftest.$ac_ext
5256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5257 (eval $ac_compile) 2>&5
5258 ac_status=$?
5259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5260 test $ac_status = 0; }; then
5261 case `/usr/bin/file conftest.o` in
5262 *64-bit*)
5263 case $lt_cv_prog_gnu_ld in
5264 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5266 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5267 LD="${LD-ld} -64"
5270 esac
5272 esac
5274 rm -rf conftest*
5276 esac
5278 need_locks="$enable_libtool_lock"
5281 case $host_os in
5282 rhapsody* | darwin*)
5283 if test -n "$ac_tool_prefix"; then
5284 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5285 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_prog_DSYMUTIL+:} false; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 if test -n "$DSYMUTIL"; then
5292 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5305 done
5306 done
5307 IFS=$as_save_IFS
5311 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5312 if test -n "$DSYMUTIL"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5314 $as_echo "$DSYMUTIL" >&6; }
5315 else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5322 if test -z "$ac_cv_prog_DSYMUTIL"; then
5323 ac_ct_DSYMUTIL=$DSYMUTIL
5324 # Extract the first word of "dsymutil", so it can be a program name with args.
5325 set dummy dsymutil; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 if test -n "$ac_ct_DSYMUTIL"; then
5332 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for ac_exec_ext in '' $ac_executable_extensions; do
5340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 break 2
5345 done
5346 done
5347 IFS=$as_save_IFS
5351 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5352 if test -n "$ac_ct_DSYMUTIL"; then
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5354 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5355 else
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5360 if test "x$ac_ct_DSYMUTIL" = x; then
5361 DSYMUTIL=":"
5362 else
5363 case $cross_compiling:$ac_tool_warned in
5364 yes:)
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5367 ac_tool_warned=yes ;;
5368 esac
5369 DSYMUTIL=$ac_ct_DSYMUTIL
5371 else
5372 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5375 if test -n "$ac_tool_prefix"; then
5376 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5377 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_prog_NMEDIT+:} false; then :
5381 $as_echo_n "(cached) " >&6
5382 else
5383 if test -n "$NMEDIT"; then
5384 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5385 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5397 done
5398 done
5399 IFS=$as_save_IFS
5403 NMEDIT=$ac_cv_prog_NMEDIT
5404 if test -n "$NMEDIT"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5406 $as_echo "$NMEDIT" >&6; }
5407 else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5414 if test -z "$ac_cv_prog_NMEDIT"; then
5415 ac_ct_NMEDIT=$NMEDIT
5416 # Extract the first word of "nmedit", so it can be a program name with args.
5417 set dummy nmedit; ac_word=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 if test -n "$ac_ct_NMEDIT"; then
5424 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5425 else
5426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5433 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5437 done
5438 done
5439 IFS=$as_save_IFS
5443 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5444 if test -n "$ac_ct_NMEDIT"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5446 $as_echo "$ac_ct_NMEDIT" >&6; }
5447 else
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5452 if test "x$ac_ct_NMEDIT" = x; then
5453 NMEDIT=":"
5454 else
5455 case $cross_compiling:$ac_tool_warned in
5456 yes:)
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5459 ac_tool_warned=yes ;;
5460 esac
5461 NMEDIT=$ac_ct_NMEDIT
5463 else
5464 NMEDIT="$ac_cv_prog_NMEDIT"
5467 if test -n "$ac_tool_prefix"; then
5468 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5469 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if ${ac_cv_prog_LIPO+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 if test -n "$LIPO"; then
5476 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5477 else
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5485 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5489 done
5490 done
5491 IFS=$as_save_IFS
5495 LIPO=$ac_cv_prog_LIPO
5496 if test -n "$LIPO"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5498 $as_echo "$LIPO" >&6; }
5499 else
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5506 if test -z "$ac_cv_prog_LIPO"; then
5507 ac_ct_LIPO=$LIPO
5508 # Extract the first word of "lipo", so it can be a program name with args.
5509 set dummy lipo; ac_word=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 if test -n "$ac_ct_LIPO"; then
5516 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5517 else
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5525 ac_cv_prog_ac_ct_LIPO="lipo"
5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 break 2
5529 done
5530 done
5531 IFS=$as_save_IFS
5535 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5536 if test -n "$ac_ct_LIPO"; then
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5538 $as_echo "$ac_ct_LIPO" >&6; }
5539 else
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541 $as_echo "no" >&6; }
5544 if test "x$ac_ct_LIPO" = x; then
5545 LIPO=":"
5546 else
5547 case $cross_compiling:$ac_tool_warned in
5548 yes:)
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5551 ac_tool_warned=yes ;;
5552 esac
5553 LIPO=$ac_ct_LIPO
5555 else
5556 LIPO="$ac_cv_prog_LIPO"
5559 if test -n "$ac_tool_prefix"; then
5560 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5561 set dummy ${ac_tool_prefix}otool; ac_word=$2
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5563 $as_echo_n "checking for $ac_word... " >&6; }
5564 if ${ac_cv_prog_OTOOL+:} false; then :
5565 $as_echo_n "(cached) " >&6
5566 else
5567 if test -n "$OTOOL"; then
5568 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5569 else
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 for as_dir in $PATH
5573 IFS=$as_save_IFS
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5579 break 2
5581 done
5582 done
5583 IFS=$as_save_IFS
5587 OTOOL=$ac_cv_prog_OTOOL
5588 if test -n "$OTOOL"; then
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5590 $as_echo "$OTOOL" >&6; }
5591 else
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5593 $as_echo "no" >&6; }
5598 if test -z "$ac_cv_prog_OTOOL"; then
5599 ac_ct_OTOOL=$OTOOL
5600 # Extract the first word of "otool", so it can be a program name with args.
5601 set dummy otool; ac_word=$2
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 if test -n "$ac_ct_OTOOL"; then
5608 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5609 else
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5617 ac_cv_prog_ac_ct_OTOOL="otool"
5618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 break 2
5621 done
5622 done
5623 IFS=$as_save_IFS
5627 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5628 if test -n "$ac_ct_OTOOL"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5630 $as_echo "$ac_ct_OTOOL" >&6; }
5631 else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5636 if test "x$ac_ct_OTOOL" = x; then
5637 OTOOL=":"
5638 else
5639 case $cross_compiling:$ac_tool_warned in
5640 yes:)
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5643 ac_tool_warned=yes ;;
5644 esac
5645 OTOOL=$ac_ct_OTOOL
5647 else
5648 OTOOL="$ac_cv_prog_OTOOL"
5651 if test -n "$ac_tool_prefix"; then
5652 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5653 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 $as_echo_n "checking for $ac_word... " >&6; }
5656 if ${ac_cv_prog_OTOOL64+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 if test -n "$OTOOL64"; then
5660 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5669 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5673 done
5674 done
5675 IFS=$as_save_IFS
5679 OTOOL64=$ac_cv_prog_OTOOL64
5680 if test -n "$OTOOL64"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5682 $as_echo "$OTOOL64" >&6; }
5683 else
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685 $as_echo "no" >&6; }
5690 if test -z "$ac_cv_prog_OTOOL64"; then
5691 ac_ct_OTOOL64=$OTOOL64
5692 # Extract the first word of "otool64", so it can be a program name with args.
5693 set dummy otool64; ac_word=$2
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695 $as_echo_n "checking for $ac_word... " >&6; }
5696 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
5697 $as_echo_n "(cached) " >&6
5698 else
5699 if test -n "$ac_ct_OTOOL64"; then
5700 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5701 else
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5705 IFS=$as_save_IFS
5706 test -z "$as_dir" && as_dir=.
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5709 ac_cv_prog_ac_ct_OTOOL64="otool64"
5710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711 break 2
5713 done
5714 done
5715 IFS=$as_save_IFS
5719 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5720 if test -n "$ac_ct_OTOOL64"; then
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5722 $as_echo "$ac_ct_OTOOL64" >&6; }
5723 else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5728 if test "x$ac_ct_OTOOL64" = x; then
5729 OTOOL64=":"
5730 else
5731 case $cross_compiling:$ac_tool_warned in
5732 yes:)
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5735 ac_tool_warned=yes ;;
5736 esac
5737 OTOOL64=$ac_ct_OTOOL64
5739 else
5740 OTOOL64="$ac_cv_prog_OTOOL64"
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5770 $as_echo_n "checking for -single_module linker flag... " >&6; }
5771 if ${lt_cv_apple_cc_single_mod+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 lt_cv_apple_cc_single_mod=no
5775 if test -z "${LT_MULTI_MODULE}"; then
5776 # By default we will add the -single_module flag. You can override
5777 # by either setting the environment variable LT_MULTI_MODULE
5778 # non-empty at configure time, or by adding -multi_module to the
5779 # link flags.
5780 rm -rf libconftest.dylib*
5781 echo "int foo(void){return 1;}" > conftest.c
5782 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5783 -dynamiclib -Wl,-single_module conftest.c" >&5
5784 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5785 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5786 _lt_result=$?
5787 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5788 lt_cv_apple_cc_single_mod=yes
5789 else
5790 cat conftest.err >&5
5792 rm -rf libconftest.dylib*
5793 rm -f conftest.*
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5797 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5799 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5800 if ${lt_cv_ld_exported_symbols_list+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 lt_cv_ld_exported_symbols_list=no
5804 save_LDFLAGS=$LDFLAGS
5805 echo "_main" > conftest.sym
5806 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5808 /* end confdefs.h. */
5811 main ()
5815 return 0;
5817 _ACEOF
5818 if ac_fn_c_try_link "$LINENO"; then :
5819 lt_cv_ld_exported_symbols_list=yes
5820 else
5821 lt_cv_ld_exported_symbols_list=no
5823 rm -f core conftest.err conftest.$ac_objext \
5824 conftest$ac_exeext conftest.$ac_ext
5825 LDFLAGS="$save_LDFLAGS"
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5829 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5830 case $host_os in
5831 rhapsody* | darwin1.[012])
5832 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5833 darwin1.*)
5834 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5835 darwin*) # darwin 5.x on
5836 # if running on 10.5 or later, the deployment target defaults
5837 # to the OS version, if on x86, and 10.4, the deployment
5838 # target defaults to 10.4. Don't you love it?
5839 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5840 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5841 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5842 10.[012]*)
5843 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5844 10.*)
5845 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5846 esac
5848 esac
5849 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5850 _lt_dar_single_mod='$single_module'
5852 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5853 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5854 else
5855 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5857 if test "$DSYMUTIL" != ":"; then
5858 _lt_dsymutil='~$DSYMUTIL $lib || :'
5859 else
5860 _lt_dsymutil=
5863 esac
5865 ac_ext=c
5866 ac_cpp='$CPP $CPPFLAGS'
5867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5871 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5872 # On Suns, sometimes $CPP names a directory.
5873 if test -n "$CPP" && test -d "$CPP"; then
5874 CPP=
5876 if test -z "$CPP"; then
5877 if ${ac_cv_prog_CPP+:} false; then :
5878 $as_echo_n "(cached) " >&6
5879 else
5880 # Double quotes because CPP needs to be expanded
5881 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5883 ac_preproc_ok=false
5884 for ac_c_preproc_warn_flag in '' yes
5886 # Use a header file that comes with gcc, so configuring glibc
5887 # with a fresh cross-compiler works.
5888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5889 # <limits.h> exists even on freestanding compilers.
5890 # On the NeXT, cc -E runs the code through the compiler's parser,
5891 # not just through cpp. "Syntax error" is here to catch this case.
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5894 #ifdef __STDC__
5895 # include <limits.h>
5896 #else
5897 # include <assert.h>
5898 #endif
5899 Syntax error
5900 _ACEOF
5901 if ac_fn_c_try_cpp "$LINENO"; then :
5903 else
5904 # Broken: fails on valid input.
5905 continue
5907 rm -f conftest.err conftest.i conftest.$ac_ext
5909 # OK, works on sane cases. Now check whether nonexistent headers
5910 # can be detected and how.
5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5913 #include <ac_nonexistent.h>
5914 _ACEOF
5915 if ac_fn_c_try_cpp "$LINENO"; then :
5916 # Broken: success on invalid input.
5917 continue
5918 else
5919 # Passes both tests.
5920 ac_preproc_ok=:
5921 break
5923 rm -f conftest.err conftest.i conftest.$ac_ext
5925 done
5926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5927 rm -f conftest.i conftest.err conftest.$ac_ext
5928 if $ac_preproc_ok; then :
5929 break
5932 done
5933 ac_cv_prog_CPP=$CPP
5936 CPP=$ac_cv_prog_CPP
5937 else
5938 ac_cv_prog_CPP=$CPP
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5941 $as_echo "$CPP" >&6; }
5942 ac_preproc_ok=false
5943 for ac_c_preproc_warn_flag in '' yes
5945 # Use a header file that comes with gcc, so configuring glibc
5946 # with a fresh cross-compiler works.
5947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5948 # <limits.h> exists even on freestanding compilers.
5949 # On the NeXT, cc -E runs the code through the compiler's parser,
5950 # not just through cpp. "Syntax error" is here to catch this case.
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 #ifdef __STDC__
5954 # include <limits.h>
5955 #else
5956 # include <assert.h>
5957 #endif
5958 Syntax error
5959 _ACEOF
5960 if ac_fn_c_try_cpp "$LINENO"; then :
5962 else
5963 # Broken: fails on valid input.
5964 continue
5966 rm -f conftest.err conftest.i conftest.$ac_ext
5968 # OK, works on sane cases. Now check whether nonexistent headers
5969 # can be detected and how.
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972 #include <ac_nonexistent.h>
5973 _ACEOF
5974 if ac_fn_c_try_cpp "$LINENO"; then :
5975 # Broken: success on invalid input.
5976 continue
5977 else
5978 # Passes both tests.
5979 ac_preproc_ok=:
5980 break
5982 rm -f conftest.err conftest.i conftest.$ac_ext
5984 done
5985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5986 rm -f conftest.i conftest.err conftest.$ac_ext
5987 if $ac_preproc_ok; then :
5989 else
5990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5992 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5993 See \`config.log' for more details" "$LINENO" 5; }
5996 ac_ext=c
5997 ac_cpp='$CPP $CPPFLAGS'
5998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6004 $as_echo_n "checking for ANSI C header files... " >&6; }
6005 if ${ac_cv_header_stdc+:} false; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 #include <stdlib.h>
6011 #include <stdarg.h>
6012 #include <string.h>
6013 #include <float.h>
6016 main ()
6020 return 0;
6022 _ACEOF
6023 if ac_fn_c_try_compile "$LINENO"; then :
6024 ac_cv_header_stdc=yes
6025 else
6026 ac_cv_header_stdc=no
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 if test $ac_cv_header_stdc = yes; then
6031 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6034 #include <string.h>
6036 _ACEOF
6037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6038 $EGREP "memchr" >/dev/null 2>&1; then :
6040 else
6041 ac_cv_header_stdc=no
6043 rm -f conftest*
6047 if test $ac_cv_header_stdc = yes; then
6048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 #include <stdlib.h>
6053 _ACEOF
6054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6055 $EGREP "free" >/dev/null 2>&1; then :
6057 else
6058 ac_cv_header_stdc=no
6060 rm -f conftest*
6064 if test $ac_cv_header_stdc = yes; then
6065 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6066 if test "$cross_compiling" = yes; then :
6068 else
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6071 #include <ctype.h>
6072 #include <stdlib.h>
6073 #if ((' ' & 0x0FF) == 0x020)
6074 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6075 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6076 #else
6077 # define ISLOWER(c) \
6078 (('a' <= (c) && (c) <= 'i') \
6079 || ('j' <= (c) && (c) <= 'r') \
6080 || ('s' <= (c) && (c) <= 'z'))
6081 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6082 #endif
6084 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6086 main ()
6088 int i;
6089 for (i = 0; i < 256; i++)
6090 if (XOR (islower (i), ISLOWER (i))
6091 || toupper (i) != TOUPPER (i))
6092 return 2;
6093 return 0;
6095 _ACEOF
6096 if ac_fn_c_try_run "$LINENO"; then :
6098 else
6099 ac_cv_header_stdc=no
6101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6102 conftest.$ac_objext conftest.beam conftest.$ac_ext
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6108 $as_echo "$ac_cv_header_stdc" >&6; }
6109 if test $ac_cv_header_stdc = yes; then
6111 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6115 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6116 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6117 inttypes.h stdint.h unistd.h
6118 do :
6119 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6120 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6122 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6123 cat >>confdefs.h <<_ACEOF
6124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6125 _ACEOF
6129 done
6132 for ac_header in dlfcn.h
6133 do :
6134 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6136 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6137 cat >>confdefs.h <<_ACEOF
6138 #define HAVE_DLFCN_H 1
6139 _ACEOF
6143 done
6147 # Set options
6151 enable_dlopen=no
6154 enable_win32_dll=no
6157 # Check whether --enable-shared was given.
6158 if test "${enable_shared+set}" = set; then :
6159 enableval=$enable_shared; p=${PACKAGE-default}
6160 case $enableval in
6161 yes) enable_shared=yes ;;
6162 no) enable_shared=no ;;
6164 enable_shared=no
6165 # Look at the argument we got. We use all the common list separators.
6166 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6167 for pkg in $enableval; do
6168 IFS="$lt_save_ifs"
6169 if test "X$pkg" = "X$p"; then
6170 enable_shared=yes
6172 done
6173 IFS="$lt_save_ifs"
6175 esac
6176 else
6177 enable_shared=yes
6188 # Check whether --enable-static was given.
6189 if test "${enable_static+set}" = set; then :
6190 enableval=$enable_static; p=${PACKAGE-default}
6191 case $enableval in
6192 yes) enable_static=yes ;;
6193 no) enable_static=no ;;
6195 enable_static=no
6196 # Look at the argument we got. We use all the common list separators.
6197 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6198 for pkg in $enableval; do
6199 IFS="$lt_save_ifs"
6200 if test "X$pkg" = "X$p"; then
6201 enable_static=yes
6203 done
6204 IFS="$lt_save_ifs"
6206 esac
6207 else
6208 enable_static=yes
6220 # Check whether --with-pic was given.
6221 if test "${with_pic+set}" = set; then :
6222 withval=$with_pic; pic_mode="$withval"
6223 else
6224 pic_mode=default
6228 test -z "$pic_mode" && pic_mode=default
6236 # Check whether --enable-fast-install was given.
6237 if test "${enable_fast_install+set}" = set; then :
6238 enableval=$enable_fast_install; p=${PACKAGE-default}
6239 case $enableval in
6240 yes) enable_fast_install=yes ;;
6241 no) enable_fast_install=no ;;
6243 enable_fast_install=no
6244 # Look at the argument we got. We use all the common list separators.
6245 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6246 for pkg in $enableval; do
6247 IFS="$lt_save_ifs"
6248 if test "X$pkg" = "X$p"; then
6249 enable_fast_install=yes
6251 done
6252 IFS="$lt_save_ifs"
6254 esac
6255 else
6256 enable_fast_install=yes
6269 # This can be used to rebuild libtool when needed
6270 LIBTOOL_DEPS="$ltmain"
6272 # Always use our own libtool.
6273 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6299 test -z "$LN_S" && LN_S="ln -s"
6314 if test -n "${ZSH_VERSION+set}" ; then
6315 setopt NO_GLOB_SUBST
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6319 $as_echo_n "checking for objdir... " >&6; }
6320 if ${lt_cv_objdir+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 rm -f .libs 2>/dev/null
6324 mkdir .libs 2>/dev/null
6325 if test -d .libs; then
6326 lt_cv_objdir=.libs
6327 else
6328 # MS-DOS does not allow filenames that begin with a dot.
6329 lt_cv_objdir=_libs
6331 rmdir .libs 2>/dev/null
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6334 $as_echo "$lt_cv_objdir" >&6; }
6335 objdir=$lt_cv_objdir
6341 cat >>confdefs.h <<_ACEOF
6342 #define LT_OBJDIR "$lt_cv_objdir/"
6343 _ACEOF
6361 case $host_os in
6362 aix3*)
6363 # AIX sometimes has problems with the GCC collect2 program. For some
6364 # reason, if we set the COLLECT_NAMES environment variable, the problems
6365 # vanish in a puff of smoke.
6366 if test "X${COLLECT_NAMES+set}" != Xset; then
6367 COLLECT_NAMES=
6368 export COLLECT_NAMES
6371 esac
6373 # Sed substitution that helps us do robust quoting. It backslashifies
6374 # metacharacters that are still active within double-quoted strings.
6375 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6377 # Same as above, but do not quote variable references.
6378 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6380 # Sed substitution to delay expansion of an escaped shell variable in a
6381 # double_quote_subst'ed string.
6382 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6384 # Sed substitution to delay expansion of an escaped single quote.
6385 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6387 # Sed substitution to avoid accidental globbing in evaled expressions
6388 no_glob_subst='s/\*/\\\*/g'
6390 # Global variables:
6391 ofile=libtool
6392 can_build_shared=yes
6394 # All known linkers require a `.a' archive for static linking (except MSVC,
6395 # which needs '.lib').
6396 libext=a
6398 with_gnu_ld="$lt_cv_prog_gnu_ld"
6400 old_CC="$CC"
6401 old_CFLAGS="$CFLAGS"
6403 # Set sane defaults for various variables
6404 test -z "$CC" && CC=cc
6405 test -z "$LTCC" && LTCC=$CC
6406 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6407 test -z "$LD" && LD=ld
6408 test -z "$ac_objext" && ac_objext=o
6410 for cc_temp in $compiler""; do
6411 case $cc_temp in
6412 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6413 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6414 \-*) ;;
6415 *) break;;
6416 esac
6417 done
6418 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6421 # Only perform the check for file, if the check method requires it
6422 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6423 case $deplibs_check_method in
6424 file_magic*)
6425 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6427 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6428 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6429 $as_echo_n "(cached) " >&6
6430 else
6431 case $MAGIC_CMD in
6432 [\\/*] | ?:[\\/]*)
6433 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6436 lt_save_MAGIC_CMD="$MAGIC_CMD"
6437 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6438 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6439 for ac_dir in $ac_dummy; do
6440 IFS="$lt_save_ifs"
6441 test -z "$ac_dir" && ac_dir=.
6442 if test -f $ac_dir/${ac_tool_prefix}file; then
6443 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6444 if test -n "$file_magic_test_file"; then
6445 case $deplibs_check_method in
6446 "file_magic "*)
6447 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6448 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6449 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6450 $EGREP "$file_magic_regex" > /dev/null; then
6452 else
6453 cat <<_LT_EOF 1>&2
6455 *** Warning: the command libtool uses to detect shared libraries,
6456 *** $file_magic_cmd, produces output that libtool cannot recognize.
6457 *** The result is that libtool may fail to recognize shared libraries
6458 *** as such. This will affect the creation of libtool libraries that
6459 *** depend on shared libraries, but programs linked with such libtool
6460 *** libraries will work regardless of this problem. Nevertheless, you
6461 *** may want to report the problem to your system manager and/or to
6462 *** bug-libtool@gnu.org
6464 _LT_EOF
6465 fi ;;
6466 esac
6468 break
6470 done
6471 IFS="$lt_save_ifs"
6472 MAGIC_CMD="$lt_save_MAGIC_CMD"
6474 esac
6477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6478 if test -n "$MAGIC_CMD"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6480 $as_echo "$MAGIC_CMD" >&6; }
6481 else
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483 $as_echo "no" >&6; }
6490 if test -z "$lt_cv_path_MAGIC_CMD"; then
6491 if test -n "$ac_tool_prefix"; then
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6493 $as_echo_n "checking for file... " >&6; }
6494 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 case $MAGIC_CMD in
6498 [\\/*] | ?:[\\/]*)
6499 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6502 lt_save_MAGIC_CMD="$MAGIC_CMD"
6503 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6504 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6505 for ac_dir in $ac_dummy; do
6506 IFS="$lt_save_ifs"
6507 test -z "$ac_dir" && ac_dir=.
6508 if test -f $ac_dir/file; then
6509 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6510 if test -n "$file_magic_test_file"; then
6511 case $deplibs_check_method in
6512 "file_magic "*)
6513 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6514 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6515 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6516 $EGREP "$file_magic_regex" > /dev/null; then
6518 else
6519 cat <<_LT_EOF 1>&2
6521 *** Warning: the command libtool uses to detect shared libraries,
6522 *** $file_magic_cmd, produces output that libtool cannot recognize.
6523 *** The result is that libtool may fail to recognize shared libraries
6524 *** as such. This will affect the creation of libtool libraries that
6525 *** depend on shared libraries, but programs linked with such libtool
6526 *** libraries will work regardless of this problem. Nevertheless, you
6527 *** may want to report the problem to your system manager and/or to
6528 *** bug-libtool@gnu.org
6530 _LT_EOF
6531 fi ;;
6532 esac
6534 break
6536 done
6537 IFS="$lt_save_ifs"
6538 MAGIC_CMD="$lt_save_MAGIC_CMD"
6540 esac
6543 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6544 if test -n "$MAGIC_CMD"; then
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6546 $as_echo "$MAGIC_CMD" >&6; }
6547 else
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 $as_echo "no" >&6; }
6553 else
6554 MAGIC_CMD=:
6560 esac
6562 # Use C for the default configuration in the libtool script
6564 lt_save_CC="$CC"
6565 ac_ext=c
6566 ac_cpp='$CPP $CPPFLAGS'
6567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6572 # Source file extension for C test sources.
6573 ac_ext=c
6575 # Object file extension for compiled C test sources.
6576 objext=o
6577 objext=$objext
6579 # Code to be used in simple compile tests
6580 lt_simple_compile_test_code="int some_variable = 0;"
6582 # Code to be used in simple link tests
6583 lt_simple_link_test_code='int main(){return(0);}'
6591 # If no C compiler was specified, use CC.
6592 LTCC=${LTCC-"$CC"}
6594 # If no C compiler flags were specified, use CFLAGS.
6595 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6597 # Allow CC to be a program name with arguments.
6598 compiler=$CC
6600 # Save the default compiler, since it gets overwritten when the other
6601 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6602 compiler_DEFAULT=$CC
6604 # save warnings/boilerplate of simple test code
6605 ac_outfile=conftest.$ac_objext
6606 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6607 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6608 _lt_compiler_boilerplate=`cat conftest.err`
6609 $RM conftest*
6611 ac_outfile=conftest.$ac_objext
6612 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6613 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6614 _lt_linker_boilerplate=`cat conftest.err`
6615 $RM -r conftest*
6618 if test -n "$compiler"; then
6620 lt_prog_compiler_no_builtin_flag=
6622 if test "$GCC" = yes; then
6623 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6626 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6627 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6628 $as_echo_n "(cached) " >&6
6629 else
6630 lt_cv_prog_compiler_rtti_exceptions=no
6631 ac_outfile=conftest.$ac_objext
6632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6633 lt_compiler_flag="-fno-rtti -fno-exceptions"
6634 # Insert the option either (1) after the last *FLAGS variable, or
6635 # (2) before a word containing "conftest.", or (3) at the end.
6636 # Note that $ac_compile itself does not contain backslashes and begins
6637 # with a dollar sign (not a hyphen), so the echo should work correctly.
6638 # The option is referenced via a variable to avoid confusing sed.
6639 lt_compile=`echo "$ac_compile" | $SED \
6640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6642 -e 's:$: $lt_compiler_flag:'`
6643 (eval echo "\"\$as_me:6643: $lt_compile\"" >&5)
6644 (eval "$lt_compile" 2>conftest.err)
6645 ac_status=$?
6646 cat conftest.err >&5
6647 echo "$as_me:6647: \$? = $ac_status" >&5
6648 if (exit $ac_status) && test -s "$ac_outfile"; then
6649 # The compiler can only warn and ignore the option if not recognized
6650 # So say no if there are warnings other than the usual output.
6651 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6653 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6654 lt_cv_prog_compiler_rtti_exceptions=yes
6657 $RM conftest*
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6661 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6663 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6664 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6665 else
6676 lt_prog_compiler_wl=
6677 lt_prog_compiler_pic=
6678 lt_prog_compiler_static=
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6681 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6683 if test "$GCC" = yes; then
6684 lt_prog_compiler_wl='-Wl,'
6685 lt_prog_compiler_static='-static'
6687 case $host_os in
6688 aix*)
6689 # All AIX code is PIC.
6690 if test "$host_cpu" = ia64; then
6691 # AIX 5 now supports IA64 processor
6692 lt_prog_compiler_static='-Bstatic'
6696 amigaos*)
6697 case $host_cpu in
6698 powerpc)
6699 # see comment about AmigaOS4 .so support
6700 lt_prog_compiler_pic='-fPIC'
6702 m68k)
6703 # FIXME: we need at least 68020 code to build shared libraries, but
6704 # adding the `-m68020' flag to GCC prevents building anything better,
6705 # like `-m68040'.
6706 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6708 esac
6711 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6712 # PIC is the default for these OSes.
6715 mingw* | cygwin* | pw32* | os2* | cegcc*)
6716 # This hack is so that the source file can tell whether it is being
6717 # built for inclusion in a dll (and should export symbols for example).
6718 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6719 # (--disable-auto-import) libraries
6720 lt_prog_compiler_pic='-DDLL_EXPORT'
6723 darwin* | rhapsody*)
6724 # PIC is the default on this platform
6725 # Common symbols not allowed in MH_DYLIB files
6726 lt_prog_compiler_pic='-fno-common'
6729 hpux*)
6730 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6731 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6732 # sets the default TLS model and affects inlining.
6733 case $host_cpu in
6734 hppa*64*)
6735 # +Z the default
6738 lt_prog_compiler_pic='-fPIC'
6740 esac
6743 interix[3-9]*)
6744 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6745 # Instead, we relocate shared libraries at runtime.
6748 msdosdjgpp*)
6749 # Just because we use GCC doesn't mean we suddenly get shared libraries
6750 # on systems that don't support them.
6751 lt_prog_compiler_can_build_shared=no
6752 enable_shared=no
6755 *nto* | *qnx*)
6756 # QNX uses GNU C++, but need to define -shared option too, otherwise
6757 # it will coredump.
6758 lt_prog_compiler_pic='-fPIC -shared'
6761 sysv4*MP*)
6762 if test -d /usr/nec; then
6763 lt_prog_compiler_pic=-Kconform_pic
6768 lt_prog_compiler_pic='-fPIC'
6770 esac
6771 else
6772 # PORTME Check for flag to pass linker flags through the system compiler.
6773 case $host_os in
6774 aix*)
6775 lt_prog_compiler_wl='-Wl,'
6776 if test "$host_cpu" = ia64; then
6777 # AIX 5 now supports IA64 processor
6778 lt_prog_compiler_static='-Bstatic'
6779 else
6780 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6784 mingw* | cygwin* | pw32* | os2* | cegcc*)
6785 # This hack is so that the source file can tell whether it is being
6786 # built for inclusion in a dll (and should export symbols for example).
6787 lt_prog_compiler_pic='-DDLL_EXPORT'
6790 hpux9* | hpux10* | hpux11*)
6791 lt_prog_compiler_wl='-Wl,'
6792 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6793 # not for PA HP-UX.
6794 case $host_cpu in
6795 hppa*64*|ia64*)
6796 # +Z the default
6799 lt_prog_compiler_pic='+Z'
6801 esac
6802 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6803 lt_prog_compiler_static='${wl}-a ${wl}archive'
6806 irix5* | irix6* | nonstopux*)
6807 lt_prog_compiler_wl='-Wl,'
6808 # PIC (with -KPIC) is the default.
6809 lt_prog_compiler_static='-non_shared'
6812 linux* | k*bsd*-gnu)
6813 case $cc_basename in
6814 # old Intel for x86_64 which still supported -KPIC.
6815 ecc*)
6816 lt_prog_compiler_wl='-Wl,'
6817 lt_prog_compiler_pic='-KPIC'
6818 lt_prog_compiler_static='-static'
6820 # icc used to be incompatible with GCC.
6821 # ICC 10 doesn't accept -KPIC any more.
6822 icc* | ifort*)
6823 lt_prog_compiler_wl='-Wl,'
6824 lt_prog_compiler_pic='-fPIC'
6825 lt_prog_compiler_static='-static'
6827 # Lahey Fortran 8.1.
6828 lf95*)
6829 lt_prog_compiler_wl='-Wl,'
6830 lt_prog_compiler_pic='--shared'
6831 lt_prog_compiler_static='--static'
6833 pgcc* | pgf77* | pgf90* | pgf95*)
6834 # Portland Group compilers (*not* the Pentium gcc compiler,
6835 # which looks to be a dead project)
6836 lt_prog_compiler_wl='-Wl,'
6837 lt_prog_compiler_pic='-fpic'
6838 lt_prog_compiler_static='-Bstatic'
6840 ccc*)
6841 lt_prog_compiler_wl='-Wl,'
6842 # All Alpha code is PIC.
6843 lt_prog_compiler_static='-non_shared'
6845 xl*)
6846 # IBM XL C 8.0/Fortran 10.1 on PPC
6847 lt_prog_compiler_wl='-Wl,'
6848 lt_prog_compiler_pic='-qpic'
6849 lt_prog_compiler_static='-qstaticlink'
6852 case `$CC -V 2>&1 | sed 5q` in
6853 *Sun\ C*)
6854 # Sun C 5.9
6855 lt_prog_compiler_pic='-KPIC'
6856 lt_prog_compiler_static='-Bstatic'
6857 lt_prog_compiler_wl='-Wl,'
6859 *Sun\ F*)
6860 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6861 lt_prog_compiler_pic='-KPIC'
6862 lt_prog_compiler_static='-Bstatic'
6863 lt_prog_compiler_wl=''
6865 esac
6867 esac
6870 newsos6)
6871 lt_prog_compiler_pic='-KPIC'
6872 lt_prog_compiler_static='-Bstatic'
6875 *nto* | *qnx*)
6876 # QNX uses GNU C++, but need to define -shared option too, otherwise
6877 # it will coredump.
6878 lt_prog_compiler_pic='-fPIC -shared'
6881 osf3* | osf4* | osf5*)
6882 lt_prog_compiler_wl='-Wl,'
6883 # All OSF/1 code is PIC.
6884 lt_prog_compiler_static='-non_shared'
6887 rdos*)
6888 lt_prog_compiler_static='-non_shared'
6891 solaris*)
6892 lt_prog_compiler_pic='-KPIC'
6893 lt_prog_compiler_static='-Bstatic'
6894 case $cc_basename in
6895 f77* | f90* | f95*)
6896 lt_prog_compiler_wl='-Qoption ld ';;
6898 lt_prog_compiler_wl='-Wl,';;
6899 esac
6902 sunos4*)
6903 lt_prog_compiler_wl='-Qoption ld '
6904 lt_prog_compiler_pic='-PIC'
6905 lt_prog_compiler_static='-Bstatic'
6908 sysv4 | sysv4.2uw2* | sysv4.3*)
6909 lt_prog_compiler_wl='-Wl,'
6910 lt_prog_compiler_pic='-KPIC'
6911 lt_prog_compiler_static='-Bstatic'
6914 sysv4*MP*)
6915 if test -d /usr/nec ;then
6916 lt_prog_compiler_pic='-Kconform_pic'
6917 lt_prog_compiler_static='-Bstatic'
6921 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6922 lt_prog_compiler_wl='-Wl,'
6923 lt_prog_compiler_pic='-KPIC'
6924 lt_prog_compiler_static='-Bstatic'
6927 unicos*)
6928 lt_prog_compiler_wl='-Wl,'
6929 lt_prog_compiler_can_build_shared=no
6932 uts4*)
6933 lt_prog_compiler_pic='-pic'
6934 lt_prog_compiler_static='-Bstatic'
6938 lt_prog_compiler_can_build_shared=no
6940 esac
6943 case $host_os in
6944 # For platforms which do not support PIC, -DPIC is meaningless:
6945 *djgpp*)
6946 lt_prog_compiler_pic=
6949 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6951 esac
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6953 $as_echo "$lt_prog_compiler_pic" >&6; }
6961 # Check to make sure the PIC flag actually works.
6963 if test -n "$lt_prog_compiler_pic"; then
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6965 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6966 if ${lt_cv_prog_compiler_pic_works+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 lt_cv_prog_compiler_pic_works=no
6970 ac_outfile=conftest.$ac_objext
6971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6972 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6973 # Insert the option either (1) after the last *FLAGS variable, or
6974 # (2) before a word containing "conftest.", or (3) at the end.
6975 # Note that $ac_compile itself does not contain backslashes and begins
6976 # with a dollar sign (not a hyphen), so the echo should work correctly.
6977 # The option is referenced via a variable to avoid confusing sed.
6978 lt_compile=`echo "$ac_compile" | $SED \
6979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6981 -e 's:$: $lt_compiler_flag:'`
6982 (eval echo "\"\$as_me:6982: $lt_compile\"" >&5)
6983 (eval "$lt_compile" 2>conftest.err)
6984 ac_status=$?
6985 cat conftest.err >&5
6986 echo "$as_me:6986: \$? = $ac_status" >&5
6987 if (exit $ac_status) && test -s "$ac_outfile"; then
6988 # The compiler can only warn and ignore the option if not recognized
6989 # So say no if there are warnings other than the usual output.
6990 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6992 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6993 lt_cv_prog_compiler_pic_works=yes
6996 $RM conftest*
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7000 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7002 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7003 case $lt_prog_compiler_pic in
7004 "" | " "*) ;;
7005 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7006 esac
7007 else
7008 lt_prog_compiler_pic=
7009 lt_prog_compiler_can_build_shared=no
7020 # Check to make sure the static flag actually works.
7022 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7024 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7025 if ${lt_cv_prog_compiler_static_works+:} false; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 lt_cv_prog_compiler_static_works=no
7029 save_LDFLAGS="$LDFLAGS"
7030 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7031 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7032 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7033 # The linker can only warn and ignore the option if not recognized
7034 # So say no if there are warnings
7035 if test -s conftest.err; then
7036 # Append any errors to the config.log.
7037 cat conftest.err 1>&5
7038 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7039 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7040 if diff conftest.exp conftest.er2 >/dev/null; then
7041 lt_cv_prog_compiler_static_works=yes
7043 else
7044 lt_cv_prog_compiler_static_works=yes
7047 $RM -r conftest*
7048 LDFLAGS="$save_LDFLAGS"
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7052 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7054 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7056 else
7057 lt_prog_compiler_static=
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7067 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7068 if ${lt_cv_prog_compiler_c_o+:} false; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 lt_cv_prog_compiler_c_o=no
7072 $RM -r conftest 2>/dev/null
7073 mkdir conftest
7074 cd conftest
7075 mkdir out
7076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7078 lt_compiler_flag="-o out/conftest2.$ac_objext"
7079 # Insert the option either (1) after the last *FLAGS variable, or
7080 # (2) before a word containing "conftest.", or (3) at the end.
7081 # Note that $ac_compile itself does not contain backslashes and begins
7082 # with a dollar sign (not a hyphen), so the echo should work correctly.
7083 lt_compile=`echo "$ac_compile" | $SED \
7084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7086 -e 's:$: $lt_compiler_flag:'`
7087 (eval echo "\"\$as_me:7087: $lt_compile\"" >&5)
7088 (eval "$lt_compile" 2>out/conftest.err)
7089 ac_status=$?
7090 cat out/conftest.err >&5
7091 echo "$as_me:7091: \$? = $ac_status" >&5
7092 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7093 then
7094 # The compiler can only warn and ignore the option if not recognized
7095 # So say no if there are warnings
7096 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7097 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7098 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7099 lt_cv_prog_compiler_c_o=yes
7102 chmod u+w . 2>&5
7103 $RM conftest*
7104 # SGI C++ compiler will create directory out/ii_files/ for
7105 # template instantiation
7106 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7107 $RM out/* && rmdir out
7108 cd ..
7109 $RM -r conftest
7110 $RM conftest*
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7114 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7122 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7123 if ${lt_cv_prog_compiler_c_o+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 lt_cv_prog_compiler_c_o=no
7127 $RM -r conftest 2>/dev/null
7128 mkdir conftest
7129 cd conftest
7130 mkdir out
7131 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7133 lt_compiler_flag="-o out/conftest2.$ac_objext"
7134 # Insert the option either (1) after the last *FLAGS variable, or
7135 # (2) before a word containing "conftest.", or (3) at the end.
7136 # Note that $ac_compile itself does not contain backslashes and begins
7137 # with a dollar sign (not a hyphen), so the echo should work correctly.
7138 lt_compile=`echo "$ac_compile" | $SED \
7139 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7140 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7141 -e 's:$: $lt_compiler_flag:'`
7142 (eval echo "\"\$as_me:7142: $lt_compile\"" >&5)
7143 (eval "$lt_compile" 2>out/conftest.err)
7144 ac_status=$?
7145 cat out/conftest.err >&5
7146 echo "$as_me:7146: \$? = $ac_status" >&5
7147 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7148 then
7149 # The compiler can only warn and ignore the option if not recognized
7150 # So say no if there are warnings
7151 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7152 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7153 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7154 lt_cv_prog_compiler_c_o=yes
7157 chmod u+w . 2>&5
7158 $RM conftest*
7159 # SGI C++ compiler will create directory out/ii_files/ for
7160 # template instantiation
7161 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7162 $RM out/* && rmdir out
7163 cd ..
7164 $RM -r conftest
7165 $RM conftest*
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7169 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7174 hard_links="nottested"
7175 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7176 # do not overwrite the value of need_locks provided by the user
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7178 $as_echo_n "checking if we can lock with hard links... " >&6; }
7179 hard_links=yes
7180 $RM conftest*
7181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7182 touch conftest.a
7183 ln conftest.a conftest.b 2>&5 || hard_links=no
7184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7186 $as_echo "$hard_links" >&6; }
7187 if test "$hard_links" = no; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7189 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7190 need_locks=warn
7192 else
7193 need_locks=no
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7202 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7204 runpath_var=
7205 allow_undefined_flag=
7206 always_export_symbols=no
7207 archive_cmds=
7208 archive_expsym_cmds=
7209 compiler_needs_object=no
7210 enable_shared_with_static_runtimes=no
7211 export_dynamic_flag_spec=
7212 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7213 hardcode_automatic=no
7214 hardcode_direct=no
7215 hardcode_direct_absolute=no
7216 hardcode_libdir_flag_spec=
7217 hardcode_libdir_flag_spec_ld=
7218 hardcode_libdir_separator=
7219 hardcode_minus_L=no
7220 hardcode_shlibpath_var=unsupported
7221 inherit_rpath=no
7222 link_all_deplibs=unknown
7223 module_cmds=
7224 module_expsym_cmds=
7225 old_archive_from_new_cmds=
7226 old_archive_from_expsyms_cmds=
7227 thread_safe_flag_spec=
7228 whole_archive_flag_spec=
7229 # include_expsyms should be a list of space-separated symbols to be *always*
7230 # included in the symbol list
7231 include_expsyms=
7232 # exclude_expsyms can be an extended regexp of symbols to exclude
7233 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7234 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7235 # as well as any symbol that contains `d'.
7236 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7237 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7238 # platforms (ab)use it in PIC code, but their linkers get confused if
7239 # the symbol is explicitly referenced. Since portable code cannot
7240 # rely on this symbol name, it's probably fine to never include it in
7241 # preloaded symbol tables.
7242 # Exclude shared library initialization/finalization symbols.
7243 extract_expsyms_cmds=
7245 case $host_os in
7246 cygwin* | mingw* | pw32* | cegcc*)
7247 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7248 # When not using gcc, we currently assume that we are using
7249 # Microsoft Visual C++.
7250 if test "$GCC" != yes; then
7251 with_gnu_ld=no
7254 interix*)
7255 # we just hope/assume this is gcc and not c89 (= MSVC++)
7256 with_gnu_ld=yes
7258 openbsd*)
7259 with_gnu_ld=no
7261 esac
7263 ld_shlibs=yes
7264 if test "$with_gnu_ld" = yes; then
7265 # If archive_cmds runs LD, not CC, wlarc should be empty
7266 wlarc='${wl}'
7268 # Set some defaults for GNU ld with shared library support. These
7269 # are reset later if shared libraries are not supported. Putting them
7270 # here allows them to be overridden if necessary.
7271 runpath_var=LD_RUN_PATH
7272 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7273 export_dynamic_flag_spec='${wl}--export-dynamic'
7274 # ancient GNU ld didn't support --whole-archive et. al.
7275 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7276 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7277 else
7278 whole_archive_flag_spec=
7280 supports_anon_versioning=no
7281 case `$LD -v 2>&1` in
7282 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7283 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7284 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7285 *\ 2.11.*) ;; # other 2.11 versions
7286 *) supports_anon_versioning=yes ;;
7287 esac
7289 # See if GNU ld supports shared libraries.
7290 case $host_os in
7291 aix[3-9]*)
7292 # On AIX/PPC, the GNU linker is very broken
7293 if test "$host_cpu" != ia64; then
7294 ld_shlibs=no
7295 cat <<_LT_EOF 1>&2
7297 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7298 *** to be unable to reliably create shared libraries on AIX.
7299 *** Therefore, libtool is disabling shared libraries support. If you
7300 *** really care for shared libraries, you may want to modify your PATH
7301 *** so that a non-GNU linker is found, and then restart.
7303 _LT_EOF
7307 amigaos*)
7308 case $host_cpu in
7309 powerpc)
7310 # see comment about AmigaOS4 .so support
7311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7312 archive_expsym_cmds=''
7314 m68k)
7315 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)'
7316 hardcode_libdir_flag_spec='-L$libdir'
7317 hardcode_minus_L=yes
7319 esac
7322 beos*)
7323 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7324 allow_undefined_flag=unsupported
7325 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7326 # support --undefined. This deserves some investigation. FIXME
7327 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7328 else
7329 ld_shlibs=no
7333 cygwin* | mingw* | pw32* | cegcc*)
7334 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7335 # as there is no search path for DLLs.
7336 hardcode_libdir_flag_spec='-L$libdir'
7337 allow_undefined_flag=unsupported
7338 always_export_symbols=no
7339 enable_shared_with_static_runtimes=yes
7340 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7342 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7344 # If the export-symbols file already is a .def file (1st line
7345 # is EXPORTS), use it as is; otherwise, prepend...
7346 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7347 cp $export_symbols $output_objdir/$soname.def;
7348 else
7349 echo EXPORTS > $output_objdir/$soname.def;
7350 cat $export_symbols >> $output_objdir/$soname.def;
7352 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7353 else
7354 ld_shlibs=no
7358 interix[3-9]*)
7359 hardcode_direct=no
7360 hardcode_shlibpath_var=no
7361 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7362 export_dynamic_flag_spec='${wl}-E'
7363 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7364 # Instead, shared libraries are loaded at an image base (0x10000000 by
7365 # default) and relocated if they conflict, which is a slow very memory
7366 # consuming and fragmenting process. To avoid this, we pick a random,
7367 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7368 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7369 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7370 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'
7373 gnu* | linux* | tpf* | k*bsd*-gnu)
7374 tmp_diet=no
7375 if test "$host_os" = linux-dietlibc; then
7376 case $cc_basename in
7377 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7378 esac
7380 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7381 && test "$tmp_diet" = no
7382 then
7383 tmp_addflag=
7384 tmp_sharedflag='-shared'
7385 case $cc_basename,$host_cpu in
7386 pgcc*) # Portland Group C compiler
7387 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7388 tmp_addflag=' $pic_flag'
7390 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7391 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7392 tmp_addflag=' $pic_flag -Mnomain' ;;
7393 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7394 tmp_addflag=' -i_dynamic' ;;
7395 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7396 tmp_addflag=' -i_dynamic -nofor_main' ;;
7397 ifc* | ifort*) # Intel Fortran compiler
7398 tmp_addflag=' -nofor_main' ;;
7399 lf95*) # Lahey Fortran 8.1
7400 whole_archive_flag_spec=
7401 tmp_sharedflag='--shared' ;;
7402 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7403 tmp_sharedflag='-qmkshrobj'
7404 tmp_addflag= ;;
7405 esac
7406 case `$CC -V 2>&1 | sed 5q` in
7407 *Sun\ C*) # Sun C 5.9
7408 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7409 compiler_needs_object=yes
7410 tmp_sharedflag='-G' ;;
7411 *Sun\ F*) # Sun Fortran 8.3
7412 tmp_sharedflag='-G' ;;
7413 esac
7414 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7416 if test "x$supports_anon_versioning" = xyes; then
7417 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7418 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7419 echo "local: *; };" >> $output_objdir/$libname.ver~
7420 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7423 case $cc_basename in
7424 xlf*)
7425 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7426 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7427 hardcode_libdir_flag_spec=
7428 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7429 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7430 if test "x$supports_anon_versioning" = xyes; then
7431 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7433 echo "local: *; };" >> $output_objdir/$libname.ver~
7434 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7437 esac
7438 else
7439 ld_shlibs=no
7443 netbsd*)
7444 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7445 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7446 wlarc=
7447 else
7448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7449 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7453 solaris*)
7454 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7455 ld_shlibs=no
7456 cat <<_LT_EOF 1>&2
7458 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7459 *** create shared libraries on Solaris systems. Therefore, libtool
7460 *** is disabling shared libraries support. We urge you to upgrade GNU
7461 *** binutils to release 2.9.1 or newer. Another option is to modify
7462 *** your PATH or compiler configuration so that the native linker is
7463 *** used, and then restart.
7465 _LT_EOF
7466 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7469 else
7470 ld_shlibs=no
7474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7475 case `$LD -v 2>&1` in
7476 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7477 ld_shlibs=no
7478 cat <<_LT_EOF 1>&2
7480 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7481 *** reliably create shared libraries on SCO systems. Therefore, libtool
7482 *** is disabling shared libraries support. We urge you to upgrade GNU
7483 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7484 *** your PATH or compiler configuration so that the native linker is
7485 *** used, and then restart.
7487 _LT_EOF
7490 # For security reasons, it is highly recommended that you always
7491 # use absolute paths for naming shared libraries, and exclude the
7492 # DT_RUNPATH tag from executables and libraries. But doing so
7493 # requires that you compile everything twice, which is a pain.
7494 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7498 else
7499 ld_shlibs=no
7502 esac
7505 sunos4*)
7506 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7507 wlarc=
7508 hardcode_direct=yes
7509 hardcode_shlibpath_var=no
7513 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7515 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7516 else
7517 ld_shlibs=no
7520 esac
7522 if test "$ld_shlibs" = no; then
7523 runpath_var=
7524 hardcode_libdir_flag_spec=
7525 export_dynamic_flag_spec=
7526 whole_archive_flag_spec=
7528 else
7529 # PORTME fill in a description of your system's linker (not GNU ld)
7530 case $host_os in
7531 aix3*)
7532 allow_undefined_flag=unsupported
7533 always_export_symbols=yes
7534 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'
7535 # Note: this linker hardcodes the directories in LIBPATH if there
7536 # are no directories specified by -L.
7537 hardcode_minus_L=yes
7538 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7539 # Neither direct hardcoding nor static linking is supported with a
7540 # broken collect2.
7541 hardcode_direct=unsupported
7545 aix[4-9]*)
7546 if test "$host_cpu" = ia64; then
7547 # On IA64, the linker does run time linking by default, so we don't
7548 # have to do anything special.
7549 aix_use_runtimelinking=no
7550 exp_sym_flag='-Bexport'
7551 no_entry_flag=""
7552 else
7553 # If we're using GNU nm, then we don't want the "-C" option.
7554 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7555 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7556 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7557 else
7558 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'
7560 aix_use_runtimelinking=no
7562 # Test if we are trying to use run time linking or normal
7563 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7564 # need to do runtime linking.
7565 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7566 for ld_flag in $LDFLAGS; do
7567 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7568 aix_use_runtimelinking=yes
7569 break
7571 done
7573 esac
7575 exp_sym_flag='-bexport'
7576 no_entry_flag='-bnoentry'
7579 # When large executables or shared objects are built, AIX ld can
7580 # have problems creating the table of contents. If linking a library
7581 # or program results in "error TOC overflow" add -mminimal-toc to
7582 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7583 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7585 archive_cmds=''
7586 hardcode_direct=yes
7587 hardcode_direct_absolute=yes
7588 hardcode_libdir_separator=':'
7589 link_all_deplibs=yes
7590 file_list_spec='${wl}-f,'
7592 if test "$GCC" = yes; then
7593 case $host_os in aix4.[012]|aix4.[012].*)
7594 # We only want to do this on AIX 4.2 and lower, the check
7595 # below for broken collect2 doesn't work under 4.3+
7596 collect2name=`${CC} -print-prog-name=collect2`
7597 if test -f "$collect2name" &&
7598 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7599 then
7600 # We have reworked collect2
7602 else
7603 # We have old collect2
7604 hardcode_direct=unsupported
7605 # It fails to find uninstalled libraries when the uninstalled
7606 # path is not listed in the libpath. Setting hardcode_minus_L
7607 # to unsupported forces relinking
7608 hardcode_minus_L=yes
7609 hardcode_libdir_flag_spec='-L$libdir'
7610 hardcode_libdir_separator=
7613 esac
7614 shared_flag='-shared'
7615 if test "$aix_use_runtimelinking" = yes; then
7616 shared_flag="$shared_flag "'${wl}-G'
7618 else
7619 # not using gcc
7620 if test "$host_cpu" = ia64; then
7621 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7622 # chokes on -Wl,-G. The following line is correct:
7623 shared_flag='-G'
7624 else
7625 if test "$aix_use_runtimelinking" = yes; then
7626 shared_flag='${wl}-G'
7627 else
7628 shared_flag='${wl}-bM:SRE'
7633 export_dynamic_flag_spec='${wl}-bexpall'
7634 # It seems that -bexpall does not export symbols beginning with
7635 # underscore (_), so it is better to generate a list of symbols to export.
7636 always_export_symbols=yes
7637 if test "$aix_use_runtimelinking" = yes; then
7638 # Warning - without using the other runtime loading flags (-brtl),
7639 # -berok will link without error, but may produce a broken library.
7640 allow_undefined_flag='-berok'
7641 # Determine the default libpath from the value encoded in an
7642 # empty executable.
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7647 main ()
7651 return 0;
7653 _ACEOF
7654 if ac_fn_c_try_link "$LINENO"; then :
7656 lt_aix_libpath_sed='
7657 /Import File Strings/,/^$/ {
7658 /^0/ {
7659 s/^0 *\(.*\)$/\1/
7663 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7664 # Check for a 64-bit object if we didn't find anything.
7665 if test -z "$aix_libpath"; then
7666 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7669 rm -f core conftest.err conftest.$ac_objext \
7670 conftest$ac_exeext conftest.$ac_ext
7671 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7673 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7674 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7675 else
7676 if test "$host_cpu" = ia64; then
7677 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7678 allow_undefined_flag="-z nodefs"
7679 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"
7680 else
7681 # Determine the default libpath from the value encoded in an
7682 # empty executable.
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7687 main ()
7691 return 0;
7693 _ACEOF
7694 if ac_fn_c_try_link "$LINENO"; then :
7696 lt_aix_libpath_sed='
7697 /Import File Strings/,/^$/ {
7698 /^0/ {
7699 s/^0 *\(.*\)$/\1/
7703 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7704 # Check for a 64-bit object if we didn't find anything.
7705 if test -z "$aix_libpath"; then
7706 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7709 rm -f core conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7713 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7714 # Warning - without using the other run time loading flags,
7715 # -berok will link without error, but may produce a broken library.
7716 no_undefined_flag=' ${wl}-bernotok'
7717 allow_undefined_flag=' ${wl}-berok'
7718 # Exported symbols can be pulled into shared objects from archives
7719 whole_archive_flag_spec='$convenience'
7720 archive_cmds_need_lc=yes
7721 # This is similar to how AIX traditionally builds its shared libraries.
7722 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'
7727 amigaos*)
7728 case $host_cpu in
7729 powerpc)
7730 # see comment about AmigaOS4 .so support
7731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7732 archive_expsym_cmds=''
7734 m68k)
7735 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)'
7736 hardcode_libdir_flag_spec='-L$libdir'
7737 hardcode_minus_L=yes
7739 esac
7742 bsdi[45]*)
7743 export_dynamic_flag_spec=-rdynamic
7746 cygwin* | mingw* | pw32* | cegcc*)
7747 # When not using gcc, we currently assume that we are using
7748 # Microsoft Visual C++.
7749 # hardcode_libdir_flag_spec is actually meaningless, as there is
7750 # no search path for DLLs.
7751 hardcode_libdir_flag_spec=' '
7752 allow_undefined_flag=unsupported
7753 # Tell ltmain to make .lib files, not .a files.
7754 libext=lib
7755 # Tell ltmain to make .dll files, not .so files.
7756 shrext_cmds=".dll"
7757 # FIXME: Setting linknames here is a bad hack.
7758 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7759 # The linker will automatically build a .lib file if we build a DLL.
7760 old_archive_from_new_cmds='true'
7761 # FIXME: Should let the user specify the lib program.
7762 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7763 fix_srcfile_path='`cygpath -w "$srcfile"`'
7764 enable_shared_with_static_runtimes=yes
7767 darwin* | rhapsody*)
7770 archive_cmds_need_lc=no
7771 hardcode_direct=no
7772 hardcode_automatic=yes
7773 hardcode_shlibpath_var=unsupported
7774 whole_archive_flag_spec=''
7775 link_all_deplibs=yes
7776 allow_undefined_flag="$_lt_dar_allow_undefined"
7777 case $cc_basename in
7778 ifort*) _lt_dar_can_shared=yes ;;
7779 *) _lt_dar_can_shared=$GCC ;;
7780 esac
7781 if test "$_lt_dar_can_shared" = "yes"; then
7782 output_verbose_link_cmd=echo
7783 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7784 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7785 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}"
7786 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}"
7788 else
7789 ld_shlibs=no
7794 dgux*)
7795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7796 hardcode_libdir_flag_spec='-L$libdir'
7797 hardcode_shlibpath_var=no
7800 freebsd1*)
7801 ld_shlibs=no
7804 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7805 # support. Future versions do this automatically, but an explicit c++rt0.o
7806 # does not break anything, and helps significantly (at the cost of a little
7807 # extra space).
7808 freebsd2.2*)
7809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7810 hardcode_libdir_flag_spec='-R$libdir'
7811 hardcode_direct=yes
7812 hardcode_shlibpath_var=no
7815 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7816 freebsd2*)
7817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7818 hardcode_direct=yes
7819 hardcode_minus_L=yes
7820 hardcode_shlibpath_var=no
7823 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7824 freebsd* | dragonfly*)
7825 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7826 hardcode_libdir_flag_spec='-R$libdir'
7827 hardcode_direct=yes
7828 hardcode_shlibpath_var=no
7831 hpux9*)
7832 if test "$GCC" = yes; then
7833 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7834 else
7835 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'
7837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7838 hardcode_libdir_separator=:
7839 hardcode_direct=yes
7841 # hardcode_minus_L: Not really in the search PATH,
7842 # but as the default location of the library.
7843 hardcode_minus_L=yes
7844 export_dynamic_flag_spec='${wl}-E'
7847 hpux10*)
7848 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7849 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7850 else
7851 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7853 if test "$with_gnu_ld" = no; then
7854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7855 hardcode_libdir_flag_spec_ld='+b $libdir'
7856 hardcode_libdir_separator=:
7857 hardcode_direct=yes
7858 hardcode_direct_absolute=yes
7859 export_dynamic_flag_spec='${wl}-E'
7860 # hardcode_minus_L: Not really in the search PATH,
7861 # but as the default location of the library.
7862 hardcode_minus_L=yes
7866 hpux11*)
7867 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7868 case $host_cpu in
7869 hppa*64*)
7870 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7872 ia64*)
7873 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7876 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7878 esac
7879 else
7880 case $host_cpu in
7881 hppa*64*)
7882 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7884 ia64*)
7885 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7888 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7890 esac
7892 if test "$with_gnu_ld" = no; then
7893 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7894 hardcode_libdir_separator=:
7896 case $host_cpu in
7897 hppa*64*|ia64*)
7898 hardcode_direct=no
7899 hardcode_shlibpath_var=no
7902 hardcode_direct=yes
7903 hardcode_direct_absolute=yes
7904 export_dynamic_flag_spec='${wl}-E'
7906 # hardcode_minus_L: Not really in the search PATH,
7907 # but as the default location of the library.
7908 hardcode_minus_L=yes
7910 esac
7914 irix5* | irix6* | nonstopux*)
7915 if test "$GCC" = yes; then
7916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7917 # Try to use the -exported_symbol ld option, if it does not
7918 # work, assume that -exports_file does not work either and
7919 # implicitly export all symbols.
7920 save_LDFLAGS="$LDFLAGS"
7921 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h. */
7924 int foo(void) {}
7925 _ACEOF
7926 if ac_fn_c_try_link "$LINENO"; then :
7927 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
7930 rm -f core conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
7932 LDFLAGS="$save_LDFLAGS"
7933 else
7934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7935 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
7937 archive_cmds_need_lc='no'
7938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7939 hardcode_libdir_separator=:
7940 inherit_rpath=yes
7941 link_all_deplibs=yes
7944 netbsd*)
7945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7946 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7947 else
7948 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7950 hardcode_libdir_flag_spec='-R$libdir'
7951 hardcode_direct=yes
7952 hardcode_shlibpath_var=no
7955 newsos6)
7956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7957 hardcode_direct=yes
7958 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7959 hardcode_libdir_separator=:
7960 hardcode_shlibpath_var=no
7963 *nto* | *qnx*)
7966 openbsd*)
7967 if test -f /usr/libexec/ld.so; then
7968 hardcode_direct=yes
7969 hardcode_shlibpath_var=no
7970 hardcode_direct_absolute=yes
7971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7972 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7973 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7974 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7975 export_dynamic_flag_spec='${wl}-E'
7976 else
7977 case $host_os in
7978 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7979 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7980 hardcode_libdir_flag_spec='-R$libdir'
7983 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7984 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7986 esac
7988 else
7989 ld_shlibs=no
7993 os2*)
7994 hardcode_libdir_flag_spec='-L$libdir'
7995 hardcode_minus_L=yes
7996 allow_undefined_flag=unsupported
7997 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'
7998 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8001 osf3*)
8002 if test "$GCC" = yes; then
8003 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8004 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8005 else
8006 allow_undefined_flag=' -expect_unresolved \*'
8007 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8009 archive_cmds_need_lc='no'
8010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8011 hardcode_libdir_separator=:
8014 osf4* | osf5*) # as osf3* with the addition of -msym flag
8015 if test "$GCC" = yes; then
8016 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8017 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8019 else
8020 allow_undefined_flag=' -expect_unresolved \*'
8021 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8022 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~
8023 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8025 # Both c and cxx compiler support -rpath directly
8026 hardcode_libdir_flag_spec='-rpath $libdir'
8028 archive_cmds_need_lc='no'
8029 hardcode_libdir_separator=:
8032 solaris*)
8033 no_undefined_flag=' -z defs'
8034 if test "$GCC" = yes; then
8035 wlarc='${wl}'
8036 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8037 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8038 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8039 else
8040 case `$CC -V 2>&1` in
8041 *"Compilers 5.0"*)
8042 wlarc=''
8043 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8044 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8045 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8048 wlarc='${wl}'
8049 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8050 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8051 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8053 esac
8055 hardcode_libdir_flag_spec='-R$libdir'
8056 hardcode_shlibpath_var=no
8057 case $host_os in
8058 solaris2.[0-5] | solaris2.[0-5].*) ;;
8060 # The compiler driver will combine and reorder linker options,
8061 # but understands `-z linker_flag'. GCC discards it without `$wl',
8062 # but is careful enough not to reorder.
8063 # Supported since Solaris 2.6 (maybe 2.5.1?)
8064 if test "$GCC" = yes; then
8065 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8066 else
8067 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8070 esac
8071 link_all_deplibs=yes
8074 sunos4*)
8075 if test "x$host_vendor" = xsequent; then
8076 # Use $CC to link under sequent, because it throws in some extra .o
8077 # files that make .init and .fini sections work.
8078 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8079 else
8080 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8082 hardcode_libdir_flag_spec='-L$libdir'
8083 hardcode_direct=yes
8084 hardcode_minus_L=yes
8085 hardcode_shlibpath_var=no
8088 sysv4)
8089 case $host_vendor in
8090 sni)
8091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8092 hardcode_direct=yes # is this really true???
8094 siemens)
8095 ## LD is ld it makes a PLAMLIB
8096 ## CC just makes a GrossModule.
8097 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8098 reload_cmds='$CC -r -o $output$reload_objs'
8099 hardcode_direct=no
8101 motorola)
8102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8103 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8105 esac
8106 runpath_var='LD_RUN_PATH'
8107 hardcode_shlibpath_var=no
8110 sysv4.3*)
8111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8112 hardcode_shlibpath_var=no
8113 export_dynamic_flag_spec='-Bexport'
8116 sysv4*MP*)
8117 if test -d /usr/nec; then
8118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8119 hardcode_shlibpath_var=no
8120 runpath_var=LD_RUN_PATH
8121 hardcode_runpath_var=yes
8122 ld_shlibs=yes
8126 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8127 no_undefined_flag='${wl}-z,text'
8128 archive_cmds_need_lc=no
8129 hardcode_shlibpath_var=no
8130 runpath_var='LD_RUN_PATH'
8132 if test "$GCC" = yes; then
8133 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8134 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8135 else
8136 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8137 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8141 sysv5* | sco3.2v5* | sco5v6*)
8142 # Note: We can NOT use -z defs as we might desire, because we do not
8143 # link with -lc, and that would cause any symbols used from libc to
8144 # always be unresolved, which means just about no library would
8145 # ever link correctly. If we're not using GNU ld we use -z text
8146 # though, which does catch some bad symbols but isn't as heavy-handed
8147 # as -z defs.
8148 no_undefined_flag='${wl}-z,text'
8149 allow_undefined_flag='${wl}-z,nodefs'
8150 archive_cmds_need_lc=no
8151 hardcode_shlibpath_var=no
8152 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8153 hardcode_libdir_separator=':'
8154 link_all_deplibs=yes
8155 export_dynamic_flag_spec='${wl}-Bexport'
8156 runpath_var='LD_RUN_PATH'
8158 if test "$GCC" = yes; then
8159 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8160 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8161 else
8162 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8163 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8167 uts4*)
8168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8169 hardcode_libdir_flag_spec='-L$libdir'
8170 hardcode_shlibpath_var=no
8174 ld_shlibs=no
8176 esac
8178 if test x$host_vendor = xsni; then
8179 case $host in
8180 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8181 export_dynamic_flag_spec='${wl}-Blargedynsym'
8183 esac
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8188 $as_echo "$ld_shlibs" >&6; }
8189 test "$ld_shlibs" = no && can_build_shared=no
8191 with_gnu_ld=$with_gnu_ld
8208 # Do we need to explicitly link libc?
8210 case "x$archive_cmds_need_lc" in
8211 x|xyes)
8212 # Assume -lc should be added
8213 archive_cmds_need_lc=yes
8215 if test "$enable_shared" = yes && test "$GCC" = yes; then
8216 case $archive_cmds in
8217 *'~'*)
8218 # FIXME: we may have to deal with multi-command sequences.
8220 '$CC '*)
8221 # Test whether the compiler implicitly links with -lc since on some
8222 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8223 # to ld, don't add -lc before -lgcc.
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8225 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8226 $RM conftest*
8227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8230 (eval $ac_compile) 2>&5
8231 ac_status=$?
8232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8233 test $ac_status = 0; } 2>conftest.err; then
8234 soname=conftest
8235 lib=conftest
8236 libobjs=conftest.$ac_objext
8237 deplibs=
8238 wl=$lt_prog_compiler_wl
8239 pic_flag=$lt_prog_compiler_pic
8240 compiler_flags=-v
8241 linker_flags=-v
8242 verstring=
8243 output_objdir=.
8244 libname=conftest
8245 lt_save_allow_undefined_flag=$allow_undefined_flag
8246 allow_undefined_flag=
8247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8248 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8249 ac_status=$?
8250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8251 test $ac_status = 0; }
8252 then
8253 archive_cmds_need_lc=no
8254 else
8255 archive_cmds_need_lc=yes
8257 allow_undefined_flag=$lt_save_allow_undefined_flag
8258 else
8259 cat conftest.err 1>&5
8261 $RM conftest*
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8263 $as_echo "$archive_cmds_need_lc" >&6; }
8265 esac
8268 esac
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8427 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8429 if test "$GCC" = yes; then
8430 case $host_os in
8431 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8432 *) lt_awk_arg="/^libraries:/" ;;
8433 esac
8434 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8435 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8436 # if the path contains ";" then we assume it to be the separator
8437 # otherwise default to the standard path separator (i.e. ":") - it is
8438 # assumed that no part of a normal pathname contains ";" but that should
8439 # okay in the real world where ";" in dirpaths is itself problematic.
8440 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8441 else
8442 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8444 # Ok, now we have the path, separated by spaces, we can step through it
8445 # and add multilib dir if necessary.
8446 lt_tmp_lt_search_path_spec=
8447 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8448 for lt_sys_path in $lt_search_path_spec; do
8449 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8450 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8451 else
8452 test -d "$lt_sys_path" && \
8453 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8455 done
8456 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8457 BEGIN {RS=" "; FS="/|\n";} {
8458 lt_foo="";
8459 lt_count=0;
8460 for (lt_i = NF; lt_i > 0; lt_i--) {
8461 if ($lt_i != "" && $lt_i != ".") {
8462 if ($lt_i == "..") {
8463 lt_count++;
8464 } else {
8465 if (lt_count == 0) {
8466 lt_foo="/" $lt_i lt_foo;
8467 } else {
8468 lt_count--;
8473 if (lt_foo != "") { lt_freq[lt_foo]++; }
8474 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8476 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8477 else
8478 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8480 library_names_spec=
8481 libname_spec='lib$name'
8482 soname_spec=
8483 shrext_cmds=".so"
8484 postinstall_cmds=
8485 postuninstall_cmds=
8486 finish_cmds=
8487 finish_eval=
8488 shlibpath_var=
8489 shlibpath_overrides_runpath=unknown
8490 version_type=none
8491 dynamic_linker="$host_os ld.so"
8492 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8493 need_lib_prefix=unknown
8494 hardcode_into_libs=no
8496 # when you set need_version to no, make sure it does not cause -set_version
8497 # flags to be left without arguments
8498 need_version=unknown
8500 case $host_os in
8501 aix3*)
8502 version_type=linux
8503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8504 shlibpath_var=LIBPATH
8506 # AIX 3 has no versioning support, so we append a major version to the name.
8507 soname_spec='${libname}${release}${shared_ext}$major'
8510 aix[4-9]*)
8511 version_type=linux
8512 need_lib_prefix=no
8513 need_version=no
8514 hardcode_into_libs=yes
8515 if test "$host_cpu" = ia64; then
8516 # AIX 5 supports IA64
8517 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8518 shlibpath_var=LD_LIBRARY_PATH
8519 else
8520 # With GCC up to 2.95.x, collect2 would create an import file
8521 # for dependence libraries. The import file would start with
8522 # the line `#! .'. This would cause the generated library to
8523 # depend on `.', always an invalid library. This was fixed in
8524 # development snapshots of GCC prior to 3.0.
8525 case $host_os in
8526 aix4 | aix4.[01] | aix4.[01].*)
8527 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8528 echo ' yes '
8529 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8531 else
8532 can_build_shared=no
8535 esac
8536 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8537 # soname into executable. Probably we can add versioning support to
8538 # collect2, so additional links can be useful in future.
8539 if test "$aix_use_runtimelinking" = yes; then
8540 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8541 # instead of lib<name>.a to let people know that these are not
8542 # typical AIX shared libraries.
8543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8544 else
8545 # We preserve .a as extension for shared libraries through AIX4.2
8546 # and later when we are not doing run time linking.
8547 library_names_spec='${libname}${release}.a $libname.a'
8548 soname_spec='${libname}${release}${shared_ext}$major'
8550 shlibpath_var=LIBPATH
8554 amigaos*)
8555 case $host_cpu in
8556 powerpc)
8557 # Since July 2007 AmigaOS4 officially supports .so libraries.
8558 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8561 m68k)
8562 library_names_spec='$libname.ixlibrary $libname.a'
8563 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8564 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
8566 esac
8569 beos*)
8570 library_names_spec='${libname}${shared_ext}'
8571 dynamic_linker="$host_os ld.so"
8572 shlibpath_var=LIBRARY_PATH
8575 bsdi[45]*)
8576 version_type=linux
8577 need_version=no
8578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8579 soname_spec='${libname}${release}${shared_ext}$major'
8580 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8581 shlibpath_var=LD_LIBRARY_PATH
8582 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8583 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8584 # the default ld.so.conf also contains /usr/contrib/lib and
8585 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8586 # libtool to hard-code these into programs
8589 cygwin* | mingw* | pw32* | cegcc*)
8590 version_type=windows
8591 shrext_cmds=".dll"
8592 need_version=no
8593 need_lib_prefix=no
8595 case $GCC,$host_os in
8596 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8597 library_names_spec='$libname.dll.a'
8598 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8599 postinstall_cmds='base_file=`basename \${file}`~
8600 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8601 dldir=$destdir/`dirname \$dlpath`~
8602 test -d \$dldir || mkdir -p \$dldir~
8603 $install_prog $dir/$dlname \$dldir/$dlname~
8604 chmod a+x \$dldir/$dlname~
8605 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8606 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8608 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8609 dlpath=$dir/\$dldll~
8610 $RM \$dlpath'
8611 shlibpath_overrides_runpath=yes
8613 case $host_os in
8614 cygwin*)
8615 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8616 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8617 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8619 mingw* | cegcc*)
8620 # MinGW DLLs use traditional 'lib' prefix
8621 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8622 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8623 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8624 # It is most probably a Windows format PATH printed by
8625 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8626 # path with ; separators, and with drive letters. We can handle the
8627 # drive letters (cygwin fileutils understands them), so leave them,
8628 # especially as we might pass files found there to a mingw objdump,
8629 # which wouldn't understand a cygwinified path. Ahh.
8630 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8631 else
8632 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8635 pw32*)
8636 # pw32 DLLs use 'pw' prefix rather than 'lib'
8637 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8639 esac
8643 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8645 esac
8646 dynamic_linker='Win32 ld.exe'
8647 # FIXME: first we should search . and the directory the executable is in
8648 shlibpath_var=PATH
8651 darwin* | rhapsody*)
8652 dynamic_linker="$host_os dyld"
8653 version_type=darwin
8654 need_lib_prefix=no
8655 need_version=no
8656 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8657 soname_spec='${libname}${release}${major}$shared_ext'
8658 shlibpath_overrides_runpath=yes
8659 shlibpath_var=DYLD_LIBRARY_PATH
8660 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8662 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8663 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8666 dgux*)
8667 version_type=linux
8668 need_lib_prefix=no
8669 need_version=no
8670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8671 soname_spec='${libname}${release}${shared_ext}$major'
8672 shlibpath_var=LD_LIBRARY_PATH
8675 freebsd1*)
8676 dynamic_linker=no
8679 freebsd* | dragonfly*)
8680 # DragonFly does not have aout. When/if they implement a new
8681 # versioning mechanism, adjust this.
8682 if test -x /usr/bin/objformat; then
8683 objformat=`/usr/bin/objformat`
8684 else
8685 case $host_os in
8686 freebsd[123]*) objformat=aout ;;
8687 *) objformat=elf ;;
8688 esac
8690 # Handle Gentoo/FreeBSD as it was Linux
8691 case $host_vendor in
8692 gentoo)
8693 version_type=linux ;;
8695 version_type=freebsd-$objformat ;;
8696 esac
8698 case $version_type in
8699 freebsd-elf*)
8700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8701 need_version=no
8702 need_lib_prefix=no
8704 freebsd-*)
8705 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8706 need_version=yes
8708 linux)
8709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8710 soname_spec='${libname}${release}${shared_ext}$major'
8711 need_lib_prefix=no
8712 need_version=no
8714 esac
8715 shlibpath_var=LD_LIBRARY_PATH
8716 case $host_os in
8717 freebsd2*)
8718 shlibpath_overrides_runpath=yes
8720 freebsd3.[01]* | freebsdelf3.[01]*)
8721 shlibpath_overrides_runpath=yes
8722 hardcode_into_libs=yes
8724 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8725 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8726 shlibpath_overrides_runpath=no
8727 hardcode_into_libs=yes
8729 *) # from 4.6 on, and DragonFly
8730 shlibpath_overrides_runpath=yes
8731 hardcode_into_libs=yes
8733 esac
8736 gnu*)
8737 version_type=linux
8738 need_lib_prefix=no
8739 need_version=no
8740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8741 soname_spec='${libname}${release}${shared_ext}$major'
8742 shlibpath_var=LD_LIBRARY_PATH
8743 hardcode_into_libs=yes
8746 hpux9* | hpux10* | hpux11*)
8747 # Give a soname corresponding to the major version so that dld.sl refuses to
8748 # link against other versions.
8749 version_type=sunos
8750 need_lib_prefix=no
8751 need_version=no
8752 case $host_cpu in
8753 ia64*)
8754 shrext_cmds='.so'
8755 hardcode_into_libs=yes
8756 dynamic_linker="$host_os dld.so"
8757 shlibpath_var=LD_LIBRARY_PATH
8758 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8760 soname_spec='${libname}${release}${shared_ext}$major'
8761 if test "X$HPUX_IA64_MODE" = X32; then
8762 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8763 else
8764 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8768 hppa*64*)
8769 shrext_cmds='.sl'
8770 hardcode_into_libs=yes
8771 dynamic_linker="$host_os dld.sl"
8772 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8773 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8775 soname_spec='${libname}${release}${shared_ext}$major'
8776 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8777 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8780 shrext_cmds='.sl'
8781 dynamic_linker="$host_os dld.sl"
8782 shlibpath_var=SHLIB_PATH
8783 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8785 soname_spec='${libname}${release}${shared_ext}$major'
8787 esac
8788 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8789 postinstall_cmds='chmod 555 $lib'
8792 interix[3-9]*)
8793 version_type=linux
8794 need_lib_prefix=no
8795 need_version=no
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8797 soname_spec='${libname}${release}${shared_ext}$major'
8798 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8799 shlibpath_var=LD_LIBRARY_PATH
8800 shlibpath_overrides_runpath=no
8801 hardcode_into_libs=yes
8804 irix5* | irix6* | nonstopux*)
8805 case $host_os in
8806 nonstopux*) version_type=nonstopux ;;
8808 if test "$lt_cv_prog_gnu_ld" = yes; then
8809 version_type=linux
8810 else
8811 version_type=irix
8812 fi ;;
8813 esac
8814 need_lib_prefix=no
8815 need_version=no
8816 soname_spec='${libname}${release}${shared_ext}$major'
8817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8818 case $host_os in
8819 irix5* | nonstopux*)
8820 libsuff= shlibsuff=
8823 case $LD in # libtool.m4 will add one of these switches to LD
8824 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8825 libsuff= shlibsuff= libmagic=32-bit;;
8826 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8827 libsuff=32 shlibsuff=N32 libmagic=N32;;
8828 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8829 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8830 *) libsuff= shlibsuff= libmagic=never-match;;
8831 esac
8833 esac
8834 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8835 shlibpath_overrides_runpath=no
8836 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8837 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8838 hardcode_into_libs=yes
8841 # No shared lib support for Linux oldld, aout, or coff.
8842 linux*oldld* | linux*aout* | linux*coff*)
8843 dynamic_linker=no
8846 # This must be Linux ELF.
8847 linux* | k*bsd*-gnu)
8848 version_type=linux
8849 need_lib_prefix=no
8850 need_version=no
8851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8852 soname_spec='${libname}${release}${shared_ext}$major'
8853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8854 shlibpath_var=LD_LIBRARY_PATH
8855 shlibpath_overrides_runpath=no
8856 # Some binutils ld are patched to set DT_RUNPATH
8857 save_LDFLAGS=$LDFLAGS
8858 save_libdir=$libdir
8859 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8860 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8865 main ()
8869 return 0;
8871 _ACEOF
8872 if ac_fn_c_try_link "$LINENO"; then :
8873 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8874 shlibpath_overrides_runpath=yes
8877 rm -f core conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8879 LDFLAGS=$save_LDFLAGS
8880 libdir=$save_libdir
8882 # This implies no fast_install, which is unacceptable.
8883 # Some rework will be needed to allow for fast_install
8884 # before this can be enabled.
8885 hardcode_into_libs=yes
8887 # Append ld.so.conf contents to the search path
8888 if test -f /etc/ld.so.conf; then
8889 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;/^$/d' | tr '\n' ' '`
8890 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8893 # We used to test for /lib/ld.so.1 and disable shared libraries on
8894 # powerpc, because MkLinux only supported shared libraries with the
8895 # GNU dynamic linker. Since this was broken with cross compilers,
8896 # most powerpc-linux boxes support dynamic linking these days and
8897 # people can always --disable-shared, the test was removed, and we
8898 # assume the GNU/Linux dynamic linker is in use.
8899 dynamic_linker='GNU/Linux ld.so'
8902 netbsd*)
8903 version_type=sunos
8904 need_lib_prefix=no
8905 need_version=no
8906 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8908 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8909 dynamic_linker='NetBSD (a.out) ld.so'
8910 else
8911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 dynamic_linker='NetBSD ld.elf_so'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=yes
8917 hardcode_into_libs=yes
8920 newsos6)
8921 version_type=linux
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 shlibpath_overrides_runpath=yes
8927 *nto* | *qnx*)
8928 version_type=qnx
8929 need_lib_prefix=no
8930 need_version=no
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 shlibpath_var=LD_LIBRARY_PATH
8934 shlibpath_overrides_runpath=no
8935 hardcode_into_libs=yes
8936 dynamic_linker='ldqnx.so'
8939 openbsd*)
8940 version_type=sunos
8941 sys_lib_dlsearch_path_spec="/usr/lib"
8942 need_lib_prefix=no
8943 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8944 case $host_os in
8945 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8946 *) need_version=no ;;
8947 esac
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8950 shlibpath_var=LD_LIBRARY_PATH
8951 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8952 case $host_os in
8953 openbsd2.[89] | openbsd2.[89].*)
8954 shlibpath_overrides_runpath=no
8957 shlibpath_overrides_runpath=yes
8959 esac
8960 else
8961 shlibpath_overrides_runpath=yes
8965 os2*)
8966 libname_spec='$name'
8967 shrext_cmds=".dll"
8968 need_lib_prefix=no
8969 library_names_spec='$libname${shared_ext} $libname.a'
8970 dynamic_linker='OS/2 ld.exe'
8971 shlibpath_var=LIBPATH
8974 osf3* | osf4* | osf5*)
8975 version_type=osf
8976 need_lib_prefix=no
8977 need_version=no
8978 soname_spec='${libname}${release}${shared_ext}$major'
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8982 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8985 rdos*)
8986 dynamic_linker=no
8989 solaris*)
8990 version_type=linux
8991 need_lib_prefix=no
8992 need_version=no
8993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8994 soname_spec='${libname}${release}${shared_ext}$major'
8995 shlibpath_var=LD_LIBRARY_PATH
8996 shlibpath_overrides_runpath=yes
8997 hardcode_into_libs=yes
8998 # ldd complains unless libraries are executable
8999 postinstall_cmds='chmod +x $lib'
9002 sunos4*)
9003 version_type=sunos
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9005 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9006 shlibpath_var=LD_LIBRARY_PATH
9007 shlibpath_overrides_runpath=yes
9008 if test "$with_gnu_ld" = yes; then
9009 need_lib_prefix=no
9011 need_version=yes
9014 sysv4 | sysv4.3*)
9015 version_type=linux
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 soname_spec='${libname}${release}${shared_ext}$major'
9018 shlibpath_var=LD_LIBRARY_PATH
9019 case $host_vendor in
9020 sni)
9021 shlibpath_overrides_runpath=no
9022 need_lib_prefix=no
9023 runpath_var=LD_RUN_PATH
9025 siemens)
9026 need_lib_prefix=no
9028 motorola)
9029 need_lib_prefix=no
9030 need_version=no
9031 shlibpath_overrides_runpath=no
9032 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9034 esac
9037 sysv4*MP*)
9038 if test -d /usr/nec ;then
9039 version_type=linux
9040 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9041 soname_spec='$libname${shared_ext}.$major'
9042 shlibpath_var=LD_LIBRARY_PATH
9046 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9047 version_type=freebsd-elf
9048 need_lib_prefix=no
9049 need_version=no
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9051 soname_spec='${libname}${release}${shared_ext}$major'
9052 shlibpath_var=LD_LIBRARY_PATH
9053 shlibpath_overrides_runpath=yes
9054 hardcode_into_libs=yes
9055 if test "$with_gnu_ld" = yes; then
9056 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9057 else
9058 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9059 case $host_os in
9060 sco3.2v5*)
9061 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9063 esac
9065 sys_lib_dlsearch_path_spec='/usr/lib'
9068 tpf*)
9069 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9070 version_type=linux
9071 need_lib_prefix=no
9072 need_version=no
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=no
9076 hardcode_into_libs=yes
9079 uts4*)
9080 version_type=linux
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
9087 dynamic_linker=no
9089 esac
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9091 $as_echo "$dynamic_linker" >&6; }
9092 test "$dynamic_linker" = no && can_build_shared=no
9094 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9095 if test "$GCC" = yes; then
9096 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9099 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9100 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9102 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9103 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9193 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9194 hardcode_action=
9195 if test -n "$hardcode_libdir_flag_spec" ||
9196 test -n "$runpath_var" ||
9197 test "X$hardcode_automatic" = "Xyes" ; then
9199 # We can hardcode non-existent directories.
9200 if test "$hardcode_direct" != no &&
9201 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9202 # have to relink, otherwise we might link with an installed library
9203 # when we should be linking with a yet-to-be-installed one
9204 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9205 test "$hardcode_minus_L" != no; then
9206 # Linking always hardcodes the temporary library directory.
9207 hardcode_action=relink
9208 else
9209 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9210 hardcode_action=immediate
9212 else
9213 # We cannot hardcode anything, or else we can only hardcode existing
9214 # directories.
9215 hardcode_action=unsupported
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9218 $as_echo "$hardcode_action" >&6; }
9220 if test "$hardcode_action" = relink ||
9221 test "$inherit_rpath" = yes; then
9222 # Fast installation is not supported
9223 enable_fast_install=no
9224 elif test "$shlibpath_overrides_runpath" = yes ||
9225 test "$enable_shared" = no; then
9226 # Fast installation is not necessary
9227 enable_fast_install=needless
9235 if test "x$enable_dlopen" != xyes; then
9236 enable_dlopen=unknown
9237 enable_dlopen_self=unknown
9238 enable_dlopen_self_static=unknown
9239 else
9240 lt_cv_dlopen=no
9241 lt_cv_dlopen_libs=
9243 case $host_os in
9244 beos*)
9245 lt_cv_dlopen="load_add_on"
9246 lt_cv_dlopen_libs=
9247 lt_cv_dlopen_self=yes
9250 mingw* | pw32* | cegcc*)
9251 lt_cv_dlopen="LoadLibrary"
9252 lt_cv_dlopen_libs=
9255 cygwin*)
9256 lt_cv_dlopen="dlopen"
9257 lt_cv_dlopen_libs=
9260 darwin*)
9261 # if libdl is installed we need to link against it
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9263 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9264 if ${ac_cv_lib_dl_dlopen+:} false; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 ac_check_lib_save_LIBS=$LIBS
9268 LIBS="-ldl $LIBS"
9269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h. */
9272 /* Override any GCC internal prototype to avoid an error.
9273 Use char because int might match the return type of a GCC
9274 builtin and then its argument prototype would still apply. */
9275 #ifdef __cplusplus
9276 extern "C"
9277 #endif
9278 char dlopen ();
9280 main ()
9282 return dlopen ();
9284 return 0;
9286 _ACEOF
9287 if ac_fn_c_try_link "$LINENO"; then :
9288 ac_cv_lib_dl_dlopen=yes
9289 else
9290 ac_cv_lib_dl_dlopen=no
9292 rm -f core conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9294 LIBS=$ac_check_lib_save_LIBS
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9297 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9298 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9299 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9300 else
9302 lt_cv_dlopen="dyld"
9303 lt_cv_dlopen_libs=
9304 lt_cv_dlopen_self=yes
9311 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9312 if test "x$ac_cv_func_shl_load" = xyes; then :
9313 lt_cv_dlopen="shl_load"
9314 else
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9316 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9317 if ${ac_cv_lib_dld_shl_load+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 ac_check_lib_save_LIBS=$LIBS
9321 LIBS="-ldld $LIBS"
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9325 /* Override any GCC internal prototype to avoid an error.
9326 Use char because int might match the return type of a GCC
9327 builtin and then its argument prototype would still apply. */
9328 #ifdef __cplusplus
9329 extern "C"
9330 #endif
9331 char shl_load ();
9333 main ()
9335 return shl_load ();
9337 return 0;
9339 _ACEOF
9340 if ac_fn_c_try_link "$LINENO"; then :
9341 ac_cv_lib_dld_shl_load=yes
9342 else
9343 ac_cv_lib_dld_shl_load=no
9345 rm -f core conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
9347 LIBS=$ac_check_lib_save_LIBS
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9350 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9351 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9352 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9353 else
9354 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9355 if test "x$ac_cv_func_dlopen" = xyes; then :
9356 lt_cv_dlopen="dlopen"
9357 else
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9359 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9360 if ${ac_cv_lib_dl_dlopen+:} false; then :
9361 $as_echo_n "(cached) " >&6
9362 else
9363 ac_check_lib_save_LIBS=$LIBS
9364 LIBS="-ldl $LIBS"
9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9366 /* end confdefs.h. */
9368 /* Override any GCC internal prototype to avoid an error.
9369 Use char because int might match the return type of a GCC
9370 builtin and then its argument prototype would still apply. */
9371 #ifdef __cplusplus
9372 extern "C"
9373 #endif
9374 char dlopen ();
9376 main ()
9378 return dlopen ();
9380 return 0;
9382 _ACEOF
9383 if ac_fn_c_try_link "$LINENO"; then :
9384 ac_cv_lib_dl_dlopen=yes
9385 else
9386 ac_cv_lib_dl_dlopen=no
9388 rm -f core conftest.err conftest.$ac_objext \
9389 conftest$ac_exeext conftest.$ac_ext
9390 LIBS=$ac_check_lib_save_LIBS
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9393 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9394 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9395 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9396 else
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9398 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9399 if ${ac_cv_lib_svld_dlopen+:} false; then :
9400 $as_echo_n "(cached) " >&6
9401 else
9402 ac_check_lib_save_LIBS=$LIBS
9403 LIBS="-lsvld $LIBS"
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9407 /* Override any GCC internal prototype to avoid an error.
9408 Use char because int might match the return type of a GCC
9409 builtin and then its argument prototype would still apply. */
9410 #ifdef __cplusplus
9411 extern "C"
9412 #endif
9413 char dlopen ();
9415 main ()
9417 return dlopen ();
9419 return 0;
9421 _ACEOF
9422 if ac_fn_c_try_link "$LINENO"; then :
9423 ac_cv_lib_svld_dlopen=yes
9424 else
9425 ac_cv_lib_svld_dlopen=no
9427 rm -f core conftest.err conftest.$ac_objext \
9428 conftest$ac_exeext conftest.$ac_ext
9429 LIBS=$ac_check_lib_save_LIBS
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9432 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9433 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9434 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9435 else
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9437 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9438 if ${ac_cv_lib_dld_dld_link+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 ac_check_lib_save_LIBS=$LIBS
9442 LIBS="-ldld $LIBS"
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9446 /* Override any GCC internal prototype to avoid an error.
9447 Use char because int might match the return type of a GCC
9448 builtin and then its argument prototype would still apply. */
9449 #ifdef __cplusplus
9450 extern "C"
9451 #endif
9452 char dld_link ();
9454 main ()
9456 return dld_link ();
9458 return 0;
9460 _ACEOF
9461 if ac_fn_c_try_link "$LINENO"; then :
9462 ac_cv_lib_dld_dld_link=yes
9463 else
9464 ac_cv_lib_dld_dld_link=no
9466 rm -f core conftest.err conftest.$ac_objext \
9467 conftest$ac_exeext conftest.$ac_ext
9468 LIBS=$ac_check_lib_save_LIBS
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9471 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9472 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9473 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9492 esac
9494 if test "x$lt_cv_dlopen" != xno; then
9495 enable_dlopen=yes
9496 else
9497 enable_dlopen=no
9500 case $lt_cv_dlopen in
9501 dlopen)
9502 save_CPPFLAGS="$CPPFLAGS"
9503 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9505 save_LDFLAGS="$LDFLAGS"
9506 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9508 save_LIBS="$LIBS"
9509 LIBS="$lt_cv_dlopen_libs $LIBS"
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9512 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9513 if ${lt_cv_dlopen_self+:} false; then :
9514 $as_echo_n "(cached) " >&6
9515 else
9516 if test "$cross_compiling" = yes; then :
9517 lt_cv_dlopen_self=cross
9518 else
9519 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9520 lt_status=$lt_dlunknown
9521 cat > conftest.$ac_ext <<_LT_EOF
9522 #line 9522 "configure"
9523 #include "confdefs.h"
9525 #if HAVE_DLFCN_H
9526 #include <dlfcn.h>
9527 #endif
9529 #include <stdio.h>
9531 #ifdef RTLD_GLOBAL
9532 # define LT_DLGLOBAL RTLD_GLOBAL
9533 #else
9534 # ifdef DL_GLOBAL
9535 # define LT_DLGLOBAL DL_GLOBAL
9536 # else
9537 # define LT_DLGLOBAL 0
9538 # endif
9539 #endif
9541 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9542 find out it does not work in some platform. */
9543 #ifndef LT_DLLAZY_OR_NOW
9544 # ifdef RTLD_LAZY
9545 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9546 # else
9547 # ifdef DL_LAZY
9548 # define LT_DLLAZY_OR_NOW DL_LAZY
9549 # else
9550 # ifdef RTLD_NOW
9551 # define LT_DLLAZY_OR_NOW RTLD_NOW
9552 # else
9553 # ifdef DL_NOW
9554 # define LT_DLLAZY_OR_NOW DL_NOW
9555 # else
9556 # define LT_DLLAZY_OR_NOW 0
9557 # endif
9558 # endif
9559 # endif
9560 # endif
9561 #endif
9563 void fnord() { int i=42;}
9564 int main ()
9566 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9567 int status = $lt_dlunknown;
9569 if (self)
9571 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9572 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9573 /* dlclose (self); */
9575 else
9576 puts (dlerror ());
9578 return status;
9580 _LT_EOF
9581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9582 (eval $ac_link) 2>&5
9583 ac_status=$?
9584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9585 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9586 (./conftest; exit; ) >&5 2>/dev/null
9587 lt_status=$?
9588 case x$lt_status in
9589 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9590 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9591 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9592 esac
9593 else :
9594 # compilation failed
9595 lt_cv_dlopen_self=no
9598 rm -fr conftest*
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9603 $as_echo "$lt_cv_dlopen_self" >&6; }
9605 if test "x$lt_cv_dlopen_self" = xyes; then
9606 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9608 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9609 if ${lt_cv_dlopen_self_static+:} false; then :
9610 $as_echo_n "(cached) " >&6
9611 else
9612 if test "$cross_compiling" = yes; then :
9613 lt_cv_dlopen_self_static=cross
9614 else
9615 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9616 lt_status=$lt_dlunknown
9617 cat > conftest.$ac_ext <<_LT_EOF
9618 #line 9618 "configure"
9619 #include "confdefs.h"
9621 #if HAVE_DLFCN_H
9622 #include <dlfcn.h>
9623 #endif
9625 #include <stdio.h>
9627 #ifdef RTLD_GLOBAL
9628 # define LT_DLGLOBAL RTLD_GLOBAL
9629 #else
9630 # ifdef DL_GLOBAL
9631 # define LT_DLGLOBAL DL_GLOBAL
9632 # else
9633 # define LT_DLGLOBAL 0
9634 # endif
9635 #endif
9637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9638 find out it does not work in some platform. */
9639 #ifndef LT_DLLAZY_OR_NOW
9640 # ifdef RTLD_LAZY
9641 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9642 # else
9643 # ifdef DL_LAZY
9644 # define LT_DLLAZY_OR_NOW DL_LAZY
9645 # else
9646 # ifdef RTLD_NOW
9647 # define LT_DLLAZY_OR_NOW RTLD_NOW
9648 # else
9649 # ifdef DL_NOW
9650 # define LT_DLLAZY_OR_NOW DL_NOW
9651 # else
9652 # define LT_DLLAZY_OR_NOW 0
9653 # endif
9654 # endif
9655 # endif
9656 # endif
9657 #endif
9659 void fnord() { int i=42;}
9660 int main ()
9662 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9663 int status = $lt_dlunknown;
9665 if (self)
9667 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9668 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9669 /* dlclose (self); */
9671 else
9672 puts (dlerror ());
9674 return status;
9676 _LT_EOF
9677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9678 (eval $ac_link) 2>&5
9679 ac_status=$?
9680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9681 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9682 (./conftest; exit; ) >&5 2>/dev/null
9683 lt_status=$?
9684 case x$lt_status in
9685 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9686 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9687 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9688 esac
9689 else :
9690 # compilation failed
9691 lt_cv_dlopen_self_static=no
9694 rm -fr conftest*
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9699 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9702 CPPFLAGS="$save_CPPFLAGS"
9703 LDFLAGS="$save_LDFLAGS"
9704 LIBS="$save_LIBS"
9706 esac
9708 case $lt_cv_dlopen_self in
9709 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9710 *) enable_dlopen_self=unknown ;;
9711 esac
9713 case $lt_cv_dlopen_self_static in
9714 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9715 *) enable_dlopen_self_static=unknown ;;
9716 esac
9735 striplib=
9736 old_striplib=
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9738 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9739 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9740 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9741 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9743 $as_echo "yes" >&6; }
9744 else
9745 # FIXME - insert some real tests, host_os isn't really good enough
9746 case $host_os in
9747 darwin*)
9748 if test -n "$STRIP" ; then
9749 striplib="$STRIP -x"
9750 old_striplib="$STRIP -S"
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9752 $as_echo "yes" >&6; }
9753 else
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9755 $as_echo "no" >&6; }
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760 $as_echo "no" >&6; }
9762 esac
9776 # Report which library types will actually be built
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9778 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9780 $as_echo "$can_build_shared" >&6; }
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9783 $as_echo_n "checking whether to build shared libraries... " >&6; }
9784 test "$can_build_shared" = "no" && enable_shared=no
9786 # On AIX, shared libraries and static libraries use the same namespace, and
9787 # are all built from PIC.
9788 case $host_os in
9789 aix3*)
9790 test "$enable_shared" = yes && enable_static=no
9791 if test -n "$RANLIB"; then
9792 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9793 postinstall_cmds='$RANLIB $lib'
9797 aix[4-9]*)
9798 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9799 test "$enable_shared" = yes && enable_static=no
9802 esac
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9804 $as_echo "$enable_shared" >&6; }
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9807 $as_echo_n "checking whether to build static libraries... " >&6; }
9808 # Make sure either enable_shared or enable_static is yes.
9809 test "$enable_shared" = yes || enable_static=yes
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9811 $as_echo "$enable_static" >&6; }
9817 ac_ext=c
9818 ac_cpp='$CPP $CPPFLAGS'
9819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9823 CC="$lt_save_CC"
9837 ac_config_commands="$ac_config_commands libtool"
9842 # Only expand once:
9845 # Find a good install program. We prefer a C program (faster),
9846 # so one script is as good as another. But avoid the broken or
9847 # incompatible versions:
9848 # SysV /etc/install, /usr/sbin/install
9849 # SunOS /usr/etc/install
9850 # IRIX /sbin/install
9851 # AIX /bin/install
9852 # AmigaOS /C/install, which installs bootblocks on floppy discs
9853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9856 # OS/2's system install, which has a completely different semantic
9857 # ./install, which can be erroneously created by make from ./install.sh.
9858 # Reject install programs that cannot install multiple files.
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9860 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9861 if test -z "$INSTALL"; then
9862 if ${ac_cv_path_install+:} false; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866 for as_dir in $PATH
9868 IFS=$as_save_IFS
9869 test -z "$as_dir" && as_dir=.
9870 # Account for people who put trailing slashes in PATH elements.
9871 case $as_dir/ in #((
9872 ./ | .// | /[cC]/* | \
9873 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9874 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9875 /usr/ucb/* ) ;;
9877 # OSF1 and SCO ODT 3.0 have their own names for install.
9878 # Don't use installbsd from OSF since it installs stuff as root
9879 # by default.
9880 for ac_prog in ginstall scoinst install; do
9881 for ac_exec_ext in '' $ac_executable_extensions; do
9882 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9883 if test $ac_prog = install &&
9884 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9885 # AIX install. It has an incompatible calling convention.
9887 elif test $ac_prog = install &&
9888 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9889 # program-specific install script used by HP pwplus--don't use.
9891 else
9892 rm -rf conftest.one conftest.two conftest.dir
9893 echo one > conftest.one
9894 echo two > conftest.two
9895 mkdir conftest.dir
9896 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9897 test -s conftest.one && test -s conftest.two &&
9898 test -s conftest.dir/conftest.one &&
9899 test -s conftest.dir/conftest.two
9900 then
9901 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9902 break 3
9906 done
9907 done
9909 esac
9911 done
9912 IFS=$as_save_IFS
9914 rm -rf conftest.one conftest.two conftest.dir
9917 if test "${ac_cv_path_install+set}" = set; then
9918 INSTALL=$ac_cv_path_install
9919 else
9920 # As a last resort, use the slow shell script. Don't cache a
9921 # value for INSTALL within a source directory, because that will
9922 # break other packages using the cache if that directory is
9923 # removed, or if the value is a relative name.
9924 INSTALL=$ac_install_sh
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9928 $as_echo "$INSTALL" >&6; }
9930 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9931 # It thinks the first close brace ends the variable substitution.
9932 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9934 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9936 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9938 for ac_prog in gawk mawk nawk awk
9940 # Extract the first word of "$ac_prog", so it can be a program name with args.
9941 set dummy $ac_prog; ac_word=$2
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9943 $as_echo_n "checking for $ac_word... " >&6; }
9944 if ${ac_cv_prog_AWK+:} false; then :
9945 $as_echo_n "(cached) " >&6
9946 else
9947 if test -n "$AWK"; then
9948 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9949 else
9950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9951 for as_dir in $PATH
9953 IFS=$as_save_IFS
9954 test -z "$as_dir" && as_dir=.
9955 for ac_exec_ext in '' $ac_executable_extensions; do
9956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9957 ac_cv_prog_AWK="$ac_prog"
9958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9959 break 2
9961 done
9962 done
9963 IFS=$as_save_IFS
9967 AWK=$ac_cv_prog_AWK
9968 if test -n "$AWK"; then
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9970 $as_echo "$AWK" >&6; }
9971 else
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9973 $as_echo "no" >&6; }
9977 test -n "$AWK" && break
9978 done
9981 #########
9982 # Enable large file support (if special flags are necessary)
9984 # Check whether --enable-largefile was given.
9985 if test "${enable_largefile+set}" = set; then :
9986 enableval=$enable_largefile;
9989 if test "$enable_largefile" != no; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9992 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9993 if ${ac_cv_sys_largefile_CC+:} false; then :
9994 $as_echo_n "(cached) " >&6
9995 else
9996 ac_cv_sys_largefile_CC=no
9997 if test "$GCC" != yes; then
9998 ac_save_CC=$CC
9999 while :; do
10000 # IRIX 6.2 and later do not support large files by default,
10001 # so use the C compiler's -n32 option if that helps.
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h. */
10004 #include <sys/types.h>
10005 /* Check that off_t can represent 2**63 - 1 correctly.
10006 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10007 since some C++ compilers masquerading as C compilers
10008 incorrectly reject 9223372036854775807. */
10009 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10011 && LARGE_OFF_T % 2147483647 == 1)
10012 ? 1 : -1];
10014 main ()
10018 return 0;
10020 _ACEOF
10021 if ac_fn_c_try_compile "$LINENO"; then :
10022 break
10024 rm -f core conftest.err conftest.$ac_objext
10025 CC="$CC -n32"
10026 if ac_fn_c_try_compile "$LINENO"; then :
10027 ac_cv_sys_largefile_CC=' -n32'; break
10029 rm -f core conftest.err conftest.$ac_objext
10030 break
10031 done
10032 CC=$ac_save_CC
10033 rm -f conftest.$ac_ext
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10037 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10038 if test "$ac_cv_sys_largefile_CC" != no; then
10039 CC=$CC$ac_cv_sys_largefile_CC
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10043 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10044 if ${ac_cv_sys_file_offset_bits+:} false; then :
10045 $as_echo_n "(cached) " >&6
10046 else
10047 while :; do
10048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10049 /* end confdefs.h. */
10050 #include <sys/types.h>
10051 /* Check that off_t can represent 2**63 - 1 correctly.
10052 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10053 since some C++ compilers masquerading as C compilers
10054 incorrectly reject 9223372036854775807. */
10055 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10056 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10057 && LARGE_OFF_T % 2147483647 == 1)
10058 ? 1 : -1];
10060 main ()
10064 return 0;
10066 _ACEOF
10067 if ac_fn_c_try_compile "$LINENO"; then :
10068 ac_cv_sys_file_offset_bits=no; break
10070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10073 #define _FILE_OFFSET_BITS 64
10074 #include <sys/types.h>
10075 /* Check that off_t can represent 2**63 - 1 correctly.
10076 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10077 since some C++ compilers masquerading as C compilers
10078 incorrectly reject 9223372036854775807. */
10079 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10080 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10081 && LARGE_OFF_T % 2147483647 == 1)
10082 ? 1 : -1];
10084 main ()
10088 return 0;
10090 _ACEOF
10091 if ac_fn_c_try_compile "$LINENO"; then :
10092 ac_cv_sys_file_offset_bits=64; break
10094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10095 ac_cv_sys_file_offset_bits=unknown
10096 break
10097 done
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10100 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10101 case $ac_cv_sys_file_offset_bits in #(
10102 no | unknown) ;;
10104 cat >>confdefs.h <<_ACEOF
10105 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10106 _ACEOF
10108 esac
10109 rm -rf conftest*
10110 if test $ac_cv_sys_file_offset_bits = unknown; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10112 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10113 if ${ac_cv_sys_large_files+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 while :; do
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10119 #include <sys/types.h>
10120 /* Check that off_t can represent 2**63 - 1 correctly.
10121 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10122 since some C++ compilers masquerading as C compilers
10123 incorrectly reject 9223372036854775807. */
10124 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10125 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10126 && LARGE_OFF_T % 2147483647 == 1)
10127 ? 1 : -1];
10129 main ()
10133 return 0;
10135 _ACEOF
10136 if ac_fn_c_try_compile "$LINENO"; then :
10137 ac_cv_sys_large_files=no; break
10139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h. */
10142 #define _LARGE_FILES 1
10143 #include <sys/types.h>
10144 /* Check that off_t can represent 2**63 - 1 correctly.
10145 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10146 since some C++ compilers masquerading as C compilers
10147 incorrectly reject 9223372036854775807. */
10148 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10149 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10150 && LARGE_OFF_T % 2147483647 == 1)
10151 ? 1 : -1];
10153 main ()
10157 return 0;
10159 _ACEOF
10160 if ac_fn_c_try_compile "$LINENO"; then :
10161 ac_cv_sys_large_files=1; break
10163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10164 ac_cv_sys_large_files=unknown
10165 break
10166 done
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10169 $as_echo "$ac_cv_sys_large_files" >&6; }
10170 case $ac_cv_sys_large_files in #(
10171 no | unknown) ;;
10173 cat >>confdefs.h <<_ACEOF
10174 #define _LARGE_FILES $ac_cv_sys_large_files
10175 _ACEOF
10177 esac
10178 rm -rf conftest*
10183 #########
10184 # Check for needed/wanted data types
10185 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10186 if test "x$ac_cv_type_int8_t" = xyes; then :
10188 cat >>confdefs.h <<_ACEOF
10189 #define HAVE_INT8_T 1
10190 _ACEOF
10194 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10195 if test "x$ac_cv_type_int16_t" = xyes; then :
10197 cat >>confdefs.h <<_ACEOF
10198 #define HAVE_INT16_T 1
10199 _ACEOF
10203 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10204 if test "x$ac_cv_type_int32_t" = xyes; then :
10206 cat >>confdefs.h <<_ACEOF
10207 #define HAVE_INT32_T 1
10208 _ACEOF
10212 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10213 if test "x$ac_cv_type_int64_t" = xyes; then :
10215 cat >>confdefs.h <<_ACEOF
10216 #define HAVE_INT64_T 1
10217 _ACEOF
10221 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10222 if test "x$ac_cv_type_intptr_t" = xyes; then :
10224 cat >>confdefs.h <<_ACEOF
10225 #define HAVE_INTPTR_T 1
10226 _ACEOF
10230 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10231 if test "x$ac_cv_type_uint8_t" = xyes; then :
10233 cat >>confdefs.h <<_ACEOF
10234 #define HAVE_UINT8_T 1
10235 _ACEOF
10239 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10240 if test "x$ac_cv_type_uint16_t" = xyes; then :
10242 cat >>confdefs.h <<_ACEOF
10243 #define HAVE_UINT16_T 1
10244 _ACEOF
10248 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10249 if test "x$ac_cv_type_uint32_t" = xyes; then :
10251 cat >>confdefs.h <<_ACEOF
10252 #define HAVE_UINT32_T 1
10253 _ACEOF
10257 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10258 if test "x$ac_cv_type_uint64_t" = xyes; then :
10260 cat >>confdefs.h <<_ACEOF
10261 #define HAVE_UINT64_T 1
10262 _ACEOF
10266 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10267 if test "x$ac_cv_type_uintptr_t" = xyes; then :
10269 cat >>confdefs.h <<_ACEOF
10270 #define HAVE_UINTPTR_T 1
10271 _ACEOF
10277 #########
10278 # Check for needed/wanted headers
10279 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
10280 do :
10281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10282 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10283 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10284 cat >>confdefs.h <<_ACEOF
10285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10286 _ACEOF
10290 done
10293 #########
10294 # Figure out whether or not we have these functions
10296 for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s utime malloc_usable_size
10297 do :
10298 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10299 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10300 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10301 cat >>confdefs.h <<_ACEOF
10302 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10303 _ACEOF
10306 done
10309 #########
10310 # By default, we use the amalgamation (this may be changed below...)
10312 USE_AMALGAMATION=1
10314 #########
10315 # See whether we can run specific tclsh versions known to work well;
10316 # if not, then we fall back to plain tclsh.
10317 # TODO: try other versions before falling back?
10319 for ac_prog in tclsh8.5 tclsh
10321 # Extract the first word of "$ac_prog", so it can be a program name with args.
10322 set dummy $ac_prog; ac_word=$2
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10324 $as_echo_n "checking for $ac_word... " >&6; }
10325 if ${ac_cv_prog_TCLSH_CMD+:} false; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 if test -n "$TCLSH_CMD"; then
10329 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10330 else
10331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10332 for as_dir in $PATH
10334 IFS=$as_save_IFS
10335 test -z "$as_dir" && as_dir=.
10336 for ac_exec_ext in '' $ac_executable_extensions; do
10337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10338 ac_cv_prog_TCLSH_CMD="$ac_prog"
10339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10340 break 2
10342 done
10343 done
10344 IFS=$as_save_IFS
10348 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10349 if test -n "$TCLSH_CMD"; then
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
10351 $as_echo "$TCLSH_CMD" >&6; }
10352 else
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10354 $as_echo "no" >&6; }
10358 test -n "$TCLSH_CMD" && break
10359 done
10360 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
10362 if test "$TCLSH_CMD" = "none"; then
10363 # If we can't find a local tclsh, then building the amalgamation will fail.
10364 # We act as though --disable-amalgamation has been used.
10365 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10366 USE_AMALGAMATION=0
10367 TCLSH_CMD="tclsh"
10372 if test "x${TCLLIBDIR+set}" != "xset" ; then
10373 TCLLIBDIR='$(libdir)'
10374 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10375 TCLLIBDIR=$i
10376 break
10377 done
10378 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10382 #########
10383 # Set up an appropriate program prefix
10385 if test "$program_prefix" = "NONE"; then
10386 program_prefix=""
10390 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10392 $as_echo "$as_me: Version set to $VERSION" >&6;}
10394 RELEASE=`cat $srcdir/VERSION`
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10396 $as_echo "$as_me: Release set to $RELEASE" >&6;}
10398 VERSION_NUMBER=`cat $srcdir/VERSION \
10399 | sed 's/[^0-9]/ /g' \
10400 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
10402 $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
10405 #########
10406 # Check to see if the --with-hints=FILE option is used. If there is none,
10407 # then check for a files named "$host.hints" and ../$hosts.hints where
10408 # $host is the hostname of the build system. If still no hints are
10409 # found, try looking in $system.hints and ../$system.hints where
10410 # $system is the result of uname -s.
10413 # Check whether --with-hints was given.
10414 if test "${with_hints+set}" = set; then :
10415 withval=$with_hints; hints=$withval
10418 if test "$hints" = ""; then
10419 host=`hostname | sed 's/\..*//'`
10420 if test -r $host.hints; then
10421 hints=$host.hints
10422 else
10423 if test -r ../$host.hints; then
10424 hints=../$host.hints
10428 if test "$hints" = ""; then
10429 sys=`uname -s`
10430 if test -r $sys.hints; then
10431 hints=$sys.hints
10432 else
10433 if test -r ../$sys.hints; then
10434 hints=../$sys.hints
10438 if test "$hints" != ""; then
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: reading hints from $hints" >&5
10440 $as_echo "reading hints from $hints" >&6; }
10441 . $hints
10444 #########
10445 # Locate a compiler for the build machine. This compiler should
10446 # generate command-line programs that run on the build machine.
10448 if test x"$cross_compiling" = xno; then
10449 BUILD_CC=$CC
10450 BUILD_CFLAGS=$CFLAGS
10451 else
10452 if test "${BUILD_CC+set}" != set; then
10453 for ac_prog in gcc cc cl
10455 # Extract the first word of "$ac_prog", so it can be a program name with args.
10456 set dummy $ac_prog; ac_word=$2
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10458 $as_echo_n "checking for $ac_word... " >&6; }
10459 if ${ac_cv_prog_BUILD_CC+:} false; then :
10460 $as_echo_n "(cached) " >&6
10461 else
10462 if test -n "$BUILD_CC"; then
10463 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10464 else
10465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10466 for as_dir in $PATH
10468 IFS=$as_save_IFS
10469 test -z "$as_dir" && as_dir=.
10470 for ac_exec_ext in '' $ac_executable_extensions; do
10471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10472 ac_cv_prog_BUILD_CC="$ac_prog"
10473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10474 break 2
10476 done
10477 done
10478 IFS=$as_save_IFS
10482 BUILD_CC=$ac_cv_prog_BUILD_CC
10483 if test -n "$BUILD_CC"; then
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10485 $as_echo "$BUILD_CC" >&6; }
10486 else
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10488 $as_echo "no" >&6; }
10492 test -n "$BUILD_CC" && break
10493 done
10496 if test "${BUILD_CFLAGS+set}" != set; then
10497 BUILD_CFLAGS="-g"
10502 ##########
10503 # Do we want to support multithreaded use of sqlite
10505 # Check whether --enable-threadsafe was given.
10506 if test "${enable_threadsafe+set}" = set; then :
10507 enableval=$enable_threadsafe;
10508 else
10509 enable_threadsafe=yes
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10513 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
10514 if test "$enable_threadsafe" = "no"; then
10515 SQLITE_THREADSAFE=0
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10518 else
10519 SQLITE_THREADSAFE=1
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10521 $as_echo "yes" >&6; }
10525 if test "$SQLITE_THREADSAFE" = "1"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10527 $as_echo_n "checking for library containing pthread_create... " >&6; }
10528 if ${ac_cv_search_pthread_create+:} false; then :
10529 $as_echo_n "(cached) " >&6
10530 else
10531 ac_func_search_save_LIBS=$LIBS
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533 /* end confdefs.h. */
10535 /* Override any GCC internal prototype to avoid an error.
10536 Use char because int might match the return type of a GCC
10537 builtin and then its argument prototype would still apply. */
10538 #ifdef __cplusplus
10539 extern "C"
10540 #endif
10541 char pthread_create ();
10543 main ()
10545 return pthread_create ();
10547 return 0;
10549 _ACEOF
10550 for ac_lib in '' pthread; do
10551 if test -z "$ac_lib"; then
10552 ac_res="none required"
10553 else
10554 ac_res=-l$ac_lib
10555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10557 if ac_fn_c_try_link "$LINENO"; then :
10558 ac_cv_search_pthread_create=$ac_res
10560 rm -f core conftest.err conftest.$ac_objext \
10561 conftest$ac_exeext
10562 if ${ac_cv_search_pthread_create+:} false; then :
10563 break
10565 done
10566 if ${ac_cv_search_pthread_create+:} false; then :
10568 else
10569 ac_cv_search_pthread_create=no
10571 rm conftest.$ac_ext
10572 LIBS=$ac_func_search_save_LIBS
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10575 $as_echo "$ac_cv_search_pthread_create" >&6; }
10576 ac_res=$ac_cv_search_pthread_create
10577 if test "$ac_res" != no; then :
10578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10584 ##########
10585 # Do we want to allow a connection created in one thread to be used
10586 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
10587 # due to bugs in the threading implementations. This is thus off by default.
10589 # Check whether --enable-cross-thread-connections was given.
10590 if test "${enable_cross_thread_connections+set}" = set; then :
10591 enableval=$enable_cross_thread_connections;
10592 else
10593 enable_xthreadconnect=no
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
10597 $as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
10598 if test "$enable_xthreadconnect" = "no"; then
10599 XTHREADCONNECT=''
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10601 $as_echo "no" >&6; }
10602 else
10603 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10605 $as_echo "yes" >&6; }
10609 ##########
10610 # Do we want to support release
10612 # Check whether --enable-releasemode was given.
10613 if test "${enable_releasemode+set}" = set; then :
10614 enableval=$enable_releasemode;
10615 else
10616 enable_releasemode=no
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
10620 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
10621 if test "$enable_releasemode" = "no"; then
10622 ALLOWRELEASE=""
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10625 else
10626 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10628 $as_echo "yes" >&6; }
10632 ##########
10633 # Do we want temporary databases in memory
10635 # Check whether --enable-tempstore was given.
10636 if test "${enable_tempstore+set}" = set; then :
10637 enableval=$enable_tempstore;
10638 else
10639 enable_tempstore=no
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
10643 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
10644 case "$enable_tempstore" in
10645 never )
10646 TEMP_STORE=0
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10648 $as_echo "never" >&6; }
10650 no )
10651 TEMP_STORE=1
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10653 $as_echo "no" >&6; }
10655 yes )
10656 TEMP_STORE=2
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10658 $as_echo "yes" >&6; }
10660 always )
10661 TEMP_STORE=3
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10663 $as_echo "always" >&6; }
10666 TEMP_STORE=1
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668 $as_echo "no" >&6; }
10670 esac
10674 ###########
10675 # Lots of things are different if we are compiling for Windows using
10676 # the CYGWIN environment. So check for that special case and handle
10677 # things accordingly.
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
10680 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
10681 if test "$config_BUILD_EXEEXT" = ".exe"; then
10682 CYGWIN=yes
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10684 $as_echo "yes" >&6; }
10685 else
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10687 $as_echo "unknown" >&6; }
10689 if test "$CYGWIN" != "yes"; then
10691 case $host_os in
10692 *cygwin* ) CYGWIN=yes;;
10693 * ) CYGWIN=no;;
10694 esac
10697 if test "$CYGWIN" = "yes"; then
10698 BUILD_EXEEXT=.exe
10699 else
10700 BUILD_EXEEXT=$EXEEXT
10702 if test x"$cross_compiling" = xno; then
10703 TARGET_EXEEXT=$BUILD_EXEEXT
10704 else
10705 TARGET_EXEEXT=$config_TARGET_EXEEXT
10707 if test "$TARGET_EXEEXT" = ".exe"; then
10708 if test $OS2_SHELL ; then
10709 SQLITE_OS_UNIX=0
10710 SQLITE_OS_WIN=0
10711 SQLITE_OS_OS2=1
10712 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
10713 else
10714 SQLITE_OS_UNIX=0
10715 SQLITE_OS_WIN=1
10716 SQLITE_OS_OS2=0
10717 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
10719 else
10720 SQLITE_OS_UNIX=1
10721 SQLITE_OS_WIN=0
10722 SQLITE_OS_OS2=0
10723 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
10732 ##########
10733 # Figure out all the parameters needed to compile against Tcl.
10735 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10736 # macros in the in the tcl.m4 file of the standard TCL distribution.
10737 # Those macros could not be used directly since we have to make some
10738 # minor changes to accomodate systems that do not have TCL installed.
10740 # Check whether --enable-tcl was given.
10741 if test "${enable_tcl+set}" = set; then :
10742 enableval=$enable_tcl; use_tcl=$enableval
10743 else
10744 use_tcl=yes
10747 if test "${use_tcl}" = "yes" ; then
10749 # Check whether --with-tcl was given.
10750 if test "${with_tcl+set}" = set; then :
10751 withval=$with_tcl; with_tclconfig=${withval}
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
10755 $as_echo_n "checking for Tcl configuration... " >&6; }
10756 if ${ac_cv_c_tclconfig+:} false; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10760 # First check to see if --with-tcl was specified.
10761 if test x"${with_tclconfig}" != x ; then
10762 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10763 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10764 else
10765 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
10769 # Start autosearch by asking tclsh
10770 if test x"${ac_cv_c_tclconfig}" = x ; then
10771 if test x"$cross_compiling" = xno; then
10772 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10774 if test -f "$i/tclConfig.sh" ; then
10775 ac_cv_c_tclconfig="$i"
10776 break
10778 done
10782 # then check for a private Tcl installation
10783 if test x"${ac_cv_c_tclconfig}" = x ; then
10784 for i in \
10785 ../tcl \
10786 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10787 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10788 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10789 ../../tcl \
10790 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10791 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10792 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10793 ../../../tcl \
10794 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10795 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10796 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10798 if test -f "$i/unix/tclConfig.sh" ; then
10799 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10800 break
10802 done
10805 # check in a few common install locations
10806 if test x"${ac_cv_c_tclconfig}" = x ; then
10807 for i in \
10808 `ls -d ${libdir} 2>/dev/null` \
10809 `ls -d /usr/local/lib 2>/dev/null` \
10810 `ls -d /usr/contrib/lib 2>/dev/null` \
10811 `ls -d /usr/lib 2>/dev/null`
10813 if test -f "$i/tclConfig.sh" ; then
10814 ac_cv_c_tclconfig=`(cd $i; pwd)`
10815 break
10817 done
10820 # check in a few other private locations
10821 if test x"${ac_cv_c_tclconfig}" = x ; then
10822 for i in \
10823 ${srcdir}/../tcl \
10824 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10825 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10826 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10828 if test -f "$i/unix/tclConfig.sh" ; then
10829 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10830 break
10832 done
10838 if test x"${ac_cv_c_tclconfig}" = x ; then
10839 use_tcl=no
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
10841 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
10843 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
10845 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
10846 else
10847 TCL_BIN_DIR=${ac_cv_c_tclconfig}
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
10849 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
10852 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
10853 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
10855 $as_echo "loading" >&6; }
10856 . $TCL_BIN_DIR/tclConfig.sh
10857 else
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
10859 $as_echo "file not found" >&6; }
10863 # If the TCL_BIN_DIR is the build directory (not the install directory),
10864 # then set the common variable name to the value of the build variables.
10865 # For example, the variable TCL_LIB_SPEC will be set to the value
10866 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10867 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10868 # installed and uninstalled version of Tcl.
10871 if test -f $TCL_BIN_DIR/Makefile ; then
10872 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10873 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10874 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10878 # eval is required to do the TCL_DBGX substitution
10881 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10882 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10883 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10885 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10886 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10887 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10904 if test "${use_tcl}" = "no" ; then
10905 HAVE_TCL=""
10906 else
10907 HAVE_TCL=1
10911 ##########
10912 # Figure out what C libraries are required to compile programs
10913 # that use "readline()" library.
10915 TARGET_READLINE_LIBS=""
10916 TARGET_READLINE_INC=""
10917 TARGET_HAVE_READLINE=0
10918 # Check whether --enable-readline was given.
10919 if test "${enable_readline+set}" = set; then :
10920 enableval=$enable_readline; with_readline=$enableval
10921 else
10922 with_readline=auto
10926 if test x"$with_readline" != xno; then
10927 found="yes"
10930 # Check whether --with-readline-lib was given.
10931 if test "${with_readline_lib+set}" = set; then :
10932 withval=$with_readline_lib; with_readline_lib=$withval
10933 else
10934 with_readline_lib="auto"
10937 if test "x$with_readline_lib" = xauto; then
10938 save_LIBS="$LIBS"
10939 LIBS=""
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
10941 $as_echo_n "checking for library containing tgetent... " >&6; }
10942 if ${ac_cv_search_tgetent+:} false; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 ac_func_search_save_LIBS=$LIBS
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10949 /* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
10952 #ifdef __cplusplus
10953 extern "C"
10954 #endif
10955 char tgetent ();
10957 main ()
10959 return tgetent ();
10961 return 0;
10963 _ACEOF
10964 for ac_lib in '' readline ncurses curses termcap; do
10965 if test -z "$ac_lib"; then
10966 ac_res="none required"
10967 else
10968 ac_res=-l$ac_lib
10969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10971 if ac_fn_c_try_link "$LINENO"; then :
10972 ac_cv_search_tgetent=$ac_res
10974 rm -f core conftest.err conftest.$ac_objext \
10975 conftest$ac_exeext
10976 if ${ac_cv_search_tgetent+:} false; then :
10977 break
10979 done
10980 if ${ac_cv_search_tgetent+:} false; then :
10982 else
10983 ac_cv_search_tgetent=no
10985 rm conftest.$ac_ext
10986 LIBS=$ac_func_search_save_LIBS
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
10989 $as_echo "$ac_cv_search_tgetent" >&6; }
10990 ac_res=$ac_cv_search_tgetent
10991 if test "$ac_res" != no; then :
10992 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10993 term_LIBS="$LIBS"
10994 else
10995 term_LIBS=""
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
10999 $as_echo_n "checking for readline in -lreadline... " >&6; }
11000 if ${ac_cv_lib_readline_readline+:} false; then :
11001 $as_echo_n "(cached) " >&6
11002 else
11003 ac_check_lib_save_LIBS=$LIBS
11004 LIBS="-lreadline $LIBS"
11005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11006 /* end confdefs.h. */
11008 /* Override any GCC internal prototype to avoid an error.
11009 Use char because int might match the return type of a GCC
11010 builtin and then its argument prototype would still apply. */
11011 #ifdef __cplusplus
11012 extern "C"
11013 #endif
11014 char readline ();
11016 main ()
11018 return readline ();
11020 return 0;
11022 _ACEOF
11023 if ac_fn_c_try_link "$LINENO"; then :
11024 ac_cv_lib_readline_readline=yes
11025 else
11026 ac_cv_lib_readline_readline=no
11028 rm -f core conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
11030 LIBS=$ac_check_lib_save_LIBS
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
11033 $as_echo "$ac_cv_lib_readline_readline" >&6; }
11034 if test "x$ac_cv_lib_readline_readline" = xyes; then :
11035 TARGET_READLINE_LIBS="-lreadline"
11036 else
11037 found="no"
11040 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11041 LIBS="$save_LIBS"
11042 else
11043 TARGET_READLINE_LIBS="$with_readline_lib"
11047 # Check whether --with-readline-inc was given.
11048 if test "${with_readline_inc+set}" = set; then :
11049 withval=$with_readline_inc; with_readline_inc=$withval
11050 else
11051 with_readline_inc="auto"
11054 if test "x$with_readline_inc" = xauto; then
11055 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11056 if test "x$ac_cv_header_readline_h" = xyes; then :
11057 found="yes"
11058 else
11060 found="no"
11061 if test "$cross_compiling" != yes; then
11062 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11063 for subdir in include include/readline; do
11064 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
11066 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
11067 if eval \${$as_ac_File+:} false; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11070 test "$cross_compiling" = yes &&
11071 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11072 if test -r "$dir/$subdir/readline.h"; then
11073 eval "$as_ac_File=yes"
11074 else
11075 eval "$as_ac_File=no"
11078 eval ac_res=\$$as_ac_File
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11080 $as_echo "$ac_res" >&6; }
11081 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11082 found=yes
11085 if test "$found" = "yes"; then
11086 TARGET_READLINE_INC="-I$dir/$subdir"
11087 break
11089 done
11090 test "$found" = "yes" && break
11091 done
11097 else
11098 TARGET_READLINE_INC="$with_readline_inc"
11101 if test x"$found" = xno; then
11102 TARGET_READLINE_LIBS=""
11103 TARGET_READLINE_INC=""
11104 TARGET_HAVE_READLINE=0
11105 else
11106 TARGET_HAVE_READLINE=1
11114 ##########
11115 # Figure out what C libraries are required to compile programs
11116 # that use "fdatasync()" function.
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11119 $as_echo_n "checking for library containing fdatasync... " >&6; }
11120 if ${ac_cv_search_fdatasync+:} false; then :
11121 $as_echo_n "(cached) " >&6
11122 else
11123 ac_func_search_save_LIBS=$LIBS
11124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h. */
11127 /* Override any GCC internal prototype to avoid an error.
11128 Use char because int might match the return type of a GCC
11129 builtin and then its argument prototype would still apply. */
11130 #ifdef __cplusplus
11131 extern "C"
11132 #endif
11133 char fdatasync ();
11135 main ()
11137 return fdatasync ();
11139 return 0;
11141 _ACEOF
11142 for ac_lib in '' rt; do
11143 if test -z "$ac_lib"; then
11144 ac_res="none required"
11145 else
11146 ac_res=-l$ac_lib
11147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11149 if ac_fn_c_try_link "$LINENO"; then :
11150 ac_cv_search_fdatasync=$ac_res
11152 rm -f core conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext
11154 if ${ac_cv_search_fdatasync+:} false; then :
11155 break
11157 done
11158 if ${ac_cv_search_fdatasync+:} false; then :
11160 else
11161 ac_cv_search_fdatasync=no
11163 rm conftest.$ac_ext
11164 LIBS=$ac_func_search_save_LIBS
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11167 $as_echo "$ac_cv_search_fdatasync" >&6; }
11168 ac_res=$ac_cv_search_fdatasync
11169 if test "$ac_res" != no; then :
11170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11175 #########
11176 # check for debug enabled
11177 # Check whether --enable-debug was given.
11178 if test "${enable_debug+set}" = set; then :
11179 enableval=$enable_debug; use_debug=$enableval
11180 else
11181 use_debug=no
11184 if test "${use_debug}" = "yes" ; then
11185 TARGET_DEBUG="-DSQLITE_DEBUG=1"
11186 else
11187 TARGET_DEBUG="-DNDEBUG"
11191 #########
11192 # See whether we should use the amalgamation to build
11193 # Check whether --enable-amalgamation was given.
11194 if test "${enable_amalgamation+set}" = set; then :
11195 enableval=$enable_amalgamation; use_amalgamation=$enableval
11196 else
11197 use_amalgamation=yes
11200 if test "${use_amalgamation}" != "yes" ; then
11201 USE_AMALGAMATION=0
11205 #########
11206 # See whether we should allow loadable extensions
11207 # Check whether --enable-load-extension was given.
11208 if test "${enable_load_extension+set}" = set; then :
11209 enableval=$enable_load_extension; use_loadextension=$enableval
11210 else
11211 use_loadextension=no
11214 if test "${use_loadextension}" = "yes" ; then
11215 OPT_FEATURE_FLAGS=""
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11217 $as_echo_n "checking for library containing dlopen... " >&6; }
11218 if ${ac_cv_search_dlopen+:} false; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 ac_func_search_save_LIBS=$LIBS
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11225 /* Override any GCC internal prototype to avoid an error.
11226 Use char because int might match the return type of a GCC
11227 builtin and then its argument prototype would still apply. */
11228 #ifdef __cplusplus
11229 extern "C"
11230 #endif
11231 char dlopen ();
11233 main ()
11235 return dlopen ();
11237 return 0;
11239 _ACEOF
11240 for ac_lib in '' dl; do
11241 if test -z "$ac_lib"; then
11242 ac_res="none required"
11243 else
11244 ac_res=-l$ac_lib
11245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11247 if ac_fn_c_try_link "$LINENO"; then :
11248 ac_cv_search_dlopen=$ac_res
11250 rm -f core conftest.err conftest.$ac_objext \
11251 conftest$ac_exeext
11252 if ${ac_cv_search_dlopen+:} false; then :
11253 break
11255 done
11256 if ${ac_cv_search_dlopen+:} false; then :
11258 else
11259 ac_cv_search_dlopen=no
11261 rm conftest.$ac_ext
11262 LIBS=$ac_func_search_save_LIBS
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11265 $as_echo "$ac_cv_search_dlopen" >&6; }
11266 ac_res=$ac_cv_search_dlopen
11267 if test "$ac_res" != no; then :
11268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11272 else
11273 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11276 #########
11277 # attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
11278 for option in $CFLAGS $CPPFLAGS
11280 case $option in
11281 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11282 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11283 esac
11284 done
11288 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
11289 ac_temp_CFLAGS=""
11290 for option in $CFLAGS
11292 case $option in
11293 -DSQLITE_OMIT*) ;;
11294 -DSQLITE_ENABLE*) ;;
11295 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
11296 esac
11297 done
11298 CFLAGS=$ac_temp_CFLAGS
11301 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
11302 ac_temp_CPPFLAGS=""
11303 for option in $CPPFLAGS
11305 case $option in
11306 -DSQLITE_OMIT*) ;;
11307 -DSQLITE_ENABLE*) ;;
11308 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
11309 esac
11310 done
11311 CPPFLAGS=$ac_temp_CPPFLAGS
11314 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
11315 ac_temp_BUILD_CFLAGS=""
11316 for option in $BUILD_CFLAGS
11318 case $option in
11319 -DSQLITE_OMIT*) ;;
11320 -DSQLITE_ENABLE*) ;;
11321 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
11322 esac
11323 done
11324 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11327 #########
11328 # See whether we should use GCOV
11329 # Check whether --enable-gcov was given.
11330 if test "${enable_gcov+set}" = set; then :
11331 enableval=$enable_gcov; use_gcov=$enableval
11332 else
11333 use_gcov=no
11336 if test "${use_gcov}" = "yes" ; then
11337 USE_GCOV=1
11338 else
11339 USE_GCOV=0
11344 #########
11345 # Output the config header
11346 ac_config_headers="$ac_config_headers config.h"
11349 #########
11350 # Generate the output files.
11353 ac_config_files="$ac_config_files Makefile sqlite3.pc"
11355 cat >confcache <<\_ACEOF
11356 # This file is a shell script that caches the results of configure
11357 # tests run on this system so they can be shared between configure
11358 # scripts and configure runs, see configure's option --config-cache.
11359 # It is not useful on other systems. If it contains results you don't
11360 # want to keep, you may remove or edit it.
11362 # config.status only pays attention to the cache file if you give it
11363 # the --recheck option to rerun configure.
11365 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11366 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11367 # following values.
11369 _ACEOF
11371 # The following way of writing the cache mishandles newlines in values,
11372 # but we know of no workaround that is simple, portable, and efficient.
11373 # So, we kill variables containing newlines.
11374 # Ultrix sh set writes to stderr and can't be redirected directly,
11375 # and sets the high bit in the cache file unless we assign to the vars.
11377 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11378 eval ac_val=\$$ac_var
11379 case $ac_val in #(
11380 *${as_nl}*)
11381 case $ac_var in #(
11382 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11383 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11384 esac
11385 case $ac_var in #(
11386 _ | IFS | as_nl) ;; #(
11387 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11388 *) { eval $ac_var=; unset $ac_var;} ;;
11389 esac ;;
11390 esac
11391 done
11393 (set) 2>&1 |
11394 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11395 *${as_nl}ac_space=\ *)
11396 # `set' does not quote correctly, so add quotes: double-quote
11397 # substitution turns \\\\ into \\, and sed turns \\ into \.
11398 sed -n \
11399 "s/'/'\\\\''/g;
11400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11401 ;; #(
11403 # `set' quotes correctly as required by POSIX, so do not add quotes.
11404 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11406 esac |
11407 sort
11409 sed '
11410 /^ac_cv_env_/b end
11411 t clear
11412 :clear
11413 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11414 t end
11415 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11416 :end' >>confcache
11417 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11418 if test -w "$cache_file"; then
11419 if test "x$cache_file" != "x/dev/null"; then
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11421 $as_echo "$as_me: updating cache $cache_file" >&6;}
11422 if test ! -f "$cache_file" || test -h "$cache_file"; then
11423 cat confcache >"$cache_file"
11424 else
11425 case $cache_file in #(
11426 */* | ?:*)
11427 mv -f confcache "$cache_file"$$ &&
11428 mv -f "$cache_file"$$ "$cache_file" ;; #(
11430 mv -f confcache "$cache_file" ;;
11431 esac
11434 else
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11436 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11439 rm -f confcache
11441 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11442 # Let make expand exec_prefix.
11443 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11445 DEFS=-DHAVE_CONFIG_H
11447 ac_libobjs=
11448 ac_ltlibobjs=
11450 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11451 # 1. Remove the extension, and $U if already installed.
11452 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11453 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11454 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11455 # will be set to the directory where LIBOBJS objects are built.
11456 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11457 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11458 done
11459 LIBOBJS=$ac_libobjs
11461 LTLIBOBJS=$ac_ltlibobjs
11465 : "${CONFIG_STATUS=./config.status}"
11466 ac_write_fail=0
11467 ac_clean_files_save=$ac_clean_files
11468 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11470 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11471 as_write_fail=0
11472 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11473 #! $SHELL
11474 # Generated by $as_me.
11475 # Run this file to recreate the current configuration.
11476 # Compiler output produced by configure, useful for debugging
11477 # configure, is in config.log if it exists.
11479 debug=false
11480 ac_cs_recheck=false
11481 ac_cs_silent=false
11483 SHELL=\${CONFIG_SHELL-$SHELL}
11484 export SHELL
11485 _ASEOF
11486 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11487 ## -------------------- ##
11488 ## M4sh Initialization. ##
11489 ## -------------------- ##
11491 # Be more Bourne compatible
11492 DUALCASE=1; export DUALCASE # for MKS sh
11493 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11494 emulate sh
11495 NULLCMD=:
11496 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11497 # is contrary to our usage. Disable this feature.
11498 alias -g '${1+"$@"}'='"$@"'
11499 setopt NO_GLOB_SUBST
11500 else
11501 case `(set -o) 2>/dev/null` in #(
11502 *posix*) :
11503 set -o posix ;; #(
11504 *) :
11506 esac
11510 as_nl='
11512 export as_nl
11513 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11514 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11515 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11516 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11517 # Prefer a ksh shell builtin over an external printf program on Solaris,
11518 # but without wasting forks for bash or zsh.
11519 if test -z "$BASH_VERSION$ZSH_VERSION" \
11520 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11521 as_echo='print -r --'
11522 as_echo_n='print -rn --'
11523 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11524 as_echo='printf %s\n'
11525 as_echo_n='printf %s'
11526 else
11527 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11528 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11529 as_echo_n='/usr/ucb/echo -n'
11530 else
11531 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11532 as_echo_n_body='eval
11533 arg=$1;
11534 case $arg in #(
11535 *"$as_nl"*)
11536 expr "X$arg" : "X\\(.*\\)$as_nl";
11537 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11538 esac;
11539 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11541 export as_echo_n_body
11542 as_echo_n='sh -c $as_echo_n_body as_echo'
11544 export as_echo_body
11545 as_echo='sh -c $as_echo_body as_echo'
11548 # The user is always right.
11549 if test "${PATH_SEPARATOR+set}" != set; then
11550 PATH_SEPARATOR=:
11551 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11552 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11553 PATH_SEPARATOR=';'
11558 # IFS
11559 # We need space, tab and new line, in precisely that order. Quoting is
11560 # there to prevent editors from complaining about space-tab.
11561 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11562 # splitting by setting IFS to empty value.)
11563 IFS=" "" $as_nl"
11565 # Find who we are. Look in the path if we contain no directory separator.
11566 as_myself=
11567 case $0 in #((
11568 *[\\/]* ) as_myself=$0 ;;
11569 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11570 for as_dir in $PATH
11572 IFS=$as_save_IFS
11573 test -z "$as_dir" && as_dir=.
11574 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11575 done
11576 IFS=$as_save_IFS
11579 esac
11580 # We did not find ourselves, most probably we were run as `sh COMMAND'
11581 # in which case we are not to be found in the path.
11582 if test "x$as_myself" = x; then
11583 as_myself=$0
11585 if test ! -f "$as_myself"; then
11586 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11587 exit 1
11590 # Unset variables that we do not need and which cause bugs (e.g. in
11591 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11592 # suppresses any "Segmentation fault" message there. '((' could
11593 # trigger a bug in pdksh 5.2.14.
11594 for as_var in BASH_ENV ENV MAIL MAILPATH
11595 do eval test x\${$as_var+set} = xset \
11596 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11597 done
11598 PS1='$ '
11599 PS2='> '
11600 PS4='+ '
11602 # NLS nuisances.
11603 LC_ALL=C
11604 export LC_ALL
11605 LANGUAGE=C
11606 export LANGUAGE
11608 # CDPATH.
11609 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11612 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11613 # ----------------------------------------
11614 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11615 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11616 # script with STATUS, using 1 if that was 0.
11617 as_fn_error ()
11619 as_status=$1; test $as_status -eq 0 && as_status=1
11620 if test "$4"; then
11621 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11622 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11624 $as_echo "$as_me: error: $2" >&2
11625 as_fn_exit $as_status
11626 } # as_fn_error
11629 # as_fn_set_status STATUS
11630 # -----------------------
11631 # Set $? to STATUS, without forking.
11632 as_fn_set_status ()
11634 return $1
11635 } # as_fn_set_status
11637 # as_fn_exit STATUS
11638 # -----------------
11639 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11640 as_fn_exit ()
11642 set +e
11643 as_fn_set_status $1
11644 exit $1
11645 } # as_fn_exit
11647 # as_fn_unset VAR
11648 # ---------------
11649 # Portably unset VAR.
11650 as_fn_unset ()
11652 { eval $1=; unset $1;}
11654 as_unset=as_fn_unset
11655 # as_fn_append VAR VALUE
11656 # ----------------------
11657 # Append the text in VALUE to the end of the definition contained in VAR. Take
11658 # advantage of any shell optimizations that allow amortized linear growth over
11659 # repeated appends, instead of the typical quadratic growth present in naive
11660 # implementations.
11661 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11662 eval 'as_fn_append ()
11664 eval $1+=\$2
11666 else
11667 as_fn_append ()
11669 eval $1=\$$1\$2
11671 fi # as_fn_append
11673 # as_fn_arith ARG...
11674 # ------------------
11675 # Perform arithmetic evaluation on the ARGs, and store the result in the
11676 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11677 # must be portable across $(()) and expr.
11678 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11679 eval 'as_fn_arith ()
11681 as_val=$(( $* ))
11683 else
11684 as_fn_arith ()
11686 as_val=`expr "$@" || test $? -eq 1`
11688 fi # as_fn_arith
11691 if expr a : '\(a\)' >/dev/null 2>&1 &&
11692 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11693 as_expr=expr
11694 else
11695 as_expr=false
11698 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11699 as_basename=basename
11700 else
11701 as_basename=false
11704 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11705 as_dirname=dirname
11706 else
11707 as_dirname=false
11710 as_me=`$as_basename -- "$0" ||
11711 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11712 X"$0" : 'X\(//\)$' \| \
11713 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11714 $as_echo X/"$0" |
11715 sed '/^.*\/\([^/][^/]*\)\/*$/{
11716 s//\1/
11719 /^X\/\(\/\/\)$/{
11720 s//\1/
11723 /^X\/\(\/\).*/{
11724 s//\1/
11727 s/.*/./; q'`
11729 # Avoid depending upon Character Ranges.
11730 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11731 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11732 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11733 as_cr_digits='0123456789'
11734 as_cr_alnum=$as_cr_Letters$as_cr_digits
11736 ECHO_C= ECHO_N= ECHO_T=
11737 case `echo -n x` in #(((((
11738 -n*)
11739 case `echo 'xy\c'` in
11740 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11741 xy) ECHO_C='\c';;
11742 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11743 ECHO_T=' ';;
11744 esac;;
11746 ECHO_N='-n';;
11747 esac
11749 rm -f conf$$ conf$$.exe conf$$.file
11750 if test -d conf$$.dir; then
11751 rm -f conf$$.dir/conf$$.file
11752 else
11753 rm -f conf$$.dir
11754 mkdir conf$$.dir 2>/dev/null
11756 if (echo >conf$$.file) 2>/dev/null; then
11757 if ln -s conf$$.file conf$$ 2>/dev/null; then
11758 as_ln_s='ln -s'
11759 # ... but there are two gotchas:
11760 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11761 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11762 # In both cases, we have to default to `cp -p'.
11763 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11764 as_ln_s='cp -p'
11765 elif ln conf$$.file conf$$ 2>/dev/null; then
11766 as_ln_s=ln
11767 else
11768 as_ln_s='cp -p'
11770 else
11771 as_ln_s='cp -p'
11773 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11774 rmdir conf$$.dir 2>/dev/null
11777 # as_fn_mkdir_p
11778 # -------------
11779 # Create "$as_dir" as a directory, including parents if necessary.
11780 as_fn_mkdir_p ()
11783 case $as_dir in #(
11784 -*) as_dir=./$as_dir;;
11785 esac
11786 test -d "$as_dir" || eval $as_mkdir_p || {
11787 as_dirs=
11788 while :; do
11789 case $as_dir in #(
11790 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11791 *) as_qdir=$as_dir;;
11792 esac
11793 as_dirs="'$as_qdir' $as_dirs"
11794 as_dir=`$as_dirname -- "$as_dir" ||
11795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11796 X"$as_dir" : 'X\(//\)[^/]' \| \
11797 X"$as_dir" : 'X\(//\)$' \| \
11798 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11799 $as_echo X"$as_dir" |
11800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11801 s//\1/
11804 /^X\(\/\/\)[^/].*/{
11805 s//\1/
11808 /^X\(\/\/\)$/{
11809 s//\1/
11812 /^X\(\/\).*/{
11813 s//\1/
11816 s/.*/./; q'`
11817 test -d "$as_dir" && break
11818 done
11819 test -z "$as_dirs" || eval "mkdir $as_dirs"
11820 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11823 } # as_fn_mkdir_p
11824 if mkdir -p . 2>/dev/null; then
11825 as_mkdir_p='mkdir -p "$as_dir"'
11826 else
11827 test -d ./-p && rmdir ./-p
11828 as_mkdir_p=false
11831 if test -x / >/dev/null 2>&1; then
11832 as_test_x='test -x'
11833 else
11834 if ls -dL / >/dev/null 2>&1; then
11835 as_ls_L_option=L
11836 else
11837 as_ls_L_option=
11839 as_test_x='
11840 eval sh -c '\''
11841 if test -d "$1"; then
11842 test -d "$1/.";
11843 else
11844 case $1 in #(
11845 -*)set "./$1";;
11846 esac;
11847 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11848 ???[sx]*):;;*)false;;esac;fi
11849 '\'' sh
11852 as_executable_p=$as_test_x
11854 # Sed expression to map a string onto a valid CPP name.
11855 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11857 # Sed expression to map a string onto a valid variable name.
11858 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11861 exec 6>&1
11862 ## ----------------------------------- ##
11863 ## Main body of $CONFIG_STATUS script. ##
11864 ## ----------------------------------- ##
11865 _ASEOF
11866 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11869 # Save the log message, to keep $0 and so on meaningful, and to
11870 # report actual input values of CONFIG_FILES etc. instead of their
11871 # values after options handling.
11872 ac_log="
11873 This file was extended by sqlite $as_me 3.7.14.1, which was
11874 generated by GNU Autoconf 2.68. Invocation command line was
11876 CONFIG_FILES = $CONFIG_FILES
11877 CONFIG_HEADERS = $CONFIG_HEADERS
11878 CONFIG_LINKS = $CONFIG_LINKS
11879 CONFIG_COMMANDS = $CONFIG_COMMANDS
11880 $ $0 $@
11882 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11885 _ACEOF
11887 case $ac_config_files in *"
11888 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11889 esac
11891 case $ac_config_headers in *"
11892 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11893 esac
11896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11897 # Files that config.status was made for.
11898 config_files="$ac_config_files"
11899 config_headers="$ac_config_headers"
11900 config_commands="$ac_config_commands"
11902 _ACEOF
11904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11905 ac_cs_usage="\
11906 \`$as_me' instantiates files and other configuration actions
11907 from templates according to the current configuration. Unless the files
11908 and actions are specified as TAGs, all are instantiated by default.
11910 Usage: $0 [OPTION]... [TAG]...
11912 -h, --help print this help, then exit
11913 -V, --version print version number and configuration settings, then exit
11914 --config print configuration, then exit
11915 -q, --quiet, --silent
11916 do not print progress messages
11917 -d, --debug don't remove temporary files
11918 --recheck update $as_me by reconfiguring in the same conditions
11919 --file=FILE[:TEMPLATE]
11920 instantiate the configuration file FILE
11921 --header=FILE[:TEMPLATE]
11922 instantiate the configuration header FILE
11924 Configuration files:
11925 $config_files
11927 Configuration headers:
11928 $config_headers
11930 Configuration commands:
11931 $config_commands
11933 Report bugs to the package provider."
11935 _ACEOF
11936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11937 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11938 ac_cs_version="\\
11939 sqlite config.status 3.7.14.1
11940 configured by $0, generated by GNU Autoconf 2.68,
11941 with options \\"\$ac_cs_config\\"
11943 Copyright (C) 2010 Free Software Foundation, Inc.
11944 This config.status script is free software; the Free Software Foundation
11945 gives unlimited permission to copy, distribute and modify it."
11947 ac_pwd='$ac_pwd'
11948 srcdir='$srcdir'
11949 INSTALL='$INSTALL'
11950 AWK='$AWK'
11951 test -n "\$AWK" || AWK=awk
11952 _ACEOF
11954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11955 # The default lists apply if the user does not specify any file.
11956 ac_need_defaults=:
11957 while test $# != 0
11959 case $1 in
11960 --*=?*)
11961 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11962 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11963 ac_shift=:
11965 --*=)
11966 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11967 ac_optarg=
11968 ac_shift=:
11971 ac_option=$1
11972 ac_optarg=$2
11973 ac_shift=shift
11975 esac
11977 case $ac_option in
11978 # Handling of the options.
11979 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11980 ac_cs_recheck=: ;;
11981 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11982 $as_echo "$ac_cs_version"; exit ;;
11983 --config | --confi | --conf | --con | --co | --c )
11984 $as_echo "$ac_cs_config"; exit ;;
11985 --debug | --debu | --deb | --de | --d | -d )
11986 debug=: ;;
11987 --file | --fil | --fi | --f )
11988 $ac_shift
11989 case $ac_optarg in
11990 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11991 '') as_fn_error $? "missing file argument" ;;
11992 esac
11993 as_fn_append CONFIG_FILES " '$ac_optarg'"
11994 ac_need_defaults=false;;
11995 --header | --heade | --head | --hea )
11996 $ac_shift
11997 case $ac_optarg in
11998 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11999 esac
12000 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12001 ac_need_defaults=false;;
12002 --he | --h)
12003 # Conflict between --help and --header
12004 as_fn_error $? "ambiguous option: \`$1'
12005 Try \`$0 --help' for more information.";;
12006 --help | --hel | -h )
12007 $as_echo "$ac_cs_usage"; exit ;;
12008 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12009 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12010 ac_cs_silent=: ;;
12012 # This is an error.
12013 -*) as_fn_error $? "unrecognized option: \`$1'
12014 Try \`$0 --help' for more information." ;;
12016 *) as_fn_append ac_config_targets " $1"
12017 ac_need_defaults=false ;;
12019 esac
12020 shift
12021 done
12023 ac_configure_extra_args=
12025 if $ac_cs_silent; then
12026 exec 6>/dev/null
12027 ac_configure_extra_args="$ac_configure_extra_args --silent"
12030 _ACEOF
12031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12032 if \$ac_cs_recheck; then
12033 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12034 shift
12035 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12036 CONFIG_SHELL='$SHELL'
12037 export CONFIG_SHELL
12038 exec "\$@"
12041 _ACEOF
12042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12043 exec 5>>config.log
12045 echo
12046 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12047 ## Running $as_me. ##
12048 _ASBOX
12049 $as_echo "$ac_log"
12050 } >&5
12052 _ACEOF
12053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12055 # INIT-COMMANDS
12059 # The HP-UX ksh and POSIX shell print the target directory to stdout
12060 # if CDPATH is set.
12061 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12063 sed_quote_subst='$sed_quote_subst'
12064 double_quote_subst='$double_quote_subst'
12065 delay_variable_subst='$delay_variable_subst'
12066 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12067 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12068 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12069 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12070 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12071 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12072 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12073 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12074 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12075 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12076 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12077 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12078 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12079 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12080 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12081 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12082 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12083 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12084 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12085 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12086 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12087 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12088 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12089 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12090 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12091 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12092 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12093 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12094 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12095 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12096 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12097 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12098 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12099 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12100 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12101 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12102 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12103 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12104 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12105 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12106 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12107 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12108 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12109 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12110 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12111 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12112 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12113 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12114 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12115 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12116 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12117 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12118 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12119 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12120 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12121 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12122 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12123 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12124 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12125 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12126 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12127 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12128 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12129 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12130 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12131 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12132 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12133 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12134 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12135 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12136 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12137 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12138 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12139 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12140 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12141 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12142 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12143 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12144 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12145 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12146 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12147 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12148 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12149 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12150 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12151 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12152 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12153 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12154 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12155 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12156 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12157 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12158 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12159 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12160 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12161 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12162 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12163 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12164 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12165 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12166 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12167 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12168 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12169 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12170 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12171 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12172 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12173 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12174 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12175 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12176 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12177 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12178 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12179 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12180 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12181 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12182 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12183 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12185 LTCC='$LTCC'
12186 LTCFLAGS='$LTCFLAGS'
12187 compiler='$compiler_DEFAULT'
12189 # Quote evaled strings.
12190 for var in SED \
12191 GREP \
12192 EGREP \
12193 FGREP \
12194 LD \
12195 NM \
12196 LN_S \
12197 lt_SP2NL \
12198 lt_NL2SP \
12199 reload_flag \
12200 OBJDUMP \
12201 deplibs_check_method \
12202 file_magic_cmd \
12203 AR \
12204 AR_FLAGS \
12205 STRIP \
12206 RANLIB \
12207 CC \
12208 CFLAGS \
12209 compiler \
12210 lt_cv_sys_global_symbol_pipe \
12211 lt_cv_sys_global_symbol_to_cdecl \
12212 lt_cv_sys_global_symbol_to_c_name_address \
12213 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12214 SHELL \
12215 ECHO \
12216 lt_prog_compiler_no_builtin_flag \
12217 lt_prog_compiler_wl \
12218 lt_prog_compiler_pic \
12219 lt_prog_compiler_static \
12220 lt_cv_prog_compiler_c_o \
12221 need_locks \
12222 DSYMUTIL \
12223 NMEDIT \
12224 LIPO \
12225 OTOOL \
12226 OTOOL64 \
12227 shrext_cmds \
12228 export_dynamic_flag_spec \
12229 whole_archive_flag_spec \
12230 compiler_needs_object \
12231 with_gnu_ld \
12232 allow_undefined_flag \
12233 no_undefined_flag \
12234 hardcode_libdir_flag_spec \
12235 hardcode_libdir_flag_spec_ld \
12236 hardcode_libdir_separator \
12237 fix_srcfile_path \
12238 exclude_expsyms \
12239 include_expsyms \
12240 file_list_spec \
12241 variables_saved_for_relink \
12242 libname_spec \
12243 library_names_spec \
12244 soname_spec \
12245 finish_eval \
12246 old_striplib \
12247 striplib; do
12248 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12249 *[\\\\\\\`\\"\\\$]*)
12250 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12253 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12255 esac
12256 done
12258 # Double-quote double-evaled strings.
12259 for var in reload_cmds \
12260 old_postinstall_cmds \
12261 old_postuninstall_cmds \
12262 old_archive_cmds \
12263 extract_expsyms_cmds \
12264 old_archive_from_new_cmds \
12265 old_archive_from_expsyms_cmds \
12266 archive_cmds \
12267 archive_expsym_cmds \
12268 module_cmds \
12269 module_expsym_cmds \
12270 export_symbols_cmds \
12271 prelink_cmds \
12272 postinstall_cmds \
12273 postuninstall_cmds \
12274 finish_cmds \
12275 sys_lib_search_path_spec \
12276 sys_lib_dlsearch_path_spec; do
12277 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12278 *[\\\\\\\`\\"\\\$]*)
12279 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12282 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12284 esac
12285 done
12287 # Fix-up fallback echo if it was mangled by the above quoting rules.
12288 case \$lt_ECHO in
12289 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12291 esac
12293 ac_aux_dir='$ac_aux_dir'
12294 xsi_shell='$xsi_shell'
12295 lt_shell_append='$lt_shell_append'
12297 # See if we are running on zsh, and set the options which allow our
12298 # commands through without removal of \ escapes INIT.
12299 if test -n "\${ZSH_VERSION+set}" ; then
12300 setopt NO_GLOB_SUBST
12304 PACKAGE='$PACKAGE'
12305 VERSION='$VERSION'
12306 TIMESTAMP='$TIMESTAMP'
12307 RM='$RM'
12308 ofile='$ofile'
12313 _ACEOF
12315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12317 # Handling of arguments.
12318 for ac_config_target in $ac_config_targets
12320 case $ac_config_target in
12321 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12322 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12323 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12324 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12326 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12327 esac
12328 done
12331 # If the user did not use the arguments to specify the items to instantiate,
12332 # then the envvar interface is used. Set only those that are not.
12333 # We use the long form for the default assignment because of an extremely
12334 # bizarre bug on SunOS 4.1.3.
12335 if $ac_need_defaults; then
12336 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12337 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12338 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12341 # Have a temporary directory for convenience. Make it in the build tree
12342 # simply because there is no reason against having it here, and in addition,
12343 # creating and moving files from /tmp can sometimes cause problems.
12344 # Hook for its removal unless debugging.
12345 # Note that there is a small window in which the directory will not be cleaned:
12346 # after its creation but before its name has been assigned to `$tmp'.
12347 $debug ||
12349 tmp= ac_tmp=
12350 trap 'exit_status=$?
12351 : "${ac_tmp:=$tmp}"
12352 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12354 trap 'as_fn_exit 1' 1 2 13 15
12356 # Create a (secure) tmp directory for tmp files.
12359 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12360 test -d "$tmp"
12361 } ||
12363 tmp=./conf$$-$RANDOM
12364 (umask 077 && mkdir "$tmp")
12365 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12366 ac_tmp=$tmp
12368 # Set up the scripts for CONFIG_FILES section.
12369 # No need to generate them if there are no CONFIG_FILES.
12370 # This happens for instance with `./config.status config.h'.
12371 if test -n "$CONFIG_FILES"; then
12374 ac_cr=`echo X | tr X '\015'`
12375 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12376 # But we know of no other shell where ac_cr would be empty at this
12377 # point, so we can use a bashism as a fallback.
12378 if test "x$ac_cr" = x; then
12379 eval ac_cr=\$\'\\r\'
12381 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12382 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12383 ac_cs_awk_cr='\\r'
12384 else
12385 ac_cs_awk_cr=$ac_cr
12388 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12389 _ACEOF
12393 echo "cat >conf$$subs.awk <<_ACEOF" &&
12394 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12395 echo "_ACEOF"
12396 } >conf$$subs.sh ||
12397 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12398 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12399 ac_delim='%!_!# '
12400 for ac_last_try in false false false false false :; do
12401 . ./conf$$subs.sh ||
12402 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12404 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12405 if test $ac_delim_n = $ac_delim_num; then
12406 break
12407 elif $ac_last_try; then
12408 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12409 else
12410 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12412 done
12413 rm -f conf$$subs.sh
12415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12416 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12417 _ACEOF
12418 sed -n '
12420 s/^/S["/; s/!.*/"]=/
12423 s/^[^!]*!//
12424 :repl
12425 t repl
12426 s/'"$ac_delim"'$//
12427 t delim
12430 s/\(.\{148\}\)..*/\1/
12431 t more1
12432 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12435 b repl
12436 :more1
12437 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12440 s/.\{148\}//
12441 t nl
12442 :delim
12444 s/\(.\{148\}\)..*/\1/
12445 t more2
12446 s/["\\]/\\&/g; s/^/"/; s/$/"/
12449 :more2
12450 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12453 s/.\{148\}//
12454 t delim
12455 ' <conf$$subs.awk | sed '
12456 /^[^""]/{
12458 s/\n//
12460 ' >>$CONFIG_STATUS || ac_write_fail=1
12461 rm -f conf$$subs.awk
12462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12463 _ACAWK
12464 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12465 for (key in S) S_is_set[key] = 1
12466 FS = "\a"
12470 line = $ 0
12471 nfields = split(line, field, "@")
12472 substed = 0
12473 len = length(field[1])
12474 for (i = 2; i < nfields; i++) {
12475 key = field[i]
12476 keylen = length(key)
12477 if (S_is_set[key]) {
12478 value = S[key]
12479 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12480 len += length(value) + length(field[++i])
12481 substed = 1
12482 } else
12483 len += 1 + keylen
12486 print line
12489 _ACAWK
12490 _ACEOF
12491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12492 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12493 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12494 else
12496 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12497 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12498 _ACEOF
12500 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12501 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12502 # trailing colons and then remove the whole line if VPATH becomes empty
12503 # (actually we leave an empty line to preserve line numbers).
12504 if test "x$srcdir" = x.; then
12505 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12507 s///
12508 s/^/:/
12509 s/[ ]*$/:/
12510 s/:\$(srcdir):/:/g
12511 s/:\${srcdir}:/:/g
12512 s/:@srcdir@:/:/g
12513 s/^:*//
12514 s/:*$//
12516 s/\(=[ ]*\).*/\1/
12518 s/\n//
12519 s/^[^=]*=[ ]*$//
12523 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12524 fi # test -n "$CONFIG_FILES"
12526 # Set up the scripts for CONFIG_HEADERS section.
12527 # No need to generate them if there are no CONFIG_HEADERS.
12528 # This happens for instance with `./config.status Makefile'.
12529 if test -n "$CONFIG_HEADERS"; then
12530 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12531 BEGIN {
12532 _ACEOF
12534 # Transform confdefs.h into an awk script `defines.awk', embedded as
12535 # here-document in config.status, that substitutes the proper values into
12536 # config.h.in to produce config.h.
12538 # Create a delimiter string that does not exist in confdefs.h, to ease
12539 # handling of long lines.
12540 ac_delim='%!_!# '
12541 for ac_last_try in false false :; do
12542 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12543 if test -z "$ac_tt"; then
12544 break
12545 elif $ac_last_try; then
12546 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12547 else
12548 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12550 done
12552 # For the awk script, D is an array of macro values keyed by name,
12553 # likewise P contains macro parameters if any. Preserve backslash
12554 # newline sequences.
12556 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12557 sed -n '
12558 s/.\{148\}/&'"$ac_delim"'/g
12559 t rset
12560 :rset
12561 s/^[ ]*#[ ]*define[ ][ ]*/ /
12562 t def
12564 :def
12565 s/\\$//
12566 t bsnl
12567 s/["\\]/\\&/g
12568 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12569 D["\1"]=" \3"/p
12570 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12572 :bsnl
12573 s/["\\]/\\&/g
12574 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12575 D["\1"]=" \3\\\\\\n"\\/p
12576 t cont
12577 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12578 t cont
12580 :cont
12582 s/.\{148\}/&'"$ac_delim"'/g
12583 t clear
12584 :clear
12585 s/\\$//
12586 t bsnlc
12587 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12589 :bsnlc
12590 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12591 b cont
12592 ' <confdefs.h | sed '
12593 s/'"$ac_delim"'/"\\\
12594 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12597 for (key in D) D_is_set[key] = 1
12598 FS = "\a"
12600 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12601 line = \$ 0
12602 split(line, arg, " ")
12603 if (arg[1] == "#") {
12604 defundef = arg[2]
12605 mac1 = arg[3]
12606 } else {
12607 defundef = substr(arg[1], 2)
12608 mac1 = arg[2]
12610 split(mac1, mac2, "(") #)
12611 macro = mac2[1]
12612 prefix = substr(line, 1, index(line, defundef) - 1)
12613 if (D_is_set[macro]) {
12614 # Preserve the white space surrounding the "#".
12615 print prefix "define", macro P[macro] D[macro]
12616 next
12617 } else {
12618 # Replace #undef with comments. This is necessary, for example,
12619 # in the case of _POSIX_SOURCE, which is predefined and required
12620 # on some systems where configure will not decide to define it.
12621 if (defundef == "undef") {
12622 print "/*", prefix defundef, macro, "*/"
12623 next
12627 { print }
12628 _ACAWK
12629 _ACEOF
12630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12631 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12632 fi # test -n "$CONFIG_HEADERS"
12635 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12636 shift
12637 for ac_tag
12639 case $ac_tag in
12640 :[FHLC]) ac_mode=$ac_tag; continue;;
12641 esac
12642 case $ac_mode$ac_tag in
12643 :[FHL]*:*);;
12644 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12645 :[FH]-) ac_tag=-:-;;
12646 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12647 esac
12648 ac_save_IFS=$IFS
12649 IFS=:
12650 set x $ac_tag
12651 IFS=$ac_save_IFS
12652 shift
12653 ac_file=$1
12654 shift
12656 case $ac_mode in
12657 :L) ac_source=$1;;
12658 :[FH])
12659 ac_file_inputs=
12660 for ac_f
12662 case $ac_f in
12663 -) ac_f="$ac_tmp/stdin";;
12664 *) # Look for the file first in the build tree, then in the source tree
12665 # (if the path is not absolute). The absolute path cannot be DOS-style,
12666 # because $ac_f cannot contain `:'.
12667 test -f "$ac_f" ||
12668 case $ac_f in
12669 [\\/$]*) false;;
12670 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12671 esac ||
12672 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12673 esac
12674 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12675 as_fn_append ac_file_inputs " '$ac_f'"
12676 done
12678 # Let's still pretend it is `configure' which instantiates (i.e., don't
12679 # use $as_me), people would be surprised to read:
12680 # /* config.h. Generated by config.status. */
12681 configure_input='Generated from '`
12682 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12683 `' by configure.'
12684 if test x"$ac_file" != x-; then
12685 configure_input="$ac_file. $configure_input"
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12687 $as_echo "$as_me: creating $ac_file" >&6;}
12689 # Neutralize special characters interpreted by sed in replacement strings.
12690 case $configure_input in #(
12691 *\&* | *\|* | *\\* )
12692 ac_sed_conf_input=`$as_echo "$configure_input" |
12693 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12694 *) ac_sed_conf_input=$configure_input;;
12695 esac
12697 case $ac_tag in
12698 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12699 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12700 esac
12702 esac
12704 ac_dir=`$as_dirname -- "$ac_file" ||
12705 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12706 X"$ac_file" : 'X\(//\)[^/]' \| \
12707 X"$ac_file" : 'X\(//\)$' \| \
12708 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12709 $as_echo X"$ac_file" |
12710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12711 s//\1/
12714 /^X\(\/\/\)[^/].*/{
12715 s//\1/
12718 /^X\(\/\/\)$/{
12719 s//\1/
12722 /^X\(\/\).*/{
12723 s//\1/
12726 s/.*/./; q'`
12727 as_dir="$ac_dir"; as_fn_mkdir_p
12728 ac_builddir=.
12730 case "$ac_dir" in
12731 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12733 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12734 # A ".." for each directory in $ac_dir_suffix.
12735 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12736 case $ac_top_builddir_sub in
12737 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12738 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12739 esac ;;
12740 esac
12741 ac_abs_top_builddir=$ac_pwd
12742 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12743 # for backward compatibility:
12744 ac_top_builddir=$ac_top_build_prefix
12746 case $srcdir in
12747 .) # We are building in place.
12748 ac_srcdir=.
12749 ac_top_srcdir=$ac_top_builddir_sub
12750 ac_abs_top_srcdir=$ac_pwd ;;
12751 [\\/]* | ?:[\\/]* ) # Absolute name.
12752 ac_srcdir=$srcdir$ac_dir_suffix;
12753 ac_top_srcdir=$srcdir
12754 ac_abs_top_srcdir=$srcdir ;;
12755 *) # Relative name.
12756 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12757 ac_top_srcdir=$ac_top_build_prefix$srcdir
12758 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12759 esac
12760 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12763 case $ac_mode in
12766 # CONFIG_FILE
12769 case $INSTALL in
12770 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12771 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12772 esac
12773 _ACEOF
12775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12776 # If the template does not know about datarootdir, expand it.
12777 # FIXME: This hack should be removed a few years after 2.60.
12778 ac_datarootdir_hack=; ac_datarootdir_seen=
12779 ac_sed_dataroot='
12780 /datarootdir/ {
12784 /@datadir@/p
12785 /@docdir@/p
12786 /@infodir@/p
12787 /@localedir@/p
12788 /@mandir@/p'
12789 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12790 *datarootdir*) ac_datarootdir_seen=yes;;
12791 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12793 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12794 _ACEOF
12795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12796 ac_datarootdir_hack='
12797 s&@datadir@&$datadir&g
12798 s&@docdir@&$docdir&g
12799 s&@infodir@&$infodir&g
12800 s&@localedir@&$localedir&g
12801 s&@mandir@&$mandir&g
12802 s&\\\${datarootdir}&$datarootdir&g' ;;
12803 esac
12804 _ACEOF
12806 # Neutralize VPATH when `$srcdir' = `.'.
12807 # Shell code in configure.ac might set extrasub.
12808 # FIXME: do we really want to maintain this feature?
12809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12810 ac_sed_extra="$ac_vpsub
12811 $extrasub
12812 _ACEOF
12813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12815 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12816 s|@configure_input@|$ac_sed_conf_input|;t t
12817 s&@top_builddir@&$ac_top_builddir_sub&;t t
12818 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12819 s&@srcdir@&$ac_srcdir&;t t
12820 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12821 s&@top_srcdir@&$ac_top_srcdir&;t t
12822 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12823 s&@builddir@&$ac_builddir&;t t
12824 s&@abs_builddir@&$ac_abs_builddir&;t t
12825 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12826 s&@INSTALL@&$ac_INSTALL&;t t
12827 $ac_datarootdir_hack
12829 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12830 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12832 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12833 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12834 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12835 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12837 which seems to be undefined. Please make sure it is defined" >&5
12838 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12839 which seems to be undefined. Please make sure it is defined" >&2;}
12841 rm -f "$ac_tmp/stdin"
12842 case $ac_file in
12843 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12844 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12845 esac \
12846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12850 # CONFIG_HEADER
12852 if test x"$ac_file" != x-; then
12854 $as_echo "/* $configure_input */" \
12855 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12856 } >"$ac_tmp/config.h" \
12857 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12858 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12860 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12861 else
12862 rm -f "$ac_file"
12863 mv "$ac_tmp/config.h" "$ac_file" \
12864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12866 else
12867 $as_echo "/* $configure_input */" \
12868 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12869 || as_fn_error $? "could not create -" "$LINENO" 5
12873 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12874 $as_echo "$as_me: executing $ac_file commands" >&6;}
12876 esac
12879 case $ac_file$ac_mode in
12880 "libtool":C)
12882 # See if we are running on zsh, and set the options which allow our
12883 # commands through without removal of \ escapes.
12884 if test -n "${ZSH_VERSION+set}" ; then
12885 setopt NO_GLOB_SUBST
12888 cfgfile="${ofile}T"
12889 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12890 $RM "$cfgfile"
12892 cat <<_LT_EOF >> "$cfgfile"
12893 #! $SHELL
12895 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12896 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12897 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12898 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12900 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12901 # 2006, 2007, 2008 Free Software Foundation, Inc.
12902 # Written by Gordon Matzigkeit, 1996
12904 # This file is part of GNU Libtool.
12906 # GNU Libtool is free software; you can redistribute it and/or
12907 # modify it under the terms of the GNU General Public License as
12908 # published by the Free Software Foundation; either version 2 of
12909 # the License, or (at your option) any later version.
12911 # As a special exception to the GNU General Public License,
12912 # if you distribute this file as part of a program or library that
12913 # is built using GNU Libtool, you may include this file under the
12914 # same distribution terms that you use for the rest of that program.
12916 # GNU Libtool is distributed in the hope that it will be useful,
12917 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12918 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12919 # GNU General Public License for more details.
12921 # You should have received a copy of the GNU General Public License
12922 # along with GNU Libtool; see the file COPYING. If not, a copy
12923 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12924 # obtained by writing to the Free Software Foundation, Inc.,
12925 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12928 # The names of the tagged configurations supported by this script.
12929 available_tags=""
12931 # ### BEGIN LIBTOOL CONFIG
12933 # Which release of libtool.m4 was used?
12934 macro_version=$macro_version
12935 macro_revision=$macro_revision
12937 # Whether or not to build shared libraries.
12938 build_libtool_libs=$enable_shared
12940 # Whether or not to build static libraries.
12941 build_old_libs=$enable_static
12943 # What type of objects to build.
12944 pic_mode=$pic_mode
12946 # Whether or not to optimize for fast installation.
12947 fast_install=$enable_fast_install
12949 # The host system.
12950 host_alias=$host_alias
12951 host=$host
12952 host_os=$host_os
12954 # The build system.
12955 build_alias=$build_alias
12956 build=$build
12957 build_os=$build_os
12959 # A sed program that does not truncate output.
12960 SED=$lt_SED
12962 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12963 Xsed="\$SED -e 1s/^X//"
12965 # A grep program that handles long lines.
12966 GREP=$lt_GREP
12968 # An ERE matcher.
12969 EGREP=$lt_EGREP
12971 # A literal string matcher.
12972 FGREP=$lt_FGREP
12974 # A BSD- or MS-compatible name lister.
12975 NM=$lt_NM
12977 # Whether we need soft or hard links.
12978 LN_S=$lt_LN_S
12980 # What is the maximum length of a command?
12981 max_cmd_len=$max_cmd_len
12983 # Object file suffix (normally "o").
12984 objext=$ac_objext
12986 # Executable file suffix (normally "").
12987 exeext=$exeext
12989 # whether the shell understands "unset".
12990 lt_unset=$lt_unset
12992 # turn spaces into newlines.
12993 SP2NL=$lt_lt_SP2NL
12995 # turn newlines into spaces.
12996 NL2SP=$lt_lt_NL2SP
12998 # How to create reloadable object files.
12999 reload_flag=$lt_reload_flag
13000 reload_cmds=$lt_reload_cmds
13002 # An object symbol dumper.
13003 OBJDUMP=$lt_OBJDUMP
13005 # Method to check whether dependent libraries are shared objects.
13006 deplibs_check_method=$lt_deplibs_check_method
13008 # Command to use when deplibs_check_method == "file_magic".
13009 file_magic_cmd=$lt_file_magic_cmd
13011 # The archiver.
13012 AR=$lt_AR
13013 AR_FLAGS=$lt_AR_FLAGS
13015 # A symbol stripping program.
13016 STRIP=$lt_STRIP
13018 # Commands used to install an old-style archive.
13019 RANLIB=$lt_RANLIB
13020 old_postinstall_cmds=$lt_old_postinstall_cmds
13021 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13023 # A C compiler.
13024 LTCC=$lt_CC
13026 # LTCC compiler flags.
13027 LTCFLAGS=$lt_CFLAGS
13029 # Take the output of nm and produce a listing of raw symbols and C names.
13030 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13032 # Transform the output of nm in a proper C declaration.
13033 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13035 # Transform the output of nm in a C name address pair.
13036 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13038 # Transform the output of nm in a C name address pair when lib prefix is needed.
13039 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13041 # The name of the directory that contains temporary libtool files.
13042 objdir=$objdir
13044 # Shell to use when invoking shell scripts.
13045 SHELL=$lt_SHELL
13047 # An echo program that does not interpret backslashes.
13048 ECHO=$lt_ECHO
13050 # Used to examine libraries when file_magic_cmd begins with "file".
13051 MAGIC_CMD=$MAGIC_CMD
13053 # Must we lock files when doing compilation?
13054 need_locks=$lt_need_locks
13056 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13057 DSYMUTIL=$lt_DSYMUTIL
13059 # Tool to change global to local symbols on Mac OS X.
13060 NMEDIT=$lt_NMEDIT
13062 # Tool to manipulate fat objects and archives on Mac OS X.
13063 LIPO=$lt_LIPO
13065 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13066 OTOOL=$lt_OTOOL
13068 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13069 OTOOL64=$lt_OTOOL64
13071 # Old archive suffix (normally "a").
13072 libext=$libext
13074 # Shared library suffix (normally ".so").
13075 shrext_cmds=$lt_shrext_cmds
13077 # The commands to extract the exported symbol list from a shared archive.
13078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13080 # Variables whose values should be saved in libtool wrapper scripts and
13081 # restored at link time.
13082 variables_saved_for_relink=$lt_variables_saved_for_relink
13084 # Do we need the "lib" prefix for modules?
13085 need_lib_prefix=$need_lib_prefix
13087 # Do we need a version for libraries?
13088 need_version=$need_version
13090 # Library versioning type.
13091 version_type=$version_type
13093 # Shared library runtime path variable.
13094 runpath_var=$runpath_var
13096 # Shared library path variable.
13097 shlibpath_var=$shlibpath_var
13099 # Is shlibpath searched before the hard-coded library search path?
13100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13102 # Format of library name prefix.
13103 libname_spec=$lt_libname_spec
13105 # List of archive names. First name is the real one, the rest are links.
13106 # The last name is the one that the linker finds with -lNAME
13107 library_names_spec=$lt_library_names_spec
13109 # The coded name of the library, if different from the real name.
13110 soname_spec=$lt_soname_spec
13112 # Command to use after installation of a shared archive.
13113 postinstall_cmds=$lt_postinstall_cmds
13115 # Command to use after uninstallation of a shared archive.
13116 postuninstall_cmds=$lt_postuninstall_cmds
13118 # Commands used to finish a libtool library installation in a directory.
13119 finish_cmds=$lt_finish_cmds
13121 # As "finish_cmds", except a single script fragment to be evaled but
13122 # not shown.
13123 finish_eval=$lt_finish_eval
13125 # Whether we should hardcode library paths into libraries.
13126 hardcode_into_libs=$hardcode_into_libs
13128 # Compile-time system search path for libraries.
13129 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13131 # Run-time system search path for libraries.
13132 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13134 # Whether dlopen is supported.
13135 dlopen_support=$enable_dlopen
13137 # Whether dlopen of programs is supported.
13138 dlopen_self=$enable_dlopen_self
13140 # Whether dlopen of statically linked programs is supported.
13141 dlopen_self_static=$enable_dlopen_self_static
13143 # Commands to strip libraries.
13144 old_striplib=$lt_old_striplib
13145 striplib=$lt_striplib
13148 # The linker used to build libraries.
13149 LD=$lt_LD
13151 # Commands used to build an old-style archive.
13152 old_archive_cmds=$lt_old_archive_cmds
13154 # A language specific compiler.
13155 CC=$lt_compiler
13157 # Is the compiler the GNU compiler?
13158 with_gcc=$GCC
13160 # Compiler flag to turn off builtin functions.
13161 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13163 # How to pass a linker flag through the compiler.
13164 wl=$lt_lt_prog_compiler_wl
13166 # Additional compiler flags for building library objects.
13167 pic_flag=$lt_lt_prog_compiler_pic
13169 # Compiler flag to prevent dynamic linking.
13170 link_static_flag=$lt_lt_prog_compiler_static
13172 # Does compiler simultaneously support -c and -o options?
13173 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13175 # Whether or not to add -lc for building shared libraries.
13176 build_libtool_need_lc=$archive_cmds_need_lc
13178 # Whether or not to disallow shared libs when runtime libs are static.
13179 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13181 # Compiler flag to allow reflexive dlopens.
13182 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13184 # Compiler flag to generate shared objects directly from archives.
13185 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13187 # Whether the compiler copes with passing no objects directly.
13188 compiler_needs_object=$lt_compiler_needs_object
13190 # Create an old-style archive from a shared archive.
13191 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13193 # Create a temporary old-style archive to link instead of a shared archive.
13194 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13196 # Commands used to build a shared archive.
13197 archive_cmds=$lt_archive_cmds
13198 archive_expsym_cmds=$lt_archive_expsym_cmds
13200 # Commands used to build a loadable module if different from building
13201 # a shared archive.
13202 module_cmds=$lt_module_cmds
13203 module_expsym_cmds=$lt_module_expsym_cmds
13205 # Whether we are building with GNU ld or not.
13206 with_gnu_ld=$lt_with_gnu_ld
13208 # Flag that allows shared libraries with undefined symbols to be built.
13209 allow_undefined_flag=$lt_allow_undefined_flag
13211 # Flag that enforces no undefined symbols.
13212 no_undefined_flag=$lt_no_undefined_flag
13214 # Flag to hardcode \$libdir into a binary during linking.
13215 # This must work even if \$libdir does not exist
13216 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13218 # If ld is used when linking, flag to hardcode \$libdir into a binary
13219 # during linking. This must work even if \$libdir does not exist.
13220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13222 # Whether we need a single "-rpath" flag with a separated argument.
13223 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13225 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13226 # DIR into the resulting binary.
13227 hardcode_direct=$hardcode_direct
13229 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13230 # DIR into the resulting binary and the resulting library dependency is
13231 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13232 # library is relocated.
13233 hardcode_direct_absolute=$hardcode_direct_absolute
13235 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13236 # into the resulting binary.
13237 hardcode_minus_L=$hardcode_minus_L
13239 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13240 # into the resulting binary.
13241 hardcode_shlibpath_var=$hardcode_shlibpath_var
13243 # Set to "yes" if building a shared library automatically hardcodes DIR
13244 # into the library and all subsequent libraries and executables linked
13245 # against it.
13246 hardcode_automatic=$hardcode_automatic
13248 # Set to yes if linker adds runtime paths of dependent libraries
13249 # to runtime path list.
13250 inherit_rpath=$inherit_rpath
13252 # Whether libtool must link a program against all its dependency libraries.
13253 link_all_deplibs=$link_all_deplibs
13255 # Fix the shell variable \$srcfile for the compiler.
13256 fix_srcfile_path=$lt_fix_srcfile_path
13258 # Set to "yes" if exported symbols are required.
13259 always_export_symbols=$always_export_symbols
13261 # The commands to list exported symbols.
13262 export_symbols_cmds=$lt_export_symbols_cmds
13264 # Symbols that should not be listed in the preloaded symbols.
13265 exclude_expsyms=$lt_exclude_expsyms
13267 # Symbols that must always be exported.
13268 include_expsyms=$lt_include_expsyms
13270 # Commands necessary for linking programs (against libraries) with templates.
13271 prelink_cmds=$lt_prelink_cmds
13273 # Specify filename containing input files.
13274 file_list_spec=$lt_file_list_spec
13276 # How to hardcode a shared library path into an executable.
13277 hardcode_action=$hardcode_action
13279 # ### END LIBTOOL CONFIG
13281 _LT_EOF
13283 case $host_os in
13284 aix3*)
13285 cat <<\_LT_EOF >> "$cfgfile"
13286 # AIX sometimes has problems with the GCC collect2 program. For some
13287 # reason, if we set the COLLECT_NAMES environment variable, the problems
13288 # vanish in a puff of smoke.
13289 if test "X${COLLECT_NAMES+set}" != Xset; then
13290 COLLECT_NAMES=
13291 export COLLECT_NAMES
13293 _LT_EOF
13295 esac
13298 ltmain="$ac_aux_dir/ltmain.sh"
13301 # We use sed instead of cat because bash on DJGPP gets confused if
13302 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13303 # text mode, it properly converts lines to CR/LF. This bash problem
13304 # is reportedly fixed, but why not run on old versions too?
13305 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13306 || (rm -f "$cfgfile"; exit 1)
13308 case $xsi_shell in
13309 yes)
13310 cat << \_LT_EOF >> "$cfgfile"
13312 # func_dirname file append nondir_replacement
13313 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13314 # otherwise set result to NONDIR_REPLACEMENT.
13315 func_dirname ()
13317 case ${1} in
13318 */*) func_dirname_result="${1%/*}${2}" ;;
13319 * ) func_dirname_result="${3}" ;;
13320 esac
13323 # func_basename file
13324 func_basename ()
13326 func_basename_result="${1##*/}"
13329 # func_dirname_and_basename file append nondir_replacement
13330 # perform func_basename and func_dirname in a single function
13331 # call:
13332 # dirname: Compute the dirname of FILE. If nonempty,
13333 # add APPEND to the result, otherwise set result
13334 # to NONDIR_REPLACEMENT.
13335 # value returned in "$func_dirname_result"
13336 # basename: Compute filename of FILE.
13337 # value retuned in "$func_basename_result"
13338 # Implementation must be kept synchronized with func_dirname
13339 # and func_basename. For efficiency, we do not delegate to
13340 # those functions but instead duplicate the functionality here.
13341 func_dirname_and_basename ()
13343 case ${1} in
13344 */*) func_dirname_result="${1%/*}${2}" ;;
13345 * ) func_dirname_result="${3}" ;;
13346 esac
13347 func_basename_result="${1##*/}"
13350 # func_stripname prefix suffix name
13351 # strip PREFIX and SUFFIX off of NAME.
13352 # PREFIX and SUFFIX must not contain globbing or regex special
13353 # characters, hashes, percent signs, but SUFFIX may contain a leading
13354 # dot (in which case that matches only a dot).
13355 func_stripname ()
13357 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13358 # positional parameters, so assign one to ordinary parameter first.
13359 func_stripname_result=${3}
13360 func_stripname_result=${func_stripname_result#"${1}"}
13361 func_stripname_result=${func_stripname_result%"${2}"}
13364 # func_opt_split
13365 func_opt_split ()
13367 func_opt_split_opt=${1%%=*}
13368 func_opt_split_arg=${1#*=}
13371 # func_lo2o object
13372 func_lo2o ()
13374 case ${1} in
13375 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13376 *) func_lo2o_result=${1} ;;
13377 esac
13380 # func_xform libobj-or-source
13381 func_xform ()
13383 func_xform_result=${1%.*}.lo
13386 # func_arith arithmetic-term...
13387 func_arith ()
13389 func_arith_result=$(( $* ))
13392 # func_len string
13393 # STRING may not start with a hyphen.
13394 func_len ()
13396 func_len_result=${#1}
13399 _LT_EOF
13401 *) # Bourne compatible functions.
13402 cat << \_LT_EOF >> "$cfgfile"
13404 # func_dirname file append nondir_replacement
13405 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13406 # otherwise set result to NONDIR_REPLACEMENT.
13407 func_dirname ()
13409 # Extract subdirectory from the argument.
13410 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13411 if test "X$func_dirname_result" = "X${1}"; then
13412 func_dirname_result="${3}"
13413 else
13414 func_dirname_result="$func_dirname_result${2}"
13418 # func_basename file
13419 func_basename ()
13421 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13425 # func_stripname prefix suffix name
13426 # strip PREFIX and SUFFIX off of NAME.
13427 # PREFIX and SUFFIX must not contain globbing or regex special
13428 # characters, hashes, percent signs, but SUFFIX may contain a leading
13429 # dot (in which case that matches only a dot).
13430 # func_strip_suffix prefix name
13431 func_stripname ()
13433 case ${2} in
13434 .*) func_stripname_result=`$ECHO "X${3}" \
13435 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13436 *) func_stripname_result=`$ECHO "X${3}" \
13437 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13438 esac
13441 # sed scripts:
13442 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13443 my_sed_long_arg='1s/^-[^=]*=//'
13445 # func_opt_split
13446 func_opt_split ()
13448 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13449 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13452 # func_lo2o object
13453 func_lo2o ()
13455 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13458 # func_xform libobj-or-source
13459 func_xform ()
13461 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13464 # func_arith arithmetic-term...
13465 func_arith ()
13467 func_arith_result=`expr "$@"`
13470 # func_len string
13471 # STRING may not start with a hyphen.
13472 func_len ()
13474 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13477 _LT_EOF
13478 esac
13480 case $lt_shell_append in
13481 yes)
13482 cat << \_LT_EOF >> "$cfgfile"
13484 # func_append var value
13485 # Append VALUE to the end of shell variable VAR.
13486 func_append ()
13488 eval "$1+=\$2"
13490 _LT_EOF
13493 cat << \_LT_EOF >> "$cfgfile"
13495 # func_append var value
13496 # Append VALUE to the end of shell variable VAR.
13497 func_append ()
13499 eval "$1=\$$1\$2"
13502 _LT_EOF
13504 esac
13507 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13508 || (rm -f "$cfgfile"; exit 1)
13510 mv -f "$cfgfile" "$ofile" ||
13511 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13512 chmod +x "$ofile"
13516 esac
13517 done # for ac_tag
13520 as_fn_exit 0
13521 _ACEOF
13522 ac_clean_files=$ac_clean_files_save
13524 test $ac_write_fail = 0 ||
13525 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13528 # configure is writing to config.log, and then calls config.status.
13529 # config.status does its own redirection, appending to config.log.
13530 # Unfortunately, on DOS this fails, as config.log is still kept open
13531 # by configure, so config.status won't be able to write to it; its
13532 # output is simply discarded. So we exec the FD to /dev/null,
13533 # effectively closing config.log, so it can be properly (re)opened and
13534 # appended to by config.status. When coming back to configure, we
13535 # need to make the FD available again.
13536 if test "$no_create" != yes; then
13537 ac_cs_success=:
13538 ac_config_status_args=
13539 test "$silent" = yes &&
13540 ac_config_status_args="$ac_config_status_args --quiet"
13541 exec 5>/dev/null
13542 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13543 exec 5>>config.log
13544 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13545 # would make configure fail if this is the last instruction.
13546 $ac_cs_success || as_fn_exit 1
13548 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13550 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}