Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: third_party/sqlite/configure

Issue 3108030: Move bundled copy of sqlite one level deeper to better separate it... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/config.h.in ('k') | third_party/sqlite/configure.ac » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for sqlite 3.6.18.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
95
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file n ame" >&2
117 { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX s hell" >&2
475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575 # Check that we are running under the correct shell.
576 SHELL=${CONFIG_SHELL-/bin/sh}
577
578 case X$lt_ECHO in
579 X*--fallback-echo)
580 # Remove one level of quotation (which was required for Make).
581 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582 ;;
583 esac
584
585 ECHO=${lt_ECHO-echo}
586 if test "X$1" = X--no-reexec; then
587 # Discard the --no-reexec flag, and continue.
588 shift
589 elif test "X$1" = X--fallback-echo; then
590 # Avoid inline document here, it may be left over
591 :
592 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593 # Yippee, $ECHO works!
594 :
595 else
596 # Restart under the correct shell.
597 exec $SHELL "$0" --no-reexec ${1+"$@"}
598 fi
599
600 if test "X$1" = X--fallback-echo; then
601 # used as fallback echo
602 shift
603 cat <<_LT_EOF
604 $*
605 _LT_EOF
606 exit 0
607 fi
608
609 # The HP-UX ksh and POSIX shell print the target directory to stdout
610 # if CDPATH is set.
611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613 if test -z "$lt_ECHO"; then
614 if test "X${echo_test_string+set}" != Xset; then
615 # find a string as large as possible, as long as the shell can cope with it
616 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620 then
621 break
622 fi
623 done
624 fi
625
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 :
630 else
631 # The Solaris, AIX, and Digital Unix default echo programs unquote
632 # backslashes. This makes it impossible to quote backslashes using
633 # echo "$something" | sed 's/\\/\\\\/g'
634 #
635 # So, first we look for a working echo in the user's PATH.
636
637 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638 for dir in $PATH /usr/ucb; do
639 IFS="$lt_save_ifs"
640 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$dir/echo"
645 break
646 fi
647 done
648 IFS="$lt_save_ifs"
649
650 if test "X$ECHO" = Xecho; then
651 # We didn't find a better echo, so look for alternatives.
652 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 # This shell has a builtin print -r that does the trick.
656 ECHO='print -r'
657 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658 test "X$CONFIG_SHELL" != X/bin/ksh; then
659 # If we have ksh, try running configure again with it.
660 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661 export ORIGINAL_CONFIG_SHELL
662 CONFIG_SHELL=/bin/ksh
663 export CONFIG_SHELL
664 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665 else
666 # Try using printf.
667 ECHO='printf %s\n'
668 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670 test "X$echo_testing_string" = "X$echo_test_string"; then
671 # Cool, printf works
672 :
673 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo ' \t') 2>/dev/null` &&
674 test "X$echo_testing_string" = 'X\t' &&
675 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo " $echo_test_string") 2>/dev/null` &&
676 test "X$echo_testing_string" = "X$echo_test_string"; then
677 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678 export CONFIG_SHELL
679 SHELL="$CONFIG_SHELL"
680 export SHELL
681 ECHO="$CONFIG_SHELL $0 --fallback-echo"
682 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/d ev/null` &&
683 test "X$echo_testing_string" = 'X\t' &&
684 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_tes t_string") 2>/dev/null` &&
685 test "X$echo_testing_string" = "X$echo_test_string"; then
686 ECHO="$CONFIG_SHELL $0 --fallback-echo"
687 else
688 # maybe with a smaller string...
689 prev=:
690
691 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'se d 50q "$0"'; do
692 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693 then
694 break
695 fi
696 prev="$cmd"
697 done
698
699 if test "$prev" != 'sed 50q "$0"'; then
700 echo_test_string=`eval $prev`
701 export echo_test_string
702 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703 else
704 # Oops. We lost completely, so just stick with echo.
705 ECHO=echo
706 fi
707 fi
708 fi
709 fi
710 fi
711 fi
712
713 # Copy echo and quote the copy suitably for passing to libtool from
714 # the Makefile, instead of quoting the original, which is used later.
715 lt_ECHO=$ECHO
716 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718 fi
719
720
721
722
723 exec 7<&0 </dev/null 6>&1
724
725 # Name of the host.
726 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727 # so uname gets run too.
728 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730 #
731 # Initializations.
732 #
733 ac_default_prefix=/usr/local
734 ac_clean_files=
735 ac_config_libobj_dir=.
736 LIBOBJS=
737 cross_compiling=no
738 subdirs=
739 MFLAGS=
740 MAKEFLAGS=
741 SHELL=${CONFIG_SHELL-/bin/sh}
742
743 # Identity of this package.
744 PACKAGE_NAME='sqlite'
745 PACKAGE_TARNAME='sqlite'
746 PACKAGE_VERSION='3.6.18'
747 PACKAGE_STRING='sqlite 3.6.18'
748 PACKAGE_BUGREPORT=''
749
750 # Factoring default headers for most tests.
751 ac_includes_default="\
752 #include <stdio.h>
753 #ifdef HAVE_SYS_TYPES_H
754 # include <sys/types.h>
755 #endif
756 #ifdef HAVE_SYS_STAT_H
757 # include <sys/stat.h>
758 #endif
759 #ifdef STDC_HEADERS
760 # include <stdlib.h>
761 # include <stddef.h>
762 #else
763 # ifdef HAVE_STDLIB_H
764 # include <stdlib.h>
765 # endif
766 #endif
767 #ifdef HAVE_STRING_H
768 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769 # include <memory.h>
770 # endif
771 # include <string.h>
772 #endif
773 #ifdef HAVE_STRINGS_H
774 # include <strings.h>
775 #endif
776 #ifdef HAVE_INTTYPES_H
777 # include <inttypes.h>
778 #endif
779 #ifdef HAVE_STDINT_H
780 # include <stdint.h>
781 #endif
782 #ifdef HAVE_UNISTD_H
783 # include <unistd.h>
784 #endif"
785
786 ac_subst_vars='SHELL
787 PATH_SEPARATOR
788 PACKAGE_NAME
789 PACKAGE_TARNAME
790 PACKAGE_VERSION
791 PACKAGE_STRING
792 PACKAGE_BUGREPORT
793 exec_prefix
794 prefix
795 program_transform_name
796 bindir
797 sbindir
798 libexecdir
799 datarootdir
800 datadir
801 sysconfdir
802 sharedstatedir
803 localstatedir
804 includedir
805 oldincludedir
806 docdir
807 infodir
808 htmldir
809 dvidir
810 pdfdir
811 psdir
812 libdir
813 localedir
814 mandir
815 DEFS
816 ECHO_C
817 ECHO_N
818 ECHO_T
819 LIBS
820 build_alias
821 host_alias
822 target_alias
823 LIBTOOL
824 build
825 build_cpu
826 build_vendor
827 build_os
828 host
829 host_cpu
830 host_vendor
831 host_os
832 CC
833 CFLAGS
834 LDFLAGS
835 CPPFLAGS
836 ac_ct_CC
837 EXEEXT
838 OBJEXT
839 SED
840 GREP
841 EGREP
842 FGREP
843 LD
844 DUMPBIN
845 ac_ct_DUMPBIN
846 NM
847 LN_S
848 OBJDUMP
849 AR
850 STRIP
851 RANLIB
852 lt_ECHO
853 DSYMUTIL
854 NMEDIT
855 LIPO
856 OTOOL
857 OTOOL64
858 CPP
859 INSTALL_PROGRAM
860 INSTALL_SCRIPT
861 INSTALL_DATA
862 AWK
863 TCLSH_CMD
864 TCLLIBDIR
865 program_prefix
866 VERSION
867 RELEASE
868 VERSION_NUMBER
869 BUILD_CC
870 SQLITE_THREADSAFE
871 XTHREADCONNECT
872 THREADSOVERRIDELOCKS
873 ALLOWRELEASE
874 TEMP_STORE
875 BUILD_EXEEXT
876 SQLITE_OS_UNIX
877 SQLITE_OS_WIN
878 SQLITE_OS_OS2
879 TARGET_EXEEXT
880 TCL_VERSION
881 TCL_BIN_DIR
882 TCL_SRC_DIR
883 TCL_LIBS
884 TCL_INCLUDE_SPEC
885 TCL_LIB_FILE
886 TCL_LIB_FLAG
887 TCL_LIB_SPEC
888 TCL_STUB_LIB_FILE
889 TCL_STUB_LIB_FLAG
890 TCL_STUB_LIB_SPEC
891 HAVE_TCL
892 TARGET_READLINE_LIBS
893 TARGET_READLINE_INC
894 TARGET_HAVE_READLINE
895 TARGET_DEBUG
896 USE_AMALGAMATION
897 OPT_FEATURE_FLAGS
898 USE_GCOV
899 BUILD_CFLAGS
900 LIBOBJS
901 LTLIBOBJS'
902 ac_subst_files=''
903 ac_user_opts='
904 enable_option_checking
905 enable_shared
906 enable_static
907 with_pic
908 enable_fast_install
909 with_gnu_ld
910 enable_libtool_lock
911 enable_largefile
912 with_hints
913 enable_threadsafe
914 enable_cross_thread_connections
915 enable_threads_override_locks
916 enable_releasemode
917 enable_tempstore
918 enable_tcl
919 with_tcl
920 enable_readline
921 with_readline_lib
922 with_readline_inc
923 enable_debug
924 enable_amalgamation
925 enable_load_extension
926 enable_gcov
927 '
928 ac_precious_vars='build_alias
929 host_alias
930 target_alias
931 CC
932 CFLAGS
933 LDFLAGS
934 LIBS
935 CPPFLAGS
936 CPP
937 TCLLIBDIR'
938
939
940 # Initialize some variables set by options.
941 ac_init_help=
942 ac_init_version=false
943 ac_unrecognized_opts=
944 ac_unrecognized_sep=
945 # The variables have the same names as the options, with
946 # dashes changed to underlines.
947 cache_file=/dev/null
948 exec_prefix=NONE
949 no_create=
950 no_recursion=
951 prefix=NONE
952 program_prefix=NONE
953 program_suffix=NONE
954 program_transform_name=s,x,x,
955 silent=
956 site=
957 srcdir=
958 verbose=
959 x_includes=NONE
960 x_libraries=NONE
961
962 # Installation directory options.
963 # These are left unexpanded so users can "make install exec_prefix=/foo"
964 # and all the variables that are supposed to be based on exec_prefix
965 # by default will actually change.
966 # Use braces instead of parens because sh, perl, etc. also accept them.
967 # (The list follows the same order as the GNU Coding Standards.)
968 bindir='${exec_prefix}/bin'
969 sbindir='${exec_prefix}/sbin'
970 libexecdir='${exec_prefix}/libexec'
971 datarootdir='${prefix}/share'
972 datadir='${datarootdir}'
973 sysconfdir='${prefix}/etc'
974 sharedstatedir='${prefix}/com'
975 localstatedir='${prefix}/var'
976 includedir='${prefix}/include'
977 oldincludedir='/usr/include'
978 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
979 infodir='${datarootdir}/info'
980 htmldir='${docdir}'
981 dvidir='${docdir}'
982 pdfdir='${docdir}'
983 psdir='${docdir}'
984 libdir='${exec_prefix}/lib'
985 localedir='${datarootdir}/locale'
986 mandir='${datarootdir}/man'
987
988 ac_prev=
989 ac_dashdash=
990 for ac_option
991 do
992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
994 eval $ac_prev=\$ac_option
995 ac_prev=
996 continue
997 fi
998
999 case $ac_option in
1000 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 *) ac_optarg=yes ;;
1002 esac
1003
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1005
1006 case $ac_dashdash$ac_option in
1007 --)
1008 ac_dashdash=yes ;;
1009
1010 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011 ac_prev=bindir ;;
1012 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013 bindir=$ac_optarg ;;
1014
1015 -build | --build | --buil | --bui | --bu)
1016 ac_prev=build_alias ;;
1017 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018 build_alias=$ac_optarg ;;
1019
1020 -cache-file | --cache-file | --cache-fil | --cache-fi \
1021 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022 ac_prev=cache_file ;;
1023 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025 cache_file=$ac_optarg ;;
1026
1027 --config-cache | -C)
1028 cache_file=config.cache ;;
1029
1030 -datadir | --datadir | --datadi | --datad)
1031 ac_prev=datadir ;;
1032 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033 datadir=$ac_optarg ;;
1034
1035 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036 | --dataroo | --dataro | --datar)
1037 ac_prev=datarootdir ;;
1038 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040 datarootdir=$ac_optarg ;;
1041
1042 -disable-* | --disable-*)
1043 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_useropt_orig=$ac_useropt
1049 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1051 *"
1052 "enable_$ac_useropt"
1053 "*) ;;
1054 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disabl e-$ac_useropt_orig"
1055 ac_unrecognized_sep=', ';;
1056 esac
1057 eval enable_$ac_useropt=no ;;
1058
1059 -docdir | --docdir | --docdi | --doc | --do)
1060 ac_prev=docdir ;;
1061 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062 docdir=$ac_optarg ;;
1063
1064 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065 ac_prev=dvidir ;;
1066 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067 dvidir=$ac_optarg ;;
1068
1069 -enable-* | --enable-*)
1070 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079 "enable_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable -$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval enable_$ac_useropt=\$ac_optarg ;;
1085
1086 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1087 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1088 | --exec | --exe | --ex)
1089 ac_prev=exec_prefix ;;
1090 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1091 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1092 | --exec=* | --exe=* | --ex=*)
1093 exec_prefix=$ac_optarg ;;
1094
1095 -gas | --gas | --ga | --g)
1096 # Obsolete; use --with-gas.
1097 with_gas=yes ;;
1098
1099 -help | --help | --hel | --he | -h)
1100 ac_init_help=long ;;
1101 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1102 ac_init_help=recursive ;;
1103 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1104 ac_init_help=short ;;
1105
1106 -host | --host | --hos | --ho)
1107 ac_prev=host_alias ;;
1108 -host=* | --host=* | --hos=* | --ho=*)
1109 host_alias=$ac_optarg ;;
1110
1111 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1112 ac_prev=htmldir ;;
1113 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1114 | --ht=*)
1115 htmldir=$ac_optarg ;;
1116
1117 -includedir | --includedir | --includedi | --included | --include \
1118 | --includ | --inclu | --incl | --inc)
1119 ac_prev=includedir ;;
1120 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1121 | --includ=* | --inclu=* | --incl=* | --inc=*)
1122 includedir=$ac_optarg ;;
1123
1124 -infodir | --infodir | --infodi | --infod | --info | --inf)
1125 ac_prev=infodir ;;
1126 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1127 infodir=$ac_optarg ;;
1128
1129 -libdir | --libdir | --libdi | --libd)
1130 ac_prev=libdir ;;
1131 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1132 libdir=$ac_optarg ;;
1133
1134 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1135 | --libexe | --libex | --libe)
1136 ac_prev=libexecdir ;;
1137 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1138 | --libexe=* | --libex=* | --libe=*)
1139 libexecdir=$ac_optarg ;;
1140
1141 -localedir | --localedir | --localedi | --localed | --locale)
1142 ac_prev=localedir ;;
1143 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1144 localedir=$ac_optarg ;;
1145
1146 -localstatedir | --localstatedir | --localstatedi | --localstated \
1147 | --localstate | --localstat | --localsta | --localst | --locals)
1148 ac_prev=localstatedir ;;
1149 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1150 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1151 localstatedir=$ac_optarg ;;
1152
1153 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1154 ac_prev=mandir ;;
1155 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1156 mandir=$ac_optarg ;;
1157
1158 -nfp | --nfp | --nf)
1159 # Obsolete; use --without-fp.
1160 with_fp=no ;;
1161
1162 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1163 | --no-cr | --no-c | -n)
1164 no_create=yes ;;
1165
1166 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1167 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1168 no_recursion=yes ;;
1169
1170 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1171 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1172 | --oldin | --oldi | --old | --ol | --o)
1173 ac_prev=oldincludedir ;;
1174 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1175 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1176 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1177 oldincludedir=$ac_optarg ;;
1178
1179 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1180 ac_prev=prefix ;;
1181 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1182 prefix=$ac_optarg ;;
1183
1184 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1185 | --program-pre | --program-pr | --program-p)
1186 ac_prev=program_prefix ;;
1187 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1188 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1189 program_prefix=$ac_optarg ;;
1190
1191 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1192 | --program-suf | --program-su | --program-s)
1193 ac_prev=program_suffix ;;
1194 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1195 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1196 program_suffix=$ac_optarg ;;
1197
1198 -program-transform-name | --program-transform-name \
1199 | --program-transform-nam | --program-transform-na \
1200 | --program-transform-n | --program-transform- \
1201 | --program-transform | --program-transfor \
1202 | --program-transfo | --program-transf \
1203 | --program-trans | --program-tran \
1204 | --progr-tra | --program-tr | --program-t)
1205 ac_prev=program_transform_name ;;
1206 -program-transform-name=* | --program-transform-name=* \
1207 | --program-transform-nam=* | --program-transform-na=* \
1208 | --program-transform-n=* | --program-transform-=* \
1209 | --program-transform=* | --program-transfor=* \
1210 | --program-transfo=* | --program-transf=* \
1211 | --program-trans=* | --program-tran=* \
1212 | --progr-tra=* | --program-tr=* | --program-t=*)
1213 program_transform_name=$ac_optarg ;;
1214
1215 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1216 ac_prev=pdfdir ;;
1217 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1218 pdfdir=$ac_optarg ;;
1219
1220 -psdir | --psdir | --psdi | --psd | --ps)
1221 ac_prev=psdir ;;
1222 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1223 psdir=$ac_optarg ;;
1224
1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1226 | -silent | --silent | --silen | --sile | --sil)
1227 silent=yes ;;
1228
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 ac_prev=sbindir ;;
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 | --sbi=* | --sb=*)
1233 sbindir=$ac_optarg ;;
1234
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1238 | --sha | --sh)
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 | --sha=* | --sh=*)
1244 sharedstatedir=$ac_optarg ;;
1245
1246 -site | --site | --sit)
1247 ac_prev=site ;;
1248 -site=* | --site=* | --sit=*)
1249 site=$ac_optarg ;;
1250
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 ac_prev=srcdir ;;
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1255
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1262
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1267
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 verbose=yes ;;
1270
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1273
1274 -with-* | --with-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1279 { (exit 1); exit 1; }; }
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284 "with_$ac_useropt"
1285 "*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=\$ac_optarg ;;
1290
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1296 { (exit 1); exit 1; }; }
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1300 *"
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--withou t-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=no ;;
1307
1308 --x)
1309 # Obsolete; use --with-x.
1310 with_x=yes ;;
1311
1312 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1313 | --x-incl | --x-inc | --x-in | --x-i)
1314 ac_prev=x_includes ;;
1315 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1316 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1317 x_includes=$ac_optarg ;;
1318
1319 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1320 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1321 ac_prev=x_libraries ;;
1322 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1323 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1324 x_libraries=$ac_optarg ;;
1325
1326 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1327 Try \`$0 --help' for more information." >&2
1328 { (exit 1); exit 1; }; }
1329 ;;
1330
1331 *=*)
1332 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1333 # Reject names that are not valid shell variable names.
1334 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1335 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1336 { (exit 1); exit 1; }; }
1337 eval $ac_envvar=\$ac_optarg
1338 export $ac_envvar ;;
1339
1340 *)
1341 # FIXME: should be removed in autoconf 3.0.
1342 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1343 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1344 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1345 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_opti on}
1346 ;;
1347
1348 esac
1349 done
1350
1351 if test -n "$ac_prev"; then
1352 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1353 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1354 { (exit 1); exit 1; }; }
1355 fi
1356
1357 if test -n "$ac_unrecognized_opts"; then
1358 case $enable_option_checking in
1359 no) ;;
1360 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opt s" >&2
1361 { (exit 1); exit 1; }; } ;;
1362 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opt s" >&2 ;;
1363 esac
1364 fi
1365
1366 # Check all directory arguments for consistency.
1367 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370 libdir localedir mandir
1371 do
1372 eval ac_val=\$$ac_var
1373 # Remove trailing slashes.
1374 case $ac_val in
1375 */ )
1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\$ac_val;;
1378 esac
1379 # Be sure to have absolute directory names.
1380 case $ac_val in
1381 [\\/$]* | ?:[\\/]* ) continue;;
1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383 esac
1384 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1385 { (exit 1); exit 1; }; }
1386 done
1387
1388 # There might be people who depend on the old broken behavior: `$host'
1389 # used to hold the argument of --host etc.
1390 # FIXME: To remove some day.
1391 build=$build_alias
1392 host=$host_alias
1393 target=$target_alias
1394
1395 # FIXME: To remove some day.
1396 if test "x$host_alias" != x; then
1397 if test "x$build_alias" = x; then
1398 cross_compiling=maybe
1399 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1400 If a cross compiler is detected then cross compile mode will be used." >&2
1401 elif test "x$build_alias" != "x$host_alias"; then
1402 cross_compiling=yes
1403 fi
1404 fi
1405
1406 ac_tool_prefix=
1407 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1408
1409 test "$silent" = yes && exec 6>/dev/null
1410
1411
1412 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1413 ac_ls_di=`ls -di .` &&
1414 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1415 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1416 { (exit 1); exit 1; }; }
1417 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1418 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1419 { (exit 1); exit 1; }; }
1420
1421
1422 # Find the source files, if location was not specified.
1423 if test -z "$srcdir"; then
1424 ac_srcdir_defaulted=yes
1425 # Try the directory containing this script, then the parent directory.
1426 ac_confdir=`$as_dirname -- "$as_myself" ||
1427 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1428 X"$as_myself" : 'X\(//\)[^/]' \| \
1429 X"$as_myself" : 'X\(//\)$' \| \
1430 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1431 $as_echo X"$as_myself" |
1432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)[^/].*/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\/\)$/{
1441 s//\1/
1442 q
1443 }
1444 /^X\(\/\).*/{
1445 s//\1/
1446 q
1447 }
1448 s/.*/./; q'`
1449 srcdir=$ac_confdir
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 srcdir=..
1452 fi
1453 else
1454 ac_srcdir_defaulted=no
1455 fi
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1458 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" > &2
1459 { (exit 1); exit 1; }; }
1460 fi
1461 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1462 ac_abs_confdir=`(
1463 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error : $ac_msg" >&2
1464 { (exit 1); exit 1; }; }
1465 pwd)`
1466 # When building in place, set srcdir=.
1467 if test "$ac_abs_confdir" = "$ac_pwd"; then
1468 srcdir=.
1469 fi
1470 # Remove unnecessary trailing slashes from srcdir.
1471 # Double slashes in file names in object file debugging info
1472 # mess up M-x gdb in Emacs.
1473 case $srcdir in
1474 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1475 esac
1476 for ac_var in $ac_precious_vars; do
1477 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1478 eval ac_env_${ac_var}_value=\$${ac_var}
1479 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1481 done
1482
1483 #
1484 # Report the --help message.
1485 #
1486 if test "$ac_init_help" = "long"; then
1487 # Omit some internal or obsolete options to make the list less imposing.
1488 # This message is too long to be a string in the A/UX 3.1 sh.
1489 cat <<_ACEOF
1490 \`configure' configures sqlite 3.6.18 to adapt to many kinds of systems.
1491
1492 Usage: $0 [OPTION]... [VAR=VALUE]...
1493
1494 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1495 VAR=VALUE. See below for descriptions of some of the useful variables.
1496
1497 Defaults for the options are specified in brackets.
1498
1499 Configuration:
1500 -h, --help display this help and exit
1501 --help=short display options specific to this package
1502 --help=recursive display the short help of all the included packages
1503 -V, --version display version information and exit
1504 -q, --quiet, --silent do not print \`checking...' messages
1505 --cache-file=FILE cache test results in FILE [disabled]
1506 -C, --config-cache alias for \`--cache-file=config.cache'
1507 -n, --no-create do not create output files
1508 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1509
1510 Installation directories:
1511 --prefix=PREFIX install architecture-independent files in PREFIX
1512 [$ac_default_prefix]
1513 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1514 [PREFIX]
1515
1516 By default, \`make install' will install all the files in
1517 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1518 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1519 for instance \`--prefix=\$HOME'.
1520
1521 For better control, use the options below.
1522
1523 Fine tuning of the installation directories:
1524 --bindir=DIR user executables [EPREFIX/bin]
1525 --sbindir=DIR system admin executables [EPREFIX/sbin]
1526 --libexecdir=DIR program executables [EPREFIX/libexec]
1527 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1528 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1529 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1530 --libdir=DIR object code libraries [EPREFIX/lib]
1531 --includedir=DIR C header files [PREFIX/include]
1532 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1533 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1534 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1535 --infodir=DIR info documentation [DATAROOTDIR/info]
1536 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1537 --mandir=DIR man documentation [DATAROOTDIR/man]
1538 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1539 --htmldir=DIR html documentation [DOCDIR]
1540 --dvidir=DIR dvi documentation [DOCDIR]
1541 --pdfdir=DIR pdf documentation [DOCDIR]
1542 --psdir=DIR ps documentation [DOCDIR]
1543 _ACEOF
1544
1545 cat <<\_ACEOF
1546
1547 System types:
1548 --build=BUILD configure for building on BUILD [guessed]
1549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1550 _ACEOF
1551 fi
1552
1553 if test -n "$ac_init_help"; then
1554 case $ac_init_help in
1555 short | recursive ) echo "Configuration of sqlite 3.6.18:";;
1556 esac
1557 cat <<\_ACEOF
1558
1559 Optional Features:
1560 --disable-option-checking ignore unrecognized --enable/--with options
1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1563 --enable-shared[=PKGS] build shared libraries [default=yes]
1564 --enable-static[=PKGS] build static libraries [default=yes]
1565 --enable-fast-install[=PKGS]
1566 optimize for fast installation [default=yes]
1567 --disable-libtool-lock avoid locking (might break parallel builds)
1568 --disable-largefile omit support for large files
1569 --enable-threadsafe Support threadsafe operation
1570 --enable-cross-thread-connections
1571 Allow connection sharing across threads
1572 --enable-threads-override-locks
1573 Threads can override each others locks
1574 --enable-releasemode Support libtool link to release mode
1575 --enable-tempstore Use an in-ram database for temporary tables
1576 (never,no,yes,always)
1577 --disable-tcl do not build TCL extension
1578 --disable-readline disable readline support [default=detect]
1579 --enable-debug enable debugging & verbose explain
1580 --disable-amalgamation Disable the amalgamation and instead build all files
1581 separately
1582 --enable-load-extension Enable loading of external extensions
1583 --enable-gcov Enable coverage testing using gcov
1584
1585 Optional Packages:
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1588 --with-pic try to use only PIC/non-PIC objects [default=use
1589 both]
1590 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1591 --with-hints=FILE Read configuration options from FILE
1592 --with-tcl=DIR directory containing tcl configuration
1593 (tclConfig.sh)
1594 --with-readline-lib specify readline library
1595 --with-readline-inc specify readline include paths
1596
1597 Some influential environment variables:
1598 CC C compiler command
1599 CFLAGS C compiler flags
1600 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1601 nonstandard directory <lib dir>
1602 LIBS libraries to pass to the linker, e.g. -l<library>
1603 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1604 you have headers in a nonstandard directory <include dir>
1605 CPP C preprocessor
1606 TCLLIBDIR Where to install tcl plugin
1607
1608 Use these variables to override the choices made by `configure' or to help
1609 it to find libraries and programs with nonstandard names/locations.
1610
1611 _ACEOF
1612 ac_status=$?
1613 fi
1614
1615 if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
1617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 continue
1621 ac_builddir=.
1622
1623 case "$ac_dir" in
1624 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *)
1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 esac ;;
1633 esac
1634 ac_abs_top_builddir=$ac_pwd
1635 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636 # for backward compatibility:
1637 ac_top_builddir=$ac_top_build_prefix
1638
1639 case $srcdir in
1640 .) # We are building in place.
1641 ac_srcdir=.
1642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
1645 ac_srcdir=$srcdir$ac_dir_suffix;
1646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1648 *) # Relative name.
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652 esac
1653 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure" --help=recursive
1663 else
1664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 fi || ac_status=$?
1666 cd "$ac_pwd" || { ac_status=$?; break; }
1667 done
1668 fi
1669
1670 test -n "$ac_init_help" && exit $ac_status
1671 if $ac_init_version; then
1672 cat <<\_ACEOF
1673 sqlite configure 3.6.18
1674 generated by GNU Autoconf 2.62
1675
1676 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1677 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1678 This configure script is free software; the Free Software Foundation
1679 gives unlimited permission to copy, distribute and modify it.
1680 _ACEOF
1681 exit
1682 fi
1683 cat >config.log <<_ACEOF
1684 This file contains any messages produced by compilers while
1685 running configure, to aid debugging if configure makes a mistake.
1686
1687 It was created by sqlite $as_me 3.6.18, which was
1688 generated by GNU Autoconf 2.62. Invocation command line was
1689
1690 $ $0 $@
1691
1692 _ACEOF
1693 exec 5>>config.log
1694 {
1695 cat <<_ASUNAME
1696 ## --------- ##
1697 ## Platform. ##
1698 ## --------- ##
1699
1700 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1701 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1702 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1703 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1704 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1705
1706 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1707 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1708
1709 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1710 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1711 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1712 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1713 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1714 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1715 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1716
1717 _ASUNAME
1718
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720 for as_dir in $PATH
1721 do
1722 IFS=$as_save_IFS
1723 test -z "$as_dir" && as_dir=.
1724 $as_echo "PATH: $as_dir"
1725 done
1726 IFS=$as_save_IFS
1727
1728 } >&5
1729
1730 cat >&5 <<_ACEOF
1731
1732
1733 ## ----------- ##
1734 ## Core tests. ##
1735 ## ----------- ##
1736
1737 _ACEOF
1738
1739
1740 # Keep a trace of the command line.
1741 # Strip out --no-create and --no-recursion so they do not pile up.
1742 # Strip out --silent because we don't want to record it for future runs.
1743 # Also quote any args containing shell meta-characters.
1744 # Make two passes to allow for proper duplicate-argument suppression.
1745 ac_configure_args=
1746 ac_configure_args0=
1747 ac_configure_args1=
1748 ac_must_keep_next=false
1749 for ac_pass in 1 2
1750 do
1751 for ac_arg
1752 do
1753 case $ac_arg in
1754 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1756 | -silent | --silent | --silen | --sile | --sil)
1757 continue ;;
1758 *\'*)
1759 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1760 esac
1761 case $ac_pass in
1762 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1763 2)
1764 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1765 if test $ac_must_keep_next = true; then
1766 ac_must_keep_next=false # Got value, back to normal.
1767 else
1768 case $ac_arg in
1769 *=* | --config-cache | -C | -disable-* | --disable-* \
1770 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1771 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1772 | -with-* | --with-* | -without-* | --without-* | --x)
1773 case "$ac_configure_args0 " in
1774 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1775 esac
1776 ;;
1777 -* ) ac_must_keep_next=true ;;
1778 esac
1779 fi
1780 ac_configure_args="$ac_configure_args '$ac_arg'"
1781 ;;
1782 esac
1783 done
1784 done
1785 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_ configure_args0=; export ac_configure_args0; }
1786 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_ configure_args1=; export ac_configure_args1; }
1787
1788 # When interrupted or exit'd, cleanup temporary files, and complete
1789 # config.log. We remove comments because anyway the quotes in there
1790 # would cause problems or look ugly.
1791 # WARNING: Use '\'' to represent an apostrophe within the trap.
1792 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1793 trap 'exit_status=$?
1794 # Save into config.log some information that might help in debugging.
1795 {
1796 echo
1797
1798 cat <<\_ASBOX
1799 ## ---------------- ##
1800 ## Cache variables. ##
1801 ## ---------------- ##
1802 _ASBOX
1803 echo
1804 # The following way of writing the cache mishandles newlines in values,
1805 (
1806 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\ ''`; do
1807 eval ac_val=\$$ac_var
1808 case $ac_val in #(
1809 *${as_nl}*)
1810 case $ac_var in #(
1811 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contai ns a newline." >&5
1812 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1813 esac
1814 case $ac_var in #(
1815 _ | IFS | as_nl) ;; #(
1816 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1817 *) $as_unset $ac_var ;;
1818 esac ;;
1819 esac
1820 done
1821 (set) 2>&1 |
1822 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1823 *${as_nl}ac_space=\ *)
1824 sed -n \
1825 "s/'\''/'\''\\\\'\'''\''/g;
1826 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\'' /p"
1827 ;; #(
1828 *)
1829 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1830 ;;
1831 esac |
1832 sort
1833 )
1834 echo
1835
1836 cat <<\_ASBOX
1837 ## ----------------- ##
1838 ## Output variables. ##
1839 ## ----------------- ##
1840 _ASBOX
1841 echo
1842 for ac_var in $ac_subst_vars
1843 do
1844 eval ac_val=\$$ac_var
1845 case $ac_val in
1846 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"` ;;
1847 esac
1848 $as_echo "$ac_var='\''$ac_val'\''"
1849 done | sort
1850 echo
1851
1852 if test -n "$ac_subst_files"; then
1853 cat <<\_ASBOX
1854 ## ------------------- ##
1855 ## File substitutions. ##
1856 ## ------------------- ##
1857 _ASBOX
1858 echo
1859 for ac_var in $ac_subst_files
1860 do
1861 eval ac_val=\$$ac_var
1862 case $ac_val in
1863 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g "`;;
1864 esac
1865 $as_echo "$ac_var='\''$ac_val'\''"
1866 done | sort
1867 echo
1868 fi
1869
1870 if test -s confdefs.h; then
1871 cat <<\_ASBOX
1872 ## ----------- ##
1873 ## confdefs.h. ##
1874 ## ----------- ##
1875 _ASBOX
1876 echo
1877 cat confdefs.h
1878 echo
1879 fi
1880 test "$ac_signal" != 0 &&
1881 $as_echo "$as_me: caught signal $ac_signal"
1882 $as_echo "$as_me: exit $exit_status"
1883 } >&5
1884 rm -f core *.core core.conftest.* &&
1885 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1886 exit $exit_status
1887 ' 0
1888 for ac_signal in 1 2 13 15; do
1889 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1890 done
1891 ac_signal=0
1892
1893 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1894 rm -f -r conftest* confdefs.h
1895
1896 # Predefined preprocessor variables.
1897
1898 cat >>confdefs.h <<_ACEOF
1899 #define PACKAGE_NAME "$PACKAGE_NAME"
1900 _ACEOF
1901
1902
1903 cat >>confdefs.h <<_ACEOF
1904 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1905 _ACEOF
1906
1907
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1910 _ACEOF
1911
1912
1913 cat >>confdefs.h <<_ACEOF
1914 #define PACKAGE_STRING "$PACKAGE_STRING"
1915 _ACEOF
1916
1917
1918 cat >>confdefs.h <<_ACEOF
1919 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1920 _ACEOF
1921
1922
1923 # Let the site file select an alternate cache file if it wants to.
1924 # Prefer an explicitly selected file to automatically selected ones.
1925 ac_site_file1=NONE
1926 ac_site_file2=NONE
1927 if test -n "$CONFIG_SITE"; then
1928 ac_site_file1=$CONFIG_SITE
1929 elif test "x$prefix" != xNONE; then
1930 ac_site_file1=$prefix/share/config.site
1931 ac_site_file2=$prefix/etc/config.site
1932 else
1933 ac_site_file1=$ac_default_prefix/share/config.site
1934 ac_site_file2=$ac_default_prefix/etc/config.site
1935 fi
1936 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1937 do
1938 test "x$ac_site_file" = xNONE && continue
1939 if test -r "$ac_site_file"; then
1940 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1941 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1942 sed 's/^/| /' "$ac_site_file" >&5
1943 . "$ac_site_file"
1944 fi
1945 done
1946
1947 if test -r "$cache_file"; then
1948 # Some versions of bash will fail to source /dev/null (special
1949 # files actually), so we avoid doing that.
1950 if test -f "$cache_file"; then
1951 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1952 $as_echo "$as_me: loading cache $cache_file" >&6;}
1953 case $cache_file in
1954 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1955 *) . "./$cache_file";;
1956 esac
1957 fi
1958 else
1959 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1960 $as_echo "$as_me: creating cache $cache_file" >&6;}
1961 >$cache_file
1962 fi
1963
1964 # Check that the precious variables saved in the cache have kept the same
1965 # value.
1966 ac_cache_corrupted=false
1967 for ac_var in $ac_precious_vars; do
1968 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1969 eval ac_new_set=\$ac_env_${ac_var}_set
1970 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1971 eval ac_new_val=\$ac_env_${ac_var}_value
1972 case $ac_old_set,$ac_new_set in
1973 set,)
1974 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1975 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous ru n" >&2;}
1976 ac_cache_corrupted=: ;;
1977 ,set)
1978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1979 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1980 ac_cache_corrupted=: ;;
1981 ,);;
1982 *)
1983 if test "x$ac_old_val" != "x$ac_new_val"; then
1984 # differences in whitespace do not lead to failure.
1985 ac_old_val_w=`echo x $ac_old_val`
1986 ac_new_val_w=`echo x $ac_new_val`
1987 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1988 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the pr evious run:" >&5
1989 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1990 ac_cache_corrupted=:
1991 else
1992 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \` $ac_var' since the previous run:" >&5
1993 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the p revious run:" >&2;}
1994 eval $ac_var=\$ac_old_val
1995 fi
1996 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1997 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1998 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1999 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2000 fi;;
2001 esac
2002 # Pass precious variables to config.status.
2003 if test "$ac_new_set" = set; then
2004 case $ac_new_val in
2005 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2006 *) ac_arg=$ac_var=$ac_new_val ;;
2007 esac
2008 case " $ac_configure_args " in
2009 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2010 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2011 esac
2012 fi
2013 done
2014 if $ac_cache_corrupted; then
2015 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise t he build" >&5
2016 $as_echo "$as_me: error: changes in the environment can compromise the build" >& 2;}
2017 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_ file' and start over" >&5
2018 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and star t over" >&2;}
2019 { (exit 1); exit 1; }; }
2020 fi
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046 ac_ext=c
2047 ac_cpp='$CPP $CPPFLAGS'
2048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
2050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051
2052
2053
2054 sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
2055 if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
2056 { { $as_echo "$as_me:$LINENO: error: configure script is out of date:
2057 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2058 top level VERSION file = $sqlite_version_sanity_check
2059 please regen with autoconf" >&5
2060 $as_echo "$as_me: error: configure script is out of date:
2061 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2062 top level VERSION file = $sqlite_version_sanity_check
2063 please regen with autoconf" >&2;}
2064 { (exit 1); exit 1; }; }
2065 fi
2066
2067 # The following RCS revision string applies to configure.in
2068 # $Revision: 1.56 $
2069
2070 #########
2071 # Programs needed
2072 #
2073 case `pwd` in
2074 *\ * | *\ *)
2075 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitesp ace in \`pwd\`" >&5
2076 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\` " >&2;} ;;
2077 esac
2078
2079
2080
2081 macro_version='2.2.6'
2082 macro_revision='1.3012'
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096 ltmain="$ac_aux_dir/ltmain.sh"
2097
2098 ac_aux_dir=
2099 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2100 if test -f "$ac_dir/install-sh"; then
2101 ac_aux_dir=$ac_dir
2102 ac_install_sh="$ac_aux_dir/install-sh -c"
2103 break
2104 elif test -f "$ac_dir/install.sh"; then
2105 ac_aux_dir=$ac_dir
2106 ac_install_sh="$ac_aux_dir/install.sh -c"
2107 break
2108 elif test -f "$ac_dir/shtool"; then
2109 ac_aux_dir=$ac_dir
2110 ac_install_sh="$ac_aux_dir/shtool install -c"
2111 break
2112 fi
2113 done
2114 if test -z "$ac_aux_dir"; then
2115 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \ "$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2116 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$ srcdir/..\" \"$srcdir/../..\"" >&2;}
2117 { (exit 1); exit 1; }; }
2118 fi
2119
2120 # These three variables are undocumented and unsupported,
2121 # and are intended to be withdrawn in a future Autoconf release.
2122 # They can cause serious problems if a builder's source tree is in a directory
2123 # whose full name contains unusual characters.
2124 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2125 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2126 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2127
2128
2129 # Make sure we can run config.sub.
2130 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2131 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2132 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2133 { (exit 1); exit 1; }; }
2134
2135 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2136 $as_echo_n "checking build system type... " >&6; }
2137 if test "${ac_cv_build+set}" = set; then
2138 $as_echo_n "(cached) " >&6
2139 else
2140 ac_build_alias=$build_alias
2141 test "x$ac_build_alias" = x &&
2142 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2143 test "x$ac_build_alias" = x &&
2144 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2145 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2146 { (exit 1); exit 1; }; }
2147 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2148 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_a lias failed" >&5
2149 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" > &2;}
2150 { (exit 1); exit 1; }; }
2151
2152 fi
2153 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2154 $as_echo "$ac_cv_build" >&6; }
2155 case $ac_cv_build in
2156 *-*-*) ;;
2157 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2158 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2159 { (exit 1); exit 1; }; };;
2160 esac
2161 build=$ac_cv_build
2162 ac_save_IFS=$IFS; IFS='-'
2163 set x $ac_cv_build
2164 shift
2165 build_cpu=$1
2166 build_vendor=$2
2167 shift; shift
2168 # Remember, the first character of IFS is used to create $*,
2169 # except with old shells:
2170 build_os=$*
2171 IFS=$ac_save_IFS
2172 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2173
2174
2175 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2176 $as_echo_n "checking host system type... " >&6; }
2177 if test "${ac_cv_host+set}" = set; then
2178 $as_echo_n "(cached) " >&6
2179 else
2180 if test "x$host_alias" = x; then
2181 ac_cv_host=$ac_cv_build
2182 else
2183 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2184 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_ali as failed" >&5
2185 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2186 { (exit 1); exit 1; }; }
2187 fi
2188
2189 fi
2190 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2191 $as_echo "$ac_cv_host" >&6; }
2192 case $ac_cv_host in
2193 *-*-*) ;;
2194 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2195 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2196 { (exit 1); exit 1; }; };;
2197 esac
2198 host=$ac_cv_host
2199 ac_save_IFS=$IFS; IFS='-'
2200 set x $ac_cv_host
2201 shift
2202 host_cpu=$1
2203 host_vendor=$2
2204 shift; shift
2205 # Remember, the first character of IFS is used to create $*,
2206 # except with old shells:
2207 host_os=$*
2208 IFS=$ac_save_IFS
2209 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2210
2211
2212 ac_ext=c
2213 ac_cpp='$CPP $CPPFLAGS'
2214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
2216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2217 if test -n "$ac_tool_prefix"; then
2218 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam e with args.
2219 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 $as_echo_n "checking for $ac_word... " >&6; }
2222 if test "${ac_cv_prog_CC+set}" = set; then
2223 $as_echo_n "(cached) " >&6
2224 else
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2227 else
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2230 do
2231 IFS=$as_save_IFS
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2235 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2236 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2237 break 2
2238 fi
2239 done
2240 done
2241 IFS=$as_save_IFS
2242
2243 fi
2244 fi
2245 CC=$ac_cv_prog_CC
2246 if test -n "$CC"; then
2247 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2248 $as_echo "$CC" >&6; }
2249 else
2250 { $as_echo "$as_me:$LINENO: result: no" >&5
2251 $as_echo "no" >&6; }
2252 fi
2253
2254
2255 fi
2256 if test -z "$ac_cv_prog_CC"; then
2257 ac_ct_CC=$CC
2258 # Extract the first word of "gcc", so it can be a program name with args.
2259 set dummy gcc; ac_word=$2
2260 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 $as_echo_n "checking for $ac_word... " >&6; }
2262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2263 $as_echo_n "(cached) " >&6
2264 else
2265 if test -n "$ac_ct_CC"; then
2266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2267 else
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269 for as_dir in $PATH
2270 do
2271 IFS=$as_save_IFS
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2275 ac_cv_prog_ac_ct_CC="gcc"
2276 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 break 2
2278 fi
2279 done
2280 done
2281 IFS=$as_save_IFS
2282
2283 fi
2284 fi
2285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286 if test -n "$ac_ct_CC"; then
2287 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288 $as_echo "$ac_ct_CC" >&6; }
2289 else
2290 { $as_echo "$as_me:$LINENO: result: no" >&5
2291 $as_echo "no" >&6; }
2292 fi
2293
2294 if test "x$ac_ct_CC" = x; then
2295 CC=""
2296 else
2297 case $cross_compiling:$ac_tool_warned in
2298 yes:)
2299 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
2300 whose name does not start with the host triplet. If you think this
2301 configuration is useful to you, please write to autoconf@gnu.org." >&5
2302 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2303 whose name does not start with the host triplet. If you think this
2304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2305 ac_tool_warned=yes ;;
2306 esac
2307 CC=$ac_ct_CC
2308 fi
2309 else
2310 CC="$ac_cv_prog_CC"
2311 fi
2312
2313 if test -z "$CC"; then
2314 if test -n "$ac_tool_prefix"; then
2315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program na me with args.
2316 set dummy ${ac_tool_prefix}cc; ac_word=$2
2317 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2318 $as_echo_n "checking for $ac_word... " >&6; }
2319 if test "${ac_cv_prog_CC+set}" = set; then
2320 $as_echo_n "(cached) " >&6
2321 else
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC="$CC" # Let the user override the test.
2324 else
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2326 for as_dir in $PATH
2327 do
2328 IFS=$as_save_IFS
2329 test -z "$as_dir" && as_dir=.
2330 for ac_exec_ext in '' $ac_executable_extensions; do
2331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2332 ac_cv_prog_CC="${ac_tool_prefix}cc"
2333 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 break 2
2335 fi
2336 done
2337 done
2338 IFS=$as_save_IFS
2339
2340 fi
2341 fi
2342 CC=$ac_cv_prog_CC
2343 if test -n "$CC"; then
2344 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2345 $as_echo "$CC" >&6; }
2346 else
2347 { $as_echo "$as_me:$LINENO: result: no" >&5
2348 $as_echo "no" >&6; }
2349 fi
2350
2351
2352 fi
2353 fi
2354 if test -z "$CC"; then
2355 # Extract the first word of "cc", so it can be a program name with args.
2356 set dummy cc; ac_word=$2
2357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2358 $as_echo_n "checking for $ac_word... " >&6; }
2359 if test "${ac_cv_prog_CC+set}" = set; then
2360 $as_echo_n "(cached) " >&6
2361 else
2362 if test -n "$CC"; then
2363 ac_cv_prog_CC="$CC" # Let the user override the test.
2364 else
2365 ac_prog_rejected=no
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 for as_dir in $PATH
2368 do
2369 IFS=$as_save_IFS
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2373 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2374 ac_prog_rejected=yes
2375 continue
2376 fi
2377 ac_cv_prog_CC="cc"
2378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 break 2
2380 fi
2381 done
2382 done
2383 IFS=$as_save_IFS
2384
2385 if test $ac_prog_rejected = yes; then
2386 # We found a bogon in the path, so make sure we never use it.
2387 set dummy $ac_cv_prog_CC
2388 shift
2389 if test $# != 0; then
2390 # We chose a different compiler from the bogus one.
2391 # However, it has the same basename, so the bogon will be chosen
2392 # first if we set CC to just the basename; use the full file name.
2393 shift
2394 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2395 fi
2396 fi
2397 fi
2398 fi
2399 CC=$ac_cv_prog_CC
2400 if test -n "$CC"; then
2401 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2402 $as_echo "$CC" >&6; }
2403 else
2404 { $as_echo "$as_me:$LINENO: result: no" >&5
2405 $as_echo "no" >&6; }
2406 fi
2407
2408
2409 fi
2410 if test -z "$CC"; then
2411 if test -n "$ac_tool_prefix"; then
2412 for ac_prog in cl.exe
2413 do
2414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
2415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2416 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2417 $as_echo_n "checking for $ac_word... " >&6; }
2418 if test "${ac_cv_prog_CC+set}" = set; then
2419 $as_echo_n "(cached) " >&6
2420 else
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2426 do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2432 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 break 2
2434 fi
2435 done
2436 done
2437 IFS=$as_save_IFS
2438
2439 fi
2440 fi
2441 CC=$ac_cv_prog_CC
2442 if test -n "$CC"; then
2443 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2444 $as_echo "$CC" >&6; }
2445 else
2446 { $as_echo "$as_me:$LINENO: result: no" >&5
2447 $as_echo "no" >&6; }
2448 fi
2449
2450
2451 test -n "$CC" && break
2452 done
2453 fi
2454 if test -z "$CC"; then
2455 ac_ct_CC=$CC
2456 for ac_prog in cl.exe
2457 do
2458 # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 set dummy $ac_prog; ac_word=$2
2460 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 $as_echo_n "checking for $ac_word... " >&6; }
2462 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2463 $as_echo_n "(cached) " >&6
2464 else
2465 if test -n "$ac_ct_CC"; then
2466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2467 else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 for as_dir in $PATH
2470 do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2475 ac_cv_prog_ac_ct_CC="$ac_prog"
2476 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 break 2
2478 fi
2479 done
2480 done
2481 IFS=$as_save_IFS
2482
2483 fi
2484 fi
2485 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2486 if test -n "$ac_ct_CC"; then
2487 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2488 $as_echo "$ac_ct_CC" >&6; }
2489 else
2490 { $as_echo "$as_me:$LINENO: result: no" >&5
2491 $as_echo "no" >&6; }
2492 fi
2493
2494
2495 test -n "$ac_ct_CC" && break
2496 done
2497
2498 if test "x$ac_ct_CC" = x; then
2499 CC=""
2500 else
2501 case $cross_compiling:$ac_tool_warned in
2502 yes:)
2503 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
2504 whose name does not start with the host triplet. If you think this
2505 configuration is useful to you, please write to autoconf@gnu.org." >&5
2506 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2507 whose name does not start with the host triplet. If you think this
2508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2509 ac_tool_warned=yes ;;
2510 esac
2511 CC=$ac_ct_CC
2512 fi
2513 fi
2514
2515 fi
2516
2517
2518 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler f ound in \$PATH
2519 See \`config.log' for more details." >&5
2520 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2521 See \`config.log' for more details." >&2;}
2522 { (exit 1); exit 1; }; }
2523
2524 # Provide some information about the compiler.
2525 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2526 set X $ac_compile
2527 ac_compiler=$2
2528 { (ac_try="$ac_compiler --version >&5"
2529 case "(($ac_try" in
2530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531 *) ac_try_echo=$ac_try;;
2532 esac
2533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2534 $as_echo "$ac_try_echo") >&5
2535 (eval "$ac_compiler --version >&5") 2>&5
2536 ac_status=$?
2537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }
2539 { (ac_try="$ac_compiler -v >&5"
2540 case "(($ac_try" in
2541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2542 *) ac_try_echo=$ac_try;;
2543 esac
2544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2545 $as_echo "$ac_try_echo") >&5
2546 (eval "$ac_compiler -v >&5") 2>&5
2547 ac_status=$?
2548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }
2550 { (ac_try="$ac_compiler -V >&5"
2551 case "(($ac_try" in
2552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2553 *) ac_try_echo=$ac_try;;
2554 esac
2555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2556 $as_echo "$ac_try_echo") >&5
2557 (eval "$ac_compiler -V >&5") 2>&5
2558 ac_status=$?
2559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }
2561
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h. */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2568
2569 int
2570 main ()
2571 {
2572
2573 ;
2574 return 0;
2575 }
2576 _ACEOF
2577 ac_clean_files_save=$ac_clean_files
2578 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2579 # Try to create an executable without -o first, disregard a.out.
2580 # It will help us diagnose broken compilers, and finding out an intuition
2581 # of exeext.
2582 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >& 5
2583 $as_echo_n "checking for C compiler default output file name... " >&6; }
2584 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2585
2586 # The possible output files:
2587 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2588
2589 ac_rmfiles=
2590 for ac_file in $ac_files
2591 do
2592 case $ac_file in
2593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2594 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2595 esac
2596 done
2597 rm -f $ac_rmfiles
2598
2599 if { (ac_try="$ac_link_default"
2600 case "(($ac_try" in
2601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2603 esac
2604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2605 $as_echo "$ac_try_echo") >&5
2606 (eval "$ac_link_default") 2>&5
2607 ac_status=$?
2608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; then
2610 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2611 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2612 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2613 # so that the user can short-circuit this test for compilers unknown to
2614 # Autoconf.
2615 for ac_file in $ac_files ''
2616 do
2617 test -f "$ac_file" || continue
2618 case $ac_file in
2619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2620 ;;
2621 [ab].out )
2622 # We found the default executable, but exeext='' is most
2623 # certainly right.
2624 break;;
2625 *.* )
2626 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2627 then :; else
2628 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2629 fi
2630 # We set ac_cv_exeext here because the later test for it is not
2631 # safe: cross compilers may not add the suffix if given an `-o'
2632 # argument, so we may need to know it at that point already.
2633 # Even if this section looks crufty: it has the advantage of
2634 # actually working.
2635 break;;
2636 * )
2637 break;;
2638 esac
2639 done
2640 test "$ac_cv_exeext" = no && ac_cv_exeext=
2641
2642 else
2643 ac_file=''
2644 fi
2645
2646 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2647 $as_echo "$ac_file" >&6; }
2648 if test -z "$ac_file"; then
2649 $as_echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2653 See \`config.log' for more details." >&5
2654 $as_echo "$as_me: error: C compiler cannot create executables
2655 See \`config.log' for more details." >&2;}
2656 { (exit 77); exit 77; }; }
2657 fi
2658
2659 ac_exeext=$ac_cv_exeext
2660
2661 # Check that the compiler produces executables we can run. If not, either
2662 # the compiler is broken, or we cross compile.
2663 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2664 $as_echo_n "checking whether the C compiler works... " >&6; }
2665 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2666 # If not cross compiling, check that we can run a simple program.
2667 if test "$cross_compiling" != yes; then
2668 if { ac_try='./$ac_file'
2669 { (case "(($ac_try" in
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2672 esac
2673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2674 $as_echo "$ac_try_echo") >&5
2675 (eval "$ac_try") 2>&5
2676 ac_status=$?
2677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2679 cross_compiling=no
2680 else
2681 if test "$cross_compiling" = maybe; then
2682 cross_compiling=yes
2683 else
2684 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2685 If you meant to cross compile, use \`--host'.
2686 See \`config.log' for more details." >&5
2687 $as_echo "$as_me: error: cannot run C compiled programs.
2688 If you meant to cross compile, use \`--host'.
2689 See \`config.log' for more details." >&2;}
2690 { (exit 1); exit 1; }; }
2691 fi
2692 fi
2693 fi
2694 { $as_echo "$as_me:$LINENO: result: yes" >&5
2695 $as_echo "yes" >&6; }
2696
2697 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2698 ac_clean_files=$ac_clean_files_save
2699 # Check that the compiler produces executables we can run. If not, either
2700 # the compiler is broken, or we cross compile.
2701 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2702 $as_echo_n "checking whether we are cross compiling... " >&6; }
2703 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2704 $as_echo "$cross_compiling" >&6; }
2705
2706 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2707 $as_echo_n "checking for suffix of executables... " >&6; }
2708 if { (ac_try="$ac_link"
2709 case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712 esac
2713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2714 $as_echo "$ac_try_echo") >&5
2715 (eval "$ac_link") 2>&5
2716 ac_status=$?
2717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; then
2719 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2720 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2721 # work properly (i.e., refer to `conftest.exe'), while it won't with
2722 # `rm'.
2723 for ac_file in conftest.exe conftest conftest.*; do
2724 test -f "$ac_file" || continue
2725 case $ac_file in
2726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2727 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2728 break;;
2729 * ) break;;
2730 esac
2731 done
2732 else
2733 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: can not compile and link
2734 See \`config.log' for more details." >&5
2735 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile an d link
2736 See \`config.log' for more details." >&2;}
2737 { (exit 1); exit 1; }; }
2738 fi
2739
2740 rm -f conftest$ac_cv_exeext
2741 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2742 $as_echo "$ac_cv_exeext" >&6; }
2743
2744 rm -f conftest.$ac_ext
2745 EXEEXT=$ac_cv_exeext
2746 ac_exeext=$EXEEXT
2747 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2748 $as_echo_n "checking for suffix of object files... " >&6; }
2749 if test "${ac_cv_objext+set}" = set; then
2750 $as_echo_n "(cached) " >&6
2751 else
2752 cat >conftest.$ac_ext <<_ACEOF
2753 /* confdefs.h. */
2754 _ACEOF
2755 cat confdefs.h >>conftest.$ac_ext
2756 cat >>conftest.$ac_ext <<_ACEOF
2757 /* end confdefs.h. */
2758
2759 int
2760 main ()
2761 {
2762
2763 ;
2764 return 0;
2765 }
2766 _ACEOF
2767 rm -f conftest.o conftest.obj
2768 if { (ac_try="$ac_compile"
2769 case "(($ac_try" in
2770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2771 *) ac_try_echo=$ac_try;;
2772 esac
2773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2774 $as_echo "$ac_try_echo") >&5
2775 (eval "$ac_compile") 2>&5
2776 ac_status=$?
2777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; then
2779 for ac_file in conftest.o conftest.obj conftest.*; do
2780 test -f "$ac_file" || continue;
2781 case $ac_file in
2782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2783 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2784 break;;
2785 esac
2786 done
2787 else
2788 $as_echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2790
2791 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cann ot compile
2792 See \`config.log' for more details." >&5
2793 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2794 See \`config.log' for more details." >&2;}
2795 { (exit 1); exit 1; }; }
2796 fi
2797
2798 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2799 fi
2800 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2801 $as_echo "$ac_cv_objext" >&6; }
2802 OBJEXT=$ac_cv_objext
2803 ac_objext=$OBJEXT
2804 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >& 5
2805 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2806 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2807 $as_echo_n "(cached) " >&6
2808 else
2809 cat >conftest.$ac_ext <<_ACEOF
2810 /* confdefs.h. */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2815
2816 int
2817 main ()
2818 {
2819 #ifndef __GNUC__
2820 choke me
2821 #endif
2822
2823 ;
2824 return 0;
2825 }
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (ac_try="$ac_compile"
2829 case "(($ac_try" in
2830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831 *) ac_try_echo=$ac_try;;
2832 esac
2833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2834 $as_echo "$ac_try_echo") >&5
2835 (eval "$ac_compile") 2>conftest.er1
2836 ac_status=$?
2837 grep -v '^ *+' conftest.er1 >conftest.err
2838 rm -f conftest.er1
2839 cat conftest.err >&5
2840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); } && {
2842 test -z "$ac_c_werror_flag" ||
2843 test ! -s conftest.err
2844 } && test -s conftest.$ac_objext; then
2845 ac_compiler_gnu=yes
2846 else
2847 $as_echo "$as_me: failed program was:" >&5
2848 sed 's/^/| /' conftest.$ac_ext >&5
2849
2850 ac_compiler_gnu=no
2851 fi
2852
2853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2854 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2855
2856 fi
2857 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2858 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2859 if test $ac_compiler_gnu = yes; then
2860 GCC=yes
2861 else
2862 GCC=
2863 fi
2864 ac_test_CFLAGS=${CFLAGS+set}
2865 ac_save_CFLAGS=$CFLAGS
2866 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2867 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2868 if test "${ac_cv_prog_cc_g+set}" = set; then
2869 $as_echo_n "(cached) " >&6
2870 else
2871 ac_save_c_werror_flag=$ac_c_werror_flag
2872 ac_c_werror_flag=yes
2873 ac_cv_prog_cc_g=no
2874 CFLAGS="-g"
2875 cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h. */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h. */
2881
2882 int
2883 main ()
2884 {
2885
2886 ;
2887 return 0;
2888 }
2889 _ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (ac_try="$ac_compile"
2892 case "(($ac_try" in
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2895 esac
2896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2897 $as_echo "$ac_try_echo") >&5
2898 (eval "$ac_compile") 2>conftest.er1
2899 ac_status=$?
2900 grep -v '^ *+' conftest.er1 >conftest.err
2901 rm -f conftest.er1
2902 cat conftest.err >&5
2903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904 (exit $ac_status); } && {
2905 test -z "$ac_c_werror_flag" ||
2906 test ! -s conftest.err
2907 } && test -s conftest.$ac_objext; then
2908 ac_cv_prog_cc_g=yes
2909 else
2910 $as_echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2912
2913 CFLAGS=""
2914 cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h. */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2920
2921 int
2922 main ()
2923 {
2924
2925 ;
2926 return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (ac_try="$ac_compile"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2936 $as_echo "$ac_try_echo") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
2942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } && {
2944 test -z "$ac_c_werror_flag" ||
2945 test ! -s conftest.err
2946 } && test -s conftest.$ac_objext; then
2947 :
2948 else
2949 $as_echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2951
2952 ac_c_werror_flag=$ac_save_c_werror_flag
2953 CFLAGS="-g"
2954 cat >conftest.$ac_ext <<_ACEOF
2955 /* confdefs.h. */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h. */
2960
2961 int
2962 main ()
2963 {
2964
2965 ;
2966 return 0;
2967 }
2968 _ACEOF
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2971 case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974 esac
2975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2976 $as_echo "$ac_try_echo") >&5
2977 (eval "$ac_compile") 2>conftest.er1
2978 ac_status=$?
2979 grep -v '^ *+' conftest.er1 >conftest.err
2980 rm -f conftest.er1
2981 cat conftest.err >&5
2982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } && {
2984 test -z "$ac_c_werror_flag" ||
2985 test ! -s conftest.err
2986 } && test -s conftest.$ac_objext; then
2987 ac_cv_prog_cc_g=yes
2988 else
2989 $as_echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992
2993 fi
2994
2995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2996 fi
2997
2998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999 fi
3000
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 ac_c_werror_flag=$ac_save_c_werror_flag
3003 fi
3004 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3005 $as_echo "$ac_cv_prog_cc_g" >&6; }
3006 if test "$ac_test_CFLAGS" = set; then
3007 CFLAGS=$ac_save_CFLAGS
3008 elif test $ac_cv_prog_cc_g = yes; then
3009 if test "$GCC" = yes; then
3010 CFLAGS="-g -O2"
3011 else
3012 CFLAGS="-g"
3013 fi
3014 else
3015 if test "$GCC" = yes; then
3016 CFLAGS="-O2"
3017 else
3018 CFLAGS=
3019 fi
3020 fi
3021 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3022 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3023 if test "${ac_cv_prog_cc_c89+set}" = set; then
3024 $as_echo_n "(cached) " >&6
3025 else
3026 ac_cv_prog_cc_c89=no
3027 ac_save_CC=$CC
3028 cat >conftest.$ac_ext <<_ACEOF
3029 /* confdefs.h. */
3030 _ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3034 #include <stdarg.h>
3035 #include <stdio.h>
3036 #include <sys/types.h>
3037 #include <sys/stat.h>
3038 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3039 struct buf { int x; };
3040 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3041 static char *e (p, i)
3042 char **p;
3043 int i;
3044 {
3045 return p[i];
3046 }
3047 static char *f (char * (*g) (char **, int), char **p, ...)
3048 {
3049 char *s;
3050 va_list v;
3051 va_start (v,p);
3052 s = g (p, va_arg (v,int));
3053 va_end (v);
3054 return s;
3055 }
3056
3057 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3058 function prototypes and stuff, but not '\xHH' hex character constants.
3059 These don't provoke an error unfortunately, instead are silently treated
3060 as 'x'. The following induces an error, until -std is added to get
3061 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3062 array size at least. It's necessary to write '\x00'==0 to get something
3063 that's true only with -std. */
3064 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3065
3066 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3067 inside strings and character constants. */
3068 #define FOO(x) 'x'
3069 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3070
3071 int test (int i, double x);
3072 struct s1 {int (*f) (int a);};
3073 struct s2 {int (*f) (double a);};
3074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i nt);
3075 int argc;
3076 char **argv;
3077 int
3078 main ()
3079 {
3080 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3081 ;
3082 return 0;
3083 }
3084 _ACEOF
3085 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3086 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3087 do
3088 CC="$ac_save_CC $ac_arg"
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
3091 case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3096 $as_echo "$ac_try_echo") >&5
3097 (eval "$ac_compile") 2>conftest.er1
3098 ac_status=$?
3099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
3102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); } && {
3104 test -z "$ac_c_werror_flag" ||
3105 test ! -s conftest.err
3106 } && test -s conftest.$ac_objext; then
3107 ac_cv_prog_cc_c89=$ac_arg
3108 else
3109 $as_echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3111
3112
3113 fi
3114
3115 rm -f core conftest.err conftest.$ac_objext
3116 test "x$ac_cv_prog_cc_c89" != "xno" && break
3117 done
3118 rm -f conftest.$ac_ext
3119 CC=$ac_save_CC
3120
3121 fi
3122 # AC_CACHE_VAL
3123 case "x$ac_cv_prog_cc_c89" in
3124 x)
3125 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3126 $as_echo "none needed" >&6; } ;;
3127 xno)
3128 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3129 $as_echo "unsupported" >&6; } ;;
3130 *)
3131 CC="$CC $ac_cv_prog_cc_c89"
3132 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3133 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3134 esac
3135
3136
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >& 5
3144 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3145 if test "${ac_cv_path_SED+set}" = set; then
3146 $as_echo_n "(cached) " >&6
3147 else
3148 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbb bbbbbbbbbbbbb/
3149 for ac_i in 1 2 3 4 5 6 7; do
3150 ac_script="$ac_script$as_nl$ac_script"
3151 done
3152 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3153 $as_unset ac_script || ac_script=
3154 if test -z "$SED"; then
3155 ac_path_SED_found=false
3156 # Loop through the user's path and test for each of PROGNAME-LIST
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3159 do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
3162 for ac_prog in sed gsed; do
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3165 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3166 # Check for GNU ac_path_SED and select it if it is found.
3167 # Check for GNU $ac_path_SED
3168 case `"$ac_path_SED" --version 2>&1` in
3169 *GNU*)
3170 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3171 *)
3172 ac_count=0
3173 $as_echo_n 0123456789 >"conftest.in"
3174 while :
3175 do
3176 cat "conftest.in" "conftest.in" >"conftest.tmp"
3177 mv "conftest.tmp" "conftest.in"
3178 cp "conftest.in" "conftest.nl"
3179 $as_echo '' >> "conftest.nl"
3180 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null | | break
3181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3182 ac_count=`expr $ac_count + 1`
3183 if test $ac_count -gt ${ac_path_SED_max-0}; then
3184 # Best one so far, save it but keep looking for a better one
3185 ac_cv_path_SED="$ac_path_SED"
3186 ac_path_SED_max=$ac_count
3187 fi
3188 # 10*(2^10) chars as input seems more than enough
3189 test $ac_count -gt 10 && break
3190 done
3191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3192 esac
3193
3194 $ac_path_SED_found && break 3
3195 done
3196 done
3197 done
3198 IFS=$as_save_IFS
3199 if test -z "$ac_cv_path_SED"; then
3200 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$P ATH" >&5
3201 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3202 { (exit 1); exit 1; }; }
3203 fi
3204 else
3205 ac_cv_path_SED=$SED
3206 fi
3207
3208 fi
3209 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3210 $as_echo "$ac_cv_path_SED" >&6; }
3211 SED="$ac_cv_path_SED"
3212 rm -f conftest.sed
3213
3214 test -z "$SED" && SED=sed
3215 Xsed="$SED -e 1s/^X//"
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >& 5
3228 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3229 if test "${ac_cv_path_GREP+set}" = set; then
3230 $as_echo_n "(cached) " >&6
3231 else
3232 if test -z "$GREP"; then
3233 ac_path_GREP_found=false
3234 # Loop through the user's path and test for each of PROGNAME-LIST
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3237 do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_prog in grep ggrep; do
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3243 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3244 # Check for GNU ac_path_GREP and select it if it is found.
3245 # Check for GNU $ac_path_GREP
3246 case `"$ac_path_GREP" --version 2>&1` in
3247 *GNU*)
3248 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3249 *)
3250 ac_count=0
3251 $as_echo_n 0123456789 >"conftest.in"
3252 while :
3253 do
3254 cat "conftest.in" "conftest.in" >"conftest.tmp"
3255 mv "conftest.tmp" "conftest.in"
3256 cp "conftest.in" "conftest.nl"
3257 $as_echo 'GREP' >> "conftest.nl"
3258 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest. out" 2>/dev/null || break
3259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3260 ac_count=`expr $ac_count + 1`
3261 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3262 # Best one so far, save it but keep looking for a better one
3263 ac_cv_path_GREP="$ac_path_GREP"
3264 ac_path_GREP_max=$ac_count
3265 fi
3266 # 10*(2^10) chars as input seems more than enough
3267 test $ac_count -gt 10 && break
3268 done
3269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3270 esac
3271
3272 $ac_path_GREP_found && break 3
3273 done
3274 done
3275 done
3276 IFS=$as_save_IFS
3277 if test -z "$ac_cv_path_GREP"; then
3278 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $P ATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3279 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARAT OR/usr/xpg4/bin" >&2;}
3280 { (exit 1); exit 1; }; }
3281 fi
3282 else
3283 ac_cv_path_GREP=$GREP
3284 fi
3285
3286 fi
3287 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3288 $as_echo "$ac_cv_path_GREP" >&6; }
3289 GREP="$ac_cv_path_GREP"
3290
3291
3292 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3293 $as_echo_n "checking for egrep... " >&6; }
3294 if test "${ac_cv_path_EGREP+set}" = set; then
3295 $as_echo_n "(cached) " >&6
3296 else
3297 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3298 then ac_cv_path_EGREP="$GREP -E"
3299 else
3300 if test -z "$EGREP"; then
3301 ac_path_EGREP_found=false
3302 # Loop through the user's path and test for each of PROGNAME-LIST
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3305 do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_prog in egrep; do
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3311 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3312 # Check for GNU ac_path_EGREP and select it if it is found.
3313 # Check for GNU $ac_path_EGREP
3314 case `"$ac_path_EGREP" --version 2>&1` in
3315 *GNU*)
3316 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3317 *)
3318 ac_count=0
3319 $as_echo_n 0123456789 >"conftest.in"
3320 while :
3321 do
3322 cat "conftest.in" "conftest.in" >"conftest.tmp"
3323 mv "conftest.tmp" "conftest.in"
3324 cp "conftest.in" "conftest.nl"
3325 $as_echo 'EGREP' >> "conftest.nl"
3326 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || bre ak
3327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3328 ac_count=`expr $ac_count + 1`
3329 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3330 # Best one so far, save it but keep looking for a better one
3331 ac_cv_path_EGREP="$ac_path_EGREP"
3332 ac_path_EGREP_max=$ac_count
3333 fi
3334 # 10*(2^10) chars as input seems more than enough
3335 test $ac_count -gt 10 && break
3336 done
3337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3338 esac
3339
3340 $ac_path_EGREP_found && break 3
3341 done
3342 done
3343 done
3344 IFS=$as_save_IFS
3345 if test -z "$ac_cv_path_EGREP"; then
3346 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $ PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3347 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARA TOR/usr/xpg4/bin" >&2;}
3348 { (exit 1); exit 1; }; }
3349 fi
3350 else
3351 ac_cv_path_EGREP=$EGREP
3352 fi
3353
3354 fi
3355 fi
3356 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3357 $as_echo "$ac_cv_path_EGREP" >&6; }
3358 EGREP="$ac_cv_path_EGREP"
3359
3360
3361 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
3362 $as_echo_n "checking for fgrep... " >&6; }
3363 if test "${ac_cv_path_FGREP+set}" = set; then
3364 $as_echo_n "(cached) " >&6
3365 else
3366 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3367 then ac_cv_path_FGREP="$GREP -F"
3368 else
3369 if test -z "$FGREP"; then
3370 ac_path_FGREP_found=false
3371 # Loop through the user's path and test for each of PROGNAME-LIST
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3374 do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_prog in fgrep; do
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3380 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3381 # Check for GNU ac_path_FGREP and select it if it is found.
3382 # Check for GNU $ac_path_FGREP
3383 case `"$ac_path_FGREP" --version 2>&1` in
3384 *GNU*)
3385 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3386 *)
3387 ac_count=0
3388 $as_echo_n 0123456789 >"conftest.in"
3389 while :
3390 do
3391 cat "conftest.in" "conftest.in" >"conftest.tmp"
3392 mv "conftest.tmp" "conftest.in"
3393 cp "conftest.in" "conftest.nl"
3394 $as_echo 'FGREP' >> "conftest.nl"
3395 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3397 ac_count=`expr $ac_count + 1`
3398 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3399 # Best one so far, save it but keep looking for a better one
3400 ac_cv_path_FGREP="$ac_path_FGREP"
3401 ac_path_FGREP_max=$ac_count
3402 fi
3403 # 10*(2^10) chars as input seems more than enough
3404 test $ac_count -gt 10 && break
3405 done
3406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3407 esac
3408
3409 $ac_path_FGREP_found && break 3
3410 done
3411 done
3412 done
3413 IFS=$as_save_IFS
3414 if test -z "$ac_cv_path_FGREP"; then
3415 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $ PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3416 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARA TOR/usr/xpg4/bin" >&2;}
3417 { (exit 1); exit 1; }; }
3418 fi
3419 else
3420 ac_cv_path_FGREP=$FGREP
3421 fi
3422
3423 fi
3424 fi
3425 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3426 $as_echo "$ac_cv_path_FGREP" >&6; }
3427 FGREP="$ac_cv_path_FGREP"
3428
3429
3430 test -z "$GREP" && GREP=grep
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450 # Check whether --with-gnu-ld was given.
3451 if test "${with_gnu_ld+set}" = set; then
3452 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3453 else
3454 with_gnu_ld=no
3455 fi
3456
3457 ac_prog=ld
3458 if test "$GCC" = yes; then
3459 # Check if gcc -print-prog-name=ld gives a path.
3460 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3461 $as_echo_n "checking for ld used by $CC... " >&6; }
3462 case $host in
3463 *-*-mingw*)
3464 # gcc leaves a trailing carriage return which upsets mingw
3465 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3466 *)
3467 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3468 esac
3469 case $ac_prog in
3470 # Accept absolute paths.
3471 [\\/]* | ?:[\\/]*)
3472 re_direlt='/[^/][^/]*/\.\./'
3473 # Canonicalize the pathname of ld
3474 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3475 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3476 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3477 done
3478 test -z "$LD" && LD="$ac_prog"
3479 ;;
3480 "")
3481 # If it fails, then pretend we aren't using GCC.
3482 ac_prog=ld
3483 ;;
3484 *)
3485 # If it is relative, then search for the first ld in PATH.
3486 with_gnu_ld=unknown
3487 ;;
3488 esac
3489 elif test "$with_gnu_ld" = yes; then
3490 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3491 $as_echo_n "checking for GNU ld... " >&6; }
3492 else
3493 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3494 $as_echo_n "checking for non-GNU ld... " >&6; }
3495 fi
3496 if test "${lt_cv_path_LD+set}" = set; then
3497 $as_echo_n "(cached) " >&6
3498 else
3499 if test -z "$LD"; then
3500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3501 for ac_dir in $PATH; do
3502 IFS="$lt_save_ifs"
3503 test -z "$ac_dir" && ac_dir=.
3504 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3505 lt_cv_path_LD="$ac_dir/$ac_prog"
3506 # Check to see if the program is GNU ld. I'd rather use --version,
3507 # but apparently some variants of GNU ld only accept -v.
3508 # Break only if it was the GNU/non-GNU ld that we prefer.
3509 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3510 *GNU* | *'with BFD'*)
3511 test "$with_gnu_ld" != no && break
3512 ;;
3513 *)
3514 test "$with_gnu_ld" != yes && break
3515 ;;
3516 esac
3517 fi
3518 done
3519 IFS="$lt_save_ifs"
3520 else
3521 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3522 fi
3523 fi
3524
3525 LD="$lt_cv_path_LD"
3526 if test -n "$LD"; then
3527 { $as_echo "$as_me:$LINENO: result: $LD" >&5
3528 $as_echo "$LD" >&6; }
3529 else
3530 { $as_echo "$as_me:$LINENO: result: no" >&5
3531 $as_echo "no" >&6; }
3532 fi
3533 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3534 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3535 { (exit 1); exit 1; }; }
3536 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3537 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3538 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3539 $as_echo_n "(cached) " >&6
3540 else
3541 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3542 case `$LD -v 2>&1 </dev/null` in
3543 *GNU* | *'with BFD'*)
3544 lt_cv_prog_gnu_ld=yes
3545 ;;
3546 *)
3547 lt_cv_prog_gnu_ld=no
3548 ;;
3549 esac
3550 fi
3551 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3552 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3553 with_gnu_ld=$lt_cv_prog_gnu_ld
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3564 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
3565 if test "${lt_cv_path_NM+set}" = set; then
3566 $as_echo_n "(cached) " >&6
3567 else
3568 if test -n "$NM"; then
3569 # Let the user override the test.
3570 lt_cv_path_NM="$NM"
3571 else
3572 lt_nm_to_check="${ac_tool_prefix}nm"
3573 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3574 lt_nm_to_check="$lt_nm_to_check nm"
3575 fi
3576 for lt_tmp_nm in $lt_nm_to_check; do
3577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3578 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3579 IFS="$lt_save_ifs"
3580 test -z "$ac_dir" && ac_dir=.
3581 tmp_nm="$ac_dir/$lt_tmp_nm"
3582 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3583 # Check to see if the nm accepts a BSD-compat flag.
3584 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3585 # nm: unknown option "B" ignored
3586 # Tru64's nm complains that /dev/null is an invalid object file
3587 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3588 */dev/null* | *'Invalid file or object type'*)
3589 lt_cv_path_NM="$tmp_nm -B"
3590 break
3591 ;;
3592 *)
3593 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3594 */dev/null*)
3595 lt_cv_path_NM="$tmp_nm -p"
3596 break
3597 ;;
3598 *)
3599 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3600 continue # so that we can try to find one that supports BSD flags
3601 ;;
3602 esac
3603 ;;
3604 esac
3605 fi
3606 done
3607 IFS="$lt_save_ifs"
3608 done
3609 : ${lt_cv_path_NM=no}
3610 fi
3611 fi
3612 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3613 $as_echo "$lt_cv_path_NM" >&6; }
3614 if test "$lt_cv_path_NM" != "no"; then
3615 NM="$lt_cv_path_NM"
3616 else
3617 # Didn't find any BSD compatible name lister, look for dumpbin.
3618 if test -n "$ac_tool_prefix"; then
3619 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3620 do
3621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
3622 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3623 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3624 $as_echo_n "checking for $ac_word... " >&6; }
3625 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3626 $as_echo_n "(cached) " >&6
3627 else
3628 if test -n "$DUMPBIN"; then
3629 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3630 else
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3633 do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
3638 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3639 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3641 fi
3642 done
3643 done
3644 IFS=$as_save_IFS
3645
3646 fi
3647 fi
3648 DUMPBIN=$ac_cv_prog_DUMPBIN
3649 if test -n "$DUMPBIN"; then
3650 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3651 $as_echo "$DUMPBIN" >&6; }
3652 else
3653 { $as_echo "$as_me:$LINENO: result: no" >&5
3654 $as_echo "no" >&6; }
3655 fi
3656
3657
3658 test -n "$DUMPBIN" && break
3659 done
3660 fi
3661 if test -z "$DUMPBIN"; then
3662 ac_ct_DUMPBIN=$DUMPBIN
3663 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3664 do
3665 # Extract the first word of "$ac_prog", so it can be a program name with args.
3666 set dummy $ac_prog; ac_word=$2
3667 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 $as_echo_n "checking for $ac_word... " >&6; }
3669 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3670 $as_echo_n "(cached) " >&6
3671 else
3672 if test -n "$ac_ct_DUMPBIN"; then
3673 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3674 else
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
3682 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3683 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3685 fi
3686 done
3687 done
3688 IFS=$as_save_IFS
3689
3690 fi
3691 fi
3692 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3693 if test -n "$ac_ct_DUMPBIN"; then
3694 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3695 $as_echo "$ac_ct_DUMPBIN" >&6; }
3696 else
3697 { $as_echo "$as_me:$LINENO: result: no" >&5
3698 $as_echo "no" >&6; }
3699 fi
3700
3701
3702 test -n "$ac_ct_DUMPBIN" && break
3703 done
3704
3705 if test "x$ac_ct_DUMPBIN" = x; then
3706 DUMPBIN=":"
3707 else
3708 case $cross_compiling:$ac_tool_warned in
3709 yes:)
3710 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
3711 whose name does not start with the host triplet. If you think this
3712 configuration is useful to you, please write to autoconf@gnu.org." >&5
3713 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3714 whose name does not start with the host triplet. If you think this
3715 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3716 ac_tool_warned=yes ;;
3717 esac
3718 DUMPBIN=$ac_ct_DUMPBIN
3719 fi
3720 fi
3721
3722
3723 if test "$DUMPBIN" != ":"; then
3724 NM="$DUMPBIN"
3725 fi
3726 fi
3727 test -z "$NM" && NM=nm
3728
3729
3730
3731
3732
3733
3734 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3735 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
3736 if test "${lt_cv_nm_interface+set}" = set; then
3737 $as_echo_n "(cached) " >&6
3738 else
3739 lt_cv_nm_interface="BSD nm"
3740 echo "int some_variable = 0;" > conftest.$ac_ext
3741 (eval echo "\"\$as_me:3741: $ac_compile\"" >&5)
3742 (eval "$ac_compile" 2>conftest.err)
3743 cat conftest.err >&5
3744 (eval echo "\"\$as_me:3744: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3745 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3746 cat conftest.err >&5
3747 (eval echo "\"\$as_me:3747: output\"" >&5)
3748 cat conftest.out >&5
3749 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3750 lt_cv_nm_interface="MS dumpbin"
3751 fi
3752 rm -f conftest*
3753 fi
3754 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3755 $as_echo "$lt_cv_nm_interface" >&6; }
3756
3757 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3758 $as_echo_n "checking whether ln -s works... " >&6; }
3759 LN_S=$as_ln_s
3760 if test "$LN_S" = "ln -s"; then
3761 { $as_echo "$as_me:$LINENO: result: yes" >&5
3762 $as_echo "yes" >&6; }
3763 else
3764 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3765 $as_echo "no, using $LN_S" >&6; }
3766 fi
3767
3768 # find the maximum length of command line arguments
3769 { $as_echo "$as_me:$LINENO: checking the maximum length of command line argument s" >&5
3770 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
3771 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3772 $as_echo_n "(cached) " >&6
3773 else
3774 i=0
3775 teststring="ABCD"
3776
3777 case $build_os in
3778 msdosdjgpp*)
3779 # On DJGPP, this test can blow up pretty badly due to problems in libc
3780 # (any single argument exceeding 2000 bytes causes a buffer overrun
3781 # during glob expansion). Even if it were fixed, the result of this
3782 # check would be larger than it should be.
3783 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3784 ;;
3785
3786 gnu*)
3787 # Under GNU Hurd, this test is not required because there is
3788 # no limit to the length of command line arguments.
3789 # Libtool will interpret -1 as no limit whatsoever
3790 lt_cv_sys_max_cmd_len=-1;
3791 ;;
3792
3793 cygwin* | mingw* | cegcc*)
3794 # On Win9x/ME, this test blows up -- it succeeds, but takes
3795 # about 5 minutes as the teststring grows exponentially.
3796 # Worse, since 9x/ME are not pre-emptively multitasking,
3797 # you end up with a "frozen" computer, even though with patience
3798 # the test eventually succeeds (with a max line length of 256k).
3799 # Instead, let's just punt: use the minimum linelength reported by
3800 # all of the supported platforms: 8192 (on NT/2K/XP).
3801 lt_cv_sys_max_cmd_len=8192;
3802 ;;
3803
3804 amigaos*)
3805 # On AmigaOS with pdksh, this test takes hours, literally.
3806 # So we just punt and use a minimum line length of 8192.
3807 lt_cv_sys_max_cmd_len=8192;
3808 ;;
3809
3810 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3811 # This has been around since 386BSD, at least. Likely further.
3812 if test -x /sbin/sysctl; then
3813 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3814 elif test -x /usr/sbin/sysctl; then
3815 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3816 else
3817 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3818 fi
3819 # And add a safety zone
3820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3822 ;;
3823
3824 interix*)
3825 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3826 lt_cv_sys_max_cmd_len=196608
3827 ;;
3828
3829 osf*)
3830 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3831 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3832 # nice to cause kernel panics so lets avoid the loop below.
3833 # First set a reasonable default.
3834 lt_cv_sys_max_cmd_len=16384
3835 #
3836 if test -x /sbin/sysconfig; then
3837 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3838 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3839 esac
3840 fi
3841 ;;
3842 sco3.2v5*)
3843 lt_cv_sys_max_cmd_len=102400
3844 ;;
3845 sysv5* | sco5v6* | sysv4.2uw2*)
3846 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3847 if test -n "$kargmax"; then
3848 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3849 else
3850 lt_cv_sys_max_cmd_len=32768
3851 fi
3852 ;;
3853 *)
3854 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3855 if test -n "$lt_cv_sys_max_cmd_len"; then
3856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3858 else
3859 # Make teststring a little bigger before we do anything with it.
3860 # a 1K string should be a reasonable start.
3861 for i in 1 2 3 4 5 6 7 8 ; do
3862 teststring=$teststring$teststring
3863 done
3864 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3865 # If test is not a shell built-in, we'll probably end up computing a
3866 # maximum length that is only half of the actual maximum length, but
3867 # we can't tell.
3868 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/de v/null` \
3869 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3870 test $i != 17 # 1/2 MB should be enough
3871 do
3872 i=`expr $i + 1`
3873 teststring=$teststring$teststring
3874 done
3875 # Only check the string length outside the loop.
3876 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3877 teststring=
3878 # Add a significant safety factor because C++ compilers can tack on
3879 # massive amounts of additional arguments before passing them to the
3880 # linker. It appears as though 1/2 is a usable value.
3881 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3882 fi
3883 ;;
3884 esac
3885
3886 fi
3887
3888 if test -n $lt_cv_sys_max_cmd_len ; then
3889 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3890 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
3891 else
3892 { $as_echo "$as_me:$LINENO: result: none" >&5
3893 $as_echo "none" >&6; }
3894 fi
3895 max_cmd_len=$lt_cv_sys_max_cmd_len
3896
3897
3898
3899
3900
3901
3902 : ${CP="cp -f"}
3903 : ${MV="mv -f"}
3904 : ${RM="rm -f"}
3905
3906 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI cons tructs" >&5
3907 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
3908 # Try some XSI features
3909 xsi_shell=no
3910 ( _lt_dummy="a/b/c"
3911 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3912 = c,a/b,, \
3913 && eval 'test $(( 1 + 1 )) -eq 2 \
3914 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3915 && xsi_shell=yes
3916 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
3917 $as_echo "$xsi_shell" >&6; }
3918
3919
3920 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
3921 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
3922 lt_shell_append=no
3923 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3924 >/dev/null 2>&1 \
3925 && lt_shell_append=yes
3926 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
3927 $as_echo "$lt_shell_append" >&6; }
3928
3929
3930 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3931 lt_unset=unset
3932 else
3933 lt_unset=false
3934 fi
3935
3936
3937
3938
3939
3940 # test EBCDIC or ASCII
3941 case `echo X|tr X '\101'` in
3942 A) # ASCII based system
3943 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3944 lt_SP2NL='tr \040 \012'
3945 lt_NL2SP='tr \015\012 \040\040'
3946 ;;
3947 *) # EBCDIC based system
3948 lt_SP2NL='tr \100 \n'
3949 lt_NL2SP='tr \r\n \100\100'
3950 ;;
3951 esac
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3962 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3963 if test "${lt_cv_ld_reload_flag+set}" = set; then
3964 $as_echo_n "(cached) " >&6
3965 else
3966 lt_cv_ld_reload_flag='-r'
3967 fi
3968 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3969 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3970 reload_flag=$lt_cv_ld_reload_flag
3971 case $reload_flag in
3972 "" | " "*) ;;
3973 *) reload_flag=" $reload_flag" ;;
3974 esac
3975 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3976 case $host_os in
3977 darwin*)
3978 if test "$GCC" = yes; then
3979 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3980 else
3981 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3982 fi
3983 ;;
3984 esac
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994 if test -n "$ac_tool_prefix"; then
3995 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3996 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4000 $as_echo_n "(cached) " >&6
4001 else
4002 if test -n "$OBJDUMP"; then
4003 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4012 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4013 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016 done
4017 done
4018 IFS=$as_save_IFS
4019
4020 fi
4021 fi
4022 OBJDUMP=$ac_cv_prog_OBJDUMP
4023 if test -n "$OBJDUMP"; then
4024 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4025 $as_echo "$OBJDUMP" >&6; }
4026 else
4027 { $as_echo "$as_me:$LINENO: result: no" >&5
4028 $as_echo "no" >&6; }
4029 fi
4030
4031
4032 fi
4033 if test -z "$ac_cv_prog_OBJDUMP"; then
4034 ac_ct_OBJDUMP=$OBJDUMP
4035 # Extract the first word of "objdump", so it can be a program name with args.
4036 set dummy objdump; ac_word=$2
4037 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4038 $as_echo_n "checking for $ac_word... " >&6; }
4039 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4040 $as_echo_n "(cached) " >&6
4041 else
4042 if test -n "$ac_ct_OBJDUMP"; then
4043 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4044 else
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH
4047 do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4052 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4055 fi
4056 done
4057 done
4058 IFS=$as_save_IFS
4059
4060 fi
4061 fi
4062 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4063 if test -n "$ac_ct_OBJDUMP"; then
4064 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4065 $as_echo "$ac_ct_OBJDUMP" >&6; }
4066 else
4067 { $as_echo "$as_me:$LINENO: result: no" >&5
4068 $as_echo "no" >&6; }
4069 fi
4070
4071 if test "x$ac_ct_OBJDUMP" = x; then
4072 OBJDUMP="false"
4073 else
4074 case $cross_compiling:$ac_tool_warned in
4075 yes:)
4076 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
4077 whose name does not start with the host triplet. If you think this
4078 configuration is useful to you, please write to autoconf@gnu.org." >&5
4079 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4080 whose name does not start with the host triplet. If you think this
4081 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4082 ac_tool_warned=yes ;;
4083 esac
4084 OBJDUMP=$ac_ct_OBJDUMP
4085 fi
4086 else
4087 OBJDUMP="$ac_cv_prog_OBJDUMP"
4088 fi
4089
4090 test -z "$OBJDUMP" && OBJDUMP=objdump
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4101 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4102 if test "${lt_cv_deplibs_check_method+set}" = set; then
4103 $as_echo_n "(cached) " >&6
4104 else
4105 lt_cv_file_magic_cmd='$MAGIC_CMD'
4106 lt_cv_file_magic_test_file=
4107 lt_cv_deplibs_check_method='unknown'
4108 # Need to set the preceding variable on all platforms that support
4109 # interlibrary dependencies.
4110 # 'none' -- dependencies not supported.
4111 # `unknown' -- same as none, but documents that we really don't know.
4112 # 'pass_all' -- all dependencies passed with no checks.
4113 # 'test_compile' -- check by making test program.
4114 # 'file_magic [[regex]]' -- check by looking for files in library path
4115 # which responds to the $file_magic_cmd with a given extended regex.
4116 # If you have `file' or equivalent on your system and you're not sure
4117 # whether `pass_all' will *always* work, you probably want this one.
4118
4119 case $host_os in
4120 aix[4-9]*)
4121 lt_cv_deplibs_check_method=pass_all
4122 ;;
4123
4124 beos*)
4125 lt_cv_deplibs_check_method=pass_all
4126 ;;
4127
4128 bsdi[45]*)
4129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared obje ct|dynamic lib)'
4130 lt_cv_file_magic_cmd='/usr/bin/file -L'
4131 lt_cv_file_magic_test_file=/shlib/libc.so
4132 ;;
4133
4134 cygwin*)
4135 # func_win32_libid is a shell function defined in ltmain.sh
4136 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4137 lt_cv_file_magic_cmd='func_win32_libid'
4138 ;;
4139
4140 mingw* | pw32*)
4141 # Base MSYS/MinGW do not provide the 'file' command needed by
4142 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4143 # unless we find 'file', for example because we are cross-compiling.
4144 if ( file / ) >/dev/null 2>&1; then
4145 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4146 lt_cv_file_magic_cmd='func_win32_libid'
4147 else
4148 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4149 lt_cv_file_magic_cmd='$OBJDUMP -f'
4150 fi
4151 ;;
4152
4153 cegcc)
4154 # use the weaker test based on 'objdump'. See mingw*.
4155 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architect ure: arm)?'
4156 lt_cv_file_magic_cmd='$OBJDUMP -f'
4157 ;;
4158
4159 darwin* | rhapsody*)
4160 lt_cv_deplibs_check_method=pass_all
4161 ;;
4162
4163 freebsd* | dragonfly*)
4164 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4165 case $host_cpu in
4166 i*86 )
4167 # Not sure whether the presence of OpenBSD here was a mistake.
4168 # Let's accept both of them until this is cleared up.
4169 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]8 6 (compact )?demand paged shared library'
4170 lt_cv_file_magic_cmd=/usr/bin/file
4171 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4172 ;;
4173 esac
4174 else
4175 lt_cv_deplibs_check_method=pass_all
4176 fi
4177 ;;
4178
4179 gnu*)
4180 lt_cv_deplibs_check_method=pass_all
4181 ;;
4182
4183 hpux10.20* | hpux11*)
4184 lt_cv_file_magic_cmd=/usr/bin/file
4185 case $host_cpu in
4186 ia64*)
4187 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sha red object file - IA64'
4188 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4189 ;;
4190 hppa*64*)
4191 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) sha red object file - PA-RISC [0-9].[0-9]'
4192 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4193 ;;
4194 *)
4195 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4196 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4197 ;;
4198 esac
4199 ;;
4200
4201 interix[3-9]*)
4202 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4204 ;;
4205
4206 irix5* | irix6* | nonstopux*)
4207 case $LD in
4208 *-32|*"-32 ") libmagic=32-bit;;
4209 *-n32|*"-n32 ") libmagic=N32;;
4210 *-64|*"-64 ") libmagic=64-bit;;
4211 *) libmagic=never-match;;
4212 esac
4213 lt_cv_deplibs_check_method=pass_all
4214 ;;
4215
4216 # This must be Linux ELF.
4217 linux* | k*bsd*-gnu)
4218 lt_cv_deplibs_check_method=pass_all
4219 ;;
4220
4221 netbsd*)
4222 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4223 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi c\.a)$'
4224 else
4225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4226 fi
4227 ;;
4228
4229 newos6*)
4230 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable| dynamic lib)'
4231 lt_cv_file_magic_cmd=/usr/bin/file
4232 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4233 ;;
4234
4235 *nto* | *qnx*)
4236 lt_cv_deplibs_check_method=pass_all
4237 ;;
4238
4239 openbsd*)
4240 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host _cpu" = "openbsd2.8-powerpc"; then
4241 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.s o|_pic\.a)$'
4242 else
4243 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pi c\.a)$'
4244 fi
4245 ;;
4246
4247 osf3* | osf4* | osf5*)
4248 lt_cv_deplibs_check_method=pass_all
4249 ;;
4250
4251 rdos*)
4252 lt_cv_deplibs_check_method=pass_all
4253 ;;
4254
4255 solaris*)
4256 lt_cv_deplibs_check_method=pass_all
4257 ;;
4258
4259 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4260 lt_cv_deplibs_check_method=pass_all
4261 ;;
4262
4263 sysv4 | sysv4.3*)
4264 case $host_vendor in
4265 motorola)
4266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared ob ject|dynamic lib) M[0-9][0-9]* Version [0-9]'
4267 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4268 ;;
4269 ncr)
4270 lt_cv_deplibs_check_method=pass_all
4271 ;;
4272 sequent)
4273 lt_cv_file_magic_cmd='/bin/file'
4274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared ob ject|dynamic lib )'
4275 ;;
4276 sni)
4277 lt_cv_file_magic_cmd='/bin/file'
4278 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic li b"
4279 lt_cv_file_magic_test_file=/lib/libc.so
4280 ;;
4281 siemens)
4282 lt_cv_deplibs_check_method=pass_all
4283 ;;
4284 pc)
4285 lt_cv_deplibs_check_method=pass_all
4286 ;;
4287 esac
4288 ;;
4289
4290 tpf*)
4291 lt_cv_deplibs_check_method=pass_all
4292 ;;
4293 esac
4294
4295 fi
4296 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4297 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4298 file_magic_cmd=$lt_cv_file_magic_cmd
4299 deplibs_check_method=$lt_cv_deplibs_check_method
4300 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313 if test -n "$ac_tool_prefix"; then
4314 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4315 set dummy ${ac_tool_prefix}ar; ac_word=$2
4316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if test "${ac_cv_prog_AR+set}" = set; then
4319 $as_echo_n "(cached) " >&6
4320 else
4321 if test -n "$AR"; then
4322 ac_cv_prog_AR="$AR" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4331 ac_cv_prog_AR="${ac_tool_prefix}ar"
4332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4334 fi
4335 done
4336 done
4337 IFS=$as_save_IFS
4338
4339 fi
4340 fi
4341 AR=$ac_cv_prog_AR
4342 if test -n "$AR"; then
4343 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4344 $as_echo "$AR" >&6; }
4345 else
4346 { $as_echo "$as_me:$LINENO: result: no" >&5
4347 $as_echo "no" >&6; }
4348 fi
4349
4350
4351 fi
4352 if test -z "$ac_cv_prog_AR"; then
4353 ac_ct_AR=$AR
4354 # Extract the first word of "ar", so it can be a program name with args.
4355 set dummy ar; ac_word=$2
4356 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4359 $as_echo_n "(cached) " >&6
4360 else
4361 if test -n "$ac_ct_AR"; then
4362 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4371 ac_cv_prog_ac_ct_AR="ar"
4372 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4374 fi
4375 done
4376 done
4377 IFS=$as_save_IFS
4378
4379 fi
4380 fi
4381 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4382 if test -n "$ac_ct_AR"; then
4383 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4384 $as_echo "$ac_ct_AR" >&6; }
4385 else
4386 { $as_echo "$as_me:$LINENO: result: no" >&5
4387 $as_echo "no" >&6; }
4388 fi
4389
4390 if test "x$ac_ct_AR" = x; then
4391 AR="false"
4392 else
4393 case $cross_compiling:$ac_tool_warned in
4394 yes:)
4395 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
4396 whose name does not start with the host triplet. If you think this
4397 configuration is useful to you, please write to autoconf@gnu.org." >&5
4398 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4399 whose name does not start with the host triplet. If you think this
4400 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4401 ac_tool_warned=yes ;;
4402 esac
4403 AR=$ac_ct_AR
4404 fi
4405 else
4406 AR="$ac_cv_prog_AR"
4407 fi
4408
4409 test -z "$AR" && AR=ar
4410 test -z "$AR_FLAGS" && AR_FLAGS=cru
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422 if test -n "$ac_tool_prefix"; then
4423 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n ame with args.
4424 set dummy ${ac_tool_prefix}strip; ac_word=$2
4425 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 $as_echo_n "checking for $ac_word... " >&6; }
4427 if test "${ac_cv_prog_STRIP+set}" = set; then
4428 $as_echo_n "(cached) " >&6
4429 else
4430 if test -n "$STRIP"; then
4431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4432 else
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH
4435 do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4440 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444 done
4445 done
4446 IFS=$as_save_IFS
4447
4448 fi
4449 fi
4450 STRIP=$ac_cv_prog_STRIP
4451 if test -n "$STRIP"; then
4452 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4453 $as_echo "$STRIP" >&6; }
4454 else
4455 { $as_echo "$as_me:$LINENO: result: no" >&5
4456 $as_echo "no" >&6; }
4457 fi
4458
4459
4460 fi
4461 if test -z "$ac_cv_prog_STRIP"; then
4462 ac_ct_STRIP=$STRIP
4463 # Extract the first word of "strip", so it can be a program name with args.
4464 set dummy strip; ac_word=$2
4465 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 $as_echo_n "checking for $ac_word... " >&6; }
4467 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4468 $as_echo_n "(cached) " >&6
4469 else
4470 if test -n "$ac_ct_STRIP"; then
4471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4472 else
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4480 ac_cv_prog_ac_ct_STRIP="strip"
4481 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4483 fi
4484 done
4485 done
4486 IFS=$as_save_IFS
4487
4488 fi
4489 fi
4490 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4491 if test -n "$ac_ct_STRIP"; then
4492 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4493 $as_echo "$ac_ct_STRIP" >&6; }
4494 else
4495 { $as_echo "$as_me:$LINENO: result: no" >&5
4496 $as_echo "no" >&6; }
4497 fi
4498
4499 if test "x$ac_ct_STRIP" = x; then
4500 STRIP=":"
4501 else
4502 case $cross_compiling:$ac_tool_warned in
4503 yes:)
4504 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
4505 whose name does not start with the host triplet. If you think this
4506 configuration is useful to you, please write to autoconf@gnu.org." >&5
4507 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4508 whose name does not start with the host triplet. If you think this
4509 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4510 ac_tool_warned=yes ;;
4511 esac
4512 STRIP=$ac_ct_STRIP
4513 fi
4514 else
4515 STRIP="$ac_cv_prog_STRIP"
4516 fi
4517
4518 test -z "$STRIP" && STRIP=:
4519
4520
4521
4522
4523
4524
4525 if test -n "$ac_tool_prefix"; then
4526 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4527 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4528 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_RANLIB+set}" = set; then
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test -n "$RANLIB"; then
4534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4543 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4544 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4546 fi
4547 done
4548 done
4549 IFS=$as_save_IFS
4550
4551 fi
4552 fi
4553 RANLIB=$ac_cv_prog_RANLIB
4554 if test -n "$RANLIB"; then
4555 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4556 $as_echo "$RANLIB" >&6; }
4557 else
4558 { $as_echo "$as_me:$LINENO: result: no" >&5
4559 $as_echo "no" >&6; }
4560 fi
4561
4562
4563 fi
4564 if test -z "$ac_cv_prog_RANLIB"; then
4565 ac_ct_RANLIB=$RANLIB
4566 # Extract the first word of "ranlib", so it can be a program name with args.
4567 set dummy ranlib; ac_word=$2
4568 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4571 $as_echo_n "(cached) " >&6
4572 else
4573 if test -n "$ac_ct_RANLIB"; then
4574 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4575 else
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4578 do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4583 ac_cv_prog_ac_ct_RANLIB="ranlib"
4584 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587 done
4588 done
4589 IFS=$as_save_IFS
4590
4591 fi
4592 fi
4593 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4594 if test -n "$ac_ct_RANLIB"; then
4595 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4596 $as_echo "$ac_ct_RANLIB" >&6; }
4597 else
4598 { $as_echo "$as_me:$LINENO: result: no" >&5
4599 $as_echo "no" >&6; }
4600 fi
4601
4602 if test "x$ac_ct_RANLIB" = x; then
4603 RANLIB=":"
4604 else
4605 case $cross_compiling:$ac_tool_warned in
4606 yes:)
4607 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
4608 whose name does not start with the host triplet. If you think this
4609 configuration is useful to you, please write to autoconf@gnu.org." >&5
4610 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4611 whose name does not start with the host triplet. If you think this
4612 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4613 ac_tool_warned=yes ;;
4614 esac
4615 RANLIB=$ac_ct_RANLIB
4616 fi
4617 else
4618 RANLIB="$ac_cv_prog_RANLIB"
4619 fi
4620
4621 test -z "$RANLIB" && RANLIB=:
4622
4623
4624
4625
4626
4627
4628 # Determine commands to create old-style static archives.
4629 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4630 old_postinstall_cmds='chmod 644 $oldlib'
4631 old_postuninstall_cmds=
4632
4633 if test -n "$RANLIB"; then
4634 case $host_os in
4635 openbsd*)
4636 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4637 ;;
4638 *)
4639 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4640 ;;
4641 esac
4642 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4643 fi
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678 # If no C compiler was specified, use CC.
4679 LTCC=${LTCC-"$CC"}
4680
4681 # If no C compiler flags were specified, use CFLAGS.
4682 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4683
4684 # Allow CC to be a program name with arguments.
4685 compiler=$CC
4686
4687
4688 # Check for command to grab the raw symbol name followed by C symbol from nm.
4689 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4690 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
4691 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4692 $as_echo_n "(cached) " >&6
4693 else
4694
4695 # These are sane defaults that work on at least a few old systems.
4696 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4697
4698 # Character class describing NM global symbol codes.
4699 symcode='[BCDEGRST]'
4700
4701 # Regexp to match symbols that can be accessed directly from C.
4702 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4703
4704 # Define system-specific variables.
4705 case $host_os in
4706 aix*)
4707 symcode='[BCDT]'
4708 ;;
4709 cygwin* | mingw* | pw32* | cegcc*)
4710 symcode='[ABCDGISTW]'
4711 ;;
4712 hpux*)
4713 if test "$host_cpu" = ia64; then
4714 symcode='[ABCDEGRST]'
4715 fi
4716 ;;
4717 irix* | nonstopux*)
4718 symcode='[BCDEGRST]'
4719 ;;
4720 osf*)
4721 symcode='[BCDEGQRST]'
4722 ;;
4723 solaris*)
4724 symcode='[BDRT]'
4725 ;;
4726 sco3.2v5*)
4727 symcode='[DT]'
4728 ;;
4729 sysv4.2uw2*)
4730 symcode='[DT]'
4731 ;;
4732 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4733 symcode='[ABDT]'
4734 ;;
4735 sysv4)
4736 symcode='[DFNSTU]'
4737 ;;
4738 esac
4739
4740 # If we're using GNU nm, then use its standard symbol codes.
4741 case `$NM -V 2>&1` in
4742 *GNU* | *'with BFD'*)
4743 symcode='[ABCDGIRSTW]' ;;
4744 esac
4745
4746 # Transform an extracted symbol line into a proper C declaration.
4747 # Some systems (esp. on ia64) link data and code symbols differently,
4748 # so use this general approach.
4749 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4750
4751 # Transform an extracted symbol line into symbol name and symbol address
4752 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1 \\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4753 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\", (voi d *) \&\2},/p'"
4754
4755 # Handle CRLF in mingw tool chain
4756 opt_cr=
4757 case $build_os in
4758 mingw*)
4759 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4760 ;;
4761 esac
4762
4763 # Try without a prefix underscore, then with it.
4764 for ac_symprfx in "" "_"; do
4765
4766 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4767 symxfrm="\\1 $ac_symprfx\\2 \\2"
4768
4769 # Write the raw and C identifiers.
4770 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4771 # Fake it for dumpbin and say T for any non-static function
4772 # and D for any global variable.
4773 # Also find C++ and __fastcall symbols from MSVC++,
4774 # which start with @ or ?.
4775 lt_cv_sys_global_symbol_pipe="$AWK '"\
4776 " {last_section=section; section=\$ 3};"\
4777 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4778 " \$ 0!~/External *\|/{next};"\
4779 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4780 " {if(hide[section]) next};"\
4781 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4782 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4783 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4784 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4785 " ' prfx=^$ac_symprfx"
4786 else
4787 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4788 fi
4789
4790 # Check to see that the pipe works correctly.
4791 pipe_works=no
4792
4793 rm -f conftest*
4794 cat > conftest.$ac_ext <<_LT_EOF
4795 #ifdef __cplusplus
4796 extern "C" {
4797 #endif
4798 char nm_test_var;
4799 void nm_test_func(void);
4800 void nm_test_func(void){}
4801 #ifdef __cplusplus
4802 }
4803 #endif
4804 int main(){nm_test_var='a';nm_test_func();return(0);}
4805 _LT_EOF
4806
4807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4808 (eval $ac_compile) 2>&5
4809 ac_status=$?
4810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; then
4812 # Now try to grab the symbols.
4813 nlist=conftest.nm
4814 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_glo bal_symbol_pipe \> $nlist\"") >&5
4815 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4816 ac_status=$?
4817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } && test -s "$nlist"; then
4819 # Try sorting and uniquifying the output.
4820 if sort "$nlist" | uniq > "$nlist"T; then
4821 mv -f "$nlist"T "$nlist"
4822 else
4823 rm -f "$nlist"T
4824 fi
4825
4826 # Make sure that we snagged all the symbols we need.
4827 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4828 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4829 cat <<_LT_EOF > conftest.$ac_ext
4830 #ifdef __cplusplus
4831 extern "C" {
4832 #endif
4833
4834 _LT_EOF
4835 # Now generate the symbol file.
4836 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main > > conftest.$ac_ext'
4837
4838 cat <<_LT_EOF >> conftest.$ac_ext
4839
4840 /* The mapping between symbol names and symbols. */
4841 const struct {
4842 const char *name;
4843 void *address;
4844 }
4845 lt__PROGRAM__LTX_preloaded_symbols[] =
4846 {
4847 { "@PROGRAM@", (void *) 0 },
4848 _LT_EOF
4849 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4850 cat <<\_LT_EOF >> conftest.$ac_ext
4851 {0, (void *) 0}
4852 };
4853
4854 /* This works around a problem in FreeBSD linker */
4855 #ifdef FREEBSD_WORKAROUND
4856 static const void *lt_preloaded_setup() {
4857 return lt__PROGRAM__LTX_preloaded_symbols;
4858 }
4859 #endif
4860
4861 #ifdef __cplusplus
4862 }
4863 #endif
4864 _LT_EOF
4865 # Now try linking the two files.
4866 mv conftest.$ac_objext conftstm.$ac_objext
4867 lt_save_LIBS="$LIBS"
4868 lt_save_CFLAGS="$CFLAGS"
4869 LIBS="conftstm.$ac_objext"
4870 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4872 (eval $ac_link) 2>&5
4873 ac_status=$?
4874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4876 pipe_works=yes
4877 fi
4878 LIBS="$lt_save_LIBS"
4879 CFLAGS="$lt_save_CFLAGS"
4880 else
4881 echo "cannot find nm_test_func in $nlist" >&5
4882 fi
4883 else
4884 echo "cannot find nm_test_var in $nlist" >&5
4885 fi
4886 else
4887 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4888 fi
4889 else
4890 echo "$progname: failed program was:" >&5
4891 cat conftest.$ac_ext >&5
4892 fi
4893 rm -rf conftest* conftst*
4894
4895 # Do not use the global_symbol_pipe unless it works.
4896 if test "$pipe_works" = yes; then
4897 break
4898 else
4899 lt_cv_sys_global_symbol_pipe=
4900 fi
4901 done
4902
4903 fi
4904
4905 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4906 lt_cv_sys_global_symbol_to_cdecl=
4907 fi
4908 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; the n
4909 { $as_echo "$as_me:$LINENO: result: failed" >&5
4910 $as_echo "failed" >&6; }
4911 else
4912 { $as_echo "$as_me:$LINENO: result: ok" >&5
4913 $as_echo "ok" >&6; }
4914 fi
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938 # Check whether --enable-libtool-lock was given.
4939 if test "${enable_libtool_lock+set}" = set; then
4940 enableval=$enable_libtool_lock;
4941 fi
4942
4943 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4944
4945 # Some flags need to be propagated to the compiler or linker for good
4946 # libtool support.
4947 case $host in
4948 ia64-*-hpux*)
4949 # Find out which ABI we are using.
4950 echo 'int i;' > conftest.$ac_ext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>&5
4953 ac_status=$?
4954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }; then
4956 case `/usr/bin/file conftest.$ac_objext` in
4957 *ELF-32*)
4958 HPUX_IA64_MODE="32"
4959 ;;
4960 *ELF-64*)
4961 HPUX_IA64_MODE="64"
4962 ;;
4963 esac
4964 fi
4965 rm -rf conftest*
4966 ;;
4967 *-*-irix6*)
4968 # Find out which ABI we are using.
4969 echo '#line 4969 "configure"' > conftest.$ac_ext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971 (eval $ac_compile) 2>&5
4972 ac_status=$?
4973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; then
4975 if test "$lt_cv_prog_gnu_ld" = yes; then
4976 case `/usr/bin/file conftest.$ac_objext` in
4977 *32-bit*)
4978 LD="${LD-ld} -melf32bsmip"
4979 ;;
4980 *N32*)
4981 LD="${LD-ld} -melf32bmipn32"
4982 ;;
4983 *64-bit*)
4984 LD="${LD-ld} -melf64bmip"
4985 ;;
4986 esac
4987 else
4988 case `/usr/bin/file conftest.$ac_objext` in
4989 *32-bit*)
4990 LD="${LD-ld} -32"
4991 ;;
4992 *N32*)
4993 LD="${LD-ld} -n32"
4994 ;;
4995 *64-bit*)
4996 LD="${LD-ld} -64"
4997 ;;
4998 esac
4999 fi
5000 fi
5001 rm -rf conftest*
5002 ;;
5003
5004 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5005 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5006 # Find out which ABI we are using.
5007 echo 'int i;' > conftest.$ac_ext
5008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5009 (eval $ac_compile) 2>&5
5010 ac_status=$?
5011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); }; then
5013 case `/usr/bin/file conftest.o` in
5014 *32-bit*)
5015 case $host in
5016 x86_64-*kfreebsd*-gnu)
5017 LD="${LD-ld} -m elf_i386_fbsd"
5018 ;;
5019 x86_64-*linux*)
5020 LD="${LD-ld} -m elf_i386"
5021 ;;
5022 ppc64-*linux*|powerpc64-*linux*)
5023 LD="${LD-ld} -m elf32ppclinux"
5024 ;;
5025 s390x-*linux*)
5026 LD="${LD-ld} -m elf_s390"
5027 ;;
5028 sparc64-*linux*)
5029 LD="${LD-ld} -m elf32_sparc"
5030 ;;
5031 esac
5032 ;;
5033 *64-bit*)
5034 case $host in
5035 x86_64-*kfreebsd*-gnu)
5036 LD="${LD-ld} -m elf_x86_64_fbsd"
5037 ;;
5038 x86_64-*linux*)
5039 LD="${LD-ld} -m elf_x86_64"
5040 ;;
5041 ppc*-*linux*|powerpc*-*linux*)
5042 LD="${LD-ld} -m elf64ppc"
5043 ;;
5044 s390*-*linux*|s390*-*tpf*)
5045 LD="${LD-ld} -m elf64_s390"
5046 ;;
5047 sparc*-*linux*)
5048 LD="${LD-ld} -m elf64_sparc"
5049 ;;
5050 esac
5051 ;;
5052 esac
5053 fi
5054 rm -rf conftest*
5055 ;;
5056
5057 *-*-sco3.2v5*)
5058 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5059 SAVE_CFLAGS="$CFLAGS"
5060 CFLAGS="$CFLAGS -belf"
5061 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5062 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5063 if test "${lt_cv_cc_needs_belf+set}" = set; then
5064 $as_echo_n "(cached) " >&6
5065 else
5066 ac_ext=c
5067 ac_cpp='$CPP $CPPFLAGS'
5068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
5070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5071
5072 cat >conftest.$ac_ext <<_ACEOF
5073 /* confdefs.h. */
5074 _ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078
5079 int
5080 main ()
5081 {
5082
5083 ;
5084 return 0;
5085 }
5086 _ACEOF
5087 rm -f conftest.$ac_objext conftest$ac_exeext
5088 if { (ac_try="$ac_link"
5089 case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092 esac
5093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5094 $as_echo "$ac_try_echo") >&5
5095 (eval "$ac_link") 2>conftest.er1
5096 ac_status=$?
5097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
5100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } && {
5102 test -z "$ac_c_werror_flag" ||
5103 test ! -s conftest.err
5104 } && test -s conftest$ac_exeext && {
5105 test "$cross_compiling" = yes ||
5106 $as_test_x conftest$ac_exeext
5107 }; then
5108 lt_cv_cc_needs_belf=yes
5109 else
5110 $as_echo "$as_me: failed program was:" >&5
5111 sed 's/^/| /' conftest.$ac_ext >&5
5112
5113 lt_cv_cc_needs_belf=no
5114 fi
5115
5116 rm -rf conftest.dSYM
5117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5118 conftest$ac_exeext conftest.$ac_ext
5119 ac_ext=c
5120 ac_cpp='$CPP $CPPFLAGS'
5121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5124
5125 fi
5126 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5127 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5128 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5129 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5130 CFLAGS="$SAVE_CFLAGS"
5131 fi
5132 ;;
5133 sparc*-*solaris*)
5134 # Find out which ABI we are using.
5135 echo 'int i;' > conftest.$ac_ext
5136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5137 (eval $ac_compile) 2>&5
5138 ac_status=$?
5139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; then
5141 case `/usr/bin/file conftest.o` in
5142 *64-bit*)
5143 case $lt_cv_prog_gnu_ld in
5144 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5145 *)
5146 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5147 LD="${LD-ld} -64"
5148 fi
5149 ;;
5150 esac
5151 ;;
5152 esac
5153 fi
5154 rm -rf conftest*
5155 ;;
5156 esac
5157
5158 need_locks="$enable_libtool_lock"
5159
5160
5161 case $host_os in
5162 rhapsody* | darwin*)
5163 if test -n "$ac_tool_prefix"; then
5164 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a progra m name with args.
5165 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5166 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if test -n "$DSYMUTIL"; then
5172 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5176 do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5181 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5182 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5184 fi
5185 done
5186 done
5187 IFS=$as_save_IFS
5188
5189 fi
5190 fi
5191 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5192 if test -n "$DSYMUTIL"; then
5193 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5194 $as_echo "$DSYMUTIL" >&6; }
5195 else
5196 { $as_echo "$as_me:$LINENO: result: no" >&5
5197 $as_echo "no" >&6; }
5198 fi
5199
5200
5201 fi
5202 if test -z "$ac_cv_prog_DSYMUTIL"; then
5203 ac_ct_DSYMUTIL=$DSYMUTIL
5204 # Extract the first word of "dsymutil", so it can be a program name with args.
5205 set dummy dsymutil; ac_word=$2
5206 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5209 $as_echo_n "(cached) " >&6
5210 else
5211 if test -n "$ac_ct_DSYMUTIL"; then
5212 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5216 do
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5221 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5222 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5224 fi
5225 done
5226 done
5227 IFS=$as_save_IFS
5228
5229 fi
5230 fi
5231 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5232 if test -n "$ac_ct_DSYMUTIL"; then
5233 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5234 $as_echo "$ac_ct_DSYMUTIL" >&6; }
5235 else
5236 { $as_echo "$as_me:$LINENO: result: no" >&5
5237 $as_echo "no" >&6; }
5238 fi
5239
5240 if test "x$ac_ct_DSYMUTIL" = x; then
5241 DSYMUTIL=":"
5242 else
5243 case $cross_compiling:$ac_tool_warned in
5244 yes:)
5245 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
5246 whose name does not start with the host triplet. If you think this
5247 configuration is useful to you, please write to autoconf@gnu.org." >&5
5248 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5249 whose name does not start with the host triplet. If you think this
5250 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5251 ac_tool_warned=yes ;;
5252 esac
5253 DSYMUTIL=$ac_ct_DSYMUTIL
5254 fi
5255 else
5256 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5257 fi
5258
5259 if test -n "$ac_tool_prefix"; then
5260 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5261 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5262 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5265 $as_echo_n "(cached) " >&6
5266 else
5267 if test -n "$NMEDIT"; then
5268 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5269 else
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5277 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5278 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5280 fi
5281 done
5282 done
5283 IFS=$as_save_IFS
5284
5285 fi
5286 fi
5287 NMEDIT=$ac_cv_prog_NMEDIT
5288 if test -n "$NMEDIT"; then
5289 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5290 $as_echo "$NMEDIT" >&6; }
5291 else
5292 { $as_echo "$as_me:$LINENO: result: no" >&5
5293 $as_echo "no" >&6; }
5294 fi
5295
5296
5297 fi
5298 if test -z "$ac_cv_prog_NMEDIT"; then
5299 ac_ct_NMEDIT=$NMEDIT
5300 # Extract the first word of "nmedit", so it can be a program name with args.
5301 set dummy nmedit; ac_word=$2
5302 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5305 $as_echo_n "(cached) " >&6
5306 else
5307 if test -n "$ac_ct_NMEDIT"; then
5308 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5317 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5318 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5320 fi
5321 done
5322 done
5323 IFS=$as_save_IFS
5324
5325 fi
5326 fi
5327 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5328 if test -n "$ac_ct_NMEDIT"; then
5329 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5330 $as_echo "$ac_ct_NMEDIT" >&6; }
5331 else
5332 { $as_echo "$as_me:$LINENO: result: no" >&5
5333 $as_echo "no" >&6; }
5334 fi
5335
5336 if test "x$ac_ct_NMEDIT" = x; then
5337 NMEDIT=":"
5338 else
5339 case $cross_compiling:$ac_tool_warned in
5340 yes:)
5341 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
5342 whose name does not start with the host triplet. If you think this
5343 configuration is useful to you, please write to autoconf@gnu.org." >&5
5344 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5345 whose name does not start with the host triplet. If you think this
5346 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5347 ac_tool_warned=yes ;;
5348 esac
5349 NMEDIT=$ac_ct_NMEDIT
5350 fi
5351 else
5352 NMEDIT="$ac_cv_prog_NMEDIT"
5353 fi
5354
5355 if test -n "$ac_tool_prefix"; then
5356 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program na me with args.
5357 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5358 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if test "${ac_cv_prog_LIPO+set}" = set; then
5361 $as_echo_n "(cached) " >&6
5362 else
5363 if test -n "$LIPO"; then
5364 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5365 else
5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367 for as_dir in $PATH
5368 do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
5371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5373 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5374 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5375 break 2
5376 fi
5377 done
5378 done
5379 IFS=$as_save_IFS
5380
5381 fi
5382 fi
5383 LIPO=$ac_cv_prog_LIPO
5384 if test -n "$LIPO"; then
5385 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
5386 $as_echo "$LIPO" >&6; }
5387 else
5388 { $as_echo "$as_me:$LINENO: result: no" >&5
5389 $as_echo "no" >&6; }
5390 fi
5391
5392
5393 fi
5394 if test -z "$ac_cv_prog_LIPO"; then
5395 ac_ct_LIPO=$LIPO
5396 # Extract the first word of "lipo", so it can be a program name with args.
5397 set dummy lipo; ac_word=$2
5398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5399 $as_echo_n "checking for $ac_word... " >&6; }
5400 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5401 $as_echo_n "(cached) " >&6
5402 else
5403 if test -n "$ac_ct_LIPO"; then
5404 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5405 else
5406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407 for as_dir in $PATH
5408 do
5409 IFS=$as_save_IFS
5410 test -z "$as_dir" && as_dir=.
5411 for ac_exec_ext in '' $ac_executable_extensions; do
5412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5413 ac_cv_prog_ac_ct_LIPO="lipo"
5414 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5415 break 2
5416 fi
5417 done
5418 done
5419 IFS=$as_save_IFS
5420
5421 fi
5422 fi
5423 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5424 if test -n "$ac_ct_LIPO"; then
5425 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5426 $as_echo "$ac_ct_LIPO" >&6; }
5427 else
5428 { $as_echo "$as_me:$LINENO: result: no" >&5
5429 $as_echo "no" >&6; }
5430 fi
5431
5432 if test "x$ac_ct_LIPO" = x; then
5433 LIPO=":"
5434 else
5435 case $cross_compiling:$ac_tool_warned in
5436 yes:)
5437 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
5438 whose name does not start with the host triplet. If you think this
5439 configuration is useful to you, please write to autoconf@gnu.org." >&5
5440 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5441 whose name does not start with the host triplet. If you think this
5442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5443 ac_tool_warned=yes ;;
5444 esac
5445 LIPO=$ac_ct_LIPO
5446 fi
5447 else
5448 LIPO="$ac_cv_prog_LIPO"
5449 fi
5450
5451 if test -n "$ac_tool_prefix"; then
5452 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program n ame with args.
5453 set dummy ${ac_tool_prefix}otool; ac_word=$2
5454 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if test "${ac_cv_prog_OTOOL+set}" = set; then
5457 $as_echo_n "(cached) " >&6
5458 else
5459 if test -n "$OTOOL"; then
5460 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5469 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5470 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5472 fi
5473 done
5474 done
5475 IFS=$as_save_IFS
5476
5477 fi
5478 fi
5479 OTOOL=$ac_cv_prog_OTOOL
5480 if test -n "$OTOOL"; then
5481 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
5482 $as_echo "$OTOOL" >&6; }
5483 else
5484 { $as_echo "$as_me:$LINENO: result: no" >&5
5485 $as_echo "no" >&6; }
5486 fi
5487
5488
5489 fi
5490 if test -z "$ac_cv_prog_OTOOL"; then
5491 ac_ct_OTOOL=$OTOOL
5492 # Extract the first word of "otool", so it can be a program name with args.
5493 set dummy otool; ac_word=$2
5494 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5495 $as_echo_n "checking for $ac_word... " >&6; }
5496 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5497 $as_echo_n "(cached) " >&6
5498 else
5499 if test -n "$ac_ct_OTOOL"; then
5500 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5501 else
5502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5503 for as_dir in $PATH
5504 do
5505 IFS=$as_save_IFS
5506 test -z "$as_dir" && as_dir=.
5507 for ac_exec_ext in '' $ac_executable_extensions; do
5508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5509 ac_cv_prog_ac_ct_OTOOL="otool"
5510 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 break 2
5512 fi
5513 done
5514 done
5515 IFS=$as_save_IFS
5516
5517 fi
5518 fi
5519 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5520 if test -n "$ac_ct_OTOOL"; then
5521 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5522 $as_echo "$ac_ct_OTOOL" >&6; }
5523 else
5524 { $as_echo "$as_me:$LINENO: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527
5528 if test "x$ac_ct_OTOOL" = x; then
5529 OTOOL=":"
5530 else
5531 case $cross_compiling:$ac_tool_warned in
5532 yes:)
5533 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
5534 whose name does not start with the host triplet. If you think this
5535 configuration is useful to you, please write to autoconf@gnu.org." >&5
5536 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5537 whose name does not start with the host triplet. If you think this
5538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5539 ac_tool_warned=yes ;;
5540 esac
5541 OTOOL=$ac_ct_OTOOL
5542 fi
5543 else
5544 OTOOL="$ac_cv_prog_OTOOL"
5545 fi
5546
5547 if test -n "$ac_tool_prefix"; then
5548 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5549 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5553 $as_echo_n "(cached) " >&6
5554 else
5555 if test -n "$OTOOL64"; then
5556 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5557 else
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5560 do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5565 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5566 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5568 fi
5569 done
5570 done
5571 IFS=$as_save_IFS
5572
5573 fi
5574 fi
5575 OTOOL64=$ac_cv_prog_OTOOL64
5576 if test -n "$OTOOL64"; then
5577 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
5578 $as_echo "$OTOOL64" >&6; }
5579 else
5580 { $as_echo "$as_me:$LINENO: result: no" >&5
5581 $as_echo "no" >&6; }
5582 fi
5583
5584
5585 fi
5586 if test -z "$ac_cv_prog_OTOOL64"; then
5587 ac_ct_OTOOL64=$OTOOL64
5588 # Extract the first word of "otool64", so it can be a program name with args.
5589 set dummy otool64; ac_word=$2
5590 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5593 $as_echo_n "(cached) " >&6
5594 else
5595 if test -n "$ac_ct_OTOOL64"; then
5596 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5600 do
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
5605 ac_cv_prog_ac_ct_OTOOL64="otool64"
5606 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 break 2
5608 fi
5609 done
5610 done
5611 IFS=$as_save_IFS
5612
5613 fi
5614 fi
5615 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5616 if test -n "$ac_ct_OTOOL64"; then
5617 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
5618 $as_echo "$ac_ct_OTOOL64" >&6; }
5619 else
5620 { $as_echo "$as_me:$LINENO: result: no" >&5
5621 $as_echo "no" >&6; }
5622 fi
5623
5624 if test "x$ac_ct_OTOOL64" = x; then
5625 OTOOL64=":"
5626 else
5627 case $cross_compiling:$ac_tool_warned in
5628 yes:)
5629 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
5630 whose name does not start with the host triplet. If you think this
5631 configuration is useful to you, please write to autoconf@gnu.org." >&5
5632 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5633 whose name does not start with the host triplet. If you think this
5634 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5635 ac_tool_warned=yes ;;
5636 esac
5637 OTOOL64=$ac_ct_OTOOL64
5638 fi
5639 else
5640 OTOOL64="$ac_cv_prog_OTOOL64"
5641 fi
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
5670 $as_echo_n "checking for -single_module linker flag... " >&6; }
5671 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5672 $as_echo_n "(cached) " >&6
5673 else
5674 lt_cv_apple_cc_single_mod=no
5675 if test -z "${LT_MULTI_MODULE}"; then
5676 # By default we will add the -single_module flag. You can override
5677 # by either setting the environment variable LT_MULTI_MODULE
5678 # non-empty at configure time, or by adding -multi_module to the
5679 # link flags.
5680 rm -rf libconftest.dylib*
5681 echo "int foo(void){return 1;}" > conftest.c
5682 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5683 -dynamiclib -Wl,-single_module conftest.c" >&5
5684 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5685 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5686 _lt_result=$?
5687 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_resu lt = 0; then
5688 lt_cv_apple_cc_single_mod=yes
5689 else
5690 cat conftest.err >&5
5691 fi
5692 rm -rf libconftest.dylib*
5693 rm -f conftest.*
5694 fi
5695 fi
5696 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
5697 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
5698 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
5699 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
5700 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5701 $as_echo_n "(cached) " >&6
5702 else
5703 lt_cv_ld_exported_symbols_list=no
5704 save_LDFLAGS=$LDFLAGS
5705 echo "_main" > conftest.sym
5706 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713
5714 int
5715 main ()
5716 {
5717
5718 ;
5719 return 0;
5720 }
5721 _ACEOF
5722 rm -f conftest.$ac_objext conftest$ac_exeext
5723 if { (ac_try="$ac_link"
5724 case "(($ac_try" in
5725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726 *) ac_try_echo=$ac_try;;
5727 esac
5728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5729 $as_echo "$ac_try_echo") >&5
5730 (eval "$ac_link") 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest$ac_exeext && {
5740 test "$cross_compiling" = yes ||
5741 $as_test_x conftest$ac_exeext
5742 }; then
5743 lt_cv_ld_exported_symbols_list=yes
5744 else
5745 $as_echo "$as_me: failed program was:" >&5
5746 sed 's/^/| /' conftest.$ac_ext >&5
5747
5748 lt_cv_ld_exported_symbols_list=no
5749 fi
5750
5751 rm -rf conftest.dSYM
5752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5753 conftest$ac_exeext conftest.$ac_ext
5754 LDFLAGS="$save_LDFLAGS"
5755
5756 fi
5757 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
5758 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
5759 case $host_os in
5760 rhapsody* | darwin1.[012])
5761 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5762 darwin1.*)
5763 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppres s' ;;
5764 darwin*) # darwin 5.x on
5765 # if running on 10.5 or later, the deployment target defaults
5766 # to the OS version, if on x86, and 10.4, the deployment
5767 # target defaults to 10.4. Don't you love it?
5768 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5769 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5770 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5771 10.[012]*)
5772 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}sup press' ;;
5773 10.*)
5774 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5775 esac
5776 ;;
5777 esac
5778 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5779 _lt_dar_single_mod='$single_module'
5780 fi
5781 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5782 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname }-symbols.expsym'
5783 else
5784 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5785 fi
5786 if test "$DSYMUTIL" != ":"; then
5787 _lt_dsymutil='~$DSYMUTIL $lib || :'
5788 else
5789 _lt_dsymutil=
5790 fi
5791 ;;
5792 esac
5793
5794 ac_ext=c
5795 ac_cpp='$CPP $CPPFLAGS'
5796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
5798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5799 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5800 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5801 # On Suns, sometimes $CPP names a directory.
5802 if test -n "$CPP" && test -d "$CPP"; then
5803 CPP=
5804 fi
5805 if test -z "$CPP"; then
5806 if test "${ac_cv_prog_CPP+set}" = set; then
5807 $as_echo_n "(cached) " >&6
5808 else
5809 # Double quotes because CPP needs to be expanded
5810 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5811 do
5812 ac_preproc_ok=false
5813 for ac_c_preproc_warn_flag in '' yes
5814 do
5815 # Use a header file that comes with gcc, so configuring glibc
5816 # with a fresh cross-compiler works.
5817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5818 # <limits.h> exists even on freestanding compilers.
5819 # On the NeXT, cc -E runs the code through the compiler's parser,
5820 # not just through cpp. "Syntax error" is here to catch this case.
5821 cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h. */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 #ifdef __STDC__
5828 # include <limits.h>
5829 #else
5830 # include <assert.h>
5831 #endif
5832 Syntax error
5833 _ACEOF
5834 if { (ac_try="$ac_cpp conftest.$ac_ext"
5835 case "(($ac_try" in
5836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5838 esac
5839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5840 $as_echo "$ac_try_echo") >&5
5841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } >/dev/null && {
5848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5849 test ! -s conftest.err
5850 }; then
5851 :
5852 else
5853 $as_echo "$as_me: failed program was:" >&5
5854 sed 's/^/| /' conftest.$ac_ext >&5
5855
5856 # Broken: fails on valid input.
5857 continue
5858 fi
5859
5860 rm -f conftest.err conftest.$ac_ext
5861
5862 # OK, works on sane cases. Now check whether nonexistent headers
5863 # can be detected and how.
5864 cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h. */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h. */
5870 #include <ac_nonexistent.h>
5871 _ACEOF
5872 if { (ac_try="$ac_cpp conftest.$ac_ext"
5873 case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876 esac
5877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5878 $as_echo "$ac_try_echo") >&5
5879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5880 ac_status=$?
5881 grep -v '^ *+' conftest.er1 >conftest.err
5882 rm -f conftest.er1
5883 cat conftest.err >&5
5884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } >/dev/null && {
5886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5887 test ! -s conftest.err
5888 }; then
5889 # Broken: success on invalid input.
5890 continue
5891 else
5892 $as_echo "$as_me: failed program was:" >&5
5893 sed 's/^/| /' conftest.$ac_ext >&5
5894
5895 # Passes both tests.
5896 ac_preproc_ok=:
5897 break
5898 fi
5899
5900 rm -f conftest.err conftest.$ac_ext
5901
5902 done
5903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5904 rm -f conftest.err conftest.$ac_ext
5905 if $ac_preproc_ok; then
5906 break
5907 fi
5908
5909 done
5910 ac_cv_prog_CPP=$CPP
5911
5912 fi
5913 CPP=$ac_cv_prog_CPP
5914 else
5915 ac_cv_prog_CPP=$CPP
5916 fi
5917 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5918 $as_echo "$CPP" >&6; }
5919 ac_preproc_ok=false
5920 for ac_c_preproc_warn_flag in '' yes
5921 do
5922 # Use a header file that comes with gcc, so configuring glibc
5923 # with a fresh cross-compiler works.
5924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5925 # <limits.h> exists even on freestanding compilers.
5926 # On the NeXT, cc -E runs the code through the compiler's parser,
5927 # not just through cpp. "Syntax error" is here to catch this case.
5928 cat >conftest.$ac_ext <<_ACEOF
5929 /* confdefs.h. */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 #ifdef __STDC__
5935 # include <limits.h>
5936 #else
5937 # include <assert.h>
5938 #endif
5939 Syntax error
5940 _ACEOF
5941 if { (ac_try="$ac_cpp conftest.$ac_ext"
5942 case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945 esac
5946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5947 $as_echo "$ac_try_echo") >&5
5948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5949 ac_status=$?
5950 grep -v '^ *+' conftest.er1 >conftest.err
5951 rm -f conftest.er1
5952 cat conftest.err >&5
5953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } >/dev/null && {
5955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5956 test ! -s conftest.err
5957 }; then
5958 :
5959 else
5960 $as_echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5962
5963 # Broken: fails on valid input.
5964 continue
5965 fi
5966
5967 rm -f conftest.err conftest.$ac_ext
5968
5969 # OK, works on sane cases. Now check whether nonexistent headers
5970 # can be detected and how.
5971 cat >conftest.$ac_ext <<_ACEOF
5972 /* confdefs.h. */
5973 _ACEOF
5974 cat confdefs.h >>conftest.$ac_ext
5975 cat >>conftest.$ac_ext <<_ACEOF
5976 /* end confdefs.h. */
5977 #include <ac_nonexistent.h>
5978 _ACEOF
5979 if { (ac_try="$ac_cpp conftest.$ac_ext"
5980 case "(($ac_try" in
5981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5982 *) ac_try_echo=$ac_try;;
5983 esac
5984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5985 $as_echo "$ac_try_echo") >&5
5986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5987 ac_status=$?
5988 grep -v '^ *+' conftest.er1 >conftest.err
5989 rm -f conftest.er1
5990 cat conftest.err >&5
5991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); } >/dev/null && {
5993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5994 test ! -s conftest.err
5995 }; then
5996 # Broken: success on invalid input.
5997 continue
5998 else
5999 $as_echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6001
6002 # Passes both tests.
6003 ac_preproc_ok=:
6004 break
6005 fi
6006
6007 rm -f conftest.err conftest.$ac_ext
6008
6009 done
6010 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6011 rm -f conftest.err conftest.$ac_ext
6012 if $ac_preproc_ok; then
6013 :
6014 else
6015 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity chec k
6016 See \`config.log' for more details." >&5
6017 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6018 See \`config.log' for more details." >&2;}
6019 { (exit 1); exit 1; }; }
6020 fi
6021
6022 ac_ext=c
6023 ac_cpp='$CPP $CPPFLAGS'
6024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
6026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6027
6028
6029 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6030 $as_echo_n "checking for ANSI C header files... " >&6; }
6031 if test "${ac_cv_header_stdc+set}" = set; then
6032 $as_echo_n "(cached) " >&6
6033 else
6034 cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h. */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 #include <stdlib.h>
6041 #include <stdarg.h>
6042 #include <string.h>
6043 #include <float.h>
6044
6045 int
6046 main ()
6047 {
6048
6049 ;
6050 return 0;
6051 }
6052 _ACEOF
6053 rm -f conftest.$ac_objext
6054 if { (ac_try="$ac_compile"
6055 case "(($ac_try" in
6056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6057 *) ac_try_echo=$ac_try;;
6058 esac
6059 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6060 $as_echo "$ac_try_echo") >&5
6061 (eval "$ac_compile") 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } && {
6068 test -z "$ac_c_werror_flag" ||
6069 test ! -s conftest.err
6070 } && test -s conftest.$ac_objext; then
6071 ac_cv_header_stdc=yes
6072 else
6073 $as_echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6075
6076 ac_cv_header_stdc=no
6077 fi
6078
6079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080
6081 if test $ac_cv_header_stdc = yes; then
6082 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6083 cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h. */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6089 #include <string.h>
6090
6091 _ACEOF
6092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6093 $EGREP "memchr" >/dev/null 2>&1; then
6094 :
6095 else
6096 ac_cv_header_stdc=no
6097 fi
6098 rm -f conftest*
6099
6100 fi
6101
6102 if test $ac_cv_header_stdc = yes; then
6103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6104 cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h. */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 #include <stdlib.h>
6111
6112 _ACEOF
6113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6114 $EGREP "free" >/dev/null 2>&1; then
6115 :
6116 else
6117 ac_cv_header_stdc=no
6118 fi
6119 rm -f conftest*
6120
6121 fi
6122
6123 if test $ac_cv_header_stdc = yes; then
6124 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6125 if test "$cross_compiling" = yes; then
6126 :
6127 else
6128 cat >conftest.$ac_ext <<_ACEOF
6129 /* confdefs.h. */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 #include <ctype.h>
6135 #include <stdlib.h>
6136 #if ((' ' & 0x0FF) == 0x020)
6137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6139 #else
6140 # define ISLOWER(c) \
6141 (('a' <= (c) && (c) <= 'i') \
6142 || ('j' <= (c) && (c) <= 'r') \
6143 || ('s' <= (c) && (c) <= 'z'))
6144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6145 #endif
6146
6147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6148 int
6149 main ()
6150 {
6151 int i;
6152 for (i = 0; i < 256; i++)
6153 if (XOR (islower (i), ISLOWER (i))
6154 || toupper (i) != TOUPPER (i))
6155 return 2;
6156 return 0;
6157 }
6158 _ACEOF
6159 rm -f conftest$ac_exeext
6160 if { (ac_try="$ac_link"
6161 case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164 esac
6165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6166 $as_echo "$ac_try_echo") >&5
6167 (eval "$ac_link") 2>&5
6168 ac_status=$?
6169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6171 { (case "(($ac_try" in
6172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6173 *) ac_try_echo=$ac_try;;
6174 esac
6175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6176 $as_echo "$ac_try_echo") >&5
6177 (eval "$ac_try") 2>&5
6178 ac_status=$?
6179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 :
6182 else
6183 $as_echo "$as_me: program exited with status $ac_status" >&5
6184 $as_echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6186
6187 ( exit $ac_status )
6188 ac_cv_header_stdc=no
6189 fi
6190 rm -rf conftest.dSYM
6191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
6192 fi
6193
6194
6195 fi
6196 fi
6197 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6198 $as_echo "$ac_cv_header_stdc" >&6; }
6199 if test $ac_cv_header_stdc = yes; then
6200
6201 cat >>confdefs.h <<\_ACEOF
6202 #define STDC_HEADERS 1
6203 _ACEOF
6204
6205 fi
6206
6207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6218 inttypes.h stdint.h unistd.h
6219 do
6220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6221 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6222 $as_echo_n "checking for $ac_header... " >&6; }
6223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6224 $as_echo_n "(cached) " >&6
6225 else
6226 cat >conftest.$ac_ext <<_ACEOF
6227 /* confdefs.h. */
6228 _ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6232 $ac_includes_default
6233
6234 #include <$ac_header>
6235 _ACEOF
6236 rm -f conftest.$ac_objext
6237 if { (ac_try="$ac_compile"
6238 case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241 esac
6242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6243 $as_echo "$ac_try_echo") >&5
6244 (eval "$ac_compile") 2>conftest.er1
6245 ac_status=$?
6246 grep -v '^ *+' conftest.er1 >conftest.err
6247 rm -f conftest.er1
6248 cat conftest.err >&5
6249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } && {
6251 test -z "$ac_c_werror_flag" ||
6252 test ! -s conftest.err
6253 } && test -s conftest.$ac_objext; then
6254 eval "$as_ac_Header=yes"
6255 else
6256 $as_echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259 eval "$as_ac_Header=no"
6260 fi
6261
6262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6263 fi
6264 ac_res=`eval 'as_val=${'$as_ac_Header'}
6265 $as_echo "$as_val"'`
6266 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6267 $as_echo "$ac_res" >&6; }
6268 if test `eval 'as_val=${'$as_ac_Header'}
6269 $as_echo "$as_val"'` = yes; then
6270 cat >>confdefs.h <<_ACEOF
6271 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6272 _ACEOF
6273
6274 fi
6275
6276 done
6277
6278
6279
6280 for ac_header in dlfcn.h
6281 do
6282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6283 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6284 $as_echo_n "checking for $ac_header... " >&6; }
6285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 $as_echo_n "(cached) " >&6
6287 else
6288 cat >conftest.$ac_ext <<_ACEOF
6289 /* confdefs.h. */
6290 _ACEOF
6291 cat confdefs.h >>conftest.$ac_ext
6292 cat >>conftest.$ac_ext <<_ACEOF
6293 /* end confdefs.h. */
6294 $ac_includes_default
6295
6296 #include <$ac_header>
6297 _ACEOF
6298 rm -f conftest.$ac_objext
6299 if { (ac_try="$ac_compile"
6300 case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303 esac
6304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6305 $as_echo "$ac_try_echo") >&5
6306 (eval "$ac_compile") 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } && {
6313 test -z "$ac_c_werror_flag" ||
6314 test ! -s conftest.err
6315 } && test -s conftest.$ac_objext; then
6316 eval "$as_ac_Header=yes"
6317 else
6318 $as_echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321 eval "$as_ac_Header=no"
6322 fi
6323
6324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 fi
6326 ac_res=`eval 'as_val=${'$as_ac_Header'}
6327 $as_echo "$as_val"'`
6328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6329 $as_echo "$ac_res" >&6; }
6330 if test `eval 'as_val=${'$as_ac_Header'}
6331 $as_echo "$as_val"'` = yes; then
6332 cat >>confdefs.h <<_ACEOF
6333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6334 _ACEOF
6335
6336 fi
6337
6338 done
6339
6340
6341
6342 # Set options
6343
6344
6345
6346 enable_dlopen=no
6347
6348
6349 enable_win32_dll=no
6350
6351
6352 # Check whether --enable-shared was given.
6353 if test "${enable_shared+set}" = set; then
6354 enableval=$enable_shared; p=${PACKAGE-default}
6355 case $enableval in
6356 yes) enable_shared=yes ;;
6357 no) enable_shared=no ;;
6358 *)
6359 enable_shared=no
6360 # Look at the argument we got. We use all the common list separators.
6361 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6362 for pkg in $enableval; do
6363 IFS="$lt_save_ifs"
6364 if test "X$pkg" = "X$p"; then
6365 enable_shared=yes
6366 fi
6367 done
6368 IFS="$lt_save_ifs"
6369 ;;
6370 esac
6371 else
6372 enable_shared=yes
6373 fi
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383 # Check whether --enable-static was given.
6384 if test "${enable_static+set}" = set; then
6385 enableval=$enable_static; p=${PACKAGE-default}
6386 case $enableval in
6387 yes) enable_static=yes ;;
6388 no) enable_static=no ;;
6389 *)
6390 enable_static=no
6391 # Look at the argument we got. We use all the common list separators.
6392 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6393 for pkg in $enableval; do
6394 IFS="$lt_save_ifs"
6395 if test "X$pkg" = "X$p"; then
6396 enable_static=yes
6397 fi
6398 done
6399 IFS="$lt_save_ifs"
6400 ;;
6401 esac
6402 else
6403 enable_static=yes
6404 fi
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415 # Check whether --with-pic was given.
6416 if test "${with_pic+set}" = set; then
6417 withval=$with_pic; pic_mode="$withval"
6418 else
6419 pic_mode=default
6420 fi
6421
6422
6423 test -z "$pic_mode" && pic_mode=default
6424
6425
6426
6427
6428
6429
6430
6431 # Check whether --enable-fast-install was given.
6432 if test "${enable_fast_install+set}" = set; then
6433 enableval=$enable_fast_install; p=${PACKAGE-default}
6434 case $enableval in
6435 yes) enable_fast_install=yes ;;
6436 no) enable_fast_install=no ;;
6437 *)
6438 enable_fast_install=no
6439 # Look at the argument we got. We use all the common list separators.
6440 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6441 for pkg in $enableval; do
6442 IFS="$lt_save_ifs"
6443 if test "X$pkg" = "X$p"; then
6444 enable_fast_install=yes
6445 fi
6446 done
6447 IFS="$lt_save_ifs"
6448 ;;
6449 esac
6450 else
6451 enable_fast_install=yes
6452 fi
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464 # This can be used to rebuild libtool when needed
6465 LIBTOOL_DEPS="$ltmain"
6466
6467 # Always use our own libtool.
6468 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494 test -z "$LN_S" && LN_S="ln -s"
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509 if test -n "${ZSH_VERSION+set}" ; then
6510 setopt NO_GLOB_SUBST
6511 fi
6512
6513 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6514 $as_echo_n "checking for objdir... " >&6; }
6515 if test "${lt_cv_objdir+set}" = set; then
6516 $as_echo_n "(cached) " >&6
6517 else
6518 rm -f .libs 2>/dev/null
6519 mkdir .libs 2>/dev/null
6520 if test -d .libs; then
6521 lt_cv_objdir=.libs
6522 else
6523 # MS-DOS does not allow filenames that begin with a dot.
6524 lt_cv_objdir=_libs
6525 fi
6526 rmdir .libs 2>/dev/null
6527 fi
6528 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6529 $as_echo "$lt_cv_objdir" >&6; }
6530 objdir=$lt_cv_objdir
6531
6532
6533
6534
6535
6536 cat >>confdefs.h <<_ACEOF
6537 #define LT_OBJDIR "$lt_cv_objdir/"
6538 _ACEOF
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556 case $host_os in
6557 aix3*)
6558 # AIX sometimes has problems with the GCC collect2 program. For some
6559 # reason, if we set the COLLECT_NAMES environment variable, the problems
6560 # vanish in a puff of smoke.
6561 if test "X${COLLECT_NAMES+set}" != Xset; then
6562 COLLECT_NAMES=
6563 export COLLECT_NAMES
6564 fi
6565 ;;
6566 esac
6567
6568 # Sed substitution that helps us do robust quoting. It backslashifies
6569 # metacharacters that are still active within double-quoted strings.
6570 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6571
6572 # Same as above, but do not quote variable references.
6573 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6574
6575 # Sed substitution to delay expansion of an escaped shell variable in a
6576 # double_quote_subst'ed string.
6577 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6578
6579 # Sed substitution to delay expansion of an escaped single quote.
6580 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6581
6582 # Sed substitution to avoid accidental globbing in evaled expressions
6583 no_glob_subst='s/\*/\\\*/g'
6584
6585 # Global variables:
6586 ofile=libtool
6587 can_build_shared=yes
6588
6589 # All known linkers require a `.a' archive for static linking (except MSVC,
6590 # which needs '.lib').
6591 libext=a
6592
6593 with_gnu_ld="$lt_cv_prog_gnu_ld"
6594
6595 old_CC="$CC"
6596 old_CFLAGS="$CFLAGS"
6597
6598 # Set sane defaults for various variables
6599 test -z "$CC" && CC=cc
6600 test -z "$LTCC" && LTCC=$CC
6601 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6602 test -z "$LD" && LD=ld
6603 test -z "$ac_objext" && ac_objext=o
6604
6605 for cc_temp in $compiler""; do
6606 case $cc_temp in
6607 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6608 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6609 \-*) ;;
6610 *) break;;
6611 esac
6612 done
6613 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6614
6615
6616 # Only perform the check for file, if the check method requires it
6617 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6618 case $deplibs_check_method in
6619 file_magic*)
6620 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6621 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6622 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6623 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6624 $as_echo_n "(cached) " >&6
6625 else
6626 case $MAGIC_CMD in
6627 [\\/*] | ?:[\\/]*)
6628 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path .
6629 ;;
6630 *)
6631 lt_save_MAGIC_CMD="$MAGIC_CMD"
6632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6633 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6634 for ac_dir in $ac_dummy; do
6635 IFS="$lt_save_ifs"
6636 test -z "$ac_dir" && ac_dir=.
6637 if test -f $ac_dir/${ac_tool_prefix}file; then
6638 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6639 if test -n "$file_magic_test_file"; then
6640 case $deplibs_check_method in
6641 "file_magic "*)
6642 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6643 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6644 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6645 $EGREP "$file_magic_regex" > /dev/null; then
6646 :
6647 else
6648 cat <<_LT_EOF 1>&2
6649
6650 *** Warning: the command libtool uses to detect shared libraries,
6651 *** $file_magic_cmd, produces output that libtool cannot recognize.
6652 *** The result is that libtool may fail to recognize shared libraries
6653 *** as such. This will affect the creation of libtool libraries that
6654 *** depend on shared libraries, but programs linked with such libtool
6655 *** libraries will work regardless of this problem. Nevertheless, you
6656 *** may want to report the problem to your system manager and/or to
6657 *** bug-libtool@gnu.org
6658
6659 _LT_EOF
6660 fi ;;
6661 esac
6662 fi
6663 break
6664 fi
6665 done
6666 IFS="$lt_save_ifs"
6667 MAGIC_CMD="$lt_save_MAGIC_CMD"
6668 ;;
6669 esac
6670 fi
6671
6672 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6673 if test -n "$MAGIC_CMD"; then
6674 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6675 $as_echo "$MAGIC_CMD" >&6; }
6676 else
6677 { $as_echo "$as_me:$LINENO: result: no" >&5
6678 $as_echo "no" >&6; }
6679 fi
6680
6681
6682
6683
6684
6685 if test -z "$lt_cv_path_MAGIC_CMD"; then
6686 if test -n "$ac_tool_prefix"; then
6687 { $as_echo "$as_me:$LINENO: checking for file" >&5
6688 $as_echo_n "checking for file... " >&6; }
6689 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6690 $as_echo_n "(cached) " >&6
6691 else
6692 case $MAGIC_CMD in
6693 [\\/*] | ?:[\\/]*)
6694 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path .
6695 ;;
6696 *)
6697 lt_save_MAGIC_CMD="$MAGIC_CMD"
6698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6699 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6700 for ac_dir in $ac_dummy; do
6701 IFS="$lt_save_ifs"
6702 test -z "$ac_dir" && ac_dir=.
6703 if test -f $ac_dir/file; then
6704 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6705 if test -n "$file_magic_test_file"; then
6706 case $deplibs_check_method in
6707 "file_magic "*)
6708 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6709 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6710 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6711 $EGREP "$file_magic_regex" > /dev/null; then
6712 :
6713 else
6714 cat <<_LT_EOF 1>&2
6715
6716 *** Warning: the command libtool uses to detect shared libraries,
6717 *** $file_magic_cmd, produces output that libtool cannot recognize.
6718 *** The result is that libtool may fail to recognize shared libraries
6719 *** as such. This will affect the creation of libtool libraries that
6720 *** depend on shared libraries, but programs linked with such libtool
6721 *** libraries will work regardless of this problem. Nevertheless, you
6722 *** may want to report the problem to your system manager and/or to
6723 *** bug-libtool@gnu.org
6724
6725 _LT_EOF
6726 fi ;;
6727 esac
6728 fi
6729 break
6730 fi
6731 done
6732 IFS="$lt_save_ifs"
6733 MAGIC_CMD="$lt_save_MAGIC_CMD"
6734 ;;
6735 esac
6736 fi
6737
6738 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6739 if test -n "$MAGIC_CMD"; then
6740 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6741 $as_echo "$MAGIC_CMD" >&6; }
6742 else
6743 { $as_echo "$as_me:$LINENO: result: no" >&5
6744 $as_echo "no" >&6; }
6745 fi
6746
6747
6748 else
6749 MAGIC_CMD=:
6750 fi
6751 fi
6752
6753 fi
6754 ;;
6755 esac
6756
6757 # Use C for the default configuration in the libtool script
6758
6759 lt_save_CC="$CC"
6760 ac_ext=c
6761 ac_cpp='$CPP $CPPFLAGS'
6762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
6764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765
6766
6767 # Source file extension for C test sources.
6768 ac_ext=c
6769
6770 # Object file extension for compiled C test sources.
6771 objext=o
6772 objext=$objext
6773
6774 # Code to be used in simple compile tests
6775 lt_simple_compile_test_code="int some_variable = 0;"
6776
6777 # Code to be used in simple link tests
6778 lt_simple_link_test_code='int main(){return(0);}'
6779
6780
6781
6782
6783
6784
6785
6786 # If no C compiler was specified, use CC.
6787 LTCC=${LTCC-"$CC"}
6788
6789 # If no C compiler flags were specified, use CFLAGS.
6790 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6791
6792 # Allow CC to be a program name with arguments.
6793 compiler=$CC
6794
6795 # Save the default compiler, since it gets overwritten when the other
6796 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6797 compiler_DEFAULT=$CC
6798
6799 # save warnings/boilerplate of simple test code
6800 ac_outfile=conftest.$ac_objext
6801 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6802 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6803 _lt_compiler_boilerplate=`cat conftest.err`
6804 $RM conftest*
6805
6806 ac_outfile=conftest.$ac_objext
6807 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6808 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6809 _lt_linker_boilerplate=`cat conftest.err`
6810 $RM -r conftest*
6811
6812
6813 if test -n "$compiler"; then
6814
6815 lt_prog_compiler_no_builtin_flag=
6816
6817 if test "$GCC" = yes; then
6818 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6819
6820 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exce ptions" >&5
6821 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6822 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6823 $as_echo_n "(cached) " >&6
6824 else
6825 lt_cv_prog_compiler_rtti_exceptions=no
6826 ac_outfile=conftest.$ac_objext
6827 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6828 lt_compiler_flag="-fno-rtti -fno-exceptions"
6829 # Insert the option either (1) after the last *FLAGS variable, or
6830 # (2) before a word containing "conftest.", or (3) at the end.
6831 # Note that $ac_compile itself does not contain backslashes and begins
6832 # with a dollar sign (not a hyphen), so the echo should work correctly.
6833 # The option is referenced via a variable to avoid confusing sed.
6834 lt_compile=`echo "$ac_compile" | $SED \
6835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6837 -e 's:$: $lt_compiler_flag:'`
6838 (eval echo "\"\$as_me:6838: $lt_compile\"" >&5)
6839 (eval "$lt_compile" 2>conftest.err)
6840 ac_status=$?
6841 cat conftest.err >&5
6842 echo "$as_me:6842: \$? = $ac_status" >&5
6843 if (exit $ac_status) && test -s "$ac_outfile"; then
6844 # The compiler can only warn and ignore the option if not recognized
6845 # So say no if there are warnings other than the usual output.
6846 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6847 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6848 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
6849 lt_cv_prog_compiler_rtti_exceptions=yes
6850 fi
6851 fi
6852 $RM conftest*
6853
6854 fi
6855 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6856 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6857
6858 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6859 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtt i -fno-exceptions"
6860 else
6861 :
6862 fi
6863
6864 fi
6865
6866
6867
6868
6869
6870
6871 lt_prog_compiler_wl=
6872 lt_prog_compiler_pic=
6873 lt_prog_compiler_static=
6874
6875 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6876 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6877
6878 if test "$GCC" = yes; then
6879 lt_prog_compiler_wl='-Wl,'
6880 lt_prog_compiler_static='-static'
6881
6882 case $host_os in
6883 aix*)
6884 # All AIX code is PIC.
6885 if test "$host_cpu" = ia64; then
6886 # AIX 5 now supports IA64 processor
6887 lt_prog_compiler_static='-Bstatic'
6888 fi
6889 ;;
6890
6891 amigaos*)
6892 case $host_cpu in
6893 powerpc)
6894 # see comment about AmigaOS4 .so support
6895 lt_prog_compiler_pic='-fPIC'
6896 ;;
6897 m68k)
6898 # FIXME: we need at least 68020 code to build shared libraries, but
6899 # adding the `-m68020' flag to GCC prevents building anything better ,
6900 # like `-m68040'.
6901 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6902 ;;
6903 esac
6904 ;;
6905
6906 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6907 # PIC is the default for these OSes.
6908 ;;
6909
6910 mingw* | cygwin* | pw32* | os2* | cegcc*)
6911 # This hack is so that the source file can tell whether it is being
6912 # built for inclusion in a dll (and should export symbols for example).
6913 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6914 # (--disable-auto-import) libraries
6915 lt_prog_compiler_pic='-DDLL_EXPORT'
6916 ;;
6917
6918 darwin* | rhapsody*)
6919 # PIC is the default on this platform
6920 # Common symbols not allowed in MH_DYLIB files
6921 lt_prog_compiler_pic='-fno-common'
6922 ;;
6923
6924 hpux*)
6925 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6926 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6927 # sets the default TLS model and affects inlining.
6928 case $host_cpu in
6929 hppa*64*)
6930 # +Z the default
6931 ;;
6932 *)
6933 lt_prog_compiler_pic='-fPIC'
6934 ;;
6935 esac
6936 ;;
6937
6938 interix[3-9]*)
6939 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6940 # Instead, we relocate shared libraries at runtime.
6941 ;;
6942
6943 msdosdjgpp*)
6944 # Just because we use GCC doesn't mean we suddenly get shared libraries
6945 # on systems that don't support them.
6946 lt_prog_compiler_can_build_shared=no
6947 enable_shared=no
6948 ;;
6949
6950 *nto* | *qnx*)
6951 # QNX uses GNU C++, but need to define -shared option too, otherwise
6952 # it will coredump.
6953 lt_prog_compiler_pic='-fPIC -shared'
6954 ;;
6955
6956 sysv4*MP*)
6957 if test -d /usr/nec; then
6958 lt_prog_compiler_pic=-Kconform_pic
6959 fi
6960 ;;
6961
6962 *)
6963 lt_prog_compiler_pic='-fPIC'
6964 ;;
6965 esac
6966 else
6967 # PORTME Check for flag to pass linker flags through the system compiler.
6968 case $host_os in
6969 aix*)
6970 lt_prog_compiler_wl='-Wl,'
6971 if test "$host_cpu" = ia64; then
6972 # AIX 5 now supports IA64 processor
6973 lt_prog_compiler_static='-Bstatic'
6974 else
6975 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6976 fi
6977 ;;
6978
6979 mingw* | cygwin* | pw32* | os2* | cegcc*)
6980 # This hack is so that the source file can tell whether it is being
6981 # built for inclusion in a dll (and should export symbols for example).
6982 lt_prog_compiler_pic='-DDLL_EXPORT'
6983 ;;
6984
6985 hpux9* | hpux10* | hpux11*)
6986 lt_prog_compiler_wl='-Wl,'
6987 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6988 # not for PA HP-UX.
6989 case $host_cpu in
6990 hppa*64*|ia64*)
6991 # +Z the default
6992 ;;
6993 *)
6994 lt_prog_compiler_pic='+Z'
6995 ;;
6996 esac
6997 # Is there a better lt_prog_compiler_static that works with the bundled CC ?
6998 lt_prog_compiler_static='${wl}-a ${wl}archive'
6999 ;;
7000
7001 irix5* | irix6* | nonstopux*)
7002 lt_prog_compiler_wl='-Wl,'
7003 # PIC (with -KPIC) is the default.
7004 lt_prog_compiler_static='-non_shared'
7005 ;;
7006
7007 linux* | k*bsd*-gnu)
7008 case $cc_basename in
7009 # old Intel for x86_64 which still supported -KPIC.
7010 ecc*)
7011 lt_prog_compiler_wl='-Wl,'
7012 lt_prog_compiler_pic='-KPIC'
7013 lt_prog_compiler_static='-static'
7014 ;;
7015 # icc used to be incompatible with GCC.
7016 # ICC 10 doesn't accept -KPIC any more.
7017 icc* | ifort*)
7018 lt_prog_compiler_wl='-Wl,'
7019 lt_prog_compiler_pic='-fPIC'
7020 lt_prog_compiler_static='-static'
7021 ;;
7022 # Lahey Fortran 8.1.
7023 lf95*)
7024 lt_prog_compiler_wl='-Wl,'
7025 lt_prog_compiler_pic='--shared'
7026 lt_prog_compiler_static='--static'
7027 ;;
7028 pgcc* | pgf77* | pgf90* | pgf95*)
7029 # Portland Group compilers (*not* the Pentium gcc compiler,
7030 # which looks to be a dead project)
7031 lt_prog_compiler_wl='-Wl,'
7032 lt_prog_compiler_pic='-fpic'
7033 lt_prog_compiler_static='-Bstatic'
7034 ;;
7035 ccc*)
7036 lt_prog_compiler_wl='-Wl,'
7037 # All Alpha code is PIC.
7038 lt_prog_compiler_static='-non_shared'
7039 ;;
7040 xl*)
7041 # IBM XL C 8.0/Fortran 10.1 on PPC
7042 lt_prog_compiler_wl='-Wl,'
7043 lt_prog_compiler_pic='-qpic'
7044 lt_prog_compiler_static='-qstaticlink'
7045 ;;
7046 *)
7047 case `$CC -V 2>&1 | sed 5q` in
7048 *Sun\ C*)
7049 # Sun C 5.9
7050 lt_prog_compiler_pic='-KPIC'
7051 lt_prog_compiler_static='-Bstatic'
7052 lt_prog_compiler_wl='-Wl,'
7053 ;;
7054 *Sun\ F*)
7055 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7056 lt_prog_compiler_pic='-KPIC'
7057 lt_prog_compiler_static='-Bstatic'
7058 lt_prog_compiler_wl=''
7059 ;;
7060 esac
7061 ;;
7062 esac
7063 ;;
7064
7065 newsos6)
7066 lt_prog_compiler_pic='-KPIC'
7067 lt_prog_compiler_static='-Bstatic'
7068 ;;
7069
7070 *nto* | *qnx*)
7071 # QNX uses GNU C++, but need to define -shared option too, otherwise
7072 # it will coredump.
7073 lt_prog_compiler_pic='-fPIC -shared'
7074 ;;
7075
7076 osf3* | osf4* | osf5*)
7077 lt_prog_compiler_wl='-Wl,'
7078 # All OSF/1 code is PIC.
7079 lt_prog_compiler_static='-non_shared'
7080 ;;
7081
7082 rdos*)
7083 lt_prog_compiler_static='-non_shared'
7084 ;;
7085
7086 solaris*)
7087 lt_prog_compiler_pic='-KPIC'
7088 lt_prog_compiler_static='-Bstatic'
7089 case $cc_basename in
7090 f77* | f90* | f95*)
7091 lt_prog_compiler_wl='-Qoption ld ';;
7092 *)
7093 lt_prog_compiler_wl='-Wl,';;
7094 esac
7095 ;;
7096
7097 sunos4*)
7098 lt_prog_compiler_wl='-Qoption ld '
7099 lt_prog_compiler_pic='-PIC'
7100 lt_prog_compiler_static='-Bstatic'
7101 ;;
7102
7103 sysv4 | sysv4.2uw2* | sysv4.3*)
7104 lt_prog_compiler_wl='-Wl,'
7105 lt_prog_compiler_pic='-KPIC'
7106 lt_prog_compiler_static='-Bstatic'
7107 ;;
7108
7109 sysv4*MP*)
7110 if test -d /usr/nec ;then
7111 lt_prog_compiler_pic='-Kconform_pic'
7112 lt_prog_compiler_static='-Bstatic'
7113 fi
7114 ;;
7115
7116 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7117 lt_prog_compiler_wl='-Wl,'
7118 lt_prog_compiler_pic='-KPIC'
7119 lt_prog_compiler_static='-Bstatic'
7120 ;;
7121
7122 unicos*)
7123 lt_prog_compiler_wl='-Wl,'
7124 lt_prog_compiler_can_build_shared=no
7125 ;;
7126
7127 uts4*)
7128 lt_prog_compiler_pic='-pic'
7129 lt_prog_compiler_static='-Bstatic'
7130 ;;
7131
7132 *)
7133 lt_prog_compiler_can_build_shared=no
7134 ;;
7135 esac
7136 fi
7137
7138 case $host_os in
7139 # For platforms which do not support PIC, -DPIC is meaningless:
7140 *djgpp*)
7141 lt_prog_compiler_pic=
7142 ;;
7143 *)
7144 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7145 ;;
7146 esac
7147 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7148 $as_echo "$lt_prog_compiler_pic" >&6; }
7149
7150
7151
7152
7153
7154
7155 #
7156 # Check to make sure the PIC flag actually works.
7157 #
7158 if test -n "$lt_prog_compiler_pic"; then
7159 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_p ic works" >&5
7160 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7161 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7162 $as_echo_n "(cached) " >&6
7163 else
7164 lt_cv_prog_compiler_pic_works=no
7165 ac_outfile=conftest.$ac_objext
7166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7167 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7168 # Insert the option either (1) after the last *FLAGS variable, or
7169 # (2) before a word containing "conftest.", or (3) at the end.
7170 # Note that $ac_compile itself does not contain backslashes and begins
7171 # with a dollar sign (not a hyphen), so the echo should work correctly.
7172 # The option is referenced via a variable to avoid confusing sed.
7173 lt_compile=`echo "$ac_compile" | $SED \
7174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7176 -e 's:$: $lt_compiler_flag:'`
7177 (eval echo "\"\$as_me:7177: $lt_compile\"" >&5)
7178 (eval "$lt_compile" 2>conftest.err)
7179 ac_status=$?
7180 cat conftest.err >&5
7181 echo "$as_me:7181: \$? = $ac_status" >&5
7182 if (exit $ac_status) && test -s "$ac_outfile"; then
7183 # The compiler can only warn and ignore the option if not recognized
7184 # So say no if there are warnings other than the usual output.
7185 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7186 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7187 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; the n
7188 lt_cv_prog_compiler_pic_works=yes
7189 fi
7190 fi
7191 $RM conftest*
7192
7193 fi
7194 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7195 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7196
7197 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7198 case $lt_prog_compiler_pic in
7199 "" | " "*) ;;
7200 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7201 esac
7202 else
7203 lt_prog_compiler_pic=
7204 lt_prog_compiler_can_build_shared=no
7205 fi
7206
7207 fi
7208
7209
7210
7211
7212
7213
7214 #
7215 # Check to make sure the static flag actually works.
7216 #
7217 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7218 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_fla g works" >&5
7219 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6 ; }
7220 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7221 $as_echo_n "(cached) " >&6
7222 else
7223 lt_cv_prog_compiler_static_works=no
7224 save_LDFLAGS="$LDFLAGS"
7225 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7226 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7227 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7228 # The linker can only warn and ignore the option if not recognized
7229 # So say no if there are warnings
7230 if test -s conftest.err; then
7231 # Append any errors to the config.log.
7232 cat conftest.err 1>&5
7233 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7234 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7235 if diff conftest.exp conftest.er2 >/dev/null; then
7236 lt_cv_prog_compiler_static_works=yes
7237 fi
7238 else
7239 lt_cv_prog_compiler_static_works=yes
7240 fi
7241 fi
7242 $RM -r conftest*
7243 LDFLAGS="$save_LDFLAGS"
7244
7245 fi
7246 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7247 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7248
7249 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7250 :
7251 else
7252 lt_prog_compiler_static=
7253 fi
7254
7255
7256
7257
7258
7259
7260
7261 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_obje xt" >&5
7262 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7263 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7264 $as_echo_n "(cached) " >&6
7265 else
7266 lt_cv_prog_compiler_c_o=no
7267 $RM -r conftest 2>/dev/null
7268 mkdir conftest
7269 cd conftest
7270 mkdir out
7271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7272
7273 lt_compiler_flag="-o out/conftest2.$ac_objext"
7274 # Insert the option either (1) after the last *FLAGS variable, or
7275 # (2) before a word containing "conftest.", or (3) at the end.
7276 # Note that $ac_compile itself does not contain backslashes and begins
7277 # with a dollar sign (not a hyphen), so the echo should work correctly.
7278 lt_compile=`echo "$ac_compile" | $SED \
7279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7281 -e 's:$: $lt_compiler_flag:'`
7282 (eval echo "\"\$as_me:7282: $lt_compile\"" >&5)
7283 (eval "$lt_compile" 2>out/conftest.err)
7284 ac_status=$?
7285 cat out/conftest.err >&5
7286 echo "$as_me:7286: \$? = $ac_status" >&5
7287 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7288 then
7289 # The compiler can only warn and ignore the option if not recognized
7290 # So say no if there are warnings
7291 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7292 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7293 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d ev/null; then
7294 lt_cv_prog_compiler_c_o=yes
7295 fi
7296 fi
7297 chmod u+w . 2>&5
7298 $RM conftest*
7299 # SGI C++ compiler will create directory out/ii_files/ for
7300 # template instantiation
7301 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7302 $RM out/* && rmdir out
7303 cd ..
7304 $RM -r conftest
7305 $RM conftest*
7306
7307 fi
7308 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7309 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7310
7311
7312
7313
7314
7315
7316 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_obje xt" >&5
7317 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7318 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7319 $as_echo_n "(cached) " >&6
7320 else
7321 lt_cv_prog_compiler_c_o=no
7322 $RM -r conftest 2>/dev/null
7323 mkdir conftest
7324 cd conftest
7325 mkdir out
7326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7327
7328 lt_compiler_flag="-o out/conftest2.$ac_objext"
7329 # Insert the option either (1) after the last *FLAGS variable, or
7330 # (2) before a word containing "conftest.", or (3) at the end.
7331 # Note that $ac_compile itself does not contain backslashes and begins
7332 # with a dollar sign (not a hyphen), so the echo should work correctly.
7333 lt_compile=`echo "$ac_compile" | $SED \
7334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7336 -e 's:$: $lt_compiler_flag:'`
7337 (eval echo "\"\$as_me:7337: $lt_compile\"" >&5)
7338 (eval "$lt_compile" 2>out/conftest.err)
7339 ac_status=$?
7340 cat out/conftest.err >&5
7341 echo "$as_me:7341: \$? = $ac_status" >&5
7342 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7343 then
7344 # The compiler can only warn and ignore the option if not recognized
7345 # So say no if there are warnings
7346 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7347 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7348 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/d ev/null; then
7349 lt_cv_prog_compiler_c_o=yes
7350 fi
7351 fi
7352 chmod u+w . 2>&5
7353 $RM conftest*
7354 # SGI C++ compiler will create directory out/ii_files/ for
7355 # template instantiation
7356 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7357 $RM out/* && rmdir out
7358 cd ..
7359 $RM -r conftest
7360 $RM conftest*
7361
7362 fi
7363 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7364 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7365
7366
7367
7368
7369 hard_links="nottested"
7370 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7371 # do not overwrite the value of need_locks provided by the user
7372 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7373 $as_echo_n "checking if we can lock with hard links... " >&6; }
7374 hard_links=yes
7375 $RM conftest*
7376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7377 touch conftest.a
7378 ln conftest.a conftest.b 2>&5 || hard_links=no
7379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7380 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7381 $as_echo "$hard_links" >&6; }
7382 if test "$hard_links" = no; then
7383 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \` make -j' may be unsafe" >&5
7384 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may b e unsafe" >&2;}
7385 need_locks=warn
7386 fi
7387 else
7388 need_locks=no
7389 fi
7390
7391
7392
7393
7394
7395
7396 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) suppor ts shared libraries" >&5
7397 $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie s... " >&6; }
7398
7399 runpath_var=
7400 allow_undefined_flag=
7401 always_export_symbols=no
7402 archive_cmds=
7403 archive_expsym_cmds=
7404 compiler_needs_object=no
7405 enable_shared_with_static_runtimes=no
7406 export_dynamic_flag_spec=
7407 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\ ''s/.* //'\'' | sort | uniq > $export_symbols'
7408 hardcode_automatic=no
7409 hardcode_direct=no
7410 hardcode_direct_absolute=no
7411 hardcode_libdir_flag_spec=
7412 hardcode_libdir_flag_spec_ld=
7413 hardcode_libdir_separator=
7414 hardcode_minus_L=no
7415 hardcode_shlibpath_var=unsupported
7416 inherit_rpath=no
7417 link_all_deplibs=unknown
7418 module_cmds=
7419 module_expsym_cmds=
7420 old_archive_from_new_cmds=
7421 old_archive_from_expsyms_cmds=
7422 thread_safe_flag_spec=
7423 whole_archive_flag_spec=
7424 # include_expsyms should be a list of space-separated symbols to be *always*
7425 # included in the symbol list
7426 include_expsyms=
7427 # exclude_expsyms can be an extended regexp of symbols to exclude
7428 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7429 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7430 # as well as any symbol that contains `d'.
7431 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7432 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7433 # platforms (ab)use it in PIC code, but their linkers get confused if
7434 # the symbol is explicitly referenced. Since portable code cannot
7435 # rely on this symbol name, it's probably fine to never include it in
7436 # preloaded symbol tables.
7437 # Exclude shared library initialization/finalization symbols.
7438 extract_expsyms_cmds=
7439
7440 case $host_os in
7441 cygwin* | mingw* | pw32* | cegcc*)
7442 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7443 # When not using gcc, we currently assume that we are using
7444 # Microsoft Visual C++.
7445 if test "$GCC" != yes; then
7446 with_gnu_ld=no
7447 fi
7448 ;;
7449 interix*)
7450 # we just hope/assume this is gcc and not c89 (= MSVC++)
7451 with_gnu_ld=yes
7452 ;;
7453 openbsd*)
7454 with_gnu_ld=no
7455 ;;
7456 esac
7457
7458 ld_shlibs=yes
7459 if test "$with_gnu_ld" = yes; then
7460 # If archive_cmds runs LD, not CC, wlarc should be empty
7461 wlarc='${wl}'
7462
7463 # Set some defaults for GNU ld with shared library support. These
7464 # are reset later if shared libraries are not supported. Putting them
7465 # here allows them to be overridden if necessary.
7466 runpath_var=LD_RUN_PATH
7467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7468 export_dynamic_flag_spec='${wl}--export-dynamic'
7469 # ancient GNU ld didn't support --whole-archive et. al.
7470 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7471 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--n o-whole-archive'
7472 else
7473 whole_archive_flag_spec=
7474 fi
7475 supports_anon_versioning=no
7476 case `$LD -v 2>&1` in
7477 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7478 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7479 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7480 *\ 2.11.*) ;; # other 2.11 versions
7481 *) supports_anon_versioning=yes ;;
7482 esac
7483
7484 # See if GNU ld supports shared libraries.
7485 case $host_os in
7486 aix[3-9]*)
7487 # On AIX/PPC, the GNU linker is very broken
7488 if test "$host_cpu" != ia64; then
7489 ld_shlibs=no
7490 cat <<_LT_EOF 1>&2
7491
7492 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7493 *** to be unable to reliably create shared libraries on AIX.
7494 *** Therefore, libtool is disabling shared libraries support. If you
7495 *** really care for shared libraries, you may want to modify your PATH
7496 *** so that a non-GNU linker is found, and then restart.
7497
7498 _LT_EOF
7499 fi
7500 ;;
7501
7502 amigaos*)
7503 case $host_cpu in
7504 powerpc)
7505 # see comment about AmigaOS4 .so support
7506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
7507 archive_expsym_cmds=''
7508 ;;
7509 m68k)
7510 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAM E $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $o utput_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a 2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary .data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7511 hardcode_libdir_flag_spec='-L$libdir'
7512 hardcode_minus_L=yes
7513 ;;
7514 esac
7515 ;;
7516
7517 beos*)
7518 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7519 allow_undefined_flag=unsupported
7520 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7521 # support --undefined. This deserves some investigation. FIXME
7522 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-sonam e $wl$soname -o $lib'
7523 else
7524 ld_shlibs=no
7525 fi
7526 ;;
7527
7528 cygwin* | mingw* | pw32* | cegcc*)
7529 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7530 # as there is no search path for DLLs.
7531 hardcode_libdir_flag_spec='-L$libdir'
7532 allow_undefined_flag=unsupported
7533 always_export_symbols=no
7534 enable_shared_with_static_runtimes=yes
7535 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SE D -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s /.*[ ]//'\'' | sort | uniq > $export_symbols'
7536
7537 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_o bjdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7539 # If the export-symbols file already is a .def file (1st line
7540 # is EXPORTS), use it as is; otherwise, prepend...
7541 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; th en
7542 cp $export_symbols $output_objdir/$soname.def;
7543 else
7544 echo EXPORTS > $output_objdir/$soname.def;
7545 cat $export_symbols >> $output_objdir/$soname.def;
7546 fi~
7547 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib - Xlinker $lib'
7548 else
7549 ld_shlibs=no
7550 fi
7551 ;;
7552
7553 interix[3-9]*)
7554 hardcode_direct=no
7555 hardcode_shlibpath_var=no
7556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7557 export_dynamic_flag_spec='${wl}-E'
7558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7559 # Instead, shared libraries are loaded at an image base (0x10000000 by
7560 # default) and relocated if they conflict, which is a slow very memory
7561 # consuming and fragmenting process. To avoid this, we pick a random,
7562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7563 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl }-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 13421772 80` -o $lib'
7565 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'
7566 ;;
7567
7568 gnu* | linux* | tpf* | k*bsd*-gnu)
7569 tmp_diet=no
7570 if test "$host_os" = linux-dietlibc; then
7571 case $cc_basename in
7572 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!d iet-dyn)
7573 esac
7574 fi
7575 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7576 && test "$tmp_diet" = no
7577 then
7578 tmp_addflag=
7579 tmp_sharedflag='-shared'
7580 case $cc_basename,$host_cpu in
7581 pgcc*) # Portland Group C compiler
7582 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'
7583 tmp_addflag=' $pic_flag'
7584 ;;
7585 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7586 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'
7587 tmp_addflag=' $pic_flag -Mnomain' ;;
7588 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7589 tmp_addflag=' -i_dynamic' ;;
7590 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7591 tmp_addflag=' -i_dynamic -nofor_main' ;;
7592 ifc* | ifort*) # Intel Fortran compiler
7593 tmp_addflag=' -nofor_main' ;;
7594 lf95*) # Lahey Fortran 8.1
7595 whole_archive_flag_spec=
7596 tmp_sharedflag='--shared' ;;
7597 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf bel ow)
7598 tmp_sharedflag='-qmkshrobj'
7599 tmp_addflag= ;;
7600 esac
7601 case `$CC -V 2>&1 | sed 5q` in
7602 *Sun\ C*) # Sun C 5.9
7603 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for co nv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenien ce,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7604 compiler_needs_object=yes
7605 tmp_sharedflag='-G' ;;
7606 *Sun\ F*) # Sun Fortran 8.3
7607 tmp_sharedflag='-G' ;;
7608 esac
7609 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $c ompiler_flags ${wl}-soname $wl$soname -o $lib'
7610
7611 if test "x$supports_anon_versioning" = xyes; then
7612 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7613 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libn ame.ver~
7614 echo "local: *; };" >> $output_objdir/$libname.ver~
7615 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_fl ags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ve r -o $lib'
7616 fi
7617
7618 case $cc_basename in
7619 xlf*)
7620 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7621 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archiv e'
7622 hardcode_libdir_flag_spec=
7623 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7624 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $s oname -o $lib'
7625 if test "x$supports_anon_versioning" = xyes; then
7626 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7627 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$li bname.ver~
7628 echo "local: *; };" >> $output_objdir/$libname.ver~
7629 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -ver sion-script $output_objdir/$libname.ver -o $lib'
7630 fi
7631 ;;
7632 esac
7633 else
7634 ld_shlibs=no
7635 fi
7636 ;;
7637
7638 netbsd*)
7639 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7640 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7641 wlarc=
7642 else
7643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl} -soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7645 fi
7646 ;;
7647
7648 solaris*)
7649 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7650 ld_shlibs=no
7651 cat <<_LT_EOF 1>&2
7652
7653 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7654 *** create shared libraries on Solaris systems. Therefore, libtool
7655 *** is disabling shared libraries support. We urge you to upgrade GNU
7656 *** binutils to release 2.9.1 or newer. Another option is to modify
7657 *** your PATH or compiler configuration so that the native linker is
7658 *** used, and then restart.
7659
7660 _LT_EOF
7661 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; the n
7662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl} -soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7664 else
7665 ld_shlibs=no
7666 fi
7667 ;;
7668
7669 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7670 case `$LD -v 2>&1` in
7671 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7672 ld_shlibs=no
7673 cat <<_LT_EOF 1>&2
7674
7675 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7676 *** reliably create shared libraries on SCO systems. Therefore, libtool
7677 *** is disabling shared libraries support. We urge you to upgrade GNU
7678 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7679 *** your PATH or compiler configuration so that the native linker is
7680 *** used, and then restart.
7681
7682 _LT_EOF
7683 ;;
7684 *)
7685 # For security reasons, it is highly recommended that you always
7686 # use absolute paths for naming shared libraries, and exclude the
7687 # DT_RUNPATH tag from executables and libraries. But doing so
7688 # requires that you compile everything twice, which is a pain.
7689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; t hen
7690 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
7692 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $ {wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7693 else
7694 ld_shlibs=no
7695 fi
7696 ;;
7697 esac
7698 ;;
7699
7700 sunos4*)
7701 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7702 wlarc=
7703 hardcode_direct=yes
7704 hardcode_shlibpath_var=no
7705 ;;
7706
7707 *)
7708 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl} -soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7711 else
7712 ld_shlibs=no
7713 fi
7714 ;;
7715 esac
7716
7717 if test "$ld_shlibs" = no; then
7718 runpath_var=
7719 hardcode_libdir_flag_spec=
7720 export_dynamic_flag_spec=
7721 whole_archive_flag_spec=
7722 fi
7723 else
7724 # PORTME fill in a description of your system's linker (not GNU ld)
7725 case $host_os in
7726 aix3*)
7727 allow_undefined_flag=unsupported
7728 always_export_symbols=yes
7729 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $link er_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objd ir/$soname'
7730 # Note: this linker hardcodes the directories in LIBPATH if there
7731 # are no directories specified by -L.
7732 hardcode_minus_L=yes
7733 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7734 # Neither direct hardcoding nor static linking is supported with a
7735 # broken collect2.
7736 hardcode_direct=unsupported
7737 fi
7738 ;;
7739
7740 aix[4-9]*)
7741 if test "$host_cpu" = ia64; then
7742 # On IA64, the linker does run time linking by default, so we don't
7743 # have to do anything special.
7744 aix_use_runtimelinking=no
7745 exp_sym_flag='-Bexport'
7746 no_entry_flag=""
7747 else
7748 # If we're using GNU nm, then we don't want the "-C" option.
7749 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7750 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7751 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'
7752 else
7753 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'
7754 fi
7755 aix_use_runtimelinking=no
7756
7757 # Test if we are trying to use run time linking or normal
7758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7759 # need to do runtime linking.
7760 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7761 for ld_flag in $LDFLAGS; do
7762 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7763 aix_use_runtimelinking=yes
7764 break
7765 fi
7766 done
7767 ;;
7768 esac
7769
7770 exp_sym_flag='-bexport'
7771 no_entry_flag='-bnoentry'
7772 fi
7773
7774 # When large executables or shared objects are built, AIX ld can
7775 # have problems creating the table of contents. If linking a library
7776 # or program results in "error TOC overflow" add -mminimal-toc to
7777 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7778 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7779
7780 archive_cmds=''
7781 hardcode_direct=yes
7782 hardcode_direct_absolute=yes
7783 hardcode_libdir_separator=':'
7784 link_all_deplibs=yes
7785 file_list_spec='${wl}-f,'
7786
7787 if test "$GCC" = yes; then
7788 case $host_os in aix4.[012]|aix4.[012].*)
7789 # We only want to do this on AIX 4.2 and lower, the check
7790 # below for broken collect2 doesn't work under 4.3+
7791 collect2name=`${CC} -print-prog-name=collect2`
7792 if test -f "$collect2name" &&
7793 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7794 then
7795 # We have reworked collect2
7796 :
7797 else
7798 # We have old collect2
7799 hardcode_direct=unsupported
7800 # It fails to find uninstalled libraries when the uninstalled
7801 # path is not listed in the libpath. Setting hardcode_minus_L
7802 # to unsupported forces relinking
7803 hardcode_minus_L=yes
7804 hardcode_libdir_flag_spec='-L$libdir'
7805 hardcode_libdir_separator=
7806 fi
7807 ;;
7808 esac
7809 shared_flag='-shared'
7810 if test "$aix_use_runtimelinking" = yes; then
7811 shared_flag="$shared_flag "'${wl}-G'
7812 fi
7813 else
7814 # not using gcc
7815 if test "$host_cpu" = ia64; then
7816 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7817 # chokes on -Wl,-G. The following line is correct:
7818 shared_flag='-G'
7819 else
7820 if test "$aix_use_runtimelinking" = yes; then
7821 shared_flag='${wl}-G'
7822 else
7823 shared_flag='${wl}-bM:SRE'
7824 fi
7825 fi
7826 fi
7827
7828 export_dynamic_flag_spec='${wl}-bexpall'
7829 # It seems that -bexpall does not export symbols beginning with
7830 # underscore (_), so it is better to generate a list of symbols to export.
7831 always_export_symbols=yes
7832 if test "$aix_use_runtimelinking" = yes; then
7833 # Warning - without using the other runtime loading flags (-brtl),
7834 # -berok will link without error, but may produce a broken library.
7835 allow_undefined_flag='-berok'
7836 # Determine the default libpath from the value encoded in an
7837 # empty executable.
7838 cat >conftest.$ac_ext <<_ACEOF
7839 /* confdefs.h. */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7844
7845 int
7846 main ()
7847 {
7848
7849 ;
7850 return 0;
7851 }
7852 _ACEOF
7853 rm -f conftest.$ac_objext conftest$ac_exeext
7854 if { (ac_try="$ac_link"
7855 case "(($ac_try" in
7856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857 *) ac_try_echo=$ac_try;;
7858 esac
7859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7860 $as_echo "$ac_try_echo") >&5
7861 (eval "$ac_link") 2>conftest.er1
7862 ac_status=$?
7863 grep -v '^ *+' conftest.er1 >conftest.err
7864 rm -f conftest.er1
7865 cat conftest.err >&5
7866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } && {
7868 test -z "$ac_c_werror_flag" ||
7869 test ! -s conftest.err
7870 } && test -s conftest$ac_exeext && {
7871 test "$cross_compiling" = yes ||
7872 $as_test_x conftest$ac_exeext
7873 }; then
7874
7875 lt_aix_libpath_sed='
7876 /Import File Strings/,/^$/ {
7877 /^0/ {
7878 s/^0 *\(.*\)$/\1/
7879 p
7880 }
7881 }'
7882 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat h_sed"`
7883 # Check for a 64-bit object if we didn't find anything.
7884 if test -z "$aix_libpath"; then
7885 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l ibpath_sed"`
7886 fi
7887 else
7888 $as_echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7890
7891
7892 fi
7893
7894 rm -rf conftest.dSYM
7895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7896 conftest$ac_exeext conftest.$ac_ext
7897 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7898
7899 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7900 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_s ym_flag:\$export_symbols $shared_flag"
7901 else
7902 if test "$host_cpu" = ia64; then
7903 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7904 allow_undefined_flag="-z nodefs"
7905 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $li bobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_f lag} '"\${wl}$exp_sym_flag:\$export_symbols"
7906 else
7907 # Determine the default libpath from the value encoded in an
7908 # empty executable.
7909 cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h. */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915
7916 int
7917 main ()
7918 {
7919
7920 ;
7921 return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest.$ac_objext conftest$ac_exeext
7925 if { (ac_try="$ac_link"
7926 case "(($ac_try" in
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7929 esac
7930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7931 $as_echo "$ac_try_echo") >&5
7932 (eval "$ac_link") 2>conftest.er1
7933 ac_status=$?
7934 grep -v '^ *+' conftest.er1 >conftest.err
7935 rm -f conftest.er1
7936 cat conftest.err >&5
7937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } && {
7939 test -z "$ac_c_werror_flag" ||
7940 test ! -s conftest.err
7941 } && test -s conftest$ac_exeext && {
7942 test "$cross_compiling" = yes ||
7943 $as_test_x conftest$ac_exeext
7944 }; then
7945
7946 lt_aix_libpath_sed='
7947 /Import File Strings/,/^$/ {
7948 /^0/ {
7949 s/^0 *\(.*\)$/\1/
7950 p
7951 }
7952 }'
7953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpat h_sed"`
7954 # Check for a 64-bit object if we didn't find anything.
7955 if test -z "$aix_libpath"; then
7956 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_l ibpath_sed"`
7957 fi
7958 else
7959 $as_echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7961
7962
7963 fi
7964
7965 rm -rf conftest.dSYM
7966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7967 conftest$ac_exeext conftest.$ac_ext
7968 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7969
7970 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7971 # Warning - without using the other run time loading flags,
7972 # -berok will link without error, but may produce a broken library.
7973 no_undefined_flag=' ${wl}-bernotok'
7974 allow_undefined_flag=' ${wl}-berok'
7975 # Exported symbols can be pulled into shared objects from archives
7976 whole_archive_flag_spec='$convenience'
7977 archive_cmds_need_lc=yes
7978 # This is similar to how AIX traditionally builds its shared libraries .
7979 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $li bobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_un defined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$so name'
7980 fi
7981 fi
7982 ;;
7983
7984 amigaos*)
7985 case $host_cpu in
7986 powerpc)
7987 # see comment about AmigaOS4 .so support
7988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-so name $wl$soname -o $lib'
7989 archive_expsym_cmds=''
7990 ;;
7991 m68k)
7992 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAM E $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $o utput_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a 2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary .data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7993 hardcode_libdir_flag_spec='-L$libdir'
7994 hardcode_minus_L=yes
7995 ;;
7996 esac
7997 ;;
7998
7999 bsdi[45]*)
8000 export_dynamic_flag_spec=-rdynamic
8001 ;;
8002
8003 cygwin* | mingw* | pw32* | cegcc*)
8004 # When not using gcc, we currently assume that we are using
8005 # Microsoft Visual C++.
8006 # hardcode_libdir_flag_spec is actually meaningless, as there is
8007 # no search path for DLLs.
8008 hardcode_libdir_flag_spec=' '
8009 allow_undefined_flag=unsupported
8010 # Tell ltmain to make .lib files, not .a files.
8011 libext=lib
8012 # Tell ltmain to make .dll files, not .so files.
8013 shrext_cmds=".dll"
8014 # FIXME: Setting linknames here is a bad hack.
8015 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $X sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8016 # The linker will automatically build a .lib file if we build a DLL.
8017 old_archive_from_new_cmds='true'
8018 # FIXME: Should let the user specify the lib program.
8019 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8020 fix_srcfile_path='`cygpath -w "$srcfile"`'
8021 enable_shared_with_static_runtimes=yes
8022 ;;
8023
8024 darwin* | rhapsody*)
8025
8026
8027 archive_cmds_need_lc=no
8028 hardcode_direct=no
8029 hardcode_automatic=yes
8030 hardcode_shlibpath_var=unsupported
8031 whole_archive_flag_spec=''
8032 link_all_deplibs=yes
8033 allow_undefined_flag="$_lt_dar_allow_undefined"
8034 case $cc_basename in
8035 ifort*) _lt_dar_can_shared=yes ;;
8036 *) _lt_dar_can_shared=$GCC ;;
8037 esac
8038 if test "$_lt_dar_can_shared" = "yes"; then
8039 output_verbose_link_cmd=echo
8040 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$d eplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_sing le_mod${_lt_dsymutil}"
8041 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplib s \$compiler_flags${_lt_dsymutil}"
8042 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${li bname}-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}"
8043 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}"
8044
8045 else
8046 ld_shlibs=no
8047 fi
8048
8049 ;;
8050
8051 dgux*)
8052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8053 hardcode_libdir_flag_spec='-L$libdir'
8054 hardcode_shlibpath_var=no
8055 ;;
8056
8057 freebsd1*)
8058 ld_shlibs=no
8059 ;;
8060
8061 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8062 # support. Future versions do this automatically, but an explicit c++rt0.o
8063 # does not break anything, and helps significantly (at the cost of a little
8064 # extra space).
8065 freebsd2.2*)
8066 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr /lib/c++rt0.o'
8067 hardcode_libdir_flag_spec='-R$libdir'
8068 hardcode_direct=yes
8069 hardcode_shlibpath_var=no
8070 ;;
8071
8072 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8073 freebsd2*)
8074 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8075 hardcode_direct=yes
8076 hardcode_minus_L=yes
8077 hardcode_shlibpath_var=no
8078 ;;
8079
8080 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8081 freebsd* | dragonfly*)
8082 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8083 hardcode_libdir_flag_spec='-R$libdir'
8084 hardcode_direct=yes
8085 hardcode_shlibpath_var=no
8086 ;;
8087
8088 hpux9*)
8089 if test "$GCC" = yes; then
8090 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'
8091 else
8092 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $o utput_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8093 fi
8094 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8095 hardcode_libdir_separator=:
8096 hardcode_direct=yes
8097
8098 # hardcode_minus_L: Not really in the search PATH,
8099 # but as the default location of the library.
8100 hardcode_minus_L=yes
8101 export_dynamic_flag_spec='${wl}-E'
8102 ;;
8103
8104 hpux10*)
8105 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8106 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$insta ll_libdir -o $lib $libobjs $deplibs $compiler_flags'
8107 else
8108 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $dep libs $linker_flags'
8109 fi
8110 if test "$with_gnu_ld" = no; then
8111 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8112 hardcode_libdir_flag_spec_ld='+b $libdir'
8113 hardcode_libdir_separator=:
8114 hardcode_direct=yes
8115 hardcode_direct_absolute=yes
8116 export_dynamic_flag_spec='${wl}-E'
8117 # hardcode_minus_L: Not really in the search PATH,
8118 # but as the default location of the library.
8119 hardcode_minus_L=yes
8120 fi
8121 ;;
8122
8123 hpux11*)
8124 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8125 case $host_cpu in
8126 hppa*64*)
8127 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $depli bs $compiler_flags'
8128 ;;
8129 ia64*)
8130 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrp ath -o $lib $libobjs $deplibs $compiler_flags'
8131 ;;
8132 *)
8133 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$ins tall_libdir -o $lib $libobjs $deplibs $compiler_flags'
8134 ;;
8135 esac
8136 else
8137 case $host_cpu in
8138 hppa*64*)
8139 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $c ompiler_flags'
8140 ;;
8141 ia64*)
8142 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8143 ;;
8144 *)
8145 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8146 ;;
8147 esac
8148 fi
8149 if test "$with_gnu_ld" = no; then
8150 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8151 hardcode_libdir_separator=:
8152
8153 case $host_cpu in
8154 hppa*64*|ia64*)
8155 hardcode_direct=no
8156 hardcode_shlibpath_var=no
8157 ;;
8158 *)
8159 hardcode_direct=yes
8160 hardcode_direct_absolute=yes
8161 export_dynamic_flag_spec='${wl}-E'
8162
8163 # hardcode_minus_L: Not really in the search PATH,
8164 # but as the default location of the library.
8165 hardcode_minus_L=yes
8166 ;;
8167 esac
8168 fi
8169 ;;
8170
8171 irix5* | irix6* | nonstopux*)
8172 if test "$GCC" = yes; then
8173 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'
8174 # Try to use the -exported_symbol ld option, if it does not
8175 # work, assume that -exports_file does not work either and
8176 # implicitly export all symbols.
8177 save_LDFLAGS="$LDFLAGS"
8178 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_re gistry ${wl}/dev/null"
8179 cat >conftest.$ac_ext <<_ACEOF
8180 int foo(void) {}
8181 _ACEOF
8182 rm -f conftest.$ac_objext conftest$ac_exeext
8183 if { (ac_try="$ac_link"
8184 case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8187 esac
8188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8189 $as_echo "$ac_try_echo") >&5
8190 (eval "$ac_link") 2>conftest.er1
8191 ac_status=$?
8192 grep -v '^ *+' conftest.er1 >conftest.err
8193 rm -f conftest.er1
8194 cat conftest.err >&5
8195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && {
8197 test -z "$ac_c_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest$ac_exeext && {
8200 test "$cross_compiling" = yes ||
8201 $as_test_x conftest$ac_exeext
8202 }; then
8203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-sonam e ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstrin g" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-expor ts_file ${wl}$export_symbols -o $lib'
8204
8205 else
8206 $as_echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8208
8209
8210 fi
8211
8212 rm -rf conftest.dSYM
8213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8214 conftest$ac_exeext conftest.$ac_ext
8215 LDFLAGS="$save_LDFLAGS"
8216 else
8217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $son ame `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_r egistry ${output_objdir}/so_locations -o $lib'
8218 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -sona me $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -u pdate_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $l ib'
8219 fi
8220 archive_cmds_need_lc='no'
8221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8222 hardcode_libdir_separator=:
8223 inherit_rpath=yes
8224 link_all_deplibs=yes
8225 ;;
8226
8227 netbsd*)
8228 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8229 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8230 else
8231 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8232 fi
8233 hardcode_libdir_flag_spec='-R$libdir'
8234 hardcode_direct=yes
8235 hardcode_shlibpath_var=no
8236 ;;
8237
8238 newsos6)
8239 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8240 hardcode_direct=yes
8241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8242 hardcode_libdir_separator=:
8243 hardcode_shlibpath_var=no
8244 ;;
8245
8246 *nto* | *qnx*)
8247 ;;
8248
8249 openbsd*)
8250 if test -f /usr/libexec/ld.so; then
8251 hardcode_direct=yes
8252 hardcode_shlibpath_var=no
8253 hardcode_direct_absolute=yes
8254 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os -$host_cpu" = "openbsd2.8-powerpc"; then
8255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compile r_flags'
8256 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $ compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8258 export_dynamic_flag_spec='${wl}-E'
8259 else
8260 case $host_os in
8261 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_fla gs'
8263 hardcode_libdir_flag_spec='-R$libdir'
8264 ;;
8265 *)
8266 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $comp iler_flags'
8267 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8268 ;;
8269 esac
8270 fi
8271 else
8272 ld_shlibs=no
8273 fi
8274 ;;
8275
8276 os2*)
8277 hardcode_libdir_flag_spec='-L$libdir'
8278 hardcode_minus_L=yes
8279 allow_undefined_flag=unsupported
8280 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libn ame.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DA TA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$l ibname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $outp ut_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_fl ags $output_objdir/$libname.def'
8281 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_obj dir/$libname.def'
8282 ;;
8283
8284 osf3*)
8285 if test "$GCC" = yes; then
8286 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8287 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_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'
8288 else
8289 allow_undefined_flag=' -expect_unresolved \*'
8290 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstr ing" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8291 fi
8292 archive_cmds_need_lc='no'
8293 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8294 hardcode_libdir_separator=:
8295 ;;
8296
8297 osf4* | osf5*) # as osf3* with the addition of -msym flag
8298 if test "$GCC" = yes; then
8299 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8300 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_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'
8301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8302 else
8303 allow_undefined_flag=' -expect_unresolved \*'
8304 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $comp iler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $ verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8305 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~
8306 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_f lags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_ver sion $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib ~$RM $lib.exp'
8307
8308 # Both c and cxx compiler support -rpath directly
8309 hardcode_libdir_flag_spec='-rpath $libdir'
8310 fi
8311 archive_cmds_need_lc='no'
8312 hardcode_libdir_separator=:
8313 ;;
8314
8315 solaris*)
8316 no_undefined_flag=' -z defs'
8317 if test "$GCC" = yes; then
8318 wlarc='${wl}'
8319 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8320 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $ SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8321 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$sona me -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8322 else
8323 case `$CC -V 2>&1` in
8324 *"Compilers 5.0"*)
8325 wlarc=''
8326 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobj s $deplibs $linker_flags'
8327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8328 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8329 ;;
8330 *)
8331 wlarc='${wl}'
8332 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobj s $deplibs $compiler_flags'
8333 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8334 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8335 ;;
8336 esac
8337 fi
8338 hardcode_libdir_flag_spec='-R$libdir'
8339 hardcode_shlibpath_var=no
8340 case $host_os in
8341 solaris2.[0-5] | solaris2.[0-5].*) ;;
8342 *)
8343 # The compiler driver will combine and reorder linker options,
8344 # but understands `-z linker_flag'. GCC discards it without `$wl',
8345 # but is careful enough not to reorder.
8346 # Supported since Solaris 2.6 (maybe 2.5.1?)
8347 if test "$GCC" = yes; then
8348 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z $ {wl}defaultextract'
8349 else
8350 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8351 fi
8352 ;;
8353 esac
8354 link_all_deplibs=yes
8355 ;;
8356
8357 sunos4*)
8358 if test "x$host_vendor" = xsequent; then
8359 # Use $CC to link under sequent, because it throws in some extra .o
8360 # files that make .init and .fini sections work.
8361 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler _flags'
8362 else
8363 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $ linker_flags'
8364 fi
8365 hardcode_libdir_flag_spec='-L$libdir'
8366 hardcode_direct=yes
8367 hardcode_minus_L=yes
8368 hardcode_shlibpath_var=no
8369 ;;
8370
8371 sysv4)
8372 case $host_vendor in
8373 sni)
8374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
8375 hardcode_direct=yes # is this really true???
8376 ;;
8377 siemens)
8378 ## LD is ld it makes a PLAMLIB
8379 ## CC just makes a GrossModule.
8380 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8381 reload_cmds='$CC -r -o $output$reload_objs'
8382 hardcode_direct=no
8383 ;;
8384 motorola)
8385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flag s'
8386 hardcode_direct=no #Motorola manual says yes, but my tests say they li e
8387 ;;
8388 esac
8389 runpath_var='LD_RUN_PATH'
8390 hardcode_shlibpath_var=no
8391 ;;
8392
8393 sysv4.3*)
8394 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8395 hardcode_shlibpath_var=no
8396 export_dynamic_flag_spec='-Bexport'
8397 ;;
8398
8399 sysv4*MP*)
8400 if test -d /usr/nec; then
8401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8402 hardcode_shlibpath_var=no
8403 runpath_var=LD_RUN_PATH
8404 hardcode_runpath_var=yes
8405 ld_shlibs=yes
8406 fi
8407 ;;
8408
8409 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3. 2v5.0.[024]*)
8410 no_undefined_flag='${wl}-z,text'
8411 archive_cmds_need_lc=no
8412 hardcode_shlibpath_var=no
8413 runpath_var='LD_RUN_PATH'
8414
8415 if test "$GCC" = yes; then
8416 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $com piler_flags'
8417 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$ soname -o $lib $libobjs $deplibs $compiler_flags'
8418 else
8419 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler _flags'
8420 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$sonam e -o $lib $libobjs $deplibs $compiler_flags'
8421 fi
8422 ;;
8423
8424 sysv5* | sco3.2v5* | sco5v6*)
8425 # Note: We can NOT use -z defs as we might desire, because we do not
8426 # link with -lc, and that would cause any symbols used from libc to
8427 # always be unresolved, which means just about no library would
8428 # ever link correctly. If we're not using GNU ld we use -z text
8429 # though, which does catch some bad symbols but isn't as heavy-handed
8430 # as -z defs.
8431 no_undefined_flag='${wl}-z,text'
8432 allow_undefined_flag='${wl}-z,nodefs'
8433 archive_cmds_need_lc=no
8434 hardcode_shlibpath_var=no
8435 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8436 hardcode_libdir_separator=':'
8437 link_all_deplibs=yes
8438 export_dynamic_flag_spec='${wl}-Bexport'
8439 runpath_var='LD_RUN_PATH'
8440
8441 if test "$GCC" = yes; then
8442 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $com piler_flags'
8443 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$ soname -o $lib $libobjs $deplibs $compiler_flags'
8444 else
8445 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler _flags'
8446 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$sonam e -o $lib $libobjs $deplibs $compiler_flags'
8447 fi
8448 ;;
8449
8450 uts4*)
8451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8452 hardcode_libdir_flag_spec='-L$libdir'
8453 hardcode_shlibpath_var=no
8454 ;;
8455
8456 *)
8457 ld_shlibs=no
8458 ;;
8459 esac
8460
8461 if test x$host_vendor = xsni; then
8462 case $host in
8463 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8464 export_dynamic_flag_spec='${wl}-Blargedynsym'
8465 ;;
8466 esac
8467 fi
8468 fi
8469
8470 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8471 $as_echo "$ld_shlibs" >&6; }
8472 test "$ld_shlibs" = no && can_build_shared=no
8473
8474 with_gnu_ld=$with_gnu_ld
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490 #
8491 # Do we need to explicitly link libc?
8492 #
8493 case "x$archive_cmds_need_lc" in
8494 x|xyes)
8495 # Assume -lc should be added
8496 archive_cmds_need_lc=yes
8497
8498 if test "$enable_shared" = yes && test "$GCC" = yes; then
8499 case $archive_cmds in
8500 *'~'*)
8501 # FIXME: we may have to deal with multi-command sequences.
8502 ;;
8503 '$CC '*)
8504 # Test whether the compiler implicitly links with -lc since on some
8505 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8506 # to ld, don't add -lc before -lgcc.
8507 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly link ed in" >&5
8508 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8509 $RM conftest*
8510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8511
8512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8513 (eval $ac_compile) 2>&5
8514 ac_status=$?
8515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } 2>conftest.err; then
8517 soname=conftest
8518 lib=conftest
8519 libobjs=conftest.$ac_objext
8520 deplibs=
8521 wl=$lt_prog_compiler_wl
8522 pic_flag=$lt_prog_compiler_pic
8523 compiler_flags=-v
8524 linker_flags=-v
8525 verstring=
8526 output_objdir=.
8527 libname=conftest
8528 lt_save_allow_undefined_flag=$allow_undefined_flag
8529 allow_undefined_flag=
8530 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8531 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8532 ac_status=$?
8533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }
8535 then
8536 archive_cmds_need_lc=no
8537 else
8538 archive_cmds_need_lc=yes
8539 fi
8540 allow_undefined_flag=$lt_save_allow_undefined_flag
8541 else
8542 cat conftest.err 1>&5
8543 fi
8544 $RM conftest*
8545 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8546 $as_echo "$archive_cmds_need_lc" >&6; }
8547 ;;
8548 esac
8549 fi
8550 ;;
8551 esac
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8710 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8711
8712 if test "$GCC" = yes; then
8713 case $host_os in
8714 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8715 *) lt_awk_arg="/^libraries:/" ;;
8716 esac
8717 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^li braries://" -e "s,=/,/,g"`
8718 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8719 # if the path contains ";" then we assume it to be the separator
8720 # otherwise default to the standard path separator (i.e. ":") - it is
8721 # assumed that no part of a normal pathname contains ";" but that should
8722 # okay in the real world where ";" in dirpaths is itself problematic.
8723 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8724 else
8725 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARA TOR/ /g"`
8726 fi
8727 # Ok, now we have the path, separated by spaces, we can step through it
8728 # and add multilib dir if necessary.
8729 lt_tmp_lt_search_path_spec=
8730 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/d ev/null`
8731 for lt_sys_path in $lt_search_path_spec; do
8732 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8733 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_m ulti_os_dir"
8734 else
8735 test -d "$lt_sys_path" && \
8736 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8737 fi
8738 done
8739 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8740 BEGIN {RS=" "; FS="/|\n";} {
8741 lt_foo="";
8742 lt_count=0;
8743 for (lt_i = NF; lt_i > 0; lt_i--) {
8744 if ($lt_i != "" && $lt_i != ".") {
8745 if ($lt_i == "..") {
8746 lt_count++;
8747 } else {
8748 if (lt_count == 0) {
8749 lt_foo="/" $lt_i lt_foo;
8750 } else {
8751 lt_count--;
8752 }
8753 }
8754 }
8755 }
8756 if (lt_foo != "") { lt_freq[lt_foo]++; }
8757 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8758 }'`
8759 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8760 else
8761 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8762 fi
8763 library_names_spec=
8764 libname_spec='lib$name'
8765 soname_spec=
8766 shrext_cmds=".so"
8767 postinstall_cmds=
8768 postuninstall_cmds=
8769 finish_cmds=
8770 finish_eval=
8771 shlibpath_var=
8772 shlibpath_overrides_runpath=unknown
8773 version_type=none
8774 dynamic_linker="$host_os ld.so"
8775 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8776 need_lib_prefix=unknown
8777 hardcode_into_libs=no
8778
8779 # when you set need_version to no, make sure it does not cause -set_version
8780 # flags to be left without arguments
8781 need_version=unknown
8782
8783 case $host_os in
8784 aix3*)
8785 version_type=linux
8786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8787 shlibpath_var=LIBPATH
8788
8789 # AIX 3 has no versioning support, so we append a major version to the name.
8790 soname_spec='${libname}${release}${shared_ext}$major'
8791 ;;
8792
8793 aix[4-9]*)
8794 version_type=linux
8795 need_lib_prefix=no
8796 need_version=no
8797 hardcode_into_libs=yes
8798 if test "$host_cpu" = ia64; then
8799 # AIX 5 supports IA64
8800 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${rele ase}${shared_ext}$versuffix $libname${shared_ext}'
8801 shlibpath_var=LD_LIBRARY_PATH
8802 else
8803 # With GCC up to 2.95.x, collect2 would create an import file
8804 # for dependence libraries. The import file would start with
8805 # the line `#! .'. This would cause the generated library to
8806 # depend on `.', always an invalid library. This was fixed in
8807 # development snapshots of GCC prior to 3.0.
8808 case $host_os in
8809 aix4 | aix4.[01] | aix4.[01].*)
8810 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8811 echo ' yes '
8812 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8813 :
8814 else
8815 can_build_shared=no
8816 fi
8817 ;;
8818 esac
8819 # AIX (on Power*) has no versioning support, so currently we can not hardcod e correct
8820 # soname into executable. Probably we can add versioning support to
8821 # collect2, so additional links can be useful in future.
8822 if test "$aix_use_runtimelinking" = yes; then
8823 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8824 # instead of lib<name>.a to let people know that these are not
8825 # typical AIX shared libraries.
8826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext}$major $libname${shared_ext}'
8827 else
8828 # We preserve .a as extension for shared libraries through AIX4.2
8829 # and later when we are not doing run time linking.
8830 library_names_spec='${libname}${release}.a $libname.a'
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 fi
8833 shlibpath_var=LIBPATH
8834 fi
8835 ;;
8836
8837 amigaos*)
8838 case $host_cpu in
8839 powerpc)
8840 # Since July 2007 AmigaOS4 officially supports .so libraries.
8841 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
8843 ;;
8844 m68k)
8845 library_names_spec='$libname.ixlibrary $libname.a'
8846 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8847 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$E CHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/l ibs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibra ry.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8848 ;;
8849 esac
8850 ;;
8851
8852 beos*)
8853 library_names_spec='${libname}${shared_ext}'
8854 dynamic_linker="$host_os ld.so"
8855 shlibpath_var=LIBRARY_PATH
8856 ;;
8857
8858 bsdi[45]*)
8859 version_type=linux
8860 need_version=no
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
8862 soname_spec='${libname}${release}${shared_ext}$major'
8863 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8864 shlibpath_var=LD_LIBRARY_PATH
8865 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib / usr/local/lib"
8866 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8867 # the default ld.so.conf also contains /usr/contrib/lib and
8868 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8869 # libtool to hard-code these into programs
8870 ;;
8871
8872 cygwin* | mingw* | pw32* | cegcc*)
8873 version_type=windows
8874 shrext_cmds=".dll"
8875 need_version=no
8876 need_lib_prefix=no
8877
8878 case $GCC,$host_os in
8879 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
8880 library_names_spec='$libname.dll.a'
8881 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8882 postinstall_cmds='base_file=`basename \${file}`~
8883 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\' '`~
8884 dldir=$destdir/`dirname \$dlpath`~
8885 test -d \$dldir || mkdir -p \$dldir~
8886 $install_prog $dir/$dlname \$dldir/$dlname~
8887 chmod a+x \$dldir/$dlname~
8888 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8889 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8890 fi'
8891 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8892 dlpath=$dir/\$dldll~
8893 $RM \$dlpath'
8894 shlibpath_overrides_runpath=yes
8895
8896 case $host_os in
8897 cygwin*)
8898 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8899 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $S ED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8900 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8901 ;;
8902 mingw* | cegcc*)
8903 # MinGW DLLs use traditional 'lib' prefix
8904 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix} ${shared_ext}'
8905 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $ SED -e "s/^libraries://" -e "s,=/,/,g"`
8906 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; the n
8907 # It is most probably a Windows format PATH printed by
8908 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8909 # path with ; separators, and with drive letters. We can handle the
8910 # drive letters (cygwin fileutils understands them), so leave them,
8911 # especially as we might pass files found there to a mingw objdump,
8912 # which wouldn't understand a cygwinified path. Ahh.
8913 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's /;/ /g'`
8914 else
8915 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e " s/$PATH_SEPARATOR/ /g"`
8916 fi
8917 ;;
8918 pw32*)
8919 # pw32 DLLs use 'pw' prefix rather than 'lib'
8920 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release } | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8921 ;;
8922 esac
8923 ;;
8924
8925 *)
8926 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versu ffix}${shared_ext} $libname.lib'
8927 ;;
8928 esac
8929 dynamic_linker='Win32 ld.exe'
8930 # FIXME: first we should search . and the directory the executable is in
8931 shlibpath_var=PATH
8932 ;;
8933
8934 darwin* | rhapsody*)
8935 dynamic_linker="$host_os dyld"
8936 version_type=darwin
8937 need_lib_prefix=no
8938 need_version=no
8939 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ ext'
8940 soname_spec='${libname}${release}${major}$shared_ext'
8941 shlibpath_overrides_runpath=yes
8942 shlibpath_var=DYLD_LIBRARY_PATH
8943 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8944
8945 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8946 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8947 ;;
8948
8949 dgux*)
8950 version_type=linux
8951 need_lib_prefix=no
8952 need_version=no
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname$shared_ext'
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 shlibpath_var=LD_LIBRARY_PATH
8956 ;;
8957
8958 freebsd1*)
8959 dynamic_linker=no
8960 ;;
8961
8962 freebsd* | dragonfly*)
8963 # DragonFly does not have aout. When/if they implement a new
8964 # versioning mechanism, adjust this.
8965 if test -x /usr/bin/objformat; then
8966 objformat=`/usr/bin/objformat`
8967 else
8968 case $host_os in
8969 freebsd[123]*) objformat=aout ;;
8970 *) objformat=elf ;;
8971 esac
8972 fi
8973 # Handle Gentoo/FreeBSD as it was Linux
8974 case $host_vendor in
8975 gentoo)
8976 version_type=linux ;;
8977 *)
8978 version_type=freebsd-$objformat ;;
8979 esac
8980
8981 case $version_type in
8982 freebsd-elf*)
8983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext} $libname${shared_ext}'
8984 need_version=no
8985 need_lib_prefix=no
8986 ;;
8987 freebsd-*)
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${ shared_ext}$versuffix'
8989 need_version=yes
8990 ;;
8991 linux)
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname} ${release}${shared_ext}$major ${libname}${shared_ext}'
8993 soname_spec='${libname}${release}${shared_ext}$major'
8994 need_lib_prefix=no
8995 need_version=no
8996 ;;
8997 esac
8998 shlibpath_var=LD_LIBRARY_PATH
8999 case $host_os in
9000 freebsd2*)
9001 shlibpath_overrides_runpath=yes
9002 ;;
9003 freebsd3.[01]* | freebsdelf3.[01]*)
9004 shlibpath_overrides_runpath=yes
9005 hardcode_into_libs=yes
9006 ;;
9007 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9008 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9009 shlibpath_overrides_runpath=no
9010 hardcode_into_libs=yes
9011 ;;
9012 *) # from 4.6 on, and DragonFly
9013 shlibpath_overrides_runpath=yes
9014 hardcode_into_libs=yes
9015 ;;
9016 esac
9017 ;;
9018
9019 gnu*)
9020 version_type=linux
9021 need_lib_prefix=no
9022 need_version=no
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}${major} ${libname}${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 shlibpath_var=LD_LIBRARY_PATH
9026 hardcode_into_libs=yes
9027 ;;
9028
9029 hpux9* | hpux10* | hpux11*)
9030 # Give a soname corresponding to the major version so that dld.sl refuses to
9031 # link against other versions.
9032 version_type=sunos
9033 need_lib_prefix=no
9034 need_version=no
9035 case $host_cpu in
9036 ia64*)
9037 shrext_cmds='.so'
9038 hardcode_into_libs=yes
9039 dynamic_linker="$host_os dld.so"
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
9044 if test "X$HPUX_IA64_MODE" = X32; then
9045 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local /lib"
9046 else
9047 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9048 fi
9049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9050 ;;
9051 hppa*64*)
9052 shrext_cmds='.sl'
9053 hardcode_into_libs=yes
9054 dynamic_linker="$host_os dld.sl"
9055 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9056 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9060 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9061 ;;
9062 *)
9063 shrext_cmds='.sl'
9064 dynamic_linker="$host_os dld.sl"
9065 shlibpath_var=SHLIB_PATH
9066 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 ;;
9070 esac
9071 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9072 postinstall_cmds='chmod 555 $lib'
9073 ;;
9074
9075 interix[3-9]*)
9076 version_type=linux
9077 need_lib_prefix=no
9078 need_version=no
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${shared_ext}'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 shlibpath_overrides_runpath=no
9084 hardcode_into_libs=yes
9085 ;;
9086
9087 irix5* | irix6* | nonstopux*)
9088 case $host_os in
9089 nonstopux*) version_type=nonstopux ;;
9090 *)
9091 if test "$lt_cv_prog_gnu_ld" = yes; then
9092 version_type=linux
9093 else
9094 version_type=irix
9095 fi ;;
9096 esac
9097 need_lib_prefix=no
9098 need_version=no
9099 soname_spec='${libname}${release}${shared_ext}$major'
9100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext }'
9101 case $host_os in
9102 irix5* | nonstopux*)
9103 libsuff= shlibsuff=
9104 ;;
9105 *)
9106 case $LD in # libtool.m4 will add one of these switches to LD
9107 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9108 libsuff= shlibsuff= libmagic=32-bit;;
9109 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9110 libsuff=32 shlibsuff=N32 libmagic=N32;;
9111 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9112 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9113 *) libsuff= shlibsuff= libmagic=never-match;;
9114 esac
9115 ;;
9116 esac
9117 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9118 shlibpath_overrides_runpath=no
9119 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${li bsuff}"
9120 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9121 hardcode_into_libs=yes
9122 ;;
9123
9124 # No shared lib support for Linux oldld, aout, or coff.
9125 linux*oldld* | linux*aout* | linux*coff*)
9126 dynamic_linker=no
9127 ;;
9128
9129 # This must be Linux ELF.
9130 linux* | k*bsd*-gnu)
9131 version_type=linux
9132 need_lib_prefix=no
9133 need_version=no
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9135 soname_spec='${libname}${release}${shared_ext}$major'
9136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9137 shlibpath_var=LD_LIBRARY_PATH
9138 shlibpath_overrides_runpath=no
9139 # Some binutils ld are patched to set DT_RUNPATH
9140 save_LDFLAGS=$LDFLAGS
9141 save_libdir=$libdir
9142 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9143 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9144 cat >conftest.$ac_ext <<_ACEOF
9145 /* confdefs.h. */
9146 _ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9150
9151 int
9152 main ()
9153 {
9154
9155 ;
9156 return 0;
9157 }
9158 _ACEOF
9159 rm -f conftest.$ac_objext conftest$ac_exeext
9160 if { (ac_try="$ac_link"
9161 case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9164 esac
9165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9166 $as_echo "$ac_try_echo") >&5
9167 (eval "$ac_link") 2>conftest.er1
9168 ac_status=$?
9169 grep -v '^ *+' conftest.er1 >conftest.err
9170 rm -f conftest.er1
9171 cat conftest.err >&5
9172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } && {
9174 test -z "$ac_c_werror_flag" ||
9175 test ! -s conftest.err
9176 } && test -s conftest$ac_exeext && {
9177 test "$cross_compiling" = yes ||
9178 $as_test_x conftest$ac_exeext
9179 }; then
9180 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/d ev/null; then
9181 shlibpath_overrides_runpath=yes
9182 fi
9183
9184 else
9185 $as_echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9187
9188
9189 fi
9190
9191 rm -rf conftest.dSYM
9192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9193 conftest$ac_exeext conftest.$ac_ext
9194 LDFLAGS=$save_LDFLAGS
9195 libdir=$save_libdir
9196
9197 # This implies no fast_install, which is unacceptable.
9198 # Some rework will be needed to allow for fast_install
9199 # before this can be enabled.
9200 hardcode_into_libs=yes
9201
9202 # Append ld.so.conf contents to the search path
9203 if test -f /etc/ld.so.conf; then
9204 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 | $S ED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9205 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9206 fi
9207
9208 # We used to test for /lib/ld.so.1 and disable shared libraries on
9209 # powerpc, because MkLinux only supported shared libraries with the
9210 # GNU dynamic linker. Since this was broken with cross compilers,
9211 # most powerpc-linux boxes support dynamic linking these days and
9212 # people can always --disable-shared, the test was removed, and we
9213 # assume the GNU/Linux dynamic linker is in use.
9214 dynamic_linker='GNU/Linux ld.so'
9215 ;;
9216
9217 netbsd*)
9218 version_type=sunos
9219 need_lib_prefix=no
9220 need_version=no
9221 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ shared_ext}$versuffix'
9223 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9224 dynamic_linker='NetBSD (a.out) ld.so'
9225 else
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${ release}${shared_ext}$major ${libname}${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 dynamic_linker='NetBSD ld.elf_so'
9229 fi
9230 shlibpath_var=LD_LIBRARY_PATH
9231 shlibpath_overrides_runpath=yes
9232 hardcode_into_libs=yes
9233 ;;
9234
9235 newsos6)
9236 version_type=linux
9237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9238 shlibpath_var=LD_LIBRARY_PATH
9239 shlibpath_overrides_runpath=yes
9240 ;;
9241
9242 *nto* | *qnx*)
9243 version_type=qnx
9244 need_lib_prefix=no
9245 need_version=no
9246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9247 soname_spec='${libname}${release}${shared_ext}$major'
9248 shlibpath_var=LD_LIBRARY_PATH
9249 shlibpath_overrides_runpath=no
9250 hardcode_into_libs=yes
9251 dynamic_linker='ldqnx.so'
9252 ;;
9253
9254 openbsd*)
9255 version_type=sunos
9256 sys_lib_dlsearch_path_spec="/usr/lib"
9257 need_lib_prefix=no
9258 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9259 case $host_os in
9260 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9261 *) need_version=no ;;
9262 esac
9263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
9264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9265 shlibpath_var=LD_LIBRARY_PATH
9266 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host _cpu" = "openbsd2.8-powerpc"; then
9267 case $host_os in
9268 openbsd2.[89] | openbsd2.[89].*)
9269 shlibpath_overrides_runpath=no
9270 ;;
9271 *)
9272 shlibpath_overrides_runpath=yes
9273 ;;
9274 esac
9275 else
9276 shlibpath_overrides_runpath=yes
9277 fi
9278 ;;
9279
9280 os2*)
9281 libname_spec='$name'
9282 shrext_cmds=".dll"
9283 need_lib_prefix=no
9284 library_names_spec='$libname${shared_ext} $libname.a'
9285 dynamic_linker='OS/2 ld.exe'
9286 shlibpath_var=LIBPATH
9287 ;;
9288
9289 osf3* | osf4* | osf5*)
9290 version_type=osf
9291 need_lib_prefix=no
9292 need_version=no
9293 soname_spec='${libname}${release}${shared_ext}$major'
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9295 shlibpath_var=LD_LIBRARY_PATH
9296 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9297 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9298 ;;
9299
9300 rdos*)
9301 dynamic_linker=no
9302 ;;
9303
9304 solaris*)
9305 version_type=linux
9306 need_lib_prefix=no
9307 need_version=no
9308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9309 soname_spec='${libname}${release}${shared_ext}$major'
9310 shlibpath_var=LD_LIBRARY_PATH
9311 shlibpath_overrides_runpath=yes
9312 hardcode_into_libs=yes
9313 # ldd complains unless libraries are executable
9314 postinstall_cmds='chmod +x $lib'
9315 ;;
9316
9317 sunos4*)
9318 version_type=sunos
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${sh ared_ext}$versuffix'
9320 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 shlibpath_overrides_runpath=yes
9323 if test "$with_gnu_ld" = yes; then
9324 need_lib_prefix=no
9325 fi
9326 need_version=yes
9327 ;;
9328
9329 sysv4 | sysv4.3*)
9330 version_type=linux
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9332 soname_spec='${libname}${release}${shared_ext}$major'
9333 shlibpath_var=LD_LIBRARY_PATH
9334 case $host_vendor in
9335 sni)
9336 shlibpath_overrides_runpath=no
9337 need_lib_prefix=no
9338 runpath_var=LD_RUN_PATH
9339 ;;
9340 siemens)
9341 need_lib_prefix=no
9342 ;;
9343 motorola)
9344 need_lib_prefix=no
9345 need_version=no
9346 shlibpath_overrides_runpath=no
9347 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9348 ;;
9349 esac
9350 ;;
9351
9352 sysv4*MP*)
9353 if test -d /usr/nec ;then
9354 version_type=linux
9355 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$ major $libname${shared_ext}'
9356 soname_spec='$libname${shared_ext}.$major'
9357 shlibpath_var=LD_LIBRARY_PATH
9358 fi
9359 ;;
9360
9361 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9362 version_type=freebsd-elf
9363 need_lib_prefix=no
9364 need_version=no
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext} $libname${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 shlibpath_var=LD_LIBRARY_PATH
9368 shlibpath_overrides_runpath=yes
9369 hardcode_into_libs=yes
9370 if test "$with_gnu_ld" = yes; then
9371 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9372 else
9373 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9374 case $host_os in
9375 sco3.2v5*)
9376 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9377 ;;
9378 esac
9379 fi
9380 sys_lib_dlsearch_path_spec='/usr/lib'
9381 ;;
9382
9383 tpf*)
9384 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9385 version_type=linux
9386 need_lib_prefix=no
9387 need_version=no
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9389 shlibpath_var=LD_LIBRARY_PATH
9390 shlibpath_overrides_runpath=no
9391 hardcode_into_libs=yes
9392 ;;
9393
9394 uts4*)
9395 version_type=linux
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${re lease}${shared_ext}$major $libname${shared_ext}'
9397 soname_spec='${libname}${release}${shared_ext}$major'
9398 shlibpath_var=LD_LIBRARY_PATH
9399 ;;
9400
9401 *)
9402 dynamic_linker=no
9403 ;;
9404 esac
9405 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9406 $as_echo "$dynamic_linker" >&6; }
9407 test "$dynamic_linker" = no && can_build_shared=no
9408
9409 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9410 if test "$GCC" = yes; then
9411 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPIL ER_PATH LIBRARY_PATH"
9412 fi
9413
9414 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9415 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9416 fi
9417 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9418 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9419 fi
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into progra ms" >&5
9508 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9509 hardcode_action=
9510 if test -n "$hardcode_libdir_flag_spec" ||
9511 test -n "$runpath_var" ||
9512 test "X$hardcode_automatic" = "Xyes" ; then
9513
9514 # We can hardcode non-existent directories.
9515 if test "$hardcode_direct" != no &&
9516 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9517 # have to relink, otherwise we might link with an installed library
9518 # when we should be linking with a yet-to-be-installed one
9519 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9520 test "$hardcode_minus_L" != no; then
9521 # Linking always hardcodes the temporary library directory.
9522 hardcode_action=relink
9523 else
9524 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9525 hardcode_action=immediate
9526 fi
9527 else
9528 # We cannot hardcode anything, or else we can only hardcode existing
9529 # directories.
9530 hardcode_action=unsupported
9531 fi
9532 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9533 $as_echo "$hardcode_action" >&6; }
9534
9535 if test "$hardcode_action" = relink ||
9536 test "$inherit_rpath" = yes; then
9537 # Fast installation is not supported
9538 enable_fast_install=no
9539 elif test "$shlibpath_overrides_runpath" = yes ||
9540 test "$enable_shared" = no; then
9541 # Fast installation is not necessary
9542 enable_fast_install=needless
9543 fi
9544
9545
9546
9547
9548
9549
9550 if test "x$enable_dlopen" != xyes; then
9551 enable_dlopen=unknown
9552 enable_dlopen_self=unknown
9553 enable_dlopen_self_static=unknown
9554 else
9555 lt_cv_dlopen=no
9556 lt_cv_dlopen_libs=
9557
9558 case $host_os in
9559 beos*)
9560 lt_cv_dlopen="load_add_on"
9561 lt_cv_dlopen_libs=
9562 lt_cv_dlopen_self=yes
9563 ;;
9564
9565 mingw* | pw32* | cegcc*)
9566 lt_cv_dlopen="LoadLibrary"
9567 lt_cv_dlopen_libs=
9568 ;;
9569
9570 cygwin*)
9571 lt_cv_dlopen="dlopen"
9572 lt_cv_dlopen_libs=
9573 ;;
9574
9575 darwin*)
9576 # if libdl is installed we need to link against it
9577 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9578 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9579 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9580 $as_echo_n "(cached) " >&6
9581 else
9582 ac_check_lib_save_LIBS=$LIBS
9583 LIBS="-ldl $LIBS"
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h. */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590
9591 /* Override any GCC internal prototype to avoid an error.
9592 Use char because int might match the return type of a GCC
9593 builtin and then its argument prototype would still apply. */
9594 #ifdef __cplusplus
9595 extern "C"
9596 #endif
9597 char dlopen ();
9598 int
9599 main ()
9600 {
9601 return dlopen ();
9602 ;
9603 return 0;
9604 }
9605 _ACEOF
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (ac_try="$ac_link"
9608 case "(($ac_try" in
9609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9610 *) ac_try_echo=$ac_try;;
9611 esac
9612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9613 $as_echo "$ac_try_echo") >&5
9614 (eval "$ac_link") 2>conftest.er1
9615 ac_status=$?
9616 grep -v '^ *+' conftest.er1 >conftest.err
9617 rm -f conftest.er1
9618 cat conftest.err >&5
9619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } && {
9621 test -z "$ac_c_werror_flag" ||
9622 test ! -s conftest.err
9623 } && test -s conftest$ac_exeext && {
9624 test "$cross_compiling" = yes ||
9625 $as_test_x conftest$ac_exeext
9626 }; then
9627 ac_cv_lib_dl_dlopen=yes
9628 else
9629 $as_echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9631
9632 ac_cv_lib_dl_dlopen=no
9633 fi
9634
9635 rm -rf conftest.dSYM
9636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9637 conftest$ac_exeext conftest.$ac_ext
9638 LIBS=$ac_check_lib_save_LIBS
9639 fi
9640 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9641 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9642 if test $ac_cv_lib_dl_dlopen = yes; then
9643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9644 else
9645
9646 lt_cv_dlopen="dyld"
9647 lt_cv_dlopen_libs=
9648 lt_cv_dlopen_self=yes
9649
9650 fi
9651
9652 ;;
9653
9654 *)
9655 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9656 $as_echo_n "checking for shl_load... " >&6; }
9657 if test "${ac_cv_func_shl_load+set}" = set; then
9658 $as_echo_n "(cached) " >&6
9659 else
9660 cat >conftest.$ac_ext <<_ACEOF
9661 /* confdefs.h. */
9662 _ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9666 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load .
9667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9668 #define shl_load innocuous_shl_load
9669
9670 /* System header to define __stub macros and hopefully few prototypes,
9671 which can conflict with char shl_load (); below.
9672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9673 <limits.h> exists even on freestanding compilers. */
9674
9675 #ifdef __STDC__
9676 # include <limits.h>
9677 #else
9678 # include <assert.h>
9679 #endif
9680
9681 #undef shl_load
9682
9683 /* Override any GCC internal prototype to avoid an error.
9684 Use char because int might match the return type of a GCC
9685 builtin and then its argument prototype would still apply. */
9686 #ifdef __cplusplus
9687 extern "C"
9688 #endif
9689 char shl_load ();
9690 /* The GNU C library defines this for functions which it implements
9691 to always fail with ENOSYS. Some functions are actually named
9692 something starting with __ and the normal name is an alias. */
9693 #if defined __stub_shl_load || defined __stub___shl_load
9694 choke me
9695 #endif
9696
9697 int
9698 main ()
9699 {
9700 return shl_load ();
9701 ;
9702 return 0;
9703 }
9704 _ACEOF
9705 rm -f conftest.$ac_objext conftest$ac_exeext
9706 if { (ac_try="$ac_link"
9707 case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710 esac
9711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9712 $as_echo "$ac_try_echo") >&5
9713 (eval "$ac_link") 2>conftest.er1
9714 ac_status=$?
9715 grep -v '^ *+' conftest.er1 >conftest.err
9716 rm -f conftest.er1
9717 cat conftest.err >&5
9718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } && {
9720 test -z "$ac_c_werror_flag" ||
9721 test ! -s conftest.err
9722 } && test -s conftest$ac_exeext && {
9723 test "$cross_compiling" = yes ||
9724 $as_test_x conftest$ac_exeext
9725 }; then
9726 ac_cv_func_shl_load=yes
9727 else
9728 $as_echo "$as_me: failed program was:" >&5
9729 sed 's/^/| /' conftest.$ac_ext >&5
9730
9731 ac_cv_func_shl_load=no
9732 fi
9733
9734 rm -rf conftest.dSYM
9735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9736 conftest$ac_exeext conftest.$ac_ext
9737 fi
9738 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9739 $as_echo "$ac_cv_func_shl_load" >&6; }
9740 if test $ac_cv_func_shl_load = yes; then
9741 lt_cv_dlopen="shl_load"
9742 else
9743 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9744 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9745 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9746 $as_echo_n "(cached) " >&6
9747 else
9748 ac_check_lib_save_LIBS=$LIBS
9749 LIBS="-ldld $LIBS"
9750 cat >conftest.$ac_ext <<_ACEOF
9751 /* confdefs.h. */
9752 _ACEOF
9753 cat confdefs.h >>conftest.$ac_ext
9754 cat >>conftest.$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9756
9757 /* Override any GCC internal prototype to avoid an error.
9758 Use char because int might match the return type of a GCC
9759 builtin and then its argument prototype would still apply. */
9760 #ifdef __cplusplus
9761 extern "C"
9762 #endif
9763 char shl_load ();
9764 int
9765 main ()
9766 {
9767 return shl_load ();
9768 ;
9769 return 0;
9770 }
9771 _ACEOF
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (ac_try="$ac_link"
9774 case "(($ac_try" in
9775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776 *) ac_try_echo=$ac_try;;
9777 esac
9778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9779 $as_echo "$ac_try_echo") >&5
9780 (eval "$ac_link") 2>conftest.er1
9781 ac_status=$?
9782 grep -v '^ *+' conftest.er1 >conftest.err
9783 rm -f conftest.er1
9784 cat conftest.err >&5
9785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } && {
9787 test -z "$ac_c_werror_flag" ||
9788 test ! -s conftest.err
9789 } && test -s conftest$ac_exeext && {
9790 test "$cross_compiling" = yes ||
9791 $as_test_x conftest$ac_exeext
9792 }; then
9793 ac_cv_lib_dld_shl_load=yes
9794 else
9795 $as_echo "$as_me: failed program was:" >&5
9796 sed 's/^/| /' conftest.$ac_ext >&5
9797
9798 ac_cv_lib_dld_shl_load=no
9799 fi
9800
9801 rm -rf conftest.dSYM
9802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9803 conftest$ac_exeext conftest.$ac_ext
9804 LIBS=$ac_check_lib_save_LIBS
9805 fi
9806 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9807 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9808 if test $ac_cv_lib_dld_shl_load = yes; then
9809 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9810 else
9811 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9812 $as_echo_n "checking for dlopen... " >&6; }
9813 if test "${ac_cv_func_dlopen+set}" = set; then
9814 $as_echo_n "(cached) " >&6
9815 else
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h. */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9824 #define dlopen innocuous_dlopen
9825
9826 /* System header to define __stub macros and hopefully few prototypes,
9827 which can conflict with char dlopen (); below.
9828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9829 <limits.h> exists even on freestanding compilers. */
9830
9831 #ifdef __STDC__
9832 # include <limits.h>
9833 #else
9834 # include <assert.h>
9835 #endif
9836
9837 #undef dlopen
9838
9839 /* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
9842 #ifdef __cplusplus
9843 extern "C"
9844 #endif
9845 char dlopen ();
9846 /* The GNU C library defines this for functions which it implements
9847 to always fail with ENOSYS. Some functions are actually named
9848 something starting with __ and the normal name is an alias. */
9849 #if defined __stub_dlopen || defined __stub___dlopen
9850 choke me
9851 #endif
9852
9853 int
9854 main ()
9855 {
9856 return dlopen ();
9857 ;
9858 return 0;
9859 }
9860 _ACEOF
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9863 case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9866 esac
9867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9868 $as_echo "$ac_try_echo") >&5
9869 (eval "$ac_link") 2>conftest.er1
9870 ac_status=$?
9871 grep -v '^ *+' conftest.er1 >conftest.err
9872 rm -f conftest.er1
9873 cat conftest.err >&5
9874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } && {
9876 test -z "$ac_c_werror_flag" ||
9877 test ! -s conftest.err
9878 } && test -s conftest$ac_exeext && {
9879 test "$cross_compiling" = yes ||
9880 $as_test_x conftest$ac_exeext
9881 }; then
9882 ac_cv_func_dlopen=yes
9883 else
9884 $as_echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9886
9887 ac_cv_func_dlopen=no
9888 fi
9889
9890 rm -rf conftest.dSYM
9891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9892 conftest$ac_exeext conftest.$ac_ext
9893 fi
9894 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9895 $as_echo "$ac_cv_func_dlopen" >&6; }
9896 if test $ac_cv_func_dlopen = yes; then
9897 lt_cv_dlopen="dlopen"
9898 else
9899 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9900 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9901 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9902 $as_echo_n "(cached) " >&6
9903 else
9904 ac_check_lib_save_LIBS=$LIBS
9905 LIBS="-ldl $LIBS"
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h. */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912
9913 /* Override any GCC internal prototype to avoid an error.
9914 Use char because int might match the return type of a GCC
9915 builtin and then its argument prototype would still apply. */
9916 #ifdef __cplusplus
9917 extern "C"
9918 #endif
9919 char dlopen ();
9920 int
9921 main ()
9922 {
9923 return dlopen ();
9924 ;
9925 return 0;
9926 }
9927 _ACEOF
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (ac_try="$ac_link"
9930 case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933 esac
9934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9935 $as_echo "$ac_try_echo") >&5
9936 (eval "$ac_link") 2>conftest.er1
9937 ac_status=$?
9938 grep -v '^ *+' conftest.er1 >conftest.err
9939 rm -f conftest.er1
9940 cat conftest.err >&5
9941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); } && {
9943 test -z "$ac_c_werror_flag" ||
9944 test ! -s conftest.err
9945 } && test -s conftest$ac_exeext && {
9946 test "$cross_compiling" = yes ||
9947 $as_test_x conftest$ac_exeext
9948 }; then
9949 ac_cv_lib_dl_dlopen=yes
9950 else
9951 $as_echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9953
9954 ac_cv_lib_dl_dlopen=no
9955 fi
9956
9957 rm -rf conftest.dSYM
9958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9959 conftest$ac_exeext conftest.$ac_ext
9960 LIBS=$ac_check_lib_save_LIBS
9961 fi
9962 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9963 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9964 if test $ac_cv_lib_dl_dlopen = yes; then
9965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9966 else
9967 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9968 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9969 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9970 $as_echo_n "(cached) " >&6
9971 else
9972 ac_check_lib_save_LIBS=$LIBS
9973 LIBS="-lsvld $LIBS"
9974 cat >conftest.$ac_ext <<_ACEOF
9975 /* confdefs.h. */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9980
9981 /* Override any GCC internal prototype to avoid an error.
9982 Use char because int might match the return type of a GCC
9983 builtin and then its argument prototype would still apply. */
9984 #ifdef __cplusplus
9985 extern "C"
9986 #endif
9987 char dlopen ();
9988 int
9989 main ()
9990 {
9991 return dlopen ();
9992 ;
9993 return 0;
9994 }
9995 _ACEOF
9996 rm -f conftest.$ac_objext conftest$ac_exeext
9997 if { (ac_try="$ac_link"
9998 case "(($ac_try" in
9999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10000 *) ac_try_echo=$ac_try;;
10001 esac
10002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10003 $as_echo "$ac_try_echo") >&5
10004 (eval "$ac_link") 2>conftest.er1
10005 ac_status=$?
10006 grep -v '^ *+' conftest.er1 >conftest.err
10007 rm -f conftest.er1
10008 cat conftest.err >&5
10009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); } && {
10011 test -z "$ac_c_werror_flag" ||
10012 test ! -s conftest.err
10013 } && test -s conftest$ac_exeext && {
10014 test "$cross_compiling" = yes ||
10015 $as_test_x conftest$ac_exeext
10016 }; then
10017 ac_cv_lib_svld_dlopen=yes
10018 else
10019 $as_echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022 ac_cv_lib_svld_dlopen=no
10023 fi
10024
10025 rm -rf conftest.dSYM
10026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10027 conftest$ac_exeext conftest.$ac_ext
10028 LIBS=$ac_check_lib_save_LIBS
10029 fi
10030 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10031 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10032 if test $ac_cv_lib_svld_dlopen = yes; then
10033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10034 else
10035 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10036 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10037 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10038 $as_echo_n "(cached) " >&6
10039 else
10040 ac_check_lib_save_LIBS=$LIBS
10041 LIBS="-ldld $LIBS"
10042 cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h. */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10048
10049 /* Override any GCC internal prototype to avoid an error.
10050 Use char because int might match the return type of a GCC
10051 builtin and then its argument prototype would still apply. */
10052 #ifdef __cplusplus
10053 extern "C"
10054 #endif
10055 char dld_link ();
10056 int
10057 main ()
10058 {
10059 return dld_link ();
10060 ;
10061 return 0;
10062 }
10063 _ACEOF
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (ac_try="$ac_link"
10066 case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10069 esac
10070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10071 $as_echo "$ac_try_echo") >&5
10072 (eval "$ac_link") 2>conftest.er1
10073 ac_status=$?
10074 grep -v '^ *+' conftest.er1 >conftest.err
10075 rm -f conftest.er1
10076 cat conftest.err >&5
10077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } && {
10079 test -z "$ac_c_werror_flag" ||
10080 test ! -s conftest.err
10081 } && test -s conftest$ac_exeext && {
10082 test "$cross_compiling" = yes ||
10083 $as_test_x conftest$ac_exeext
10084 }; then
10085 ac_cv_lib_dld_dld_link=yes
10086 else
10087 $as_echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10089
10090 ac_cv_lib_dld_dld_link=no
10091 fi
10092
10093 rm -rf conftest.dSYM
10094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10095 conftest$ac_exeext conftest.$ac_ext
10096 LIBS=$ac_check_lib_save_LIBS
10097 fi
10098 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10099 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10100 if test $ac_cv_lib_dld_dld_link = yes; then
10101 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10102 fi
10103
10104
10105 fi
10106
10107
10108 fi
10109
10110
10111 fi
10112
10113
10114 fi
10115
10116
10117 fi
10118
10119 ;;
10120 esac
10121
10122 if test "x$lt_cv_dlopen" != xno; then
10123 enable_dlopen=yes
10124 else
10125 enable_dlopen=no
10126 fi
10127
10128 case $lt_cv_dlopen in
10129 dlopen)
10130 save_CPPFLAGS="$CPPFLAGS"
10131 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10132
10133 save_LDFLAGS="$LDFLAGS"
10134 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10135
10136 save_LIBS="$LIBS"
10137 LIBS="$lt_cv_dlopen_libs $LIBS"
10138
10139 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >& 5
10140 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10141 if test "${lt_cv_dlopen_self+set}" = set; then
10142 $as_echo_n "(cached) " >&6
10143 else
10144 if test "$cross_compiling" = yes; then :
10145 lt_cv_dlopen_self=cross
10146 else
10147 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10148 lt_status=$lt_dlunknown
10149 cat > conftest.$ac_ext <<_LT_EOF
10150 #line 10150 "configure"
10151 #include "confdefs.h"
10152
10153 #if HAVE_DLFCN_H
10154 #include <dlfcn.h>
10155 #endif
10156
10157 #include <stdio.h>
10158
10159 #ifdef RTLD_GLOBAL
10160 # define LT_DLGLOBAL RTLD_GLOBAL
10161 #else
10162 # ifdef DL_GLOBAL
10163 # define LT_DLGLOBAL DL_GLOBAL
10164 # else
10165 # define LT_DLGLOBAL 0
10166 # endif
10167 #endif
10168
10169 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10170 find out it does not work in some platform. */
10171 #ifndef LT_DLLAZY_OR_NOW
10172 # ifdef RTLD_LAZY
10173 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10174 # else
10175 # ifdef DL_LAZY
10176 # define LT_DLLAZY_OR_NOW DL_LAZY
10177 # else
10178 # ifdef RTLD_NOW
10179 # define LT_DLLAZY_OR_NOW RTLD_NOW
10180 # else
10181 # ifdef DL_NOW
10182 # define LT_DLLAZY_OR_NOW DL_NOW
10183 # else
10184 # define LT_DLLAZY_OR_NOW 0
10185 # endif
10186 # endif
10187 # endif
10188 # endif
10189 #endif
10190
10191 void fnord() { int i=42;}
10192 int main ()
10193 {
10194 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10195 int status = $lt_dlunknown;
10196
10197 if (self)
10198 {
10199 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10200 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10201 /* dlclose (self); */
10202 }
10203 else
10204 puts (dlerror ());
10205
10206 return status;
10207 }
10208 _LT_EOF
10209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210 (eval $ac_link) 2>&5
10211 ac_status=$?
10212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10214 (./conftest; exit; ) >&5 2>/dev/null
10215 lt_status=$?
10216 case x$lt_status in
10217 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10218 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10219 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10220 esac
10221 else :
10222 # compilation failed
10223 lt_cv_dlopen_self=no
10224 fi
10225 fi
10226 rm -fr conftest*
10227
10228
10229 fi
10230 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10231 $as_echo "$lt_cv_dlopen_self" >&6; }
10232
10233 if test "x$lt_cv_dlopen_self" = xyes; then
10234 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\ "
10235 { $as_echo "$as_me:$LINENO: checking whether a statically linked program c an dlopen itself" >&5
10236 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10237 if test "${lt_cv_dlopen_self_static+set}" = set; then
10238 $as_echo_n "(cached) " >&6
10239 else
10240 if test "$cross_compiling" = yes; then :
10241 lt_cv_dlopen_self_static=cross
10242 else
10243 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10244 lt_status=$lt_dlunknown
10245 cat > conftest.$ac_ext <<_LT_EOF
10246 #line 10246 "configure"
10247 #include "confdefs.h"
10248
10249 #if HAVE_DLFCN_H
10250 #include <dlfcn.h>
10251 #endif
10252
10253 #include <stdio.h>
10254
10255 #ifdef RTLD_GLOBAL
10256 # define LT_DLGLOBAL RTLD_GLOBAL
10257 #else
10258 # ifdef DL_GLOBAL
10259 # define LT_DLGLOBAL DL_GLOBAL
10260 # else
10261 # define LT_DLGLOBAL 0
10262 # endif
10263 #endif
10264
10265 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10266 find out it does not work in some platform. */
10267 #ifndef LT_DLLAZY_OR_NOW
10268 # ifdef RTLD_LAZY
10269 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10270 # else
10271 # ifdef DL_LAZY
10272 # define LT_DLLAZY_OR_NOW DL_LAZY
10273 # else
10274 # ifdef RTLD_NOW
10275 # define LT_DLLAZY_OR_NOW RTLD_NOW
10276 # else
10277 # ifdef DL_NOW
10278 # define LT_DLLAZY_OR_NOW DL_NOW
10279 # else
10280 # define LT_DLLAZY_OR_NOW 0
10281 # endif
10282 # endif
10283 # endif
10284 # endif
10285 #endif
10286
10287 void fnord() { int i=42;}
10288 int main ()
10289 {
10290 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10291 int status = $lt_dlunknown;
10292
10293 if (self)
10294 {
10295 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10296 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10297 /* dlclose (self); */
10298 }
10299 else
10300 puts (dlerror ());
10301
10302 return status;
10303 }
10304 _LT_EOF
10305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10306 (eval $ac_link) 2>&5
10307 ac_status=$?
10308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10310 (./conftest; exit; ) >&5 2>/dev/null
10311 lt_status=$?
10312 case x$lt_status in
10313 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10314 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10315 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10316 esac
10317 else :
10318 # compilation failed
10319 lt_cv_dlopen_self_static=no
10320 fi
10321 fi
10322 rm -fr conftest*
10323
10324
10325 fi
10326 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10327 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10328 fi
10329
10330 CPPFLAGS="$save_CPPFLAGS"
10331 LDFLAGS="$save_LDFLAGS"
10332 LIBS="$save_LIBS"
10333 ;;
10334 esac
10335
10336 case $lt_cv_dlopen_self in
10337 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10338 *) enable_dlopen_self=unknown ;;
10339 esac
10340
10341 case $lt_cv_dlopen_self_static in
10342 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10343 *) enable_dlopen_self_static=unknown ;;
10344 esac
10345 fi
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363 striplib=
10364 old_striplib=
10365 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >& 5
10366 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10367 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10368 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10369 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10370 { $as_echo "$as_me:$LINENO: result: yes" >&5
10371 $as_echo "yes" >&6; }
10372 else
10373 # FIXME - insert some real tests, host_os isn't really good enough
10374 case $host_os in
10375 darwin*)
10376 if test -n "$STRIP" ; then
10377 striplib="$STRIP -x"
10378 old_striplib="$STRIP -S"
10379 { $as_echo "$as_me:$LINENO: result: yes" >&5
10380 $as_echo "yes" >&6; }
10381 else
10382 { $as_echo "$as_me:$LINENO: result: no" >&5
10383 $as_echo "no" >&6; }
10384 fi
10385 ;;
10386 *)
10387 { $as_echo "$as_me:$LINENO: result: no" >&5
10388 $as_echo "no" >&6; }
10389 ;;
10390 esac
10391 fi
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404 # Report which library types will actually be built
10405 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10406 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10407 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10408 $as_echo "$can_build_shared" >&6; }
10409
10410 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10411 $as_echo_n "checking whether to build shared libraries... " >&6; }
10412 test "$can_build_shared" = "no" && enable_shared=no
10413
10414 # On AIX, shared libraries and static libraries use the same namespace, and
10415 # are all built from PIC.
10416 case $host_os in
10417 aix3*)
10418 test "$enable_shared" = yes && enable_static=no
10419 if test -n "$RANLIB"; then
10420 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10421 postinstall_cmds='$RANLIB $lib'
10422 fi
10423 ;;
10424
10425 aix[4-9]*)
10426 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10427 test "$enable_shared" = yes && enable_static=no
10428 fi
10429 ;;
10430 esac
10431 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10432 $as_echo "$enable_shared" >&6; }
10433
10434 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10435 $as_echo_n "checking whether to build static libraries... " >&6; }
10436 # Make sure either enable_shared or enable_static is yes.
10437 test "$enable_shared" = yes || enable_static=yes
10438 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10439 $as_echo "$enable_static" >&6; }
10440
10441
10442
10443
10444 fi
10445 ac_ext=c
10446 ac_cpp='$CPP $CPPFLAGS'
10447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
10449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10450
10451 CC="$lt_save_CC"
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465 ac_config_commands="$ac_config_commands libtool"
10466
10467
10468
10469
10470 # Only expand once:
10471
10472
10473 # Find a good install program. We prefer a C program (faster),
10474 # so one script is as good as another. But avoid the broken or
10475 # incompatible versions:
10476 # SysV /etc/install, /usr/sbin/install
10477 # SunOS /usr/etc/install
10478 # IRIX /sbin/install
10479 # AIX /bin/install
10480 # AmigaOS /C/install, which installs bootblocks on floppy discs
10481 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10482 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10483 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10484 # OS/2's system install, which has a completely different semantic
10485 # ./install, which can be erroneously created by make from ./install.sh.
10486 # Reject install programs that cannot install multiple files.
10487 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10488 $as_echo_n "checking for a BSD-compatible install... " >&6; }
10489 if test -z "$INSTALL"; then
10490 if test "${ac_cv_path_install+set}" = set; then
10491 $as_echo_n "(cached) " >&6
10492 else
10493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494 for as_dir in $PATH
10495 do
10496 IFS=$as_save_IFS
10497 test -z "$as_dir" && as_dir=.
10498 # Account for people who put trailing slashes in PATH elements.
10499 case $as_dir/ in
10500 ./ | .// | /cC/* | \
10501 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10502 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10503 /usr/ucb/* ) ;;
10504 *)
10505 # OSF1 and SCO ODT 3.0 have their own names for install.
10506 # Don't use installbsd from OSF since it installs stuff as root
10507 # by default.
10508 for ac_prog in ginstall scoinst install; do
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_p rog$ac_exec_ext"; }; then
10511 if test $ac_prog = install &&
10512 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10513 # AIX install. It has an incompatible calling convention.
10514 :
10515 elif test $ac_prog = install &&
10516 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10517 # program-specific install script used by HP pwplus--don't use.
10518 :
10519 else
10520 rm -rf conftest.one conftest.two conftest.dir
10521 echo one > conftest.one
10522 echo two > conftest.two
10523 mkdir conftest.dir
10524 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd `/conftest.dir" &&
10525 test -s conftest.one && test -s conftest.two &&
10526 test -s conftest.dir/conftest.one &&
10527 test -s conftest.dir/conftest.two
10528 then
10529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10530 break 3
10531 fi
10532 fi
10533 fi
10534 done
10535 done
10536 ;;
10537 esac
10538
10539 done
10540 IFS=$as_save_IFS
10541
10542 rm -rf conftest.one conftest.two conftest.dir
10543
10544 fi
10545 if test "${ac_cv_path_install+set}" = set; then
10546 INSTALL=$ac_cv_path_install
10547 else
10548 # As a last resort, use the slow shell script. Don't cache a
10549 # value for INSTALL within a source directory, because that will
10550 # break other packages using the cache if that directory is
10551 # removed, or if the value is a relative name.
10552 INSTALL=$ac_install_sh
10553 fi
10554 fi
10555 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10556 $as_echo "$INSTALL" >&6; }
10557
10558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10559 # It thinks the first close brace ends the variable substitution.
10560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10561
10562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10563
10564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10565
10566 for ac_prog in gawk mawk nawk awk
10567 do
10568 # Extract the first word of "$ac_prog", so it can be a program name with args.
10569 set dummy $ac_prog; ac_word=$2
10570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10571 $as_echo_n "checking for $ac_word... " >&6; }
10572 if test "${ac_cv_prog_AWK+set}" = set; then
10573 $as_echo_n "(cached) " >&6
10574 else
10575 if test -n "$AWK"; then
10576 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10577 else
10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10579 for as_dir in $PATH
10580 do
10581 IFS=$as_save_IFS
10582 test -z "$as_dir" && as_dir=.
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
10585 ac_cv_prog_AWK="$ac_prog"
10586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10587 break 2
10588 fi
10589 done
10590 done
10591 IFS=$as_save_IFS
10592
10593 fi
10594 fi
10595 AWK=$ac_cv_prog_AWK
10596 if test -n "$AWK"; then
10597 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10598 $as_echo "$AWK" >&6; }
10599 else
10600 { $as_echo "$as_me:$LINENO: result: no" >&5
10601 $as_echo "no" >&6; }
10602 fi
10603
10604
10605 test -n "$AWK" && break
10606 done
10607
10608
10609 #########
10610 # Enable large file support (if special flags are necessary)
10611 #
10612 # Check whether --enable-largefile was given.
10613 if test "${enable_largefile+set}" = set; then
10614 enableval=$enable_largefile;
10615 fi
10616
10617 if test "$enable_largefile" != no; then
10618
10619 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10620 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10621 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10622 $as_echo_n "(cached) " >&6
10623 else
10624 ac_cv_sys_largefile_CC=no
10625 if test "$GCC" != yes; then
10626 ac_save_CC=$CC
10627 while :; do
10628 # IRIX 6.2 and later do not support large files by default,
10629 # so use the C compiler's -n32 option if that helps.
10630 cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h. */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 #include <sys/types.h>
10637 /* Check that off_t can represent 2**63 - 1 correctly.
10638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10639 since some C++ compilers masquerading as C compilers
10640 incorrectly reject 9223372036854775807. */
10641 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10643 && LARGE_OFF_T % 2147483647 == 1)
10644 ? 1 : -1];
10645 int
10646 main ()
10647 {
10648
10649 ;
10650 return 0;
10651 }
10652 _ACEOF
10653 rm -f conftest.$ac_objext
10654 if { (ac_try="$ac_compile"
10655 case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10658 esac
10659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10660 $as_echo "$ac_try_echo") >&5
10661 (eval "$ac_compile") 2>conftest.er1
10662 ac_status=$?
10663 grep -v '^ *+' conftest.er1 >conftest.err
10664 rm -f conftest.er1
10665 cat conftest.err >&5
10666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } && {
10668 test -z "$ac_c_werror_flag" ||
10669 test ! -s conftest.err
10670 } && test -s conftest.$ac_objext; then
10671 break
10672 else
10673 $as_echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10675
10676
10677 fi
10678
10679 rm -f core conftest.err conftest.$ac_objext
10680 CC="$CC -n32"
10681 rm -f conftest.$ac_objext
10682 if { (ac_try="$ac_compile"
10683 case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686 esac
10687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10688 $as_echo "$ac_try_echo") >&5
10689 (eval "$ac_compile") 2>conftest.er1
10690 ac_status=$?
10691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
10694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } && {
10696 test -z "$ac_c_werror_flag" ||
10697 test ! -s conftest.err
10698 } && test -s conftest.$ac_objext; then
10699 ac_cv_sys_largefile_CC=' -n32'; break
10700 else
10701 $as_echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10703
10704
10705 fi
10706
10707 rm -f core conftest.err conftest.$ac_objext
10708 break
10709 done
10710 CC=$ac_save_CC
10711 rm -f conftest.$ac_ext
10712 fi
10713 fi
10714 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10715 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10716 if test "$ac_cv_sys_largefile_CC" != no; then
10717 CC=$CC$ac_cv_sys_largefile_CC
10718 fi
10719
10720 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for la rge files" >&5
10721 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6 ; }
10722 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10723 $as_echo_n "(cached) " >&6
10724 else
10725 while :; do
10726 cat >conftest.$ac_ext <<_ACEOF
10727 /* confdefs.h. */
10728 _ACEOF
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10732 #include <sys/types.h>
10733 /* Check that off_t can represent 2**63 - 1 correctly.
10734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10735 since some C++ compilers masquerading as C compilers
10736 incorrectly reject 9223372036854775807. */
10737 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10739 && LARGE_OFF_T % 2147483647 == 1)
10740 ? 1 : -1];
10741 int
10742 main ()
10743 {
10744
10745 ;
10746 return 0;
10747 }
10748 _ACEOF
10749 rm -f conftest.$ac_objext
10750 if { (ac_try="$ac_compile"
10751 case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10754 esac
10755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10756 $as_echo "$ac_try_echo") >&5
10757 (eval "$ac_compile") 2>conftest.er1
10758 ac_status=$?
10759 grep -v '^ *+' conftest.er1 >conftest.err
10760 rm -f conftest.er1
10761 cat conftest.err >&5
10762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } && {
10764 test -z "$ac_c_werror_flag" ||
10765 test ! -s conftest.err
10766 } && test -s conftest.$ac_objext; then
10767 ac_cv_sys_file_offset_bits=no; break
10768 else
10769 $as_echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772
10773 fi
10774
10775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10776 cat >conftest.$ac_ext <<_ACEOF
10777 /* confdefs.h. */
10778 _ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h. */
10782 #define _FILE_OFFSET_BITS 64
10783 #include <sys/types.h>
10784 /* Check that off_t can represent 2**63 - 1 correctly.
10785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10786 since some C++ compilers masquerading as C compilers
10787 incorrectly reject 9223372036854775807. */
10788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10790 && LARGE_OFF_T % 2147483647 == 1)
10791 ? 1 : -1];
10792 int
10793 main ()
10794 {
10795
10796 ;
10797 return 0;
10798 }
10799 _ACEOF
10800 rm -f conftest.$ac_objext
10801 if { (ac_try="$ac_compile"
10802 case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10805 esac
10806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10807 $as_echo "$ac_try_echo") >&5
10808 (eval "$ac_compile") 2>conftest.er1
10809 ac_status=$?
10810 grep -v '^ *+' conftest.er1 >conftest.err
10811 rm -f conftest.er1
10812 cat conftest.err >&5
10813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } && {
10815 test -z "$ac_c_werror_flag" ||
10816 test ! -s conftest.err
10817 } && test -s conftest.$ac_objext; then
10818 ac_cv_sys_file_offset_bits=64; break
10819 else
10820 $as_echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10822
10823
10824 fi
10825
10826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827 ac_cv_sys_file_offset_bits=unknown
10828 break
10829 done
10830 fi
10831 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10832 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10833 case $ac_cv_sys_file_offset_bits in #(
10834 no | unknown) ;;
10835 *)
10836 cat >>confdefs.h <<_ACEOF
10837 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10838 _ACEOF
10839 ;;
10840 esac
10841 rm -rf conftest*
10842 if test $ac_cv_sys_file_offset_bits = unknown; then
10843 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10844 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10845 if test "${ac_cv_sys_large_files+set}" = set; then
10846 $as_echo_n "(cached) " >&6
10847 else
10848 while :; do
10849 cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h. */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 #include <sys/types.h>
10856 /* Check that off_t can represent 2**63 - 1 correctly.
10857 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10858 since some C++ compilers masquerading as C compilers
10859 incorrectly reject 9223372036854775807. */
10860 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10861 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10862 && LARGE_OFF_T % 2147483647 == 1)
10863 ? 1 : -1];
10864 int
10865 main ()
10866 {
10867
10868 ;
10869 return 0;
10870 }
10871 _ACEOF
10872 rm -f conftest.$ac_objext
10873 if { (ac_try="$ac_compile"
10874 case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10877 esac
10878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10879 $as_echo "$ac_try_echo") >&5
10880 (eval "$ac_compile") 2>conftest.er1
10881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } && {
10887 test -z "$ac_c_werror_flag" ||
10888 test ! -s conftest.err
10889 } && test -s conftest.$ac_objext; then
10890 ac_cv_sys_large_files=no; break
10891 else
10892 $as_echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.$ac_ext >&5
10894
10895
10896 fi
10897
10898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10899 cat >conftest.$ac_ext <<_ACEOF
10900 /* confdefs.h. */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905 #define _LARGE_FILES 1
10906 #include <sys/types.h>
10907 /* Check that off_t can represent 2**63 - 1 correctly.
10908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10909 since some C++ compilers masquerading as C compilers
10910 incorrectly reject 9223372036854775807. */
10911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10913 && LARGE_OFF_T % 2147483647 == 1)
10914 ? 1 : -1];
10915 int
10916 main ()
10917 {
10918
10919 ;
10920 return 0;
10921 }
10922 _ACEOF
10923 rm -f conftest.$ac_objext
10924 if { (ac_try="$ac_compile"
10925 case "(($ac_try" in
10926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927 *) ac_try_echo=$ac_try;;
10928 esac
10929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10930 $as_echo "$ac_try_echo") >&5
10931 (eval "$ac_compile") 2>conftest.er1
10932 ac_status=$?
10933 grep -v '^ *+' conftest.er1 >conftest.err
10934 rm -f conftest.er1
10935 cat conftest.err >&5
10936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } && {
10938 test -z "$ac_c_werror_flag" ||
10939 test ! -s conftest.err
10940 } && test -s conftest.$ac_objext; then
10941 ac_cv_sys_large_files=1; break
10942 else
10943 $as_echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10945
10946
10947 fi
10948
10949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950 ac_cv_sys_large_files=unknown
10951 break
10952 done
10953 fi
10954 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10955 $as_echo "$ac_cv_sys_large_files" >&6; }
10956 case $ac_cv_sys_large_files in #(
10957 no | unknown) ;;
10958 *)
10959 cat >>confdefs.h <<_ACEOF
10960 #define _LARGE_FILES $ac_cv_sys_large_files
10961 _ACEOF
10962 ;;
10963 esac
10964 rm -rf conftest*
10965 fi
10966 fi
10967
10968
10969 #########
10970 # Check for needed/wanted data types
10971 { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10972 $as_echo_n "checking for int8_t... " >&6; }
10973 if test "${ac_cv_type_int8_t+set}" = set; then
10974 $as_echo_n "(cached) " >&6
10975 else
10976 ac_cv_type_int8_t=no
10977 cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h. */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 $ac_includes_default
10984 int
10985 main ()
10986 {
10987 if (sizeof (int8_t))
10988 return 0;
10989 ;
10990 return 0;
10991 }
10992 _ACEOF
10993 rm -f conftest.$ac_objext
10994 if { (ac_try="$ac_compile"
10995 case "(($ac_try" in
10996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997 *) ac_try_echo=$ac_try;;
10998 esac
10999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11000 $as_echo "$ac_try_echo") >&5
11001 (eval "$ac_compile") 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } && {
11008 test -z "$ac_c_werror_flag" ||
11009 test ! -s conftest.err
11010 } && test -s conftest.$ac_objext; then
11011 cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h. */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 $ac_includes_default
11018 int
11019 main ()
11020 {
11021 if (sizeof ((int8_t)))
11022 return 0;
11023 ;
11024 return 0;
11025 }
11026 _ACEOF
11027 rm -f conftest.$ac_objext
11028 if { (ac_try="$ac_compile"
11029 case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11032 esac
11033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11034 $as_echo "$ac_try_echo") >&5
11035 (eval "$ac_compile") 2>conftest.er1
11036 ac_status=$?
11037 grep -v '^ *+' conftest.er1 >conftest.err
11038 rm -f conftest.er1
11039 cat conftest.err >&5
11040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } && {
11042 test -z "$ac_c_werror_flag" ||
11043 test ! -s conftest.err
11044 } && test -s conftest.$ac_objext; then
11045 :
11046 else
11047 $as_echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11049
11050 ac_cv_type_int8_t=yes
11051 fi
11052
11053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054 else
11055 $as_echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11057
11058
11059 fi
11060
11061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11062 fi
11063 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11064 $as_echo "$ac_cv_type_int8_t" >&6; }
11065 if test $ac_cv_type_int8_t = yes; then
11066
11067 cat >>confdefs.h <<_ACEOF
11068 #define HAVE_INT8_T 1
11069 _ACEOF
11070
11071
11072 fi
11073 { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
11074 $as_echo_n "checking for int16_t... " >&6; }
11075 if test "${ac_cv_type_int16_t+set}" = set; then
11076 $as_echo_n "(cached) " >&6
11077 else
11078 ac_cv_type_int16_t=no
11079 cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h. */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 $ac_includes_default
11086 int
11087 main ()
11088 {
11089 if (sizeof (int16_t))
11090 return 0;
11091 ;
11092 return 0;
11093 }
11094 _ACEOF
11095 rm -f conftest.$ac_objext
11096 if { (ac_try="$ac_compile"
11097 case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11100 esac
11101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11102 $as_echo "$ac_try_echo") >&5
11103 (eval "$ac_compile") 2>conftest.er1
11104 ac_status=$?
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
11108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } && {
11110 test -z "$ac_c_werror_flag" ||
11111 test ! -s conftest.err
11112 } && test -s conftest.$ac_objext; then
11113 cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h. */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11119 $ac_includes_default
11120 int
11121 main ()
11122 {
11123 if (sizeof ((int16_t)))
11124 return 0;
11125 ;
11126 return 0;
11127 }
11128 _ACEOF
11129 rm -f conftest.$ac_objext
11130 if { (ac_try="$ac_compile"
11131 case "(($ac_try" in
11132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11134 esac
11135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11136 $as_echo "$ac_try_echo") >&5
11137 (eval "$ac_compile") 2>conftest.er1
11138 ac_status=$?
11139 grep -v '^ *+' conftest.er1 >conftest.err
11140 rm -f conftest.er1
11141 cat conftest.err >&5
11142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); } && {
11144 test -z "$ac_c_werror_flag" ||
11145 test ! -s conftest.err
11146 } && test -s conftest.$ac_objext; then
11147 :
11148 else
11149 $as_echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11151
11152 ac_cv_type_int16_t=yes
11153 fi
11154
11155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11156 else
11157 $as_echo "$as_me: failed program was:" >&5
11158 sed 's/^/| /' conftest.$ac_ext >&5
11159
11160
11161 fi
11162
11163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11164 fi
11165 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11166 $as_echo "$ac_cv_type_int16_t" >&6; }
11167 if test $ac_cv_type_int16_t = yes; then
11168
11169 cat >>confdefs.h <<_ACEOF
11170 #define HAVE_INT16_T 1
11171 _ACEOF
11172
11173
11174 fi
11175 { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11176 $as_echo_n "checking for int32_t... " >&6; }
11177 if test "${ac_cv_type_int32_t+set}" = set; then
11178 $as_echo_n "(cached) " >&6
11179 else
11180 ac_cv_type_int32_t=no
11181 cat >conftest.$ac_ext <<_ACEOF
11182 /* confdefs.h. */
11183 _ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11187 $ac_includes_default
11188 int
11189 main ()
11190 {
11191 if (sizeof (int32_t))
11192 return 0;
11193 ;
11194 return 0;
11195 }
11196 _ACEOF
11197 rm -f conftest.$ac_objext
11198 if { (ac_try="$ac_compile"
11199 case "(($ac_try" in
11200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11201 *) ac_try_echo=$ac_try;;
11202 esac
11203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11204 $as_echo "$ac_try_echo") >&5
11205 (eval "$ac_compile") 2>conftest.er1
11206 ac_status=$?
11207 grep -v '^ *+' conftest.er1 >conftest.err
11208 rm -f conftest.er1
11209 cat conftest.err >&5
11210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211 (exit $ac_status); } && {
11212 test -z "$ac_c_werror_flag" ||
11213 test ! -s conftest.err
11214 } && test -s conftest.$ac_objext; then
11215 cat >conftest.$ac_ext <<_ACEOF
11216 /* confdefs.h. */
11217 _ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11221 $ac_includes_default
11222 int
11223 main ()
11224 {
11225 if (sizeof ((int32_t)))
11226 return 0;
11227 ;
11228 return 0;
11229 }
11230 _ACEOF
11231 rm -f conftest.$ac_objext
11232 if { (ac_try="$ac_compile"
11233 case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11236 esac
11237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11238 $as_echo "$ac_try_echo") >&5
11239 (eval "$ac_compile") 2>conftest.er1
11240 ac_status=$?
11241 grep -v '^ *+' conftest.er1 >conftest.err
11242 rm -f conftest.er1
11243 cat conftest.err >&5
11244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } && {
11246 test -z "$ac_c_werror_flag" ||
11247 test ! -s conftest.err
11248 } && test -s conftest.$ac_objext; then
11249 :
11250 else
11251 $as_echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11253
11254 ac_cv_type_int32_t=yes
11255 fi
11256
11257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11258 else
11259 $as_echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11261
11262
11263 fi
11264
11265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11266 fi
11267 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11268 $as_echo "$ac_cv_type_int32_t" >&6; }
11269 if test $ac_cv_type_int32_t = yes; then
11270
11271 cat >>confdefs.h <<_ACEOF
11272 #define HAVE_INT32_T 1
11273 _ACEOF
11274
11275
11276 fi
11277 { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11278 $as_echo_n "checking for int64_t... " >&6; }
11279 if test "${ac_cv_type_int64_t+set}" = set; then
11280 $as_echo_n "(cached) " >&6
11281 else
11282 ac_cv_type_int64_t=no
11283 cat >conftest.$ac_ext <<_ACEOF
11284 /* confdefs.h. */
11285 _ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h. */
11289 $ac_includes_default
11290 int
11291 main ()
11292 {
11293 if (sizeof (int64_t))
11294 return 0;
11295 ;
11296 return 0;
11297 }
11298 _ACEOF
11299 rm -f conftest.$ac_objext
11300 if { (ac_try="$ac_compile"
11301 case "(($ac_try" in
11302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11303 *) ac_try_echo=$ac_try;;
11304 esac
11305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11306 $as_echo "$ac_try_echo") >&5
11307 (eval "$ac_compile") 2>conftest.er1
11308 ac_status=$?
11309 grep -v '^ *+' conftest.er1 >conftest.err
11310 rm -f conftest.er1
11311 cat conftest.err >&5
11312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); } && {
11314 test -z "$ac_c_werror_flag" ||
11315 test ! -s conftest.err
11316 } && test -s conftest.$ac_objext; then
11317 cat >conftest.$ac_ext <<_ACEOF
11318 /* confdefs.h. */
11319 _ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 $ac_includes_default
11324 int
11325 main ()
11326 {
11327 if (sizeof ((int64_t)))
11328 return 0;
11329 ;
11330 return 0;
11331 }
11332 _ACEOF
11333 rm -f conftest.$ac_objext
11334 if { (ac_try="$ac_compile"
11335 case "(($ac_try" in
11336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11337 *) ac_try_echo=$ac_try;;
11338 esac
11339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11340 $as_echo "$ac_try_echo") >&5
11341 (eval "$ac_compile") 2>conftest.er1
11342 ac_status=$?
11343 grep -v '^ *+' conftest.er1 >conftest.err
11344 rm -f conftest.er1
11345 cat conftest.err >&5
11346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } && {
11348 test -z "$ac_c_werror_flag" ||
11349 test ! -s conftest.err
11350 } && test -s conftest.$ac_objext; then
11351 :
11352 else
11353 $as_echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11355
11356 ac_cv_type_int64_t=yes
11357 fi
11358
11359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11360 else
11361 $as_echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11363
11364
11365 fi
11366
11367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11368 fi
11369 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11370 $as_echo "$ac_cv_type_int64_t" >&6; }
11371 if test $ac_cv_type_int64_t = yes; then
11372
11373 cat >>confdefs.h <<_ACEOF
11374 #define HAVE_INT64_T 1
11375 _ACEOF
11376
11377
11378 fi
11379 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11380 $as_echo_n "checking for intptr_t... " >&6; }
11381 if test "${ac_cv_type_intptr_t+set}" = set; then
11382 $as_echo_n "(cached) " >&6
11383 else
11384 ac_cv_type_intptr_t=no
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h. */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 $ac_includes_default
11392 int
11393 main ()
11394 {
11395 if (sizeof (intptr_t))
11396 return 0;
11397 ;
11398 return 0;
11399 }
11400 _ACEOF
11401 rm -f conftest.$ac_objext
11402 if { (ac_try="$ac_compile"
11403 case "(($ac_try" in
11404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405 *) ac_try_echo=$ac_try;;
11406 esac
11407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11408 $as_echo "$ac_try_echo") >&5
11409 (eval "$ac_compile") 2>conftest.er1
11410 ac_status=$?
11411 grep -v '^ *+' conftest.er1 >conftest.err
11412 rm -f conftest.er1
11413 cat conftest.err >&5
11414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } && {
11416 test -z "$ac_c_werror_flag" ||
11417 test ! -s conftest.err
11418 } && test -s conftest.$ac_objext; then
11419 cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h. */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 $ac_includes_default
11426 int
11427 main ()
11428 {
11429 if (sizeof ((intptr_t)))
11430 return 0;
11431 ;
11432 return 0;
11433 }
11434 _ACEOF
11435 rm -f conftest.$ac_objext
11436 if { (ac_try="$ac_compile"
11437 case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440 esac
11441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11442 $as_echo "$ac_try_echo") >&5
11443 (eval "$ac_compile") 2>conftest.er1
11444 ac_status=$?
11445 grep -v '^ *+' conftest.er1 >conftest.err
11446 rm -f conftest.er1
11447 cat conftest.err >&5
11448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } && {
11450 test -z "$ac_c_werror_flag" ||
11451 test ! -s conftest.err
11452 } && test -s conftest.$ac_objext; then
11453 :
11454 else
11455 $as_echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11457
11458 ac_cv_type_intptr_t=yes
11459 fi
11460
11461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11462 else
11463 $as_echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11465
11466
11467 fi
11468
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 fi
11471 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11472 $as_echo "$ac_cv_type_intptr_t" >&6; }
11473 if test $ac_cv_type_intptr_t = yes; then
11474
11475 cat >>confdefs.h <<_ACEOF
11476 #define HAVE_INTPTR_T 1
11477 _ACEOF
11478
11479
11480 fi
11481 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11482 $as_echo_n "checking for uint8_t... " >&6; }
11483 if test "${ac_cv_type_uint8_t+set}" = set; then
11484 $as_echo_n "(cached) " >&6
11485 else
11486 ac_cv_type_uint8_t=no
11487 cat >conftest.$ac_ext <<_ACEOF
11488 /* confdefs.h. */
11489 _ACEOF
11490 cat confdefs.h >>conftest.$ac_ext
11491 cat >>conftest.$ac_ext <<_ACEOF
11492 /* end confdefs.h. */
11493 $ac_includes_default
11494 int
11495 main ()
11496 {
11497 if (sizeof (uint8_t))
11498 return 0;
11499 ;
11500 return 0;
11501 }
11502 _ACEOF
11503 rm -f conftest.$ac_objext
11504 if { (ac_try="$ac_compile"
11505 case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11508 esac
11509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11510 $as_echo "$ac_try_echo") >&5
11511 (eval "$ac_compile") 2>conftest.er1
11512 ac_status=$?
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
11516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } && {
11518 test -z "$ac_c_werror_flag" ||
11519 test ! -s conftest.err
11520 } && test -s conftest.$ac_objext; then
11521 cat >conftest.$ac_ext <<_ACEOF
11522 /* confdefs.h. */
11523 _ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11527 $ac_includes_default
11528 int
11529 main ()
11530 {
11531 if (sizeof ((uint8_t)))
11532 return 0;
11533 ;
11534 return 0;
11535 }
11536 _ACEOF
11537 rm -f conftest.$ac_objext
11538 if { (ac_try="$ac_compile"
11539 case "(($ac_try" in
11540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541 *) ac_try_echo=$ac_try;;
11542 esac
11543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11544 $as_echo "$ac_try_echo") >&5
11545 (eval "$ac_compile") 2>conftest.er1
11546 ac_status=$?
11547 grep -v '^ *+' conftest.er1 >conftest.err
11548 rm -f conftest.er1
11549 cat conftest.err >&5
11550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } && {
11552 test -z "$ac_c_werror_flag" ||
11553 test ! -s conftest.err
11554 } && test -s conftest.$ac_objext; then
11555 :
11556 else
11557 $as_echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560 ac_cv_type_uint8_t=yes
11561 fi
11562
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 else
11565 $as_echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11567
11568
11569 fi
11570
11571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11572 fi
11573 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11574 $as_echo "$ac_cv_type_uint8_t" >&6; }
11575 if test $ac_cv_type_uint8_t = yes; then
11576
11577 cat >>confdefs.h <<_ACEOF
11578 #define HAVE_UINT8_T 1
11579 _ACEOF
11580
11581
11582 fi
11583 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11584 $as_echo_n "checking for uint16_t... " >&6; }
11585 if test "${ac_cv_type_uint16_t+set}" = set; then
11586 $as_echo_n "(cached) " >&6
11587 else
11588 ac_cv_type_uint16_t=no
11589 cat >conftest.$ac_ext <<_ACEOF
11590 /* confdefs.h. */
11591 _ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11595 $ac_includes_default
11596 int
11597 main ()
11598 {
11599 if (sizeof (uint16_t))
11600 return 0;
11601 ;
11602 return 0;
11603 }
11604 _ACEOF
11605 rm -f conftest.$ac_objext
11606 if { (ac_try="$ac_compile"
11607 case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11610 esac
11611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11612 $as_echo "$ac_try_echo") >&5
11613 (eval "$ac_compile") 2>conftest.er1
11614 ac_status=$?
11615 grep -v '^ *+' conftest.er1 >conftest.err
11616 rm -f conftest.er1
11617 cat conftest.err >&5
11618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); } && {
11620 test -z "$ac_c_werror_flag" ||
11621 test ! -s conftest.err
11622 } && test -s conftest.$ac_objext; then
11623 cat >conftest.$ac_ext <<_ACEOF
11624 /* confdefs.h. */
11625 _ACEOF
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11629 $ac_includes_default
11630 int
11631 main ()
11632 {
11633 if (sizeof ((uint16_t)))
11634 return 0;
11635 ;
11636 return 0;
11637 }
11638 _ACEOF
11639 rm -f conftest.$ac_objext
11640 if { (ac_try="$ac_compile"
11641 case "(($ac_try" in
11642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643 *) ac_try_echo=$ac_try;;
11644 esac
11645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11646 $as_echo "$ac_try_echo") >&5
11647 (eval "$ac_compile") 2>conftest.er1
11648 ac_status=$?
11649 grep -v '^ *+' conftest.er1 >conftest.err
11650 rm -f conftest.er1
11651 cat conftest.err >&5
11652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } && {
11654 test -z "$ac_c_werror_flag" ||
11655 test ! -s conftest.err
11656 } && test -s conftest.$ac_objext; then
11657 :
11658 else
11659 $as_echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11661
11662 ac_cv_type_uint16_t=yes
11663 fi
11664
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666 else
11667 $as_echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11669
11670
11671 fi
11672
11673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11674 fi
11675 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11676 $as_echo "$ac_cv_type_uint16_t" >&6; }
11677 if test $ac_cv_type_uint16_t = yes; then
11678
11679 cat >>confdefs.h <<_ACEOF
11680 #define HAVE_UINT16_T 1
11681 _ACEOF
11682
11683
11684 fi
11685 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11686 $as_echo_n "checking for uint32_t... " >&6; }
11687 if test "${ac_cv_type_uint32_t+set}" = set; then
11688 $as_echo_n "(cached) " >&6
11689 else
11690 ac_cv_type_uint32_t=no
11691 cat >conftest.$ac_ext <<_ACEOF
11692 /* confdefs.h. */
11693 _ACEOF
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11697 $ac_includes_default
11698 int
11699 main ()
11700 {
11701 if (sizeof (uint32_t))
11702 return 0;
11703 ;
11704 return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext
11708 if { (ac_try="$ac_compile"
11709 case "(($ac_try" in
11710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711 *) ac_try_echo=$ac_try;;
11712 esac
11713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11714 $as_echo "$ac_try_echo") >&5
11715 (eval "$ac_compile") 2>conftest.er1
11716 ac_status=$?
11717 grep -v '^ *+' conftest.er1 >conftest.err
11718 rm -f conftest.er1
11719 cat conftest.err >&5
11720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); } && {
11722 test -z "$ac_c_werror_flag" ||
11723 test ! -s conftest.err
11724 } && test -s conftest.$ac_objext; then
11725 cat >conftest.$ac_ext <<_ACEOF
11726 /* confdefs.h. */
11727 _ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11731 $ac_includes_default
11732 int
11733 main ()
11734 {
11735 if (sizeof ((uint32_t)))
11736 return 0;
11737 ;
11738 return 0;
11739 }
11740 _ACEOF
11741 rm -f conftest.$ac_objext
11742 if { (ac_try="$ac_compile"
11743 case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11746 esac
11747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11748 $as_echo "$ac_try_echo") >&5
11749 (eval "$ac_compile") 2>conftest.er1
11750 ac_status=$?
11751 grep -v '^ *+' conftest.er1 >conftest.err
11752 rm -f conftest.er1
11753 cat conftest.err >&5
11754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } && {
11756 test -z "$ac_c_werror_flag" ||
11757 test ! -s conftest.err
11758 } && test -s conftest.$ac_objext; then
11759 :
11760 else
11761 $as_echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11763
11764 ac_cv_type_uint32_t=yes
11765 fi
11766
11767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11768 else
11769 $as_echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11771
11772
11773 fi
11774
11775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11776 fi
11777 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11778 $as_echo "$ac_cv_type_uint32_t" >&6; }
11779 if test $ac_cv_type_uint32_t = yes; then
11780
11781 cat >>confdefs.h <<_ACEOF
11782 #define HAVE_UINT32_T 1
11783 _ACEOF
11784
11785
11786 fi
11787 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11788 $as_echo_n "checking for uint64_t... " >&6; }
11789 if test "${ac_cv_type_uint64_t+set}" = set; then
11790 $as_echo_n "(cached) " >&6
11791 else
11792 ac_cv_type_uint64_t=no
11793 cat >conftest.$ac_ext <<_ACEOF
11794 /* confdefs.h. */
11795 _ACEOF
11796 cat confdefs.h >>conftest.$ac_ext
11797 cat >>conftest.$ac_ext <<_ACEOF
11798 /* end confdefs.h. */
11799 $ac_includes_default
11800 int
11801 main ()
11802 {
11803 if (sizeof (uint64_t))
11804 return 0;
11805 ;
11806 return 0;
11807 }
11808 _ACEOF
11809 rm -f conftest.$ac_objext
11810 if { (ac_try="$ac_compile"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814 esac
11815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11816 $as_echo "$ac_try_echo") >&5
11817 (eval "$ac_compile") 2>conftest.er1
11818 ac_status=$?
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
11822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } && {
11824 test -z "$ac_c_werror_flag" ||
11825 test ! -s conftest.err
11826 } && test -s conftest.$ac_objext; then
11827 cat >conftest.$ac_ext <<_ACEOF
11828 /* confdefs.h. */
11829 _ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h. */
11833 $ac_includes_default
11834 int
11835 main ()
11836 {
11837 if (sizeof ((uint64_t)))
11838 return 0;
11839 ;
11840 return 0;
11841 }
11842 _ACEOF
11843 rm -f conftest.$ac_objext
11844 if { (ac_try="$ac_compile"
11845 case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11848 esac
11849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11850 $as_echo "$ac_try_echo") >&5
11851 (eval "$ac_compile") 2>conftest.er1
11852 ac_status=$?
11853 grep -v '^ *+' conftest.er1 >conftest.err
11854 rm -f conftest.er1
11855 cat conftest.err >&5
11856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); } && {
11858 test -z "$ac_c_werror_flag" ||
11859 test ! -s conftest.err
11860 } && test -s conftest.$ac_objext; then
11861 :
11862 else
11863 $as_echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11865
11866 ac_cv_type_uint64_t=yes
11867 fi
11868
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 else
11871 $as_echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11873
11874
11875 fi
11876
11877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11878 fi
11879 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11880 $as_echo "$ac_cv_type_uint64_t" >&6; }
11881 if test $ac_cv_type_uint64_t = yes; then
11882
11883 cat >>confdefs.h <<_ACEOF
11884 #define HAVE_UINT64_T 1
11885 _ACEOF
11886
11887
11888 fi
11889 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11890 $as_echo_n "checking for uintptr_t... " >&6; }
11891 if test "${ac_cv_type_uintptr_t+set}" = set; then
11892 $as_echo_n "(cached) " >&6
11893 else
11894 ac_cv_type_uintptr_t=no
11895 cat >conftest.$ac_ext <<_ACEOF
11896 /* confdefs.h. */
11897 _ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11901 $ac_includes_default
11902 int
11903 main ()
11904 {
11905 if (sizeof (uintptr_t))
11906 return 0;
11907 ;
11908 return 0;
11909 }
11910 _ACEOF
11911 rm -f conftest.$ac_objext
11912 if { (ac_try="$ac_compile"
11913 case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916 esac
11917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11918 $as_echo "$ac_try_echo") >&5
11919 (eval "$ac_compile") 2>conftest.er1
11920 ac_status=$?
11921 grep -v '^ *+' conftest.er1 >conftest.err
11922 rm -f conftest.er1
11923 cat conftest.err >&5
11924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } && {
11926 test -z "$ac_c_werror_flag" ||
11927 test ! -s conftest.err
11928 } && test -s conftest.$ac_objext; then
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 $ac_includes_default
11936 int
11937 main ()
11938 {
11939 if (sizeof ((uintptr_t)))
11940 return 0;
11941 ;
11942 return 0;
11943 }
11944 _ACEOF
11945 rm -f conftest.$ac_objext
11946 if { (ac_try="$ac_compile"
11947 case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11950 esac
11951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11952 $as_echo "$ac_try_echo") >&5
11953 (eval "$ac_compile") 2>conftest.er1
11954 ac_status=$?
11955 grep -v '^ *+' conftest.er1 >conftest.err
11956 rm -f conftest.er1
11957 cat conftest.err >&5
11958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } && {
11960 test -z "$ac_c_werror_flag" ||
11961 test ! -s conftest.err
11962 } && test -s conftest.$ac_objext; then
11963 :
11964 else
11965 $as_echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11967
11968 ac_cv_type_uintptr_t=yes
11969 fi
11970
11971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11972 else
11973 $as_echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11975
11976
11977 fi
11978
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 fi
11981 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11982 $as_echo "$ac_cv_type_uintptr_t" >&6; }
11983 if test $ac_cv_type_uintptr_t = yes; then
11984
11985 cat >>confdefs.h <<_ACEOF
11986 #define HAVE_UINTPTR_T 1
11987 _ACEOF
11988
11989
11990 fi
11991
11992
11993 #########
11994 # Check for needed/wanted headers
11995
11996
11997
11998
11999 for ac_header in sys/types.h stdlib.h stdint.h inttypes.h
12000 do
12001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12003 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12004 $as_echo_n "checking for $ac_header... " >&6; }
12005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12006 $as_echo_n "(cached) " >&6
12007 fi
12008 ac_res=`eval 'as_val=${'$as_ac_Header'}
12009 $as_echo "$as_val"'`
12010 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12011 $as_echo "$ac_res" >&6; }
12012 else
12013 # Is the header compilable?
12014 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12015 $as_echo_n "checking $ac_header usability... " >&6; }
12016 cat >conftest.$ac_ext <<_ACEOF
12017 /* confdefs.h. */
12018 _ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12022 $ac_includes_default
12023 #include <$ac_header>
12024 _ACEOF
12025 rm -f conftest.$ac_objext
12026 if { (ac_try="$ac_compile"
12027 case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12030 esac
12031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12032 $as_echo "$ac_try_echo") >&5
12033 (eval "$ac_compile") 2>conftest.er1
12034 ac_status=$?
12035 grep -v '^ *+' conftest.er1 >conftest.err
12036 rm -f conftest.er1
12037 cat conftest.err >&5
12038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } && {
12040 test -z "$ac_c_werror_flag" ||
12041 test ! -s conftest.err
12042 } && test -s conftest.$ac_objext; then
12043 ac_header_compiler=yes
12044 else
12045 $as_echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12047
12048 ac_header_compiler=no
12049 fi
12050
12051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12052 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12053 $as_echo "$ac_header_compiler" >&6; }
12054
12055 # Is the header present?
12056 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12057 $as_echo_n "checking $ac_header presence... " >&6; }
12058 cat >conftest.$ac_ext <<_ACEOF
12059 /* confdefs.h. */
12060 _ACEOF
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 #include <$ac_header>
12065 _ACEOF
12066 if { (ac_try="$ac_cpp conftest.$ac_ext"
12067 case "(($ac_try" in
12068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069 *) ac_try_echo=$ac_try;;
12070 esac
12071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12072 $as_echo "$ac_try_echo") >&5
12073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12074 ac_status=$?
12075 grep -v '^ *+' conftest.er1 >conftest.err
12076 rm -f conftest.er1
12077 cat conftest.err >&5
12078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } >/dev/null && {
12080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12081 test ! -s conftest.err
12082 }; then
12083 ac_header_preproc=yes
12084 else
12085 $as_echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12087
12088 ac_header_preproc=no
12089 fi
12090
12091 rm -f conftest.err conftest.$ac_ext
12092 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12093 $as_echo "$ac_header_preproc" >&6; }
12094
12095 # So? What about this header?
12096 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12097 yes:no: )
12098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, r ejected by the preprocessor!" >&5
12099 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compile r's result" >&5
12101 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >& 2;}
12102 ac_header_preproc=yes
12103 ;;
12104 no:yes:* )
12105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compi led" >&5
12106 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prere quisite headers?" >&5
12108 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite header s?" >&2;}
12109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentat ion" >&5
12110 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But C annot Be Compiled\"" >&5
12112 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compi led\"" >&2;}
12113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preproc essor's result" >&5
12114 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result " >&2;}
12115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12116 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take pre cedence" >&2;}
12117
12118 ;;
12119 esac
12120 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12121 $as_echo_n "checking for $ac_header... " >&6; }
12122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123 $as_echo_n "(cached) " >&6
12124 else
12125 eval "$as_ac_Header=\$ac_header_preproc"
12126 fi
12127 ac_res=`eval 'as_val=${'$as_ac_Header'}
12128 $as_echo "$as_val"'`
12129 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12130 $as_echo "$ac_res" >&6; }
12131
12132 fi
12133 if test `eval 'as_val=${'$as_ac_Header'}
12134 $as_echo "$as_val"'` = yes; then
12135 cat >>confdefs.h <<_ACEOF
12136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12137 _ACEOF
12138
12139 fi
12140
12141 done
12142
12143
12144 #########
12145 # Figure out whether or not we have these functions
12146 #
12147
12148
12149
12150
12151
12152 for ac_func in usleep fdatasync localtime_r gmtime_r localtime_s
12153 do
12154 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12155 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12156 $as_echo_n "checking for $ac_func... " >&6; }
12157 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12158 $as_echo_n "(cached) " >&6
12159 else
12160 cat >conftest.$ac_ext <<_ACEOF
12161 /* confdefs.h. */
12162 _ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
12167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12168 #define $ac_func innocuous_$ac_func
12169
12170 /* System header to define __stub macros and hopefully few prototypes,
12171 which can conflict with char $ac_func (); below.
12172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12173 <limits.h> exists even on freestanding compilers. */
12174
12175 #ifdef __STDC__
12176 # include <limits.h>
12177 #else
12178 # include <assert.h>
12179 #endif
12180
12181 #undef $ac_func
12182
12183 /* Override any GCC internal prototype to avoid an error.
12184 Use char because int might match the return type of a GCC
12185 builtin and then its argument prototype would still apply. */
12186 #ifdef __cplusplus
12187 extern "C"
12188 #endif
12189 char $ac_func ();
12190 /* The GNU C library defines this for functions which it implements
12191 to always fail with ENOSYS. Some functions are actually named
12192 something starting with __ and the normal name is an alias. */
12193 #if defined __stub_$ac_func || defined __stub___$ac_func
12194 choke me
12195 #endif
12196
12197 int
12198 main ()
12199 {
12200 return $ac_func ();
12201 ;
12202 return 0;
12203 }
12204 _ACEOF
12205 rm -f conftest.$ac_objext conftest$ac_exeext
12206 if { (ac_try="$ac_link"
12207 case "(($ac_try" in
12208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209 *) ac_try_echo=$ac_try;;
12210 esac
12211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12212 $as_echo "$ac_try_echo") >&5
12213 (eval "$ac_link") 2>conftest.er1
12214 ac_status=$?
12215 grep -v '^ *+' conftest.er1 >conftest.err
12216 rm -f conftest.er1
12217 cat conftest.err >&5
12218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } && {
12220 test -z "$ac_c_werror_flag" ||
12221 test ! -s conftest.err
12222 } && test -s conftest$ac_exeext && {
12223 test "$cross_compiling" = yes ||
12224 $as_test_x conftest$ac_exeext
12225 }; then
12226 eval "$as_ac_var=yes"
12227 else
12228 $as_echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231 eval "$as_ac_var=no"
12232 fi
12233
12234 rm -rf conftest.dSYM
12235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12236 conftest$ac_exeext conftest.$ac_ext
12237 fi
12238 ac_res=`eval 'as_val=${'$as_ac_var'}
12239 $as_echo "$as_val"'`
12240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12241 $as_echo "$ac_res" >&6; }
12242 if test `eval 'as_val=${'$as_ac_var'}
12243 $as_echo "$as_val"'` = yes; then
12244 cat >>confdefs.h <<_ACEOF
12245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12246 _ACEOF
12247
12248 fi
12249 done
12250
12251
12252 #########
12253 # By default, we use the amalgamation (this may be changed below...)
12254 #
12255 USE_AMALGAMATION=1
12256
12257 #########
12258 # See whether we can run specific tclsh versions known to work well;
12259 # if not, then we fall back to plain tclsh.
12260 # TODO: try other versions before falling back?
12261 #
12262 for ac_prog in tclsh8.4 tclsh
12263 do
12264 # Extract the first word of "$ac_prog", so it can be a program name with args.
12265 set dummy $ac_prog; ac_word=$2
12266 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12267 $as_echo_n "checking for $ac_word... " >&6; }
12268 if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
12269 $as_echo_n "(cached) " >&6
12270 else
12271 if test -n "$TCLSH_CMD"; then
12272 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12273 else
12274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275 for as_dir in $PATH
12276 do
12277 IFS=$as_save_IFS
12278 test -z "$as_dir" && as_dir=.
12279 for ac_exec_ext in '' $ac_executable_extensions; do
12280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
12281 ac_cv_prog_TCLSH_CMD="$ac_prog"
12282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12283 break 2
12284 fi
12285 done
12286 done
12287 IFS=$as_save_IFS
12288
12289 fi
12290 fi
12291 TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12292 if test -n "$TCLSH_CMD"; then
12293 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
12294 $as_echo "$TCLSH_CMD" >&6; }
12295 else
12296 { $as_echo "$as_me:$LINENO: result: no" >&5
12297 $as_echo "no" >&6; }
12298 fi
12299
12300
12301 test -n "$TCLSH_CMD" && break
12302 done
12303 test -n "$TCLSH_CMD" || TCLSH_CMD="none"
12304
12305 if test "$TCLSH_CMD" = "none"; then
12306 # If we can't find a local tclsh, then building the amalgamation will fail.
12307 # We act as though --disable-amalgamation has been used.
12308 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12309 USE_AMALGAMATION=0
12310 TCLSH_CMD="tclsh"
12311 fi
12312
12313
12314
12315 if test "x${TCLLIBDIR+set}" != "xset" ; then
12316 TCLLIBDIR='$(libdir)'
12317 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12318 TCLLIBDIR=$i
12319 break
12320 done
12321 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12322 fi
12323
12324
12325 #########
12326 # Set up an appropriate program prefix
12327 #
12328 if test "$program_prefix" = "NONE"; then
12329 program_prefix=""
12330 fi
12331
12332
12333 VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
12334 { $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5
12335 $as_echo "$as_me: Version set to $VERSION" >&6;}
12336
12337 RELEASE=`cat $srcdir/VERSION`
12338 { $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5
12339 $as_echo "$as_me: Release set to $RELEASE" >&6;}
12340
12341 VERSION_NUMBER=`cat $srcdir/VERSION \
12342 | sed 's/[^0-9]/ /g' \
12343 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
12344 { $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5
12345 $as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
12346
12347
12348 #########
12349 # Check to see if the --with-hints=FILE option is used. If there is none,
12350 # then check for a files named "$host.hints" and ../$hosts.hints where
12351 # $host is the hostname of the build system. If still no hints are
12352 # found, try looking in $system.hints and ../$system.hints where
12353 # $system is the result of uname -s.
12354 #
12355
12356 # Check whether --with-hints was given.
12357 if test "${with_hints+set}" = set; then
12358 withval=$with_hints; hints=$withval
12359 fi
12360
12361 if test "$hints" = ""; then
12362 host=`hostname | sed 's/\..*//'`
12363 if test -r $host.hints; then
12364 hints=$host.hints
12365 else
12366 if test -r ../$host.hints; then
12367 hints=../$host.hints
12368 fi
12369 fi
12370 fi
12371 if test "$hints" = ""; then
12372 sys=`uname -s`
12373 if test -r $sys.hints; then
12374 hints=$sys.hints
12375 else
12376 if test -r ../$sys.hints; then
12377 hints=../$sys.hints
12378 fi
12379 fi
12380 fi
12381 if test "$hints" != ""; then
12382 { $as_echo "$as_me:$LINENO: result: reading hints from $hints" >&5
12383 $as_echo "reading hints from $hints" >&6; }
12384 . $hints
12385 fi
12386
12387 #########
12388 # Locate a compiler for the build machine. This compiler should
12389 # generate command-line programs that run on the build machine.
12390 #
12391 if test x"$cross_compiling" = xno; then
12392 BUILD_CC=$CC
12393 BUILD_CFLAGS=$CFLAGS
12394 else
12395 if test "${BUILD_CC+set}" != set; then
12396 for ac_prog in gcc cc cl
12397 do
12398 # Extract the first word of "$ac_prog", so it can be a program name with args.
12399 set dummy $ac_prog; ac_word=$2
12400 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12401 $as_echo_n "checking for $ac_word... " >&6; }
12402 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
12403 $as_echo_n "(cached) " >&6
12404 else
12405 if test -n "$BUILD_CC"; then
12406 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12407 else
12408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409 for as_dir in $PATH
12410 do
12411 IFS=$as_save_IFS
12412 test -z "$as_dir" && as_dir=.
12413 for ac_exec_ext in '' $ac_executable_extensions; do
12414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
12415 ac_cv_prog_BUILD_CC="$ac_prog"
12416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12417 break 2
12418 fi
12419 done
12420 done
12421 IFS=$as_save_IFS
12422
12423 fi
12424 fi
12425 BUILD_CC=$ac_cv_prog_BUILD_CC
12426 if test -n "$BUILD_CC"; then
12427 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12428 $as_echo "$BUILD_CC" >&6; }
12429 else
12430 { $as_echo "$as_me:$LINENO: result: no" >&5
12431 $as_echo "no" >&6; }
12432 fi
12433
12434
12435 test -n "$BUILD_CC" && break
12436 done
12437
12438 fi
12439 if test "${BUILD_CFLAGS+set}" != set; then
12440 BUILD_CFLAGS="-g"
12441 fi
12442 fi
12443
12444
12445 ##########
12446 # Do we want to support multithreaded use of sqlite
12447 #
12448 # Check whether --enable-threadsafe was given.
12449 if test "${enable_threadsafe+set}" = set; then
12450 enableval=$enable_threadsafe;
12451 else
12452 enable_threadsafe=yes
12453 fi
12454
12455 { $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >& 5
12456 $as_echo_n "checking whether to support threadsafe operation... " >&6; }
12457 if test "$enable_threadsafe" = "no"; then
12458 SQLITE_THREADSAFE=0
12459 { $as_echo "$as_me:$LINENO: result: no" >&5
12460 $as_echo "no" >&6; }
12461 else
12462 SQLITE_THREADSAFE=1
12463 { $as_echo "$as_me:$LINENO: result: yes" >&5
12464 $as_echo "yes" >&6; }
12465 fi
12466
12467
12468 if test "$SQLITE_THREADSAFE" = "1"; then
12469 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >& 5
12470 $as_echo_n "checking for library containing pthread_create... " >&6; }
12471 if test "${ac_cv_search_pthread_create+set}" = set; then
12472 $as_echo_n "(cached) " >&6
12473 else
12474 ac_func_search_save_LIBS=$LIBS
12475 cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h. */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12481
12482 /* Override any GCC internal prototype to avoid an error.
12483 Use char because int might match the return type of a GCC
12484 builtin and then its argument prototype would still apply. */
12485 #ifdef __cplusplus
12486 extern "C"
12487 #endif
12488 char pthread_create ();
12489 int
12490 main ()
12491 {
12492 return pthread_create ();
12493 ;
12494 return 0;
12495 }
12496 _ACEOF
12497 for ac_lib in '' pthread; do
12498 if test -z "$ac_lib"; then
12499 ac_res="none required"
12500 else
12501 ac_res=-l$ac_lib
12502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12503 fi
12504 rm -f conftest.$ac_objext conftest$ac_exeext
12505 if { (ac_try="$ac_link"
12506 case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12509 esac
12510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12511 $as_echo "$ac_try_echo") >&5
12512 (eval "$ac_link") 2>conftest.er1
12513 ac_status=$?
12514 grep -v '^ *+' conftest.er1 >conftest.err
12515 rm -f conftest.er1
12516 cat conftest.err >&5
12517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); } && {
12519 test -z "$ac_c_werror_flag" ||
12520 test ! -s conftest.err
12521 } && test -s conftest$ac_exeext && {
12522 test "$cross_compiling" = yes ||
12523 $as_test_x conftest$ac_exeext
12524 }; then
12525 ac_cv_search_pthread_create=$ac_res
12526 else
12527 $as_echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12529
12530
12531 fi
12532
12533 rm -rf conftest.dSYM
12534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12535 conftest$ac_exeext
12536 if test "${ac_cv_search_pthread_create+set}" = set; then
12537 break
12538 fi
12539 done
12540 if test "${ac_cv_search_pthread_create+set}" = set; then
12541 :
12542 else
12543 ac_cv_search_pthread_create=no
12544 fi
12545 rm conftest.$ac_ext
12546 LIBS=$ac_func_search_save_LIBS
12547 fi
12548 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
12549 $as_echo "$ac_cv_search_pthread_create" >&6; }
12550 ac_res=$ac_cv_search_pthread_create
12551 if test "$ac_res" != no; then
12552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12553
12554 fi
12555
12556 fi
12557
12558 ##########
12559 # Do we want to allow a connection created in one thread to be used
12560 # in another thread. This does not work on many Linux systems (ex: RedHat 9)
12561 # due to bugs in the threading implementations. This is thus off by default.
12562 #
12563 # Check whether --enable-cross-thread-connections was given.
12564 if test "${enable_cross_thread_connections+set}" = set; then
12565 enableval=$enable_cross_thread_connections;
12566 else
12567 enable_xthreadconnect=no
12568 fi
12569
12570 { $as_echo "$as_me:$LINENO: checking whether to allow connections to be shared a cross threads" >&5
12571 $as_echo_n "checking whether to allow connections to be shared across threads... " >&6; }
12572 if test "$enable_xthreadconnect" = "no"; then
12573 XTHREADCONNECT=''
12574 { $as_echo "$as_me:$LINENO: result: no" >&5
12575 $as_echo "no" >&6; }
12576 else
12577 XTHREADCONNECT='-DSQLITE_ALLOW_XTHREAD_CONNECT=1'
12578 { $as_echo "$as_me:$LINENO: result: yes" >&5
12579 $as_echo "yes" >&6; }
12580 fi
12581
12582
12583 ##########
12584 # Do we want to set threadsOverrideEachOthersLocks variable to be 1 (true) by
12585 # default. Normally, a test at runtime is performed to determine the
12586 # appropriate value of this variable. Use this option only if you're sure that
12587 # threads can safely override each others locks in all runtime situations.
12588 #
12589 # Check whether --enable-threads-override-locks was given.
12590 if test "${enable_threads_override_locks+set}" = set; then
12591 enableval=$enable_threads_override_locks;
12592 else
12593 enable_threads_override_locks=no
12594 fi
12595
12596 { $as_echo "$as_me:$LINENO: checking whether threads can override each others lo cks" >&5
12597 $as_echo_n "checking whether threads can override each others locks... " >&6; }
12598 if test "$enable_threads_override_locks" = "no"; then
12599 THREADSOVERRIDELOCKS='-1'
12600 { $as_echo "$as_me:$LINENO: result: no" >&5
12601 $as_echo "no" >&6; }
12602 else
12603 THREADSOVERRIDELOCKS='1'
12604 { $as_echo "$as_me:$LINENO: result: yes" >&5
12605 $as_echo "yes" >&6; }
12606 fi
12607
12608
12609 ##########
12610 # Do we want to support release
12611 #
12612 # Check whether --enable-releasemode was given.
12613 if test "${enable_releasemode+set}" = set; then
12614 enableval=$enable_releasemode;
12615 else
12616 enable_releasemode=no
12617 fi
12618
12619 { $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
12620 $as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
12621 if test "$enable_releasemode" = "no"; then
12622 ALLOWRELEASE=""
12623 { $as_echo "$as_me:$LINENO: result: no" >&5
12624 $as_echo "no" >&6; }
12625 else
12626 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
12627 { $as_echo "$as_me:$LINENO: result: yes" >&5
12628 $as_echo "yes" >&6; }
12629 fi
12630
12631
12632 ##########
12633 # Do we want temporary databases in memory
12634 #
12635 # Check whether --enable-tempstore was given.
12636 if test "${enable_tempstore+set}" = set; then
12637 enableval=$enable_tempstore;
12638 else
12639 enable_tempstore=no
12640 fi
12641
12642 { $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for tempo rary tables" >&5
12643 $as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
12644 case "$enable_tempstore" in
12645 never )
12646 TEMP_STORE=0
12647 { $as_echo "$as_me:$LINENO: result: never" >&5
12648 $as_echo "never" >&6; }
12649 ;;
12650 no )
12651 TEMP_STORE=1
12652 { $as_echo "$as_me:$LINENO: result: no" >&5
12653 $as_echo "no" >&6; }
12654 ;;
12655 yes )
12656 TEMP_STORE=2
12657 { $as_echo "$as_me:$LINENO: result: yes" >&5
12658 $as_echo "yes" >&6; }
12659 ;;
12660 always )
12661 TEMP_STORE=3
12662 { $as_echo "$as_me:$LINENO: result: always" >&5
12663 $as_echo "always" >&6; }
12664 ;;
12665 * )
12666 TEMP_STORE=1
12667 { $as_echo "$as_me:$LINENO: result: no" >&5
12668 $as_echo "no" >&6; }
12669 ;;
12670 esac
12671
12672
12673
12674 ###########
12675 # Lots of things are different if we are compiling for Windows using
12676 # the CYGWIN environment. So check for that special case and handle
12677 # things accordingly.
12678 #
12679 { $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
12680 $as_echo_n "checking if executables have the .exe suffix... " >&6; }
12681 if test "$config_BUILD_EXEEXT" = ".exe"; then
12682 CYGWIN=yes
12683 { $as_echo "$as_me:$LINENO: result: yes" >&5
12684 $as_echo "yes" >&6; }
12685 else
12686 { $as_echo "$as_me:$LINENO: result: unknown" >&5
12687 $as_echo "unknown" >&6; }
12688 fi
12689 if test "$CYGWIN" != "yes"; then
12690 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12691 $as_echo_n "checking host system type... " >&6; }
12692 if test "${ac_cv_host+set}" = set; then
12693 $as_echo_n "(cached) " >&6
12694 else
12695 if test "x$host_alias" = x; then
12696 ac_cv_host=$ac_cv_build
12697 else
12698 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12699 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_ali as failed" >&5
12700 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12701 { (exit 1); exit 1; }; }
12702 fi
12703
12704 fi
12705 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12706 $as_echo "$ac_cv_host" >&6; }
12707 case $ac_cv_host in
12708 *-*-*) ;;
12709 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12710 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
12711 { (exit 1); exit 1; }; };;
12712 esac
12713 host=$ac_cv_host
12714 ac_save_IFS=$IFS; IFS='-'
12715 set x $ac_cv_host
12716 shift
12717 host_cpu=$1
12718 host_vendor=$2
12719 shift; shift
12720 # Remember, the first character of IFS is used to create $*,
12721 # except with old shells:
12722 host_os=$*
12723 IFS=$ac_save_IFS
12724 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12725
12726
12727 case $host_os in
12728 *cygwin* ) CYGWIN=yes;;
12729 * ) CYGWIN=no;;
12730 esac
12731
12732 fi
12733 if test "$CYGWIN" = "yes"; then
12734 BUILD_EXEEXT=.exe
12735 else
12736 BUILD_EXEEXT=$EXEEXT
12737 fi
12738 if test x"$cross_compiling" = xno; then
12739 TARGET_EXEEXT=$BUILD_EXEEXT
12740 else
12741 TARGET_EXEEXT=$config_TARGET_EXEEXT
12742 fi
12743 if test "$TARGET_EXEEXT" = ".exe"; then
12744 if test $OS2_SHELL ; then
12745 SQLITE_OS_UNIX=0
12746 SQLITE_OS_WIN=0
12747 SQLITE_OS_OS2=1
12748 CFLAGS="$CFLAGS -DSQLITE_OS_OS2=1"
12749 else
12750 SQLITE_OS_UNIX=0
12751 SQLITE_OS_WIN=1
12752 SQLITE_OS_OS2=0
12753 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
12754 fi
12755 else
12756 SQLITE_OS_UNIX=1
12757 SQLITE_OS_WIN=0
12758 SQLITE_OS_OS2=0
12759 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
12760 fi
12761
12762
12763
12764
12765
12766
12767
12768 ##########
12769 # Figure out all the parameters needed to compile against Tcl.
12770 #
12771 # This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12772 # macros in the in the tcl.m4 file of the standard TCL distribution.
12773 # Those macros could not be used directly since we have to make some
12774 # minor changes to accomodate systems that do not have TCL installed.
12775 #
12776 # Check whether --enable-tcl was given.
12777 if test "${enable_tcl+set}" = set; then
12778 enableval=$enable_tcl; use_tcl=$enableval
12779 else
12780 use_tcl=yes
12781 fi
12782
12783 if test "${use_tcl}" = "yes" ; then
12784
12785 # Check whether --with-tcl was given.
12786 if test "${with_tcl+set}" = set; then
12787 withval=$with_tcl; with_tclconfig=${withval}
12788 fi
12789
12790 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
12791 $as_echo_n "checking for Tcl configuration... " >&6; }
12792 if test "${ac_cv_c_tclconfig+set}" = set; then
12793 $as_echo_n "(cached) " >&6
12794 else
12795
12796 # First check to see if --with-tcl was specified.
12797 if test x"${with_tclconfig}" != x ; then
12798 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12799 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12800 else
12801 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
12802 $as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.s h" >&2;}
12803 { (exit 1); exit 1; }; }
12804 fi
12805 fi
12806
12807 # Start autosearch by asking tclsh
12808 if test x"$cross_compiling" = xno; then
12809 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12810 do
12811 if test -f "$i/tclConfig.sh" ; then
12812 ac_cv_c_tclconfig="$i"
12813 break
12814 fi
12815 done
12816 fi
12817
12818 # then check for a private Tcl installation
12819 if test x"${ac_cv_c_tclconfig}" = x ; then
12820 for i in \
12821 ../tcl \
12822 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12823 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12824 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12825 ../../tcl \
12826 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12827 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12828 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12829 ../../../tcl \
12830 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12831 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12832 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12833 do
12834 if test -f "$i/unix/tclConfig.sh" ; then
12835 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12836 break
12837 fi
12838 done
12839 fi
12840
12841 # check in a few common install locations
12842 if test x"${ac_cv_c_tclconfig}" = x ; then
12843 for i in \
12844 `ls -d ${libdir} 2>/dev/null` \
12845 `ls -d /usr/local/lib 2>/dev/null` \
12846 `ls -d /usr/contrib/lib 2>/dev/null` \
12847 `ls -d /usr/lib 2>/dev/null`
12848 do
12849 if test -f "$i/tclConfig.sh" ; then
12850 ac_cv_c_tclconfig=`(cd $i; pwd)`
12851 break
12852 fi
12853 done
12854 fi
12855
12856 # check in a few other private locations
12857 if test x"${ac_cv_c_tclconfig}" = x ; then
12858 for i in \
12859 ${srcdir}/../tcl \
12860 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12861 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12862 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12863 do
12864 if test -f "$i/unix/tclConfig.sh" ; then
12865 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12866 break
12867 fi
12868 done
12869 fi
12870
12871 fi
12872
12873
12874 if test x"${ac_cv_c_tclconfig}" = x ; then
12875 use_tcl=no
12876 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definition s" >&5
12877 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12878 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests ca nnot be executed ***" >&5
12879 $as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be execut ed ***" >&2;}
12880 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to de fine location of Tcl ***" >&5
12881 $as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
12882 else
12883 TCL_BIN_DIR=${ac_cv_c_tclconfig}
12884 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
12885 $as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
12886
12887 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig .sh" >&5
12888 $as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
12889 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
12890 { $as_echo "$as_me:$LINENO: result: loading" >&5
12891 $as_echo "loading" >&6; }
12892 . $TCL_BIN_DIR/tclConfig.sh
12893 else
12894 { $as_echo "$as_me:$LINENO: result: file not found" >&5
12895 $as_echo "file not found" >&6; }
12896 fi
12897
12898 #
12899 # If the TCL_BIN_DIR is the build directory (not the install directory),
12900 # then set the common variable name to the value of the build variables.
12901 # For example, the variable TCL_LIB_SPEC will be set to the value
12902 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12903 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12904 # installed and uninstalled version of Tcl.
12905 #
12906
12907 if test -f $TCL_BIN_DIR/Makefile ; then
12908 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12909 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12910 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12911 fi
12912
12913 #
12914 # eval is required to do the TCL_DBGX substitution
12915 #
12916
12917 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12918 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12919 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12920
12921 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12922 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12923 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938 fi
12939 fi
12940 if test "${use_tcl}" = "no" ; then
12941 HAVE_TCL=""
12942 else
12943 HAVE_TCL=1
12944 fi
12945
12946
12947 ##########
12948 # Figure out what C libraries are required to compile programs
12949 # that use "readline()" library.
12950 #
12951 TARGET_READLINE_LIBS=""
12952 TARGET_READLINE_INC=""
12953 TARGET_HAVE_READLINE=0
12954 # Check whether --enable-readline was given.
12955 if test "${enable_readline+set}" = set; then
12956 enableval=$enable_readline; with_readline=$enableval
12957 else
12958 with_readline=auto
12959 fi
12960
12961
12962 if test x"$with_readline" != xno; then
12963 found="yes"
12964
12965
12966 # Check whether --with-readline-lib was given.
12967 if test "${with_readline_lib+set}" = set; then
12968 withval=$with_readline_lib; with_readline_lib=$withval
12969 else
12970 with_readline_lib="auto"
12971 fi
12972
12973 if test "x$with_readline_lib" = xauto; then
12974 save_LIBS="$LIBS"
12975 LIBS=""
12976 { $as_echo "$as_me:$LINENO: checking for library containing tget ent" >&5
12977 $as_echo_n "checking for library containing tgetent... " >&6; }
12978 if test "${ac_cv_search_tgetent+set}" = set; then
12979 $as_echo_n "(cached) " >&6
12980 else
12981 ac_func_search_save_LIBS=$LIBS
12982 cat >conftest.$ac_ext <<_ACEOF
12983 /* confdefs.h. */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988
12989 /* Override any GCC internal prototype to avoid an error.
12990 Use char because int might match the return type of a GCC
12991 builtin and then its argument prototype would still apply. */
12992 #ifdef __cplusplus
12993 extern "C"
12994 #endif
12995 char tgetent ();
12996 int
12997 main ()
12998 {
12999 return tgetent ();
13000 ;
13001 return 0;
13002 }
13003 _ACEOF
13004 for ac_lib in '' readline ncurses curses termcap; do
13005 if test -z "$ac_lib"; then
13006 ac_res="none required"
13007 else
13008 ac_res=-l$ac_lib
13009 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13010 fi
13011 rm -f conftest.$ac_objext conftest$ac_exeext
13012 if { (ac_try="$ac_link"
13013 case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13016 esac
13017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13018 $as_echo "$ac_try_echo") >&5
13019 (eval "$ac_link") 2>conftest.er1
13020 ac_status=$?
13021 grep -v '^ *+' conftest.er1 >conftest.err
13022 rm -f conftest.er1
13023 cat conftest.err >&5
13024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } && {
13026 test -z "$ac_c_werror_flag" ||
13027 test ! -s conftest.err
13028 } && test -s conftest$ac_exeext && {
13029 test "$cross_compiling" = yes ||
13030 $as_test_x conftest$ac_exeext
13031 }; then
13032 ac_cv_search_tgetent=$ac_res
13033 else
13034 $as_echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.$ac_ext >&5
13036
13037
13038 fi
13039
13040 rm -rf conftest.dSYM
13041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13042 conftest$ac_exeext
13043 if test "${ac_cv_search_tgetent+set}" = set; then
13044 break
13045 fi
13046 done
13047 if test "${ac_cv_search_tgetent+set}" = set; then
13048 :
13049 else
13050 ac_cv_search_tgetent=no
13051 fi
13052 rm conftest.$ac_ext
13053 LIBS=$ac_func_search_save_LIBS
13054 fi
13055 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
13056 $as_echo "$ac_cv_search_tgetent" >&6; }
13057 ac_res=$ac_cv_search_tgetent
13058 if test "$ac_res" != no; then
13059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13060 term_LIBS="$LIBS"
13061 else
13062 term_LIBS=""
13063 fi
13064
13065 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
13066 $as_echo_n "checking for readline in -lreadline... " >&6; }
13067 if test "${ac_cv_lib_readline_readline+set}" = set; then
13068 $as_echo_n "(cached) " >&6
13069 else
13070 ac_check_lib_save_LIBS=$LIBS
13071 LIBS="-lreadline $LIBS"
13072 cat >conftest.$ac_ext <<_ACEOF
13073 /* confdefs.h. */
13074 _ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13078
13079 /* Override any GCC internal prototype to avoid an error.
13080 Use char because int might match the return type of a GCC
13081 builtin and then its argument prototype would still apply. */
13082 #ifdef __cplusplus
13083 extern "C"
13084 #endif
13085 char readline ();
13086 int
13087 main ()
13088 {
13089 return readline ();
13090 ;
13091 return 0;
13092 }
13093 _ACEOF
13094 rm -f conftest.$ac_objext conftest$ac_exeext
13095 if { (ac_try="$ac_link"
13096 case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13099 esac
13100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13101 $as_echo "$ac_try_echo") >&5
13102 (eval "$ac_link") 2>conftest.er1
13103 ac_status=$?
13104 grep -v '^ *+' conftest.er1 >conftest.err
13105 rm -f conftest.er1
13106 cat conftest.err >&5
13107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); } && {
13109 test -z "$ac_c_werror_flag" ||
13110 test ! -s conftest.err
13111 } && test -s conftest$ac_exeext && {
13112 test "$cross_compiling" = yes ||
13113 $as_test_x conftest$ac_exeext
13114 }; then
13115 ac_cv_lib_readline_readline=yes
13116 else
13117 $as_echo "$as_me: failed program was:" >&5
13118 sed 's/^/| /' conftest.$ac_ext >&5
13119
13120 ac_cv_lib_readline_readline=no
13121 fi
13122
13123 rm -rf conftest.dSYM
13124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13125 conftest$ac_exeext conftest.$ac_ext
13126 LIBS=$ac_check_lib_save_LIBS
13127 fi
13128 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
13129 $as_echo "$ac_cv_lib_readline_readline" >&6; }
13130 if test $ac_cv_lib_readline_readline = yes; then
13131 TARGET_READLINE_LIBS="-lreadline"
13132 else
13133 found="no"
13134 fi
13135
13136 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13137 LIBS="$save_LIBS"
13138 else
13139 TARGET_READLINE_LIBS="$with_readline_lib"
13140 fi
13141
13142
13143 # Check whether --with-readline-inc was given.
13144 if test "${with_readline_inc+set}" = set; then
13145 withval=$with_readline_inc; with_readline_inc=$withval
13146 else
13147 with_readline_inc="auto"
13148 fi
13149
13150 if test "x$with_readline_inc" = xauto; then
13151 if test "${ac_cv_header_readline_h+set}" = set; then
13152 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13153 $as_echo_n "checking for readline.h... " >&6; }
13154 if test "${ac_cv_header_readline_h+set}" = set; then
13155 $as_echo_n "(cached) " >&6
13156 fi
13157 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13158 $as_echo "$ac_cv_header_readline_h" >&6; }
13159 else
13160 # Is the header compilable?
13161 { $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
13162 $as_echo_n "checking readline.h usability... " >&6; }
13163 cat >conftest.$ac_ext <<_ACEOF
13164 /* confdefs.h. */
13165 _ACEOF
13166 cat confdefs.h >>conftest.$ac_ext
13167 cat >>conftest.$ac_ext <<_ACEOF
13168 /* end confdefs.h. */
13169 $ac_includes_default
13170 #include <readline.h>
13171 _ACEOF
13172 rm -f conftest.$ac_objext
13173 if { (ac_try="$ac_compile"
13174 case "(($ac_try" in
13175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176 *) ac_try_echo=$ac_try;;
13177 esac
13178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13179 $as_echo "$ac_try_echo") >&5
13180 (eval "$ac_compile") 2>conftest.er1
13181 ac_status=$?
13182 grep -v '^ *+' conftest.er1 >conftest.err
13183 rm -f conftest.er1
13184 cat conftest.err >&5
13185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } && {
13187 test -z "$ac_c_werror_flag" ||
13188 test ! -s conftest.err
13189 } && test -s conftest.$ac_objext; then
13190 ac_header_compiler=yes
13191 else
13192 $as_echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13194
13195 ac_header_compiler=no
13196 fi
13197
13198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13199 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13200 $as_echo "$ac_header_compiler" >&6; }
13201
13202 # Is the header present?
13203 { $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
13204 $as_echo_n "checking readline.h presence... " >&6; }
13205 cat >conftest.$ac_ext <<_ACEOF
13206 /* confdefs.h. */
13207 _ACEOF
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h. */
13211 #include <readline.h>
13212 _ACEOF
13213 if { (ac_try="$ac_cpp conftest.$ac_ext"
13214 case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13217 esac
13218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13219 $as_echo "$ac_try_echo") >&5
13220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13221 ac_status=$?
13222 grep -v '^ *+' conftest.er1 >conftest.err
13223 rm -f conftest.er1
13224 cat conftest.err >&5
13225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } >/dev/null && {
13227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13228 test ! -s conftest.err
13229 }; then
13230 ac_header_preproc=yes
13231 else
13232 $as_echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13234
13235 ac_header_preproc=no
13236 fi
13237
13238 rm -f conftest.err conftest.$ac_ext
13239 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13240 $as_echo "$ac_header_preproc" >&6; }
13241
13242 # So? What about this header?
13243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13244 yes:no: )
13245 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, r ejected by the preprocessor!" >&5
13246 $as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13247 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compile r's result" >&5
13248 $as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >& 2;}
13249 ac_header_preproc=yes
13250 ;;
13251 no:yes:* )
13252 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compi led" >&5
13253 $as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
13254 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prere quisite headers?" >&5
13255 $as_echo "$as_me: WARNING: readline.h: check for missing prerequisite header s?" >&2;}
13256 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentat ion" >&5
13257 $as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
13258 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But C annot Be Compiled\"" >&5
13259 $as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compi led\"" >&2;}
13260 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preproc essor's result" >&5
13261 $as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result " >&2;}
13262 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
13263 $as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take pre cedence" >&2;}
13264
13265 ;;
13266 esac
13267 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13268 $as_echo_n "checking for readline.h... " >&6; }
13269 if test "${ac_cv_header_readline_h+set}" = set; then
13270 $as_echo_n "(cached) " >&6
13271 else
13272 ac_cv_header_readline_h=$ac_header_preproc
13273 fi
13274 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13275 $as_echo "$ac_cv_header_readline_h" >&6; }
13276
13277 fi
13278 if test $ac_cv_header_readline_h = yes; then
13279 found="yes"
13280 else
13281
13282 found="no"
13283 if test "$cross_compiling" != yes; then
13284 for dir in /usr /usr/local /usr/local/readline / usr/contrib /mingw; do
13285 for subdir in include include/readline; do
13286 as_ac_File=`$as_echo "ac_cv_file _$dir/$subdir/readline.h" | $as_tr_sh`
13287 { $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
13288 $as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
13289 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
13290 $as_echo_n "(cached) " >&6
13291 else
13292 test "$cross_compiling" = yes &&
13293 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cros s compiling" >&5
13294 $as_echo "$as_me: error: cannot check for file existence when cross compiling" > &2;}
13295 { (exit 1); exit 1; }; }
13296 if test -r "$dir/$subdir/readline.h"; then
13297 eval "$as_ac_File=yes"
13298 else
13299 eval "$as_ac_File=no"
13300 fi
13301 fi
13302 ac_res=`eval 'as_val=${'$as_ac_File'}
13303 $as_echo "$as_val"'`
13304 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13305 $as_echo "$ac_res" >&6; }
13306 if test `eval 'as_val=${'$as_ac_File'}
13307 $as_echo "$as_val"'` = yes; then
13308 found=yes
13309 fi
13310
13311 if test "$found" = "yes"; then
13312 TARGET_READLINE_INC="-I$ dir/$subdir"
13313 break
13314 fi
13315 done
13316 test "$found" = "yes" && break
13317 done
13318 fi
13319
13320 fi
13321
13322
13323 else
13324 TARGET_READLINE_INC="$with_readline_inc"
13325 fi
13326
13327 if test x"$found" = xno; then
13328 TARGET_READLINE_LIBS=""
13329 TARGET_READLINE_INC=""
13330 TARGET_HAVE_READLINE=0
13331 else
13332 TARGET_HAVE_READLINE=1
13333 fi
13334 fi
13335
13336
13337
13338
13339
13340 ##########
13341 # Figure out what C libraries are required to compile programs
13342 # that use "fdatasync()" function.
13343 #
13344 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
13345 $as_echo_n "checking for library containing fdatasync... " >&6; }
13346 if test "${ac_cv_search_fdatasync+set}" = set; then
13347 $as_echo_n "(cached) " >&6
13348 else
13349 ac_func_search_save_LIBS=$LIBS
13350 cat >conftest.$ac_ext <<_ACEOF
13351 /* confdefs.h. */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356
13357 /* Override any GCC internal prototype to avoid an error.
13358 Use char because int might match the return type of a GCC
13359 builtin and then its argument prototype would still apply. */
13360 #ifdef __cplusplus
13361 extern "C"
13362 #endif
13363 char fdatasync ();
13364 int
13365 main ()
13366 {
13367 return fdatasync ();
13368 ;
13369 return 0;
13370 }
13371 _ACEOF
13372 for ac_lib in '' rt; do
13373 if test -z "$ac_lib"; then
13374 ac_res="none required"
13375 else
13376 ac_res=-l$ac_lib
13377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13378 fi
13379 rm -f conftest.$ac_objext conftest$ac_exeext
13380 if { (ac_try="$ac_link"
13381 case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13384 esac
13385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13386 $as_echo "$ac_try_echo") >&5
13387 (eval "$ac_link") 2>conftest.er1
13388 ac_status=$?
13389 grep -v '^ *+' conftest.er1 >conftest.err
13390 rm -f conftest.er1
13391 cat conftest.err >&5
13392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } && {
13394 test -z "$ac_c_werror_flag" ||
13395 test ! -s conftest.err
13396 } && test -s conftest$ac_exeext && {
13397 test "$cross_compiling" = yes ||
13398 $as_test_x conftest$ac_exeext
13399 }; then
13400 ac_cv_search_fdatasync=$ac_res
13401 else
13402 $as_echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13404
13405
13406 fi
13407
13408 rm -rf conftest.dSYM
13409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13410 conftest$ac_exeext
13411 if test "${ac_cv_search_fdatasync+set}" = set; then
13412 break
13413 fi
13414 done
13415 if test "${ac_cv_search_fdatasync+set}" = set; then
13416 :
13417 else
13418 ac_cv_search_fdatasync=no
13419 fi
13420 rm conftest.$ac_ext
13421 LIBS=$ac_func_search_save_LIBS
13422 fi
13423 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
13424 $as_echo "$ac_cv_search_fdatasync" >&6; }
13425 ac_res=$ac_cv_search_fdatasync
13426 if test "$ac_res" != no; then
13427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13428
13429 fi
13430
13431
13432 #########
13433 # check for debug enabled
13434 # Check whether --enable-debug was given.
13435 if test "${enable_debug+set}" = set; then
13436 enableval=$enable_debug; use_debug=$enableval
13437 else
13438 use_debug=no
13439 fi
13440
13441 if test "${use_debug}" = "yes" ; then
13442 TARGET_DEBUG="-DSQLITE_DEBUG=1"
13443 else
13444 TARGET_DEBUG="-DNDEBUG"
13445 fi
13446
13447
13448 #########
13449 # See whether we should use the amalgamation to build
13450 # Check whether --enable-amalgamation was given.
13451 if test "${enable_amalgamation+set}" = set; then
13452 enableval=$enable_amalgamation; use_amalgamation=$enableval
13453 else
13454 use_amalgamation=yes
13455 fi
13456
13457 if test "${use_amalgamation}" != "yes" ; then
13458 USE_AMALGAMATION=0
13459 fi
13460
13461
13462 #########
13463 # See whether we should allow loadable extensions
13464 # Check whether --enable-load-extension was given.
13465 if test "${enable_load_extension+set}" = set; then
13466 enableval=$enable_load_extension; use_loadextension=$enableval
13467 else
13468 use_loadextension=no
13469 fi
13470
13471 if test "${use_loadextension}" = "yes" ; then
13472 OPT_FEATURE_FLAGS=""
13473 else
13474 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
13475 fi
13476
13477 #########
13478 # attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) param eter
13479 for option in $CFLAGS $CPPFLAGS
13480 do
13481 case $option in
13482 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13483 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
13484 esac
13485 done
13486
13487
13488
13489 # attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
13490 ac_temp_CFLAGS=""
13491 for option in $CFLAGS
13492 do
13493 case $option in
13494 -DSQLITE_OMIT*) ;;
13495 -DSQLITE_ENABLE*) ;;
13496 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
13497 esac
13498 done
13499 CFLAGS=$ac_temp_CFLAGS
13500
13501
13502 # attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
13503 ac_temp_CPPFLAGS=""
13504 for option in $CPPFLAGS
13505 do
13506 case $option in
13507 -DSQLITE_OMIT*) ;;
13508 -DSQLITE_ENABLE*) ;;
13509 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
13510 esac
13511 done
13512 CPPFLAGS=$ac_temp_CPPFLAGS
13513
13514
13515 # attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
13516 ac_temp_BUILD_CFLAGS=""
13517 for option in $BUILD_CFLAGS
13518 do
13519 case $option in
13520 -DSQLITE_OMIT*) ;;
13521 -DSQLITE_ENABLE*) ;;
13522 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
13523 esac
13524 done
13525 BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13526
13527
13528 #########
13529 # See whether we should use GCOV
13530 # Check whether --enable-gcov was given.
13531 if test "${enable_gcov+set}" = set; then
13532 enableval=$enable_gcov; use_gcov=$enableval
13533 else
13534 use_gcov=no
13535 fi
13536
13537 if test "${use_gcov}" = "yes" ; then
13538 USE_GCOV=1
13539 else
13540 USE_GCOV=0
13541 fi
13542
13543
13544
13545 #########
13546 # Output the config header
13547 ac_config_headers="$ac_config_headers config.h"
13548
13549
13550 #########
13551 # Generate the output files.
13552 #
13553
13554 ac_config_files="$ac_config_files Makefile sqlite3.pc"
13555
13556 cat >confcache <<\_ACEOF
13557 # This file is a shell script that caches the results of configure
13558 # tests run on this system so they can be shared between configure
13559 # scripts and configure runs, see configure's option --config-cache.
13560 # It is not useful on other systems. If it contains results you don't
13561 # want to keep, you may remove or edit it.
13562 #
13563 # config.status only pays attention to the cache file if you give it
13564 # the --recheck option to rerun configure.
13565 #
13566 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13567 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13568 # following values.
13569
13570 _ACEOF
13571
13572 # The following way of writing the cache mishandles newlines in values,
13573 # but we know of no workaround that is simple, portable, and efficient.
13574 # So, we kill variables containing newlines.
13575 # Ultrix sh set writes to stderr and can't be redirected directly,
13576 # and sets the high bit in the cache file unless we assign to the vars.
13577 (
13578 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; d o
13579 eval ac_val=\$$ac_var
13580 case $ac_val in #(
13581 *${as_nl}*)
13582 case $ac_var in #(
13583 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contai ns a newline." >&5
13584 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13585 esac
13586 case $ac_var in #(
13587 _ | IFS | as_nl) ;; #(
13588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13589 *) $as_unset $ac_var ;;
13590 esac ;;
13591 esac
13592 done
13593
13594 (set) 2>&1 |
13595 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13596 *${as_nl}ac_space=\ *)
13597 # `set' does not quote correctly, so add quotes (double-quote
13598 # substitution turns \\\\ into \\, and sed turns \\ into \).
13599 sed -n \
13600 "s/'/'\\\\''/g;
13601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13602 ;; #(
13603 *)
13604 # `set' quotes correctly as required by POSIX, so do not add quotes.
13605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13606 ;;
13607 esac |
13608 sort
13609 ) |
13610 sed '
13611 /^ac_cv_env_/b end
13612 t clear
13613 :clear
13614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13615 t end
13616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13617 :end' >>confcache
13618 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13619 if test -w "$cache_file"; then
13620 test "x$cache_file" != "x/dev/null" &&
13621 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13622 $as_echo "$as_me: updating cache $cache_file" >&6;}
13623 cat confcache >$cache_file
13624 else
13625 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13626 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13627 fi
13628 fi
13629 rm -f confcache
13630
13631 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13632 # Let make expand exec_prefix.
13633 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13634
13635 DEFS=-DHAVE_CONFIG_H
13636
13637 ac_libobjs=
13638 ac_ltlibobjs=
13639 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13640 # 1. Remove the extension, and $U if already installed.
13641 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13642 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13643 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13644 # will be set to the directory where LIBOBJS objects are built.
13645 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13646 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13647 done
13648 LIBOBJS=$ac_libobjs
13649
13650 LTLIBOBJS=$ac_ltlibobjs
13651
13652
13653
13654 : ${CONFIG_STATUS=./config.status}
13655 ac_write_fail=0
13656 ac_clean_files_save=$ac_clean_files
13657 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13658 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13659 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13660 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13661 #! $SHELL
13662 # Generated by $as_me.
13663 # Run this file to recreate the current configuration.
13664 # Compiler output produced by configure, useful for debugging
13665 # configure, is in config.log if it exists.
13666
13667 debug=false
13668 ac_cs_recheck=false
13669 ac_cs_silent=false
13670 SHELL=\${CONFIG_SHELL-$SHELL}
13671 _ACEOF
13672
13673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13674 ## --------------------- ##
13675 ## M4sh Initialization. ##
13676 ## --------------------- ##
13677
13678 # Be more Bourne compatible
13679 DUALCASE=1; export DUALCASE # for MKS sh
13680 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13681 emulate sh
13682 NULLCMD=:
13683 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13684 # is contrary to our usage. Disable this feature.
13685 alias -g '${1+"$@"}'='"$@"'
13686 setopt NO_GLOB_SUBST
13687 else
13688 case `(set -o) 2>/dev/null` in
13689 *posix*) set -o posix ;;
13690 esac
13691
13692 fi
13693
13694
13695
13696
13697 # PATH needs CR
13698 # Avoid depending upon Character Ranges.
13699 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13700 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13701 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13702 as_cr_digits='0123456789'
13703 as_cr_alnum=$as_cr_Letters$as_cr_digits
13704
13705 as_nl='
13706 '
13707 export as_nl
13708 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13709 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13710 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13711 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13712 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13713 as_echo='printf %s\n'
13714 as_echo_n='printf %s'
13715 else
13716 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13717 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13718 as_echo_n='/usr/ucb/echo -n'
13719 else
13720 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13721 as_echo_n_body='eval
13722 arg=$1;
13723 case $arg in
13724 *"$as_nl"*)
13725 expr "X$arg" : "X\\(.*\\)$as_nl";
13726 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13727 esac;
13728 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13729 '
13730 export as_echo_n_body
13731 as_echo_n='sh -c $as_echo_n_body as_echo'
13732 fi
13733 export as_echo_body
13734 as_echo='sh -c $as_echo_body as_echo'
13735 fi
13736
13737 # The user is always right.
13738 if test "${PATH_SEPARATOR+set}" != set; then
13739 PATH_SEPARATOR=:
13740 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13741 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13742 PATH_SEPARATOR=';'
13743 }
13744 fi
13745
13746 # Support unset when possible.
13747 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13748 as_unset=unset
13749 else
13750 as_unset=false
13751 fi
13752
13753
13754 # IFS
13755 # We need space, tab and new line, in precisely that order. Quoting is
13756 # there to prevent editors from complaining about space-tab.
13757 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13758 # splitting by setting IFS to empty value.)
13759 IFS=" "" $as_nl"
13760
13761 # Find who we are. Look in the path if we contain no directory separator.
13762 case $0 in
13763 *[\\/]* ) as_myself=$0 ;;
13764 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13765 for as_dir in $PATH
13766 do
13767 IFS=$as_save_IFS
13768 test -z "$as_dir" && as_dir=.
13769 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13770 done
13771 IFS=$as_save_IFS
13772
13773 ;;
13774 esac
13775 # We did not find ourselves, most probably we were run as `sh COMMAND'
13776 # in which case we are not to be found in the path.
13777 if test "x$as_myself" = x; then
13778 as_myself=$0
13779 fi
13780 if test ! -f "$as_myself"; then
13781 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file n ame" >&2
13782 { (exit 1); exit 1; }
13783 fi
13784
13785 # Work around bugs in pre-3.0 UWIN ksh.
13786 for as_var in ENV MAIL MAILPATH
13787 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13788 done
13789 PS1='$ '
13790 PS2='> '
13791 PS4='+ '
13792
13793 # NLS nuisances.
13794 LC_ALL=C
13795 export LC_ALL
13796 LANGUAGE=C
13797 export LANGUAGE
13798
13799 # Required to use basename.
13800 if expr a : '\(a\)' >/dev/null 2>&1 &&
13801 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13802 as_expr=expr
13803 else
13804 as_expr=false
13805 fi
13806
13807 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13808 as_basename=basename
13809 else
13810 as_basename=false
13811 fi
13812
13813
13814 # Name of the executable.
13815 as_me=`$as_basename -- "$0" ||
13816 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13817 X"$0" : 'X\(//\)$' \| \
13818 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13819 $as_echo X/"$0" |
13820 sed '/^.*\/\([^/][^/]*\)\/*$/{
13821 s//\1/
13822 q
13823 }
13824 /^X\/\(\/\/\)$/{
13825 s//\1/
13826 q
13827 }
13828 /^X\/\(\/\).*/{
13829 s//\1/
13830 q
13831 }
13832 s/.*/./; q'`
13833
13834 # CDPATH.
13835 $as_unset CDPATH
13836
13837
13838
13839 as_lineno_1=$LINENO
13840 as_lineno_2=$LINENO
13841 test "x$as_lineno_1" != "x$as_lineno_2" &&
13842 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13843
13844 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13845 # uniformly replaced by the line number. The first 'sed' inserts a
13846 # line-number line after each line using $LINENO; the second 'sed'
13847 # does the real work. The second script uses 'N' to pair each
13848 # line-number line with the line containing $LINENO, and appends
13849 # trailing '-' during substitution so that $LINENO is not a special
13850 # case at line end.
13851 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13852 # scripts with optimization help from Paolo Bonzini. Blame Lee
13853 # E. McMahon (1931-1989) for sed's syntax. :-)
13854 sed -n '
13855 p
13856 /[$]LINENO/=
13857 ' <$as_myself |
13858 sed '
13859 s/[$]LINENO.*/&-/
13860 t lineno
13861 b
13862 :lineno
13863 N
13864 :loop
13865 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13866 t loop
13867 s/-\n.*//
13868 ' >$as_me.lineno &&
13869 chmod +x "$as_me.lineno" ||
13870 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX s hell" >&2
13871 { (exit 1); exit 1; }; }
13872
13873 # Don't try to exec as it changes $[0], causing all sort of problems
13874 # (the dirname of $[0] is not the place where we might find the
13875 # original and so on. Autoconf is especially sensitive to this).
13876 . "./$as_me.lineno"
13877 # Exit status is that of the last command.
13878 exit
13879 }
13880
13881
13882 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13883 as_dirname=dirname
13884 else
13885 as_dirname=false
13886 fi
13887
13888 ECHO_C= ECHO_N= ECHO_T=
13889 case `echo -n x` in
13890 -n*)
13891 case `echo 'x\c'` in
13892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13893 *) ECHO_C='\c';;
13894 esac;;
13895 *)
13896 ECHO_N='-n';;
13897 esac
13898 if expr a : '\(a\)' >/dev/null 2>&1 &&
13899 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13900 as_expr=expr
13901 else
13902 as_expr=false
13903 fi
13904
13905 rm -f conf$$ conf$$.exe conf$$.file
13906 if test -d conf$$.dir; then
13907 rm -f conf$$.dir/conf$$.file
13908 else
13909 rm -f conf$$.dir
13910 mkdir conf$$.dir 2>/dev/null
13911 fi
13912 if (echo >conf$$.file) 2>/dev/null; then
13913 if ln -s conf$$.file conf$$ 2>/dev/null; then
13914 as_ln_s='ln -s'
13915 # ... but there are two gotchas:
13916 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13917 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13918 # In both cases, we have to default to `cp -p'.
13919 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13920 as_ln_s='cp -p'
13921 elif ln conf$$.file conf$$ 2>/dev/null; then
13922 as_ln_s=ln
13923 else
13924 as_ln_s='cp -p'
13925 fi
13926 else
13927 as_ln_s='cp -p'
13928 fi
13929 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13930 rmdir conf$$.dir 2>/dev/null
13931
13932 if mkdir -p . 2>/dev/null; then
13933 as_mkdir_p=:
13934 else
13935 test -d ./-p && rmdir ./-p
13936 as_mkdir_p=false
13937 fi
13938
13939 if test -x / >/dev/null 2>&1; then
13940 as_test_x='test -x'
13941 else
13942 if ls -dL / >/dev/null 2>&1; then
13943 as_ls_L_option=L
13944 else
13945 as_ls_L_option=
13946 fi
13947 as_test_x='
13948 eval sh -c '\''
13949 if test -d "$1"; then
13950 test -d "$1/.";
13951 else
13952 case $1 in
13953 -*)set "./$1";;
13954 esac;
13955 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13956 ???[sx]*):;;*)false;;esac;fi
13957 '\'' sh
13958 '
13959 fi
13960 as_executable_p=$as_test_x
13961
13962 # Sed expression to map a string onto a valid CPP name.
13963 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13964
13965 # Sed expression to map a string onto a valid variable name.
13966 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13967
13968
13969 exec 6>&1
13970
13971 # Save the log message, to keep $[0] and so on meaningful, and to
13972 # report actual input values of CONFIG_FILES etc. instead of their
13973 # values after options handling.
13974 ac_log="
13975 This file was extended by sqlite $as_me 3.6.18, which was
13976 generated by GNU Autoconf 2.62. Invocation command line was
13977
13978 CONFIG_FILES = $CONFIG_FILES
13979 CONFIG_HEADERS = $CONFIG_HEADERS
13980 CONFIG_LINKS = $CONFIG_LINKS
13981 CONFIG_COMMANDS = $CONFIG_COMMANDS
13982 $ $0 $@
13983
13984 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13985 "
13986
13987 _ACEOF
13988
13989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13990 # Files that config.status was made for.
13991 config_files="$ac_config_files"
13992 config_headers="$ac_config_headers"
13993 config_commands="$ac_config_commands"
13994
13995 _ACEOF
13996
13997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13998 ac_cs_usage="\
13999 \`$as_me' instantiates files from templates according to the
14000 current configuration.
14001
14002 Usage: $0 [OPTIONS] [FILE]...
14003
14004 -h, --help print this help, then exit
14005 -V, --version print version number and configuration settings, then exit
14006 -q, --quiet do not print progress messages
14007 -d, --debug don't remove temporary files
14008 --recheck update $as_me by reconfiguring in the same conditions
14009 --file=FILE[:TEMPLATE]
14010 instantiate the configuration file FILE
14011 --header=FILE[:TEMPLATE]
14012 instantiate the configuration header FILE
14013
14014 Configuration files:
14015 $config_files
14016
14017 Configuration headers:
14018 $config_headers
14019
14020 Configuration commands:
14021 $config_commands
14022
14023 Report bugs to <bug-autoconf@gnu.org>."
14024
14025 _ACEOF
14026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14027 ac_cs_version="\\
14028 sqlite config.status 3.6.18
14029 configured by $0, generated by GNU Autoconf 2.62,
14030 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\ \&/g'`\\"
14031
14032 Copyright (C) 2008 Free Software Foundation, Inc.
14033 This config.status script is free software; the Free Software Foundation
14034 gives unlimited permission to copy, distribute and modify it."
14035
14036 ac_pwd='$ac_pwd'
14037 srcdir='$srcdir'
14038 INSTALL='$INSTALL'
14039 AWK='$AWK'
14040 test -n "\$AWK" || AWK=awk
14041 _ACEOF
14042
14043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14044 # The default lists apply if the user does not specify any file.
14045 ac_need_defaults=:
14046 while test $# != 0
14047 do
14048 case $1 in
14049 --*=*)
14050 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14051 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14052 ac_shift=:
14053 ;;
14054 *)
14055 ac_option=$1
14056 ac_optarg=$2
14057 ac_shift=shift
14058 ;;
14059 esac
14060
14061 case $ac_option in
14062 # Handling of the options.
14063 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14064 ac_cs_recheck=: ;;
14065 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14066 $as_echo "$ac_cs_version"; exit ;;
14067 --debug | --debu | --deb | --de | --d | -d )
14068 debug=: ;;
14069 --file | --fil | --fi | --f )
14070 $ac_shift
14071 case $ac_optarg in
14072 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14073 esac
14074 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14075 ac_need_defaults=false;;
14076 --header | --heade | --head | --hea )
14077 $ac_shift
14078 case $ac_optarg in
14079 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14080 esac
14081 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14082 ac_need_defaults=false;;
14083 --he | --h)
14084 # Conflict between --help and --header
14085 { $as_echo "$as_me: error: ambiguous option: $1
14086 Try \`$0 --help' for more information." >&2
14087 { (exit 1); exit 1; }; };;
14088 --help | --hel | -h )
14089 $as_echo "$ac_cs_usage"; exit ;;
14090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14091 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14092 ac_cs_silent=: ;;
14093
14094 # This is an error.
14095 -*) { $as_echo "$as_me: error: unrecognized option: $1
14096 Try \`$0 --help' for more information." >&2
14097 { (exit 1); exit 1; }; } ;;
14098
14099 *) ac_config_targets="$ac_config_targets $1"
14100 ac_need_defaults=false ;;
14101
14102 esac
14103 shift
14104 done
14105
14106 ac_configure_extra_args=
14107
14108 if $ac_cs_silent; then
14109 exec 6>/dev/null
14110 ac_configure_extra_args="$ac_configure_extra_args --silent"
14111 fi
14112
14113 _ACEOF
14114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14115 if \$ac_cs_recheck; then
14116 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create - -no-recursion
14117 shift
14118 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14119 CONFIG_SHELL='$SHELL'
14120 export CONFIG_SHELL
14121 exec "\$@"
14122 fi
14123
14124 _ACEOF
14125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14126 exec 5>>config.log
14127 {
14128 echo
14129 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14130 ## Running $as_me. ##
14131 _ASBOX
14132 $as_echo "$ac_log"
14133 } >&5
14134
14135 _ACEOF
14136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14137 #
14138 # INIT-COMMANDS
14139 #
14140
14141
14142 # The HP-UX ksh and POSIX shell print the target directory to stdout
14143 # if CDPATH is set.
14144 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14145
14146 sed_quote_subst='$sed_quote_subst'
14147 double_quote_subst='$double_quote_subst'
14148 delay_variable_subst='$delay_variable_subst'
14149 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14150 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst" `'
14151 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14152 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14153 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14154 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_qu ote_subst"`'
14155 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14156 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14157 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14158 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14159 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14160 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14161 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14162 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14163 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14164 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14165 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14166 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14167 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14168 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14169 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14170 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14171 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14172 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14173 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14174 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14175 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14176 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14177 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14178 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_ quote_subst"`'
14179 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst" `'
14180 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14181 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14182 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14183 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14184 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_ quote_subst"`'
14185 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_sin gle_quote_subst"`'
14186 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_su bst"`'
14187 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14188 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14189 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14190 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14191 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14192 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14193 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"`'
14194 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"`'
14195 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14196 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14197 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14198 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14199 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14200 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_qu ote_subst"`'
14201 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_ quote_subst"`'
14202 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_s ingle_quote_subst"`'
14203 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_s ingle_quote_subst"`'
14204 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14205 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14206 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14207 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14208 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14209 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14210 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14211 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14212 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_ quote_subst"`'
14213 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_ quote_subst"`'
14214 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes " | $Xsed -e "$delay_single_quote_subst"`'
14215 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay _single_quote_subst"`'
14216 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_s ingle_quote_subst"`'
14217 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_singl e_quote_subst"`'
14218 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$del ay_single_quote_subst"`'
14219 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14220 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14221 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_qu ote_subst"`'
14222 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14223 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quot e_subst"`'
14224 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14225 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_ quote_subst"`'
14226 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_ subst"`'
14227 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$del ay_single_quote_subst"`'
14228 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14229 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$del ay_single_quote_subst"`'
14230 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subs t"`'
14231 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay _single_quote_subst"`'
14232 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_su bst"`'
14233 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_sin gle_quote_subst"`'
14234 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quot e_subst"`'
14235 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14236 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_su bst"`'
14237 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_su bst"`'
14238 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_singl e_quote_subst"`'
14239 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_qu ote_subst"`'
14240 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subs t"`'
14241 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subs t"`'
14242 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14243 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst" `'
14244 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$d elay_single_quote_subst"`'
14245 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subs t"`'
14246 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14247 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14248 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14249 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14250 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e " $delay_single_quote_subst"`'
14251 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14252 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quot e_subst"`'
14253 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14254 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_su bst"`'
14255 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quot e_subst"`'
14256 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14257 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14258 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quot e_subst"`'
14259 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay _single_quote_subst"`'
14260 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$d elay_single_quote_subst"`'
14261 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subs t"`'
14262 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14263 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quot e_subst"`'
14264 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$del ay_single_quote_subst"`'
14265 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14266 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14267
14268 LTCC='$LTCC'
14269 LTCFLAGS='$LTCFLAGS'
14270 compiler='$compiler_DEFAULT'
14271
14272 # Quote evaled strings.
14273 for var in SED \
14274 GREP \
14275 EGREP \
14276 FGREP \
14277 LD \
14278 NM \
14279 LN_S \
14280 lt_SP2NL \
14281 lt_NL2SP \
14282 reload_flag \
14283 OBJDUMP \
14284 deplibs_check_method \
14285 file_magic_cmd \
14286 AR \
14287 AR_FLAGS \
14288 STRIP \
14289 RANLIB \
14290 CC \
14291 CFLAGS \
14292 compiler \
14293 lt_cv_sys_global_symbol_pipe \
14294 lt_cv_sys_global_symbol_to_cdecl \
14295 lt_cv_sys_global_symbol_to_c_name_address \
14296 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14297 SHELL \
14298 ECHO \
14299 lt_prog_compiler_no_builtin_flag \
14300 lt_prog_compiler_wl \
14301 lt_prog_compiler_pic \
14302 lt_prog_compiler_static \
14303 lt_cv_prog_compiler_c_o \
14304 need_locks \
14305 DSYMUTIL \
14306 NMEDIT \
14307 LIPO \
14308 OTOOL \
14309 OTOOL64 \
14310 shrext_cmds \
14311 export_dynamic_flag_spec \
14312 whole_archive_flag_spec \
14313 compiler_needs_object \
14314 with_gnu_ld \
14315 allow_undefined_flag \
14316 no_undefined_flag \
14317 hardcode_libdir_flag_spec \
14318 hardcode_libdir_flag_spec_ld \
14319 hardcode_libdir_separator \
14320 fix_srcfile_path \
14321 exclude_expsyms \
14322 include_expsyms \
14323 file_list_spec \
14324 variables_saved_for_relink \
14325 libname_spec \
14326 library_names_spec \
14327 soname_spec \
14328 finish_eval \
14329 old_striplib \
14330 striplib; do
14331 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14332 *[\\\\\\\`\\"\\\$]*)
14333 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$s ed_quote_subst\\"\\\`\\\\\\""
14334 ;;
14335 *)
14336 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14337 ;;
14338 esac
14339 done
14340
14341 # Double-quote double-evaled strings.
14342 for var in reload_cmds \
14343 old_postinstall_cmds \
14344 old_postuninstall_cmds \
14345 old_archive_cmds \
14346 extract_expsyms_cmds \
14347 old_archive_from_new_cmds \
14348 old_archive_from_expsyms_cmds \
14349 archive_cmds \
14350 archive_expsym_cmds \
14351 module_cmds \
14352 module_expsym_cmds \
14353 export_symbols_cmds \
14354 prelink_cmds \
14355 postinstall_cmds \
14356 postuninstall_cmds \
14357 finish_cmds \
14358 sys_lib_search_path_spec \
14359 sys_lib_dlsearch_path_spec; do
14360 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14361 *[\\\\\\\`\\"\\\$]*)
14362 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$d ouble_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst \\"\\\`\\\\\\""
14363 ;;
14364 *)
14365 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14366 ;;
14367 esac
14368 done
14369
14370 # Fix-up fallback echo if it was mangled by the above quoting rules.
14371 case \$lt_ECHO in
14372 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\ \\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14373 ;;
14374 esac
14375
14376 ac_aux_dir='$ac_aux_dir'
14377 xsi_shell='$xsi_shell'
14378 lt_shell_append='$lt_shell_append'
14379
14380 # See if we are running on zsh, and set the options which allow our
14381 # commands through without removal of \ escapes INIT.
14382 if test -n "\${ZSH_VERSION+set}" ; then
14383 setopt NO_GLOB_SUBST
14384 fi
14385
14386
14387 PACKAGE='$PACKAGE'
14388 VERSION='$VERSION'
14389 TIMESTAMP='$TIMESTAMP'
14390 RM='$RM'
14391 ofile='$ofile'
14392
14393
14394
14395
14396 _ACEOF
14397
14398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14399
14400 # Handling of arguments.
14401 for ac_config_target in $ac_config_targets
14402 do
14403 case $ac_config_target in
14404 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14405 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14406 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14407 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14408
14409 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" > &5
14410 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14411 { (exit 1); exit 1; }; };;
14412 esac
14413 done
14414
14415
14416 # If the user did not use the arguments to specify the items to instantiate,
14417 # then the envvar interface is used. Set only those that are not.
14418 # We use the long form for the default assignment because of an extremely
14419 # bizarre bug on SunOS 4.1.3.
14420 if $ac_need_defaults; then
14421 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14422 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14423 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14424 fi
14425
14426 # Have a temporary directory for convenience. Make it in the build tree
14427 # simply because there is no reason against having it here, and in addition,
14428 # creating and moving files from /tmp can sometimes cause problems.
14429 # Hook for its removal unless debugging.
14430 # Note that there is a small window in which the directory will not be cleaned:
14431 # after its creation but before its name has been assigned to `$tmp'.
14432 $debug ||
14433 {
14434 tmp=
14435 trap 'exit_status=$?
14436 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14437 ' 0
14438 trap '{ (exit 1); exit 1; }' 1 2 13 15
14439 }
14440 # Create a (secure) tmp directory for tmp files.
14441
14442 {
14443 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14444 test -n "$tmp" && test -d "$tmp"
14445 } ||
14446 {
14447 tmp=./conf$$-$RANDOM
14448 (umask 077 && mkdir "$tmp")
14449 } ||
14450 {
14451 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14452 { (exit 1); exit 1; }
14453 }
14454
14455 # Set up the scripts for CONFIG_FILES section.
14456 # No need to generate them if there are no CONFIG_FILES.
14457 # This happens for instance with `./config.status config.h'.
14458 if test -n "$CONFIG_FILES"; then
14459
14460
14461 ac_cr='
14462 '
14463 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14464 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14465 ac_cs_awk_cr='\\r'
14466 else
14467 ac_cs_awk_cr=$ac_cr
14468 fi
14469
14470 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14471 _ACEOF
14472
14473
14474 {
14475 echo "cat >conf$$subs.awk <<_ACEOF" &&
14476 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14477 echo "_ACEOF"
14478 } >conf$$subs.sh ||
14479 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14480 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14481 { (exit 1); exit 1; }; }
14482 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14483 ac_delim='%!_!# '
14484 for ac_last_try in false false false false false :; do
14485 . ./conf$$subs.sh ||
14486 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14487 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14488 { (exit 1); exit 1; }; }
14489
14490 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_ num; then
14491 break
14492 elif $ac_last_try; then
14493 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14494 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14495 { (exit 1); exit 1; }; }
14496 else
14497 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14498 fi
14499 done
14500 rm -f conf$$subs.sh
14501
14502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14503 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14504 _ACEOF
14505 sed -n '
14506 h
14507 s/^/S["/; s/!.*/"]=/
14508 p
14509 g
14510 s/^[^!]*!//
14511 :repl
14512 t repl
14513 s/'"$ac_delim"'$//
14514 t delim
14515 :nl
14516 h
14517 s/\(.\{148\}\).*/\1/
14518 t more1
14519 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14520 p
14521 n
14522 b repl
14523 :more1
14524 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14525 p
14526 g
14527 s/.\{148\}//
14528 t nl
14529 :delim
14530 h
14531 s/\(.\{148\}\).*/\1/
14532 t more2
14533 s/["\\]/\\&/g; s/^/"/; s/$/"/
14534 p
14535 b
14536 :more2
14537 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14538 p
14539 g
14540 s/.\{148\}//
14541 t delim
14542 ' <conf$$subs.awk | sed '
14543 /^[^""]/{
14544 N
14545 s/\n//
14546 }
14547 ' >>$CONFIG_STATUS || ac_write_fail=1
14548 rm -f conf$$subs.awk
14549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14550 _ACAWK
14551 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14552 for (key in S) S_is_set[key] = 1
14553 FS = ""
14554
14555 }
14556 {
14557 line = $ 0
14558 nfields = split(line, field, "@")
14559 substed = 0
14560 len = length(field[1])
14561 for (i = 2; i < nfields; i++) {
14562 key = field[i]
14563 keylen = length(key)
14564 if (S_is_set[key]) {
14565 value = S[key]
14566 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14567 len += length(value) + length(field[++i])
14568 substed = 1
14569 } else
14570 len += 1 + keylen
14571 }
14572
14573 print line
14574 }
14575
14576 _ACAWK
14577 _ACEOF
14578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14579 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14580 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14581 else
14582 cat
14583 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14584 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery " >&5
14585 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14586 { (exit 1); exit 1; }; }
14587 _ACEOF
14588
14589 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14590 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14591 # trailing colons and then remove the whole line if VPATH becomes empty
14592 # (actually we leave an empty line to preserve line numbers).
14593 if test "x$srcdir" = x.; then
14594 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14595 s/:*\$(srcdir):*/:/
14596 s/:*\${srcdir}:*/:/
14597 s/:*@srcdir@:*/:/
14598 s/^\([^=]*=[ ]*\):*/\1/
14599 s/:*$//
14600 s/^[^=]*=[ ]*$//
14601 }'
14602 fi
14603
14604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14605 fi # test -n "$CONFIG_FILES"
14606
14607 # Set up the scripts for CONFIG_HEADERS section.
14608 # No need to generate them if there are no CONFIG_HEADERS.
14609 # This happens for instance with `./config.status Makefile'.
14610 if test -n "$CONFIG_HEADERS"; then
14611 cat >"$tmp/defines.awk" <<\_ACAWK ||
14612 BEGIN {
14613 _ACEOF
14614
14615 # Transform confdefs.h into an awk script `defines.awk', embedded as
14616 # here-document in config.status, that substitutes the proper values into
14617 # config.h.in to produce config.h.
14618
14619 # Create a delimiter string that does not exist in confdefs.h, to ease
14620 # handling of long lines.
14621 ac_delim='%!_!# '
14622 for ac_last_try in false false :; do
14623 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14624 if test -z "$ac_t"; then
14625 break
14626 elif $ac_last_try; then
14627 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14628 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14629 { (exit 1); exit 1; }; }
14630 else
14631 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14632 fi
14633 done
14634
14635 # For the awk script, D is an array of macro values keyed by name,
14636 # likewise P contains macro parameters if any. Preserve backslash
14637 # newline sequences.
14638
14639 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14640 sed -n '
14641 s/.\{148\}/&'"$ac_delim"'/g
14642 t rset
14643 :rset
14644 s/^[ ]*#[ ]*define[ ][ ]*/ /
14645 t def
14646 d
14647 :def
14648 s/\\$//
14649 t bsnl
14650 s/["\\]/\\&/g
14651 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14652 D["\1"]=" \3"/p
14653 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14654 d
14655 :bsnl
14656 s/["\\]/\\&/g
14657 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14658 D["\1"]=" \3\\\\\\n"\\/p
14659 t cont
14660 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14661 t cont
14662 d
14663 :cont
14664 n
14665 s/.\{148\}/&'"$ac_delim"'/g
14666 t clear
14667 :clear
14668 s/\\$//
14669 t bsnlc
14670 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14671 d
14672 :bsnlc
14673 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14674 b cont
14675 ' <confdefs.h | sed '
14676 s/'"$ac_delim"'/"\\\
14677 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14678
14679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14680 for (key in D) D_is_set[key] = 1
14681 FS = ""
14682 }
14683 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14684 line = \$ 0
14685 split(line, arg, " ")
14686 if (arg[1] == "#") {
14687 defundef = arg[2]
14688 mac1 = arg[3]
14689 } else {
14690 defundef = substr(arg[1], 2)
14691 mac1 = arg[2]
14692 }
14693 split(mac1, mac2, "(") #)
14694 macro = mac2[1]
14695 if (D_is_set[macro]) {
14696 # Preserve the white space surrounding the "#".
14697 prefix = substr(line, 1, index(line, defundef) - 1)
14698 print prefix "define", macro P[macro] D[macro]
14699 next
14700 } else {
14701 # Replace #undef with comments. This is necessary, for example,
14702 # in the case of _POSIX_SOURCE, which is predefined and required
14703 # on some systems where configure will not decide to define it.
14704 if (defundef == "undef") {
14705 print "/*", line, "*/"
14706 next
14707 }
14708 }
14709 }
14710 { print }
14711 _ACAWK
14712 _ACEOF
14713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14714 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14715 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14716 { (exit 1); exit 1; }; }
14717 fi # test -n "$CONFIG_HEADERS"
14718
14719
14720 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14721 shift
14722 for ac_tag
14723 do
14724 case $ac_tag in
14725 :[FHLC]) ac_mode=$ac_tag; continue;;
14726 esac
14727 case $ac_mode$ac_tag in
14728 :[FHL]*:*);;
14729 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14730 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14731 { (exit 1); exit 1; }; };;
14732 :[FH]-) ac_tag=-:-;;
14733 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14734 esac
14735 ac_save_IFS=$IFS
14736 IFS=:
14737 set x $ac_tag
14738 IFS=$ac_save_IFS
14739 shift
14740 ac_file=$1
14741 shift
14742
14743 case $ac_mode in
14744 :L) ac_source=$1;;
14745 :[FH])
14746 ac_file_inputs=
14747 for ac_f
14748 do
14749 case $ac_f in
14750 -) ac_f="$tmp/stdin";;
14751 *) # Look for the file first in the build tree, then in the source tree
14752 # (if the path is not absolute). The absolute path cannot be DOS-style ,
14753 # because $ac_f cannot contain `:'.
14754 test -f "$ac_f" ||
14755 case $ac_f in
14756 [\\/$]*) false;;
14757 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14758 esac ||
14759 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" > &5
14760 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14761 { (exit 1); exit 1; }; };;
14762 esac
14763 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; es ac
14764 ac_file_inputs="$ac_file_inputs '$ac_f'"
14765 done
14766
14767 # Let's still pretend it is `configure' which instantiates (i.e., don't
14768 # use $as_me), people would be surprised to read:
14769 # /* config.h. Generated by config.status. */
14770 configure_input='Generated from '`
14771 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14772 `' by configure.'
14773 if test x"$ac_file" != x-; then
14774 configure_input="$ac_file. $configure_input"
14775 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14776 $as_echo "$as_me: creating $ac_file" >&6;}
14777 fi
14778 # Neutralize special characters interpreted by sed in replacement strings.
14779 case $configure_input in #(
14780 *\&* | *\|* | *\\* )
14781 ac_sed_conf_input=`$as_echo "$configure_input" |
14782 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14783 *) ac_sed_conf_input=$configure_input;;
14784 esac
14785
14786 case $ac_tag in
14787 *:-:* | *:-) cat >"$tmp/stdin" \
14788 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14789 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14790 { (exit 1); exit 1; }; } ;;
14791 esac
14792 ;;
14793 esac
14794
14795 ac_dir=`$as_dirname -- "$ac_file" ||
14796 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14797 X"$ac_file" : 'X\(//\)[^/]' \| \
14798 X"$ac_file" : 'X\(//\)$' \| \
14799 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14800 $as_echo X"$ac_file" |
14801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14802 s//\1/
14803 q
14804 }
14805 /^X\(\/\/\)[^/].*/{
14806 s//\1/
14807 q
14808 }
14809 /^X\(\/\/\)$/{
14810 s//\1/
14811 q
14812 }
14813 /^X\(\/\).*/{
14814 s//\1/
14815 q
14816 }
14817 s/.*/./; q'`
14818 { as_dir="$ac_dir"
14819 case $as_dir in #(
14820 -*) as_dir=./$as_dir;;
14821 esac
14822 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14823 as_dirs=
14824 while :; do
14825 case $as_dir in #(
14826 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14827 *) as_qdir=$as_dir;;
14828 esac
14829 as_dirs="'$as_qdir' $as_dirs"
14830 as_dir=`$as_dirname -- "$as_dir" ||
14831 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14832 X"$as_dir" : 'X\(//\)[^/]' \| \
14833 X"$as_dir" : 'X\(//\)$' \| \
14834 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14835 $as_echo X"$as_dir" |
14836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14837 s//\1/
14838 q
14839 }
14840 /^X\(\/\/\)[^/].*/{
14841 s//\1/
14842 q
14843 }
14844 /^X\(\/\/\)$/{
14845 s//\1/
14846 q
14847 }
14848 /^X\(\/\).*/{
14849 s//\1/
14850 q
14851 }
14852 s/.*/./; q'`
14853 test -d "$as_dir" && break
14854 done
14855 test -z "$as_dirs" || eval "mkdir $as_dirs"
14856 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create d irectory $as_dir" >&5
14857 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14858 { (exit 1); exit 1; }; }; }
14859 ac_builddir=.
14860
14861 case "$ac_dir" in
14862 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14863 *)
14864 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14865 # A ".." for each directory in $ac_dir_suffix.
14866 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14867 case $ac_top_builddir_sub in
14868 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14869 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14870 esac ;;
14871 esac
14872 ac_abs_top_builddir=$ac_pwd
14873 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14874 # for backward compatibility:
14875 ac_top_builddir=$ac_top_build_prefix
14876
14877 case $srcdir in
14878 .) # We are building in place.
14879 ac_srcdir=.
14880 ac_top_srcdir=$ac_top_builddir_sub
14881 ac_abs_top_srcdir=$ac_pwd ;;
14882 [\\/]* | ?:[\\/]* ) # Absolute name.
14883 ac_srcdir=$srcdir$ac_dir_suffix;
14884 ac_top_srcdir=$srcdir
14885 ac_abs_top_srcdir=$srcdir ;;
14886 *) # Relative name.
14887 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14888 ac_top_srcdir=$ac_top_build_prefix$srcdir
14889 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14890 esac
14891 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14892
14893
14894 case $ac_mode in
14895 :F)
14896 #
14897 # CONFIG_FILE
14898 #
14899
14900 case $INSTALL in
14901 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14902 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14903 esac
14904 _ACEOF
14905
14906 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14907 # If the template does not know about datarootdir, expand it.
14908 # FIXME: This hack should be removed a few years after 2.60.
14909 ac_datarootdir_hack=; ac_datarootdir_seen=
14910
14911 ac_sed_dataroot='
14912 /datarootdir/ {
14913 p
14914 q
14915 }
14916 /@datadir@/p
14917 /@docdir@/p
14918 /@infodir@/p
14919 /@localedir@/p
14920 /@mandir@/p
14921 '
14922 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14923 *datarootdir*) ac_datarootdir_seen=yes;;
14924 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14925 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --dat arootdir setting" >&5
14926 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir set ting" >&2;}
14927 _ACEOF
14928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14929 ac_datarootdir_hack='
14930 s&@datadir@&$datadir&g
14931 s&@docdir@&$docdir&g
14932 s&@infodir@&$infodir&g
14933 s&@localedir@&$localedir&g
14934 s&@mandir@&$mandir&g
14935 s&\\\${datarootdir}&$datarootdir&g' ;;
14936 esac
14937 _ACEOF
14938
14939 # Neutralize VPATH when `$srcdir' = `.'.
14940 # Shell code in configure.ac might set extrasub.
14941 # FIXME: do we really want to maintain this feature?
14942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14943 ac_sed_extra="$ac_vpsub
14944 $extrasub
14945 _ACEOF
14946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14947 :t
14948 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14949 s|@configure_input@|$ac_sed_conf_input|;t t
14950 s&@top_builddir@&$ac_top_builddir_sub&;t t
14951 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14952 s&@srcdir@&$ac_srcdir&;t t
14953 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14954 s&@top_srcdir@&$ac_top_srcdir&;t t
14955 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14956 s&@builddir@&$ac_builddir&;t t
14957 s&@abs_builddir@&$ac_abs_builddir&;t t
14958 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14959 s&@INSTALL@&$ac_INSTALL&;t t
14960 $ac_datarootdir_hack
14961 "
14962 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/ou t \
14963 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14964 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14965 { (exit 1); exit 1; }; }
14966
14967 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14968 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14969 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out" ; } &&
14970 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the vari able \`datarootdir'
14971 which seems to be undefined. Please make sure it is defined." >&5
14972 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datar ootdir'
14973 which seems to be undefined. Please make sure it is defined." >&2;}
14974
14975 rm -f "$tmp/stdin"
14976 case $ac_file in
14977 -) cat "$tmp/out" && rm -f "$tmp/out";;
14978 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14979 esac \
14980 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14981 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14982 { (exit 1); exit 1; }; }
14983 ;;
14984 :H)
14985 #
14986 # CONFIG_HEADER
14987 #
14988 if test x"$ac_file" != x-; then
14989 {
14990 $as_echo "/* $configure_input */" \
14991 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14992 } >"$tmp/config.h" \
14993 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14994 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14995 { (exit 1); exit 1; }; }
14996 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14997 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14998 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14999 else
15000 rm -f "$ac_file"
15001 mv "$tmp/config.h" "$ac_file" \
15002 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
15003 $as_echo "$as_me: error: could not create $ac_file" >&2;}
15004 { (exit 1); exit 1; }; }
15005 fi
15006 else
15007 $as_echo "/* $configure_input */" \
15008 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15009 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
15010 $as_echo "$as_me: error: could not create -" >&2;}
15011 { (exit 1); exit 1; }; }
15012 fi
15013 ;;
15014
15015 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15016 $as_echo "$as_me: executing $ac_file commands" >&6;}
15017 ;;
15018 esac
15019
15020
15021 case $ac_file$ac_mode in
15022 "libtool":C)
15023
15024 # See if we are running on zsh, and set the options which allow our
15025 # commands through without removal of \ escapes.
15026 if test -n "${ZSH_VERSION+set}" ; then
15027 setopt NO_GLOB_SUBST
15028 fi
15029
15030 cfgfile="${ofile}T"
15031 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15032 $RM "$cfgfile"
15033
15034 cat <<_LT_EOF >> "$cfgfile"
15035 #! $SHELL
15036
15037 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building suppo rt services.
15038 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15039 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15040 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15041 #
15042 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15043 # 2006, 2007, 2008 Free Software Foundation, Inc.
15044 # Written by Gordon Matzigkeit, 1996
15045 #
15046 # This file is part of GNU Libtool.
15047 #
15048 # GNU Libtool is free software; you can redistribute it and/or
15049 # modify it under the terms of the GNU General Public License as
15050 # published by the Free Software Foundation; either version 2 of
15051 # the License, or (at your option) any later version.
15052 #
15053 # As a special exception to the GNU General Public License,
15054 # if you distribute this file as part of a program or library that
15055 # is built using GNU Libtool, you may include this file under the
15056 # same distribution terms that you use for the rest of that program.
15057 #
15058 # GNU Libtool is distributed in the hope that it will be useful,
15059 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15060 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15061 # GNU General Public License for more details.
15062 #
15063 # You should have received a copy of the GNU General Public License
15064 # along with GNU Libtool; see the file COPYING. If not, a copy
15065 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15066 # obtained by writing to the Free Software Foundation, Inc.,
15067 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15068
15069
15070 # The names of the tagged configurations supported by this script.
15071 available_tags=""
15072
15073 # ### BEGIN LIBTOOL CONFIG
15074
15075 # Which release of libtool.m4 was used?
15076 macro_version=$macro_version
15077 macro_revision=$macro_revision
15078
15079 # Whether or not to build shared libraries.
15080 build_libtool_libs=$enable_shared
15081
15082 # Whether or not to build static libraries.
15083 build_old_libs=$enable_static
15084
15085 # What type of objects to build.
15086 pic_mode=$pic_mode
15087
15088 # Whether or not to optimize for fast installation.
15089 fast_install=$enable_fast_install
15090
15091 # The host system.
15092 host_alias=$host_alias
15093 host=$host
15094 host_os=$host_os
15095
15096 # The build system.
15097 build_alias=$build_alias
15098 build=$build
15099 build_os=$build_os
15100
15101 # A sed program that does not truncate output.
15102 SED=$lt_SED
15103
15104 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15105 Xsed="\$SED -e 1s/^X//"
15106
15107 # A grep program that handles long lines.
15108 GREP=$lt_GREP
15109
15110 # An ERE matcher.
15111 EGREP=$lt_EGREP
15112
15113 # A literal string matcher.
15114 FGREP=$lt_FGREP
15115
15116 # A BSD- or MS-compatible name lister.
15117 NM=$lt_NM
15118
15119 # Whether we need soft or hard links.
15120 LN_S=$lt_LN_S
15121
15122 # What is the maximum length of a command?
15123 max_cmd_len=$max_cmd_len
15124
15125 # Object file suffix (normally "o").
15126 objext=$ac_objext
15127
15128 # Executable file suffix (normally "").
15129 exeext=$exeext
15130
15131 # whether the shell understands "unset".
15132 lt_unset=$lt_unset
15133
15134 # turn spaces into newlines.
15135 SP2NL=$lt_lt_SP2NL
15136
15137 # turn newlines into spaces.
15138 NL2SP=$lt_lt_NL2SP
15139
15140 # How to create reloadable object files.
15141 reload_flag=$lt_reload_flag
15142 reload_cmds=$lt_reload_cmds
15143
15144 # An object symbol dumper.
15145 OBJDUMP=$lt_OBJDUMP
15146
15147 # Method to check whether dependent libraries are shared objects.
15148 deplibs_check_method=$lt_deplibs_check_method
15149
15150 # Command to use when deplibs_check_method == "file_magic".
15151 file_magic_cmd=$lt_file_magic_cmd
15152
15153 # The archiver.
15154 AR=$lt_AR
15155 AR_FLAGS=$lt_AR_FLAGS
15156
15157 # A symbol stripping program.
15158 STRIP=$lt_STRIP
15159
15160 # Commands used to install an old-style archive.
15161 RANLIB=$lt_RANLIB
15162 old_postinstall_cmds=$lt_old_postinstall_cmds
15163 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15164
15165 # A C compiler.
15166 LTCC=$lt_CC
15167
15168 # LTCC compiler flags.
15169 LTCFLAGS=$lt_CFLAGS
15170
15171 # Take the output of nm and produce a listing of raw symbols and C names.
15172 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15173
15174 # Transform the output of nm in a proper C declaration.
15175 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15176
15177 # Transform the output of nm in a C name address pair.
15178 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15179
15180 # Transform the output of nm in a C name address pair when lib prefix is needed.
15181 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name _address_lib_prefix
15182
15183 # The name of the directory that contains temporary libtool files.
15184 objdir=$objdir
15185
15186 # Shell to use when invoking shell scripts.
15187 SHELL=$lt_SHELL
15188
15189 # An echo program that does not interpret backslashes.
15190 ECHO=$lt_ECHO
15191
15192 # Used to examine libraries when file_magic_cmd begins with "file".
15193 MAGIC_CMD=$MAGIC_CMD
15194
15195 # Must we lock files when doing compilation?
15196 need_locks=$lt_need_locks
15197
15198 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15199 DSYMUTIL=$lt_DSYMUTIL
15200
15201 # Tool to change global to local symbols on Mac OS X.
15202 NMEDIT=$lt_NMEDIT
15203
15204 # Tool to manipulate fat objects and archives on Mac OS X.
15205 LIPO=$lt_LIPO
15206
15207 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15208 OTOOL=$lt_OTOOL
15209
15210 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15211 OTOOL64=$lt_OTOOL64
15212
15213 # Old archive suffix (normally "a").
15214 libext=$libext
15215
15216 # Shared library suffix (normally ".so").
15217 shrext_cmds=$lt_shrext_cmds
15218
15219 # The commands to extract the exported symbol list from a shared archive.
15220 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15221
15222 # Variables whose values should be saved in libtool wrapper scripts and
15223 # restored at link time.
15224 variables_saved_for_relink=$lt_variables_saved_for_relink
15225
15226 # Do we need the "lib" prefix for modules?
15227 need_lib_prefix=$need_lib_prefix
15228
15229 # Do we need a version for libraries?
15230 need_version=$need_version
15231
15232 # Library versioning type.
15233 version_type=$version_type
15234
15235 # Shared library runtime path variable.
15236 runpath_var=$runpath_var
15237
15238 # Shared library path variable.
15239 shlibpath_var=$shlibpath_var
15240
15241 # Is shlibpath searched before the hard-coded library search path?
15242 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15243
15244 # Format of library name prefix.
15245 libname_spec=$lt_libname_spec
15246
15247 # List of archive names. First name is the real one, the rest are links.
15248 # The last name is the one that the linker finds with -lNAME
15249 library_names_spec=$lt_library_names_spec
15250
15251 # The coded name of the library, if different from the real name.
15252 soname_spec=$lt_soname_spec
15253
15254 # Command to use after installation of a shared archive.
15255 postinstall_cmds=$lt_postinstall_cmds
15256
15257 # Command to use after uninstallation of a shared archive.
15258 postuninstall_cmds=$lt_postuninstall_cmds
15259
15260 # Commands used to finish a libtool library installation in a directory.
15261 finish_cmds=$lt_finish_cmds
15262
15263 # As "finish_cmds", except a single script fragment to be evaled but
15264 # not shown.
15265 finish_eval=$lt_finish_eval
15266
15267 # Whether we should hardcode library paths into libraries.
15268 hardcode_into_libs=$hardcode_into_libs
15269
15270 # Compile-time system search path for libraries.
15271 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15272
15273 # Run-time system search path for libraries.
15274 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15275
15276 # Whether dlopen is supported.
15277 dlopen_support=$enable_dlopen
15278
15279 # Whether dlopen of programs is supported.
15280 dlopen_self=$enable_dlopen_self
15281
15282 # Whether dlopen of statically linked programs is supported.
15283 dlopen_self_static=$enable_dlopen_self_static
15284
15285 # Commands to strip libraries.
15286 old_striplib=$lt_old_striplib
15287 striplib=$lt_striplib
15288
15289
15290 # The linker used to build libraries.
15291 LD=$lt_LD
15292
15293 # Commands used to build an old-style archive.
15294 old_archive_cmds=$lt_old_archive_cmds
15295
15296 # A language specific compiler.
15297 CC=$lt_compiler
15298
15299 # Is the compiler the GNU compiler?
15300 with_gcc=$GCC
15301
15302 # Compiler flag to turn off builtin functions.
15303 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15304
15305 # How to pass a linker flag through the compiler.
15306 wl=$lt_lt_prog_compiler_wl
15307
15308 # Additional compiler flags for building library objects.
15309 pic_flag=$lt_lt_prog_compiler_pic
15310
15311 # Compiler flag to prevent dynamic linking.
15312 link_static_flag=$lt_lt_prog_compiler_static
15313
15314 # Does compiler simultaneously support -c and -o options?
15315 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15316
15317 # Whether or not to add -lc for building shared libraries.
15318 build_libtool_need_lc=$archive_cmds_need_lc
15319
15320 # Whether or not to disallow shared libs when runtime libs are static.
15321 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15322
15323 # Compiler flag to allow reflexive dlopens.
15324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15325
15326 # Compiler flag to generate shared objects directly from archives.
15327 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15328
15329 # Whether the compiler copes with passing no objects directly.
15330 compiler_needs_object=$lt_compiler_needs_object
15331
15332 # Create an old-style archive from a shared archive.
15333 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15334
15335 # Create a temporary old-style archive to link instead of a shared archive.
15336 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15337
15338 # Commands used to build a shared archive.
15339 archive_cmds=$lt_archive_cmds
15340 archive_expsym_cmds=$lt_archive_expsym_cmds
15341
15342 # Commands used to build a loadable module if different from building
15343 # a shared archive.
15344 module_cmds=$lt_module_cmds
15345 module_expsym_cmds=$lt_module_expsym_cmds
15346
15347 # Whether we are building with GNU ld or not.
15348 with_gnu_ld=$lt_with_gnu_ld
15349
15350 # Flag that allows shared libraries with undefined symbols to be built.
15351 allow_undefined_flag=$lt_allow_undefined_flag
15352
15353 # Flag that enforces no undefined symbols.
15354 no_undefined_flag=$lt_no_undefined_flag
15355
15356 # Flag to hardcode \$libdir into a binary during linking.
15357 # This must work even if \$libdir does not exist
15358 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15359
15360 # If ld is used when linking, flag to hardcode \$libdir into a binary
15361 # during linking. This must work even if \$libdir does not exist.
15362 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15363
15364 # Whether we need a single "-rpath" flag with a separated argument.
15365 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15366
15367 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15368 # DIR into the resulting binary.
15369 hardcode_direct=$hardcode_direct
15370
15371 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15372 # DIR into the resulting binary and the resulting library dependency is
15373 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15374 # library is relocated.
15375 hardcode_direct_absolute=$hardcode_direct_absolute
15376
15377 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15378 # into the resulting binary.
15379 hardcode_minus_L=$hardcode_minus_L
15380
15381 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15382 # into the resulting binary.
15383 hardcode_shlibpath_var=$hardcode_shlibpath_var
15384
15385 # Set to "yes" if building a shared library automatically hardcodes DIR
15386 # into the library and all subsequent libraries and executables linked
15387 # against it.
15388 hardcode_automatic=$hardcode_automatic
15389
15390 # Set to yes if linker adds runtime paths of dependent libraries
15391 # to runtime path list.
15392 inherit_rpath=$inherit_rpath
15393
15394 # Whether libtool must link a program against all its dependency libraries.
15395 link_all_deplibs=$link_all_deplibs
15396
15397 # Fix the shell variable \$srcfile for the compiler.
15398 fix_srcfile_path=$lt_fix_srcfile_path
15399
15400 # Set to "yes" if exported symbols are required.
15401 always_export_symbols=$always_export_symbols
15402
15403 # The commands to list exported symbols.
15404 export_symbols_cmds=$lt_export_symbols_cmds
15405
15406 # Symbols that should not be listed in the preloaded symbols.
15407 exclude_expsyms=$lt_exclude_expsyms
15408
15409 # Symbols that must always be exported.
15410 include_expsyms=$lt_include_expsyms
15411
15412 # Commands necessary for linking programs (against libraries) with templates.
15413 prelink_cmds=$lt_prelink_cmds
15414
15415 # Specify filename containing input files.
15416 file_list_spec=$lt_file_list_spec
15417
15418 # How to hardcode a shared library path into an executable.
15419 hardcode_action=$hardcode_action
15420
15421 # ### END LIBTOOL CONFIG
15422
15423 _LT_EOF
15424
15425 case $host_os in
15426 aix3*)
15427 cat <<\_LT_EOF >> "$cfgfile"
15428 # AIX sometimes has problems with the GCC collect2 program. For some
15429 # reason, if we set the COLLECT_NAMES environment variable, the problems
15430 # vanish in a puff of smoke.
15431 if test "X${COLLECT_NAMES+set}" != Xset; then
15432 COLLECT_NAMES=
15433 export COLLECT_NAMES
15434 fi
15435 _LT_EOF
15436 ;;
15437 esac
15438
15439
15440 ltmain="$ac_aux_dir/ltmain.sh"
15441
15442
15443 # We use sed instead of cat because bash on DJGPP gets confused if
15444 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15445 # text mode, it properly converts lines to CR/LF. This bash problem
15446 # is reportedly fixed, but why not run on old versions too?
15447 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15448 || (rm -f "$cfgfile"; exit 1)
15449
15450 case $xsi_shell in
15451 yes)
15452 cat << \_LT_EOF >> "$cfgfile"
15453
15454 # func_dirname file append nondir_replacement
15455 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15456 # otherwise set result to NONDIR_REPLACEMENT.
15457 func_dirname ()
15458 {
15459 case ${1} in
15460 */*) func_dirname_result="${1%/*}${2}" ;;
15461 * ) func_dirname_result="${3}" ;;
15462 esac
15463 }
15464
15465 # func_basename file
15466 func_basename ()
15467 {
15468 func_basename_result="${1##*/}"
15469 }
15470
15471 # func_dirname_and_basename file append nondir_replacement
15472 # perform func_basename and func_dirname in a single function
15473 # call:
15474 # dirname: Compute the dirname of FILE. If nonempty,
15475 # add APPEND to the result, otherwise set result
15476 # to NONDIR_REPLACEMENT.
15477 # value returned in "$func_dirname_result"
15478 # basename: Compute filename of FILE.
15479 # value retuned in "$func_basename_result"
15480 # Implementation must be kept synchronized with func_dirname
15481 # and func_basename. For efficiency, we do not delegate to
15482 # those functions but instead duplicate the functionality here.
15483 func_dirname_and_basename ()
15484 {
15485 case ${1} in
15486 */*) func_dirname_result="${1%/*}${2}" ;;
15487 * ) func_dirname_result="${3}" ;;
15488 esac
15489 func_basename_result="${1##*/}"
15490 }
15491
15492 # func_stripname prefix suffix name
15493 # strip PREFIX and SUFFIX off of NAME.
15494 # PREFIX and SUFFIX must not contain globbing or regex special
15495 # characters, hashes, percent signs, but SUFFIX may contain a leading
15496 # dot (in which case that matches only a dot).
15497 func_stripname ()
15498 {
15499 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15500 # positional parameters, so assign one to ordinary parameter first.
15501 func_stripname_result=${3}
15502 func_stripname_result=${func_stripname_result#"${1}"}
15503 func_stripname_result=${func_stripname_result%"${2}"}
15504 }
15505
15506 # func_opt_split
15507 func_opt_split ()
15508 {
15509 func_opt_split_opt=${1%%=*}
15510 func_opt_split_arg=${1#*=}
15511 }
15512
15513 # func_lo2o object
15514 func_lo2o ()
15515 {
15516 case ${1} in
15517 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15518 *) func_lo2o_result=${1} ;;
15519 esac
15520 }
15521
15522 # func_xform libobj-or-source
15523 func_xform ()
15524 {
15525 func_xform_result=${1%.*}.lo
15526 }
15527
15528 # func_arith arithmetic-term...
15529 func_arith ()
15530 {
15531 func_arith_result=$(( $* ))
15532 }
15533
15534 # func_len string
15535 # STRING may not start with a hyphen.
15536 func_len ()
15537 {
15538 func_len_result=${#1}
15539 }
15540
15541 _LT_EOF
15542 ;;
15543 *) # Bourne compatible functions.
15544 cat << \_LT_EOF >> "$cfgfile"
15545
15546 # func_dirname file append nondir_replacement
15547 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15548 # otherwise set result to NONDIR_REPLACEMENT.
15549 func_dirname ()
15550 {
15551 # Extract subdirectory from the argument.
15552 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15553 if test "X$func_dirname_result" = "X${1}"; then
15554 func_dirname_result="${3}"
15555 else
15556 func_dirname_result="$func_dirname_result${2}"
15557 fi
15558 }
15559
15560 # func_basename file
15561 func_basename ()
15562 {
15563 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15564 }
15565
15566
15567 # func_stripname prefix suffix name
15568 # strip PREFIX and SUFFIX off of NAME.
15569 # PREFIX and SUFFIX must not contain globbing or regex special
15570 # characters, hashes, percent signs, but SUFFIX may contain a leading
15571 # dot (in which case that matches only a dot).
15572 # func_strip_suffix prefix name
15573 func_stripname ()
15574 {
15575 case ${2} in
15576 .*) func_stripname_result=`$ECHO "X${3}" \
15577 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15578 *) func_stripname_result=`$ECHO "X${3}" \
15579 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15580 esac
15581 }
15582
15583 # sed scripts:
15584 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15585 my_sed_long_arg='1s/^-[^=]*=//'
15586
15587 # func_opt_split
15588 func_opt_split ()
15589 {
15590 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15591 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15592 }
15593
15594 # func_lo2o object
15595 func_lo2o ()
15596 {
15597 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15598 }
15599
15600 # func_xform libobj-or-source
15601 func_xform ()
15602 {
15603 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15604 }
15605
15606 # func_arith arithmetic-term...
15607 func_arith ()
15608 {
15609 func_arith_result=`expr "$@"`
15610 }
15611
15612 # func_len string
15613 # STRING may not start with a hyphen.
15614 func_len ()
15615 {
15616 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15617 }
15618
15619 _LT_EOF
15620 esac
15621
15622 case $lt_shell_append in
15623 yes)
15624 cat << \_LT_EOF >> "$cfgfile"
15625
15626 # func_append var value
15627 # Append VALUE to the end of shell variable VAR.
15628 func_append ()
15629 {
15630 eval "$1+=\$2"
15631 }
15632 _LT_EOF
15633 ;;
15634 *)
15635 cat << \_LT_EOF >> "$cfgfile"
15636
15637 # func_append var value
15638 # Append VALUE to the end of shell variable VAR.
15639 func_append ()
15640 {
15641 eval "$1=\$$1\$2"
15642 }
15643
15644 _LT_EOF
15645 ;;
15646 esac
15647
15648
15649 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfil e" \
15650 || (rm -f "$cfgfile"; exit 1)
15651
15652 mv -f "$cfgfile" "$ofile" ||
15653 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15654 chmod +x "$ofile"
15655
15656 ;;
15657
15658 esac
15659 done # for ac_tag
15660
15661
15662 { (exit 0); exit 0; }
15663 _ACEOF
15664 chmod +x $CONFIG_STATUS
15665 ac_clean_files=$ac_clean_files_save
15666
15667 test $ac_write_fail = 0 ||
15668 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >& 5
15669 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15670 { (exit 1); exit 1; }; }
15671
15672
15673 # configure is writing to config.log, and then calls config.status.
15674 # config.status does its own redirection, appending to config.log.
15675 # Unfortunately, on DOS this fails, as config.log is still kept open
15676 # by configure, so config.status won't be able to write to it; its
15677 # output is simply discarded. So we exec the FD to /dev/null,
15678 # effectively closing config.log, so it can be properly (re)opened and
15679 # appended to by config.status. When coming back to configure, we
15680 # need to make the FD available again.
15681 if test "$no_create" != yes; then
15682 ac_cs_success=:
15683 ac_config_status_args=
15684 test "$silent" = yes &&
15685 ac_config_status_args="$ac_config_status_args --quiet"
15686 exec 5>/dev/null
15687 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15688 exec 5>>config.log
15689 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15690 # would make configure fail if this is the last instruction.
15691 $ac_cs_success || { (exit 1); exit 1; }
15692 fi
15693 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15694 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_op ts" >&5
15695 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
15696 fi
15697
OLDNEW
« no previous file with comments | « third_party/sqlite/config.h.in ('k') | third_party/sqlite/configure.ac » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698