clarify trace message for raw key
[sqlcipher.git] / configure
blob79cd72de34c1a2be4e402191e851b18d473ce811
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67 for sqlite 3.7.9.
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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
533 case X$lt_ECHO in
534 X*--fallback-echo)
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
538 esac
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
543 shift
544 elif test "X$1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
550 else
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo; then
556 # used as fallback echo
557 shift
558 cat <<_LT_EOF
560 _LT_EOF
561 exit 0
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575 then
576 break
578 done
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
585 else
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
590 # So, first we look for a working echo in the user's PATH.
592 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593 for dir in $PATH /usr/ucb; do
594 IFS="$lt_save_ifs"
595 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
599 ECHO="$dir/echo"
600 break
602 done
603 IFS="$lt_save_ifs"
605 if test "X$ECHO" = Xecho; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
611 ECHO='print -r'
612 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X/bin/ksh; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL=/bin/ksh
618 export CONFIG_SHELL
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620 else
621 # Try using printf.
622 ECHO='printf %s\n'
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
626 # Cool, printf works
628 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633 export CONFIG_SHELL
634 SHELL="$CONFIG_SHELL"
635 export SHELL
636 ECHO="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO="$CONFIG_SHELL $0 --fallback-echo"
642 else
643 # maybe with a smaller string...
644 prev=:
646 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648 then
649 break
651 prev="$cmd"
652 done
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658 else
659 # Oops. We lost completely, so just stick with echo.
660 ECHO=echo
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
681 # Name of the host.
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687 # Initializations.
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
698 # Identity of this package.
699 PACKAGE_NAME='sqlite'
700 PACKAGE_TARNAME='sqlite'
701 PACKAGE_VERSION='3.7.9'
702 PACKAGE_STRING='sqlite 3.7.9'
703 PACKAGE_BUGREPORT=''
704 PACKAGE_URL=''
706 # Factoring default headers for most tests.
707 ac_includes_default="\
708 #include <stdio.h>
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
711 #endif
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
714 #endif
715 #ifdef STDC_HEADERS
716 # include <stdlib.h>
717 # include <stddef.h>
718 #else
719 # ifdef HAVE_STDLIB_H
720 # include <stdlib.h>
721 # endif
722 #endif
723 #ifdef HAVE_STRING_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
725 # include <memory.h>
726 # endif
727 # include <string.h>
728 #endif
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
731 #endif
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
734 #endif
735 #ifdef HAVE_STDINT_H
736 # include <stdint.h>
737 #endif
738 #ifdef HAVE_UNISTD_H
739 # include <unistd.h>
740 #endif"
742 ac_subst_vars='LTLIBOBJS
743 LIBOBJS
744 BUILD_CFLAGS
745 USE_GCOV
746 OPT_FEATURE_FLAGS
747 USE_AMALGAMATION
748 TARGET_DEBUG
749 TARGET_HAVE_READLINE
750 TARGET_READLINE_INC
751 TARGET_READLINE_LIBS
752 HAVE_TCL
753 TCL_STUB_LIB_SPEC
754 TCL_STUB_LIB_FLAG
755 TCL_STUB_LIB_FILE
756 TCL_LIB_SPEC
757 TCL_LIB_FLAG
758 TCL_LIB_FILE
759 TCL_INCLUDE_SPEC
760 TCL_LIBS
761 TCL_SRC_DIR
762 TCL_BIN_DIR
763 TCL_VERSION
764 TARGET_EXEEXT
765 SQLITE_OS_OS2
766 SQLITE_OS_WIN
767 SQLITE_OS_UNIX
768 BUILD_EXEEXT
769 TEMP_STORE
770 ALLOWRELEASE
771 XTHREADCONNECT
772 SQLITE_THREADSAFE
773 BUILD_CC
774 VERSION_NUMBER
775 RELEASE
776 VERSION
777 program_prefix
778 TCLLIBDIR
779 TCLSH_CMD
781 INSTALL_DATA
782 INSTALL_SCRIPT
783 INSTALL_PROGRAM
785 OTOOL64
786 OTOOL
787 LIPO
788 NMEDIT
789 DSYMUTIL
790 lt_ECHO
791 RANLIB
792 STRIP
794 OBJDUMP
795 LN_S
797 ac_ct_DUMPBIN
798 DUMPBIN
800 FGREP
801 EGREP
802 GREP
804 OBJEXT
805 EXEEXT
806 ac_ct_CC
807 CPPFLAGS
808 LDFLAGS
809 CFLAGS
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 LIBTOOL
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL'
858 ac_subst_files=''
859 ac_user_opts='
860 enable_option_checking
861 enable_shared
862 enable_static
863 with_pic
864 enable_fast_install
865 with_gnu_ld
866 enable_libtool_lock
867 enable_largefile
868 with_hints
869 enable_threadsafe
870 enable_cross_thread_connections
871 enable_releasemode
872 enable_tempstore
873 enable_tcl
874 with_tcl
875 enable_readline
876 with_readline_lib
877 with_readline_inc
878 enable_debug
879 enable_amalgamation
880 enable_load_extension
881 enable_gcov
883 ac_precious_vars='build_alias
884 host_alias
885 target_alias
887 CFLAGS
888 LDFLAGS
889 LIBS
890 CPPFLAGS
892 TCLLIBDIR'
895 # Initialize some variables set by options.
896 ac_init_help=
897 ac_init_version=false
898 ac_unrecognized_opts=
899 ac_unrecognized_sep=
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
943 ac_prev=
944 ac_dashdash=
945 for ac_option
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
949 eval $ac_prev=\$ac_option
950 ac_prev=
951 continue
954 case $ac_option in
955 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956 *=) ac_optarg= ;;
957 *) ac_optarg=yes ;;
958 esac
960 # Accept the important Cygnus configure options, so we can diagnose typos.
962 case $ac_dashdash$ac_option in
964 ac_dashdash=yes ;;
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 ac_prev=bindir ;;
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969 bindir=$ac_optarg ;;
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
983 --config-cache | -C)
984 cache_file=config.cache ;;
986 -datadir | --datadir | --datadi | --datad)
987 ac_prev=datadir ;;
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
998 -disable-* | --disable-*)
999 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 as_fn_error $? "invalid feature name: $ac_useropt"
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval enable_$ac_useropt=no ;;
1014 -docdir | --docdir | --docdi | --doc | --do)
1015 ac_prev=docdir ;;
1016 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017 docdir=$ac_optarg ;;
1019 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020 ac_prev=dvidir ;;
1021 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022 dvidir=$ac_optarg ;;
1024 -enable-* | --enable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error $? "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_$ac_useropt"
1034 "*) ;;
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1037 esac
1038 eval enable_$ac_useropt=\$ac_optarg ;;
1040 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042 | --exec | --exe | --ex)
1043 ac_prev=exec_prefix ;;
1044 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046 | --exec=* | --exe=* | --ex=*)
1047 exec_prefix=$ac_optarg ;;
1049 -gas | --gas | --ga | --g)
1050 # Obsolete; use --with-gas.
1051 with_gas=yes ;;
1053 -help | --help | --hel | --he | -h)
1054 ac_init_help=long ;;
1055 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056 ac_init_help=recursive ;;
1057 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058 ac_init_help=short ;;
1060 -host | --host | --hos | --ho)
1061 ac_prev=host_alias ;;
1062 -host=* | --host=* | --hos=* | --ho=*)
1063 host_alias=$ac_optarg ;;
1065 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066 ac_prev=htmldir ;;
1067 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068 | --ht=*)
1069 htmldir=$ac_optarg ;;
1071 -includedir | --includedir | --includedi | --included | --include \
1072 | --includ | --inclu | --incl | --inc)
1073 ac_prev=includedir ;;
1074 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075 | --includ=* | --inclu=* | --incl=* | --inc=*)
1076 includedir=$ac_optarg ;;
1078 -infodir | --infodir | --infodi | --infod | --info | --inf)
1079 ac_prev=infodir ;;
1080 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081 infodir=$ac_optarg ;;
1083 -libdir | --libdir | --libdi | --libd)
1084 ac_prev=libdir ;;
1085 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086 libdir=$ac_optarg ;;
1088 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089 | --libexe | --libex | --libe)
1090 ac_prev=libexecdir ;;
1091 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092 | --libexe=* | --libex=* | --libe=*)
1093 libexecdir=$ac_optarg ;;
1095 -localedir | --localedir | --localedi | --localed | --locale)
1096 ac_prev=localedir ;;
1097 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098 localedir=$ac_optarg ;;
1100 -localstatedir | --localstatedir | --localstatedi | --localstated \
1101 | --localstate | --localstat | --localsta | --localst | --locals)
1102 ac_prev=localstatedir ;;
1103 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105 localstatedir=$ac_optarg ;;
1107 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108 ac_prev=mandir ;;
1109 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110 mandir=$ac_optarg ;;
1112 -nfp | --nfp | --nf)
1113 # Obsolete; use --without-fp.
1114 with_fp=no ;;
1116 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117 | --no-cr | --no-c | -n)
1118 no_create=yes ;;
1120 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122 no_recursion=yes ;;
1124 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126 | --oldin | --oldi | --old | --ol | --o)
1127 ac_prev=oldincludedir ;;
1128 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131 oldincludedir=$ac_optarg ;;
1133 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134 ac_prev=prefix ;;
1135 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136 prefix=$ac_optarg ;;
1138 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139 | --program-pre | --program-pr | --program-p)
1140 ac_prev=program_prefix ;;
1141 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143 program_prefix=$ac_optarg ;;
1145 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146 | --program-suf | --program-su | --program-s)
1147 ac_prev=program_suffix ;;
1148 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150 program_suffix=$ac_optarg ;;
1152 -program-transform-name | --program-transform-name \
1153 | --program-transform-nam | --program-transform-na \
1154 | --program-transform-n | --program-transform- \
1155 | --program-transform | --program-transfor \
1156 | --program-transfo | --program-transf \
1157 | --program-trans | --program-tran \
1158 | --progr-tra | --program-tr | --program-t)
1159 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1169 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170 ac_prev=pdfdir ;;
1171 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172 pdfdir=$ac_optarg ;;
1174 -psdir | --psdir | --psdi | --psd | --ps)
1175 ac_prev=psdir ;;
1176 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177 psdir=$ac_optarg ;;
1179 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180 | -silent | --silent | --silen | --sile | --sil)
1181 silent=yes ;;
1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184 ac_prev=sbindir ;;
1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186 | --sbi=* | --sb=*)
1187 sbindir=$ac_optarg ;;
1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191 | --sharedst | --shareds | --shared | --share | --shar \
1192 | --sha | --sh)
1193 ac_prev=sharedstatedir ;;
1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197 | --sha=* | --sh=*)
1198 sharedstatedir=$ac_optarg ;;
1200 -site | --site | --sit)
1201 ac_prev=site ;;
1202 -site=* | --site=* | --sit=*)
1203 site=$ac_optarg ;;
1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206 ac_prev=srcdir ;;
1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208 srcdir=$ac_optarg ;;
1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211 | --syscon | --sysco | --sysc | --sys | --sy)
1212 ac_prev=sysconfdir ;;
1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215 sysconfdir=$ac_optarg ;;
1217 -target | --target | --targe | --targ | --tar | --ta | --t)
1218 ac_prev=target_alias ;;
1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220 target_alias=$ac_optarg ;;
1222 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223 verbose=yes ;;
1225 -version | --version | --versio | --versi | --vers | -V)
1226 ac_init_version=: ;;
1228 -with-* | --with-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1237 "with_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=\$ac_optarg ;;
1244 -without-* | --without-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error $? "invalid package name: $ac_useropt"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1253 "with_$ac_useropt"
1254 "*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval with_$ac_useropt=no ;;
1260 --x)
1261 # Obsolete; use --with-x.
1262 with_x=yes ;;
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269 x_includes=$ac_optarg ;;
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276 x_libraries=$ac_optarg ;;
1278 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information"
1282 *=*)
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 case $ac_envvar in #(
1286 '' | [0-9]* | *[!_$as_cr_alnum]* )
1287 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1288 esac
1289 eval $ac_envvar=\$ac_optarg
1290 export $ac_envvar ;;
1293 # FIXME: should be removed in autoconf 3.0.
1294 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1300 esac
1301 done
1303 if test -n "$ac_prev"; then
1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 as_fn_error $? "missing argument to $ac_option"
1308 if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1310 no) ;;
1311 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313 esac
1316 # Check all directory arguments for consistency.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val=\$$ac_var
1323 # Remove trailing slashes.
1324 case $ac_val in
1325 */ )
1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\$ac_val;;
1328 esac
1329 # Be sure to have absolute directory names.
1330 case $ac_val in
1331 [\\/$]* | ?:[\\/]* ) continue;;
1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333 esac
1334 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1335 done
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1340 build=$build_alias
1341 host=$host_alias
1342 target=$target_alias
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1349 If a cross compiler is detected then cross compile mode will be used" >&2
1350 elif test "x$build_alias" != "x$host_alias"; then
1351 cross_compiling=yes
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1358 test "$silent" = yes && exec 6>/dev/null
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error $? "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error $? "pwd does not report name of working directory"
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380 s//\1/
1383 /^X\(\/\/\)[^/].*/{
1384 s//\1/
1387 /^X\(\/\/\)$/{
1388 s//\1/
1391 /^X\(\/\).*/{
1392 s//\1/
1395 s/.*/./; q'`
1396 srcdir=$ac_confdir
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1398 srcdir=..
1400 else
1401 ac_srcdir_defaulted=no
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1410 pwd)`
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 srcdir=.
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1418 case $srcdir in
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 esac
1421 for ac_var in $ac_precious_vars; do
1422 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_${ac_var}_value=\$${ac_var}
1424 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1429 # Report the --help message.
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1434 cat <<_ACEOF
1435 \`configure' configures sqlite 3.7.9 to adapt to many kinds of systems.
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1442 Defaults for the options are specified in brackets.
1444 Configuration:
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking ...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 [PREFIX]
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1466 For better control, use the options below.
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1488 _ACEOF
1490 cat <<\_ACEOF
1492 System types:
1493 --build=BUILD configure for building on BUILD [guessed]
1494 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1495 _ACEOF
1498 if test -n "$ac_init_help"; then
1499 case $ac_init_help in
1500 short | recursive ) echo "Configuration of sqlite 3.7.9:";;
1501 esac
1502 cat <<\_ACEOF
1504 Optional Features:
1505 --disable-option-checking ignore unrecognized --enable/--with options
1506 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1507 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1508 --enable-shared[=PKGS] build shared libraries [default=yes]
1509 --enable-static[=PKGS] build static libraries [default=yes]
1510 --enable-fast-install[=PKGS]
1511 optimize for fast installation [default=yes]
1512 --disable-libtool-lock avoid locking (might break parallel builds)
1513 --disable-largefile omit support for large files
1514 --enable-threadsafe Support threadsafe operation
1515 --enable-cross-thread-connections
1516 Allow connection sharing across threads
1517 --enable-releasemode Support libtool link to release mode
1518 --enable-tempstore Use an in-ram database for temporary tables
1519 (never,no,yes,always)
1520 --disable-tcl do not build TCL extension
1521 --disable-readline disable readline support [default=detect]
1522 --enable-debug enable debugging & verbose explain
1523 --disable-amalgamation Disable the amalgamation and instead build all files
1524 separately
1525 --enable-load-extension Enable loading of external extensions
1526 --enable-gcov Enable coverage testing using gcov
1528 Optional Packages:
1529 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1530 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1531 --with-pic try to use only PIC/non-PIC objects [default=use
1532 both]
1533 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1534 --with-hints=FILE Read configuration options from FILE
1535 --with-tcl=DIR directory containing tcl configuration
1536 (tclConfig.sh)
1537 --with-readline-lib specify readline library
1538 --with-readline-inc specify readline include paths
1540 Some influential environment variables:
1541 CC C compiler command
1542 CFLAGS C compiler flags
1543 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1544 nonstandard directory <lib dir>
1545 LIBS libraries to pass to the linker, e.g. -l<library>
1546 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1547 you have headers in a nonstandard directory <include dir>
1548 CPP C preprocessor
1549 TCLLIBDIR Where to install tcl plugin
1551 Use these variables to override the choices made by `configure' or to help
1552 it to find libraries and programs with nonstandard names/locations.
1554 Report bugs to the package provider.
1555 _ACEOF
1556 ac_status=$?
1559 if test "$ac_init_help" = "recursive"; then
1560 # If there are subdirs, report their specific --help.
1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1562 test -d "$ac_dir" ||
1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 continue
1565 ac_builddir=.
1567 case "$ac_dir" in
1568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1571 # A ".." for each directory in $ac_dir_suffix.
1572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1573 case $ac_top_builddir_sub in
1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 esac ;;
1577 esac
1578 ac_abs_top_builddir=$ac_pwd
1579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580 # for backward compatibility:
1581 ac_top_builddir=$ac_top_build_prefix
1583 case $srcdir in
1584 .) # We are building in place.
1585 ac_srcdir=.
1586 ac_top_srcdir=$ac_top_builddir_sub
1587 ac_abs_top_srcdir=$ac_pwd ;;
1588 [\\/]* | ?:[\\/]* ) # Absolute name.
1589 ac_srcdir=$srcdir$ac_dir_suffix;
1590 ac_top_srcdir=$srcdir
1591 ac_abs_top_srcdir=$srcdir ;;
1592 *) # Relative name.
1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 esac
1597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1599 cd "$ac_dir" || { ac_status=$?; continue; }
1600 # Check for guested configure.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure" --help=recursive
1607 else
1608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 fi || ac_status=$?
1610 cd "$ac_pwd" || { ac_status=$?; break; }
1611 done
1614 test -n "$ac_init_help" && exit $ac_status
1615 if $ac_init_version; then
1616 cat <<\_ACEOF
1617 sqlite configure 3.7.9
1618 generated by GNU Autoconf 2.67
1620 Copyright (C) 2010 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624 exit
1627 ## ------------------------ ##
1628 ## Autoconf initialization. ##
1629 ## ------------------------ ##
1631 # ac_fn_c_try_compile LINENO
1632 # --------------------------
1633 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_compile ()
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658 else
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1662 ac_retval=1
1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1665 as_fn_set_status $ac_retval
1667 } # ac_fn_c_try_compile
1669 # ac_fn_c_try_link LINENO
1670 # -----------------------
1671 # Try to link conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_link ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext conftest$ac_exeext
1676 if { { ac_try="$ac_link"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest$ac_exeext && {
1695 test "$cross_compiling" = yes ||
1696 $as_test_x conftest$ac_exeext
1697 }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1703 ac_retval=1
1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707 # interfere with the next link command; also delete a directory that is
1708 # left behind by Apple's compiler. We do this before executing the actions.
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1711 as_fn_set_status $ac_retval
1713 } # ac_fn_c_try_link
1715 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716 # -------------------------------------------------------
1717 # Tests whether HEADER exists and can be compiled using the include files in
1718 # INCLUDES, setting the cache variable VAR accordingly.
1719 ac_fn_c_check_header_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval "test \"\${$3+set}\"" = set; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1730 #include <$2>
1731 _ACEOF
1732 if ac_fn_c_try_compile "$LINENO"; then :
1733 eval "$3=yes"
1734 else
1735 eval "$3=no"
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739 eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1744 } # ac_fn_c_check_header_compile
1746 # ac_fn_c_try_cpp LINENO
1747 # ----------------------
1748 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_c_try_cpp ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_cpp conftest.$ac_ext"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } > conftest.i && {
1768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 }; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1776 ac_retval=1
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779 as_fn_set_status $ac_retval
1781 } # ac_fn_c_try_cpp
1783 # ac_fn_c_try_run LINENO
1784 # ----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1786 # that executables *can* be run.
1787 ac_fn_c_try_run ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>&5
1798 ac_status=$?
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1801 { { case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_try") 2>&5
1808 ac_status=$?
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; }; }; then :
1811 ac_retval=0
1812 else
1813 $as_echo "$as_me: program exited with status $ac_status" >&5
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1817 ac_retval=$ac_status
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821 as_fn_set_status $ac_retval
1823 } # ac_fn_c_try_run
1825 # ac_fn_c_check_func LINENO FUNC VAR
1826 # ----------------------------------
1827 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1828 ac_fn_c_check_func ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval "test \"\${$3+set}\"" = set; then :
1834 $as_echo_n "(cached) " >&6
1835 else
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1840 #define $2 innocuous_$2
1842 /* System header to define __stub macros and hopefully few prototypes,
1843 which can conflict with char $2 (); below.
1844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845 <limits.h> exists even on freestanding compilers. */
1847 #ifdef __STDC__
1848 # include <limits.h>
1849 #else
1850 # include <assert.h>
1851 #endif
1853 #undef $2
1855 /* Override any GCC internal prototype to avoid an error.
1856 Use char because int might match the return type of a GCC
1857 builtin and then its argument prototype would still apply. */
1858 #ifdef __cplusplus
1859 extern "C"
1860 #endif
1861 char $2 ();
1862 /* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865 #if defined __stub_$2 || defined __stub___$2
1866 choke me
1867 #endif
1870 main ()
1872 return $2 ();
1874 return 0;
1876 _ACEOF
1877 if ac_fn_c_try_link "$LINENO"; then :
1878 eval "$3=yes"
1879 else
1880 eval "$3=no"
1882 rm -f core conftest.err conftest.$ac_objext \
1883 conftest$ac_exeext conftest.$ac_ext
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890 } # ac_fn_c_check_func
1892 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1893 # -------------------------------------------
1894 # Tests whether TYPE exists after having included INCLUDES, setting cache
1895 # variable VAR accordingly.
1896 ac_fn_c_check_type ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval "test \"\${$3+set}\"" = set; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 eval "$3=no"
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1909 main ()
1911 if (sizeof ($2))
1912 return 0;
1914 return 0;
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1922 main ()
1924 if (sizeof (($2)))
1925 return 0;
1927 return 0;
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1932 else
1933 eval "$3=yes"
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944 } # ac_fn_c_check_type
1946 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1947 # -------------------------------------------------------
1948 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1949 # the include files in INCLUDES and setting the cache variable VAR
1950 # accordingly.
1951 ac_fn_c_check_header_mongrel ()
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if eval "test \"\${$3+set}\"" = set; then :
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956 $as_echo_n "checking for $2... " >&6; }
1957 if eval "test \"\${$3+set}\"" = set; then :
1958 $as_echo_n "(cached) " >&6
1960 eval ac_res=\$$3
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1963 else
1964 # Is the header compilable?
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1966 $as_echo_n "checking $2 usability... " >&6; }
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1970 #include <$2>
1971 _ACEOF
1972 if ac_fn_c_try_compile "$LINENO"; then :
1973 ac_header_compiler=yes
1974 else
1975 ac_header_compiler=no
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1979 $as_echo "$ac_header_compiler" >&6; }
1981 # Is the header present?
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1983 $as_echo_n "checking $2 presence... " >&6; }
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1986 #include <$2>
1987 _ACEOF
1988 if ac_fn_c_try_cpp "$LINENO"; then :
1989 ac_header_preproc=yes
1990 else
1991 ac_header_preproc=no
1993 rm -f conftest.err conftest.i conftest.$ac_ext
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1995 $as_echo "$ac_header_preproc" >&6; }
1997 # So? What about this header?
1998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1999 yes:no: )
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2001 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2003 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2005 no:yes:* )
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2007 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2009 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2011 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2013 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2015 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2017 esac
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval "test \"\${$3+set}\"" = set; then :
2021 $as_echo_n "(cached) " >&6
2022 else
2023 eval "$3=\$ac_header_compiler"
2025 eval ac_res=\$$3
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031 } # ac_fn_c_check_header_mongrel
2032 cat >config.log <<_ACEOF
2033 This file contains any messages produced by compilers while
2034 running configure, to aid debugging if configure makes a mistake.
2036 It was created by sqlite $as_me 3.7.9, which was
2037 generated by GNU Autoconf 2.67. Invocation command line was
2039 $ $0 $@
2041 _ACEOF
2042 exec 5>>config.log
2044 cat <<_ASUNAME
2045 ## --------- ##
2046 ## Platform. ##
2047 ## --------- ##
2049 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2050 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2051 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2052 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2053 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2055 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2056 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2058 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2059 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2060 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2061 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2062 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2063 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2064 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2066 _ASUNAME
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069 for as_dir in $PATH
2071 IFS=$as_save_IFS
2072 test -z "$as_dir" && as_dir=.
2073 $as_echo "PATH: $as_dir"
2074 done
2075 IFS=$as_save_IFS
2077 } >&5
2079 cat >&5 <<_ACEOF
2082 ## ----------- ##
2083 ## Core tests. ##
2084 ## ----------- ##
2086 _ACEOF
2089 # Keep a trace of the command line.
2090 # Strip out --no-create and --no-recursion so they do not pile up.
2091 # Strip out --silent because we don't want to record it for future runs.
2092 # Also quote any args containing shell meta-characters.
2093 # Make two passes to allow for proper duplicate-argument suppression.
2094 ac_configure_args=
2095 ac_configure_args0=
2096 ac_configure_args1=
2097 ac_must_keep_next=false
2098 for ac_pass in 1 2
2100 for ac_arg
2102 case $ac_arg in
2103 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2105 | -silent | --silent | --silen | --sile | --sil)
2106 continue ;;
2107 *\'*)
2108 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2109 esac
2110 case $ac_pass in
2111 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2113 as_fn_append ac_configure_args1 " '$ac_arg'"
2114 if test $ac_must_keep_next = true; then
2115 ac_must_keep_next=false # Got value, back to normal.
2116 else
2117 case $ac_arg in
2118 *=* | --config-cache | -C | -disable-* | --disable-* \
2119 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2120 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2121 | -with-* | --with-* | -without-* | --without-* | --x)
2122 case "$ac_configure_args0 " in
2123 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2124 esac
2126 -* ) ac_must_keep_next=true ;;
2127 esac
2129 as_fn_append ac_configure_args " '$ac_arg'"
2131 esac
2132 done
2133 done
2134 { ac_configure_args0=; unset ac_configure_args0;}
2135 { ac_configure_args1=; unset ac_configure_args1;}
2137 # When interrupted or exit'd, cleanup temporary files, and complete
2138 # config.log. We remove comments because anyway the quotes in there
2139 # would cause problems or look ugly.
2140 # WARNING: Use '\'' to represent an apostrophe within the trap.
2141 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2142 trap 'exit_status=$?
2143 # Save into config.log some information that might help in debugging.
2145 echo
2147 $as_echo "## ---------------- ##
2148 ## Cache variables. ##
2149 ## ---------------- ##"
2150 echo
2151 # The following way of writing the cache mishandles newlines in values,
2153 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2154 eval ac_val=\$$ac_var
2155 case $ac_val in #(
2156 *${as_nl}*)
2157 case $ac_var in #(
2158 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2159 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2160 esac
2161 case $ac_var in #(
2162 _ | IFS | as_nl) ;; #(
2163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2164 *) { eval $ac_var=; unset $ac_var;} ;;
2165 esac ;;
2166 esac
2167 done
2168 (set) 2>&1 |
2169 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2170 *${as_nl}ac_space=\ *)
2171 sed -n \
2172 "s/'\''/'\''\\\\'\'''\''/g;
2173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2174 ;; #(
2176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2178 esac |
2179 sort
2181 echo
2183 $as_echo "## ----------------- ##
2184 ## Output variables. ##
2185 ## ----------------- ##"
2186 echo
2187 for ac_var in $ac_subst_vars
2189 eval ac_val=\$$ac_var
2190 case $ac_val in
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 esac
2193 $as_echo "$ac_var='\''$ac_val'\''"
2194 done | sort
2195 echo
2197 if test -n "$ac_subst_files"; then
2198 $as_echo "## ------------------- ##
2199 ## File substitutions. ##
2200 ## ------------------- ##"
2201 echo
2202 for ac_var in $ac_subst_files
2204 eval ac_val=\$$ac_var
2205 case $ac_val in
2206 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207 esac
2208 $as_echo "$ac_var='\''$ac_val'\''"
2209 done | sort
2210 echo
2213 if test -s confdefs.h; then
2214 $as_echo "## ----------- ##
2215 ## confdefs.h. ##
2216 ## ----------- ##"
2217 echo
2218 cat confdefs.h
2219 echo
2221 test "$ac_signal" != 0 &&
2222 $as_echo "$as_me: caught signal $ac_signal"
2223 $as_echo "$as_me: exit $exit_status"
2224 } >&5
2225 rm -f core *.core core.conftest.* &&
2226 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2227 exit $exit_status
2229 for ac_signal in 1 2 13 15; do
2230 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2231 done
2232 ac_signal=0
2234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2235 rm -f -r conftest* confdefs.h
2237 $as_echo "/* confdefs.h */" > confdefs.h
2239 # Predefined preprocessor variables.
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_NAME "$PACKAGE_NAME"
2243 _ACEOF
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2247 _ACEOF
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2251 _ACEOF
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_STRING "$PACKAGE_STRING"
2255 _ACEOF
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2259 _ACEOF
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_URL "$PACKAGE_URL"
2263 _ACEOF
2266 # Let the site file select an alternate cache file if it wants to.
2267 # Prefer an explicitly selected file to automatically selected ones.
2268 ac_site_file1=NONE
2269 ac_site_file2=NONE
2270 if test -n "$CONFIG_SITE"; then
2271 # We do not want a PATH search for config.site.
2272 case $CONFIG_SITE in #((
2273 -*) ac_site_file1=./$CONFIG_SITE;;
2274 */*) ac_site_file1=$CONFIG_SITE;;
2275 *) ac_site_file1=./$CONFIG_SITE;;
2276 esac
2277 elif test "x$prefix" != xNONE; then
2278 ac_site_file1=$prefix/share/config.site
2279 ac_site_file2=$prefix/etc/config.site
2280 else
2281 ac_site_file1=$ac_default_prefix/share/config.site
2282 ac_site_file2=$ac_default_prefix/etc/config.site
2284 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2286 test "x$ac_site_file" = xNONE && continue
2287 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2289 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2290 sed 's/^/| /' "$ac_site_file" >&5
2291 . "$ac_site_file" \
2292 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2294 as_fn_error $? "failed to load site script $ac_site_file
2295 See \`config.log' for more details" "$LINENO" 5 ; }
2297 done
2299 if test -r "$cache_file"; then
2300 # Some versions of bash will fail to source /dev/null (special files
2301 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2302 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2304 $as_echo "$as_me: loading cache $cache_file" >&6;}
2305 case $cache_file in
2306 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2307 *) . "./$cache_file";;
2308 esac
2310 else
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2312 $as_echo "$as_me: creating cache $cache_file" >&6;}
2313 >$cache_file
2316 # Check that the precious variables saved in the cache have kept the same
2317 # value.
2318 ac_cache_corrupted=false
2319 for ac_var in $ac_precious_vars; do
2320 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2321 eval ac_new_set=\$ac_env_${ac_var}_set
2322 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2323 eval ac_new_val=\$ac_env_${ac_var}_value
2324 case $ac_old_set,$ac_new_set in
2325 set,)
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2327 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2328 ac_cache_corrupted=: ;;
2329 ,set)
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2331 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2332 ac_cache_corrupted=: ;;
2333 ,);;
2335 if test "x$ac_old_val" != "x$ac_new_val"; then
2336 # differences in whitespace do not lead to failure.
2337 ac_old_val_w=`echo x $ac_old_val`
2338 ac_new_val_w=`echo x $ac_new_val`
2339 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2341 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2342 ac_cache_corrupted=:
2343 else
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2345 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2346 eval $ac_var=\$ac_old_val
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2349 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2351 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2352 fi;;
2353 esac
2354 # Pass precious variables to config.status.
2355 if test "$ac_new_set" = set; then
2356 case $ac_new_val in
2357 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2358 *) ac_arg=$ac_var=$ac_new_val ;;
2359 esac
2360 case " $ac_configure_args " in
2361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2362 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2363 esac
2365 done
2366 if $ac_cache_corrupted; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2370 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2371 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2373 ## -------------------- ##
2374 ## Main body of script. ##
2375 ## -------------------- ##
2377 ac_ext=c
2378 ac_cpp='$CPP $CPPFLAGS'
2379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2386 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2387 as_fn_error $? "configure script is out of date:
2388 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2389 top level VERSION file = $sqlite_version_sanity_check
2390 please regen with autoconf" "$LINENO" 5
2393 # The following RCS revision string applies to configure.in
2394 # $Revision: 1.56 $
2396 #########
2397 # Programs needed
2399 case `pwd` in
2400 *\ * | *\ *)
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2402 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2403 esac
2407 macro_version='2.2.6'
2408 macro_revision='1.3012'
2422 ltmain="$ac_aux_dir/ltmain.sh"
2424 ac_aux_dir=
2425 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2426 if test -f "$ac_dir/install-sh"; then
2427 ac_aux_dir=$ac_dir
2428 ac_install_sh="$ac_aux_dir/install-sh -c"
2429 break
2430 elif test -f "$ac_dir/install.sh"; then
2431 ac_aux_dir=$ac_dir
2432 ac_install_sh="$ac_aux_dir/install.sh -c"
2433 break
2434 elif test -f "$ac_dir/shtool"; then
2435 ac_aux_dir=$ac_dir
2436 ac_install_sh="$ac_aux_dir/shtool install -c"
2437 break
2439 done
2440 if test -z "$ac_aux_dir"; then
2441 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2444 # These three variables are undocumented and unsupported,
2445 # and are intended to be withdrawn in a future Autoconf release.
2446 # They can cause serious problems if a builder's source tree is in a directory
2447 # whose full name contains unusual characters.
2448 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2449 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2450 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2453 # Make sure we can run config.sub.
2454 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2455 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2458 $as_echo_n "checking build system type... " >&6; }
2459 if test "${ac_cv_build+set}" = set; then :
2460 $as_echo_n "(cached) " >&6
2461 else
2462 ac_build_alias=$build_alias
2463 test "x$ac_build_alias" = x &&
2464 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2465 test "x$ac_build_alias" = x &&
2466 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2467 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2468 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2472 $as_echo "$ac_cv_build" >&6; }
2473 case $ac_cv_build in
2474 *-*-*) ;;
2475 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2476 esac
2477 build=$ac_cv_build
2478 ac_save_IFS=$IFS; IFS='-'
2479 set x $ac_cv_build
2480 shift
2481 build_cpu=$1
2482 build_vendor=$2
2483 shift; shift
2484 # Remember, the first character of IFS is used to create $*,
2485 # except with old shells:
2486 build_os=$*
2487 IFS=$ac_save_IFS
2488 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2492 $as_echo_n "checking host system type... " >&6; }
2493 if test "${ac_cv_host+set}" = set; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 if test "x$host_alias" = x; then
2497 ac_cv_host=$ac_cv_build
2498 else
2499 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2500 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2505 $as_echo "$ac_cv_host" >&6; }
2506 case $ac_cv_host in
2507 *-*-*) ;;
2508 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2509 esac
2510 host=$ac_cv_host
2511 ac_save_IFS=$IFS; IFS='-'
2512 set x $ac_cv_host
2513 shift
2514 host_cpu=$1
2515 host_vendor=$2
2516 shift; shift
2517 # Remember, the first character of IFS is used to create $*,
2518 # except with old shells:
2519 host_os=$*
2520 IFS=$ac_save_IFS
2521 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2524 ac_ext=c
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529 if test -n "$ac_tool_prefix"; then
2530 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then :
2535 $as_echo_n "(cached) " >&6
2536 else
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2543 IFS=$as_save_IFS
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549 break 2
2551 done
2552 done
2553 IFS=$as_save_IFS
2557 CC=$ac_cv_prog_CC
2558 if test -n "$CC"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2560 $as_echo "$CC" >&6; }
2561 else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563 $as_echo "no" >&6; }
2568 if test -z "$ac_cv_prog_CC"; then
2569 ac_ct_CC=$CC
2570 # Extract the first word of "gcc", so it can be a program name with args.
2571 set dummy gcc; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576 else
2577 if test -n "$ac_ct_CC"; then
2578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_ac_ct_CC="gcc"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2591 done
2592 done
2593 IFS=$as_save_IFS
2597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2598 if test -n "$ac_ct_CC"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2600 $as_echo "$ac_ct_CC" >&6; }
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2606 if test "x$ac_ct_CC" = x; then
2607 CC=""
2608 else
2609 case $cross_compiling:$ac_tool_warned in
2610 yes:)
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2613 ac_tool_warned=yes ;;
2614 esac
2615 CC=$ac_ct_CC
2617 else
2618 CC="$ac_cv_prog_CC"
2621 if test -z "$CC"; then
2622 if test -n "$ac_tool_prefix"; then
2623 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2624 set dummy ${ac_tool_prefix}cc; ac_word=$2
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if test "${ac_cv_prog_CC+set}" = set; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 if test -n "$CC"; then
2631 ac_cv_prog_CC="$CC" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_CC="${ac_tool_prefix}cc"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2644 done
2645 done
2646 IFS=$as_save_IFS
2650 CC=$ac_cv_prog_CC
2651 if test -n "$CC"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2653 $as_echo "$CC" >&6; }
2654 else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2662 if test -z "$CC"; then
2663 # Extract the first word of "cc", so it can be a program name with args.
2664 set dummy cc; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if test "${ac_cv_prog_CC+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2672 else
2673 ac_prog_rejected=no
2674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675 for as_dir in $PATH
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2681 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2682 ac_prog_rejected=yes
2683 continue
2685 ac_cv_prog_CC="cc"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2689 done
2690 done
2691 IFS=$as_save_IFS
2693 if test $ac_prog_rejected = yes; then
2694 # We found a bogon in the path, so make sure we never use it.
2695 set dummy $ac_cv_prog_CC
2696 shift
2697 if test $# != 0; then
2698 # We chose a different compiler from the bogus one.
2699 # However, it has the same basename, so the bogon will be chosen
2700 # first if we set CC to just the basename; use the full file name.
2701 shift
2702 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2707 CC=$ac_cv_prog_CC
2708 if test -n "$CC"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2710 $as_echo "$CC" >&6; }
2711 else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2718 if test -z "$CC"; then
2719 if test -n "$ac_tool_prefix"; then
2720 for ac_prog in cl.exe
2722 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2723 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if test "${ac_cv_prog_CC+set}" = set; then :
2727 $as_echo_n "(cached) " >&6
2728 else
2729 if test -n "$CC"; then
2730 ac_cv_prog_CC="$CC" # Let the user override the test.
2731 else
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2735 IFS=$as_save_IFS
2736 test -z "$as_dir" && as_dir=.
2737 for ac_exec_ext in '' $ac_executable_extensions; do
2738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 break 2
2743 done
2744 done
2745 IFS=$as_save_IFS
2749 CC=$ac_cv_prog_CC
2750 if test -n "$CC"; then
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2752 $as_echo "$CC" >&6; }
2753 else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2755 $as_echo "no" >&6; }
2759 test -n "$CC" && break
2760 done
2762 if test -z "$CC"; then
2763 ac_ct_CC=$CC
2764 for ac_prog in cl.exe
2766 # Extract the first word of "$ac_prog", so it can be a program name with args.
2767 set dummy $ac_prog; ac_word=$2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2769 $as_echo_n "checking for $ac_word... " >&6; }
2770 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 if test -n "$ac_ct_CC"; then
2774 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2775 else
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2779 IFS=$as_save_IFS
2780 test -z "$as_dir" && as_dir=.
2781 for ac_exec_ext in '' $ac_executable_extensions; do
2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783 ac_cv_prog_ac_ct_CC="$ac_prog"
2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 break 2
2787 done
2788 done
2789 IFS=$as_save_IFS
2793 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2794 if test -n "$ac_ct_CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2796 $as_echo "$ac_ct_CC" >&6; }
2797 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2803 test -n "$ac_ct_CC" && break
2804 done
2806 if test "x$ac_ct_CC" = x; then
2807 CC=""
2808 else
2809 case $cross_compiling:$ac_tool_warned in
2810 yes:)
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2813 ac_tool_warned=yes ;;
2814 esac
2815 CC=$ac_ct_CC
2822 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2824 as_fn_error $? "no acceptable C compiler found in \$PATH
2825 See \`config.log' for more details" "$LINENO" 5 ; }
2827 # Provide some information about the compiler.
2828 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2829 set X $ac_compile
2830 ac_compiler=$2
2831 for ac_option in --version -v -V -qversion; do
2832 { { ac_try="$ac_compiler $ac_option >&5"
2833 case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836 esac
2837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2838 $as_echo "$ac_try_echo"; } >&5
2839 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2840 ac_status=$?
2841 if test -s conftest.err; then
2842 sed '10a\
2843 ... rest of stderr output deleted ...
2844 10q' conftest.err >conftest.er1
2845 cat conftest.er1 >&5
2847 rm -f conftest.er1 conftest.err
2848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2849 test $ac_status = 0; }
2850 done
2852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2853 /* end confdefs.h. */
2856 main ()
2860 return 0;
2862 _ACEOF
2863 ac_clean_files_save=$ac_clean_files
2864 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2865 # Try to create an executable without -o first, disregard a.out.
2866 # It will help us diagnose broken compilers, and finding out an intuition
2867 # of exeext.
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2869 $as_echo_n "checking whether the C compiler works... " >&6; }
2870 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2872 # The possible output files:
2873 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2875 ac_rmfiles=
2876 for ac_file in $ac_files
2878 case $ac_file in
2879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2880 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2881 esac
2882 done
2883 rm -f $ac_rmfiles
2885 if { { ac_try="$ac_link_default"
2886 case "(($ac_try" in
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2889 esac
2890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2891 $as_echo "$ac_try_echo"; } >&5
2892 (eval "$ac_link_default") 2>&5
2893 ac_status=$?
2894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2895 test $ac_status = 0; }; then :
2896 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2897 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2898 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2899 # so that the user can short-circuit this test for compilers unknown to
2900 # Autoconf.
2901 for ac_file in $ac_files ''
2903 test -f "$ac_file" || continue
2904 case $ac_file in
2905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2907 [ab].out )
2908 # We found the default executable, but exeext='' is most
2909 # certainly right.
2910 break;;
2911 *.* )
2912 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2913 then :; else
2914 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2916 # We set ac_cv_exeext here because the later test for it is not
2917 # safe: cross compilers may not add the suffix if given an `-o'
2918 # argument, so we may need to know it at that point already.
2919 # Even if this section looks crufty: it has the advantage of
2920 # actually working.
2921 break;;
2923 break;;
2924 esac
2925 done
2926 test "$ac_cv_exeext" = no && ac_cv_exeext=
2928 else
2929 ac_file=''
2931 if test -z "$ac_file"; then :
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2934 $as_echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2939 as_fn_error 77 "C compiler cannot create executables
2940 See \`config.log' for more details" "$LINENO" 5 ; }
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2943 $as_echo "yes" >&6; }
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2946 $as_echo_n "checking for C compiler default output file name... " >&6; }
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2948 $as_echo "$ac_file" >&6; }
2949 ac_exeext=$ac_cv_exeext
2951 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2952 ac_clean_files=$ac_clean_files_save
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2954 $as_echo_n "checking for suffix of executables... " >&6; }
2955 if { { ac_try="$ac_link"
2956 case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959 esac
2960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2961 $as_echo "$ac_try_echo"; } >&5
2962 (eval "$ac_link") 2>&5
2963 ac_status=$?
2964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2965 test $ac_status = 0; }; then :
2966 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2967 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2968 # work properly (i.e., refer to `conftest.exe'), while it won't with
2969 # `rm'.
2970 for ac_file in conftest.exe conftest conftest.*; do
2971 test -f "$ac_file" || continue
2972 case $ac_file in
2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2974 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2975 break;;
2976 * ) break;;
2977 esac
2978 done
2979 else
2980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2983 See \`config.log' for more details" "$LINENO" 5 ; }
2985 rm -f conftest conftest$ac_cv_exeext
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2987 $as_echo "$ac_cv_exeext" >&6; }
2989 rm -f conftest.$ac_ext
2990 EXEEXT=$ac_cv_exeext
2991 ac_exeext=$EXEEXT
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993 /* end confdefs.h. */
2994 #include <stdio.h>
2996 main ()
2998 FILE *f = fopen ("conftest.out", "w");
2999 return ferror (f) || fclose (f) != 0;
3002 return 0;
3004 _ACEOF
3005 ac_clean_files="$ac_clean_files conftest.out"
3006 # Check that the compiler produces executables we can run. If not, either
3007 # the compiler is broken, or we cross compile.
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3009 $as_echo_n "checking whether we are cross compiling... " >&6; }
3010 if test "$cross_compiling" != yes; then
3011 { { ac_try="$ac_link"
3012 case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3015 esac
3016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3017 $as_echo "$ac_try_echo"; } >&5
3018 (eval "$ac_link") 2>&5
3019 ac_status=$?
3020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3021 test $ac_status = 0; }
3022 if { ac_try='./conftest$ac_cv_exeext'
3023 { { case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026 esac
3027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028 $as_echo "$ac_try_echo"; } >&5
3029 (eval "$ac_try") 2>&5
3030 ac_status=$?
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; }; }; then
3033 cross_compiling=no
3034 else
3035 if test "$cross_compiling" = maybe; then
3036 cross_compiling=yes
3037 else
3038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3039 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3040 as_fn_error $? "cannot run C compiled programs.
3041 If you meant to cross compile, use \`--host'.
3042 See \`config.log' for more details" "$LINENO" 5 ; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3047 $as_echo "$cross_compiling" >&6; }
3049 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3050 ac_clean_files=$ac_clean_files_save
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3052 $as_echo_n "checking for suffix of object files... " >&6; }
3053 if test "${ac_cv_objext+set}" = set; then :
3054 $as_echo_n "(cached) " >&6
3055 else
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3060 main ()
3064 return 0;
3066 _ACEOF
3067 rm -f conftest.o conftest.obj
3068 if { { ac_try="$ac_compile"
3069 case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072 esac
3073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3074 $as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_compile") 2>&5
3076 ac_status=$?
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }; then :
3079 for ac_file in conftest.o conftest.obj conftest.*; do
3080 test -f "$ac_file" || continue;
3081 case $ac_file in
3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3083 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3084 break;;
3085 esac
3086 done
3087 else
3088 $as_echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093 as_fn_error $? "cannot compute suffix of object files: cannot compile
3094 See \`config.log' for more details" "$LINENO" 5 ; }
3096 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3099 $as_echo "$ac_cv_objext" >&6; }
3100 OBJEXT=$ac_cv_objext
3101 ac_objext=$OBJEXT
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3103 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3104 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3111 main ()
3113 #ifndef __GNUC__
3114 choke me
3115 #endif
3118 return 0;
3120 _ACEOF
3121 if ac_fn_c_try_compile "$LINENO"; then :
3122 ac_compiler_gnu=yes
3123 else
3124 ac_compiler_gnu=no
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3131 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3132 if test $ac_compiler_gnu = yes; then
3133 GCC=yes
3134 else
3135 GCC=
3137 ac_test_CFLAGS=${CFLAGS+set}
3138 ac_save_CFLAGS=$CFLAGS
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3140 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3141 if test "${ac_cv_prog_cc_g+set}" = set; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 ac_save_c_werror_flag=$ac_c_werror_flag
3145 ac_c_werror_flag=yes
3146 ac_cv_prog_cc_g=no
3147 CFLAGS="-g"
3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149 /* end confdefs.h. */
3152 main ()
3156 return 0;
3158 _ACEOF
3159 if ac_fn_c_try_compile "$LINENO"; then :
3160 ac_cv_prog_cc_g=yes
3161 else
3162 CFLAGS=""
3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3164 /* end confdefs.h. */
3167 main ()
3171 return 0;
3173 _ACEOF
3174 if ac_fn_c_try_compile "$LINENO"; then :
3176 else
3177 ac_c_werror_flag=$ac_save_c_werror_flag
3178 CFLAGS="-g"
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3183 main ()
3187 return 0;
3189 _ACEOF
3190 if ac_fn_c_try_compile "$LINENO"; then :
3191 ac_cv_prog_cc_g=yes
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 ac_c_werror_flag=$ac_save_c_werror_flag
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3201 $as_echo "$ac_cv_prog_cc_g" >&6; }
3202 if test "$ac_test_CFLAGS" = set; then
3203 CFLAGS=$ac_save_CFLAGS
3204 elif test $ac_cv_prog_cc_g = yes; then
3205 if test "$GCC" = yes; then
3206 CFLAGS="-g -O2"
3207 else
3208 CFLAGS="-g"
3210 else
3211 if test "$GCC" = yes; then
3212 CFLAGS="-O2"
3213 else
3214 CFLAGS=
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3218 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3219 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 ac_cv_prog_cc_c89=no
3223 ac_save_CC=$CC
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3226 #include <stdarg.h>
3227 #include <stdio.h>
3228 #include <sys/types.h>
3229 #include <sys/stat.h>
3230 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3231 struct buf { int x; };
3232 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3233 static char *e (p, i)
3234 char **p;
3235 int i;
3237 return p[i];
3239 static char *f (char * (*g) (char **, int), char **p, ...)
3241 char *s;
3242 va_list v;
3243 va_start (v,p);
3244 s = g (p, va_arg (v,int));
3245 va_end (v);
3246 return s;
3249 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3250 function prototypes and stuff, but not '\xHH' hex character constants.
3251 These don't provoke an error unfortunately, instead are silently treated
3252 as 'x'. The following induces an error, until -std is added to get
3253 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3254 array size at least. It's necessary to write '\x00'==0 to get something
3255 that's true only with -std. */
3256 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3258 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3259 inside strings and character constants. */
3260 #define FOO(x) 'x'
3261 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3263 int test (int i, double x);
3264 struct s1 {int (*f) (int a);};
3265 struct s2 {int (*f) (double a);};
3266 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3267 int argc;
3268 char **argv;
3270 main ()
3272 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3274 return 0;
3276 _ACEOF
3277 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3278 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3280 CC="$ac_save_CC $ac_arg"
3281 if ac_fn_c_try_compile "$LINENO"; then :
3282 ac_cv_prog_cc_c89=$ac_arg
3284 rm -f core conftest.err conftest.$ac_objext
3285 test "x$ac_cv_prog_cc_c89" != "xno" && break
3286 done
3287 rm -f conftest.$ac_ext
3288 CC=$ac_save_CC
3291 # AC_CACHE_VAL
3292 case "x$ac_cv_prog_cc_c89" in
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3295 $as_echo "none needed" >&6; } ;;
3296 xno)
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3298 $as_echo "unsupported" >&6; } ;;
3300 CC="$CC $ac_cv_prog_cc_c89"
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3302 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3303 esac
3304 if test "x$ac_cv_prog_cc_c89" != xno; then :
3308 ac_ext=c
3309 ac_cpp='$CPP $CPPFLAGS'
3310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3315 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3316 if test "${ac_cv_path_SED+set}" = set; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3320 for ac_i in 1 2 3 4 5 6 7; do
3321 ac_script="$ac_script$as_nl$ac_script"
3322 done
3323 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3324 { ac_script=; unset ac_script;}
3325 if test -z "$SED"; then
3326 ac_path_SED_found=false
3327 # Loop through the user's path and test for each of PROGNAME-LIST
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 for as_dir in $PATH
3331 IFS=$as_save_IFS
3332 test -z "$as_dir" && as_dir=.
3333 for ac_prog in sed gsed; do
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3336 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3337 # Check for GNU ac_path_SED and select it if it is found.
3338 # Check for GNU $ac_path_SED
3339 case `"$ac_path_SED" --version 2>&1` in
3340 *GNU*)
3341 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3343 ac_count=0
3344 $as_echo_n 0123456789 >"conftest.in"
3345 while :
3347 cat "conftest.in" "conftest.in" >"conftest.tmp"
3348 mv "conftest.tmp" "conftest.in"
3349 cp "conftest.in" "conftest.nl"
3350 $as_echo '' >> "conftest.nl"
3351 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3352 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3353 as_fn_arith $ac_count + 1 && ac_count=$as_val
3354 if test $ac_count -gt ${ac_path_SED_max-0}; then
3355 # Best one so far, save it but keep looking for a better one
3356 ac_cv_path_SED="$ac_path_SED"
3357 ac_path_SED_max=$ac_count
3359 # 10*(2^10) chars as input seems more than enough
3360 test $ac_count -gt 10 && break
3361 done
3362 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3363 esac
3365 $ac_path_SED_found && break 3
3366 done
3367 done
3368 done
3369 IFS=$as_save_IFS
3370 if test -z "$ac_cv_path_SED"; then
3371 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3373 else
3374 ac_cv_path_SED=$SED
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3379 $as_echo "$ac_cv_path_SED" >&6; }
3380 SED="$ac_cv_path_SED"
3381 rm -f conftest.sed
3383 test -z "$SED" && SED=sed
3384 Xsed="$SED -e 1s/^X//"
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3397 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3398 if test "${ac_cv_path_GREP+set}" = set; then :
3399 $as_echo_n "(cached) " >&6
3400 else
3401 if test -z "$GREP"; then
3402 ac_path_GREP_found=false
3403 # Loop through the user's path and test for each of PROGNAME-LIST
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3407 IFS=$as_save_IFS
3408 test -z "$as_dir" && as_dir=.
3409 for ac_prog in grep ggrep; do
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3412 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3413 # Check for GNU ac_path_GREP and select it if it is found.
3414 # Check for GNU $ac_path_GREP
3415 case `"$ac_path_GREP" --version 2>&1` in
3416 *GNU*)
3417 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3419 ac_count=0
3420 $as_echo_n 0123456789 >"conftest.in"
3421 while :
3423 cat "conftest.in" "conftest.in" >"conftest.tmp"
3424 mv "conftest.tmp" "conftest.in"
3425 cp "conftest.in" "conftest.nl"
3426 $as_echo 'GREP' >> "conftest.nl"
3427 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3428 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3429 as_fn_arith $ac_count + 1 && ac_count=$as_val
3430 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3431 # Best one so far, save it but keep looking for a better one
3432 ac_cv_path_GREP="$ac_path_GREP"
3433 ac_path_GREP_max=$ac_count
3435 # 10*(2^10) chars as input seems more than enough
3436 test $ac_count -gt 10 && break
3437 done
3438 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3439 esac
3441 $ac_path_GREP_found && break 3
3442 done
3443 done
3444 done
3445 IFS=$as_save_IFS
3446 if test -z "$ac_cv_path_GREP"; then
3447 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3449 else
3450 ac_cv_path_GREP=$GREP
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3455 $as_echo "$ac_cv_path_GREP" >&6; }
3456 GREP="$ac_cv_path_GREP"
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3460 $as_echo_n "checking for egrep... " >&6; }
3461 if test "${ac_cv_path_EGREP+set}" = set; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3465 then ac_cv_path_EGREP="$GREP -E"
3466 else
3467 if test -z "$EGREP"; then
3468 ac_path_EGREP_found=false
3469 # Loop through the user's path and test for each of PROGNAME-LIST
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3473 IFS=$as_save_IFS
3474 test -z "$as_dir" && as_dir=.
3475 for ac_prog in egrep; do
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3478 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3479 # Check for GNU ac_path_EGREP and select it if it is found.
3480 # Check for GNU $ac_path_EGREP
3481 case `"$ac_path_EGREP" --version 2>&1` in
3482 *GNU*)
3483 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3485 ac_count=0
3486 $as_echo_n 0123456789 >"conftest.in"
3487 while :
3489 cat "conftest.in" "conftest.in" >"conftest.tmp"
3490 mv "conftest.tmp" "conftest.in"
3491 cp "conftest.in" "conftest.nl"
3492 $as_echo 'EGREP' >> "conftest.nl"
3493 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3494 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3495 as_fn_arith $ac_count + 1 && ac_count=$as_val
3496 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3497 # Best one so far, save it but keep looking for a better one
3498 ac_cv_path_EGREP="$ac_path_EGREP"
3499 ac_path_EGREP_max=$ac_count
3501 # 10*(2^10) chars as input seems more than enough
3502 test $ac_count -gt 10 && break
3503 done
3504 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3505 esac
3507 $ac_path_EGREP_found && break 3
3508 done
3509 done
3510 done
3511 IFS=$as_save_IFS
3512 if test -z "$ac_cv_path_EGREP"; then
3513 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3515 else
3516 ac_cv_path_EGREP=$EGREP
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3522 $as_echo "$ac_cv_path_EGREP" >&6; }
3523 EGREP="$ac_cv_path_EGREP"
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3527 $as_echo_n "checking for fgrep... " >&6; }
3528 if test "${ac_cv_path_FGREP+set}" = set; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3532 then ac_cv_path_FGREP="$GREP -F"
3533 else
3534 if test -z "$FGREP"; then
3535 ac_path_FGREP_found=false
3536 # Loop through the user's path and test for each of PROGNAME-LIST
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3540 IFS=$as_save_IFS
3541 test -z "$as_dir" && as_dir=.
3542 for ac_prog in fgrep; do
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3545 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3546 # Check for GNU ac_path_FGREP and select it if it is found.
3547 # Check for GNU $ac_path_FGREP
3548 case `"$ac_path_FGREP" --version 2>&1` in
3549 *GNU*)
3550 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3552 ac_count=0
3553 $as_echo_n 0123456789 >"conftest.in"
3554 while :
3556 cat "conftest.in" "conftest.in" >"conftest.tmp"
3557 mv "conftest.tmp" "conftest.in"
3558 cp "conftest.in" "conftest.nl"
3559 $as_echo 'FGREP' >> "conftest.nl"
3560 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3562 as_fn_arith $ac_count + 1 && ac_count=$as_val
3563 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3564 # Best one so far, save it but keep looking for a better one
3565 ac_cv_path_FGREP="$ac_path_FGREP"
3566 ac_path_FGREP_max=$ac_count
3568 # 10*(2^10) chars as input seems more than enough
3569 test $ac_count -gt 10 && break
3570 done
3571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3572 esac
3574 $ac_path_FGREP_found && break 3
3575 done
3576 done
3577 done
3578 IFS=$as_save_IFS
3579 if test -z "$ac_cv_path_FGREP"; then
3580 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3582 else
3583 ac_cv_path_FGREP=$FGREP
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3589 $as_echo "$ac_cv_path_FGREP" >&6; }
3590 FGREP="$ac_cv_path_FGREP"
3593 test -z "$GREP" && GREP=grep
3613 # Check whether --with-gnu-ld was given.
3614 if test "${with_gnu_ld+set}" = set; then :
3615 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3616 else
3617 with_gnu_ld=no
3620 ac_prog=ld
3621 if test "$GCC" = yes; then
3622 # Check if gcc -print-prog-name=ld gives a path.
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3624 $as_echo_n "checking for ld used by $CC... " >&6; }
3625 case $host in
3626 *-*-mingw*)
3627 # gcc leaves a trailing carriage return which upsets mingw
3628 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3630 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3631 esac
3632 case $ac_prog in
3633 # Accept absolute paths.
3634 [\\/]* | ?:[\\/]*)
3635 re_direlt='/[^/][^/]*/\.\./'
3636 # Canonicalize the pathname of ld
3637 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3638 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3639 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3640 done
3641 test -z "$LD" && LD="$ac_prog"
3644 # If it fails, then pretend we aren't using GCC.
3645 ac_prog=ld
3648 # If it is relative, then search for the first ld in PATH.
3649 with_gnu_ld=unknown
3651 esac
3652 elif test "$with_gnu_ld" = yes; then
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3654 $as_echo_n "checking for GNU ld... " >&6; }
3655 else
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3657 $as_echo_n "checking for non-GNU ld... " >&6; }
3659 if test "${lt_cv_path_LD+set}" = set; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 if test -z "$LD"; then
3663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3664 for ac_dir in $PATH; do
3665 IFS="$lt_save_ifs"
3666 test -z "$ac_dir" && ac_dir=.
3667 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3668 lt_cv_path_LD="$ac_dir/$ac_prog"
3669 # Check to see if the program is GNU ld. I'd rather use --version,
3670 # but apparently some variants of GNU ld only accept -v.
3671 # Break only if it was the GNU/non-GNU ld that we prefer.
3672 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3673 *GNU* | *'with BFD'*)
3674 test "$with_gnu_ld" != no && break
3677 test "$with_gnu_ld" != yes && break
3679 esac
3681 done
3682 IFS="$lt_save_ifs"
3683 else
3684 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3688 LD="$lt_cv_path_LD"
3689 if test -n "$LD"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3691 $as_echo "$LD" >&6; }
3692 else
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3696 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3698 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3699 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3703 case `$LD -v 2>&1 </dev/null` in
3704 *GNU* | *'with BFD'*)
3705 lt_cv_prog_gnu_ld=yes
3708 lt_cv_prog_gnu_ld=no
3710 esac
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
3713 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3714 with_gnu_ld=$lt_cv_prog_gnu_ld
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
3725 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3726 if test "${lt_cv_path_NM+set}" = set; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 if test -n "$NM"; then
3730 # Let the user override the test.
3731 lt_cv_path_NM="$NM"
3732 else
3733 lt_nm_to_check="${ac_tool_prefix}nm"
3734 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3735 lt_nm_to_check="$lt_nm_to_check nm"
3737 for lt_tmp_nm in $lt_nm_to_check; do
3738 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3739 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3740 IFS="$lt_save_ifs"
3741 test -z "$ac_dir" && ac_dir=.
3742 tmp_nm="$ac_dir/$lt_tmp_nm"
3743 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3744 # Check to see if the nm accepts a BSD-compat flag.
3745 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3746 # nm: unknown option "B" ignored
3747 # Tru64's nm complains that /dev/null is an invalid object file
3748 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3749 */dev/null* | *'Invalid file or object type'*)
3750 lt_cv_path_NM="$tmp_nm -B"
3751 break
3754 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3755 */dev/null*)
3756 lt_cv_path_NM="$tmp_nm -p"
3757 break
3760 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3761 continue # so that we can try to find one that supports BSD flags
3763 esac
3765 esac
3767 done
3768 IFS="$lt_save_ifs"
3769 done
3770 : ${lt_cv_path_NM=no}
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
3774 $as_echo "$lt_cv_path_NM" >&6; }
3775 if test "$lt_cv_path_NM" != "no"; then
3776 NM="$lt_cv_path_NM"
3777 else
3778 # Didn't find any BSD compatible name lister, look for dumpbin.
3779 if test -n "$ac_tool_prefix"; then
3780 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
3787 $as_echo_n "(cached) " >&6
3788 else
3789 if test -n "$DUMPBIN"; then
3790 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3791 else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3799 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3803 done
3804 done
3805 IFS=$as_save_IFS
3809 DUMPBIN=$ac_cv_prog_DUMPBIN
3810 if test -n "$DUMPBIN"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
3812 $as_echo "$DUMPBIN" >&6; }
3813 else
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3819 test -n "$DUMPBIN" && break
3820 done
3822 if test -z "$DUMPBIN"; then
3823 ac_ct_DUMPBIN=$DUMPBIN
3824 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3826 # Extract the first word of "$ac_prog", so it can be a program name with args.
3827 set dummy $ac_prog; ac_word=$2
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829 $as_echo_n "checking for $ac_word... " >&6; }
3830 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 if test -n "$ac_ct_DUMPBIN"; then
3834 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3835 else
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3843 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 break 2
3847 done
3848 done
3849 IFS=$as_save_IFS
3853 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3854 if test -n "$ac_ct_DUMPBIN"; then
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
3856 $as_echo "$ac_ct_DUMPBIN" >&6; }
3857 else
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859 $as_echo "no" >&6; }
3863 test -n "$ac_ct_DUMPBIN" && break
3864 done
3866 if test "x$ac_ct_DUMPBIN" = x; then
3867 DUMPBIN=":"
3868 else
3869 case $cross_compiling:$ac_tool_warned in
3870 yes:)
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3873 ac_tool_warned=yes ;;
3874 esac
3875 DUMPBIN=$ac_ct_DUMPBIN
3880 if test "$DUMPBIN" != ":"; then
3881 NM="$DUMPBIN"
3884 test -z "$NM" && NM=nm
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
3892 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3893 if test "${lt_cv_nm_interface+set}" = set; then :
3894 $as_echo_n "(cached) " >&6
3895 else
3896 lt_cv_nm_interface="BSD nm"
3897 echo "int some_variable = 0;" > conftest.$ac_ext
3898 (eval echo "\"\$as_me:3898: $ac_compile\"" >&5)
3899 (eval "$ac_compile" 2>conftest.err)
3900 cat conftest.err >&5
3901 (eval echo "\"\$as_me:3901: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3902 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3903 cat conftest.err >&5
3904 (eval echo "\"\$as_me:3904: output\"" >&5)
3905 cat conftest.out >&5
3906 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3907 lt_cv_nm_interface="MS dumpbin"
3909 rm -f conftest*
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
3912 $as_echo "$lt_cv_nm_interface" >&6; }
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3915 $as_echo_n "checking whether ln -s works... " >&6; }
3916 LN_S=$as_ln_s
3917 if test "$LN_S" = "ln -s"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3919 $as_echo "yes" >&6; }
3920 else
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3922 $as_echo "no, using $LN_S" >&6; }
3925 # find the maximum length of command line arguments
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
3927 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3928 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
3929 $as_echo_n "(cached) " >&6
3930 else
3932 teststring="ABCD"
3934 case $build_os in
3935 msdosdjgpp*)
3936 # On DJGPP, this test can blow up pretty badly due to problems in libc
3937 # (any single argument exceeding 2000 bytes causes a buffer overrun
3938 # during glob expansion). Even if it were fixed, the result of this
3939 # check would be larger than it should be.
3940 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3943 gnu*)
3944 # Under GNU Hurd, this test is not required because there is
3945 # no limit to the length of command line arguments.
3946 # Libtool will interpret -1 as no limit whatsoever
3947 lt_cv_sys_max_cmd_len=-1;
3950 cygwin* | mingw* | cegcc*)
3951 # On Win9x/ME, this test blows up -- it succeeds, but takes
3952 # about 5 minutes as the teststring grows exponentially.
3953 # Worse, since 9x/ME are not pre-emptively multitasking,
3954 # you end up with a "frozen" computer, even though with patience
3955 # the test eventually succeeds (with a max line length of 256k).
3956 # Instead, let's just punt: use the minimum linelength reported by
3957 # all of the supported platforms: 8192 (on NT/2K/XP).
3958 lt_cv_sys_max_cmd_len=8192;
3961 amigaos*)
3962 # On AmigaOS with pdksh, this test takes hours, literally.
3963 # So we just punt and use a minimum line length of 8192.
3964 lt_cv_sys_max_cmd_len=8192;
3967 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3968 # This has been around since 386BSD, at least. Likely further.
3969 if test -x /sbin/sysctl; then
3970 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3971 elif test -x /usr/sbin/sysctl; then
3972 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3973 else
3974 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3976 # And add a safety zone
3977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3978 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3981 interix*)
3982 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3983 lt_cv_sys_max_cmd_len=196608
3986 osf*)
3987 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3988 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3989 # nice to cause kernel panics so lets avoid the loop below.
3990 # First set a reasonable default.
3991 lt_cv_sys_max_cmd_len=16384
3993 if test -x /sbin/sysconfig; then
3994 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3995 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3996 esac
3999 sco3.2v5*)
4000 lt_cv_sys_max_cmd_len=102400
4002 sysv5* | sco5v6* | sysv4.2uw2*)
4003 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4004 if test -n "$kargmax"; then
4005 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4006 else
4007 lt_cv_sys_max_cmd_len=32768
4011 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4012 if test -n "$lt_cv_sys_max_cmd_len"; then
4013 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4015 else
4016 # Make teststring a little bigger before we do anything with it.
4017 # a 1K string should be a reasonable start.
4018 for i in 1 2 3 4 5 6 7 8 ; do
4019 teststring=$teststring$teststring
4020 done
4021 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4022 # If test is not a shell built-in, we'll probably end up computing a
4023 # maximum length that is only half of the actual maximum length, but
4024 # we can't tell.
4025 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4026 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4027 test $i != 17 # 1/2 MB should be enough
4029 i=`expr $i + 1`
4030 teststring=$teststring$teststring
4031 done
4032 # Only check the string length outside the loop.
4033 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4034 teststring=
4035 # Add a significant safety factor because C++ compilers can tack on
4036 # massive amounts of additional arguments before passing them to the
4037 # linker. It appears as though 1/2 is a usable value.
4038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4041 esac
4045 if test -n $lt_cv_sys_max_cmd_len ; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4047 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4048 else
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4050 $as_echo "none" >&6; }
4052 max_cmd_len=$lt_cv_sys_max_cmd_len
4059 : ${CP="cp -f"}
4060 : ${MV="mv -f"}
4061 : ${RM="rm -f"}
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4064 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4065 # Try some XSI features
4066 xsi_shell=no
4067 ( _lt_dummy="a/b/c"
4068 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4069 = c,a/b,, \
4070 && eval 'test $(( 1 + 1 )) -eq 2 \
4071 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4072 && xsi_shell=yes
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4074 $as_echo "$xsi_shell" >&6; }
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4078 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4079 lt_shell_append=no
4080 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4081 >/dev/null 2>&1 \
4082 && lt_shell_append=yes
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4084 $as_echo "$lt_shell_append" >&6; }
4087 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4088 lt_unset=unset
4089 else
4090 lt_unset=false
4097 # test EBCDIC or ASCII
4098 case `echo X|tr X '\101'` in
4099 A) # ASCII based system
4100 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4101 lt_SP2NL='tr \040 \012'
4102 lt_NL2SP='tr \015\012 \040\040'
4104 *) # EBCDIC based system
4105 lt_SP2NL='tr \100 \n'
4106 lt_NL2SP='tr \r\n \100\100'
4108 esac
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4119 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4120 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 lt_cv_ld_reload_flag='-r'
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4126 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4127 reload_flag=$lt_cv_ld_reload_flag
4128 case $reload_flag in
4129 "" | " "*) ;;
4130 *) reload_flag=" $reload_flag" ;;
4131 esac
4132 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4133 case $host_os in
4134 darwin*)
4135 if test "$GCC" = yes; then
4136 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4137 else
4138 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4141 esac
4151 if test -n "$ac_tool_prefix"; then
4152 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4153 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 if test -n "$OBJDUMP"; then
4160 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4173 done
4174 done
4175 IFS=$as_save_IFS
4179 OBJDUMP=$ac_cv_prog_OBJDUMP
4180 if test -n "$OBJDUMP"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4182 $as_echo "$OBJDUMP" >&6; }
4183 else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4190 if test -z "$ac_cv_prog_OBJDUMP"; then
4191 ac_ct_OBJDUMP=$OBJDUMP
4192 # Extract the first word of "objdump", so it can be a program name with args.
4193 set dummy objdump; ac_word=$2
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195 $as_echo_n "checking for $ac_word... " >&6; }
4196 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4197 $as_echo_n "(cached) " >&6
4198 else
4199 if test -n "$ac_ct_OBJDUMP"; then
4200 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4201 else
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4209 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 break 2
4213 done
4214 done
4215 IFS=$as_save_IFS
4219 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4220 if test -n "$ac_ct_OBJDUMP"; then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4222 $as_echo "$ac_ct_OBJDUMP" >&6; }
4223 else
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225 $as_echo "no" >&6; }
4228 if test "x$ac_ct_OBJDUMP" = x; then
4229 OBJDUMP="false"
4230 else
4231 case $cross_compiling:$ac_tool_warned in
4232 yes:)
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4235 ac_tool_warned=yes ;;
4236 esac
4237 OBJDUMP=$ac_ct_OBJDUMP
4239 else
4240 OBJDUMP="$ac_cv_prog_OBJDUMP"
4243 test -z "$OBJDUMP" && OBJDUMP=objdump
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4254 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4255 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4256 $as_echo_n "(cached) " >&6
4257 else
4258 lt_cv_file_magic_cmd='$MAGIC_CMD'
4259 lt_cv_file_magic_test_file=
4260 lt_cv_deplibs_check_method='unknown'
4261 # Need to set the preceding variable on all platforms that support
4262 # interlibrary dependencies.
4263 # 'none' -- dependencies not supported.
4264 # `unknown' -- same as none, but documents that we really don't know.
4265 # 'pass_all' -- all dependencies passed with no checks.
4266 # 'test_compile' -- check by making test program.
4267 # 'file_magic [[regex]]' -- check by looking for files in library path
4268 # which responds to the $file_magic_cmd with a given extended regex.
4269 # If you have `file' or equivalent on your system and you're not sure
4270 # whether `pass_all' will *always* work, you probably want this one.
4272 case $host_os in
4273 aix[4-9]*)
4274 lt_cv_deplibs_check_method=pass_all
4277 beos*)
4278 lt_cv_deplibs_check_method=pass_all
4281 bsdi[45]*)
4282 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4283 lt_cv_file_magic_cmd='/usr/bin/file -L'
4284 lt_cv_file_magic_test_file=/shlib/libc.so
4287 cygwin*)
4288 # func_win32_libid is a shell function defined in ltmain.sh
4289 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4290 lt_cv_file_magic_cmd='func_win32_libid'
4293 mingw* | pw32*)
4294 # Base MSYS/MinGW do not provide the 'file' command needed by
4295 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4296 # unless we find 'file', for example because we are cross-compiling.
4297 if ( file / ) >/dev/null 2>&1; then
4298 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4299 lt_cv_file_magic_cmd='func_win32_libid'
4300 else
4301 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4302 lt_cv_file_magic_cmd='$OBJDUMP -f'
4306 cegcc)
4307 # use the weaker test based on 'objdump'. See mingw*.
4308 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4309 lt_cv_file_magic_cmd='$OBJDUMP -f'
4312 darwin* | rhapsody*)
4313 lt_cv_deplibs_check_method=pass_all
4316 freebsd* | dragonfly*)
4317 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4318 case $host_cpu in
4319 i*86 )
4320 # Not sure whether the presence of OpenBSD here was a mistake.
4321 # Let's accept both of them until this is cleared up.
4322 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4323 lt_cv_file_magic_cmd=/usr/bin/file
4324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4326 esac
4327 else
4328 lt_cv_deplibs_check_method=pass_all
4332 gnu*)
4333 lt_cv_deplibs_check_method=pass_all
4336 hpux10.20* | hpux11*)
4337 lt_cv_file_magic_cmd=/usr/bin/file
4338 case $host_cpu in
4339 ia64*)
4340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4341 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4343 hppa*64*)
4344 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]'
4345 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4349 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4351 esac
4354 interix[3-9]*)
4355 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4359 irix5* | irix6* | nonstopux*)
4360 case $LD in
4361 *-32|*"-32 ") libmagic=32-bit;;
4362 *-n32|*"-n32 ") libmagic=N32;;
4363 *-64|*"-64 ") libmagic=64-bit;;
4364 *) libmagic=never-match;;
4365 esac
4366 lt_cv_deplibs_check_method=pass_all
4369 # This must be Linux ELF.
4370 linux* | k*bsd*-gnu)
4371 lt_cv_deplibs_check_method=pass_all
4374 netbsd*)
4375 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4377 else
4378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4382 newos6*)
4383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4384 lt_cv_file_magic_cmd=/usr/bin/file
4385 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4388 *nto* | *qnx*)
4389 lt_cv_deplibs_check_method=pass_all
4392 openbsd*)
4393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4395 else
4396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4400 osf3* | osf4* | osf5*)
4401 lt_cv_deplibs_check_method=pass_all
4404 rdos*)
4405 lt_cv_deplibs_check_method=pass_all
4408 solaris*)
4409 lt_cv_deplibs_check_method=pass_all
4412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4413 lt_cv_deplibs_check_method=pass_all
4416 sysv4 | sysv4.3*)
4417 case $host_vendor in
4418 motorola)
4419 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]'
4420 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4422 ncr)
4423 lt_cv_deplibs_check_method=pass_all
4425 sequent)
4426 lt_cv_file_magic_cmd='/bin/file'
4427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4429 sni)
4430 lt_cv_file_magic_cmd='/bin/file'
4431 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4432 lt_cv_file_magic_test_file=/lib/libc.so
4434 siemens)
4435 lt_cv_deplibs_check_method=pass_all
4438 lt_cv_deplibs_check_method=pass_all
4440 esac
4443 tpf*)
4444 lt_cv_deplibs_check_method=pass_all
4446 esac
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4450 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4451 file_magic_cmd=$lt_cv_file_magic_cmd
4452 deplibs_check_method=$lt_cv_deplibs_check_method
4453 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4466 if test -n "$ac_tool_prefix"; then
4467 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4468 set dummy ${ac_tool_prefix}ar; ac_word=$2
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470 $as_echo_n "checking for $ac_word... " >&6; }
4471 if test "${ac_cv_prog_AR+set}" = set; then :
4472 $as_echo_n "(cached) " >&6
4473 else
4474 if test -n "$AR"; then
4475 ac_cv_prog_AR="$AR" # Let the user override the test.
4476 else
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 ac_cv_prog_AR="${ac_tool_prefix}ar"
4485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 break 2
4488 done
4489 done
4490 IFS=$as_save_IFS
4494 AR=$ac_cv_prog_AR
4495 if test -n "$AR"; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4497 $as_echo "$AR" >&6; }
4498 else
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4505 if test -z "$ac_cv_prog_AR"; then
4506 ac_ct_AR=$AR
4507 # Extract the first word of "ar", so it can be a program name with args.
4508 set dummy ar; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -n "$ac_ct_AR"; then
4515 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 ac_cv_prog_ac_ct_AR="ar"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4528 done
4529 done
4530 IFS=$as_save_IFS
4534 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4535 if test -n "$ac_ct_AR"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4537 $as_echo "$ac_ct_AR" >&6; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4543 if test "x$ac_ct_AR" = x; then
4544 AR="false"
4545 else
4546 case $cross_compiling:$ac_tool_warned in
4547 yes:)
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4550 ac_tool_warned=yes ;;
4551 esac
4552 AR=$ac_ct_AR
4554 else
4555 AR="$ac_cv_prog_AR"
4558 test -z "$AR" && AR=ar
4559 test -z "$AR_FLAGS" && AR_FLAGS=cru
4571 if test -n "$ac_tool_prefix"; then
4572 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4573 set dummy ${ac_tool_prefix}strip; ac_word=$2
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4575 $as_echo_n "checking for $ac_word... " >&6; }
4576 if test "${ac_cv_prog_STRIP+set}" = set; then :
4577 $as_echo_n "(cached) " >&6
4578 else
4579 if test -n "$STRIP"; then
4580 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4581 else
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583 for as_dir in $PATH
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4589 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 break 2
4593 done
4594 done
4595 IFS=$as_save_IFS
4599 STRIP=$ac_cv_prog_STRIP
4600 if test -n "$STRIP"; then
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4602 $as_echo "$STRIP" >&6; }
4603 else
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4610 if test -z "$ac_cv_prog_STRIP"; then
4611 ac_ct_STRIP=$STRIP
4612 # Extract the first word of "strip", so it can be a program name with args.
4613 set dummy strip; ac_word=$2
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4615 $as_echo_n "checking for $ac_word... " >&6; }
4616 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 if test -n "$ac_ct_STRIP"; then
4620 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_ac_ct_STRIP="strip"
4630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 break 2
4633 done
4634 done
4635 IFS=$as_save_IFS
4639 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4640 if test -n "$ac_ct_STRIP"; then
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4642 $as_echo "$ac_ct_STRIP" >&6; }
4643 else
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4648 if test "x$ac_ct_STRIP" = x; then
4649 STRIP=":"
4650 else
4651 case $cross_compiling:$ac_tool_warned in
4652 yes:)
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4655 ac_tool_warned=yes ;;
4656 esac
4657 STRIP=$ac_ct_STRIP
4659 else
4660 STRIP="$ac_cv_prog_STRIP"
4663 test -z "$STRIP" && STRIP=:
4670 if test -n "$ac_tool_prefix"; then
4671 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4672 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test -n "$RANLIB"; then
4679 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4692 done
4693 done
4694 IFS=$as_save_IFS
4698 RANLIB=$ac_cv_prog_RANLIB
4699 if test -n "$RANLIB"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4701 $as_echo "$RANLIB" >&6; }
4702 else
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4709 if test -z "$ac_cv_prog_RANLIB"; then
4710 ac_ct_RANLIB=$RANLIB
4711 # Extract the first word of "ranlib", so it can be a program name with args.
4712 set dummy ranlib; ac_word=$2
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4714 $as_echo_n "checking for $ac_word... " >&6; }
4715 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -n "$ac_ct_RANLIB"; then
4719 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4720 else
4721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
4726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728 ac_cv_prog_ac_ct_RANLIB="ranlib"
4729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 break 2
4732 done
4733 done
4734 IFS=$as_save_IFS
4738 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4739 if test -n "$ac_ct_RANLIB"; then
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4741 $as_echo "$ac_ct_RANLIB" >&6; }
4742 else
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4744 $as_echo "no" >&6; }
4747 if test "x$ac_ct_RANLIB" = x; then
4748 RANLIB=":"
4749 else
4750 case $cross_compiling:$ac_tool_warned in
4751 yes:)
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4754 ac_tool_warned=yes ;;
4755 esac
4756 RANLIB=$ac_ct_RANLIB
4758 else
4759 RANLIB="$ac_cv_prog_RANLIB"
4762 test -z "$RANLIB" && RANLIB=:
4769 # Determine commands to create old-style static archives.
4770 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4771 old_postinstall_cmds='chmod 644 $oldlib'
4772 old_postuninstall_cmds=
4774 if test -n "$RANLIB"; then
4775 case $host_os in
4776 openbsd*)
4777 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4780 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4782 esac
4783 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4819 # If no C compiler was specified, use CC.
4820 LTCC=${LTCC-"$CC"}
4822 # If no C compiler flags were specified, use CFLAGS.
4823 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4825 # Allow CC to be a program name with arguments.
4826 compiler=$CC
4829 # Check for command to grab the raw symbol name followed by C symbol from nm.
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
4831 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4832 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4836 # These are sane defaults that work on at least a few old systems.
4837 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4839 # Character class describing NM global symbol codes.
4840 symcode='[BCDEGRST]'
4842 # Regexp to match symbols that can be accessed directly from C.
4843 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4845 # Define system-specific variables.
4846 case $host_os in
4847 aix*)
4848 symcode='[BCDT]'
4850 cygwin* | mingw* | pw32* | cegcc*)
4851 symcode='[ABCDGISTW]'
4853 hpux*)
4854 if test "$host_cpu" = ia64; then
4855 symcode='[ABCDEGRST]'
4858 irix* | nonstopux*)
4859 symcode='[BCDEGRST]'
4861 osf*)
4862 symcode='[BCDEGQRST]'
4864 solaris*)
4865 symcode='[BDRT]'
4867 sco3.2v5*)
4868 symcode='[DT]'
4870 sysv4.2uw2*)
4871 symcode='[DT]'
4873 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4874 symcode='[ABDT]'
4876 sysv4)
4877 symcode='[DFNSTU]'
4879 esac
4881 # If we're using GNU nm, then use its standard symbol codes.
4882 case `$NM -V 2>&1` in
4883 *GNU* | *'with BFD'*)
4884 symcode='[ABCDGIRSTW]' ;;
4885 esac
4887 # Transform an extracted symbol line into a proper C declaration.
4888 # Some systems (esp. on ia64) link data and code symbols differently,
4889 # so use this general approach.
4890 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4892 # Transform an extracted symbol line into symbol name and symbol address
4893 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4894 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'"
4896 # Handle CRLF in mingw tool chain
4897 opt_cr=
4898 case $build_os in
4899 mingw*)
4900 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4902 esac
4904 # Try without a prefix underscore, then with it.
4905 for ac_symprfx in "" "_"; do
4907 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4908 symxfrm="\\1 $ac_symprfx\\2 \\2"
4910 # Write the raw and C identifiers.
4911 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4912 # Fake it for dumpbin and say T for any non-static function
4913 # and D for any global variable.
4914 # Also find C++ and __fastcall symbols from MSVC++,
4915 # which start with @ or ?.
4916 lt_cv_sys_global_symbol_pipe="$AWK '"\
4917 " {last_section=section; section=\$ 3};"\
4918 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4919 " \$ 0!~/External *\|/{next};"\
4920 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4921 " {if(hide[section]) next};"\
4922 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4923 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4924 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4925 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4926 " ' prfx=^$ac_symprfx"
4927 else
4928 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4931 # Check to see that the pipe works correctly.
4932 pipe_works=no
4934 rm -f conftest*
4935 cat > conftest.$ac_ext <<_LT_EOF
4936 #ifdef __cplusplus
4937 extern "C" {
4938 #endif
4939 char nm_test_var;
4940 void nm_test_func(void);
4941 void nm_test_func(void){}
4942 #ifdef __cplusplus
4944 #endif
4945 int main(){nm_test_var='a';nm_test_func();return(0);}
4946 _LT_EOF
4948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4949 (eval $ac_compile) 2>&5
4950 ac_status=$?
4951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4952 test $ac_status = 0; }; then
4953 # Now try to grab the symbols.
4954 nlist=conftest.nm
4955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
4956 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4957 ac_status=$?
4958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4959 test $ac_status = 0; } && test -s "$nlist"; then
4960 # Try sorting and uniquifying the output.
4961 if sort "$nlist" | uniq > "$nlist"T; then
4962 mv -f "$nlist"T "$nlist"
4963 else
4964 rm -f "$nlist"T
4967 # Make sure that we snagged all the symbols we need.
4968 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4969 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4970 cat <<_LT_EOF > conftest.$ac_ext
4971 #ifdef __cplusplus
4972 extern "C" {
4973 #endif
4975 _LT_EOF
4976 # Now generate the symbol file.
4977 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4979 cat <<_LT_EOF >> conftest.$ac_ext
4981 /* The mapping between symbol names and symbols. */
4982 const struct {
4983 const char *name;
4984 void *address;
4986 lt__PROGRAM__LTX_preloaded_symbols[] =
4988 { "@PROGRAM@", (void *) 0 },
4989 _LT_EOF
4990 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4991 cat <<\_LT_EOF >> conftest.$ac_ext
4992 {0, (void *) 0}
4995 /* This works around a problem in FreeBSD linker */
4996 #ifdef FREEBSD_WORKAROUND
4997 static const void *lt_preloaded_setup() {
4998 return lt__PROGRAM__LTX_preloaded_symbols;
5000 #endif
5002 #ifdef __cplusplus
5004 #endif
5005 _LT_EOF
5006 # Now try linking the two files.
5007 mv conftest.$ac_objext conftstm.$ac_objext
5008 lt_save_LIBS="$LIBS"
5009 lt_save_CFLAGS="$CFLAGS"
5010 LIBS="conftstm.$ac_objext"
5011 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5013 (eval $ac_link) 2>&5
5014 ac_status=$?
5015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5016 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5017 pipe_works=yes
5019 LIBS="$lt_save_LIBS"
5020 CFLAGS="$lt_save_CFLAGS"
5021 else
5022 echo "cannot find nm_test_func in $nlist" >&5
5024 else
5025 echo "cannot find nm_test_var in $nlist" >&5
5027 else
5028 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5030 else
5031 echo "$progname: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5034 rm -rf conftest* conftst*
5036 # Do not use the global_symbol_pipe unless it works.
5037 if test "$pipe_works" = yes; then
5038 break
5039 else
5040 lt_cv_sys_global_symbol_pipe=
5042 done
5046 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5047 lt_cv_sys_global_symbol_to_cdecl=
5049 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5051 $as_echo "failed" >&6; }
5052 else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5054 $as_echo "ok" >&6; }
5079 # Check whether --enable-libtool-lock was given.
5080 if test "${enable_libtool_lock+set}" = set; then :
5081 enableval=$enable_libtool_lock;
5084 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5086 # Some flags need to be propagated to the compiler or linker for good
5087 # libtool support.
5088 case $host in
5089 ia64-*-hpux*)
5090 # Find out which ABI we are using.
5091 echo 'int i;' > conftest.$ac_ext
5092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5093 (eval $ac_compile) 2>&5
5094 ac_status=$?
5095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5096 test $ac_status = 0; }; then
5097 case `/usr/bin/file conftest.$ac_objext` in
5098 *ELF-32*)
5099 HPUX_IA64_MODE="32"
5101 *ELF-64*)
5102 HPUX_IA64_MODE="64"
5104 esac
5106 rm -rf conftest*
5108 *-*-irix6*)
5109 # Find out which ABI we are using.
5110 echo '#line 5110 "configure"' > conftest.$ac_ext
5111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5112 (eval $ac_compile) 2>&5
5113 ac_status=$?
5114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5115 test $ac_status = 0; }; then
5116 if test "$lt_cv_prog_gnu_ld" = yes; then
5117 case `/usr/bin/file conftest.$ac_objext` in
5118 *32-bit*)
5119 LD="${LD-ld} -melf32bsmip"
5121 *N32*)
5122 LD="${LD-ld} -melf32bmipn32"
5124 *64-bit*)
5125 LD="${LD-ld} -melf64bmip"
5127 esac
5128 else
5129 case `/usr/bin/file conftest.$ac_objext` in
5130 *32-bit*)
5131 LD="${LD-ld} -32"
5133 *N32*)
5134 LD="${LD-ld} -n32"
5136 *64-bit*)
5137 LD="${LD-ld} -64"
5139 esac
5142 rm -rf conftest*
5145 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5146 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5147 # Find out which ABI we are using.
5148 echo 'int i;' > conftest.$ac_ext
5149 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5150 (eval $ac_compile) 2>&5
5151 ac_status=$?
5152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5153 test $ac_status = 0; }; then
5154 case `/usr/bin/file conftest.o` in
5155 *32-bit*)
5156 case $host in
5157 x86_64-*kfreebsd*-gnu)
5158 LD="${LD-ld} -m elf_i386_fbsd"
5160 x86_64-*linux*)
5161 LD="${LD-ld} -m elf_i386"
5163 ppc64-*linux*|powerpc64-*linux*)
5164 LD="${LD-ld} -m elf32ppclinux"
5166 s390x-*linux*)
5167 LD="${LD-ld} -m elf_s390"
5169 sparc64-*linux*)
5170 LD="${LD-ld} -m elf32_sparc"
5172 esac
5174 *64-bit*)
5175 case $host in
5176 x86_64-*kfreebsd*-gnu)
5177 LD="${LD-ld} -m elf_x86_64_fbsd"
5179 x86_64-*linux*)
5180 LD="${LD-ld} -m elf_x86_64"
5182 ppc*-*linux*|powerpc*-*linux*)
5183 LD="${LD-ld} -m elf64ppc"
5185 s390*-*linux*|s390*-*tpf*)
5186 LD="${LD-ld} -m elf64_s390"
5188 sparc*-*linux*)
5189 LD="${LD-ld} -m elf64_sparc"
5191 esac
5193 esac
5195 rm -rf conftest*
5198 *-*-sco3.2v5*)
5199 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5200 SAVE_CFLAGS="$CFLAGS"
5201 CFLAGS="$CFLAGS -belf"
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5203 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5204 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 ac_ext=c
5208 ac_cpp='$CPP $CPPFLAGS'
5209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5217 main ()
5221 return 0;
5223 _ACEOF
5224 if ac_fn_c_try_link "$LINENO"; then :
5225 lt_cv_cc_needs_belf=yes
5226 else
5227 lt_cv_cc_needs_belf=no
5229 rm -f core conftest.err conftest.$ac_objext \
5230 conftest$ac_exeext conftest.$ac_ext
5231 ac_ext=c
5232 ac_cpp='$CPP $CPPFLAGS'
5233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5239 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5240 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5241 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5242 CFLAGS="$SAVE_CFLAGS"
5245 sparc*-*solaris*)
5246 # Find out which ABI we are using.
5247 echo 'int i;' > conftest.$ac_ext
5248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5249 (eval $ac_compile) 2>&5
5250 ac_status=$?
5251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5252 test $ac_status = 0; }; then
5253 case `/usr/bin/file conftest.o` in
5254 *64-bit*)
5255 case $lt_cv_prog_gnu_ld in
5256 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5258 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5259 LD="${LD-ld} -64"
5262 esac
5264 esac
5266 rm -rf conftest*
5268 esac
5270 need_locks="$enable_libtool_lock"
5273 case $host_os in
5274 rhapsody* | darwin*)
5275 if test -n "$ac_tool_prefix"; then
5276 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5277 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 if test -n "$DSYMUTIL"; then
5284 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5285 else
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5297 done
5298 done
5299 IFS=$as_save_IFS
5303 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5304 if test -n "$DSYMUTIL"; then
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5306 $as_echo "$DSYMUTIL" >&6; }
5307 else
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5309 $as_echo "no" >&6; }
5314 if test -z "$ac_cv_prog_DSYMUTIL"; then
5315 ac_ct_DSYMUTIL=$DSYMUTIL
5316 # Extract the first word of "dsymutil", so it can be a program name with args.
5317 set dummy dsymutil; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -n "$ac_ct_DSYMUTIL"; then
5324 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5325 else
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327 for as_dir in $PATH
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 break 2
5337 done
5338 done
5339 IFS=$as_save_IFS
5343 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5344 if test -n "$ac_ct_DSYMUTIL"; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5346 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5349 $as_echo "no" >&6; }
5352 if test "x$ac_ct_DSYMUTIL" = x; then
5353 DSYMUTIL=":"
5354 else
5355 case $cross_compiling:$ac_tool_warned in
5356 yes:)
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5359 ac_tool_warned=yes ;;
5360 esac
5361 DSYMUTIL=$ac_ct_DSYMUTIL
5363 else
5364 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5367 if test -n "$ac_tool_prefix"; then
5368 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5369 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5371 $as_echo_n "checking for $ac_word... " >&6; }
5372 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5373 $as_echo_n "(cached) " >&6
5374 else
5375 if test -n "$NMEDIT"; then
5376 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5377 else
5378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 for as_dir in $PATH
5381 IFS=$as_save_IFS
5382 test -z "$as_dir" && as_dir=.
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5385 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5387 break 2
5389 done
5390 done
5391 IFS=$as_save_IFS
5395 NMEDIT=$ac_cv_prog_NMEDIT
5396 if test -n "$NMEDIT"; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5398 $as_echo "$NMEDIT" >&6; }
5399 else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5401 $as_echo "no" >&6; }
5406 if test -z "$ac_cv_prog_NMEDIT"; then
5407 ac_ct_NMEDIT=$NMEDIT
5408 # Extract the first word of "nmedit", so it can be a program name with args.
5409 set dummy nmedit; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 if test -n "$ac_ct_NMEDIT"; then
5416 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427 break 2
5429 done
5430 done
5431 IFS=$as_save_IFS
5435 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5436 if test -n "$ac_ct_NMEDIT"; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5438 $as_echo "$ac_ct_NMEDIT" >&6; }
5439 else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5444 if test "x$ac_ct_NMEDIT" = x; then
5445 NMEDIT=":"
5446 else
5447 case $cross_compiling:$ac_tool_warned in
5448 yes:)
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5451 ac_tool_warned=yes ;;
5452 esac
5453 NMEDIT=$ac_ct_NMEDIT
5455 else
5456 NMEDIT="$ac_cv_prog_NMEDIT"
5459 if test -n "$ac_tool_prefix"; then
5460 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5461 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5463 $as_echo_n "checking for $ac_word... " >&6; }
5464 if test "${ac_cv_prog_LIPO+set}" = set; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$LIPO"; then
5468 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5469 else
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5477 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5481 done
5482 done
5483 IFS=$as_save_IFS
5487 LIPO=$ac_cv_prog_LIPO
5488 if test -n "$LIPO"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
5490 $as_echo "$LIPO" >&6; }
5491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5493 $as_echo "no" >&6; }
5498 if test -z "$ac_cv_prog_LIPO"; then
5499 ac_ct_LIPO=$LIPO
5500 # Extract the first word of "lipo", so it can be a program name with args.
5501 set dummy lipo; ac_word=$2
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5503 $as_echo_n "checking for $ac_word... " >&6; }
5504 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if test -n "$ac_ct_LIPO"; then
5508 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5509 else
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5517 ac_cv_prog_ac_ct_LIPO="lipo"
5518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5519 break 2
5521 done
5522 done
5523 IFS=$as_save_IFS
5527 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5528 if test -n "$ac_ct_LIPO"; then
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
5530 $as_echo "$ac_ct_LIPO" >&6; }
5531 else
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5533 $as_echo "no" >&6; }
5536 if test "x$ac_ct_LIPO" = x; then
5537 LIPO=":"
5538 else
5539 case $cross_compiling:$ac_tool_warned in
5540 yes:)
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5543 ac_tool_warned=yes ;;
5544 esac
5545 LIPO=$ac_ct_LIPO
5547 else
5548 LIPO="$ac_cv_prog_LIPO"
5551 if test -n "$ac_tool_prefix"; then
5552 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5553 set dummy ${ac_tool_prefix}otool; ac_word=$2
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if test "${ac_cv_prog_OTOOL+set}" = set; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 if test -n "$OTOOL"; then
5560 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5569 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5573 done
5574 done
5575 IFS=$as_save_IFS
5579 OTOOL=$ac_cv_prog_OTOOL
5580 if test -n "$OTOOL"; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5582 $as_echo "$OTOOL" >&6; }
5583 else
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 $as_echo "no" >&6; }
5590 if test -z "$ac_cv_prog_OTOOL"; then
5591 ac_ct_OTOOL=$OTOOL
5592 # Extract the first word of "otool", so it can be a program name with args.
5593 set dummy otool; ac_word=$2
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5595 $as_echo_n "checking for $ac_word... " >&6; }
5596 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
5597 $as_echo_n "(cached) " >&6
5598 else
5599 if test -n "$ac_ct_OTOOL"; then
5600 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609 ac_cv_prog_ac_ct_OTOOL="otool"
5610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5613 done
5614 done
5615 IFS=$as_save_IFS
5619 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5620 if test -n "$ac_ct_OTOOL"; then
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
5622 $as_echo "$ac_ct_OTOOL" >&6; }
5623 else
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5628 if test "x$ac_ct_OTOOL" = x; then
5629 OTOOL=":"
5630 else
5631 case $cross_compiling:$ac_tool_warned in
5632 yes:)
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5635 ac_tool_warned=yes ;;
5636 esac
5637 OTOOL=$ac_ct_OTOOL
5639 else
5640 OTOOL="$ac_cv_prog_OTOOL"
5643 if test -n "$ac_tool_prefix"; then
5644 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5645 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 if test -n "$OTOOL64"; then
5652 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5657 IFS=$as_save_IFS
5658 test -z "$as_dir" && as_dir=.
5659 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 break 2
5665 done
5666 done
5667 IFS=$as_save_IFS
5671 OTOOL64=$ac_cv_prog_OTOOL64
5672 if test -n "$OTOOL64"; then
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
5674 $as_echo "$OTOOL64" >&6; }
5675 else
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5682 if test -z "$ac_cv_prog_OTOOL64"; then
5683 ac_ct_OTOOL64=$OTOOL64
5684 # Extract the first word of "otool64", so it can be a program name with args.
5685 set dummy otool64; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 if test -n "$ac_ct_OTOOL64"; then
5692 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5701 ac_cv_prog_ac_ct_OTOOL64="otool64"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5705 done
5706 done
5707 IFS=$as_save_IFS
5711 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5712 if test -n "$ac_ct_OTOOL64"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
5714 $as_echo "$ac_ct_OTOOL64" >&6; }
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5720 if test "x$ac_ct_OTOOL64" = x; then
5721 OTOOL64=":"
5722 else
5723 case $cross_compiling:$ac_tool_warned in
5724 yes:)
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5727 ac_tool_warned=yes ;;
5728 esac
5729 OTOOL64=$ac_ct_OTOOL64
5731 else
5732 OTOOL64="$ac_cv_prog_OTOOL64"
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
5762 $as_echo_n "checking for -single_module linker flag... " >&6; }
5763 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
5764 $as_echo_n "(cached) " >&6
5765 else
5766 lt_cv_apple_cc_single_mod=no
5767 if test -z "${LT_MULTI_MODULE}"; then
5768 # By default we will add the -single_module flag. You can override
5769 # by either setting the environment variable LT_MULTI_MODULE
5770 # non-empty at configure time, or by adding -multi_module to the
5771 # link flags.
5772 rm -rf libconftest.dylib*
5773 echo "int foo(void){return 1;}" > conftest.c
5774 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5775 -dynamiclib -Wl,-single_module conftest.c" >&5
5776 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5777 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5778 _lt_result=$?
5779 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5780 lt_cv_apple_cc_single_mod=yes
5781 else
5782 cat conftest.err >&5
5784 rm -rf libconftest.dylib*
5785 rm -f conftest.*
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
5789 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
5791 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5792 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 lt_cv_ld_exported_symbols_list=no
5796 save_LDFLAGS=$LDFLAGS
5797 echo "_main" > conftest.sym
5798 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800 /* end confdefs.h. */
5803 main ()
5807 return 0;
5809 _ACEOF
5810 if ac_fn_c_try_link "$LINENO"; then :
5811 lt_cv_ld_exported_symbols_list=yes
5812 else
5813 lt_cv_ld_exported_symbols_list=no
5815 rm -f core conftest.err conftest.$ac_objext \
5816 conftest$ac_exeext conftest.$ac_ext
5817 LDFLAGS="$save_LDFLAGS"
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
5821 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5822 case $host_os in
5823 rhapsody* | darwin1.[012])
5824 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5825 darwin1.*)
5826 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5827 darwin*) # darwin 5.x on
5828 # if running on 10.5 or later, the deployment target defaults
5829 # to the OS version, if on x86, and 10.4, the deployment
5830 # target defaults to 10.4. Don't you love it?
5831 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5832 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5833 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5834 10.[012]*)
5835 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5836 10.*)
5837 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5838 esac
5840 esac
5841 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5842 _lt_dar_single_mod='$single_module'
5844 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5845 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5846 else
5847 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5849 if test "$DSYMUTIL" != ":"; then
5850 _lt_dsymutil='~$DSYMUTIL $lib || :'
5851 else
5852 _lt_dsymutil=
5855 esac
5857 ac_ext=c
5858 ac_cpp='$CPP $CPPFLAGS'
5859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5863 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5864 # On Suns, sometimes $CPP names a directory.
5865 if test -n "$CPP" && test -d "$CPP"; then
5866 CPP=
5868 if test -z "$CPP"; then
5869 if test "${ac_cv_prog_CPP+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 # Double quotes because CPP needs to be expanded
5873 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5875 ac_preproc_ok=false
5876 for ac_c_preproc_warn_flag in '' yes
5878 # Use a header file that comes with gcc, so configuring glibc
5879 # with a fresh cross-compiler works.
5880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5881 # <limits.h> exists even on freestanding compilers.
5882 # On the NeXT, cc -E runs the code through the compiler's parser,
5883 # not just through cpp. "Syntax error" is here to catch this case.
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 #ifdef __STDC__
5887 # include <limits.h>
5888 #else
5889 # include <assert.h>
5890 #endif
5891 Syntax error
5892 _ACEOF
5893 if ac_fn_c_try_cpp "$LINENO"; then :
5895 else
5896 # Broken: fails on valid input.
5897 continue
5899 rm -f conftest.err conftest.i conftest.$ac_ext
5901 # OK, works on sane cases. Now check whether nonexistent headers
5902 # can be detected and how.
5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5905 #include <ac_nonexistent.h>
5906 _ACEOF
5907 if ac_fn_c_try_cpp "$LINENO"; then :
5908 # Broken: success on invalid input.
5909 continue
5910 else
5911 # Passes both tests.
5912 ac_preproc_ok=:
5913 break
5915 rm -f conftest.err conftest.i conftest.$ac_ext
5917 done
5918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5919 rm -f conftest.i conftest.err conftest.$ac_ext
5920 if $ac_preproc_ok; then :
5921 break
5924 done
5925 ac_cv_prog_CPP=$CPP
5928 CPP=$ac_cv_prog_CPP
5929 else
5930 ac_cv_prog_CPP=$CPP
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5933 $as_echo "$CPP" >&6; }
5934 ac_preproc_ok=false
5935 for ac_c_preproc_warn_flag in '' yes
5937 # Use a header file that comes with gcc, so configuring glibc
5938 # with a fresh cross-compiler works.
5939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5940 # <limits.h> exists even on freestanding compilers.
5941 # On the NeXT, cc -E runs the code through the compiler's parser,
5942 # not just through cpp. "Syntax error" is here to catch this case.
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944 /* end confdefs.h. */
5945 #ifdef __STDC__
5946 # include <limits.h>
5947 #else
5948 # include <assert.h>
5949 #endif
5950 Syntax error
5951 _ACEOF
5952 if ac_fn_c_try_cpp "$LINENO"; then :
5954 else
5955 # Broken: fails on valid input.
5956 continue
5958 rm -f conftest.err conftest.i conftest.$ac_ext
5960 # OK, works on sane cases. Now check whether nonexistent headers
5961 # can be detected and how.
5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963 /* end confdefs.h. */
5964 #include <ac_nonexistent.h>
5965 _ACEOF
5966 if ac_fn_c_try_cpp "$LINENO"; then :
5967 # Broken: success on invalid input.
5968 continue
5969 else
5970 # Passes both tests.
5971 ac_preproc_ok=:
5972 break
5974 rm -f conftest.err conftest.i conftest.$ac_ext
5976 done
5977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5978 rm -f conftest.i conftest.err conftest.$ac_ext
5979 if $ac_preproc_ok; then :
5981 else
5982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5984 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5985 See \`config.log' for more details" "$LINENO" 5 ; }
5988 ac_ext=c
5989 ac_cpp='$CPP $CPPFLAGS'
5990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5996 $as_echo_n "checking for ANSI C header files... " >&6; }
5997 if test "${ac_cv_header_stdc+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6002 #include <stdlib.h>
6003 #include <stdarg.h>
6004 #include <string.h>
6005 #include <float.h>
6008 main ()
6012 return 0;
6014 _ACEOF
6015 if ac_fn_c_try_compile "$LINENO"; then :
6016 ac_cv_header_stdc=yes
6017 else
6018 ac_cv_header_stdc=no
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 if test $ac_cv_header_stdc = yes; then
6023 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026 #include <string.h>
6028 _ACEOF
6029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6030 $EGREP "memchr" >/dev/null 2>&1; then :
6032 else
6033 ac_cv_header_stdc=no
6035 rm -f conftest*
6039 if test $ac_cv_header_stdc = yes; then
6040 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6043 #include <stdlib.h>
6045 _ACEOF
6046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6047 $EGREP "free" >/dev/null 2>&1; then :
6049 else
6050 ac_cv_header_stdc=no
6052 rm -f conftest*
6056 if test $ac_cv_header_stdc = yes; then
6057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6058 if test "$cross_compiling" = yes; then :
6060 else
6061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* end confdefs.h. */
6063 #include <ctype.h>
6064 #include <stdlib.h>
6065 #if ((' ' & 0x0FF) == 0x020)
6066 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6067 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6068 #else
6069 # define ISLOWER(c) \
6070 (('a' <= (c) && (c) <= 'i') \
6071 || ('j' <= (c) && (c) <= 'r') \
6072 || ('s' <= (c) && (c) <= 'z'))
6073 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6074 #endif
6076 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6078 main ()
6080 int i;
6081 for (i = 0; i < 256; i++)
6082 if (XOR (islower (i), ISLOWER (i))
6083 || toupper (i) != TOUPPER (i))
6084 return 2;
6085 return 0;
6087 _ACEOF
6088 if ac_fn_c_try_run "$LINENO"; then :
6090 else
6091 ac_cv_header_stdc=no
6093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6094 conftest.$ac_objext conftest.beam conftest.$ac_ext
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6100 $as_echo "$ac_cv_header_stdc" >&6; }
6101 if test $ac_cv_header_stdc = yes; then
6103 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6107 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6108 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6109 inttypes.h stdint.h unistd.h
6110 do :
6111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6112 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6114 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6115 cat >>confdefs.h <<_ACEOF
6116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6117 _ACEOF
6121 done
6124 for ac_header in dlfcn.h
6125 do :
6126 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6128 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6129 cat >>confdefs.h <<_ACEOF
6130 #define HAVE_DLFCN_H 1
6131 _ACEOF
6135 done
6139 # Set options
6143 enable_dlopen=no
6146 enable_win32_dll=no
6149 # Check whether --enable-shared was given.
6150 if test "${enable_shared+set}" = set; then :
6151 enableval=$enable_shared; p=${PACKAGE-default}
6152 case $enableval in
6153 yes) enable_shared=yes ;;
6154 no) enable_shared=no ;;
6156 enable_shared=no
6157 # Look at the argument we got. We use all the common list separators.
6158 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6159 for pkg in $enableval; do
6160 IFS="$lt_save_ifs"
6161 if test "X$pkg" = "X$p"; then
6162 enable_shared=yes
6164 done
6165 IFS="$lt_save_ifs"
6167 esac
6168 else
6169 enable_shared=yes
6180 # Check whether --enable-static was given.
6181 if test "${enable_static+set}" = set; then :
6182 enableval=$enable_static; p=${PACKAGE-default}
6183 case $enableval in
6184 yes) enable_static=yes ;;
6185 no) enable_static=no ;;
6187 enable_static=no
6188 # Look at the argument we got. We use all the common list separators.
6189 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6190 for pkg in $enableval; do
6191 IFS="$lt_save_ifs"
6192 if test "X$pkg" = "X$p"; then
6193 enable_static=yes
6195 done
6196 IFS="$lt_save_ifs"
6198 esac
6199 else
6200 enable_static=yes
6212 # Check whether --with-pic was given.
6213 if test "${with_pic+set}" = set; then :
6214 withval=$with_pic; pic_mode="$withval"
6215 else
6216 pic_mode=default
6220 test -z "$pic_mode" && pic_mode=default
6228 # Check whether --enable-fast-install was given.
6229 if test "${enable_fast_install+set}" = set; then :
6230 enableval=$enable_fast_install; p=${PACKAGE-default}
6231 case $enableval in
6232 yes) enable_fast_install=yes ;;
6233 no) enable_fast_install=no ;;
6235 enable_fast_install=no
6236 # Look at the argument we got. We use all the common list separators.
6237 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6238 for pkg in $enableval; do
6239 IFS="$lt_save_ifs"
6240 if test "X$pkg" = "X$p"; then
6241 enable_fast_install=yes
6243 done
6244 IFS="$lt_save_ifs"
6246 esac
6247 else
6248 enable_fast_install=yes
6261 # This can be used to rebuild libtool when needed
6262 LIBTOOL_DEPS="$ltmain"
6264 # Always use our own libtool.
6265 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6291 test -z "$LN_S" && LN_S="ln -s"
6306 if test -n "${ZSH_VERSION+set}" ; then
6307 setopt NO_GLOB_SUBST
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6311 $as_echo_n "checking for objdir... " >&6; }
6312 if test "${lt_cv_objdir+set}" = set; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 rm -f .libs 2>/dev/null
6316 mkdir .libs 2>/dev/null
6317 if test -d .libs; then
6318 lt_cv_objdir=.libs
6319 else
6320 # MS-DOS does not allow filenames that begin with a dot.
6321 lt_cv_objdir=_libs
6323 rmdir .libs 2>/dev/null
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6326 $as_echo "$lt_cv_objdir" >&6; }
6327 objdir=$lt_cv_objdir
6333 cat >>confdefs.h <<_ACEOF
6334 #define LT_OBJDIR "$lt_cv_objdir/"
6335 _ACEOF
6353 case $host_os in
6354 aix3*)
6355 # AIX sometimes has problems with the GCC collect2 program. For some
6356 # reason, if we set the COLLECT_NAMES environment variable, the problems
6357 # vanish in a puff of smoke.
6358 if test "X${COLLECT_NAMES+set}" != Xset; then
6359 COLLECT_NAMES=
6360 export COLLECT_NAMES
6363 esac
6365 # Sed substitution that helps us do robust quoting. It backslashifies
6366 # metacharacters that are still active within double-quoted strings.
6367 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6369 # Same as above, but do not quote variable references.
6370 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6372 # Sed substitution to delay expansion of an escaped shell variable in a
6373 # double_quote_subst'ed string.
6374 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6376 # Sed substitution to delay expansion of an escaped single quote.
6377 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6379 # Sed substitution to avoid accidental globbing in evaled expressions
6380 no_glob_subst='s/\*/\\\*/g'
6382 # Global variables:
6383 ofile=libtool
6384 can_build_shared=yes
6386 # All known linkers require a `.a' archive for static linking (except MSVC,
6387 # which needs '.lib').
6388 libext=a
6390 with_gnu_ld="$lt_cv_prog_gnu_ld"
6392 old_CC="$CC"
6393 old_CFLAGS="$CFLAGS"
6395 # Set sane defaults for various variables
6396 test -z "$CC" && CC=cc
6397 test -z "$LTCC" && LTCC=$CC
6398 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6399 test -z "$LD" && LD=ld
6400 test -z "$ac_objext" && ac_objext=o
6402 for cc_temp in $compiler""; do
6403 case $cc_temp in
6404 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6405 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6406 \-*) ;;
6407 *) break;;
6408 esac
6409 done
6410 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6413 # Only perform the check for file, if the check method requires it
6414 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6415 case $deplibs_check_method in
6416 file_magic*)
6417 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6419 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6420 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 case $MAGIC_CMD in
6424 [\\/*] | ?:[\\/]*)
6425 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6428 lt_save_MAGIC_CMD="$MAGIC_CMD"
6429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6430 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6431 for ac_dir in $ac_dummy; do
6432 IFS="$lt_save_ifs"
6433 test -z "$ac_dir" && ac_dir=.
6434 if test -f $ac_dir/${ac_tool_prefix}file; then
6435 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6436 if test -n "$file_magic_test_file"; then
6437 case $deplibs_check_method in
6438 "file_magic "*)
6439 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6440 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6441 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6442 $EGREP "$file_magic_regex" > /dev/null; then
6444 else
6445 cat <<_LT_EOF 1>&2
6447 *** Warning: the command libtool uses to detect shared libraries,
6448 *** $file_magic_cmd, produces output that libtool cannot recognize.
6449 *** The result is that libtool may fail to recognize shared libraries
6450 *** as such. This will affect the creation of libtool libraries that
6451 *** depend on shared libraries, but programs linked with such libtool
6452 *** libraries will work regardless of this problem. Nevertheless, you
6453 *** may want to report the problem to your system manager and/or to
6454 *** bug-libtool@gnu.org
6456 _LT_EOF
6457 fi ;;
6458 esac
6460 break
6462 done
6463 IFS="$lt_save_ifs"
6464 MAGIC_CMD="$lt_save_MAGIC_CMD"
6466 esac
6469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6470 if test -n "$MAGIC_CMD"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6472 $as_echo "$MAGIC_CMD" >&6; }
6473 else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6482 if test -z "$lt_cv_path_MAGIC_CMD"; then
6483 if test -n "$ac_tool_prefix"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6485 $as_echo_n "checking for file... " >&6; }
6486 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6487 $as_echo_n "(cached) " >&6
6488 else
6489 case $MAGIC_CMD in
6490 [\\/*] | ?:[\\/]*)
6491 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6494 lt_save_MAGIC_CMD="$MAGIC_CMD"
6495 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6496 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6497 for ac_dir in $ac_dummy; do
6498 IFS="$lt_save_ifs"
6499 test -z "$ac_dir" && ac_dir=.
6500 if test -f $ac_dir/file; then
6501 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6502 if test -n "$file_magic_test_file"; then
6503 case $deplibs_check_method in
6504 "file_magic "*)
6505 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6506 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6507 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6508 $EGREP "$file_magic_regex" > /dev/null; then
6510 else
6511 cat <<_LT_EOF 1>&2
6513 *** Warning: the command libtool uses to detect shared libraries,
6514 *** $file_magic_cmd, produces output that libtool cannot recognize.
6515 *** The result is that libtool may fail to recognize shared libraries
6516 *** as such. This will affect the creation of libtool libraries that
6517 *** depend on shared libraries, but programs linked with such libtool
6518 *** libraries will work regardless of this problem. Nevertheless, you
6519 *** may want to report the problem to your system manager and/or to
6520 *** bug-libtool@gnu.org
6522 _LT_EOF
6523 fi ;;
6524 esac
6526 break
6528 done
6529 IFS="$lt_save_ifs"
6530 MAGIC_CMD="$lt_save_MAGIC_CMD"
6532 esac
6535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6536 if test -n "$MAGIC_CMD"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6538 $as_echo "$MAGIC_CMD" >&6; }
6539 else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6545 else
6546 MAGIC_CMD=:
6552 esac
6554 # Use C for the default configuration in the libtool script
6556 lt_save_CC="$CC"
6557 ac_ext=c
6558 ac_cpp='$CPP $CPPFLAGS'
6559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564 # Source file extension for C test sources.
6565 ac_ext=c
6567 # Object file extension for compiled C test sources.
6568 objext=o
6569 objext=$objext
6571 # Code to be used in simple compile tests
6572 lt_simple_compile_test_code="int some_variable = 0;"
6574 # Code to be used in simple link tests
6575 lt_simple_link_test_code='int main(){return(0);}'
6583 # If no C compiler was specified, use CC.
6584 LTCC=${LTCC-"$CC"}
6586 # If no C compiler flags were specified, use CFLAGS.
6587 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6589 # Allow CC to be a program name with arguments.
6590 compiler=$CC
6592 # Save the default compiler, since it gets overwritten when the other
6593 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6594 compiler_DEFAULT=$CC
6596 # save warnings/boilerplate of simple test code
6597 ac_outfile=conftest.$ac_objext
6598 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6599 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6600 _lt_compiler_boilerplate=`cat conftest.err`
6601 $RM conftest*
6603 ac_outfile=conftest.$ac_objext
6604 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6605 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6606 _lt_linker_boilerplate=`cat conftest.err`
6607 $RM -r conftest*
6610 if test -n "$compiler"; then
6612 lt_prog_compiler_no_builtin_flag=
6614 if test "$GCC" = yes; then
6615 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6618 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6619 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
6620 $as_echo_n "(cached) " >&6
6621 else
6622 lt_cv_prog_compiler_rtti_exceptions=no
6623 ac_outfile=conftest.$ac_objext
6624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6625 lt_compiler_flag="-fno-rtti -fno-exceptions"
6626 # Insert the option either (1) after the last *FLAGS variable, or
6627 # (2) before a word containing "conftest.", or (3) at the end.
6628 # Note that $ac_compile itself does not contain backslashes and begins
6629 # with a dollar sign (not a hyphen), so the echo should work correctly.
6630 # The option is referenced via a variable to avoid confusing sed.
6631 lt_compile=`echo "$ac_compile" | $SED \
6632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6634 -e 's:$: $lt_compiler_flag:'`
6635 (eval echo "\"\$as_me:6635: $lt_compile\"" >&5)
6636 (eval "$lt_compile" 2>conftest.err)
6637 ac_status=$?
6638 cat conftest.err >&5
6639 echo "$as_me:6639: \$? = $ac_status" >&5
6640 if (exit $ac_status) && test -s "$ac_outfile"; then
6641 # The compiler can only warn and ignore the option if not recognized
6642 # So say no if there are warnings other than the usual output.
6643 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6645 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6646 lt_cv_prog_compiler_rtti_exceptions=yes
6649 $RM conftest*
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6653 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6655 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6656 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6657 else
6668 lt_prog_compiler_wl=
6669 lt_prog_compiler_pic=
6670 lt_prog_compiler_static=
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6673 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6675 if test "$GCC" = yes; then
6676 lt_prog_compiler_wl='-Wl,'
6677 lt_prog_compiler_static='-static'
6679 case $host_os in
6680 aix*)
6681 # All AIX code is PIC.
6682 if test "$host_cpu" = ia64; then
6683 # AIX 5 now supports IA64 processor
6684 lt_prog_compiler_static='-Bstatic'
6688 amigaos*)
6689 case $host_cpu in
6690 powerpc)
6691 # see comment about AmigaOS4 .so support
6692 lt_prog_compiler_pic='-fPIC'
6694 m68k)
6695 # FIXME: we need at least 68020 code to build shared libraries, but
6696 # adding the `-m68020' flag to GCC prevents building anything better,
6697 # like `-m68040'.
6698 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6700 esac
6703 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6704 # PIC is the default for these OSes.
6707 mingw* | cygwin* | pw32* | os2* | cegcc*)
6708 # This hack is so that the source file can tell whether it is being
6709 # built for inclusion in a dll (and should export symbols for example).
6710 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6711 # (--disable-auto-import) libraries
6712 lt_prog_compiler_pic='-DDLL_EXPORT'
6715 darwin* | rhapsody*)
6716 # PIC is the default on this platform
6717 # Common symbols not allowed in MH_DYLIB files
6718 lt_prog_compiler_pic='-fno-common'
6721 hpux*)
6722 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6723 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6724 # sets the default TLS model and affects inlining.
6725 case $host_cpu in
6726 hppa*64*)
6727 # +Z the default
6730 lt_prog_compiler_pic='-fPIC'
6732 esac
6735 interix[3-9]*)
6736 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6737 # Instead, we relocate shared libraries at runtime.
6740 msdosdjgpp*)
6741 # Just because we use GCC doesn't mean we suddenly get shared libraries
6742 # on systems that don't support them.
6743 lt_prog_compiler_can_build_shared=no
6744 enable_shared=no
6747 *nto* | *qnx*)
6748 # QNX uses GNU C++, but need to define -shared option too, otherwise
6749 # it will coredump.
6750 lt_prog_compiler_pic='-fPIC -shared'
6753 sysv4*MP*)
6754 if test -d /usr/nec; then
6755 lt_prog_compiler_pic=-Kconform_pic
6760 lt_prog_compiler_pic='-fPIC'
6762 esac
6763 else
6764 # PORTME Check for flag to pass linker flags through the system compiler.
6765 case $host_os in
6766 aix*)
6767 lt_prog_compiler_wl='-Wl,'
6768 if test "$host_cpu" = ia64; then
6769 # AIX 5 now supports IA64 processor
6770 lt_prog_compiler_static='-Bstatic'
6771 else
6772 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6776 mingw* | cygwin* | pw32* | os2* | cegcc*)
6777 # This hack is so that the source file can tell whether it is being
6778 # built for inclusion in a dll (and should export symbols for example).
6779 lt_prog_compiler_pic='-DDLL_EXPORT'
6782 hpux9* | hpux10* | hpux11*)
6783 lt_prog_compiler_wl='-Wl,'
6784 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6785 # not for PA HP-UX.
6786 case $host_cpu in
6787 hppa*64*|ia64*)
6788 # +Z the default
6791 lt_prog_compiler_pic='+Z'
6793 esac
6794 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6795 lt_prog_compiler_static='${wl}-a ${wl}archive'
6798 irix5* | irix6* | nonstopux*)
6799 lt_prog_compiler_wl='-Wl,'
6800 # PIC (with -KPIC) is the default.
6801 lt_prog_compiler_static='-non_shared'
6804 linux* | k*bsd*-gnu)
6805 case $cc_basename in
6806 # old Intel for x86_64 which still supported -KPIC.
6807 ecc*)
6808 lt_prog_compiler_wl='-Wl,'
6809 lt_prog_compiler_pic='-KPIC'
6810 lt_prog_compiler_static='-static'
6812 # icc used to be incompatible with GCC.
6813 # ICC 10 doesn't accept -KPIC any more.
6814 icc* | ifort*)
6815 lt_prog_compiler_wl='-Wl,'
6816 lt_prog_compiler_pic='-fPIC'
6817 lt_prog_compiler_static='-static'
6819 # Lahey Fortran 8.1.
6820 lf95*)
6821 lt_prog_compiler_wl='-Wl,'
6822 lt_prog_compiler_pic='--shared'
6823 lt_prog_compiler_static='--static'
6825 pgcc* | pgf77* | pgf90* | pgf95*)
6826 # Portland Group compilers (*not* the Pentium gcc compiler,
6827 # which looks to be a dead project)
6828 lt_prog_compiler_wl='-Wl,'
6829 lt_prog_compiler_pic='-fpic'
6830 lt_prog_compiler_static='-Bstatic'
6832 ccc*)
6833 lt_prog_compiler_wl='-Wl,'
6834 # All Alpha code is PIC.
6835 lt_prog_compiler_static='-non_shared'
6837 xl*)
6838 # IBM XL C 8.0/Fortran 10.1 on PPC
6839 lt_prog_compiler_wl='-Wl,'
6840 lt_prog_compiler_pic='-qpic'
6841 lt_prog_compiler_static='-qstaticlink'
6844 case `$CC -V 2>&1 | sed 5q` in
6845 *Sun\ C*)
6846 # Sun C 5.9
6847 lt_prog_compiler_pic='-KPIC'
6848 lt_prog_compiler_static='-Bstatic'
6849 lt_prog_compiler_wl='-Wl,'
6851 *Sun\ F*)
6852 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6853 lt_prog_compiler_pic='-KPIC'
6854 lt_prog_compiler_static='-Bstatic'
6855 lt_prog_compiler_wl=''
6857 esac
6859 esac
6862 newsos6)
6863 lt_prog_compiler_pic='-KPIC'
6864 lt_prog_compiler_static='-Bstatic'
6867 *nto* | *qnx*)
6868 # QNX uses GNU C++, but need to define -shared option too, otherwise
6869 # it will coredump.
6870 lt_prog_compiler_pic='-fPIC -shared'
6873 osf3* | osf4* | osf5*)
6874 lt_prog_compiler_wl='-Wl,'
6875 # All OSF/1 code is PIC.
6876 lt_prog_compiler_static='-non_shared'
6879 rdos*)
6880 lt_prog_compiler_static='-non_shared'
6883 solaris*)
6884 lt_prog_compiler_pic='-KPIC'
6885 lt_prog_compiler_static='-Bstatic'
6886 case $cc_basename in
6887 f77* | f90* | f95*)
6888 lt_prog_compiler_wl='-Qoption ld ';;
6890 lt_prog_compiler_wl='-Wl,';;
6891 esac
6894 sunos4*)
6895 lt_prog_compiler_wl='-Qoption ld '
6896 lt_prog_compiler_pic='-PIC'
6897 lt_prog_compiler_static='-Bstatic'
6900 sysv4 | sysv4.2uw2* | sysv4.3*)
6901 lt_prog_compiler_wl='-Wl,'
6902 lt_prog_compiler_pic='-KPIC'
6903 lt_prog_compiler_static='-Bstatic'
6906 sysv4*MP*)
6907 if test -d /usr/nec ;then
6908 lt_prog_compiler_pic='-Kconform_pic'
6909 lt_prog_compiler_static='-Bstatic'
6913 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6914 lt_prog_compiler_wl='-Wl,'
6915 lt_prog_compiler_pic='-KPIC'
6916 lt_prog_compiler_static='-Bstatic'
6919 unicos*)
6920 lt_prog_compiler_wl='-Wl,'
6921 lt_prog_compiler_can_build_shared=no
6924 uts4*)
6925 lt_prog_compiler_pic='-pic'
6926 lt_prog_compiler_static='-Bstatic'
6930 lt_prog_compiler_can_build_shared=no
6932 esac
6935 case $host_os in
6936 # For platforms which do not support PIC, -DPIC is meaningless:
6937 *djgpp*)
6938 lt_prog_compiler_pic=
6941 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6943 esac
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
6945 $as_echo "$lt_prog_compiler_pic" >&6; }
6953 # Check to make sure the PIC flag actually works.
6955 if test -n "$lt_prog_compiler_pic"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6957 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
6958 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 lt_cv_prog_compiler_pic_works=no
6962 ac_outfile=conftest.$ac_objext
6963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6964 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6965 # Insert the option either (1) after the last *FLAGS variable, or
6966 # (2) before a word containing "conftest.", or (3) at the end.
6967 # Note that $ac_compile itself does not contain backslashes and begins
6968 # with a dollar sign (not a hyphen), so the echo should work correctly.
6969 # The option is referenced via a variable to avoid confusing sed.
6970 lt_compile=`echo "$ac_compile" | $SED \
6971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6973 -e 's:$: $lt_compiler_flag:'`
6974 (eval echo "\"\$as_me:6974: $lt_compile\"" >&5)
6975 (eval "$lt_compile" 2>conftest.err)
6976 ac_status=$?
6977 cat conftest.err >&5
6978 echo "$as_me:6978: \$? = $ac_status" >&5
6979 if (exit $ac_status) && test -s "$ac_outfile"; then
6980 # The compiler can only warn and ignore the option if not recognized
6981 # So say no if there are warnings other than the usual output.
6982 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6985 lt_cv_prog_compiler_pic_works=yes
6988 $RM conftest*
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
6992 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
6994 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
6995 case $lt_prog_compiler_pic in
6996 "" | " "*) ;;
6997 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6998 esac
6999 else
7000 lt_prog_compiler_pic=
7001 lt_prog_compiler_can_build_shared=no
7012 # Check to make sure the static flag actually works.
7014 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7016 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7017 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 lt_cv_prog_compiler_static_works=no
7021 save_LDFLAGS="$LDFLAGS"
7022 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7023 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7024 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7025 # The linker can only warn and ignore the option if not recognized
7026 # So say no if there are warnings
7027 if test -s conftest.err; then
7028 # Append any errors to the config.log.
7029 cat conftest.err 1>&5
7030 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7032 if diff conftest.exp conftest.er2 >/dev/null; then
7033 lt_cv_prog_compiler_static_works=yes
7035 else
7036 lt_cv_prog_compiler_static_works=yes
7039 $RM -r conftest*
7040 LDFLAGS="$save_LDFLAGS"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7044 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7046 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7048 else
7049 lt_prog_compiler_static=
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7059 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7060 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 lt_cv_prog_compiler_c_o=no
7064 $RM -r conftest 2>/dev/null
7065 mkdir conftest
7066 cd conftest
7067 mkdir out
7068 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7070 lt_compiler_flag="-o out/conftest2.$ac_objext"
7071 # Insert the option either (1) after the last *FLAGS variable, or
7072 # (2) before a word containing "conftest.", or (3) at the end.
7073 # Note that $ac_compile itself does not contain backslashes and begins
7074 # with a dollar sign (not a hyphen), so the echo should work correctly.
7075 lt_compile=`echo "$ac_compile" | $SED \
7076 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7077 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7078 -e 's:$: $lt_compiler_flag:'`
7079 (eval echo "\"\$as_me:7079: $lt_compile\"" >&5)
7080 (eval "$lt_compile" 2>out/conftest.err)
7081 ac_status=$?
7082 cat out/conftest.err >&5
7083 echo "$as_me:7083: \$? = $ac_status" >&5
7084 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7085 then
7086 # The compiler can only warn and ignore the option if not recognized
7087 # So say no if there are warnings
7088 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7089 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7090 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7091 lt_cv_prog_compiler_c_o=yes
7094 chmod u+w . 2>&5
7095 $RM conftest*
7096 # SGI C++ compiler will create directory out/ii_files/ for
7097 # template instantiation
7098 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7099 $RM out/* && rmdir out
7100 cd ..
7101 $RM -r conftest
7102 $RM conftest*
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7106 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7114 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7115 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7116 $as_echo_n "(cached) " >&6
7117 else
7118 lt_cv_prog_compiler_c_o=no
7119 $RM -r conftest 2>/dev/null
7120 mkdir conftest
7121 cd conftest
7122 mkdir out
7123 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7125 lt_compiler_flag="-o out/conftest2.$ac_objext"
7126 # Insert the option either (1) after the last *FLAGS variable, or
7127 # (2) before a word containing "conftest.", or (3) at the end.
7128 # Note that $ac_compile itself does not contain backslashes and begins
7129 # with a dollar sign (not a hyphen), so the echo should work correctly.
7130 lt_compile=`echo "$ac_compile" | $SED \
7131 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7132 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7133 -e 's:$: $lt_compiler_flag:'`
7134 (eval echo "\"\$as_me:7134: $lt_compile\"" >&5)
7135 (eval "$lt_compile" 2>out/conftest.err)
7136 ac_status=$?
7137 cat out/conftest.err >&5
7138 echo "$as_me:7138: \$? = $ac_status" >&5
7139 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7140 then
7141 # The compiler can only warn and ignore the option if not recognized
7142 # So say no if there are warnings
7143 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7144 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7145 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7146 lt_cv_prog_compiler_c_o=yes
7149 chmod u+w . 2>&5
7150 $RM conftest*
7151 # SGI C++ compiler will create directory out/ii_files/ for
7152 # template instantiation
7153 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7154 $RM out/* && rmdir out
7155 cd ..
7156 $RM -r conftest
7157 $RM conftest*
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7161 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7166 hard_links="nottested"
7167 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7168 # do not overwrite the value of need_locks provided by the user
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7170 $as_echo_n "checking if we can lock with hard links... " >&6; }
7171 hard_links=yes
7172 $RM conftest*
7173 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7174 touch conftest.a
7175 ln conftest.a conftest.b 2>&5 || hard_links=no
7176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7178 $as_echo "$hard_links" >&6; }
7179 if test "$hard_links" = no; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7181 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7182 need_locks=warn
7184 else
7185 need_locks=no
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7194 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7196 runpath_var=
7197 allow_undefined_flag=
7198 always_export_symbols=no
7199 archive_cmds=
7200 archive_expsym_cmds=
7201 compiler_needs_object=no
7202 enable_shared_with_static_runtimes=no
7203 export_dynamic_flag_spec=
7204 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7205 hardcode_automatic=no
7206 hardcode_direct=no
7207 hardcode_direct_absolute=no
7208 hardcode_libdir_flag_spec=
7209 hardcode_libdir_flag_spec_ld=
7210 hardcode_libdir_separator=
7211 hardcode_minus_L=no
7212 hardcode_shlibpath_var=unsupported
7213 inherit_rpath=no
7214 link_all_deplibs=unknown
7215 module_cmds=
7216 module_expsym_cmds=
7217 old_archive_from_new_cmds=
7218 old_archive_from_expsyms_cmds=
7219 thread_safe_flag_spec=
7220 whole_archive_flag_spec=
7221 # include_expsyms should be a list of space-separated symbols to be *always*
7222 # included in the symbol list
7223 include_expsyms=
7224 # exclude_expsyms can be an extended regexp of symbols to exclude
7225 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7226 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7227 # as well as any symbol that contains `d'.
7228 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7229 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7230 # platforms (ab)use it in PIC code, but their linkers get confused if
7231 # the symbol is explicitly referenced. Since portable code cannot
7232 # rely on this symbol name, it's probably fine to never include it in
7233 # preloaded symbol tables.
7234 # Exclude shared library initialization/finalization symbols.
7235 extract_expsyms_cmds=
7237 case $host_os in
7238 cygwin* | mingw* | pw32* | cegcc*)
7239 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7240 # When not using gcc, we currently assume that we are using
7241 # Microsoft Visual C++.
7242 if test "$GCC" != yes; then
7243 with_gnu_ld=no
7246 interix*)
7247 # we just hope/assume this is gcc and not c89 (= MSVC++)
7248 with_gnu_ld=yes
7250 openbsd*)
7251 with_gnu_ld=no
7253 esac
7255 ld_shlibs=yes
7256 if test "$with_gnu_ld" = yes; then
7257 # If archive_cmds runs LD, not CC, wlarc should be empty
7258 wlarc='${wl}'
7260 # Set some defaults for GNU ld with shared library support. These
7261 # are reset later if shared libraries are not supported. Putting them
7262 # here allows them to be overridden if necessary.
7263 runpath_var=LD_RUN_PATH
7264 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7265 export_dynamic_flag_spec='${wl}--export-dynamic'
7266 # ancient GNU ld didn't support --whole-archive et. al.
7267 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7268 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7269 else
7270 whole_archive_flag_spec=
7272 supports_anon_versioning=no
7273 case `$LD -v 2>&1` in
7274 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7275 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7276 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7277 *\ 2.11.*) ;; # other 2.11 versions
7278 *) supports_anon_versioning=yes ;;
7279 esac
7281 # See if GNU ld supports shared libraries.
7282 case $host_os in
7283 aix[3-9]*)
7284 # On AIX/PPC, the GNU linker is very broken
7285 if test "$host_cpu" != ia64; then
7286 ld_shlibs=no
7287 cat <<_LT_EOF 1>&2
7289 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7290 *** to be unable to reliably create shared libraries on AIX.
7291 *** Therefore, libtool is disabling shared libraries support. If you
7292 *** really care for shared libraries, you may want to modify your PATH
7293 *** so that a non-GNU linker is found, and then restart.
7295 _LT_EOF
7299 amigaos*)
7300 case $host_cpu in
7301 powerpc)
7302 # see comment about AmigaOS4 .so support
7303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7304 archive_expsym_cmds=''
7306 m68k)
7307 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)'
7308 hardcode_libdir_flag_spec='-L$libdir'
7309 hardcode_minus_L=yes
7311 esac
7314 beos*)
7315 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7316 allow_undefined_flag=unsupported
7317 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7318 # support --undefined. This deserves some investigation. FIXME
7319 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7320 else
7321 ld_shlibs=no
7325 cygwin* | mingw* | pw32* | cegcc*)
7326 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7327 # as there is no search path for DLLs.
7328 hardcode_libdir_flag_spec='-L$libdir'
7329 allow_undefined_flag=unsupported
7330 always_export_symbols=no
7331 enable_shared_with_static_runtimes=yes
7332 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7334 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7336 # If the export-symbols file already is a .def file (1st line
7337 # is EXPORTS), use it as is; otherwise, prepend...
7338 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7339 cp $export_symbols $output_objdir/$soname.def;
7340 else
7341 echo EXPORTS > $output_objdir/$soname.def;
7342 cat $export_symbols >> $output_objdir/$soname.def;
7344 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7345 else
7346 ld_shlibs=no
7350 interix[3-9]*)
7351 hardcode_direct=no
7352 hardcode_shlibpath_var=no
7353 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7354 export_dynamic_flag_spec='${wl}-E'
7355 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7356 # Instead, shared libraries are loaded at an image base (0x10000000 by
7357 # default) and relocated if they conflict, which is a slow very memory
7358 # consuming and fragmenting process. To avoid this, we pick a random,
7359 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7360 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7361 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7362 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'
7365 gnu* | linux* | tpf* | k*bsd*-gnu)
7366 tmp_diet=no
7367 if test "$host_os" = linux-dietlibc; then
7368 case $cc_basename in
7369 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7370 esac
7372 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7373 && test "$tmp_diet" = no
7374 then
7375 tmp_addflag=
7376 tmp_sharedflag='-shared'
7377 case $cc_basename,$host_cpu in
7378 pgcc*) # Portland Group C compiler
7379 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'
7380 tmp_addflag=' $pic_flag'
7382 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7383 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'
7384 tmp_addflag=' $pic_flag -Mnomain' ;;
7385 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7386 tmp_addflag=' -i_dynamic' ;;
7387 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7388 tmp_addflag=' -i_dynamic -nofor_main' ;;
7389 ifc* | ifort*) # Intel Fortran compiler
7390 tmp_addflag=' -nofor_main' ;;
7391 lf95*) # Lahey Fortran 8.1
7392 whole_archive_flag_spec=
7393 tmp_sharedflag='--shared' ;;
7394 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7395 tmp_sharedflag='-qmkshrobj'
7396 tmp_addflag= ;;
7397 esac
7398 case `$CC -V 2>&1 | sed 5q` in
7399 *Sun\ C*) # Sun C 5.9
7400 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'
7401 compiler_needs_object=yes
7402 tmp_sharedflag='-G' ;;
7403 *Sun\ F*) # Sun Fortran 8.3
7404 tmp_sharedflag='-G' ;;
7405 esac
7406 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7408 if test "x$supports_anon_versioning" = xyes; then
7409 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7410 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7411 echo "local: *; };" >> $output_objdir/$libname.ver~
7412 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7415 case $cc_basename in
7416 xlf*)
7417 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7418 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7419 hardcode_libdir_flag_spec=
7420 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7421 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7422 if test "x$supports_anon_versioning" = xyes; then
7423 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7424 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7425 echo "local: *; };" >> $output_objdir/$libname.ver~
7426 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7429 esac
7430 else
7431 ld_shlibs=no
7435 netbsd*)
7436 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7437 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7438 wlarc=
7439 else
7440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7441 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7445 solaris*)
7446 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7447 ld_shlibs=no
7448 cat <<_LT_EOF 1>&2
7450 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7451 *** create shared libraries on Solaris systems. Therefore, libtool
7452 *** is disabling shared libraries support. We urge you to upgrade GNU
7453 *** binutils to release 2.9.1 or newer. Another option is to modify
7454 *** your PATH or compiler configuration so that the native linker is
7455 *** used, and then restart.
7457 _LT_EOF
7458 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7460 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7461 else
7462 ld_shlibs=no
7466 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7467 case `$LD -v 2>&1` in
7468 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7469 ld_shlibs=no
7470 cat <<_LT_EOF 1>&2
7472 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7473 *** reliably create shared libraries on SCO systems. Therefore, libtool
7474 *** is disabling shared libraries support. We urge you to upgrade GNU
7475 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7476 *** your PATH or compiler configuration so that the native linker is
7477 *** used, and then restart.
7479 _LT_EOF
7482 # For security reasons, it is highly recommended that you always
7483 # use absolute paths for naming shared libraries, and exclude the
7484 # DT_RUNPATH tag from executables and libraries. But doing so
7485 # requires that you compile everything twice, which is a pain.
7486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7487 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7489 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7490 else
7491 ld_shlibs=no
7494 esac
7497 sunos4*)
7498 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7499 wlarc=
7500 hardcode_direct=yes
7501 hardcode_shlibpath_var=no
7505 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7507 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7508 else
7509 ld_shlibs=no
7512 esac
7514 if test "$ld_shlibs" = no; then
7515 runpath_var=
7516 hardcode_libdir_flag_spec=
7517 export_dynamic_flag_spec=
7518 whole_archive_flag_spec=
7520 else
7521 # PORTME fill in a description of your system's linker (not GNU ld)
7522 case $host_os in
7523 aix3*)
7524 allow_undefined_flag=unsupported
7525 always_export_symbols=yes
7526 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'
7527 # Note: this linker hardcodes the directories in LIBPATH if there
7528 # are no directories specified by -L.
7529 hardcode_minus_L=yes
7530 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7531 # Neither direct hardcoding nor static linking is supported with a
7532 # broken collect2.
7533 hardcode_direct=unsupported
7537 aix[4-9]*)
7538 if test "$host_cpu" = ia64; then
7539 # On IA64, the linker does run time linking by default, so we don't
7540 # have to do anything special.
7541 aix_use_runtimelinking=no
7542 exp_sym_flag='-Bexport'
7543 no_entry_flag=""
7544 else
7545 # If we're using GNU nm, then we don't want the "-C" option.
7546 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7547 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7548 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'
7549 else
7550 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'
7552 aix_use_runtimelinking=no
7554 # Test if we are trying to use run time linking or normal
7555 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7556 # need to do runtime linking.
7557 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7558 for ld_flag in $LDFLAGS; do
7559 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7560 aix_use_runtimelinking=yes
7561 break
7563 done
7565 esac
7567 exp_sym_flag='-bexport'
7568 no_entry_flag='-bnoentry'
7571 # When large executables or shared objects are built, AIX ld can
7572 # have problems creating the table of contents. If linking a library
7573 # or program results in "error TOC overflow" add -mminimal-toc to
7574 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7575 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7577 archive_cmds=''
7578 hardcode_direct=yes
7579 hardcode_direct_absolute=yes
7580 hardcode_libdir_separator=':'
7581 link_all_deplibs=yes
7582 file_list_spec='${wl}-f,'
7584 if test "$GCC" = yes; then
7585 case $host_os in aix4.[012]|aix4.[012].*)
7586 # We only want to do this on AIX 4.2 and lower, the check
7587 # below for broken collect2 doesn't work under 4.3+
7588 collect2name=`${CC} -print-prog-name=collect2`
7589 if test -f "$collect2name" &&
7590 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7591 then
7592 # We have reworked collect2
7594 else
7595 # We have old collect2
7596 hardcode_direct=unsupported
7597 # It fails to find uninstalled libraries when the uninstalled
7598 # path is not listed in the libpath. Setting hardcode_minus_L
7599 # to unsupported forces relinking
7600 hardcode_minus_L=yes
7601 hardcode_libdir_flag_spec='-L$libdir'
7602 hardcode_libdir_separator=
7605 esac
7606 shared_flag='-shared'
7607 if test "$aix_use_runtimelinking" = yes; then
7608 shared_flag="$shared_flag "'${wl}-G'
7610 else
7611 # not using gcc
7612 if test "$host_cpu" = ia64; then
7613 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7614 # chokes on -Wl,-G. The following line is correct:
7615 shared_flag='-G'
7616 else
7617 if test "$aix_use_runtimelinking" = yes; then
7618 shared_flag='${wl}-G'
7619 else
7620 shared_flag='${wl}-bM:SRE'
7625 export_dynamic_flag_spec='${wl}-bexpall'
7626 # It seems that -bexpall does not export symbols beginning with
7627 # underscore (_), so it is better to generate a list of symbols to export.
7628 always_export_symbols=yes
7629 if test "$aix_use_runtimelinking" = yes; then
7630 # Warning - without using the other runtime loading flags (-brtl),
7631 # -berok will link without error, but may produce a broken library.
7632 allow_undefined_flag='-berok'
7633 # Determine the default libpath from the value encoded in an
7634 # empty executable.
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7639 main ()
7643 return 0;
7645 _ACEOF
7646 if ac_fn_c_try_link "$LINENO"; then :
7648 lt_aix_libpath_sed='
7649 /Import File Strings/,/^$/ {
7650 /^0/ {
7651 s/^0 *\(.*\)$/\1/
7655 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7656 # Check for a 64-bit object if we didn't find anything.
7657 if test -z "$aix_libpath"; then
7658 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7661 rm -f core conftest.err conftest.$ac_objext \
7662 conftest$ac_exeext conftest.$ac_ext
7663 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7665 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7666 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"
7667 else
7668 if test "$host_cpu" = ia64; then
7669 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7670 allow_undefined_flag="-z nodefs"
7671 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"
7672 else
7673 # Determine the default libpath from the value encoded in an
7674 # empty executable.
7675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7676 /* end confdefs.h. */
7679 main ()
7683 return 0;
7685 _ACEOF
7686 if ac_fn_c_try_link "$LINENO"; then :
7688 lt_aix_libpath_sed='
7689 /Import File Strings/,/^$/ {
7690 /^0/ {
7691 s/^0 *\(.*\)$/\1/
7695 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7696 # Check for a 64-bit object if we didn't find anything.
7697 if test -z "$aix_libpath"; then
7698 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7701 rm -f core conftest.err conftest.$ac_objext \
7702 conftest$ac_exeext conftest.$ac_ext
7703 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7705 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7706 # Warning - without using the other run time loading flags,
7707 # -berok will link without error, but may produce a broken library.
7708 no_undefined_flag=' ${wl}-bernotok'
7709 allow_undefined_flag=' ${wl}-berok'
7710 # Exported symbols can be pulled into shared objects from archives
7711 whole_archive_flag_spec='$convenience'
7712 archive_cmds_need_lc=yes
7713 # This is similar to how AIX traditionally builds its shared libraries.
7714 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'
7719 amigaos*)
7720 case $host_cpu in
7721 powerpc)
7722 # see comment about AmigaOS4 .so support
7723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7724 archive_expsym_cmds=''
7726 m68k)
7727 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)'
7728 hardcode_libdir_flag_spec='-L$libdir'
7729 hardcode_minus_L=yes
7731 esac
7734 bsdi[45]*)
7735 export_dynamic_flag_spec=-rdynamic
7738 cygwin* | mingw* | pw32* | cegcc*)
7739 # When not using gcc, we currently assume that we are using
7740 # Microsoft Visual C++.
7741 # hardcode_libdir_flag_spec is actually meaningless, as there is
7742 # no search path for DLLs.
7743 hardcode_libdir_flag_spec=' '
7744 allow_undefined_flag=unsupported
7745 # Tell ltmain to make .lib files, not .a files.
7746 libext=lib
7747 # Tell ltmain to make .dll files, not .so files.
7748 shrext_cmds=".dll"
7749 # FIXME: Setting linknames here is a bad hack.
7750 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7751 # The linker will automatically build a .lib file if we build a DLL.
7752 old_archive_from_new_cmds='true'
7753 # FIXME: Should let the user specify the lib program.
7754 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7755 fix_srcfile_path='`cygpath -w "$srcfile"`'
7756 enable_shared_with_static_runtimes=yes
7759 darwin* | rhapsody*)
7762 archive_cmds_need_lc=no
7763 hardcode_direct=no
7764 hardcode_automatic=yes
7765 hardcode_shlibpath_var=unsupported
7766 whole_archive_flag_spec=''
7767 link_all_deplibs=yes
7768 allow_undefined_flag="$_lt_dar_allow_undefined"
7769 case $cc_basename in
7770 ifort*) _lt_dar_can_shared=yes ;;
7771 *) _lt_dar_can_shared=$GCC ;;
7772 esac
7773 if test "$_lt_dar_can_shared" = "yes"; then
7774 output_verbose_link_cmd=echo
7775 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7776 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7777 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}"
7778 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}"
7780 else
7781 ld_shlibs=no
7786 dgux*)
7787 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7788 hardcode_libdir_flag_spec='-L$libdir'
7789 hardcode_shlibpath_var=no
7792 freebsd1*)
7793 ld_shlibs=no
7796 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7797 # support. Future versions do this automatically, but an explicit c++rt0.o
7798 # does not break anything, and helps significantly (at the cost of a little
7799 # extra space).
7800 freebsd2.2*)
7801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7802 hardcode_libdir_flag_spec='-R$libdir'
7803 hardcode_direct=yes
7804 hardcode_shlibpath_var=no
7807 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7808 freebsd2*)
7809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7810 hardcode_direct=yes
7811 hardcode_minus_L=yes
7812 hardcode_shlibpath_var=no
7815 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7816 freebsd* | dragonfly*)
7817 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7818 hardcode_libdir_flag_spec='-R$libdir'
7819 hardcode_direct=yes
7820 hardcode_shlibpath_var=no
7823 hpux9*)
7824 if test "$GCC" = yes; then
7825 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'
7826 else
7827 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'
7829 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7830 hardcode_libdir_separator=:
7831 hardcode_direct=yes
7833 # hardcode_minus_L: Not really in the search PATH,
7834 # but as the default location of the library.
7835 hardcode_minus_L=yes
7836 export_dynamic_flag_spec='${wl}-E'
7839 hpux10*)
7840 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7841 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7842 else
7843 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7845 if test "$with_gnu_ld" = no; then
7846 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7847 hardcode_libdir_flag_spec_ld='+b $libdir'
7848 hardcode_libdir_separator=:
7849 hardcode_direct=yes
7850 hardcode_direct_absolute=yes
7851 export_dynamic_flag_spec='${wl}-E'
7852 # hardcode_minus_L: Not really in the search PATH,
7853 # but as the default location of the library.
7854 hardcode_minus_L=yes
7858 hpux11*)
7859 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7860 case $host_cpu in
7861 hppa*64*)
7862 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7864 ia64*)
7865 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7868 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7870 esac
7871 else
7872 case $host_cpu in
7873 hppa*64*)
7874 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7876 ia64*)
7877 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7880 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7882 esac
7884 if test "$with_gnu_ld" = no; then
7885 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7886 hardcode_libdir_separator=:
7888 case $host_cpu in
7889 hppa*64*|ia64*)
7890 hardcode_direct=no
7891 hardcode_shlibpath_var=no
7894 hardcode_direct=yes
7895 hardcode_direct_absolute=yes
7896 export_dynamic_flag_spec='${wl}-E'
7898 # hardcode_minus_L: Not really in the search PATH,
7899 # but as the default location of the library.
7900 hardcode_minus_L=yes
7902 esac
7906 irix5* | irix6* | nonstopux*)
7907 if test "$GCC" = yes; then
7908 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'
7909 # Try to use the -exported_symbol ld option, if it does not
7910 # work, assume that -exports_file does not work either and
7911 # implicitly export all symbols.
7912 save_LDFLAGS="$LDFLAGS"
7913 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7916 int foo(void) {}
7917 _ACEOF
7918 if ac_fn_c_try_link "$LINENO"; then :
7919 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'
7922 rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7924 LDFLAGS="$save_LDFLAGS"
7925 else
7926 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'
7927 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'
7929 archive_cmds_need_lc='no'
7930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7931 hardcode_libdir_separator=:
7932 inherit_rpath=yes
7933 link_all_deplibs=yes
7936 netbsd*)
7937 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7938 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7939 else
7940 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7942 hardcode_libdir_flag_spec='-R$libdir'
7943 hardcode_direct=yes
7944 hardcode_shlibpath_var=no
7947 newsos6)
7948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7949 hardcode_direct=yes
7950 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7951 hardcode_libdir_separator=:
7952 hardcode_shlibpath_var=no
7955 *nto* | *qnx*)
7958 openbsd*)
7959 if test -f /usr/libexec/ld.so; then
7960 hardcode_direct=yes
7961 hardcode_shlibpath_var=no
7962 hardcode_direct_absolute=yes
7963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7964 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7965 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7966 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7967 export_dynamic_flag_spec='${wl}-E'
7968 else
7969 case $host_os in
7970 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7971 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7972 hardcode_libdir_flag_spec='-R$libdir'
7975 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7976 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7978 esac
7980 else
7981 ld_shlibs=no
7985 os2*)
7986 hardcode_libdir_flag_spec='-L$libdir'
7987 hardcode_minus_L=yes
7988 allow_undefined_flag=unsupported
7989 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'
7990 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7993 osf3*)
7994 if test "$GCC" = yes; then
7995 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7996 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'
7997 else
7998 allow_undefined_flag=' -expect_unresolved \*'
7999 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'
8001 archive_cmds_need_lc='no'
8002 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8003 hardcode_libdir_separator=:
8006 osf4* | osf5*) # as osf3* with the addition of -msym flag
8007 if test "$GCC" = yes; then
8008 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8009 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'
8010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8011 else
8012 allow_undefined_flag=' -expect_unresolved \*'
8013 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'
8014 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~
8015 $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'
8017 # Both c and cxx compiler support -rpath directly
8018 hardcode_libdir_flag_spec='-rpath $libdir'
8020 archive_cmds_need_lc='no'
8021 hardcode_libdir_separator=:
8024 solaris*)
8025 no_undefined_flag=' -z defs'
8026 if test "$GCC" = yes; then
8027 wlarc='${wl}'
8028 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8029 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8030 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8031 else
8032 case `$CC -V 2>&1` in
8033 *"Compilers 5.0"*)
8034 wlarc=''
8035 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8036 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8037 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8040 wlarc='${wl}'
8041 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8042 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8043 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8045 esac
8047 hardcode_libdir_flag_spec='-R$libdir'
8048 hardcode_shlibpath_var=no
8049 case $host_os in
8050 solaris2.[0-5] | solaris2.[0-5].*) ;;
8052 # The compiler driver will combine and reorder linker options,
8053 # but understands `-z linker_flag'. GCC discards it without `$wl',
8054 # but is careful enough not to reorder.
8055 # Supported since Solaris 2.6 (maybe 2.5.1?)
8056 if test "$GCC" = yes; then
8057 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8058 else
8059 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8062 esac
8063 link_all_deplibs=yes
8066 sunos4*)
8067 if test "x$host_vendor" = xsequent; then
8068 # Use $CC to link under sequent, because it throws in some extra .o
8069 # files that make .init and .fini sections work.
8070 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8071 else
8072 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8074 hardcode_libdir_flag_spec='-L$libdir'
8075 hardcode_direct=yes
8076 hardcode_minus_L=yes
8077 hardcode_shlibpath_var=no
8080 sysv4)
8081 case $host_vendor in
8082 sni)
8083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8084 hardcode_direct=yes # is this really true???
8086 siemens)
8087 ## LD is ld it makes a PLAMLIB
8088 ## CC just makes a GrossModule.
8089 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8090 reload_cmds='$CC -r -o $output$reload_objs'
8091 hardcode_direct=no
8093 motorola)
8094 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8095 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8097 esac
8098 runpath_var='LD_RUN_PATH'
8099 hardcode_shlibpath_var=no
8102 sysv4.3*)
8103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8104 hardcode_shlibpath_var=no
8105 export_dynamic_flag_spec='-Bexport'
8108 sysv4*MP*)
8109 if test -d /usr/nec; then
8110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8111 hardcode_shlibpath_var=no
8112 runpath_var=LD_RUN_PATH
8113 hardcode_runpath_var=yes
8114 ld_shlibs=yes
8118 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8119 no_undefined_flag='${wl}-z,text'
8120 archive_cmds_need_lc=no
8121 hardcode_shlibpath_var=no
8122 runpath_var='LD_RUN_PATH'
8124 if test "$GCC" = yes; then
8125 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8126 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8127 else
8128 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8129 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8133 sysv5* | sco3.2v5* | sco5v6*)
8134 # Note: We can NOT use -z defs as we might desire, because we do not
8135 # link with -lc, and that would cause any symbols used from libc to
8136 # always be unresolved, which means just about no library would
8137 # ever link correctly. If we're not using GNU ld we use -z text
8138 # though, which does catch some bad symbols but isn't as heavy-handed
8139 # as -z defs.
8140 no_undefined_flag='${wl}-z,text'
8141 allow_undefined_flag='${wl}-z,nodefs'
8142 archive_cmds_need_lc=no
8143 hardcode_shlibpath_var=no
8144 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8145 hardcode_libdir_separator=':'
8146 link_all_deplibs=yes
8147 export_dynamic_flag_spec='${wl}-Bexport'
8148 runpath_var='LD_RUN_PATH'
8150 if test "$GCC" = yes; then
8151 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8152 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8153 else
8154 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8155 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8159 uts4*)
8160 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8161 hardcode_libdir_flag_spec='-L$libdir'
8162 hardcode_shlibpath_var=no
8166 ld_shlibs=no
8168 esac
8170 if test x$host_vendor = xsni; then
8171 case $host in
8172 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8173 export_dynamic_flag_spec='${wl}-Blargedynsym'
8175 esac
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8180 $as_echo "$ld_shlibs" >&6; }
8181 test "$ld_shlibs" = no && can_build_shared=no
8183 with_gnu_ld=$with_gnu_ld
8200 # Do we need to explicitly link libc?
8202 case "x$archive_cmds_need_lc" in
8203 x|xyes)
8204 # Assume -lc should be added
8205 archive_cmds_need_lc=yes
8207 if test "$enable_shared" = yes && test "$GCC" = yes; then
8208 case $archive_cmds in
8209 *'~'*)
8210 # FIXME: we may have to deal with multi-command sequences.
8212 '$CC '*)
8213 # Test whether the compiler implicitly links with -lc since on some
8214 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8215 # to ld, don't add -lc before -lgcc.
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8217 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8218 $RM conftest*
8219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8222 (eval $ac_compile) 2>&5
8223 ac_status=$?
8224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8225 test $ac_status = 0; } 2>conftest.err; then
8226 soname=conftest
8227 lib=conftest
8228 libobjs=conftest.$ac_objext
8229 deplibs=
8230 wl=$lt_prog_compiler_wl
8231 pic_flag=$lt_prog_compiler_pic
8232 compiler_flags=-v
8233 linker_flags=-v
8234 verstring=
8235 output_objdir=.
8236 libname=conftest
8237 lt_save_allow_undefined_flag=$allow_undefined_flag
8238 allow_undefined_flag=
8239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8240 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8241 ac_status=$?
8242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8243 test $ac_status = 0; }
8244 then
8245 archive_cmds_need_lc=no
8246 else
8247 archive_cmds_need_lc=yes
8249 allow_undefined_flag=$lt_save_allow_undefined_flag
8250 else
8251 cat conftest.err 1>&5
8253 $RM conftest*
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8255 $as_echo "$archive_cmds_need_lc" >&6; }
8257 esac
8260 esac
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8419 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8421 if test "$GCC" = yes; then
8422 case $host_os in
8423 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8424 *) lt_awk_arg="/^libraries:/" ;;
8425 esac
8426 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8427 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8428 # if the path contains ";" then we assume it to be the separator
8429 # otherwise default to the standard path separator (i.e. ":") - it is
8430 # assumed that no part of a normal pathname contains ";" but that should
8431 # okay in the real world where ";" in dirpaths is itself problematic.
8432 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8433 else
8434 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8436 # Ok, now we have the path, separated by spaces, we can step through it
8437 # and add multilib dir if necessary.
8438 lt_tmp_lt_search_path_spec=
8439 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8440 for lt_sys_path in $lt_search_path_spec; do
8441 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8442 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8443 else
8444 test -d "$lt_sys_path" && \
8445 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8447 done
8448 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8449 BEGIN {RS=" "; FS="/|\n";} {
8450 lt_foo="";
8451 lt_count=0;
8452 for (lt_i = NF; lt_i > 0; lt_i--) {
8453 if ($lt_i != "" && $lt_i != ".") {
8454 if ($lt_i == "..") {
8455 lt_count++;
8456 } else {
8457 if (lt_count == 0) {
8458 lt_foo="/" $lt_i lt_foo;
8459 } else {
8460 lt_count--;
8465 if (lt_foo != "") { lt_freq[lt_foo]++; }
8466 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8468 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8469 else
8470 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8472 library_names_spec=
8473 libname_spec='lib$name'
8474 soname_spec=
8475 shrext_cmds=".so"
8476 postinstall_cmds=
8477 postuninstall_cmds=
8478 finish_cmds=
8479 finish_eval=
8480 shlibpath_var=
8481 shlibpath_overrides_runpath=unknown
8482 version_type=none
8483 dynamic_linker="$host_os ld.so"
8484 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8485 need_lib_prefix=unknown
8486 hardcode_into_libs=no
8488 # when you set need_version to no, make sure it does not cause -set_version
8489 # flags to be left without arguments
8490 need_version=unknown
8492 case $host_os in
8493 aix3*)
8494 version_type=linux
8495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8496 shlibpath_var=LIBPATH
8498 # AIX 3 has no versioning support, so we append a major version to the name.
8499 soname_spec='${libname}${release}${shared_ext}$major'
8502 aix[4-9]*)
8503 version_type=linux
8504 need_lib_prefix=no
8505 need_version=no
8506 hardcode_into_libs=yes
8507 if test "$host_cpu" = ia64; then
8508 # AIX 5 supports IA64
8509 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8510 shlibpath_var=LD_LIBRARY_PATH
8511 else
8512 # With GCC up to 2.95.x, collect2 would create an import file
8513 # for dependence libraries. The import file would start with
8514 # the line `#! .'. This would cause the generated library to
8515 # depend on `.', always an invalid library. This was fixed in
8516 # development snapshots of GCC prior to 3.0.
8517 case $host_os in
8518 aix4 | aix4.[01] | aix4.[01].*)
8519 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8520 echo ' yes '
8521 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8523 else
8524 can_build_shared=no
8527 esac
8528 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8529 # soname into executable. Probably we can add versioning support to
8530 # collect2, so additional links can be useful in future.
8531 if test "$aix_use_runtimelinking" = yes; then
8532 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8533 # instead of lib<name>.a to let people know that these are not
8534 # typical AIX shared libraries.
8535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8536 else
8537 # We preserve .a as extension for shared libraries through AIX4.2
8538 # and later when we are not doing run time linking.
8539 library_names_spec='${libname}${release}.a $libname.a'
8540 soname_spec='${libname}${release}${shared_ext}$major'
8542 shlibpath_var=LIBPATH
8546 amigaos*)
8547 case $host_cpu in
8548 powerpc)
8549 # Since July 2007 AmigaOS4 officially supports .so libraries.
8550 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8553 m68k)
8554 library_names_spec='$libname.ixlibrary $libname.a'
8555 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8556 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'
8558 esac
8561 beos*)
8562 library_names_spec='${libname}${shared_ext}'
8563 dynamic_linker="$host_os ld.so"
8564 shlibpath_var=LIBRARY_PATH
8567 bsdi[45]*)
8568 version_type=linux
8569 need_version=no
8570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8571 soname_spec='${libname}${release}${shared_ext}$major'
8572 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8573 shlibpath_var=LD_LIBRARY_PATH
8574 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8575 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8576 # the default ld.so.conf also contains /usr/contrib/lib and
8577 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8578 # libtool to hard-code these into programs
8581 cygwin* | mingw* | pw32* | cegcc*)
8582 version_type=windows
8583 shrext_cmds=".dll"
8584 need_version=no
8585 need_lib_prefix=no
8587 case $GCC,$host_os in
8588 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8589 library_names_spec='$libname.dll.a'
8590 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8591 postinstall_cmds='base_file=`basename \${file}`~
8592 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8593 dldir=$destdir/`dirname \$dlpath`~
8594 test -d \$dldir || mkdir -p \$dldir~
8595 $install_prog $dir/$dlname \$dldir/$dlname~
8596 chmod a+x \$dldir/$dlname~
8597 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8598 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8600 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8601 dlpath=$dir/\$dldll~
8602 $RM \$dlpath'
8603 shlibpath_overrides_runpath=yes
8605 case $host_os in
8606 cygwin*)
8607 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8608 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8609 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8611 mingw* | cegcc*)
8612 # MinGW DLLs use traditional 'lib' prefix
8613 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8614 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8615 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8616 # It is most probably a Windows format PATH printed by
8617 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8618 # path with ; separators, and with drive letters. We can handle the
8619 # drive letters (cygwin fileutils understands them), so leave them,
8620 # especially as we might pass files found there to a mingw objdump,
8621 # which wouldn't understand a cygwinified path. Ahh.
8622 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8623 else
8624 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8627 pw32*)
8628 # pw32 DLLs use 'pw' prefix rather than 'lib'
8629 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8631 esac
8635 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8637 esac
8638 dynamic_linker='Win32 ld.exe'
8639 # FIXME: first we should search . and the directory the executable is in
8640 shlibpath_var=PATH
8643 darwin* | rhapsody*)
8644 dynamic_linker="$host_os dyld"
8645 version_type=darwin
8646 need_lib_prefix=no
8647 need_version=no
8648 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8649 soname_spec='${libname}${release}${major}$shared_ext'
8650 shlibpath_overrides_runpath=yes
8651 shlibpath_var=DYLD_LIBRARY_PATH
8652 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8654 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8655 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8658 dgux*)
8659 version_type=linux
8660 need_lib_prefix=no
8661 need_version=no
8662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8663 soname_spec='${libname}${release}${shared_ext}$major'
8664 shlibpath_var=LD_LIBRARY_PATH
8667 freebsd1*)
8668 dynamic_linker=no
8671 freebsd* | dragonfly*)
8672 # DragonFly does not have aout. When/if they implement a new
8673 # versioning mechanism, adjust this.
8674 if test -x /usr/bin/objformat; then
8675 objformat=`/usr/bin/objformat`
8676 else
8677 case $host_os in
8678 freebsd[123]*) objformat=aout ;;
8679 *) objformat=elf ;;
8680 esac
8682 # Handle Gentoo/FreeBSD as it was Linux
8683 case $host_vendor in
8684 gentoo)
8685 version_type=linux ;;
8687 version_type=freebsd-$objformat ;;
8688 esac
8690 case $version_type in
8691 freebsd-elf*)
8692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8693 need_version=no
8694 need_lib_prefix=no
8696 freebsd-*)
8697 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8698 need_version=yes
8700 linux)
8701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8702 soname_spec='${libname}${release}${shared_ext}$major'
8703 need_lib_prefix=no
8704 need_version=no
8706 esac
8707 shlibpath_var=LD_LIBRARY_PATH
8708 case $host_os in
8709 freebsd2*)
8710 shlibpath_overrides_runpath=yes
8712 freebsd3.[01]* | freebsdelf3.[01]*)
8713 shlibpath_overrides_runpath=yes
8714 hardcode_into_libs=yes
8716 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8717 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8718 shlibpath_overrides_runpath=no
8719 hardcode_into_libs=yes
8721 *) # from 4.6 on, and DragonFly
8722 shlibpath_overrides_runpath=yes
8723 hardcode_into_libs=yes
8725 esac
8728 gnu*)
8729 version_type=linux
8730 need_lib_prefix=no
8731 need_version=no
8732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8733 soname_spec='${libname}${release}${shared_ext}$major'
8734 shlibpath_var=LD_LIBRARY_PATH
8735 hardcode_into_libs=yes
8738 hpux9* | hpux10* | hpux11*)
8739 # Give a soname corresponding to the major version so that dld.sl refuses to
8740 # link against other versions.
8741 version_type=sunos
8742 need_lib_prefix=no
8743 need_version=no
8744 case $host_cpu in
8745 ia64*)
8746 shrext_cmds='.so'
8747 hardcode_into_libs=yes
8748 dynamic_linker="$host_os dld.so"
8749 shlibpath_var=LD_LIBRARY_PATH
8750 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8752 soname_spec='${libname}${release}${shared_ext}$major'
8753 if test "X$HPUX_IA64_MODE" = X32; then
8754 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8755 else
8756 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8760 hppa*64*)
8761 shrext_cmds='.sl'
8762 hardcode_into_libs=yes
8763 dynamic_linker="$host_os dld.sl"
8764 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8765 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8767 soname_spec='${libname}${release}${shared_ext}$major'
8768 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8769 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8772 shrext_cmds='.sl'
8773 dynamic_linker="$host_os dld.sl"
8774 shlibpath_var=SHLIB_PATH
8775 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8777 soname_spec='${libname}${release}${shared_ext}$major'
8779 esac
8780 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8781 postinstall_cmds='chmod 555 $lib'
8784 interix[3-9]*)
8785 version_type=linux
8786 need_lib_prefix=no
8787 need_version=no
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8789 soname_spec='${libname}${release}${shared_ext}$major'
8790 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8791 shlibpath_var=LD_LIBRARY_PATH
8792 shlibpath_overrides_runpath=no
8793 hardcode_into_libs=yes
8796 irix5* | irix6* | nonstopux*)
8797 case $host_os in
8798 nonstopux*) version_type=nonstopux ;;
8800 if test "$lt_cv_prog_gnu_ld" = yes; then
8801 version_type=linux
8802 else
8803 version_type=irix
8804 fi ;;
8805 esac
8806 need_lib_prefix=no
8807 need_version=no
8808 soname_spec='${libname}${release}${shared_ext}$major'
8809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8810 case $host_os in
8811 irix5* | nonstopux*)
8812 libsuff= shlibsuff=
8815 case $LD in # libtool.m4 will add one of these switches to LD
8816 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8817 libsuff= shlibsuff= libmagic=32-bit;;
8818 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8819 libsuff=32 shlibsuff=N32 libmagic=N32;;
8820 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8821 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8822 *) libsuff= shlibsuff= libmagic=never-match;;
8823 esac
8825 esac
8826 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8827 shlibpath_overrides_runpath=no
8828 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8829 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8830 hardcode_into_libs=yes
8833 # No shared lib support for Linux oldld, aout, or coff.
8834 linux*oldld* | linux*aout* | linux*coff*)
8835 dynamic_linker=no
8838 # This must be Linux ELF.
8839 linux* | k*bsd*-gnu)
8840 version_type=linux
8841 need_lib_prefix=no
8842 need_version=no
8843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8844 soname_spec='${libname}${release}${shared_ext}$major'
8845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8846 shlibpath_var=LD_LIBRARY_PATH
8847 shlibpath_overrides_runpath=no
8848 # Some binutils ld are patched to set DT_RUNPATH
8849 save_LDFLAGS=$LDFLAGS
8850 save_libdir=$libdir
8851 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8852 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854 /* end confdefs.h. */
8857 main ()
8861 return 0;
8863 _ACEOF
8864 if ac_fn_c_try_link "$LINENO"; then :
8865 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
8866 shlibpath_overrides_runpath=yes
8869 rm -f core conftest.err conftest.$ac_objext \
8870 conftest$ac_exeext conftest.$ac_ext
8871 LDFLAGS=$save_LDFLAGS
8872 libdir=$save_libdir
8874 # This implies no fast_install, which is unacceptable.
8875 # Some rework will be needed to allow for fast_install
8876 # before this can be enabled.
8877 hardcode_into_libs=yes
8879 # Append ld.so.conf contents to the search path
8880 if test -f /etc/ld.so.conf; then
8881 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' ' '`
8882 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8885 # We used to test for /lib/ld.so.1 and disable shared libraries on
8886 # powerpc, because MkLinux only supported shared libraries with the
8887 # GNU dynamic linker. Since this was broken with cross compilers,
8888 # most powerpc-linux boxes support dynamic linking these days and
8889 # people can always --disable-shared, the test was removed, and we
8890 # assume the GNU/Linux dynamic linker is in use.
8891 dynamic_linker='GNU/Linux ld.so'
8894 netbsd*)
8895 version_type=sunos
8896 need_lib_prefix=no
8897 need_version=no
8898 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8901 dynamic_linker='NetBSD (a.out) ld.so'
8902 else
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8904 soname_spec='${libname}${release}${shared_ext}$major'
8905 dynamic_linker='NetBSD ld.elf_so'
8907 shlibpath_var=LD_LIBRARY_PATH
8908 shlibpath_overrides_runpath=yes
8909 hardcode_into_libs=yes
8912 newsos6)
8913 version_type=linux
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=yes
8919 *nto* | *qnx*)
8920 version_type=qnx
8921 need_lib_prefix=no
8922 need_version=no
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 shlibpath_var=LD_LIBRARY_PATH
8926 shlibpath_overrides_runpath=no
8927 hardcode_into_libs=yes
8928 dynamic_linker='ldqnx.so'
8931 openbsd*)
8932 version_type=sunos
8933 sys_lib_dlsearch_path_spec="/usr/lib"
8934 need_lib_prefix=no
8935 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8936 case $host_os in
8937 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8938 *) need_version=no ;;
8939 esac
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8942 shlibpath_var=LD_LIBRARY_PATH
8943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8944 case $host_os in
8945 openbsd2.[89] | openbsd2.[89].*)
8946 shlibpath_overrides_runpath=no
8949 shlibpath_overrides_runpath=yes
8951 esac
8952 else
8953 shlibpath_overrides_runpath=yes
8957 os2*)
8958 libname_spec='$name'
8959 shrext_cmds=".dll"
8960 need_lib_prefix=no
8961 library_names_spec='$libname${shared_ext} $libname.a'
8962 dynamic_linker='OS/2 ld.exe'
8963 shlibpath_var=LIBPATH
8966 osf3* | osf4* | osf5*)
8967 version_type=osf
8968 need_lib_prefix=no
8969 need_version=no
8970 soname_spec='${libname}${release}${shared_ext}$major'
8971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972 shlibpath_var=LD_LIBRARY_PATH
8973 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8974 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8977 rdos*)
8978 dynamic_linker=no
8981 solaris*)
8982 version_type=linux
8983 need_lib_prefix=no
8984 need_version=no
8985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8986 soname_spec='${libname}${release}${shared_ext}$major'
8987 shlibpath_var=LD_LIBRARY_PATH
8988 shlibpath_overrides_runpath=yes
8989 hardcode_into_libs=yes
8990 # ldd complains unless libraries are executable
8991 postinstall_cmds='chmod +x $lib'
8994 sunos4*)
8995 version_type=sunos
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8997 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8998 shlibpath_var=LD_LIBRARY_PATH
8999 shlibpath_overrides_runpath=yes
9000 if test "$with_gnu_ld" = yes; then
9001 need_lib_prefix=no
9003 need_version=yes
9006 sysv4 | sysv4.3*)
9007 version_type=linux
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9009 soname_spec='${libname}${release}${shared_ext}$major'
9010 shlibpath_var=LD_LIBRARY_PATH
9011 case $host_vendor in
9012 sni)
9013 shlibpath_overrides_runpath=no
9014 need_lib_prefix=no
9015 runpath_var=LD_RUN_PATH
9017 siemens)
9018 need_lib_prefix=no
9020 motorola)
9021 need_lib_prefix=no
9022 need_version=no
9023 shlibpath_overrides_runpath=no
9024 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9026 esac
9029 sysv4*MP*)
9030 if test -d /usr/nec ;then
9031 version_type=linux
9032 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9033 soname_spec='$libname${shared_ext}.$major'
9034 shlibpath_var=LD_LIBRARY_PATH
9038 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9039 version_type=freebsd-elf
9040 need_lib_prefix=no
9041 need_version=no
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 shlibpath_var=LD_LIBRARY_PATH
9045 shlibpath_overrides_runpath=yes
9046 hardcode_into_libs=yes
9047 if test "$with_gnu_ld" = yes; then
9048 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9049 else
9050 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9051 case $host_os in
9052 sco3.2v5*)
9053 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9055 esac
9057 sys_lib_dlsearch_path_spec='/usr/lib'
9060 tpf*)
9061 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9062 version_type=linux
9063 need_lib_prefix=no
9064 need_version=no
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=no
9068 hardcode_into_libs=yes
9071 uts4*)
9072 version_type=linux
9073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 soname_spec='${libname}${release}${shared_ext}$major'
9075 shlibpath_var=LD_LIBRARY_PATH
9079 dynamic_linker=no
9081 esac
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9083 $as_echo "$dynamic_linker" >&6; }
9084 test "$dynamic_linker" = no && can_build_shared=no
9086 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9087 if test "$GCC" = yes; then
9088 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9091 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9092 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9094 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9095 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9185 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9186 hardcode_action=
9187 if test -n "$hardcode_libdir_flag_spec" ||
9188 test -n "$runpath_var" ||
9189 test "X$hardcode_automatic" = "Xyes" ; then
9191 # We can hardcode non-existent directories.
9192 if test "$hardcode_direct" != no &&
9193 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9194 # have to relink, otherwise we might link with an installed library
9195 # when we should be linking with a yet-to-be-installed one
9196 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9197 test "$hardcode_minus_L" != no; then
9198 # Linking always hardcodes the temporary library directory.
9199 hardcode_action=relink
9200 else
9201 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9202 hardcode_action=immediate
9204 else
9205 # We cannot hardcode anything, or else we can only hardcode existing
9206 # directories.
9207 hardcode_action=unsupported
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9210 $as_echo "$hardcode_action" >&6; }
9212 if test "$hardcode_action" = relink ||
9213 test "$inherit_rpath" = yes; then
9214 # Fast installation is not supported
9215 enable_fast_install=no
9216 elif test "$shlibpath_overrides_runpath" = yes ||
9217 test "$enable_shared" = no; then
9218 # Fast installation is not necessary
9219 enable_fast_install=needless
9227 if test "x$enable_dlopen" != xyes; then
9228 enable_dlopen=unknown
9229 enable_dlopen_self=unknown
9230 enable_dlopen_self_static=unknown
9231 else
9232 lt_cv_dlopen=no
9233 lt_cv_dlopen_libs=
9235 case $host_os in
9236 beos*)
9237 lt_cv_dlopen="load_add_on"
9238 lt_cv_dlopen_libs=
9239 lt_cv_dlopen_self=yes
9242 mingw* | pw32* | cegcc*)
9243 lt_cv_dlopen="LoadLibrary"
9244 lt_cv_dlopen_libs=
9247 cygwin*)
9248 lt_cv_dlopen="dlopen"
9249 lt_cv_dlopen_libs=
9252 darwin*)
9253 # if libdl is installed we need to link against it
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9255 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9256 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9257 $as_echo_n "(cached) " >&6
9258 else
9259 ac_check_lib_save_LIBS=$LIBS
9260 LIBS="-ldl $LIBS"
9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9264 /* Override any GCC internal prototype to avoid an error.
9265 Use char because int might match the return type of a GCC
9266 builtin and then its argument prototype would still apply. */
9267 #ifdef __cplusplus
9268 extern "C"
9269 #endif
9270 char dlopen ();
9272 main ()
9274 return dlopen ();
9276 return 0;
9278 _ACEOF
9279 if ac_fn_c_try_link "$LINENO"; then :
9280 ac_cv_lib_dl_dlopen=yes
9281 else
9282 ac_cv_lib_dl_dlopen=no
9284 rm -f core conftest.err conftest.$ac_objext \
9285 conftest$ac_exeext conftest.$ac_ext
9286 LIBS=$ac_check_lib_save_LIBS
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9289 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9290 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9292 else
9294 lt_cv_dlopen="dyld"
9295 lt_cv_dlopen_libs=
9296 lt_cv_dlopen_self=yes
9303 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9304 if test "x$ac_cv_func_shl_load" = x""yes; then :
9305 lt_cv_dlopen="shl_load"
9306 else
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9308 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9309 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9310 $as_echo_n "(cached) " >&6
9311 else
9312 ac_check_lib_save_LIBS=$LIBS
9313 LIBS="-ldld $LIBS"
9314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9315 /* end confdefs.h. */
9317 /* Override any GCC internal prototype to avoid an error.
9318 Use char because int might match the return type of a GCC
9319 builtin and then its argument prototype would still apply. */
9320 #ifdef __cplusplus
9321 extern "C"
9322 #endif
9323 char shl_load ();
9325 main ()
9327 return shl_load ();
9329 return 0;
9331 _ACEOF
9332 if ac_fn_c_try_link "$LINENO"; then :
9333 ac_cv_lib_dld_shl_load=yes
9334 else
9335 ac_cv_lib_dld_shl_load=no
9337 rm -f core conftest.err conftest.$ac_objext \
9338 conftest$ac_exeext conftest.$ac_ext
9339 LIBS=$ac_check_lib_save_LIBS
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9342 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9343 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9344 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9345 else
9346 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9347 if test "x$ac_cv_func_dlopen" = x""yes; then :
9348 lt_cv_dlopen="dlopen"
9349 else
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9351 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9352 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 ac_check_lib_save_LIBS=$LIBS
9356 LIBS="-ldl $LIBS"
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9360 /* Override any GCC internal prototype to avoid an error.
9361 Use char because int might match the return type of a GCC
9362 builtin and then its argument prototype would still apply. */
9363 #ifdef __cplusplus
9364 extern "C"
9365 #endif
9366 char dlopen ();
9368 main ()
9370 return dlopen ();
9372 return 0;
9374 _ACEOF
9375 if ac_fn_c_try_link "$LINENO"; then :
9376 ac_cv_lib_dl_dlopen=yes
9377 else
9378 ac_cv_lib_dl_dlopen=no
9380 rm -f core conftest.err conftest.$ac_objext \
9381 conftest$ac_exeext conftest.$ac_ext
9382 LIBS=$ac_check_lib_save_LIBS
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9385 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9386 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9387 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9388 else
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9390 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9391 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 ac_check_lib_save_LIBS=$LIBS
9395 LIBS="-lsvld $LIBS"
9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397 /* end confdefs.h. */
9399 /* Override any GCC internal prototype to avoid an error.
9400 Use char because int might match the return type of a GCC
9401 builtin and then its argument prototype would still apply. */
9402 #ifdef __cplusplus
9403 extern "C"
9404 #endif
9405 char dlopen ();
9407 main ()
9409 return dlopen ();
9411 return 0;
9413 _ACEOF
9414 if ac_fn_c_try_link "$LINENO"; then :
9415 ac_cv_lib_svld_dlopen=yes
9416 else
9417 ac_cv_lib_svld_dlopen=no
9419 rm -f core conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext conftest.$ac_ext
9421 LIBS=$ac_check_lib_save_LIBS
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9424 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9425 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9426 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9427 else
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9429 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9430 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9431 $as_echo_n "(cached) " >&6
9432 else
9433 ac_check_lib_save_LIBS=$LIBS
9434 LIBS="-ldld $LIBS"
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9438 /* Override any GCC internal prototype to avoid an error.
9439 Use char because int might match the return type of a GCC
9440 builtin and then its argument prototype would still apply. */
9441 #ifdef __cplusplus
9442 extern "C"
9443 #endif
9444 char dld_link ();
9446 main ()
9448 return dld_link ();
9450 return 0;
9452 _ACEOF
9453 if ac_fn_c_try_link "$LINENO"; then :
9454 ac_cv_lib_dld_dld_link=yes
9455 else
9456 ac_cv_lib_dld_dld_link=no
9458 rm -f core conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9460 LIBS=$ac_check_lib_save_LIBS
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9463 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9464 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9465 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9484 esac
9486 if test "x$lt_cv_dlopen" != xno; then
9487 enable_dlopen=yes
9488 else
9489 enable_dlopen=no
9492 case $lt_cv_dlopen in
9493 dlopen)
9494 save_CPPFLAGS="$CPPFLAGS"
9495 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9497 save_LDFLAGS="$LDFLAGS"
9498 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9500 save_LIBS="$LIBS"
9501 LIBS="$lt_cv_dlopen_libs $LIBS"
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9504 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9505 if test "${lt_cv_dlopen_self+set}" = set; then :
9506 $as_echo_n "(cached) " >&6
9507 else
9508 if test "$cross_compiling" = yes; then :
9509 lt_cv_dlopen_self=cross
9510 else
9511 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9512 lt_status=$lt_dlunknown
9513 cat > conftest.$ac_ext <<_LT_EOF
9514 #line 9514 "configure"
9515 #include "confdefs.h"
9517 #if HAVE_DLFCN_H
9518 #include <dlfcn.h>
9519 #endif
9521 #include <stdio.h>
9523 #ifdef RTLD_GLOBAL
9524 # define LT_DLGLOBAL RTLD_GLOBAL
9525 #else
9526 # ifdef DL_GLOBAL
9527 # define LT_DLGLOBAL DL_GLOBAL
9528 # else
9529 # define LT_DLGLOBAL 0
9530 # endif
9531 #endif
9533 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9534 find out it does not work in some platform. */
9535 #ifndef LT_DLLAZY_OR_NOW
9536 # ifdef RTLD_LAZY
9537 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9538 # else
9539 # ifdef DL_LAZY
9540 # define LT_DLLAZY_OR_NOW DL_LAZY
9541 # else
9542 # ifdef RTLD_NOW
9543 # define LT_DLLAZY_OR_NOW RTLD_NOW
9544 # else
9545 # ifdef DL_NOW
9546 # define LT_DLLAZY_OR_NOW DL_NOW
9547 # else
9548 # define LT_DLLAZY_OR_NOW 0
9549 # endif
9550 # endif
9551 # endif
9552 # endif
9553 #endif
9555 void fnord() { int i=42;}
9556 int main ()
9558 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9559 int status = $lt_dlunknown;
9561 if (self)
9563 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9564 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9565 /* dlclose (self); */
9567 else
9568 puts (dlerror ());
9570 return status;
9572 _LT_EOF
9573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9574 (eval $ac_link) 2>&5
9575 ac_status=$?
9576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9577 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9578 (./conftest; exit; ) >&5 2>/dev/null
9579 lt_status=$?
9580 case x$lt_status in
9581 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9582 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9583 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9584 esac
9585 else :
9586 # compilation failed
9587 lt_cv_dlopen_self=no
9590 rm -fr conftest*
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9595 $as_echo "$lt_cv_dlopen_self" >&6; }
9597 if test "x$lt_cv_dlopen_self" = xyes; then
9598 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9600 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9601 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9602 $as_echo_n "(cached) " >&6
9603 else
9604 if test "$cross_compiling" = yes; then :
9605 lt_cv_dlopen_self_static=cross
9606 else
9607 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9608 lt_status=$lt_dlunknown
9609 cat > conftest.$ac_ext <<_LT_EOF
9610 #line 9610 "configure"
9611 #include "confdefs.h"
9613 #if HAVE_DLFCN_H
9614 #include <dlfcn.h>
9615 #endif
9617 #include <stdio.h>
9619 #ifdef RTLD_GLOBAL
9620 # define LT_DLGLOBAL RTLD_GLOBAL
9621 #else
9622 # ifdef DL_GLOBAL
9623 # define LT_DLGLOBAL DL_GLOBAL
9624 # else
9625 # define LT_DLGLOBAL 0
9626 # endif
9627 #endif
9629 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9630 find out it does not work in some platform. */
9631 #ifndef LT_DLLAZY_OR_NOW
9632 # ifdef RTLD_LAZY
9633 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9634 # else
9635 # ifdef DL_LAZY
9636 # define LT_DLLAZY_OR_NOW DL_LAZY
9637 # else
9638 # ifdef RTLD_NOW
9639 # define LT_DLLAZY_OR_NOW RTLD_NOW
9640 # else
9641 # ifdef DL_NOW
9642 # define LT_DLLAZY_OR_NOW DL_NOW
9643 # else
9644 # define LT_DLLAZY_OR_NOW 0
9645 # endif
9646 # endif
9647 # endif
9648 # endif
9649 #endif
9651 void fnord() { int i=42;}
9652 int main ()
9654 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9655 int status = $lt_dlunknown;
9657 if (self)
9659 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9660 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9661 /* dlclose (self); */
9663 else
9664 puts (dlerror ());
9666 return status;
9668 _LT_EOF
9669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9670 (eval $ac_link) 2>&5
9671 ac_status=$?
9672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9673 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9674 (./conftest; exit; ) >&5 2>/dev/null
9675 lt_status=$?
9676 case x$lt_status in
9677 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9678 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9679 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9680 esac
9681 else :
9682 # compilation failed
9683 lt_cv_dlopen_self_static=no
9686 rm -fr conftest*
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9691 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9694 CPPFLAGS="$save_CPPFLAGS"
9695 LDFLAGS="$save_LDFLAGS"
9696 LIBS="$save_LIBS"
9698 esac
9700 case $lt_cv_dlopen_self in
9701 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9702 *) enable_dlopen_self=unknown ;;
9703 esac
9705 case $lt_cv_dlopen_self_static in
9706 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9707 *) enable_dlopen_self_static=unknown ;;
9708 esac
9727 striplib=
9728 old_striplib=
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9730 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9731 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9732 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9733 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9735 $as_echo "yes" >&6; }
9736 else
9737 # FIXME - insert some real tests, host_os isn't really good enough
9738 case $host_os in
9739 darwin*)
9740 if test -n "$STRIP" ; then
9741 striplib="$STRIP -x"
9742 old_striplib="$STRIP -S"
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9744 $as_echo "yes" >&6; }
9745 else
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747 $as_echo "no" >&6; }
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752 $as_echo "no" >&6; }
9754 esac
9768 # Report which library types will actually be built
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9770 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9772 $as_echo "$can_build_shared" >&6; }
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9775 $as_echo_n "checking whether to build shared libraries... " >&6; }
9776 test "$can_build_shared" = "no" && enable_shared=no
9778 # On AIX, shared libraries and static libraries use the same namespace, and
9779 # are all built from PIC.
9780 case $host_os in
9781 aix3*)
9782 test "$enable_shared" = yes && enable_static=no
9783 if test -n "$RANLIB"; then
9784 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9785 postinstall_cmds='$RANLIB $lib'
9789 aix[4-9]*)
9790 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9791 test "$enable_shared" = yes && enable_static=no
9794 esac
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9796 $as_echo "$enable_shared" >&6; }
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9799 $as_echo_n "checking whether to build static libraries... " >&6; }
9800 # Make sure either enable_shared or enable_static is yes.
9801 test "$enable_shared" = yes || enable_static=yes
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9803 $as_echo "$enable_static" >&6; }
9809 ac_ext=c
9810 ac_cpp='$CPP $CPPFLAGS'
9811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9815 CC="$lt_save_CC"
9829 ac_config_commands="$ac_config_commands libtool"
9834 # Only expand once:
9837 # Find a good install program. We prefer a C program (faster),
9838 # so one script is as good as another. But avoid the broken or
9839 # incompatible versions:
9840 # SysV /etc/install, /usr/sbin/install
9841 # SunOS /usr/etc/install
9842 # IRIX /sbin/install
9843 # AIX /bin/install
9844 # AmigaOS /C/install, which installs bootblocks on floppy discs
9845 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9846 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9847 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9848 # OS/2's system install, which has a completely different semantic
9849 # ./install, which can be erroneously created by make from ./install.sh.
9850 # Reject install programs that cannot install multiple files.
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
9852 $as_echo_n "checking for a BSD-compatible install... " >&6; }
9853 if test -z "$INSTALL"; then
9854 if test "${ac_cv_path_install+set}" = set; then :
9855 $as_echo_n "(cached) " >&6
9856 else
9857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858 for as_dir in $PATH
9860 IFS=$as_save_IFS
9861 test -z "$as_dir" && as_dir=.
9862 # Account for people who put trailing slashes in PATH elements.
9863 case $as_dir/ in #((
9864 ./ | .// | /[cC]/* | \
9865 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9866 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
9867 /usr/ucb/* ) ;;
9869 # OSF1 and SCO ODT 3.0 have their own names for install.
9870 # Don't use installbsd from OSF since it installs stuff as root
9871 # by default.
9872 for ac_prog in ginstall scoinst install; do
9873 for ac_exec_ext in '' $ac_executable_extensions; do
9874 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
9875 if test $ac_prog = install &&
9876 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9877 # AIX install. It has an incompatible calling convention.
9879 elif test $ac_prog = install &&
9880 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9881 # program-specific install script used by HP pwplus--don't use.
9883 else
9884 rm -rf conftest.one conftest.two conftest.dir
9885 echo one > conftest.one
9886 echo two > conftest.two
9887 mkdir conftest.dir
9888 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9889 test -s conftest.one && test -s conftest.two &&
9890 test -s conftest.dir/conftest.one &&
9891 test -s conftest.dir/conftest.two
9892 then
9893 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9894 break 3
9898 done
9899 done
9901 esac
9903 done
9904 IFS=$as_save_IFS
9906 rm -rf conftest.one conftest.two conftest.dir
9909 if test "${ac_cv_path_install+set}" = set; then
9910 INSTALL=$ac_cv_path_install
9911 else
9912 # As a last resort, use the slow shell script. Don't cache a
9913 # value for INSTALL within a source directory, because that will
9914 # break other packages using the cache if that directory is
9915 # removed, or if the value is a relative name.
9916 INSTALL=$ac_install_sh
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
9920 $as_echo "$INSTALL" >&6; }
9922 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9923 # It thinks the first close brace ends the variable substitution.
9924 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9926 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9928 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9930 for ac_prog in gawk mawk nawk awk
9932 # Extract the first word of "$ac_prog", so it can be a program name with args.
9933 set dummy $ac_prog; ac_word=$2
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935 $as_echo_n "checking for $ac_word... " >&6; }
9936 if test "${ac_cv_prog_AWK+set}" = set; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 if test -n "$AWK"; then
9940 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9941 else
9942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943 for as_dir in $PATH
9945 IFS=$as_save_IFS
9946 test -z "$as_dir" && as_dir=.
9947 for ac_exec_ext in '' $ac_executable_extensions; do
9948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9949 ac_cv_prog_AWK="$ac_prog"
9950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9951 break 2
9953 done
9954 done
9955 IFS=$as_save_IFS
9959 AWK=$ac_cv_prog_AWK
9960 if test -n "$AWK"; then
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9962 $as_echo "$AWK" >&6; }
9963 else
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9965 $as_echo "no" >&6; }
9969 test -n "$AWK" && break
9970 done
9973 #########
9974 # Enable large file support (if special flags are necessary)
9976 # Check whether --enable-largefile was given.
9977 if test "${enable_largefile+set}" = set; then :
9978 enableval=$enable_largefile;
9981 if test "$enable_largefile" != no; then
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9984 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9985 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
9986 $as_echo_n "(cached) " >&6
9987 else
9988 ac_cv_sys_largefile_CC=no
9989 if test "$GCC" != yes; then
9990 ac_save_CC=$CC
9991 while :; do
9992 # IRIX 6.2 and later do not support large files by default,
9993 # so use the C compiler's -n32 option if that helps.
9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995 /* end confdefs.h. */
9996 #include <sys/types.h>
9997 /* Check that off_t can represent 2**63 - 1 correctly.
9998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9999 since some C++ compilers masquerading as C compilers
10000 incorrectly reject 9223372036854775807. */
10001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10003 && LARGE_OFF_T % 2147483647 == 1)
10004 ? 1 : -1];
10006 main ()
10010 return 0;
10012 _ACEOF
10013 if ac_fn_c_try_compile "$LINENO"; then :
10014 break
10016 rm -f core conftest.err conftest.$ac_objext
10017 CC="$CC -n32"
10018 if ac_fn_c_try_compile "$LINENO"; then :
10019 ac_cv_sys_largefile_CC=' -n32'; break
10021 rm -f core conftest.err conftest.$ac_objext
10022 break
10023 done
10024 CC=$ac_save_CC
10025 rm -f conftest.$ac_ext
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10029 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10030 if test "$ac_cv_sys_largefile_CC" != no; then
10031 CC=$CC$ac_cv_sys_largefile_CC
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10035 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10036 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
10037 $as_echo_n "(cached) " >&6
10038 else
10039 while :; do
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10042 #include <sys/types.h>
10043 /* Check that off_t can represent 2**63 - 1 correctly.
10044 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10045 since some C++ compilers masquerading as C compilers
10046 incorrectly reject 9223372036854775807. */
10047 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10048 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10049 && LARGE_OFF_T % 2147483647 == 1)
10050 ? 1 : -1];
10052 main ()
10056 return 0;
10058 _ACEOF
10059 if ac_fn_c_try_compile "$LINENO"; then :
10060 ac_cv_sys_file_offset_bits=no; break
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10065 #define _FILE_OFFSET_BITS 64
10066 #include <sys/types.h>
10067 /* Check that off_t can represent 2**63 - 1 correctly.
10068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10069 since some C++ compilers masquerading as C compilers
10070 incorrectly reject 9223372036854775807. */
10071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10073 && LARGE_OFF_T % 2147483647 == 1)
10074 ? 1 : -1];
10076 main ()
10080 return 0;
10082 _ACEOF
10083 if ac_fn_c_try_compile "$LINENO"; then :
10084 ac_cv_sys_file_offset_bits=64; break
10086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10087 ac_cv_sys_file_offset_bits=unknown
10088 break
10089 done
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10092 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10093 case $ac_cv_sys_file_offset_bits in #(
10094 no | unknown) ;;
10096 cat >>confdefs.h <<_ACEOF
10097 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10098 _ACEOF
10100 esac
10101 rm -rf conftest*
10102 if test $ac_cv_sys_file_offset_bits = unknown; then
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10104 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10105 if test "${ac_cv_sys_large_files+set}" = set; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 while :; do
10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110 /* end confdefs.h. */
10111 #include <sys/types.h>
10112 /* Check that off_t can represent 2**63 - 1 correctly.
10113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10114 since some C++ compilers masquerading as C compilers
10115 incorrectly reject 9223372036854775807. */
10116 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10118 && LARGE_OFF_T % 2147483647 == 1)
10119 ? 1 : -1];
10121 main ()
10125 return 0;
10127 _ACEOF
10128 if ac_fn_c_try_compile "$LINENO"; then :
10129 ac_cv_sys_large_files=no; break
10131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10134 #define _LARGE_FILES 1
10135 #include <sys/types.h>
10136 /* Check that off_t can represent 2**63 - 1 correctly.
10137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10138 since some C++ compilers masquerading as C compilers
10139 incorrectly reject 9223372036854775807. */
10140 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10142 && LARGE_OFF_T % 2147483647 == 1)
10143 ? 1 : -1];
10145 main ()
10149 return 0;
10151 _ACEOF
10152 if ac_fn_c_try_compile "$LINENO"; then :
10153 ac_cv_sys_large_files=1; break
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 ac_cv_sys_large_files=unknown
10157 break
10158 done
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10161 $as_echo "$ac_cv_sys_large_files" >&6; }
10162 case $ac_cv_sys_large_files in #(
10163 no | unknown) ;;
10165 cat >>confdefs.h <<_ACEOF
10166 #define _LARGE_FILES $ac_cv_sys_large_files
10167 _ACEOF
10169 esac
10170 rm -rf conftest*
10175 #########
10176 # Check for needed/wanted data types
10177 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10178 if test "x$ac_cv_type_int8_t" = x""yes; then :
10180 cat >>confdefs.h <<_ACEOF
10181 #define HAVE_INT8_T 1
10182 _ACEOF
10186 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10187 if test "x$ac_cv_type_int16_t" = x""yes; then :
10189 cat >>confdefs.h <<_ACEOF
10190 #define HAVE_INT16_T 1
10191 _ACEOF
10195 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10196 if test "x$ac_cv_type_int32_t" = x""yes; then :
10198 cat >>confdefs.h <<_ACEOF
10199 #define HAVE_INT32_T 1
10200 _ACEOF
10204 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10205 if test "x$ac_cv_type_int64_t" = x""yes; then :
10207 cat >>confdefs.h <<_ACEOF
10208 #define HAVE_INT64_T 1
10209 _ACEOF
10213 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10214 if test "x$ac_cv_type_intptr_t" = x""yes; then :
10216 cat >>confdefs.h <<_ACEOF
10217 #define HAVE_INTPTR_T 1
10218 _ACEOF
10222 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10223 if test "x$ac_cv_type_uint8_t" = x""yes; then :
10225 cat >>confdefs.h <<_ACEOF
10226 #define HAVE_UINT8_T 1
10227 _ACEOF
10231 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10232 if test "x$ac_cv_type_uint16_t" = x""yes; then :
10234 cat >>confdefs.h <<_ACEOF
10235 #define HAVE_UINT16_T 1
10236 _ACEOF
10240 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10241 if test "x$ac_cv_type_uint32_t" = x""yes; then :
10243 cat >>confdefs.h <<_ACEOF
10244 #define HAVE_UINT32_T 1
10245 _ACEOF
10249 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10250 if test "x$ac_cv_type_uint64_t" = x""yes; then :
10252 cat >>confdefs.h <<_ACEOF
10253 #define HAVE_UINT64_T 1
10254 _ACEOF
10258 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10259 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
10261 cat >>confdefs.h <<_ACEOF
10262 #define HAVE_UINTPTR_T 1
10263 _ACEOF
10269 #########
10270 # Check for needed/wanted headers
10271 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
10272 do :
10273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10274 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10275 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10276 cat >>confdefs.h <<_ACEOF
10277 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10278 _ACEOF
10282 done
10285 #########
10286 # Figure out whether or not we have these functions
10288 for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s utime
10289 do :
10290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10291 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10292 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10293 cat >>confdefs.h <<_ACEOF
10294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10295 _ACEOF
10298 done
10301 #########
10302 # By default, we use the amalgamation (this may be changed below...)
10304 USE_AMALGAMATION=1
10306 #########
10307 # See whether we can run specific tclsh versions known to work well;
10308 # if not, then we fall back to plain tclsh.
10309 # TODO: try other versions before falling back?
10311 for ac_prog in tclsh8.5 tclsh
10313 # Extract the first word of "$ac_prog", so it can be a program name with args.
10314 set dummy $ac_prog; ac_word=$2
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10316 $as_echo_n "checking for $ac_word... " >&6; }
10317 if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 if test -n "$TCLSH_CMD"; then
10321 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10322 else
10323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324 for as_dir in $PATH
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
10328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10330 ac_cv_prog_TCLSH_CMD="$ac_prog"
10331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 break 2
10334 done
10335 done
10336 IFS=$as_save_IFS
10340 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10341 if test -n "$TCLSH_CMD"; then
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
10343 $as_echo "$TCLSH_CMD" >&6; }
10344 else
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346 $as_echo "no" >&6; }
10350 test -n "$TCLSH_CMD" && break
10351 done
10352 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
10354 if test "$TCLSH_CMD" = "none"; then
10355 # If we can't find a local tclsh, then building the amalgamation will fail.
10356 # We act as though --disable-amalgamation has been used.
10357 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10358 USE_AMALGAMATION=0
10359 TCLSH_CMD="tclsh"
10364 if test "x${TCLLIBDIR+set}" != "xset" ; then
10365 TCLLIBDIR='$(libdir)'
10366 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10367 TCLLIBDIR=$i
10368 break
10369 done
10370 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10374 #########
10375 # Set up an appropriate program prefix
10377 if test "$program_prefix" = "NONE"; then
10378 program_prefix=""
10382 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
10384 $as_echo "$as_me: Version set to $VERSION" >&6;}
10386 RELEASE=`cat $srcdir/VERSION`
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
10388 $as_echo "$as_me: Release set to $RELEASE" >&6;}
10390 VERSION_NUMBER=`cat $srcdir/VERSION \
10391 | sed 's/[^0-9]/ /g' \
10392 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
10394 $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
10397 #########
10398 # Check to see if the --with-hints=FILE option is used. If there is none,
10399 # then check for a files named "$host.hints" and ../$hosts.hints where
10400 # $host is the hostname of the build system. If still no hints are
10401 # found, try looking in $system.hints and ../$system.hints where
10402 # $system is the result of uname -s.
10405 # Check whether --with-hints was given.
10406 if test "${with_hints+set}" = set; then :
10407 withval=$with_hints; hints=$withval
10410 if test "$hints" = ""; then
10411 host=`hostname | sed 's/\..*//'`
10412 if test -r $host.hints; then
10413 hints=$host.hints
10414 else
10415 if test -r ../$host.hints; then
10416 hints=../$host.hints
10420 if test "$hints" = ""; then
10421 sys=`uname -s`
10422 if test -r $sys.hints; then
10423 hints=$sys.hints
10424 else
10425 if test -r ../$sys.hints; then
10426 hints=../$sys.hints
10430 if test "$hints" != ""; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: reading hints from $hints" >&5
10432 $as_echo "reading hints from $hints" >&6; }
10433 . $hints
10436 #########
10437 # Locate a compiler for the build machine. This compiler should
10438 # generate command-line programs that run on the build machine.
10440 if test x"$cross_compiling" = xno; then
10441 BUILD_CC=$CC
10442 BUILD_CFLAGS=$CFLAGS
10443 else
10444 if test "${BUILD_CC+set}" != set; then
10445 for ac_prog in gcc cc cl
10447 # Extract the first word of "$ac_prog", so it can be a program name with args.
10448 set dummy $ac_prog; ac_word=$2
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10450 $as_echo_n "checking for $ac_word... " >&6; }
10451 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
10452 $as_echo_n "(cached) " >&6
10453 else
10454 if test -n "$BUILD_CC"; then
10455 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10456 else
10457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10458 for as_dir in $PATH
10460 IFS=$as_save_IFS
10461 test -z "$as_dir" && as_dir=.
10462 for ac_exec_ext in '' $ac_executable_extensions; do
10463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10464 ac_cv_prog_BUILD_CC="$ac_prog"
10465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10466 break 2
10468 done
10469 done
10470 IFS=$as_save_IFS
10474 BUILD_CC=$ac_cv_prog_BUILD_CC
10475 if test -n "$BUILD_CC"; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10477 $as_echo "$BUILD_CC" >&6; }
10478 else
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480 $as_echo "no" >&6; }
10484 test -n "$BUILD_CC" && break
10485 done
10488 if test "${BUILD_CFLAGS+set}" != set; then
10489 BUILD_CFLAGS="-g"
10494 ##########
10495 # Do we want to support multithreaded use of sqlite
10497 # Check whether --enable-threadsafe was given.
10498 if test "${enable_threadsafe+set}" = set; then :
10499 enableval=$enable_threadsafe;
10500 else
10501 enable_threadsafe=yes
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
10505 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
10506 if test "$enable_threadsafe" = "no"; then
10507 SQLITE_THREADSAFE=0
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10509 $as_echo "no" >&6; }
10510 else
10511 SQLITE_THREADSAFE=1
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10513 $as_echo "yes" >&6; }
10517 if test "$SQLITE_THREADSAFE" = "1"; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10519 $as_echo_n "checking for library containing pthread_create... " >&6; }
10520 if test "${ac_cv_search_pthread_create+set}" = set; then :
10521 $as_echo_n "(cached) " >&6
10522 else
10523 ac_func_search_save_LIBS=$LIBS
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10527 /* Override any GCC internal prototype to avoid an error.
10528 Use char because int might match the return type of a GCC
10529 builtin and then its argument prototype would still apply. */
10530 #ifdef __cplusplus
10531 extern "C"
10532 #endif
10533 char pthread_create ();
10535 main ()
10537 return pthread_create ();
10539 return 0;
10541 _ACEOF
10542 for ac_lib in '' pthread; do
10543 if test -z "$ac_lib"; then
10544 ac_res="none required"
10545 else
10546 ac_res=-l$ac_lib
10547 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10549 if ac_fn_c_try_link "$LINENO"; then :
10550 ac_cv_search_pthread_create=$ac_res
10552 rm -f core conftest.err conftest.$ac_objext \
10553 conftest$ac_exeext
10554 if test "${ac_cv_search_pthread_create+set}" = set; then :
10555 break
10557 done
10558 if test "${ac_cv_search_pthread_create+set}" = set; then :
10560 else
10561 ac_cv_search_pthread_create=no
10563 rm conftest.$ac_ext
10564 LIBS=$ac_func_search_save_LIBS
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10567 $as_echo "$ac_cv_search_pthread_create" >&6; }
10568 ac_res=$ac_cv_search_pthread_create
10569 if test "$ac_res" != no; then :
10570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10576 ##########
10577 # Do we want to allow a connection created in one thread to be used
10578 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
10579 # due to bugs in the threading implementations. This is thus off by default.
10581 # Check whether --enable-cross-thread-connections was given.
10582 if test "${enable_cross_thread_connections+set}" = set; then :
10583 enableval=$enable_cross_thread_connections;
10584 else
10585 enable_xthreadconnect=no
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to allow connections to be shared across threads" >&5
10589 $as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
10590 if test "$enable_xthreadconnect" = "no"; then
10591 XTHREADCONNECT=''
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10594 else
10595 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10597 $as_echo "yes" >&6; }
10601 ##########
10602 # Do we want to support release
10604 # Check whether --enable-releasemode was given.
10605 if test "${enable_releasemode+set}" = set; then :
10606 enableval=$enable_releasemode;
10607 else
10608 enable_releasemode=no
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
10612 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
10613 if test "$enable_releasemode" = "no"; then
10614 ALLOWRELEASE=""
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10616 $as_echo "no" >&6; }
10617 else
10618 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10620 $as_echo "yes" >&6; }
10624 ##########
10625 # Do we want temporary databases in memory
10627 # Check whether --enable-tempstore was given.
10628 if test "${enable_tempstore+set}" = set; then :
10629 enableval=$enable_tempstore;
10630 else
10631 enable_tempstore=no
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
10635 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
10636 case "$enable_tempstore" in
10637 never )
10638 TEMP_STORE=0
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
10640 $as_echo "never" >&6; }
10642 no )
10643 TEMP_STORE=1
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645 $as_echo "no" >&6; }
10647 yes )
10648 TEMP_STORE=2
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10650 $as_echo "yes" >&6; }
10652 always )
10653 TEMP_STORE=3
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
10655 $as_echo "always" >&6; }
10658 TEMP_STORE=1
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660 $as_echo "no" >&6; }
10662 esac
10666 ###########
10667 # Lots of things are different if we are compiling for Windows using
10668 # the CYGWIN environment. So check for that special case and handle
10669 # things accordingly.
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
10672 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
10673 if test "$config_BUILD_EXEEXT" = ".exe"; then
10674 CYGWIN=yes
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10676 $as_echo "yes" >&6; }
10677 else
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
10679 $as_echo "unknown" >&6; }
10681 if test "$CYGWIN" != "yes"; then
10683 case $host_os in
10684 *cygwin* ) CYGWIN=yes;;
10685 * ) CYGWIN=no;;
10686 esac
10689 if test "$CYGWIN" = "yes"; then
10690 BUILD_EXEEXT=.exe
10691 else
10692 BUILD_EXEEXT=$EXEEXT
10694 if test x"$cross_compiling" = xno; then
10695 TARGET_EXEEXT=$BUILD_EXEEXT
10696 else
10697 TARGET_EXEEXT=$config_TARGET_EXEEXT
10699 if test "$TARGET_EXEEXT" = ".exe"; then
10700 if test $OS2_SHELL ; then
10701 SQLITE_OS_UNIX=0
10702 SQLITE_OS_WIN=0
10703 SQLITE_OS_OS2=1
10704 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
10705 else
10706 SQLITE_OS_UNIX=0
10707 SQLITE_OS_WIN=1
10708 SQLITE_OS_OS2=0
10709 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
10711 else
10712 SQLITE_OS_UNIX=1
10713 SQLITE_OS_WIN=0
10714 SQLITE_OS_OS2=0
10715 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
10724 ##########
10725 # Figure out all the parameters needed to compile against Tcl.
10727 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10728 # macros in the in the tcl.m4 file of the standard TCL distribution.
10729 # Those macros could not be used directly since we have to make some
10730 # minor changes to accomodate systems that do not have TCL installed.
10732 # Check whether --enable-tcl was given.
10733 if test "${enable_tcl+set}" = set; then :
10734 enableval=$enable_tcl; use_tcl=$enableval
10735 else
10736 use_tcl=yes
10739 if test "${use_tcl}" = "yes" ; then
10741 # Check whether --with-tcl was given.
10742 if test "${with_tcl+set}" = set; then :
10743 withval=$with_tcl; with_tclconfig=${withval}
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
10747 $as_echo_n "checking for Tcl configuration... " >&6; }
10748 if test "${ac_cv_c_tclconfig+set}" = set; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10752 # First check to see if --with-tcl was specified.
10753 if test x"${with_tclconfig}" != x ; then
10754 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10755 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10756 else
10757 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
10761 # Start autosearch by asking tclsh
10762 if test x"$cross_compiling" = xno; then
10763 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10765 if test -f "$i/tclConfig.sh" ; then
10766 ac_cv_c_tclconfig="$i"
10767 break
10769 done
10772 # then check for a private Tcl installation
10773 if test x"${ac_cv_c_tclconfig}" = x ; then
10774 for i in \
10775 ../tcl \
10776 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10777 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10778 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10779 ../../tcl \
10780 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10781 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10782 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10783 ../../../tcl \
10784 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10785 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10786 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10788 if test -f "$i/unix/tclConfig.sh" ; then
10789 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10790 break
10792 done
10795 # check in a few common install locations
10796 if test x"${ac_cv_c_tclconfig}" = x ; then
10797 for i in \
10798 `ls -d ${libdir} 2>/dev/null` \
10799 `ls -d /usr/local/lib 2>/dev/null` \
10800 `ls -d /usr/contrib/lib 2>/dev/null` \
10801 `ls -d /usr/lib 2>/dev/null`
10803 if test -f "$i/tclConfig.sh" ; then
10804 ac_cv_c_tclconfig=`(cd $i; pwd)`
10805 break
10807 done
10810 # check in a few other private locations
10811 if test x"${ac_cv_c_tclconfig}" = x ; then
10812 for i in \
10813 ${srcdir}/../tcl \
10814 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10815 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10816 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10818 if test -f "$i/unix/tclConfig.sh" ; then
10819 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10820 break
10822 done
10828 if test x"${ac_cv_c_tclconfig}" = x ; then
10829 use_tcl=no
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
10831 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
10833 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
10835 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
10836 else
10837 TCL_BIN_DIR=${ac_cv_c_tclconfig}
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
10839 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
10842 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
10843 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
10845 $as_echo "loading" >&6; }
10846 . $TCL_BIN_DIR/tclConfig.sh
10847 else
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
10849 $as_echo "file not found" >&6; }
10853 # If the TCL_BIN_DIR is the build directory (not the install directory),
10854 # then set the common variable name to the value of the build variables.
10855 # For example, the variable TCL_LIB_SPEC will be set to the value
10856 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10857 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10858 # installed and uninstalled version of Tcl.
10861 if test -f $TCL_BIN_DIR/Makefile ; then
10862 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10863 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10864 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10868 # eval is required to do the TCL_DBGX substitution
10871 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10872 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10873 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10875 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10876 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10877 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10894 if test "${use_tcl}" = "no" ; then
10895 HAVE_TCL=""
10896 else
10897 HAVE_TCL=1
10901 ##########
10902 # Figure out what C libraries are required to compile programs
10903 # that use "readline()" library.
10905 TARGET_READLINE_LIBS=""
10906 TARGET_READLINE_INC=""
10907 TARGET_HAVE_READLINE=0
10908 # Check whether --enable-readline was given.
10909 if test "${enable_readline+set}" = set; then :
10910 enableval=$enable_readline; with_readline=$enableval
10911 else
10912 with_readline=auto
10916 if test x"$with_readline" != xno; then
10917 found="yes"
10920 # Check whether --with-readline-lib was given.
10921 if test "${with_readline_lib+set}" = set; then :
10922 withval=$with_readline_lib; with_readline_lib=$withval
10923 else
10924 with_readline_lib="auto"
10927 if test "x$with_readline_lib" = xauto; then
10928 save_LIBS="$LIBS"
10929 LIBS=""
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
10931 $as_echo_n "checking for library containing tgetent... " >&6; }
10932 if test "${ac_cv_search_tgetent+set}" = set; then :
10933 $as_echo_n "(cached) " >&6
10934 else
10935 ac_func_search_save_LIBS=$LIBS
10936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10939 /* Override any GCC internal prototype to avoid an error.
10940 Use char because int might match the return type of a GCC
10941 builtin and then its argument prototype would still apply. */
10942 #ifdef __cplusplus
10943 extern "C"
10944 #endif
10945 char tgetent ();
10947 main ()
10949 return tgetent ();
10951 return 0;
10953 _ACEOF
10954 for ac_lib in '' readline ncurses curses termcap; do
10955 if test -z "$ac_lib"; then
10956 ac_res="none required"
10957 else
10958 ac_res=-l$ac_lib
10959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10961 if ac_fn_c_try_link "$LINENO"; then :
10962 ac_cv_search_tgetent=$ac_res
10964 rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext
10966 if test "${ac_cv_search_tgetent+set}" = set; then :
10967 break
10969 done
10970 if test "${ac_cv_search_tgetent+set}" = set; then :
10972 else
10973 ac_cv_search_tgetent=no
10975 rm conftest.$ac_ext
10976 LIBS=$ac_func_search_save_LIBS
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
10979 $as_echo "$ac_cv_search_tgetent" >&6; }
10980 ac_res=$ac_cv_search_tgetent
10981 if test "$ac_res" != no; then :
10982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10983 term_LIBS="$LIBS"
10984 else
10985 term_LIBS=""
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
10989 $as_echo_n "checking for readline in -lreadline... " >&6; }
10990 if test "${ac_cv_lib_readline_readline+set}" = set; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 ac_check_lib_save_LIBS=$LIBS
10994 LIBS="-lreadline $LIBS"
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10998 /* Override any GCC internal prototype to avoid an error.
10999 Use char because int might match the return type of a GCC
11000 builtin and then its argument prototype would still apply. */
11001 #ifdef __cplusplus
11002 extern "C"
11003 #endif
11004 char readline ();
11006 main ()
11008 return readline ();
11010 return 0;
11012 _ACEOF
11013 if ac_fn_c_try_link "$LINENO"; then :
11014 ac_cv_lib_readline_readline=yes
11015 else
11016 ac_cv_lib_readline_readline=no
11018 rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020 LIBS=$ac_check_lib_save_LIBS
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
11023 $as_echo "$ac_cv_lib_readline_readline" >&6; }
11024 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
11025 TARGET_READLINE_LIBS="-lreadline"
11026 else
11027 found="no"
11030 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11031 LIBS="$save_LIBS"
11032 else
11033 TARGET_READLINE_LIBS="$with_readline_lib"
11037 # Check whether --with-readline-inc was given.
11038 if test "${with_readline_inc+set}" = set; then :
11039 withval=$with_readline_inc; with_readline_inc=$withval
11040 else
11041 with_readline_inc="auto"
11044 if test "x$with_readline_inc" = xauto; then
11045 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11046 if test "x$ac_cv_header_readline_h" = x""yes; then :
11047 found="yes"
11048 else
11050 found="no"
11051 if test "$cross_compiling" != yes; then
11052 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11053 for subdir in include include/readline; do
11054 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
11056 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
11057 if eval "test \"\${$as_ac_File+set}\"" = set; then :
11058 $as_echo_n "(cached) " >&6
11059 else
11060 test "$cross_compiling" = yes &&
11061 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11062 if test -r "$dir/$subdir/readline.h"; then
11063 eval "$as_ac_File=yes"
11064 else
11065 eval "$as_ac_File=no"
11068 eval ac_res=\$$as_ac_File
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11070 $as_echo "$ac_res" >&6; }
11071 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
11072 found=yes
11075 if test "$found" = "yes"; then
11076 TARGET_READLINE_INC="-I$dir/$subdir"
11077 break
11079 done
11080 test "$found" = "yes" && break
11081 done
11087 else
11088 TARGET_READLINE_INC="$with_readline_inc"
11091 if test x"$found" = xno; then
11092 TARGET_READLINE_LIBS=""
11093 TARGET_READLINE_INC=""
11094 TARGET_HAVE_READLINE=0
11095 else
11096 TARGET_HAVE_READLINE=1
11104 ##########
11105 # Figure out what C libraries are required to compile programs
11106 # that use "fdatasync()" function.
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
11109 $as_echo_n "checking for library containing fdatasync... " >&6; }
11110 if test "${ac_cv_search_fdatasync+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 ac_func_search_save_LIBS=$LIBS
11114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h. */
11117 /* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
11120 #ifdef __cplusplus
11121 extern "C"
11122 #endif
11123 char fdatasync ();
11125 main ()
11127 return fdatasync ();
11129 return 0;
11131 _ACEOF
11132 for ac_lib in '' rt; do
11133 if test -z "$ac_lib"; then
11134 ac_res="none required"
11135 else
11136 ac_res=-l$ac_lib
11137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11139 if ac_fn_c_try_link "$LINENO"; then :
11140 ac_cv_search_fdatasync=$ac_res
11142 rm -f core conftest.err conftest.$ac_objext \
11143 conftest$ac_exeext
11144 if test "${ac_cv_search_fdatasync+set}" = set; then :
11145 break
11147 done
11148 if test "${ac_cv_search_fdatasync+set}" = set; then :
11150 else
11151 ac_cv_search_fdatasync=no
11153 rm conftest.$ac_ext
11154 LIBS=$ac_func_search_save_LIBS
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
11157 $as_echo "$ac_cv_search_fdatasync" >&6; }
11158 ac_res=$ac_cv_search_fdatasync
11159 if test "$ac_res" != no; then :
11160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11165 #########
11166 # check for debug enabled
11167 # Check whether --enable-debug was given.
11168 if test "${enable_debug+set}" = set; then :
11169 enableval=$enable_debug; use_debug=$enableval
11170 else
11171 use_debug=no
11174 if test "${use_debug}" = "yes" ; then
11175 TARGET_DEBUG="-DSQLITE_DEBUG=1"
11176 else
11177 TARGET_DEBUG="-DNDEBUG"
11181 #########
11182 # See whether we should use the amalgamation to build
11183 # Check whether --enable-amalgamation was given.
11184 if test "${enable_amalgamation+set}" = set; then :
11185 enableval=$enable_amalgamation; use_amalgamation=$enableval
11186 else
11187 use_amalgamation=yes
11190 if test "${use_amalgamation}" != "yes" ; then
11191 USE_AMALGAMATION=0
11195 #########
11196 # See whether we should allow loadable extensions
11197 # Check whether --enable-load-extension was given.
11198 if test "${enable_load_extension+set}" = set; then :
11199 enableval=$enable_load_extension; use_loadextension=$enableval
11200 else
11201 use_loadextension=no
11204 if test "${use_loadextension}" = "yes" ; then
11205 OPT_FEATURE_FLAGS=""
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11207 $as_echo_n "checking for library containing dlopen... " >&6; }
11208 if test "${ac_cv_search_dlopen+set}" = set; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 ac_func_search_save_LIBS=$LIBS
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11215 /* Override any GCC internal prototype to avoid an error.
11216 Use char because int might match the return type of a GCC
11217 builtin and then its argument prototype would still apply. */
11218 #ifdef __cplusplus
11219 extern "C"
11220 #endif
11221 char dlopen ();
11223 main ()
11225 return dlopen ();
11227 return 0;
11229 _ACEOF
11230 for ac_lib in '' dl; do
11231 if test -z "$ac_lib"; then
11232 ac_res="none required"
11233 else
11234 ac_res=-l$ac_lib
11235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11237 if ac_fn_c_try_link "$LINENO"; then :
11238 ac_cv_search_dlopen=$ac_res
11240 rm -f core conftest.err conftest.$ac_objext \
11241 conftest$ac_exeext
11242 if test "${ac_cv_search_dlopen+set}" = set; then :
11243 break
11245 done
11246 if test "${ac_cv_search_dlopen+set}" = set; then :
11248 else
11249 ac_cv_search_dlopen=no
11251 rm conftest.$ac_ext
11252 LIBS=$ac_func_search_save_LIBS
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11255 $as_echo "$ac_cv_search_dlopen" >&6; }
11256 ac_res=$ac_cv_search_dlopen
11257 if test "$ac_res" != no; then :
11258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11262 else
11263 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
11266 #########
11267 # attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
11268 for option in $CFLAGS $CPPFLAGS
11270 case $option in
11271 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11272 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
11273 esac
11274 done
11278 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
11279 ac_temp_CFLAGS=""
11280 for option in $CFLAGS
11282 case $option in
11283 -DSQLITE_OMIT*) ;;
11284 -DSQLITE_ENABLE*) ;;
11285 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
11286 esac
11287 done
11288 CFLAGS=$ac_temp_CFLAGS
11291 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
11292 ac_temp_CPPFLAGS=""
11293 for option in $CPPFLAGS
11295 case $option in
11296 -DSQLITE_OMIT*) ;;
11297 -DSQLITE_ENABLE*) ;;
11298 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
11299 esac
11300 done
11301 CPPFLAGS=$ac_temp_CPPFLAGS
11304 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
11305 ac_temp_BUILD_CFLAGS=""
11306 for option in $BUILD_CFLAGS
11308 case $option in
11309 -DSQLITE_OMIT*) ;;
11310 -DSQLITE_ENABLE*) ;;
11311 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
11312 esac
11313 done
11314 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11317 #########
11318 # See whether we should use GCOV
11319 # Check whether --enable-gcov was given.
11320 if test "${enable_gcov+set}" = set; then :
11321 enableval=$enable_gcov; use_gcov=$enableval
11322 else
11323 use_gcov=no
11326 if test "${use_gcov}" = "yes" ; then
11327 USE_GCOV=1
11328 else
11329 USE_GCOV=0
11334 #########
11335 # Output the config header
11336 ac_config_headers="$ac_config_headers config.h"
11339 #########
11340 # Generate the output files.
11343 ac_config_files="$ac_config_files Makefile sqlite3.pc"
11345 cat >confcache <<\_ACEOF
11346 # This file is a shell script that caches the results of configure
11347 # tests run on this system so they can be shared between configure
11348 # scripts and configure runs, see configure's option --config-cache.
11349 # It is not useful on other systems. If it contains results you don't
11350 # want to keep, you may remove or edit it.
11352 # config.status only pays attention to the cache file if you give it
11353 # the --recheck option to rerun configure.
11355 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11356 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11357 # following values.
11359 _ACEOF
11361 # The following way of writing the cache mishandles newlines in values,
11362 # but we know of no workaround that is simple, portable, and efficient.
11363 # So, we kill variables containing newlines.
11364 # Ultrix sh set writes to stderr and can't be redirected directly,
11365 # and sets the high bit in the cache file unless we assign to the vars.
11367 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11368 eval ac_val=\$$ac_var
11369 case $ac_val in #(
11370 *${as_nl}*)
11371 case $ac_var in #(
11372 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11373 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11374 esac
11375 case $ac_var in #(
11376 _ | IFS | as_nl) ;; #(
11377 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11378 *) { eval $ac_var=; unset $ac_var;} ;;
11379 esac ;;
11380 esac
11381 done
11383 (set) 2>&1 |
11384 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11385 *${as_nl}ac_space=\ *)
11386 # `set' does not quote correctly, so add quotes: double-quote
11387 # substitution turns \\\\ into \\, and sed turns \\ into \.
11388 sed -n \
11389 "s/'/'\\\\''/g;
11390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11391 ;; #(
11393 # `set' quotes correctly as required by POSIX, so do not add quotes.
11394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11396 esac |
11397 sort
11399 sed '
11400 /^ac_cv_env_/b end
11401 t clear
11402 :clear
11403 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11404 t end
11405 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11406 :end' >>confcache
11407 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11408 if test -w "$cache_file"; then
11409 test "x$cache_file" != "x/dev/null" &&
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11411 $as_echo "$as_me: updating cache $cache_file" >&6;}
11412 cat confcache >$cache_file
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11415 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11418 rm -f confcache
11420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11421 # Let make expand exec_prefix.
11422 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11424 DEFS=-DHAVE_CONFIG_H
11426 ac_libobjs=
11427 ac_ltlibobjs=
11429 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11430 # 1. Remove the extension, and $U if already installed.
11431 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11432 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11433 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11434 # will be set to the directory where LIBOBJS objects are built.
11435 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11436 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11437 done
11438 LIBOBJS=$ac_libobjs
11440 LTLIBOBJS=$ac_ltlibobjs
11444 : ${CONFIG_STATUS=./config.status}
11445 ac_write_fail=0
11446 ac_clean_files_save=$ac_clean_files
11447 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11449 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11450 as_write_fail=0
11451 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11452 #! $SHELL
11453 # Generated by $as_me.
11454 # Run this file to recreate the current configuration.
11455 # Compiler output produced by configure, useful for debugging
11456 # configure, is in config.log if it exists.
11458 debug=false
11459 ac_cs_recheck=false
11460 ac_cs_silent=false
11462 SHELL=\${CONFIG_SHELL-$SHELL}
11463 export SHELL
11464 _ASEOF
11465 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11466 ## -------------------- ##
11467 ## M4sh Initialization. ##
11468 ## -------------------- ##
11470 # Be more Bourne compatible
11471 DUALCASE=1; export DUALCASE # for MKS sh
11472 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11473 emulate sh
11474 NULLCMD=:
11475 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11476 # is contrary to our usage. Disable this feature.
11477 alias -g '${1+"$@"}'='"$@"'
11478 setopt NO_GLOB_SUBST
11479 else
11480 case `(set -o) 2>/dev/null` in #(
11481 *posix*) :
11482 set -o posix ;; #(
11483 *) :
11485 esac
11489 as_nl='
11491 export as_nl
11492 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11493 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11494 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11495 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11496 # Prefer a ksh shell builtin over an external printf program on Solaris,
11497 # but without wasting forks for bash or zsh.
11498 if test -z "$BASH_VERSION$ZSH_VERSION" \
11499 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11500 as_echo='print -r --'
11501 as_echo_n='print -rn --'
11502 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11503 as_echo='printf %s\n'
11504 as_echo_n='printf %s'
11505 else
11506 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11507 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11508 as_echo_n='/usr/ucb/echo -n'
11509 else
11510 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11511 as_echo_n_body='eval
11512 arg=$1;
11513 case $arg in #(
11514 *"$as_nl"*)
11515 expr "X$arg" : "X\\(.*\\)$as_nl";
11516 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11517 esac;
11518 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11520 export as_echo_n_body
11521 as_echo_n='sh -c $as_echo_n_body as_echo'
11523 export as_echo_body
11524 as_echo='sh -c $as_echo_body as_echo'
11527 # The user is always right.
11528 if test "${PATH_SEPARATOR+set}" != set; then
11529 PATH_SEPARATOR=:
11530 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11531 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11532 PATH_SEPARATOR=';'
11537 # IFS
11538 # We need space, tab and new line, in precisely that order. Quoting is
11539 # there to prevent editors from complaining about space-tab.
11540 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11541 # splitting by setting IFS to empty value.)
11542 IFS=" "" $as_nl"
11544 # Find who we are. Look in the path if we contain no directory separator.
11545 case $0 in #((
11546 *[\\/]* ) as_myself=$0 ;;
11547 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11548 for as_dir in $PATH
11550 IFS=$as_save_IFS
11551 test -z "$as_dir" && as_dir=.
11552 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11553 done
11554 IFS=$as_save_IFS
11557 esac
11558 # We did not find ourselves, most probably we were run as `sh COMMAND'
11559 # in which case we are not to be found in the path.
11560 if test "x$as_myself" = x; then
11561 as_myself=$0
11563 if test ! -f "$as_myself"; then
11564 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11565 exit 1
11568 # Unset variables that we do not need and which cause bugs (e.g. in
11569 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11570 # suppresses any "Segmentation fault" message there. '((' could
11571 # trigger a bug in pdksh 5.2.14.
11572 for as_var in BASH_ENV ENV MAIL MAILPATH
11573 do eval test x\${$as_var+set} = xset \
11574 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11575 done
11576 PS1='$ '
11577 PS2='> '
11578 PS4='+ '
11580 # NLS nuisances.
11581 LC_ALL=C
11582 export LC_ALL
11583 LANGUAGE=C
11584 export LANGUAGE
11586 # CDPATH.
11587 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11590 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11591 # ----------------------------------------
11592 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11593 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11594 # script with STATUS, using 1 if that was 0.
11595 as_fn_error ()
11597 as_status=$1; test $as_status -eq 0 && as_status=1
11598 if test "$4"; then
11599 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11600 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11602 $as_echo "$as_me: error: $2" >&2
11603 as_fn_exit $as_status
11604 } # as_fn_error
11607 # as_fn_set_status STATUS
11608 # -----------------------
11609 # Set $? to STATUS, without forking.
11610 as_fn_set_status ()
11612 return $1
11613 } # as_fn_set_status
11615 # as_fn_exit STATUS
11616 # -----------------
11617 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11618 as_fn_exit ()
11620 set +e
11621 as_fn_set_status $1
11622 exit $1
11623 } # as_fn_exit
11625 # as_fn_unset VAR
11626 # ---------------
11627 # Portably unset VAR.
11628 as_fn_unset ()
11630 { eval $1=; unset $1;}
11632 as_unset=as_fn_unset
11633 # as_fn_append VAR VALUE
11634 # ----------------------
11635 # Append the text in VALUE to the end of the definition contained in VAR. Take
11636 # advantage of any shell optimizations that allow amortized linear growth over
11637 # repeated appends, instead of the typical quadratic growth present in naive
11638 # implementations.
11639 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11640 eval 'as_fn_append ()
11642 eval $1+=\$2
11644 else
11645 as_fn_append ()
11647 eval $1=\$$1\$2
11649 fi # as_fn_append
11651 # as_fn_arith ARG...
11652 # ------------------
11653 # Perform arithmetic evaluation on the ARGs, and store the result in the
11654 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11655 # must be portable across $(()) and expr.
11656 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11657 eval 'as_fn_arith ()
11659 as_val=$(( $* ))
11661 else
11662 as_fn_arith ()
11664 as_val=`expr "$@" || test $? -eq 1`
11666 fi # as_fn_arith
11669 if expr a : '\(a\)' >/dev/null 2>&1 &&
11670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11671 as_expr=expr
11672 else
11673 as_expr=false
11676 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11677 as_basename=basename
11678 else
11679 as_basename=false
11682 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11683 as_dirname=dirname
11684 else
11685 as_dirname=false
11688 as_me=`$as_basename -- "$0" ||
11689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11690 X"$0" : 'X\(//\)$' \| \
11691 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11692 $as_echo X/"$0" |
11693 sed '/^.*\/\([^/][^/]*\)\/*$/{
11694 s//\1/
11697 /^X\/\(\/\/\)$/{
11698 s//\1/
11701 /^X\/\(\/\).*/{
11702 s//\1/
11705 s/.*/./; q'`
11707 # Avoid depending upon Character Ranges.
11708 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11709 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11710 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11711 as_cr_digits='0123456789'
11712 as_cr_alnum=$as_cr_Letters$as_cr_digits
11714 ECHO_C= ECHO_N= ECHO_T=
11715 case `echo -n x` in #(((((
11716 -n*)
11717 case `echo 'xy\c'` in
11718 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11719 xy) ECHO_C='\c';;
11720 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11721 ECHO_T=' ';;
11722 esac;;
11724 ECHO_N='-n';;
11725 esac
11727 rm -f conf$$ conf$$.exe conf$$.file
11728 if test -d conf$$.dir; then
11729 rm -f conf$$.dir/conf$$.file
11730 else
11731 rm -f conf$$.dir
11732 mkdir conf$$.dir 2>/dev/null
11734 if (echo >conf$$.file) 2>/dev/null; then
11735 if ln -s conf$$.file conf$$ 2>/dev/null; then
11736 as_ln_s='ln -s'
11737 # ... but there are two gotchas:
11738 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11739 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11740 # In both cases, we have to default to `cp -p'.
11741 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11742 as_ln_s='cp -p'
11743 elif ln conf$$.file conf$$ 2>/dev/null; then
11744 as_ln_s=ln
11745 else
11746 as_ln_s='cp -p'
11748 else
11749 as_ln_s='cp -p'
11751 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11752 rmdir conf$$.dir 2>/dev/null
11755 # as_fn_mkdir_p
11756 # -------------
11757 # Create "$as_dir" as a directory, including parents if necessary.
11758 as_fn_mkdir_p ()
11761 case $as_dir in #(
11762 -*) as_dir=./$as_dir;;
11763 esac
11764 test -d "$as_dir" || eval $as_mkdir_p || {
11765 as_dirs=
11766 while :; do
11767 case $as_dir in #(
11768 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11769 *) as_qdir=$as_dir;;
11770 esac
11771 as_dirs="'$as_qdir' $as_dirs"
11772 as_dir=`$as_dirname -- "$as_dir" ||
11773 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11774 X"$as_dir" : 'X\(//\)[^/]' \| \
11775 X"$as_dir" : 'X\(//\)$' \| \
11776 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11777 $as_echo X"$as_dir" |
11778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11779 s//\1/
11782 /^X\(\/\/\)[^/].*/{
11783 s//\1/
11786 /^X\(\/\/\)$/{
11787 s//\1/
11790 /^X\(\/\).*/{
11791 s//\1/
11794 s/.*/./; q'`
11795 test -d "$as_dir" && break
11796 done
11797 test -z "$as_dirs" || eval "mkdir $as_dirs"
11798 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11801 } # as_fn_mkdir_p
11802 if mkdir -p . 2>/dev/null; then
11803 as_mkdir_p='mkdir -p "$as_dir"'
11804 else
11805 test -d ./-p && rmdir ./-p
11806 as_mkdir_p=false
11809 if test -x / >/dev/null 2>&1; then
11810 as_test_x='test -x'
11811 else
11812 if ls -dL / >/dev/null 2>&1; then
11813 as_ls_L_option=L
11814 else
11815 as_ls_L_option=
11817 as_test_x='
11818 eval sh -c '\''
11819 if test -d "$1"; then
11820 test -d "$1/.";
11821 else
11822 case $1 in #(
11823 -*)set "./$1";;
11824 esac;
11825 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11826 ???[sx]*):;;*)false;;esac;fi
11827 '\'' sh
11830 as_executable_p=$as_test_x
11832 # Sed expression to map a string onto a valid CPP name.
11833 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11835 # Sed expression to map a string onto a valid variable name.
11836 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11839 exec 6>&1
11840 ## ----------------------------------- ##
11841 ## Main body of $CONFIG_STATUS script. ##
11842 ## ----------------------------------- ##
11843 _ASEOF
11844 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11847 # Save the log message, to keep $0 and so on meaningful, and to
11848 # report actual input values of CONFIG_FILES etc. instead of their
11849 # values after options handling.
11850 ac_log="
11851 This file was extended by sqlite $as_me 3.7.9, which was
11852 generated by GNU Autoconf 2.67. Invocation command line was
11854 CONFIG_FILES = $CONFIG_FILES
11855 CONFIG_HEADERS = $CONFIG_HEADERS
11856 CONFIG_LINKS = $CONFIG_LINKS
11857 CONFIG_COMMANDS = $CONFIG_COMMANDS
11858 $ $0 $@
11860 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11863 _ACEOF
11865 case $ac_config_files in *"
11866 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11867 esac
11869 case $ac_config_headers in *"
11870 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11871 esac
11874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11875 # Files that config.status was made for.
11876 config_files="$ac_config_files"
11877 config_headers="$ac_config_headers"
11878 config_commands="$ac_config_commands"
11880 _ACEOF
11882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11883 ac_cs_usage="\
11884 \`$as_me' instantiates files and other configuration actions
11885 from templates according to the current configuration. Unless the files
11886 and actions are specified as TAGs, all are instantiated by default.
11888 Usage: $0 [OPTION]... [TAG]...
11890 -h, --help print this help, then exit
11891 -V, --version print version number and configuration settings, then exit
11892 --config print configuration, then exit
11893 -q, --quiet, --silent
11894 do not print progress messages
11895 -d, --debug don't remove temporary files
11896 --recheck update $as_me by reconfiguring in the same conditions
11897 --file=FILE[:TEMPLATE]
11898 instantiate the configuration file FILE
11899 --header=FILE[:TEMPLATE]
11900 instantiate the configuration header FILE
11902 Configuration files:
11903 $config_files
11905 Configuration headers:
11906 $config_headers
11908 Configuration commands:
11909 $config_commands
11911 Report bugs to the package provider."
11913 _ACEOF
11914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11915 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11916 ac_cs_version="\\
11917 sqlite config.status 3.7.9
11918 configured by $0, generated by GNU Autoconf 2.67,
11919 with options \\"\$ac_cs_config\\"
11921 Copyright (C) 2010 Free Software Foundation, Inc.
11922 This config.status script is free software; the Free Software Foundation
11923 gives unlimited permission to copy, distribute and modify it."
11925 ac_pwd='$ac_pwd'
11926 srcdir='$srcdir'
11927 INSTALL='$INSTALL'
11928 AWK='$AWK'
11929 test -n "\$AWK" || AWK=awk
11930 _ACEOF
11932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11933 # The default lists apply if the user does not specify any file.
11934 ac_need_defaults=:
11935 while test $# != 0
11937 case $1 in
11938 --*=?*)
11939 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11940 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11941 ac_shift=:
11943 --*=)
11944 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11945 ac_optarg=
11946 ac_shift=:
11949 ac_option=$1
11950 ac_optarg=$2
11951 ac_shift=shift
11953 esac
11955 case $ac_option in
11956 # Handling of the options.
11957 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11958 ac_cs_recheck=: ;;
11959 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11960 $as_echo "$ac_cs_version"; exit ;;
11961 --config | --confi | --conf | --con | --co | --c )
11962 $as_echo "$ac_cs_config"; exit ;;
11963 --debug | --debu | --deb | --de | --d | -d )
11964 debug=: ;;
11965 --file | --fil | --fi | --f )
11966 $ac_shift
11967 case $ac_optarg in
11968 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11969 '') as_fn_error $? "missing file argument" ;;
11970 esac
11971 as_fn_append CONFIG_FILES " '$ac_optarg'"
11972 ac_need_defaults=false;;
11973 --header | --heade | --head | --hea )
11974 $ac_shift
11975 case $ac_optarg in
11976 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11977 esac
11978 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11979 ac_need_defaults=false;;
11980 --he | --h)
11981 # Conflict between --help and --header
11982 as_fn_error $? "ambiguous option: \`$1'
11983 Try \`$0 --help' for more information.";;
11984 --help | --hel | -h )
11985 $as_echo "$ac_cs_usage"; exit ;;
11986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11987 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11988 ac_cs_silent=: ;;
11990 # This is an error.
11991 -*) as_fn_error $? "unrecognized option: \`$1'
11992 Try \`$0 --help' for more information." ;;
11994 *) as_fn_append ac_config_targets " $1"
11995 ac_need_defaults=false ;;
11997 esac
11998 shift
11999 done
12001 ac_configure_extra_args=
12003 if $ac_cs_silent; then
12004 exec 6>/dev/null
12005 ac_configure_extra_args="$ac_configure_extra_args --silent"
12008 _ACEOF
12009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12010 if \$ac_cs_recheck; then
12011 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12012 shift
12013 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12014 CONFIG_SHELL='$SHELL'
12015 export CONFIG_SHELL
12016 exec "\$@"
12019 _ACEOF
12020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12021 exec 5>>config.log
12023 echo
12024 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12025 ## Running $as_me. ##
12026 _ASBOX
12027 $as_echo "$ac_log"
12028 } >&5
12030 _ACEOF
12031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12033 # INIT-COMMANDS
12037 # The HP-UX ksh and POSIX shell print the target directory to stdout
12038 # if CDPATH is set.
12039 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12041 sed_quote_subst='$sed_quote_subst'
12042 double_quote_subst='$double_quote_subst'
12043 delay_variable_subst='$delay_variable_subst'
12044 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12045 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12046 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12047 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12048 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12049 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12050 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12051 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12052 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12053 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12054 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12055 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12056 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12057 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12058 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12059 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12060 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12061 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12062 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12063 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12064 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12065 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12066 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12067 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12068 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12069 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12070 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12071 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12072 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12073 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12074 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12075 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12076 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12077 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12078 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12079 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12080 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12081 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12082 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12083 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12084 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12085 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12086 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12087 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12088 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"`'
12089 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"`'
12090 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12091 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12092 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12093 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12094 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12095 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12096 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12097 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12098 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12099 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12100 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12101 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12102 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12103 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12104 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12105 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12106 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12107 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12108 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12109 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12110 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12111 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12112 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12113 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12114 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12115 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12116 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12117 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12118 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12119 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12120 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12121 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12122 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12123 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12124 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12125 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12126 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12127 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12128 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12129 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12130 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12131 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12132 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12133 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12134 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12135 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12136 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12137 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12138 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12139 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12140 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12141 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12142 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12143 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12144 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12145 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12146 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12147 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12148 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12149 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12150 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12151 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12152 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12153 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12154 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12155 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12156 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12157 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12158 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12159 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12160 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12161 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12163 LTCC='$LTCC'
12164 LTCFLAGS='$LTCFLAGS'
12165 compiler='$compiler_DEFAULT'
12167 # Quote evaled strings.
12168 for var in SED \
12169 GREP \
12170 EGREP \
12171 FGREP \
12172 LD \
12173 NM \
12174 LN_S \
12175 lt_SP2NL \
12176 lt_NL2SP \
12177 reload_flag \
12178 OBJDUMP \
12179 deplibs_check_method \
12180 file_magic_cmd \
12181 AR \
12182 AR_FLAGS \
12183 STRIP \
12184 RANLIB \
12185 CC \
12186 CFLAGS \
12187 compiler \
12188 lt_cv_sys_global_symbol_pipe \
12189 lt_cv_sys_global_symbol_to_cdecl \
12190 lt_cv_sys_global_symbol_to_c_name_address \
12191 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12192 SHELL \
12193 ECHO \
12194 lt_prog_compiler_no_builtin_flag \
12195 lt_prog_compiler_wl \
12196 lt_prog_compiler_pic \
12197 lt_prog_compiler_static \
12198 lt_cv_prog_compiler_c_o \
12199 need_locks \
12200 DSYMUTIL \
12201 NMEDIT \
12202 LIPO \
12203 OTOOL \
12204 OTOOL64 \
12205 shrext_cmds \
12206 export_dynamic_flag_spec \
12207 whole_archive_flag_spec \
12208 compiler_needs_object \
12209 with_gnu_ld \
12210 allow_undefined_flag \
12211 no_undefined_flag \
12212 hardcode_libdir_flag_spec \
12213 hardcode_libdir_flag_spec_ld \
12214 hardcode_libdir_separator \
12215 fix_srcfile_path \
12216 exclude_expsyms \
12217 include_expsyms \
12218 file_list_spec \
12219 variables_saved_for_relink \
12220 libname_spec \
12221 library_names_spec \
12222 soname_spec \
12223 finish_eval \
12224 old_striplib \
12225 striplib; do
12226 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12227 *[\\\\\\\`\\"\\\$]*)
12228 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12231 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12233 esac
12234 done
12236 # Double-quote double-evaled strings.
12237 for var in reload_cmds \
12238 old_postinstall_cmds \
12239 old_postuninstall_cmds \
12240 old_archive_cmds \
12241 extract_expsyms_cmds \
12242 old_archive_from_new_cmds \
12243 old_archive_from_expsyms_cmds \
12244 archive_cmds \
12245 archive_expsym_cmds \
12246 module_cmds \
12247 module_expsym_cmds \
12248 export_symbols_cmds \
12249 prelink_cmds \
12250 postinstall_cmds \
12251 postuninstall_cmds \
12252 finish_cmds \
12253 sys_lib_search_path_spec \
12254 sys_lib_dlsearch_path_spec; do
12255 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12256 *[\\\\\\\`\\"\\\$]*)
12257 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12260 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12262 esac
12263 done
12265 # Fix-up fallback echo if it was mangled by the above quoting rules.
12266 case \$lt_ECHO in
12267 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12269 esac
12271 ac_aux_dir='$ac_aux_dir'
12272 xsi_shell='$xsi_shell'
12273 lt_shell_append='$lt_shell_append'
12275 # See if we are running on zsh, and set the options which allow our
12276 # commands through without removal of \ escapes INIT.
12277 if test -n "\${ZSH_VERSION+set}" ; then
12278 setopt NO_GLOB_SUBST
12282 PACKAGE='$PACKAGE'
12283 VERSION='$VERSION'
12284 TIMESTAMP='$TIMESTAMP'
12285 RM='$RM'
12286 ofile='$ofile'
12291 _ACEOF
12293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12295 # Handling of arguments.
12296 for ac_config_target in $ac_config_targets
12298 case $ac_config_target in
12299 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12300 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12301 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12302 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12304 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
12305 esac
12306 done
12309 # If the user did not use the arguments to specify the items to instantiate,
12310 # then the envvar interface is used. Set only those that are not.
12311 # We use the long form for the default assignment because of an extremely
12312 # bizarre bug on SunOS 4.1.3.
12313 if $ac_need_defaults; then
12314 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12315 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12316 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12319 # Have a temporary directory for convenience. Make it in the build tree
12320 # simply because there is no reason against having it here, and in addition,
12321 # creating and moving files from /tmp can sometimes cause problems.
12322 # Hook for its removal unless debugging.
12323 # Note that there is a small window in which the directory will not be cleaned:
12324 # after its creation but before its name has been assigned to `$tmp'.
12325 $debug ||
12327 tmp=
12328 trap 'exit_status=$?
12329 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12331 trap 'as_fn_exit 1' 1 2 13 15
12333 # Create a (secure) tmp directory for tmp files.
12336 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12337 test -n "$tmp" && test -d "$tmp"
12338 } ||
12340 tmp=./conf$$-$RANDOM
12341 (umask 077 && mkdir "$tmp")
12342 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12344 # Set up the scripts for CONFIG_FILES section.
12345 # No need to generate them if there are no CONFIG_FILES.
12346 # This happens for instance with `./config.status config.h'.
12347 if test -n "$CONFIG_FILES"; then
12350 ac_cr=`echo X | tr X '\015'`
12351 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12352 # But we know of no other shell where ac_cr would be empty at this
12353 # point, so we can use a bashism as a fallback.
12354 if test "x$ac_cr" = x; then
12355 eval ac_cr=\$\'\\r\'
12357 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12358 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12359 ac_cs_awk_cr='\\r'
12360 else
12361 ac_cs_awk_cr=$ac_cr
12364 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12365 _ACEOF
12369 echo "cat >conf$$subs.awk <<_ACEOF" &&
12370 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12371 echo "_ACEOF"
12372 } >conf$$subs.sh ||
12373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12374 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12375 ac_delim='%!_!# '
12376 for ac_last_try in false false false false false :; do
12377 . ./conf$$subs.sh ||
12378 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12380 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12381 if test $ac_delim_n = $ac_delim_num; then
12382 break
12383 elif $ac_last_try; then
12384 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12385 else
12386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12388 done
12389 rm -f conf$$subs.sh
12391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12392 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12393 _ACEOF
12394 sed -n '
12396 s/^/S["/; s/!.*/"]=/
12399 s/^[^!]*!//
12400 :repl
12401 t repl
12402 s/'"$ac_delim"'$//
12403 t delim
12406 s/\(.\{148\}\)..*/\1/
12407 t more1
12408 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12411 b repl
12412 :more1
12413 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12416 s/.\{148\}//
12417 t nl
12418 :delim
12420 s/\(.\{148\}\)..*/\1/
12421 t more2
12422 s/["\\]/\\&/g; s/^/"/; s/$/"/
12425 :more2
12426 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12429 s/.\{148\}//
12430 t delim
12431 ' <conf$$subs.awk | sed '
12432 /^[^""]/{
12434 s/\n//
12436 ' >>$CONFIG_STATUS || ac_write_fail=1
12437 rm -f conf$$subs.awk
12438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12439 _ACAWK
12440 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12441 for (key in S) S_is_set[key] = 1
12442 FS = "\a"
12446 line = $ 0
12447 nfields = split(line, field, "@")
12448 substed = 0
12449 len = length(field[1])
12450 for (i = 2; i < nfields; i++) {
12451 key = field[i]
12452 keylen = length(key)
12453 if (S_is_set[key]) {
12454 value = S[key]
12455 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12456 len += length(value) + length(field[++i])
12457 substed = 1
12458 } else
12459 len += 1 + keylen
12462 print line
12465 _ACAWK
12466 _ACEOF
12467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12468 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12469 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12470 else
12472 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12473 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12474 _ACEOF
12476 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12477 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12478 # trailing colons and then remove the whole line if VPATH becomes empty
12479 # (actually we leave an empty line to preserve line numbers).
12480 if test "x$srcdir" = x.; then
12481 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12483 s///
12484 s/^/:/
12485 s/[ ]*$/:/
12486 s/:\$(srcdir):/:/g
12487 s/:\${srcdir}:/:/g
12488 s/:@srcdir@:/:/g
12489 s/^:*//
12490 s/:*$//
12492 s/\(=[ ]*\).*/\1/
12494 s/\n//
12495 s/^[^=]*=[ ]*$//
12499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12500 fi # test -n "$CONFIG_FILES"
12502 # Set up the scripts for CONFIG_HEADERS section.
12503 # No need to generate them if there are no CONFIG_HEADERS.
12504 # This happens for instance with `./config.status Makefile'.
12505 if test -n "$CONFIG_HEADERS"; then
12506 cat >"$tmp/defines.awk" <<\_ACAWK ||
12507 BEGIN {
12508 _ACEOF
12510 # Transform confdefs.h into an awk script `defines.awk', embedded as
12511 # here-document in config.status, that substitutes the proper values into
12512 # config.h.in to produce config.h.
12514 # Create a delimiter string that does not exist in confdefs.h, to ease
12515 # handling of long lines.
12516 ac_delim='%!_!# '
12517 for ac_last_try in false false :; do
12518 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12519 if test -z "$ac_t"; then
12520 break
12521 elif $ac_last_try; then
12522 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12523 else
12524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12526 done
12528 # For the awk script, D is an array of macro values keyed by name,
12529 # likewise P contains macro parameters if any. Preserve backslash
12530 # newline sequences.
12532 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12533 sed -n '
12534 s/.\{148\}/&'"$ac_delim"'/g
12535 t rset
12536 :rset
12537 s/^[ ]*#[ ]*define[ ][ ]*/ /
12538 t def
12540 :def
12541 s/\\$//
12542 t bsnl
12543 s/["\\]/\\&/g
12544 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12545 D["\1"]=" \3"/p
12546 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12548 :bsnl
12549 s/["\\]/\\&/g
12550 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12551 D["\1"]=" \3\\\\\\n"\\/p
12552 t cont
12553 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12554 t cont
12556 :cont
12558 s/.\{148\}/&'"$ac_delim"'/g
12559 t clear
12560 :clear
12561 s/\\$//
12562 t bsnlc
12563 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12565 :bsnlc
12566 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12567 b cont
12568 ' <confdefs.h | sed '
12569 s/'"$ac_delim"'/"\\\
12570 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12573 for (key in D) D_is_set[key] = 1
12574 FS = "\a"
12576 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12577 line = \$ 0
12578 split(line, arg, " ")
12579 if (arg[1] == "#") {
12580 defundef = arg[2]
12581 mac1 = arg[3]
12582 } else {
12583 defundef = substr(arg[1], 2)
12584 mac1 = arg[2]
12586 split(mac1, mac2, "(") #)
12587 macro = mac2[1]
12588 prefix = substr(line, 1, index(line, defundef) - 1)
12589 if (D_is_set[macro]) {
12590 # Preserve the white space surrounding the "#".
12591 print prefix "define", macro P[macro] D[macro]
12592 next
12593 } else {
12594 # Replace #undef with comments. This is necessary, for example,
12595 # in the case of _POSIX_SOURCE, which is predefined and required
12596 # on some systems where configure will not decide to define it.
12597 if (defundef == "undef") {
12598 print "/*", prefix defundef, macro, "*/"
12599 next
12603 { print }
12604 _ACAWK
12605 _ACEOF
12606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12607 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12608 fi # test -n "$CONFIG_HEADERS"
12611 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12612 shift
12613 for ac_tag
12615 case $ac_tag in
12616 :[FHLC]) ac_mode=$ac_tag; continue;;
12617 esac
12618 case $ac_mode$ac_tag in
12619 :[FHL]*:*);;
12620 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12621 :[FH]-) ac_tag=-:-;;
12622 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12623 esac
12624 ac_save_IFS=$IFS
12625 IFS=:
12626 set x $ac_tag
12627 IFS=$ac_save_IFS
12628 shift
12629 ac_file=$1
12630 shift
12632 case $ac_mode in
12633 :L) ac_source=$1;;
12634 :[FH])
12635 ac_file_inputs=
12636 for ac_f
12638 case $ac_f in
12639 -) ac_f="$tmp/stdin";;
12640 *) # Look for the file first in the build tree, then in the source tree
12641 # (if the path is not absolute). The absolute path cannot be DOS-style,
12642 # because $ac_f cannot contain `:'.
12643 test -f "$ac_f" ||
12644 case $ac_f in
12645 [\\/$]*) false;;
12646 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12647 esac ||
12648 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12649 esac
12650 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12651 as_fn_append ac_file_inputs " '$ac_f'"
12652 done
12654 # Let's still pretend it is `configure' which instantiates (i.e., don't
12655 # use $as_me), people would be surprised to read:
12656 # /* config.h. Generated by config.status. */
12657 configure_input='Generated from '`
12658 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12659 `' by configure.'
12660 if test x"$ac_file" != x-; then
12661 configure_input="$ac_file. $configure_input"
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12663 $as_echo "$as_me: creating $ac_file" >&6;}
12665 # Neutralize special characters interpreted by sed in replacement strings.
12666 case $configure_input in #(
12667 *\&* | *\|* | *\\* )
12668 ac_sed_conf_input=`$as_echo "$configure_input" |
12669 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12670 *) ac_sed_conf_input=$configure_input;;
12671 esac
12673 case $ac_tag in
12674 *:-:* | *:-) cat >"$tmp/stdin" \
12675 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12676 esac
12678 esac
12680 ac_dir=`$as_dirname -- "$ac_file" ||
12681 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12682 X"$ac_file" : 'X\(//\)[^/]' \| \
12683 X"$ac_file" : 'X\(//\)$' \| \
12684 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12685 $as_echo X"$ac_file" |
12686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12687 s//\1/
12690 /^X\(\/\/\)[^/].*/{
12691 s//\1/
12694 /^X\(\/\/\)$/{
12695 s//\1/
12698 /^X\(\/\).*/{
12699 s//\1/
12702 s/.*/./; q'`
12703 as_dir="$ac_dir"; as_fn_mkdir_p
12704 ac_builddir=.
12706 case "$ac_dir" in
12707 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12709 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12710 # A ".." for each directory in $ac_dir_suffix.
12711 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12712 case $ac_top_builddir_sub in
12713 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12714 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12715 esac ;;
12716 esac
12717 ac_abs_top_builddir=$ac_pwd
12718 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12719 # for backward compatibility:
12720 ac_top_builddir=$ac_top_build_prefix
12722 case $srcdir in
12723 .) # We are building in place.
12724 ac_srcdir=.
12725 ac_top_srcdir=$ac_top_builddir_sub
12726 ac_abs_top_srcdir=$ac_pwd ;;
12727 [\\/]* | ?:[\\/]* ) # Absolute name.
12728 ac_srcdir=$srcdir$ac_dir_suffix;
12729 ac_top_srcdir=$srcdir
12730 ac_abs_top_srcdir=$srcdir ;;
12731 *) # Relative name.
12732 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12733 ac_top_srcdir=$ac_top_build_prefix$srcdir
12734 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12735 esac
12736 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12739 case $ac_mode in
12742 # CONFIG_FILE
12745 case $INSTALL in
12746 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12747 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12748 esac
12749 _ACEOF
12751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12752 # If the template does not know about datarootdir, expand it.
12753 # FIXME: This hack should be removed a few years after 2.60.
12754 ac_datarootdir_hack=; ac_datarootdir_seen=
12755 ac_sed_dataroot='
12756 /datarootdir/ {
12760 /@datadir@/p
12761 /@docdir@/p
12762 /@infodir@/p
12763 /@localedir@/p
12764 /@mandir@/p'
12765 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12766 *datarootdir*) ac_datarootdir_seen=yes;;
12767 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12769 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12770 _ACEOF
12771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12772 ac_datarootdir_hack='
12773 s&@datadir@&$datadir&g
12774 s&@docdir@&$docdir&g
12775 s&@infodir@&$infodir&g
12776 s&@localedir@&$localedir&g
12777 s&@mandir@&$mandir&g
12778 s&\\\${datarootdir}&$datarootdir&g' ;;
12779 esac
12780 _ACEOF
12782 # Neutralize VPATH when `$srcdir' = `.'.
12783 # Shell code in configure.ac might set extrasub.
12784 # FIXME: do we really want to maintain this feature?
12785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12786 ac_sed_extra="$ac_vpsub
12787 $extrasub
12788 _ACEOF
12789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12791 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12792 s|@configure_input@|$ac_sed_conf_input|;t t
12793 s&@top_builddir@&$ac_top_builddir_sub&;t t
12794 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12795 s&@srcdir@&$ac_srcdir&;t t
12796 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12797 s&@top_srcdir@&$ac_top_srcdir&;t t
12798 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12799 s&@builddir@&$ac_builddir&;t t
12800 s&@abs_builddir@&$ac_abs_builddir&;t t
12801 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12802 s&@INSTALL@&$ac_INSTALL&;t t
12803 $ac_datarootdir_hack
12805 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12808 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12809 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12810 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12812 which seems to be undefined. Please make sure it is defined" >&5
12813 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12814 which seems to be undefined. Please make sure it is defined" >&2;}
12816 rm -f "$tmp/stdin"
12817 case $ac_file in
12818 -) cat "$tmp/out" && rm -f "$tmp/out";;
12819 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12820 esac \
12821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12825 # CONFIG_HEADER
12827 if test x"$ac_file" != x-; then
12829 $as_echo "/* $configure_input */" \
12830 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12831 } >"$tmp/config.h" \
12832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12833 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12835 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12836 else
12837 rm -f "$ac_file"
12838 mv "$tmp/config.h" "$ac_file" \
12839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12841 else
12842 $as_echo "/* $configure_input */" \
12843 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12844 || as_fn_error $? "could not create -" "$LINENO" 5
12848 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12849 $as_echo "$as_me: executing $ac_file commands" >&6;}
12851 esac
12854 case $ac_file$ac_mode in
12855 "libtool":C)
12857 # See if we are running on zsh, and set the options which allow our
12858 # commands through without removal of \ escapes.
12859 if test -n "${ZSH_VERSION+set}" ; then
12860 setopt NO_GLOB_SUBST
12863 cfgfile="${ofile}T"
12864 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12865 $RM "$cfgfile"
12867 cat <<_LT_EOF >> "$cfgfile"
12868 #! $SHELL
12870 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12871 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12872 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12873 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12875 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12876 # 2006, 2007, 2008 Free Software Foundation, Inc.
12877 # Written by Gordon Matzigkeit, 1996
12879 # This file is part of GNU Libtool.
12881 # GNU Libtool is free software; you can redistribute it and/or
12882 # modify it under the terms of the GNU General Public License as
12883 # published by the Free Software Foundation; either version 2 of
12884 # the License, or (at your option) any later version.
12886 # As a special exception to the GNU General Public License,
12887 # if you distribute this file as part of a program or library that
12888 # is built using GNU Libtool, you may include this file under the
12889 # same distribution terms that you use for the rest of that program.
12891 # GNU Libtool is distributed in the hope that it will be useful,
12892 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12893 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12894 # GNU General Public License for more details.
12896 # You should have received a copy of the GNU General Public License
12897 # along with GNU Libtool; see the file COPYING. If not, a copy
12898 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12899 # obtained by writing to the Free Software Foundation, Inc.,
12900 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12903 # The names of the tagged configurations supported by this script.
12904 available_tags=""
12906 # ### BEGIN LIBTOOL CONFIG
12908 # Which release of libtool.m4 was used?
12909 macro_version=$macro_version
12910 macro_revision=$macro_revision
12912 # Whether or not to build shared libraries.
12913 build_libtool_libs=$enable_shared
12915 # Whether or not to build static libraries.
12916 build_old_libs=$enable_static
12918 # What type of objects to build.
12919 pic_mode=$pic_mode
12921 # Whether or not to optimize for fast installation.
12922 fast_install=$enable_fast_install
12924 # The host system.
12925 host_alias=$host_alias
12926 host=$host
12927 host_os=$host_os
12929 # The build system.
12930 build_alias=$build_alias
12931 build=$build
12932 build_os=$build_os
12934 # A sed program that does not truncate output.
12935 SED=$lt_SED
12937 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12938 Xsed="\$SED -e 1s/^X//"
12940 # A grep program that handles long lines.
12941 GREP=$lt_GREP
12943 # An ERE matcher.
12944 EGREP=$lt_EGREP
12946 # A literal string matcher.
12947 FGREP=$lt_FGREP
12949 # A BSD- or MS-compatible name lister.
12950 NM=$lt_NM
12952 # Whether we need soft or hard links.
12953 LN_S=$lt_LN_S
12955 # What is the maximum length of a command?
12956 max_cmd_len=$max_cmd_len
12958 # Object file suffix (normally "o").
12959 objext=$ac_objext
12961 # Executable file suffix (normally "").
12962 exeext=$exeext
12964 # whether the shell understands "unset".
12965 lt_unset=$lt_unset
12967 # turn spaces into newlines.
12968 SP2NL=$lt_lt_SP2NL
12970 # turn newlines into spaces.
12971 NL2SP=$lt_lt_NL2SP
12973 # How to create reloadable object files.
12974 reload_flag=$lt_reload_flag
12975 reload_cmds=$lt_reload_cmds
12977 # An object symbol dumper.
12978 OBJDUMP=$lt_OBJDUMP
12980 # Method to check whether dependent libraries are shared objects.
12981 deplibs_check_method=$lt_deplibs_check_method
12983 # Command to use when deplibs_check_method == "file_magic".
12984 file_magic_cmd=$lt_file_magic_cmd
12986 # The archiver.
12987 AR=$lt_AR
12988 AR_FLAGS=$lt_AR_FLAGS
12990 # A symbol stripping program.
12991 STRIP=$lt_STRIP
12993 # Commands used to install an old-style archive.
12994 RANLIB=$lt_RANLIB
12995 old_postinstall_cmds=$lt_old_postinstall_cmds
12996 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12998 # A C compiler.
12999 LTCC=$lt_CC
13001 # LTCC compiler flags.
13002 LTCFLAGS=$lt_CFLAGS
13004 # Take the output of nm and produce a listing of raw symbols and C names.
13005 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13007 # Transform the output of nm in a proper C declaration.
13008 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13010 # Transform the output of nm in a C name address pair.
13011 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13013 # Transform the output of nm in a C name address pair when lib prefix is needed.
13014 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13016 # The name of the directory that contains temporary libtool files.
13017 objdir=$objdir
13019 # Shell to use when invoking shell scripts.
13020 SHELL=$lt_SHELL
13022 # An echo program that does not interpret backslashes.
13023 ECHO=$lt_ECHO
13025 # Used to examine libraries when file_magic_cmd begins with "file".
13026 MAGIC_CMD=$MAGIC_CMD
13028 # Must we lock files when doing compilation?
13029 need_locks=$lt_need_locks
13031 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13032 DSYMUTIL=$lt_DSYMUTIL
13034 # Tool to change global to local symbols on Mac OS X.
13035 NMEDIT=$lt_NMEDIT
13037 # Tool to manipulate fat objects and archives on Mac OS X.
13038 LIPO=$lt_LIPO
13040 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13041 OTOOL=$lt_OTOOL
13043 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13044 OTOOL64=$lt_OTOOL64
13046 # Old archive suffix (normally "a").
13047 libext=$libext
13049 # Shared library suffix (normally ".so").
13050 shrext_cmds=$lt_shrext_cmds
13052 # The commands to extract the exported symbol list from a shared archive.
13053 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13055 # Variables whose values should be saved in libtool wrapper scripts and
13056 # restored at link time.
13057 variables_saved_for_relink=$lt_variables_saved_for_relink
13059 # Do we need the "lib" prefix for modules?
13060 need_lib_prefix=$need_lib_prefix
13062 # Do we need a version for libraries?
13063 need_version=$need_version
13065 # Library versioning type.
13066 version_type=$version_type
13068 # Shared library runtime path variable.
13069 runpath_var=$runpath_var
13071 # Shared library path variable.
13072 shlibpath_var=$shlibpath_var
13074 # Is shlibpath searched before the hard-coded library search path?
13075 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13077 # Format of library name prefix.
13078 libname_spec=$lt_libname_spec
13080 # List of archive names. First name is the real one, the rest are links.
13081 # The last name is the one that the linker finds with -lNAME
13082 library_names_spec=$lt_library_names_spec
13084 # The coded name of the library, if different from the real name.
13085 soname_spec=$lt_soname_spec
13087 # Command to use after installation of a shared archive.
13088 postinstall_cmds=$lt_postinstall_cmds
13090 # Command to use after uninstallation of a shared archive.
13091 postuninstall_cmds=$lt_postuninstall_cmds
13093 # Commands used to finish a libtool library installation in a directory.
13094 finish_cmds=$lt_finish_cmds
13096 # As "finish_cmds", except a single script fragment to be evaled but
13097 # not shown.
13098 finish_eval=$lt_finish_eval
13100 # Whether we should hardcode library paths into libraries.
13101 hardcode_into_libs=$hardcode_into_libs
13103 # Compile-time system search path for libraries.
13104 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13106 # Run-time system search path for libraries.
13107 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13109 # Whether dlopen is supported.
13110 dlopen_support=$enable_dlopen
13112 # Whether dlopen of programs is supported.
13113 dlopen_self=$enable_dlopen_self
13115 # Whether dlopen of statically linked programs is supported.
13116 dlopen_self_static=$enable_dlopen_self_static
13118 # Commands to strip libraries.
13119 old_striplib=$lt_old_striplib
13120 striplib=$lt_striplib
13123 # The linker used to build libraries.
13124 LD=$lt_LD
13126 # Commands used to build an old-style archive.
13127 old_archive_cmds=$lt_old_archive_cmds
13129 # A language specific compiler.
13130 CC=$lt_compiler
13132 # Is the compiler the GNU compiler?
13133 with_gcc=$GCC
13135 # Compiler flag to turn off builtin functions.
13136 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13138 # How to pass a linker flag through the compiler.
13139 wl=$lt_lt_prog_compiler_wl
13141 # Additional compiler flags for building library objects.
13142 pic_flag=$lt_lt_prog_compiler_pic
13144 # Compiler flag to prevent dynamic linking.
13145 link_static_flag=$lt_lt_prog_compiler_static
13147 # Does compiler simultaneously support -c and -o options?
13148 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13150 # Whether or not to add -lc for building shared libraries.
13151 build_libtool_need_lc=$archive_cmds_need_lc
13153 # Whether or not to disallow shared libs when runtime libs are static.
13154 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13156 # Compiler flag to allow reflexive dlopens.
13157 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13159 # Compiler flag to generate shared objects directly from archives.
13160 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13162 # Whether the compiler copes with passing no objects directly.
13163 compiler_needs_object=$lt_compiler_needs_object
13165 # Create an old-style archive from a shared archive.
13166 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13168 # Create a temporary old-style archive to link instead of a shared archive.
13169 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13171 # Commands used to build a shared archive.
13172 archive_cmds=$lt_archive_cmds
13173 archive_expsym_cmds=$lt_archive_expsym_cmds
13175 # Commands used to build a loadable module if different from building
13176 # a shared archive.
13177 module_cmds=$lt_module_cmds
13178 module_expsym_cmds=$lt_module_expsym_cmds
13180 # Whether we are building with GNU ld or not.
13181 with_gnu_ld=$lt_with_gnu_ld
13183 # Flag that allows shared libraries with undefined symbols to be built.
13184 allow_undefined_flag=$lt_allow_undefined_flag
13186 # Flag that enforces no undefined symbols.
13187 no_undefined_flag=$lt_no_undefined_flag
13189 # Flag to hardcode \$libdir into a binary during linking.
13190 # This must work even if \$libdir does not exist
13191 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13193 # If ld is used when linking, flag to hardcode \$libdir into a binary
13194 # during linking. This must work even if \$libdir does not exist.
13195 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13197 # Whether we need a single "-rpath" flag with a separated argument.
13198 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13200 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13201 # DIR into the resulting binary.
13202 hardcode_direct=$hardcode_direct
13204 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13205 # DIR into the resulting binary and the resulting library dependency is
13206 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13207 # library is relocated.
13208 hardcode_direct_absolute=$hardcode_direct_absolute
13210 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13211 # into the resulting binary.
13212 hardcode_minus_L=$hardcode_minus_L
13214 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13215 # into the resulting binary.
13216 hardcode_shlibpath_var=$hardcode_shlibpath_var
13218 # Set to "yes" if building a shared library automatically hardcodes DIR
13219 # into the library and all subsequent libraries and executables linked
13220 # against it.
13221 hardcode_automatic=$hardcode_automatic
13223 # Set to yes if linker adds runtime paths of dependent libraries
13224 # to runtime path list.
13225 inherit_rpath=$inherit_rpath
13227 # Whether libtool must link a program against all its dependency libraries.
13228 link_all_deplibs=$link_all_deplibs
13230 # Fix the shell variable \$srcfile for the compiler.
13231 fix_srcfile_path=$lt_fix_srcfile_path
13233 # Set to "yes" if exported symbols are required.
13234 always_export_symbols=$always_export_symbols
13236 # The commands to list exported symbols.
13237 export_symbols_cmds=$lt_export_symbols_cmds
13239 # Symbols that should not be listed in the preloaded symbols.
13240 exclude_expsyms=$lt_exclude_expsyms
13242 # Symbols that must always be exported.
13243 include_expsyms=$lt_include_expsyms
13245 # Commands necessary for linking programs (against libraries) with templates.
13246 prelink_cmds=$lt_prelink_cmds
13248 # Specify filename containing input files.
13249 file_list_spec=$lt_file_list_spec
13251 # How to hardcode a shared library path into an executable.
13252 hardcode_action=$hardcode_action
13254 # ### END LIBTOOL CONFIG
13256 _LT_EOF
13258 case $host_os in
13259 aix3*)
13260 cat <<\_LT_EOF >> "$cfgfile"
13261 # AIX sometimes has problems with the GCC collect2 program. For some
13262 # reason, if we set the COLLECT_NAMES environment variable, the problems
13263 # vanish in a puff of smoke.
13264 if test "X${COLLECT_NAMES+set}" != Xset; then
13265 COLLECT_NAMES=
13266 export COLLECT_NAMES
13268 _LT_EOF
13270 esac
13273 ltmain="$ac_aux_dir/ltmain.sh"
13276 # We use sed instead of cat because bash on DJGPP gets confused if
13277 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13278 # text mode, it properly converts lines to CR/LF. This bash problem
13279 # is reportedly fixed, but why not run on old versions too?
13280 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13281 || (rm -f "$cfgfile"; exit 1)
13283 case $xsi_shell in
13284 yes)
13285 cat << \_LT_EOF >> "$cfgfile"
13287 # func_dirname file append nondir_replacement
13288 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13289 # otherwise set result to NONDIR_REPLACEMENT.
13290 func_dirname ()
13292 case ${1} in
13293 */*) func_dirname_result="${1%/*}${2}" ;;
13294 * ) func_dirname_result="${3}" ;;
13295 esac
13298 # func_basename file
13299 func_basename ()
13301 func_basename_result="${1##*/}"
13304 # func_dirname_and_basename file append nondir_replacement
13305 # perform func_basename and func_dirname in a single function
13306 # call:
13307 # dirname: Compute the dirname of FILE. If nonempty,
13308 # add APPEND to the result, otherwise set result
13309 # to NONDIR_REPLACEMENT.
13310 # value returned in "$func_dirname_result"
13311 # basename: Compute filename of FILE.
13312 # value retuned in "$func_basename_result"
13313 # Implementation must be kept synchronized with func_dirname
13314 # and func_basename. For efficiency, we do not delegate to
13315 # those functions but instead duplicate the functionality here.
13316 func_dirname_and_basename ()
13318 case ${1} in
13319 */*) func_dirname_result="${1%/*}${2}" ;;
13320 * ) func_dirname_result="${3}" ;;
13321 esac
13322 func_basename_result="${1##*/}"
13325 # func_stripname prefix suffix name
13326 # strip PREFIX and SUFFIX off of NAME.
13327 # PREFIX and SUFFIX must not contain globbing or regex special
13328 # characters, hashes, percent signs, but SUFFIX may contain a leading
13329 # dot (in which case that matches only a dot).
13330 func_stripname ()
13332 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13333 # positional parameters, so assign one to ordinary parameter first.
13334 func_stripname_result=${3}
13335 func_stripname_result=${func_stripname_result#"${1}"}
13336 func_stripname_result=${func_stripname_result%"${2}"}
13339 # func_opt_split
13340 func_opt_split ()
13342 func_opt_split_opt=${1%%=*}
13343 func_opt_split_arg=${1#*=}
13346 # func_lo2o object
13347 func_lo2o ()
13349 case ${1} in
13350 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13351 *) func_lo2o_result=${1} ;;
13352 esac
13355 # func_xform libobj-or-source
13356 func_xform ()
13358 func_xform_result=${1%.*}.lo
13361 # func_arith arithmetic-term...
13362 func_arith ()
13364 func_arith_result=$(( $* ))
13367 # func_len string
13368 # STRING may not start with a hyphen.
13369 func_len ()
13371 func_len_result=${#1}
13374 _LT_EOF
13376 *) # Bourne compatible functions.
13377 cat << \_LT_EOF >> "$cfgfile"
13379 # func_dirname file append nondir_replacement
13380 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13381 # otherwise set result to NONDIR_REPLACEMENT.
13382 func_dirname ()
13384 # Extract subdirectory from the argument.
13385 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13386 if test "X$func_dirname_result" = "X${1}"; then
13387 func_dirname_result="${3}"
13388 else
13389 func_dirname_result="$func_dirname_result${2}"
13393 # func_basename file
13394 func_basename ()
13396 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13400 # func_stripname prefix suffix name
13401 # strip PREFIX and SUFFIX off of NAME.
13402 # PREFIX and SUFFIX must not contain globbing or regex special
13403 # characters, hashes, percent signs, but SUFFIX may contain a leading
13404 # dot (in which case that matches only a dot).
13405 # func_strip_suffix prefix name
13406 func_stripname ()
13408 case ${2} in
13409 .*) func_stripname_result=`$ECHO "X${3}" \
13410 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13411 *) func_stripname_result=`$ECHO "X${3}" \
13412 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13413 esac
13416 # sed scripts:
13417 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13418 my_sed_long_arg='1s/^-[^=]*=//'
13420 # func_opt_split
13421 func_opt_split ()
13423 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13424 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13427 # func_lo2o object
13428 func_lo2o ()
13430 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13433 # func_xform libobj-or-source
13434 func_xform ()
13436 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13439 # func_arith arithmetic-term...
13440 func_arith ()
13442 func_arith_result=`expr "$@"`
13445 # func_len string
13446 # STRING may not start with a hyphen.
13447 func_len ()
13449 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13452 _LT_EOF
13453 esac
13455 case $lt_shell_append in
13456 yes)
13457 cat << \_LT_EOF >> "$cfgfile"
13459 # func_append var value
13460 # Append VALUE to the end of shell variable VAR.
13461 func_append ()
13463 eval "$1+=\$2"
13465 _LT_EOF
13468 cat << \_LT_EOF >> "$cfgfile"
13470 # func_append var value
13471 # Append VALUE to the end of shell variable VAR.
13472 func_append ()
13474 eval "$1=\$$1\$2"
13477 _LT_EOF
13479 esac
13482 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13483 || (rm -f "$cfgfile"; exit 1)
13485 mv -f "$cfgfile" "$ofile" ||
13486 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13487 chmod +x "$ofile"
13491 esac
13492 done # for ac_tag
13495 as_fn_exit 0
13496 _ACEOF
13497 ac_clean_files=$ac_clean_files_save
13499 test $ac_write_fail = 0 ||
13500 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13503 # configure is writing to config.log, and then calls config.status.
13504 # config.status does its own redirection, appending to config.log.
13505 # Unfortunately, on DOS this fails, as config.log is still kept open
13506 # by configure, so config.status won't be able to write to it; its
13507 # output is simply discarded. So we exec the FD to /dev/null,
13508 # effectively closing config.log, so it can be properly (re)opened and
13509 # appended to by config.status. When coming back to configure, we
13510 # need to make the FD available again.
13511 if test "$no_create" != yes; then
13512 ac_cs_success=:
13513 ac_config_status_args=
13514 test "$silent" = yes &&
13515 ac_config_status_args="$ac_config_status_args --quiet"
13516 exec 5>/dev/null
13517 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13518 exec 5>>config.log
13519 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13520 # would make configure fail if this is the last instruction.
13521 $ac_cs_success || as_fn_exit 1
13523 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13525 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}