Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / libltdl / configure
CommitLineData
d9898ee8 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
8d138742 3# Generated by GNU Autoconf 2.63 for libltdl 2.2.6.
d9898ee8 4#
5# Report bugs to <bug-libtool@gnu.org>.
6#
dd184caf 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8d138742 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d9898ee8 9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
dd184caf 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
d9898ee8 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
8d138742 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
d9898ee8 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
dd184caf 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
8d138742
CE
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
dd184caf 74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
8d138742
CE
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
d9898ee8 81fi
d9898ee8 82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
dd184caf 91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
dd184caf 96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
8d138742 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
dd184caf 119 { (exit 1); exit 1; }
120fi
121
d9898ee8 122# Work around bugs in pre-3.0 UWIN ksh.
dd184caf 123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
d9898ee8 126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
8d138742
CE
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
d9898ee8 135
136# Required to use basename.
dd184caf 137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 139 as_expr=expr
140else
141 as_expr=false
142fi
143
dd184caf 144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
d9898ee8 145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
dd184caf 152as_me=`$as_basename -- "$0" ||
d9898ee8 153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
dd184caf 155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8d138742 156$as_echo X/"$0" |
dd184caf 157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
d9898ee8 170
dd184caf 171# CDPATH.
172$as_unset CDPATH
d9898ee8 173
d9898ee8 174
dd184caf 175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
d9898ee8 180fi
181
8d138742 182 if test $as_have_required = yes && (eval ":
dd184caf 183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
d9898ee8 198
dd184caf 199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
d9898ee8 206
dd184caf 207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
d9898ee8 242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
dd184caf 247 case $as_dir in
d9898ee8 248 /*)
dd184caf 249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
8d138742 264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
dd184caf 265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
8d138742 285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
dd184caf 286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
d9898ee8 349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
d9898ee8 351 test "x$as_lineno_1" != "x$as_lineno_2" &&
dd184caf 352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
8d138742
CE
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
dd184caf 369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
8d138742
CE
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
dd184caf 441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
dd184caf 452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
d9898ee8 457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
dd184caf 458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
d9898ee8 464 sed '
dd184caf 465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
d9898ee8 469 N
dd184caf 470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
d9898ee8 472 t loop
dd184caf 473 s/-\n.*//
d9898ee8 474 ' >$as_me.lineno &&
dd184caf 475 chmod +x "$as_me.lineno" ||
8d138742 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
d9898ee8 477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
dd184caf 481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
d9898ee8 483 # Exit status is that of the last command.
484 exit
485}
486
487
dd184caf 488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
d9898ee8 503esac
dd184caf 504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
d9898ee8 506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
dd184caf 512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
8d138742
CE
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
d9898ee8 530 as_ln_s='cp -p'
8d138742 531 fi
d9898ee8 532else
533 as_ln_s='cp -p'
534fi
dd184caf 535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
d9898ee8 537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
dd184caf 545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
8d138742 556 test -d "$1/.";
dd184caf 557 else
558 case $1 in
8d138742 559 -*)set "./$1";;
dd184caf 560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
d9898ee8 567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
d9898ee8 575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
8d138742 580case X$lt_ECHO in
d9898ee8 581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
8d138742 583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
d9898ee8 584 ;;
585esac
586
8d138742 587ECHO=${lt_ECHO-echo}
d9898ee8 588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
8d138742
CE
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
d9898ee8 596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
8d138742 605 cat <<_LT_EOF
d9898ee8 606$*
8d138742 607_LT_EOF
d9898ee8 608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
8d138742
CE
615if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
d9898ee8 627
8d138742
CE
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
d9898ee8 638
8d138742
CE
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
d9898ee8 650 IFS="$lt_save_ifs"
d9898ee8 651
8d138742
CE
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
d9898ee8 667 else
8d138742
CE
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
d9898ee8 692
8d138742
CE
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
d9898ee8 700
8d138742
CE
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
d9898ee8 710 fi
711 fi
712 fi
713fi
d9898ee8 714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
8d138742
CE
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
d9898ee8 720fi
721
722
723
724
dd184caf 725exec 7<&0 </dev/null 6>&1
726
d9898ee8 727# Name of the host.
728# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729# so uname gets run too.
730ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
d9898ee8 732#
733# Initializations.
734#
735ac_default_prefix=/usr/local
dd184caf 736ac_clean_files=
d9898ee8 737ac_config_libobj_dir=.
dd184caf 738LIBOBJS=
d9898ee8 739cross_compiling=no
740subdirs=
741MFLAGS=
742MAKEFLAGS=
743SHELL=${CONFIG_SHELL-/bin/sh}
744
d9898ee8 745# Identity of this package.
746PACKAGE_NAME='libltdl'
747PACKAGE_TARNAME='libltdl'
8d138742
CE
748PACKAGE_VERSION='2.2.6'
749PACKAGE_STRING='libltdl 2.2.6'
d9898ee8 750PACKAGE_BUGREPORT='bug-libtool@gnu.org'
751
752ac_unique_file="ltdl.c"
753# Factoring default headers for most tests.
754ac_includes_default="\
755#include <stdio.h>
dd184caf 756#ifdef HAVE_SYS_TYPES_H
d9898ee8 757# include <sys/types.h>
758#endif
dd184caf 759#ifdef HAVE_SYS_STAT_H
d9898ee8 760# include <sys/stat.h>
761#endif
dd184caf 762#ifdef STDC_HEADERS
d9898ee8 763# include <stdlib.h>
764# include <stddef.h>
765#else
dd184caf 766# ifdef HAVE_STDLIB_H
d9898ee8 767# include <stdlib.h>
768# endif
769#endif
dd184caf 770#ifdef HAVE_STRING_H
771# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
d9898ee8 772# include <memory.h>
773# endif
774# include <string.h>
775#endif
dd184caf 776#ifdef HAVE_STRINGS_H
d9898ee8 777# include <strings.h>
778#endif
dd184caf 779#ifdef HAVE_INTTYPES_H
d9898ee8 780# include <inttypes.h>
d9898ee8 781#endif
dd184caf 782#ifdef HAVE_STDINT_H
783# include <stdint.h>
784#endif
785#ifdef HAVE_UNISTD_H
d9898ee8 786# include <unistd.h>
787#endif"
788
8d138742
CE
789ac_subst_vars='am__EXEEXT_FALSE
790am__EXEEXT_TRUE
791LTLIBOBJS
792LTDLOPEN
793LT_CONFIG_H
794CONVENIENCE_LTDL_FALSE
795CONVENIENCE_LTDL_TRUE
796INSTALL_LTDL_FALSE
797INSTALL_LTDL_TRUE
798ARGZ_H
799LIBOBJS
800sys_symbol_underscore
801LIBADD_DL
802LT_DLPREOPEN
803LIBADD_DLD_LINK
804LIBADD_SHL_LOAD
805LIBADD_DLOPEN
806LT_DLLOADERS
807CPP
808OTOOL64
809OTOOL
810LIPO
811NMEDIT
812DSYMUTIL
813lt_ECHO
814RANLIB
815AR
816LN_S
817NM
818ac_ct_DUMPBIN
819DUMPBIN
820LD
821FGREP
822EGREP
823GREP
824SED
825am__fastdepCC_FALSE
826am__fastdepCC_TRUE
827CCDEPMODE
828AMDEPBACKSLASH
829AMDEP_FALSE
830AMDEP_TRUE
831am__quote
832am__include
833DEPDIR
834OBJEXT
835EXEEXT
836ac_ct_CC
837CPPFLAGS
838LDFLAGS
839CFLAGS
840CC
841host_os
842host_vendor
843host_cpu
844host
845build_os
846build_vendor
847build_cpu
848build
849LIBTOOL
850OBJDUMP
851DLLTOOL
852AS
853am__untar
854am__tar
855AMTAR
856am__leading_dot
857SET_MAKE
858AWK
859mkdir_p
860MKDIR_P
861INSTALL_STRIP_PROGRAM
862STRIP
863install_sh
864MAKEINFO
865AUTOHEADER
866AUTOMAKE
867AUTOCONF
868ACLOCAL
869VERSION
870PACKAGE
871CYGPATH_W
872am__isrc
873INSTALL_DATA
874INSTALL_SCRIPT
875INSTALL_PROGRAM
876target_alias
877host_alias
dd184caf 878build_alias
8d138742
CE
879LIBS
880ECHO_T
881ECHO_N
882ECHO_C
883DEFS
884mandir
885localedir
886libdir
887psdir
888pdfdir
889dvidir
890htmldir
891infodir
892docdir
893oldincludedir
894includedir
895localstatedir
896sharedstatedir
897sysconfdir
898datadir
899datarootdir
900libexecdir
901sbindir
902bindir
903program_transform_name
904prefix
905exec_prefix
906PACKAGE_BUGREPORT
907PACKAGE_STRING
908PACKAGE_VERSION
909PACKAGE_TARNAME
910PACKAGE_NAME
911PATH_SEPARATOR
912SHELL'
913ac_subst_files=''
914ac_user_opts='
915enable_option_checking
916enable_shared
917enable_static
918with_pic
919enable_fast_install
920enable_dependency_tracking
921with_gnu_ld
922enable_libtool_lock
923enable_ltdl_install
924'
925 ac_precious_vars='build_alias
dd184caf 926host_alias
927target_alias
dd184caf 928CC
929CFLAGS
930LDFLAGS
8d138742 931LIBS
dd184caf 932CPPFLAGS
8d138742 933CPP'
dd184caf 934
d9898ee8 935
936# Initialize some variables set by options.
937ac_init_help=
938ac_init_version=false
8d138742
CE
939ac_unrecognized_opts=
940ac_unrecognized_sep=
d9898ee8 941# The variables have the same names as the options, with
942# dashes changed to underlines.
943cache_file=/dev/null
944exec_prefix=NONE
945no_create=
946no_recursion=
947prefix=NONE
948program_prefix=NONE
949program_suffix=NONE
950program_transform_name=s,x,x,
951silent=
952site=
953srcdir=
954verbose=
955x_includes=NONE
956x_libraries=NONE
957
958# Installation directory options.
959# These are left unexpanded so users can "make install exec_prefix=/foo"
960# and all the variables that are supposed to be based on exec_prefix
961# by default will actually change.
962# Use braces instead of parens because sh, perl, etc. also accept them.
dd184caf 963# (The list follows the same order as the GNU Coding Standards.)
d9898ee8 964bindir='${exec_prefix}/bin'
965sbindir='${exec_prefix}/sbin'
966libexecdir='${exec_prefix}/libexec'
dd184caf 967datarootdir='${prefix}/share'
968datadir='${datarootdir}'
d9898ee8 969sysconfdir='${prefix}/etc'
970sharedstatedir='${prefix}/com'
971localstatedir='${prefix}/var'
d9898ee8 972includedir='${prefix}/include'
973oldincludedir='/usr/include'
dd184caf 974docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
975infodir='${datarootdir}/info'
976htmldir='${docdir}'
977dvidir='${docdir}'
978pdfdir='${docdir}'
979psdir='${docdir}'
980libdir='${exec_prefix}/lib'
981localedir='${datarootdir}/locale'
982mandir='${datarootdir}/man'
d9898ee8 983
984ac_prev=
dd184caf 985ac_dashdash=
d9898ee8 986for ac_option
987do
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
dd184caf 990 eval $ac_prev=\$ac_option
d9898ee8 991 ac_prev=
992 continue
993 fi
994
dd184caf 995 case $ac_option in
996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 *) ac_optarg=yes ;;
998 esac
d9898ee8 999
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1001
dd184caf 1002 case $ac_dashdash$ac_option in
1003 --)
1004 ac_dashdash=yes ;;
d9898ee8 1005
1006 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 ac_prev=bindir ;;
1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1009 bindir=$ac_optarg ;;
1010
1011 -build | --build | --buil | --bui | --bu)
1012 ac_prev=build_alias ;;
1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1014 build_alias=$ac_optarg ;;
1015
1016 -cache-file | --cache-file | --cache-fil | --cache-fi \
1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018 ac_prev=cache_file ;;
1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1021 cache_file=$ac_optarg ;;
1022
1023 --config-cache | -C)
1024 cache_file=config.cache ;;
1025
dd184caf 1026 -datadir | --datadir | --datadi | --datad)
d9898ee8 1027 ac_prev=datadir ;;
dd184caf 1028 -datadir=* | --datadir=* | --datadi=* | --datad=*)
d9898ee8 1029 datadir=$ac_optarg ;;
1030
dd184caf 1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032 | --dataroo | --dataro | --datar)
1033 ac_prev=datarootdir ;;
1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036 datarootdir=$ac_optarg ;;
1037
d9898ee8 1038 -disable-* | --disable-*)
8d138742 1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d9898ee8 1040 # Reject names that are not valid shell variable names.
8d138742
CE
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1043 { (exit 1); exit 1; }; }
8d138742
CE
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048"enable_$ac_useropt"
1049"*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=no ;;
dd184caf 1054
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1059
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
d9898ee8 1064
1065 -enable-* | --enable-*)
8d138742 1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d9898ee8 1067 # Reject names that are not valid shell variable names.
8d138742
CE
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
d9898ee8 1070 { (exit 1); exit 1; }; }
8d138742
CE
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1074 *"
1075"enable_$ac_useropt"
1076"*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval enable_$ac_useropt=\$ac_optarg ;;
d9898ee8 1081
1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084 | --exec | --exe | --ex)
1085 ac_prev=exec_prefix ;;
1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088 | --exec=* | --exe=* | --ex=*)
1089 exec_prefix=$ac_optarg ;;
1090
1091 -gas | --gas | --ga | --g)
1092 # Obsolete; use --with-gas.
1093 with_gas=yes ;;
1094
1095 -help | --help | --hel | --he | -h)
1096 ac_init_help=long ;;
1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098 ac_init_help=recursive ;;
1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100 ac_init_help=short ;;
1101
1102 -host | --host | --hos | --ho)
1103 ac_prev=host_alias ;;
1104 -host=* | --host=* | --hos=* | --ho=*)
1105 host_alias=$ac_optarg ;;
1106
dd184caf 1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 ac_prev=htmldir ;;
1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 | --ht=*)
1111 htmldir=$ac_optarg ;;
1112
d9898ee8 1113 -includedir | --includedir | --includedi | --included | --include \
1114 | --includ | --inclu | --incl | --inc)
1115 ac_prev=includedir ;;
1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117 | --includ=* | --inclu=* | --incl=* | --inc=*)
1118 includedir=$ac_optarg ;;
1119
1120 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 ac_prev=infodir ;;
1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123 infodir=$ac_optarg ;;
1124
1125 -libdir | --libdir | --libdi | --libd)
1126 ac_prev=libdir ;;
1127 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128 libdir=$ac_optarg ;;
1129
1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131 | --libexe | --libex | --libe)
1132 ac_prev=libexecdir ;;
1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134 | --libexe=* | --libex=* | --libe=*)
1135 libexecdir=$ac_optarg ;;
1136
dd184caf 1137 -localedir | --localedir | --localedi | --localed | --locale)
1138 ac_prev=localedir ;;
1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140 localedir=$ac_optarg ;;
1141
d9898ee8 1142 -localstatedir | --localstatedir | --localstatedi | --localstated \
dd184caf 1143 | --localstate | --localstat | --localsta | --localst | --locals)
d9898ee8 1144 ac_prev=localstatedir ;;
1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
dd184caf 1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
d9898ee8 1147 localstatedir=$ac_optarg ;;
1148
1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 ac_prev=mandir ;;
1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152 mandir=$ac_optarg ;;
1153
1154 -nfp | --nfp | --nf)
1155 # Obsolete; use --without-fp.
1156 with_fp=no ;;
1157
1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159 | --no-cr | --no-c | -n)
1160 no_create=yes ;;
1161
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 no_recursion=yes ;;
1165
1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168 | --oldin | --oldi | --old | --ol | --o)
1169 ac_prev=oldincludedir ;;
1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173 oldincludedir=$ac_optarg ;;
1174
1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 ac_prev=prefix ;;
1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178 prefix=$ac_optarg ;;
1179
1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181 | --program-pre | --program-pr | --program-p)
1182 ac_prev=program_prefix ;;
1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185 program_prefix=$ac_optarg ;;
1186
1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188 | --program-suf | --program-su | --program-s)
1189 ac_prev=program_suffix ;;
1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192 program_suffix=$ac_optarg ;;
1193
1194 -program-transform-name | --program-transform-name \
1195 | --program-transform-nam | --program-transform-na \
1196 | --program-transform-n | --program-transform- \
1197 | --program-transform | --program-transfor \
1198 | --program-transfo | --program-transf \
1199 | --program-trans | --program-tran \
1200 | --progr-tra | --program-tr | --program-t)
1201 ac_prev=program_transform_name ;;
1202 -program-transform-name=* | --program-transform-name=* \
1203 | --program-transform-nam=* | --program-transform-na=* \
1204 | --program-transform-n=* | --program-transform-=* \
1205 | --program-transform=* | --program-transfor=* \
1206 | --program-transfo=* | --program-transf=* \
1207 | --program-trans=* | --program-tran=* \
1208 | --progr-tra=* | --program-tr=* | --program-t=*)
1209 program_transform_name=$ac_optarg ;;
1210
dd184caf 1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 ac_prev=pdfdir ;;
1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214 pdfdir=$ac_optarg ;;
1215
1216 -psdir | --psdir | --psdi | --psd | --ps)
1217 ac_prev=psdir ;;
1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 psdir=$ac_optarg ;;
1220
d9898ee8 1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 silent=yes ;;
1224
1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 ac_prev=sbindir ;;
1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 | --sbi=* | --sb=*)
1229 sbindir=$ac_optarg ;;
1230
1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233 | --sharedst | --shareds | --shared | --share | --shar \
1234 | --sha | --sh)
1235 ac_prev=sharedstatedir ;;
1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 | --sha=* | --sh=*)
1240 sharedstatedir=$ac_optarg ;;
1241
1242 -site | --site | --sit)
1243 ac_prev=site ;;
1244 -site=* | --site=* | --sit=*)
1245 site=$ac_optarg ;;
1246
1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 ac_prev=srcdir ;;
1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250 srcdir=$ac_optarg ;;
1251
1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253 | --syscon | --sysco | --sysc | --sys | --sy)
1254 ac_prev=sysconfdir ;;
1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257 sysconfdir=$ac_optarg ;;
1258
1259 -target | --target | --targe | --targ | --tar | --ta | --t)
1260 ac_prev=target_alias ;;
1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262 target_alias=$ac_optarg ;;
1263
1264 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 verbose=yes ;;
1266
1267 -version | --version | --versio | --versi | --vers | -V)
1268 ac_init_version=: ;;
1269
1270 -with-* | --with-*)
8d138742 1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d9898ee8 1272 # Reject names that are not valid shell variable names.
8d138742
CE
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1275 { (exit 1); exit 1; }; }
8d138742
CE
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1279 *"
1280"with_$ac_useropt"
1281"*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=\$ac_optarg ;;
d9898ee8 1286
1287 -without-* | --without-*)
8d138742 1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d9898ee8 1289 # Reject names that are not valid shell variable names.
8d138742
CE
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
d9898ee8 1292 { (exit 1); exit 1; }; }
8d138742
CE
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1296 *"
1297"with_$ac_useropt"
1298"*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=no ;;
d9898ee8 1303
1304 --x)
1305 # Obsolete; use --with-x.
1306 with_x=yes ;;
1307
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313 x_includes=$ac_optarg ;;
1314
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320 x_libraries=$ac_optarg ;;
1321
8d138742 1322 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
d9898ee8 1323Try \`$0 --help' for more information." >&2
1324 { (exit 1); exit 1; }; }
1325 ;;
1326
1327 *=*)
1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
8d138742 1331 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
d9898ee8 1332 { (exit 1); exit 1; }; }
dd184caf 1333 eval $ac_envvar=\$ac_optarg
d9898ee8 1334 export $ac_envvar ;;
1335
1336 *)
1337 # FIXME: should be removed in autoconf 3.0.
8d138742 1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
d9898ee8 1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
8d138742 1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d9898ee8 1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342 ;;
1343
1344 esac
1345done
1346
1347if test -n "$ac_prev"; then
1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
8d138742 1349 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
d9898ee8 1350 { (exit 1); exit 1; }; }
1351fi
1352
8d138742
CE
1353if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1355 no) ;;
1356 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1357 { (exit 1); exit 1; }; } ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1360fi
1361
1362# Check all directory arguments for consistency.
dd184caf 1363for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
d9898ee8 1367do
dd184caf 1368 eval ac_val=\$$ac_var
8d138742
CE
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
d9898ee8 1376 case $ac_val in
dd184caf 1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
d9898ee8 1379 esac
8d138742 1380 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
dd184caf 1381 { (exit 1); exit 1; }; }
d9898ee8 1382done
1383
1384# There might be people who depend on the old broken behavior: `$host'
1385# used to hold the argument of --host etc.
1386# FIXME: To remove some day.
1387build=$build_alias
1388host=$host_alias
1389target=$target_alias
1390
1391# FIXME: To remove some day.
1392if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
8d138742 1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
d9898ee8 1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1399 fi
1400fi
1401
1402ac_tool_prefix=
1403test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405test "$silent" = yes && exec 6>/dev/null
1406
1407
dd184caf 1408ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409ac_ls_di=`ls -di .` &&
1410ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
8d138742 1411 { $as_echo "$as_me: error: working directory cannot be determined" >&2
dd184caf 1412 { (exit 1); exit 1; }; }
1413test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
8d138742 1414 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
dd184caf 1415 { (exit 1); exit 1; }; }
1416
1417
d9898ee8 1418# Find the source files, if location was not specified.
1419if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
dd184caf 1421 # Try the directory containing this script, then the parent directory.
8d138742
CE
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427$as_echo X"$as_myself" |
dd184caf 1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)$/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\).*/{
1441 s//\1/
1442 q
1443 }
1444 s/.*/./; q'`
d9898ee8 1445 srcdir=$ac_confdir
dd184caf 1446 if test ! -r "$srcdir/$ac_unique_file"; then
d9898ee8 1447 srcdir=..
1448 fi
1449else
1450 ac_srcdir_defaulted=no
1451fi
dd184caf 1452if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
8d138742 1454 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
d9898ee8 1455 { (exit 1); exit 1; }; }
d9898ee8 1456fi
dd184caf 1457ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458ac_abs_confdir=`(
8d138742 1459 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
d9898ee8 1460 { (exit 1); exit 1; }; }
dd184caf 1461 pwd)`
1462# When building in place, set srcdir=.
1463if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1465fi
1466# Remove unnecessary trailing slashes from srcdir.
1467# Double slashes in file names in object file debugging info
1468# mess up M-x gdb in Emacs.
1469case $srcdir in
1470*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471esac
1472for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477done
d9898ee8 1478
1479#
1480# Report the --help message.
1481#
1482if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
8d138742 1486\`configure' configures libltdl 2.2.6 to adapt to many kinds of systems.
d9898ee8 1487
1488Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491VAR=VALUE. See below for descriptions of some of the useful variables.
1492
1493Defaults for the options are specified in brackets.
1494
1495Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505
d9898ee8 1506Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
8d138742 1508 [$ac_default_prefix]
d9898ee8 1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8d138742 1510 [PREFIX]
d9898ee8 1511
1512By default, \`make install' will install all the files in
1513\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515for instance \`--prefix=\$HOME'.
1516
1517For better control, use the options below.
1518
1519Fine tuning of the installation directories:
8d138742
CE
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
d9898ee8 1539_ACEOF
1540
1541 cat <<\_ACEOF
1542
1543Program names:
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547
1548System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551_ACEOF
1552fi
1553
1554if test -n "$ac_init_help"; then
1555 case $ac_init_help in
8d138742 1556 short | recursive ) echo "Configuration of libltdl 2.2.6:";;
d9898ee8 1557 esac
1558 cat <<\_ACEOF
1559
1560Optional Features:
8d138742 1561 --disable-option-checking ignore unrecognized --enable/--with options
d9898ee8 1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
dd184caf 1564 --enable-shared[=PKGS] build shared libraries [default=yes]
1565 --enable-static[=PKGS] build static libraries [default=yes]
d9898ee8 1566 --enable-fast-install[=PKGS]
1567 optimize for fast installation [default=yes]
8d138742
CE
1568 --disable-dependency-tracking speeds up one-time build
1569 --enable-dependency-tracking do not reject slow dependency extractors
d9898ee8 1570 --disable-libtool-lock avoid locking (might break parallel builds)
1571 --enable-ltdl-install install libltdl
1572
1573Optional Packages:
1574 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1575 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d9898ee8 1576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
8d138742 1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
d9898ee8 1579
1580Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
dd184caf 1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
d9898ee8 1588 CPP C preprocessor
d9898ee8 1589
1590Use these variables to override the choices made by `configure' or to help
1591it to find libraries and programs with nonstandard names/locations.
1592
1593Report bugs to <bug-libtool@gnu.org>.
1594_ACEOF
dd184caf 1595ac_status=$?
d9898ee8 1596fi
1597
1598if test "$ac_init_help" = "recursive"; then
1599 # If there are subdirs, report their specific --help.
d9898ee8 1600 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
8d138742
CE
1601 test -d "$ac_dir" ||
1602 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1603 continue
d9898ee8 1604 ac_builddir=.
1605
dd184caf 1606case "$ac_dir" in
1607.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608*)
8d138742 1609 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
dd184caf 1610 # A ".." for each directory in $ac_dir_suffix.
8d138742 1611 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
dd184caf 1612 case $ac_top_builddir_sub in
1613 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1614 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1615 esac ;;
1616esac
1617ac_abs_top_builddir=$ac_pwd
1618ac_abs_builddir=$ac_pwd$ac_dir_suffix
1619# for backward compatibility:
1620ac_top_builddir=$ac_top_build_prefix
d9898ee8 1621
1622case $srcdir in
dd184caf 1623 .) # We are building in place.
d9898ee8 1624 ac_srcdir=.
dd184caf 1625 ac_top_srcdir=$ac_top_builddir_sub
1626 ac_abs_top_srcdir=$ac_pwd ;;
1627 [\\/]* | ?:[\\/]* ) # Absolute name.
d9898ee8 1628 ac_srcdir=$srcdir$ac_dir_suffix;
dd184caf 1629 ac_top_srcdir=$srcdir
1630 ac_abs_top_srcdir=$srcdir ;;
1631 *) # Relative name.
1632 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1633 ac_top_srcdir=$ac_top_build_prefix$srcdir
1634 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
d9898ee8 1635esac
dd184caf 1636ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637
1638 cd "$ac_dir" || { ac_status=$?; continue; }
1639 # Check for guested configure.
1640 if test -f "$ac_srcdir/configure.gnu"; then
1641 echo &&
1642 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1643 elif test -f "$ac_srcdir/configure"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure" --help=recursive
d9898ee8 1646 else
8d138742 1647 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
dd184caf 1648 fi || ac_status=$?
1649 cd "$ac_pwd" || { ac_status=$?; break; }
d9898ee8 1650 done
1651fi
1652
dd184caf 1653test -n "$ac_init_help" && exit $ac_status
d9898ee8 1654if $ac_init_version; then
1655 cat <<\_ACEOF
8d138742
CE
1656libltdl configure 2.2.6
1657generated by GNU Autoconf 2.63
d9898ee8 1658
dd184caf 1659Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8d138742 16602002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d9898ee8 1661This configure script is free software; the Free Software Foundation
1662gives unlimited permission to copy, distribute and modify it.
1663_ACEOF
dd184caf 1664 exit
d9898ee8 1665fi
dd184caf 1666cat >config.log <<_ACEOF
d9898ee8 1667This file contains any messages produced by compilers while
1668running configure, to aid debugging if configure makes a mistake.
1669
8d138742
CE
1670It was created by libltdl $as_me 2.2.6, which was
1671generated by GNU Autoconf 2.63. Invocation command line was
d9898ee8 1672
1673 $ $0 $@
1674
1675_ACEOF
dd184caf 1676exec 5>>config.log
d9898ee8 1677{
1678cat <<_ASUNAME
1679## --------- ##
1680## Platform. ##
1681## --------- ##
1682
1683hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1684uname -m = `(uname -m) 2>/dev/null || echo unknown`
1685uname -r = `(uname -r) 2>/dev/null || echo unknown`
1686uname -s = `(uname -s) 2>/dev/null || echo unknown`
1687uname -v = `(uname -v) 2>/dev/null || echo unknown`
1688
1689/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1690/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1691
1692/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1693/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1694/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
dd184caf 1695/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
d9898ee8 1696/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1697/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1698/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1699
1700_ASUNAME
1701
1702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703for as_dir in $PATH
1704do
1705 IFS=$as_save_IFS
1706 test -z "$as_dir" && as_dir=.
8d138742 1707 $as_echo "PATH: $as_dir"
d9898ee8 1708done
dd184caf 1709IFS=$as_save_IFS
d9898ee8 1710
1711} >&5
1712
1713cat >&5 <<_ACEOF
1714
1715
1716## ----------- ##
1717## Core tests. ##
1718## ----------- ##
1719
1720_ACEOF
1721
1722
1723# Keep a trace of the command line.
1724# Strip out --no-create and --no-recursion so they do not pile up.
1725# Strip out --silent because we don't want to record it for future runs.
1726# Also quote any args containing shell meta-characters.
1727# Make two passes to allow for proper duplicate-argument suppression.
1728ac_configure_args=
1729ac_configure_args0=
1730ac_configure_args1=
d9898ee8 1731ac_must_keep_next=false
1732for ac_pass in 1 2
1733do
1734 for ac_arg
1735 do
1736 case $ac_arg in
1737 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1739 | -silent | --silent | --silen | --sile | --sil)
1740 continue ;;
dd184caf 1741 *\'*)
8d138742 1742 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1743 esac
1744 case $ac_pass in
1745 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1746 2)
1747 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1748 if test $ac_must_keep_next = true; then
1749 ac_must_keep_next=false # Got value, back to normal.
1750 else
1751 case $ac_arg in
1752 *=* | --config-cache | -C | -disable-* | --disable-* \
1753 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1754 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1755 | -with-* | --with-* | -without-* | --without-* | --x)
1756 case "$ac_configure_args0 " in
1757 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1758 esac
1759 ;;
1760 -* ) ac_must_keep_next=true ;;
1761 esac
1762 fi
dd184caf 1763 ac_configure_args="$ac_configure_args '$ac_arg'"
d9898ee8 1764 ;;
1765 esac
1766 done
1767done
1768$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1769$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1770
1771# When interrupted or exit'd, cleanup temporary files, and complete
1772# config.log. We remove comments because anyway the quotes in there
1773# would cause problems or look ugly.
dd184caf 1774# WARNING: Use '\'' to represent an apostrophe within the trap.
1775# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
d9898ee8 1776trap 'exit_status=$?
1777 # Save into config.log some information that might help in debugging.
1778 {
1779 echo
1780
1781 cat <<\_ASBOX
1782## ---------------- ##
1783## Cache variables. ##
1784## ---------------- ##
1785_ASBOX
1786 echo
1787 # The following way of writing the cache mishandles newlines in values,
dd184caf 1788(
1789 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1790 eval ac_val=\$$ac_var
1791 case $ac_val in #(
1792 *${as_nl}*)
1793 case $ac_var in #(
8d138742
CE
1794 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1795$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
dd184caf 1796 esac
1797 case $ac_var in #(
1798 _ | IFS | as_nl) ;; #(
8d138742 1799 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
dd184caf 1800 *) $as_unset $ac_var ;;
1801 esac ;;
1802 esac
1803 done
d9898ee8 1804 (set) 2>&1 |
dd184caf 1805 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1806 *${as_nl}ac_space=\ *)
d9898ee8 1807 sed -n \
dd184caf 1808 "s/'\''/'\''\\\\'\'''\''/g;
1809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1810 ;; #(
d9898ee8 1811 *)
dd184caf 1812 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
d9898ee8 1813 ;;
dd184caf 1814 esac |
1815 sort
1816)
d9898ee8 1817 echo
1818
1819 cat <<\_ASBOX
1820## ----------------- ##
1821## Output variables. ##
1822## ----------------- ##
1823_ASBOX
1824 echo
1825 for ac_var in $ac_subst_vars
1826 do
dd184caf 1827 eval ac_val=\$$ac_var
1828 case $ac_val in
8d138742 1829 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1830 esac
8d138742 1831 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1832 done | sort
1833 echo
1834
1835 if test -n "$ac_subst_files"; then
1836 cat <<\_ASBOX
dd184caf 1837## ------------------- ##
1838## File substitutions. ##
1839## ------------------- ##
d9898ee8 1840_ASBOX
1841 echo
1842 for ac_var in $ac_subst_files
1843 do
dd184caf 1844 eval ac_val=\$$ac_var
1845 case $ac_val in
8d138742 1846 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
dd184caf 1847 esac
8d138742 1848 $as_echo "$ac_var='\''$ac_val'\''"
d9898ee8 1849 done | sort
1850 echo
1851 fi
1852
1853 if test -s confdefs.h; then
1854 cat <<\_ASBOX
1855## ----------- ##
1856## confdefs.h. ##
1857## ----------- ##
1858_ASBOX
1859 echo
dd184caf 1860 cat confdefs.h
d9898ee8 1861 echo
1862 fi
1863 test "$ac_signal" != 0 &&
8d138742
CE
1864 $as_echo "$as_me: caught signal $ac_signal"
1865 $as_echo "$as_me: exit $exit_status"
d9898ee8 1866 } >&5
dd184caf 1867 rm -f core *.core core.conftest.* &&
1868 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
d9898ee8 1869 exit $exit_status
dd184caf 1870' 0
d9898ee8 1871for ac_signal in 1 2 13 15; do
1872 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1873done
1874ac_signal=0
1875
1876# confdefs.h avoids OS command line length limits that DEFS can exceed.
dd184caf 1877rm -f -r conftest* confdefs.h
d9898ee8 1878
1879# Predefined preprocessor variables.
1880
1881cat >>confdefs.h <<_ACEOF
1882#define PACKAGE_NAME "$PACKAGE_NAME"
1883_ACEOF
1884
1885
1886cat >>confdefs.h <<_ACEOF
1887#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1888_ACEOF
1889
1890
1891cat >>confdefs.h <<_ACEOF
1892#define PACKAGE_VERSION "$PACKAGE_VERSION"
1893_ACEOF
1894
1895
1896cat >>confdefs.h <<_ACEOF
1897#define PACKAGE_STRING "$PACKAGE_STRING"
1898_ACEOF
1899
1900
1901cat >>confdefs.h <<_ACEOF
1902#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1903_ACEOF
1904
1905
1906# Let the site file select an alternate cache file if it wants to.
8d138742
CE
1907# Prefer an explicitly selected file to automatically selected ones.
1908ac_site_file1=NONE
1909ac_site_file2=NONE
dd184caf 1910if test -n "$CONFIG_SITE"; then
8d138742 1911 ac_site_file1=$CONFIG_SITE
dd184caf 1912elif test "x$prefix" != xNONE; then
8d138742
CE
1913 ac_site_file1=$prefix/share/config.site
1914 ac_site_file2=$prefix/etc/config.site
dd184caf 1915else
8d138742
CE
1916 ac_site_file1=$ac_default_prefix/share/config.site
1917 ac_site_file2=$ac_default_prefix/etc/config.site
d9898ee8 1918fi
8d138742 1919for ac_site_file in "$ac_site_file1" "$ac_site_file2"
dd184caf 1920do
8d138742 1921 test "x$ac_site_file" = xNONE && continue
d9898ee8 1922 if test -r "$ac_site_file"; then
8d138742
CE
1923 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1924$as_echo "$as_me: loading site script $ac_site_file" >&6;}
d9898ee8 1925 sed 's/^/| /' "$ac_site_file" >&5
1926 . "$ac_site_file"
1927 fi
1928done
1929
1930if test -r "$cache_file"; then
1931 # Some versions of bash will fail to source /dev/null (special
1932 # files actually), so we avoid doing that.
1933 if test -f "$cache_file"; then
8d138742
CE
1934 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1935$as_echo "$as_me: loading cache $cache_file" >&6;}
d9898ee8 1936 case $cache_file in
dd184caf 1937 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1938 *) . "./$cache_file";;
d9898ee8 1939 esac
1940 fi
1941else
8d138742
CE
1942 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1943$as_echo "$as_me: creating cache $cache_file" >&6;}
d9898ee8 1944 >$cache_file
1945fi
1946
1947# Check that the precious variables saved in the cache have kept the same
1948# value.
1949ac_cache_corrupted=false
dd184caf 1950for ac_var in $ac_precious_vars; do
d9898ee8 1951 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1952 eval ac_new_set=\$ac_env_${ac_var}_set
dd184caf 1953 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1954 eval ac_new_val=\$ac_env_${ac_var}_value
d9898ee8 1955 case $ac_old_set,$ac_new_set in
1956 set,)
8d138742
CE
1957 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1958$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
d9898ee8 1959 ac_cache_corrupted=: ;;
1960 ,set)
8d138742
CE
1961 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1962$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
d9898ee8 1963 ac_cache_corrupted=: ;;
1964 ,);;
1965 *)
1966 if test "x$ac_old_val" != "x$ac_new_val"; then
8d138742
CE
1967 # differences in whitespace do not lead to failure.
1968 ac_old_val_w=`echo x $ac_old_val`
1969 ac_new_val_w=`echo x $ac_new_val`
1970 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1971 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1972$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1973 ac_cache_corrupted=:
1974 else
1975 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1976$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1977 eval $ac_var=\$ac_old_val
1978 fi
1979 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1980$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1981 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1982$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
d9898ee8 1983 fi;;
1984 esac
1985 # Pass precious variables to config.status.
1986 if test "$ac_new_set" = set; then
1987 case $ac_new_val in
8d138742 1988 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
d9898ee8 1989 *) ac_arg=$ac_var=$ac_new_val ;;
1990 esac
1991 case " $ac_configure_args " in
1992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1993 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1994 esac
1995 fi
1996done
1997if $ac_cache_corrupted; then
8d138742
CE
1998 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2000 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2001$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2002 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2003$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
d9898ee8 2004 { (exit 1); exit 1; }; }
2005fi
2006
d9898ee8 2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
dd184caf 2031ac_ext=c
2032ac_cpp='$CPP $CPPFLAGS'
2033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2035ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 2036
2037
8d138742 2038ac_config_headers="$ac_config_headers config.h:config-h.in"
d9898ee8 2039
2040
d9898ee8 2041ac_aux_dir=
8d138742 2042for ac_dir in config "$srcdir"/config; do
dd184caf 2043 if test -f "$ac_dir/install-sh"; then
d9898ee8 2044 ac_aux_dir=$ac_dir
2045 ac_install_sh="$ac_aux_dir/install-sh -c"
2046 break
dd184caf 2047 elif test -f "$ac_dir/install.sh"; then
d9898ee8 2048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/install.sh -c"
2050 break
dd184caf 2051 elif test -f "$ac_dir/shtool"; then
d9898ee8 2052 ac_aux_dir=$ac_dir
2053 ac_install_sh="$ac_aux_dir/shtool install -c"
2054 break
2055 fi
2056done
2057if test -z "$ac_aux_dir"; then
8d138742
CE
2058 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2059$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
d9898ee8 2060 { (exit 1); exit 1; }; }
2061fi
dd184caf 2062
2063# These three variables are undocumented and unsupported,
2064# and are intended to be withdrawn in a future Autoconf release.
2065# They can cause serious problems if a builder's source tree is in a directory
2066# whose full name contains unusual characters.
2067ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2068ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2069ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2070
d9898ee8 2071
2072
8d138742
CE
2073
2074
2075
2076
2077
2078 # I am me!
d9898ee8 2079
2080
2081## ------------------------ ##
2082## Automake Initialisation. ##
2083## ------------------------ ##
8d138742
CE
2084
2085am__api_version='1.11'
dd184caf 2086
d9898ee8 2087# Find a good install program. We prefer a C program (faster),
2088# so one script is as good as another. But avoid the broken or
2089# incompatible versions:
2090# SysV /etc/install, /usr/sbin/install
2091# SunOS /usr/etc/install
2092# IRIX /sbin/install
2093# AIX /bin/install
2094# AmigaOS /C/install, which installs bootblocks on floppy discs
2095# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2096# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2097# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2098# OS/2's system install, which has a completely different semantic
2099# ./install, which can be erroneously created by make from ./install.sh.
8d138742
CE
2100# Reject install programs that cannot install multiple files.
2101{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2102$as_echo_n "checking for a BSD-compatible install... " >&6; }
d9898ee8 2103if test -z "$INSTALL"; then
2104if test "${ac_cv_path_install+set}" = set; then
8d138742 2105 $as_echo_n "(cached) " >&6
d9898ee8 2106else
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108for as_dir in $PATH
2109do
2110 IFS=$as_save_IFS
2111 test -z "$as_dir" && as_dir=.
2112 # Account for people who put trailing slashes in PATH elements.
2113case $as_dir/ in
2114 ./ | .// | /cC/* | \
2115 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2116 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2117 /usr/ucb/* ) ;;
2118 *)
2119 # OSF1 and SCO ODT 3.0 have their own names for install.
2120 # Don't use installbsd from OSF since it installs stuff as root
2121 # by default.
2122 for ac_prog in ginstall scoinst install; do
2123 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2124 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
d9898ee8 2125 if test $ac_prog = install &&
2126 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2127 # AIX install. It has an incompatible calling convention.
2128 :
2129 elif test $ac_prog = install &&
2130 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2131 # program-specific install script used by HP pwplus--don't use.
2132 :
2133 else
8d138742
CE
2134 rm -rf conftest.one conftest.two conftest.dir
2135 echo one > conftest.one
2136 echo two > conftest.two
2137 mkdir conftest.dir
2138 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2139 test -s conftest.one && test -s conftest.two &&
2140 test -s conftest.dir/conftest.one &&
2141 test -s conftest.dir/conftest.two
2142 then
2143 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2144 break 3
2145 fi
d9898ee8 2146 fi
2147 fi
2148 done
2149 done
2150 ;;
2151esac
8d138742 2152
d9898ee8 2153done
dd184caf 2154IFS=$as_save_IFS
d9898ee8 2155
8d138742 2156rm -rf conftest.one conftest.two conftest.dir
d9898ee8 2157
2158fi
2159 if test "${ac_cv_path_install+set}" = set; then
2160 INSTALL=$ac_cv_path_install
2161 else
dd184caf 2162 # As a last resort, use the slow shell script. Don't cache a
2163 # value for INSTALL within a source directory, because that will
d9898ee8 2164 # break other packages using the cache if that directory is
dd184caf 2165 # removed, or if the value is a relative name.
d9898ee8 2166 INSTALL=$ac_install_sh
2167 fi
2168fi
8d138742
CE
2169{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2170$as_echo "$INSTALL" >&6; }
d9898ee8 2171
2172# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2173# It thinks the first close brace ends the variable substitution.
2174test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2175
2176test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2177
2178test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2179
8d138742
CE
2180{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2181$as_echo_n "checking whether build environment is sane... " >&6; }
d9898ee8 2182# Just in case
2183sleep 1
2184echo timestamp > conftest.file
8d138742
CE
2185# Reject unsafe characters in $srcdir or the absolute working directory
2186# name. Accept space and tab only in the latter.
2187am_lf='
2188'
2189case `pwd` in
2190 *[\\\"\#\$\&\'\`$am_lf]*)
2191 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2192$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2193 { (exit 1); exit 1; }; };;
2194esac
2195case $srcdir in
2196 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2197 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2198$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2199 { (exit 1); exit 1; }; };;
2200esac
2201
d9898ee8 2202# Do `set' in a subshell so we don't clobber the current shell's
2203# arguments. Must try -L first in case configure is actually a
2204# symlink; some systems play weird games with the mod time of symlinks
2205# (eg FreeBSD returns the mod time of the symlink's containing
2206# directory).
2207if (
8d138742 2208 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
d9898ee8 2209 if test "$*" = "X"; then
2210 # -L didn't work.
8d138742 2211 set X `ls -t "$srcdir/configure" conftest.file`
d9898ee8 2212 fi
2213 rm -f conftest.file
2214 if test "$*" != "X $srcdir/configure conftest.file" \
2215 && test "$*" != "X conftest.file $srcdir/configure"; then
2216
2217 # If neither matched, then we have a broken ls. This can happen
2218 # if, for instance, CONFIG_SHELL is bash and it inherits a
2219 # broken ls alias from the environment. This has actually
2220 # happened. Such a system could not be considered "sane".
8d138742 2221 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2222alias in your environment" >&5
8d138742 2223$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
d9898ee8 2224alias in your environment" >&2;}
2225 { (exit 1); exit 1; }; }
2226 fi
2227
2228 test "$2" = conftest.file
2229 )
2230then
2231 # Ok.
2232 :
2233else
8d138742 2234 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
d9898ee8 2235Check your system clock" >&5
8d138742 2236$as_echo "$as_me: error: newly created file is older than distributed files!
d9898ee8 2237Check your system clock" >&2;}
2238 { (exit 1); exit 1; }; }
2239fi
8d138742
CE
2240{ $as_echo "$as_me:$LINENO: result: yes" >&5
2241$as_echo "yes" >&6; }
d9898ee8 2242test "$program_prefix" != NONE &&
dd184caf 2243 program_transform_name="s&^&$program_prefix&;$program_transform_name"
d9898ee8 2244# Use a double $ so make ignores it.
2245test "$program_suffix" != NONE &&
dd184caf 2246 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
8d138742 2247# Double any \ or $.
d9898ee8 2248# By default was `s,x,x', remove it if useless.
8d138742
CE
2249ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2250program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
d9898ee8 2251
2252# expand $ac_aux_dir to an absolute path
2253am_aux_dir=`cd $ac_aux_dir && pwd`
2254
8d138742
CE
2255if test x"${MISSING+set}" != xset; then
2256 case $am_aux_dir in
2257 *\ * | *\ *)
2258 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2259 *)
2260 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2261 esac
2262fi
d9898ee8 2263# Use eval to expand $SHELL
2264if eval "$MISSING --run true"; then
2265 am_missing_run="$MISSING --run "
2266else
2267 am_missing_run=
8d138742
CE
2268 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2269$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2270fi
2271
2272if test x"${install_sh}" != xset; then
2273 case $am_aux_dir in
2274 *\ * | *\ *)
2275 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2276 *)
2277 install_sh="\${SHELL} $am_aux_dir/install-sh"
2278 esac
2279fi
2280
2281# Installed binaries are usually stripped using `strip' when the user
2282# run `make install-strip'. However `strip' might not be the right
2283# tool to use in cross-compilation environments, therefore Automake
2284# will honor the `STRIP' environment variable to overrule this program.
2285if test "$cross_compiling" != no; then
2286 if test -n "$ac_tool_prefix"; then
2287 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2288set dummy ${ac_tool_prefix}strip; ac_word=$2
2289{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2290$as_echo_n "checking for $ac_word... " >&6; }
2291if test "${ac_cv_prog_STRIP+set}" = set; then
2292 $as_echo_n "(cached) " >&6
2293else
2294 if test -n "$STRIP"; then
2295 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2296else
2297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298for as_dir in $PATH
2299do
2300 IFS=$as_save_IFS
2301 test -z "$as_dir" && as_dir=.
2302 for ac_exec_ext in '' $ac_executable_extensions; do
2303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2304 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 break 2
2307 fi
2308done
2309done
2310IFS=$as_save_IFS
2311
2312fi
2313fi
2314STRIP=$ac_cv_prog_STRIP
2315if test -n "$STRIP"; then
2316 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2317$as_echo "$STRIP" >&6; }
2318else
2319 { $as_echo "$as_me:$LINENO: result: no" >&5
2320$as_echo "no" >&6; }
2321fi
2322
2323
2324fi
2325if test -z "$ac_cv_prog_STRIP"; then
2326 ac_ct_STRIP=$STRIP
2327 # Extract the first word of "strip", so it can be a program name with args.
2328set dummy strip; ac_word=$2
2329{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2330$as_echo_n "checking for $ac_word... " >&6; }
2331if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2332 $as_echo_n "(cached) " >&6
2333else
2334 if test -n "$ac_ct_STRIP"; then
2335 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2336else
2337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338for as_dir in $PATH
2339do
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 ac_cv_prog_ac_ct_STRIP="strip"
2345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 break 2
2347 fi
2348done
2349done
2350IFS=$as_save_IFS
2351
2352fi
2353fi
2354ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2355if test -n "$ac_ct_STRIP"; then
2356 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2357$as_echo "$ac_ct_STRIP" >&6; }
2358else
2359 { $as_echo "$as_me:$LINENO: result: no" >&5
2360$as_echo "no" >&6; }
2361fi
2362
2363 if test "x$ac_ct_STRIP" = x; then
2364 STRIP=":"
2365 else
2366 case $cross_compiling:$ac_tool_warned in
2367yes:)
2368{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2370ac_tool_warned=yes ;;
2371esac
2372 STRIP=$ac_ct_STRIP
2373 fi
2374else
2375 STRIP="$ac_cv_prog_STRIP"
d9898ee8 2376fi
2377
8d138742
CE
2378fi
2379INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2380
2381{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2382$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
dd184caf 2383if test -z "$MKDIR_P"; then
2384 if test "${ac_cv_path_mkdir+set}" = set; then
8d138742 2385 $as_echo_n "(cached) " >&6
dd184caf 2386else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2389do
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 for ac_prog in mkdir gmkdir; do
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2395 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2396 'mkdir (GNU coreutils) '* | \
2397 'mkdir (coreutils) '* | \
2398 'mkdir (fileutils) '4.1*)
2399 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2400 break 3;;
2401 esac
2402 done
2403 done
2404done
2405IFS=$as_save_IFS
2406
2407fi
2408
2409 if test "${ac_cv_path_mkdir+set}" = set; then
2410 MKDIR_P="$ac_cv_path_mkdir -p"
d9898ee8 2411 else
dd184caf 2412 # As a last resort, use the slow shell script. Don't cache a
2413 # value for MKDIR_P within a source directory, because that will
2414 # break other packages using the cache if that directory is
2415 # removed, or if the value is a relative name.
2416 test -d ./--version && rmdir ./--version
2417 MKDIR_P="$ac_install_sh -d"
d9898ee8 2418 fi
2419fi
8d138742
CE
2420{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2421$as_echo "$MKDIR_P" >&6; }
dd184caf 2422
2423mkdir_p="$MKDIR_P"
2424case $mkdir_p in
2425 [\\/$]* | ?:[\\/]*) ;;
2426 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2427esac
d9898ee8 2428
2429for ac_prog in gawk mawk nawk awk
2430do
2431 # Extract the first word of "$ac_prog", so it can be a program name with args.
2432set dummy $ac_prog; ac_word=$2
8d138742
CE
2433{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2434$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2435if test "${ac_cv_prog_AWK+set}" = set; then
8d138742 2436 $as_echo_n "(cached) " >&6
d9898ee8 2437else
2438 if test -n "$AWK"; then
2439 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2440else
2441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442for as_dir in $PATH
2443do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2448 ac_cv_prog_AWK="$ac_prog"
8d138742 2449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2450 break 2
2451 fi
2452done
2453done
dd184caf 2454IFS=$as_save_IFS
d9898ee8 2455
2456fi
2457fi
2458AWK=$ac_cv_prog_AWK
2459if test -n "$AWK"; then
8d138742
CE
2460 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2461$as_echo "$AWK" >&6; }
d9898ee8 2462else
8d138742
CE
2463 { $as_echo "$as_me:$LINENO: result: no" >&5
2464$as_echo "no" >&6; }
d9898ee8 2465fi
2466
dd184caf 2467
d9898ee8 2468 test -n "$AWK" && break
2469done
2470
8d138742
CE
2471{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2472$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2473set x ${MAKE-make}
2474ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
dd184caf 2475if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 2476 $as_echo_n "(cached) " >&6
d9898ee8 2477else
2478 cat >conftest.make <<\_ACEOF
dd184caf 2479SHELL = /bin/sh
d9898ee8 2480all:
dd184caf 2481 @echo '@@@%%%=$(MAKE)=@@@%%%'
d9898ee8 2482_ACEOF
2483# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
dd184caf 2484case `${MAKE-make} -f conftest.make 2>/dev/null` in
2485 *@@@%%%=?*=@@@%%%*)
2486 eval ac_cv_prog_make_${ac_make}_set=yes;;
2487 *)
2488 eval ac_cv_prog_make_${ac_make}_set=no;;
2489esac
d9898ee8 2490rm -f conftest.make
2491fi
dd184caf 2492if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8d138742
CE
2493 { $as_echo "$as_me:$LINENO: result: yes" >&5
2494$as_echo "yes" >&6; }
d9898ee8 2495 SET_MAKE=
2496else
8d138742
CE
2497 { $as_echo "$as_me:$LINENO: result: no" >&5
2498$as_echo "no" >&6; }
d9898ee8 2499 SET_MAKE="MAKE=${MAKE-make}"
2500fi
2501
2502rm -rf .tst 2>/dev/null
2503mkdir .tst 2>/dev/null
2504if test -d .tst; then
2505 am__leading_dot=.
2506else
2507 am__leading_dot=_
2508fi
2509rmdir .tst 2>/dev/null
2510
dd184caf 2511if test "`cd $srcdir && pwd`" != "`pwd`"; then
2512 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2513 # is not polluted with repeated "-I."
2514 am__isrc=' -I$(srcdir)'
2515 # test to see if srcdir already configured
2516 if test -f $srcdir/config.status; then
8d138742
CE
2517 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2518$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
d9898ee8 2519 { (exit 1); exit 1; }; }
dd184caf 2520 fi
d9898ee8 2521fi
2522
2523# test whether we have cygpath
2524if test -z "$CYGPATH_W"; then
2525 if (cygpath --version) >/dev/null 2>/dev/null; then
2526 CYGPATH_W='cygpath -w'
2527 else
2528 CYGPATH_W=echo
2529 fi
2530fi
2531
2532
2533# Define the identity of the package.
8d138742
CE
2534 PACKAGE='libltdl'
2535 VERSION='2.2.6'
2536
d9898ee8 2537
8d138742
CE
2538cat >>confdefs.h <<_ACEOF
2539#define PACKAGE "$PACKAGE"
2540_ACEOF
2541
2542
2543cat >>confdefs.h <<_ACEOF
2544#define VERSION "$VERSION"
2545_ACEOF
d9898ee8 2546
2547# Some tools Automake needs.
2548
2549ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2550
2551
2552AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2553
2554
2555AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2556
2557
2558AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2559
2560
2561MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2562
8d138742
CE
2563# We need awk for the "check" target. The system "awk" is bad on
2564# some platforms.
2565# Always define AMTAR for backward compatibility.
d9898ee8 2566
8d138742 2567AMTAR=${AMTAR-"${am_missing_run}tar"}
d9898ee8 2568
8d138742 2569am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
d9898ee8 2570
dd184caf 2571
d9898ee8 2572
d9898ee8 2573
8d138742
CE
2574
2575
2576
2577## ------------------------------- ##
2578## Libtool specific configuration. ##
2579## ------------------------------- ##
2580pkgdatadir='${datadir}'"/${PACKAGE}"
2581
2582
2583## ----------------------- ##
2584## Libtool initialisation. ##
2585## ----------------------- ##
2586case `pwd` in
2587 *\ * | *\ *)
2588 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2589$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
dd184caf 2590esac
d9898ee8 2591
d9898ee8 2592
d9898ee8 2593
8d138742
CE
2594macro_version='2.2.6'
2595macro_revision='1.3012'
d9898ee8 2596
d9898ee8 2597
2598
2599
2600
2601
d9898ee8 2602
2603
2604
8d138742
CE
2605
2606
2607
2608
2609ltmain="$ac_aux_dir/ltmain.sh"
2610
2611# Make sure we can run config.sub.
2612$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2613 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2614$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2615 { (exit 1); exit 1; }; }
2616
2617{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2618$as_echo_n "checking build system type... " >&6; }
2619if test "${ac_cv_build+set}" = set; then
2620 $as_echo_n "(cached) " >&6
2621else
2622 ac_build_alias=$build_alias
2623test "x$ac_build_alias" = x &&
2624 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2625test "x$ac_build_alias" = x &&
2626 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2627$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2628 { (exit 1); exit 1; }; }
2629ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2630 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2631$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2632 { (exit 1); exit 1; }; }
2633
2634fi
2635{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2636$as_echo "$ac_cv_build" >&6; }
2637case $ac_cv_build in
2638*-*-*) ;;
2639*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2640$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2641 { (exit 1); exit 1; }; };;
2642esac
2643build=$ac_cv_build
2644ac_save_IFS=$IFS; IFS='-'
2645set x $ac_cv_build
2646shift
2647build_cpu=$1
2648build_vendor=$2
2649shift; shift
2650# Remember, the first character of IFS is used to create $*,
2651# except with old shells:
2652build_os=$*
2653IFS=$ac_save_IFS
2654case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2655
2656
2657{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2658$as_echo_n "checking host system type... " >&6; }
2659if test "${ac_cv_host+set}" = set; then
2660 $as_echo_n "(cached) " >&6
2661else
2662 if test "x$host_alias" = x; then
2663 ac_cv_host=$ac_cv_build
2664else
2665 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2666 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2667$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2668 { (exit 1); exit 1; }; }
2669fi
2670
2671fi
2672{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2673$as_echo "$ac_cv_host" >&6; }
2674case $ac_cv_host in
2675*-*-*) ;;
2676*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2677$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2678 { (exit 1); exit 1; }; };;
2679esac
2680host=$ac_cv_host
2681ac_save_IFS=$IFS; IFS='-'
2682set x $ac_cv_host
2683shift
2684host_cpu=$1
2685host_vendor=$2
2686shift; shift
2687# Remember, the first character of IFS is used to create $*,
2688# except with old shells:
2689host_os=$*
2690IFS=$ac_save_IFS
2691case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2692
2693
2694DEPDIR="${am__leading_dot}deps"
2695
2696ac_config_commands="$ac_config_commands depfiles"
2697
2698
2699am_make=${MAKE-make}
2700cat > confinc << 'END'
2701am__doit:
2702 @echo this is the am__doit target
2703.PHONY: am__doit
2704END
2705# If we don't find an include directive, just comment out the code.
2706{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2707$as_echo_n "checking for style of include used by $am_make... " >&6; }
2708am__include="#"
2709am__quote=
2710_am_result=none
2711# First try GNU make style include.
2712echo "include confinc" > confmf
2713# Ignore all kinds of additional output from `make'.
2714case `$am_make -s -f confmf 2> /dev/null` in #(
2715*the\ am__doit\ target*)
2716 am__include=include
2717 am__quote=
2718 _am_result=GNU
2719 ;;
2720esac
2721# Now try BSD make style include.
2722if test "$am__include" = "#"; then
2723 echo '.include "confinc"' > confmf
2724 case `$am_make -s -f confmf 2> /dev/null` in #(
2725 *the\ am__doit\ target*)
2726 am__include=.include
2727 am__quote="\""
2728 _am_result=BSD
2729 ;;
2730 esac
2731fi
2732
2733
2734{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2735$as_echo "$_am_result" >&6; }
2736rm -f confinc confmf
2737
2738# Check whether --enable-dependency-tracking was given.
2739if test "${enable_dependency_tracking+set}" = set; then
2740 enableval=$enable_dependency_tracking;
2741fi
2742
2743if test "x$enable_dependency_tracking" != xno; then
2744 am_depcomp="$ac_aux_dir/depcomp"
2745 AMDEPBACKSLASH='\'
2746fi
2747 if test "x$enable_dependency_tracking" != xno; then
2748 AMDEP_TRUE=
2749 AMDEP_FALSE='#'
2750else
2751 AMDEP_TRUE='#'
2752 AMDEP_FALSE=
2753fi
2754
2755
2756ac_ext=c
2757ac_cpp='$CPP $CPPFLAGS'
2758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
d9898ee8 2759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761if test -n "$ac_tool_prefix"; then
2762 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2763set dummy ${ac_tool_prefix}gcc; ac_word=$2
8d138742
CE
2764{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2765$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2766if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2767 $as_echo_n "(cached) " >&6
d9898ee8 2768else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771else
2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2779 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8d138742 2780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2781 break 2
2782 fi
2783done
2784done
dd184caf 2785IFS=$as_save_IFS
d9898ee8 2786
2787fi
2788fi
2789CC=$ac_cv_prog_CC
2790if test -n "$CC"; then
8d138742
CE
2791 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2792$as_echo "$CC" >&6; }
d9898ee8 2793else
8d138742
CE
2794 { $as_echo "$as_me:$LINENO: result: no" >&5
2795$as_echo "no" >&6; }
d9898ee8 2796fi
2797
dd184caf 2798
d9898ee8 2799fi
2800if test -z "$ac_cv_prog_CC"; then
2801 ac_ct_CC=$CC
2802 # Extract the first word of "gcc", so it can be a program name with args.
2803set dummy gcc; ac_word=$2
8d138742
CE
2804{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2805$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2806if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 2807 $as_echo_n "(cached) " >&6
d9898ee8 2808else
2809 if test -n "$ac_ct_CC"; then
2810 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2811else
2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813for as_dir in $PATH
2814do
2815 IFS=$as_save_IFS
2816 test -z "$as_dir" && as_dir=.
2817 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2819 ac_cv_prog_ac_ct_CC="gcc"
8d138742 2820 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2821 break 2
2822 fi
2823done
2824done
dd184caf 2825IFS=$as_save_IFS
d9898ee8 2826
2827fi
2828fi
2829ac_ct_CC=$ac_cv_prog_ac_ct_CC
2830if test -n "$ac_ct_CC"; then
8d138742
CE
2831 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2832$as_echo "$ac_ct_CC" >&6; }
d9898ee8 2833else
8d138742
CE
2834 { $as_echo "$as_me:$LINENO: result: no" >&5
2835$as_echo "no" >&6; }
d9898ee8 2836fi
2837
dd184caf 2838 if test "x$ac_ct_CC" = x; then
2839 CC=""
2840 else
2841 case $cross_compiling:$ac_tool_warned in
2842yes:)
8d138742
CE
2843{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2844$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 2845ac_tool_warned=yes ;;
2846esac
2847 CC=$ac_ct_CC
2848 fi
d9898ee8 2849else
2850 CC="$ac_cv_prog_CC"
2851fi
2852
2853if test -z "$CC"; then
dd184caf 2854 if test -n "$ac_tool_prefix"; then
2855 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
d9898ee8 2856set dummy ${ac_tool_prefix}cc; ac_word=$2
8d138742
CE
2857{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2858$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2859if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2860 $as_echo_n "(cached) " >&6
d9898ee8 2861else
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2864else
2865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866for as_dir in $PATH
2867do
2868 IFS=$as_save_IFS
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2872 ac_cv_prog_CC="${ac_tool_prefix}cc"
8d138742 2873 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2874 break 2
2875 fi
2876done
2877done
dd184caf 2878IFS=$as_save_IFS
d9898ee8 2879
2880fi
2881fi
2882CC=$ac_cv_prog_CC
2883if test -n "$CC"; then
8d138742
CE
2884 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2885$as_echo "$CC" >&6; }
d9898ee8 2886else
8d138742
CE
2887 { $as_echo "$as_me:$LINENO: result: no" >&5
2888$as_echo "no" >&6; }
d9898ee8 2889fi
2890
d9898ee8 2891
dd184caf 2892 fi
d9898ee8 2893fi
2894if test -z "$CC"; then
2895 # Extract the first word of "cc", so it can be a program name with args.
2896set dummy cc; ac_word=$2
8d138742
CE
2897{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2898$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2899if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2900 $as_echo_n "(cached) " >&6
d9898ee8 2901else
2902 if test -n "$CC"; then
2903 ac_cv_prog_CC="$CC" # Let the user override the test.
2904else
2905 ac_prog_rejected=no
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2913 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2914 ac_prog_rejected=yes
2915 continue
2916 fi
2917 ac_cv_prog_CC="cc"
8d138742 2918 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2919 break 2
2920 fi
2921done
2922done
dd184caf 2923IFS=$as_save_IFS
d9898ee8 2924
2925if test $ac_prog_rejected = yes; then
2926 # We found a bogon in the path, so make sure we never use it.
2927 set dummy $ac_cv_prog_CC
2928 shift
2929 if test $# != 0; then
2930 # We chose a different compiler from the bogus one.
2931 # However, it has the same basename, so the bogon will be chosen
2932 # first if we set CC to just the basename; use the full file name.
2933 shift
2934 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2935 fi
2936fi
2937fi
2938fi
2939CC=$ac_cv_prog_CC
2940if test -n "$CC"; then
8d138742
CE
2941 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2942$as_echo "$CC" >&6; }
d9898ee8 2943else
8d138742
CE
2944 { $as_echo "$as_me:$LINENO: result: no" >&5
2945$as_echo "no" >&6; }
d9898ee8 2946fi
2947
dd184caf 2948
d9898ee8 2949fi
2950if test -z "$CC"; then
2951 if test -n "$ac_tool_prefix"; then
dd184caf 2952 for ac_prog in cl.exe
d9898ee8 2953 do
2954 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2955set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8d138742
CE
2956{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2957$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 2958if test "${ac_cv_prog_CC+set}" = set; then
8d138742 2959 $as_echo_n "(cached) " >&6
d9898ee8 2960else
2961 if test -n "$CC"; then
2962 ac_cv_prog_CC="$CC" # Let the user override the test.
2963else
2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965for as_dir in $PATH
2966do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 2970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 2971 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8d138742 2972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 2973 break 2
2974 fi
2975done
2976done
dd184caf 2977IFS=$as_save_IFS
d9898ee8 2978
2979fi
2980fi
2981CC=$ac_cv_prog_CC
2982if test -n "$CC"; then
8d138742
CE
2983 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2984$as_echo "$CC" >&6; }
d9898ee8 2985else
8d138742
CE
2986 { $as_echo "$as_me:$LINENO: result: no" >&5
2987$as_echo "no" >&6; }
d9898ee8 2988fi
2989
dd184caf 2990
d9898ee8 2991 test -n "$CC" && break
2992 done
2993fi
2994if test -z "$CC"; then
2995 ac_ct_CC=$CC
dd184caf 2996 for ac_prog in cl.exe
d9898ee8 2997do
2998 # Extract the first word of "$ac_prog", so it can be a program name with args.
2999set dummy $ac_prog; ac_word=$2
8d138742
CE
3000{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3001$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 3002if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
8d138742 3003 $as_echo_n "(cached) " >&6
d9898ee8 3004else
3005 if test -n "$ac_ct_CC"; then
3006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3007else
3008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009for as_dir in $PATH
3010do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 3015 ac_cv_prog_ac_ct_CC="$ac_prog"
8d138742 3016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 3017 break 2
3018 fi
3019done
3020done
dd184caf 3021IFS=$as_save_IFS
d9898ee8 3022
3023fi
3024fi
3025ac_ct_CC=$ac_cv_prog_ac_ct_CC
3026if test -n "$ac_ct_CC"; then
8d138742
CE
3027 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3028$as_echo "$ac_ct_CC" >&6; }
d9898ee8 3029else
8d138742
CE
3030 { $as_echo "$as_me:$LINENO: result: no" >&5
3031$as_echo "no" >&6; }
d9898ee8 3032fi
3033
dd184caf 3034
d9898ee8 3035 test -n "$ac_ct_CC" && break
3036done
3037
dd184caf 3038 if test "x$ac_ct_CC" = x; then
3039 CC=""
3040 else
3041 case $cross_compiling:$ac_tool_warned in
3042yes:)
8d138742
CE
3043{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 3045ac_tool_warned=yes ;;
3046esac
3047 CC=$ac_ct_CC
3048 fi
d9898ee8 3049fi
3050
3051fi
3052
3053
8d138742
CE
3054test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3055$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3056{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
d9898ee8 3057See \`config.log' for more details." >&5
8d138742 3058$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
d9898ee8 3059See \`config.log' for more details." >&2;}
8d138742 3060 { (exit 1); exit 1; }; }; }
d9898ee8 3061
3062# Provide some information about the compiler.
8d138742
CE
3063$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3064set X $ac_compile
3065ac_compiler=$2
dd184caf 3066{ (ac_try="$ac_compiler --version >&5"
3067case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
8d138742
CE
3071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3072$as_echo "$ac_try_echo") >&5
dd184caf 3073 (eval "$ac_compiler --version >&5") 2>&5
d9898ee8 3074 ac_status=$?
8d138742 3075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3076 (exit $ac_status); }
dd184caf 3077{ (ac_try="$ac_compiler -v >&5"
3078case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
8d138742
CE
3082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3083$as_echo "$ac_try_echo") >&5
dd184caf 3084 (eval "$ac_compiler -v >&5") 2>&5
d9898ee8 3085 ac_status=$?
8d138742 3086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3087 (exit $ac_status); }
dd184caf 3088{ (ac_try="$ac_compiler -V >&5"
3089case "(($ac_try" in
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3092esac
8d138742
CE
3093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3094$as_echo "$ac_try_echo") >&5
dd184caf 3095 (eval "$ac_compiler -V >&5") 2>&5
d9898ee8 3096 ac_status=$?
8d138742 3097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3098 (exit $ac_status); }
3099
3100cat >conftest.$ac_ext <<_ACEOF
3101/* confdefs.h. */
3102_ACEOF
3103cat confdefs.h >>conftest.$ac_ext
3104cat >>conftest.$ac_ext <<_ACEOF
3105/* end confdefs.h. */
3106
3107int
3108main ()
3109{
3110
3111 ;
3112 return 0;
3113}
3114_ACEOF
3115ac_clean_files_save=$ac_clean_files
8d138742 3116ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d9898ee8 3117# Try to create an executable without -o first, disregard a.out.
3118# It will help us diagnose broken compilers, and finding out an intuition
3119# of exeext.
8d138742
CE
3120{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3121$as_echo_n "checking for C compiler default output file name... " >&6; }
3122ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3123
3124# The possible output files:
3125ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3126
dd184caf 3127ac_rmfiles=
3128for ac_file in $ac_files
3129do
3130 case $ac_file in
8d138742 3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
dd184caf 3132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3133 esac
3134done
3135rm -f $ac_rmfiles
3136
3137if { (ac_try="$ac_link_default"
3138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
8d138742
CE
3142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3143$as_echo "$ac_try_echo") >&5
dd184caf 3144 (eval "$ac_link_default") 2>&5
d9898ee8 3145 ac_status=$?
8d138742 3146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3147 (exit $ac_status); }; then
dd184caf 3148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3149# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3150# in a Makefile. We should not override ac_cv_exeext if it was cached,
3151# so that the user can short-circuit this test for compilers unknown to
3152# Autoconf.
3153for ac_file in $ac_files ''
d9898ee8 3154do
3155 test -f "$ac_file" || continue
3156 case $ac_file in
8d138742 3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
d9898ee8 3158 ;;
3159 [ab].out )
3160 # We found the default executable, but exeext='' is most
3161 # certainly right.
3162 break;;
3163 *.* )
dd184caf 3164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3165 then :; else
3166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167 fi
3168 # We set ac_cv_exeext here because the later test for it is not
3169 # safe: cross compilers may not add the suffix if given an `-o'
3170 # argument, so we may need to know it at that point already.
3171 # Even if this section looks crufty: it has the advantage of
3172 # actually working.
d9898ee8 3173 break;;
3174 * )
3175 break;;
3176 esac
3177done
dd184caf 3178test "$ac_cv_exeext" = no && ac_cv_exeext=
3179
d9898ee8 3180else
dd184caf 3181 ac_file=''
3182fi
3183
8d138742
CE
3184{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3185$as_echo "$ac_file" >&6; }
dd184caf 3186if test -z "$ac_file"; then
8d138742 3187 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3188sed 's/^/| /' conftest.$ac_ext >&5
3189
8d138742
CE
3190{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3191$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
d9898ee8 3193See \`config.log' for more details." >&5
8d138742 3194$as_echo "$as_me: error: C compiler cannot create executables
d9898ee8 3195See \`config.log' for more details." >&2;}
8d138742 3196 { (exit 77); exit 77; }; }; }
d9898ee8 3197fi
3198
3199ac_exeext=$ac_cv_exeext
d9898ee8 3200
dd184caf 3201# Check that the compiler produces executables we can run. If not, either
d9898ee8 3202# the compiler is broken, or we cross compile.
8d138742
CE
3203{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3204$as_echo_n "checking whether the C compiler works... " >&6; }
d9898ee8 3205# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3206# If not cross compiling, check that we can run a simple program.
3207if test "$cross_compiling" != yes; then
3208 if { ac_try='./$ac_file'
dd184caf 3209 { (case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212esac
8d138742
CE
3213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3214$as_echo "$ac_try_echo") >&5
dd184caf 3215 (eval "$ac_try") 2>&5
d9898ee8 3216 ac_status=$?
8d138742 3217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3218 (exit $ac_status); }; }; then
3219 cross_compiling=no
3220 else
3221 if test "$cross_compiling" = maybe; then
3222 cross_compiling=yes
3223 else
8d138742
CE
3224 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
d9898ee8 3227If you meant to cross compile, use \`--host'.
3228See \`config.log' for more details." >&5
8d138742 3229$as_echo "$as_me: error: cannot run C compiled programs.
d9898ee8 3230If you meant to cross compile, use \`--host'.
3231See \`config.log' for more details." >&2;}
8d138742 3232 { (exit 1); exit 1; }; }; }
d9898ee8 3233 fi
3234 fi
3235fi
8d138742
CE
3236{ $as_echo "$as_me:$LINENO: result: yes" >&5
3237$as_echo "yes" >&6; }
d9898ee8 3238
8d138742 3239rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d9898ee8 3240ac_clean_files=$ac_clean_files_save
dd184caf 3241# Check that the compiler produces executables we can run. If not, either
d9898ee8 3242# the compiler is broken, or we cross compile.
8d138742
CE
3243{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3244$as_echo_n "checking whether we are cross compiling... " >&6; }
3245{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3246$as_echo "$cross_compiling" >&6; }
dd184caf 3247
8d138742
CE
3248{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3249$as_echo_n "checking for suffix of executables... " >&6; }
dd184caf 3250if { (ac_try="$ac_link"
3251case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
8d138742
CE
3255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3256$as_echo "$ac_try_echo") >&5
dd184caf 3257 (eval "$ac_link") 2>&5
d9898ee8 3258 ac_status=$?
8d138742 3259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3260 (exit $ac_status); }; then
3261 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3262# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3263# work properly (i.e., refer to `conftest.exe'), while it won't with
3264# `rm'.
3265for ac_file in conftest.exe conftest conftest.*; do
3266 test -f "$ac_file" || continue
3267 case $ac_file in
8d138742 3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
d9898ee8 3269 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
d9898ee8 3270 break;;
3271 * ) break;;
3272 esac
3273done
3274else
8d138742
CE
3275 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3278See \`config.log' for more details." >&5
8d138742 3279$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
d9898ee8 3280See \`config.log' for more details." >&2;}
8d138742 3281 { (exit 1); exit 1; }; }; }
d9898ee8 3282fi
3283
3284rm -f conftest$ac_cv_exeext
8d138742
CE
3285{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3286$as_echo "$ac_cv_exeext" >&6; }
d9898ee8 3287
3288rm -f conftest.$ac_ext
3289EXEEXT=$ac_cv_exeext
3290ac_exeext=$EXEEXT
8d138742
CE
3291{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3292$as_echo_n "checking for suffix of object files... " >&6; }
d9898ee8 3293if test "${ac_cv_objext+set}" = set; then
8d138742 3294 $as_echo_n "(cached) " >&6
d9898ee8 3295else
3296 cat >conftest.$ac_ext <<_ACEOF
3297/* confdefs.h. */
3298_ACEOF
3299cat confdefs.h >>conftest.$ac_ext
3300cat >>conftest.$ac_ext <<_ACEOF
3301/* end confdefs.h. */
3302
3303int
3304main ()
3305{
3306
3307 ;
3308 return 0;
3309}
3310_ACEOF
3311rm -f conftest.o conftest.obj
dd184caf 3312if { (ac_try="$ac_compile"
3313case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316esac
8d138742
CE
3317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3318$as_echo "$ac_try_echo") >&5
dd184caf 3319 (eval "$ac_compile") 2>&5
d9898ee8 3320 ac_status=$?
8d138742 3321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 3322 (exit $ac_status); }; then
dd184caf 3323 for ac_file in conftest.o conftest.obj conftest.*; do
3324 test -f "$ac_file" || continue;
d9898ee8 3325 case $ac_file in
8d138742 3326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
d9898ee8 3327 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3328 break;;
3329 esac
3330done
3331else
8d138742 3332 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3333sed 's/^/| /' conftest.$ac_ext >&5
3334
8d138742
CE
3335{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3337{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
d9898ee8 3338See \`config.log' for more details." >&5
8d138742 3339$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
d9898ee8 3340See \`config.log' for more details." >&2;}
8d138742 3341 { (exit 1); exit 1; }; }; }
d9898ee8 3342fi
3343
3344rm -f conftest.$ac_cv_objext conftest.$ac_ext
3345fi
8d138742
CE
3346{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3347$as_echo "$ac_cv_objext" >&6; }
d9898ee8 3348OBJEXT=$ac_cv_objext
3349ac_objext=$OBJEXT
8d138742
CE
3350{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3351$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d9898ee8 3352if test "${ac_cv_c_compiler_gnu+set}" = set; then
8d138742 3353 $as_echo_n "(cached) " >&6
d9898ee8 3354else
3355 cat >conftest.$ac_ext <<_ACEOF
3356/* confdefs.h. */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h. */
3361
3362int
3363main ()
3364{
3365#ifndef __GNUC__
3366 choke me
3367#endif
3368
3369 ;
3370 return 0;
3371}
3372_ACEOF
3373rm -f conftest.$ac_objext
dd184caf 3374if { (ac_try="$ac_compile"
3375case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378esac
8d138742
CE
3379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3380$as_echo "$ac_try_echo") >&5
dd184caf 3381 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
8d138742 3386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3387 (exit $ac_status); } && {
3388 test -z "$ac_c_werror_flag" ||
3389 test ! -s conftest.err
3390 } && test -s conftest.$ac_objext; then
d9898ee8 3391 ac_compiler_gnu=yes
3392else
8d138742 3393 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3394sed 's/^/| /' conftest.$ac_ext >&5
3395
dd184caf 3396 ac_compiler_gnu=no
d9898ee8 3397fi
dd184caf 3398
3399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3400ac_cv_c_compiler_gnu=$ac_compiler_gnu
3401
3402fi
8d138742
CE
3403{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3404$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3405if test $ac_compiler_gnu = yes; then
3406 GCC=yes
3407else
3408 GCC=
3409fi
d9898ee8 3410ac_test_CFLAGS=${CFLAGS+set}
3411ac_save_CFLAGS=$CFLAGS
8d138742
CE
3412{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3413$as_echo_n "checking whether $CC accepts -g... " >&6; }
d9898ee8 3414if test "${ac_cv_prog_cc_g+set}" = set; then
8d138742 3415 $as_echo_n "(cached) " >&6
d9898ee8 3416else
dd184caf 3417 ac_save_c_werror_flag=$ac_c_werror_flag
3418 ac_c_werror_flag=yes
3419 ac_cv_prog_cc_g=no
3420 CFLAGS="-g"
3421 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 3422/* confdefs.h. */
3423_ACEOF
3424cat confdefs.h >>conftest.$ac_ext
3425cat >>conftest.$ac_ext <<_ACEOF
3426/* end confdefs.h. */
3427
3428int
3429main ()
3430{
3431
3432 ;
3433 return 0;
3434}
3435_ACEOF
3436rm -f conftest.$ac_objext
dd184caf 3437if { (ac_try="$ac_compile"
3438case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3441esac
8d138742
CE
3442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3443$as_echo "$ac_try_echo") >&5
dd184caf 3444 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3445 ac_status=$?
3446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
8d138742 3449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3450 (exit $ac_status); } && {
3451 test -z "$ac_c_werror_flag" ||
3452 test ! -s conftest.err
3453 } && test -s conftest.$ac_objext; then
3454 ac_cv_prog_cc_g=yes
3455else
8d138742 3456 $as_echo "$as_me: failed program was:" >&5
dd184caf 3457sed 's/^/| /' conftest.$ac_ext >&5
3458
3459 CFLAGS=""
3460 cat >conftest.$ac_ext <<_ACEOF
3461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
3466
3467int
3468main ()
3469{
3470
3471 ;
3472 return 0;
3473}
3474_ACEOF
3475rm -f conftest.$ac_objext
3476if { (ac_try="$ac_compile"
3477case "(($ac_try" in
3478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479 *) ac_try_echo=$ac_try;;
3480esac
8d138742
CE
3481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3482$as_echo "$ac_try_echo") >&5
dd184caf 3483 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3484 ac_status=$?
dd184caf 3485 grep -v '^ *+' conftest.er1 >conftest.err
3486 rm -f conftest.er1
3487 cat conftest.err >&5
8d138742 3488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3489 (exit $ac_status); } && {
3490 test -z "$ac_c_werror_flag" ||
3491 test ! -s conftest.err
3492 } && test -s conftest.$ac_objext; then
3493 :
3494else
8d138742 3495 $as_echo "$as_me: failed program was:" >&5
dd184caf 3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 ac_c_werror_flag=$ac_save_c_werror_flag
3499 CFLAGS="-g"
3500 cat >conftest.$ac_ext <<_ACEOF
3501/* confdefs.h. */
3502_ACEOF
3503cat confdefs.h >>conftest.$ac_ext
3504cat >>conftest.$ac_ext <<_ACEOF
3505/* end confdefs.h. */
3506
3507int
3508main ()
3509{
3510
3511 ;
3512 return 0;
3513}
3514_ACEOF
3515rm -f conftest.$ac_objext
3516if { (ac_try="$ac_compile"
3517case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520esac
8d138742
CE
3521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522$as_echo "$ac_try_echo") >&5
dd184caf 3523 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3524 ac_status=$?
dd184caf 3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
8d138742 3528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3529 (exit $ac_status); } && {
3530 test -z "$ac_c_werror_flag" ||
3531 test ! -s conftest.err
3532 } && test -s conftest.$ac_objext; then
d9898ee8 3533 ac_cv_prog_cc_g=yes
3534else
8d138742 3535 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3536sed 's/^/| /' conftest.$ac_ext >&5
3537
dd184caf 3538
3539fi
3540
3541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3542fi
3543
3544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 3545fi
dd184caf 3546
3547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 ac_c_werror_flag=$ac_save_c_werror_flag
d9898ee8 3549fi
8d138742
CE
3550{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3551$as_echo "$ac_cv_prog_cc_g" >&6; }
d9898ee8 3552if test "$ac_test_CFLAGS" = set; then
3553 CFLAGS=$ac_save_CFLAGS
3554elif test $ac_cv_prog_cc_g = yes; then
3555 if test "$GCC" = yes; then
3556 CFLAGS="-g -O2"
3557 else
3558 CFLAGS="-g"
3559 fi
3560else
3561 if test "$GCC" = yes; then
3562 CFLAGS="-O2"
3563 else
3564 CFLAGS=
3565 fi
3566fi
8d138742
CE
3567{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3568$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
dd184caf 3569if test "${ac_cv_prog_cc_c89+set}" = set; then
8d138742 3570 $as_echo_n "(cached) " >&6
d9898ee8 3571else
dd184caf 3572 ac_cv_prog_cc_c89=no
d9898ee8 3573ac_save_CC=$CC
3574cat >conftest.$ac_ext <<_ACEOF
3575/* confdefs.h. */
3576_ACEOF
3577cat confdefs.h >>conftest.$ac_ext
3578cat >>conftest.$ac_ext <<_ACEOF
3579/* end confdefs.h. */
3580#include <stdarg.h>
3581#include <stdio.h>
3582#include <sys/types.h>
3583#include <sys/stat.h>
3584/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3585struct buf { int x; };
3586FILE * (*rcsopen) (struct buf *, struct stat *, int);
3587static char *e (p, i)
3588 char **p;
3589 int i;
3590{
3591 return p[i];
3592}
3593static char *f (char * (*g) (char **, int), char **p, ...)
3594{
3595 char *s;
3596 va_list v;
3597 va_start (v,p);
3598 s = g (p, va_arg (v,int));
3599 va_end (v);
3600 return s;
3601}
3602
3603/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3604 function prototypes and stuff, but not '\xHH' hex character constants.
3605 These don't provoke an error unfortunately, instead are silently treated
dd184caf 3606 as 'x'. The following induces an error, until -std is added to get
d9898ee8 3607 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3608 array size at least. It's necessary to write '\x00'==0 to get something
dd184caf 3609 that's true only with -std. */
d9898ee8 3610int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3611
dd184caf 3612/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3613 inside strings and character constants. */
3614#define FOO(x) 'x'
3615int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3616
d9898ee8 3617int test (int i, double x);
3618struct s1 {int (*f) (int a);};
3619struct s2 {int (*f) (double a);};
3620int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3621int argc;
3622char **argv;
3623int
3624main ()
3625{
3626return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3627 ;
3628 return 0;
3629}
3630_ACEOF
dd184caf 3631for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3632 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
d9898ee8 3633do
3634 CC="$ac_save_CC $ac_arg"
3635 rm -f conftest.$ac_objext
dd184caf 3636if { (ac_try="$ac_compile"
3637case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640esac
8d138742
CE
3641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642$as_echo "$ac_try_echo") >&5
dd184caf 3643 (eval "$ac_compile") 2>conftest.er1
d9898ee8 3644 ac_status=$?
3645 grep -v '^ *+' conftest.er1 >conftest.err
3646 rm -f conftest.er1
3647 cat conftest.err >&5
8d138742 3648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 3649 (exit $ac_status); } && {
3650 test -z "$ac_c_werror_flag" ||
3651 test ! -s conftest.err
3652 } && test -s conftest.$ac_objext; then
3653 ac_cv_prog_cc_c89=$ac_arg
d9898ee8 3654else
8d138742 3655 $as_echo "$as_me: failed program was:" >&5
d9898ee8 3656sed 's/^/| /' conftest.$ac_ext >&5
3657
dd184caf 3658
d9898ee8 3659fi
dd184caf 3660
3661rm -f core conftest.err conftest.$ac_objext
3662 test "x$ac_cv_prog_cc_c89" != "xno" && break
d9898ee8 3663done
dd184caf 3664rm -f conftest.$ac_ext
d9898ee8 3665CC=$ac_save_CC
3666
3667fi
dd184caf 3668# AC_CACHE_VAL
3669case "x$ac_cv_prog_cc_c89" in
3670 x)
8d138742
CE
3671 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3672$as_echo "none needed" >&6; } ;;
dd184caf 3673 xno)
8d138742
CE
3674 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3675$as_echo "unsupported" >&6; } ;;
d9898ee8 3676 *)
dd184caf 3677 CC="$CC $ac_cv_prog_cc_c89"
8d138742
CE
3678 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3679$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d9898ee8 3680esac
3681
d9898ee8 3682
d9898ee8 3683ac_ext=c
3684ac_cpp='$CPP $CPPFLAGS'
3685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 3688
d9898ee8 3689depcc="$CC" am_compiler_list=
3690
8d138742
CE
3691{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3692$as_echo_n "checking dependency style of $depcc... " >&6; }
d9898ee8 3693if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
8d138742 3694 $as_echo_n "(cached) " >&6
d9898ee8 3695else
3696 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3697 # We make a subdir and do the tests there. Otherwise we can end up
3698 # making bogus files that we don't know about and never remove. For
3699 # instance it was reported that on HP-UX the gcc test will end up
3700 # making a dummy file named `D' -- because `-MD' means `put the output
3701 # in D'.
3702 mkdir conftest.dir
3703 # Copy depcomp to subdir because otherwise we won't find it if we're
3704 # using a relative directory.
3705 cp "$am_depcomp" conftest.dir
3706 cd conftest.dir
3707 # We will build objects and dependencies in a subdirectory because
3708 # it helps to detect inapplicable dependency modes. For instance
3709 # both Tru64's cc and ICC support -MD to output dependencies as a
3710 # side effect of compilation, but ICC will put the dependencies in
3711 # the current directory while Tru64 will put them in the object
3712 # directory.
3713 mkdir sub
3714
3715 am_cv_CC_dependencies_compiler_type=none
3716 if test "$am_compiler_list" = ""; then
3717 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3718 fi
8d138742
CE
3719 am__universal=false
3720 case " $depcc " in #(
3721 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3722 esac
3723
d9898ee8 3724 for depmode in $am_compiler_list; do
3725 # Setup a source with many dependencies, because some compilers
3726 # like to wrap large dependency lists on column 80 (with \), and
3727 # we should not choose a depcomp mode which is confused by this.
3728 #
3729 # We need to recreate these files for each test, as the compiler may
3730 # overwrite some of them when testing with obscure command lines.
3731 # This happens at least with the AIX C compiler.
3732 : > sub/conftest.c
3733 for i in 1 2 3 4 5 6; do
3734 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3735 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3736 # Solaris 8's {/usr,}/bin/sh.
3737 touch sub/conftst$i.h
3738 done
3739 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3740
8d138742
CE
3741 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3742 # mode. It turns out that the SunPro C++ compiler does not properly
3743 # handle `-M -o', and we need to detect this. Also, some Intel
3744 # versions had trouble with output in subdirs
3745 am__obj=sub/conftest.${OBJEXT-o}
3746 am__minus_obj="-o $am__obj"
d9898ee8 3747 case $depmode in
8d138742
CE
3748 gcc)
3749 # This depmode causes a compiler race in universal mode.
3750 test "$am__universal" = false || continue
3751 ;;
d9898ee8 3752 nosideeffect)
3753 # after this tag, mechanisms are not by side-effect, so they'll
3754 # only be used when explicitly requested
3755 if test "x$enable_dependency_tracking" = xyes; then
3756 continue
3757 else
3758 break
3759 fi
3760 ;;
8d138742
CE
3761 msvisualcpp | msvcmsys)
3762 # This compiler won't grok `-c -o', but also, the minuso test has
3763 # not run yet. These depmodes are late enough in the game, and
3764 # so weak that their functioning should not be impacted.
3765 am__obj=conftest.${OBJEXT-o}
3766 am__minus_obj=
3767 ;;
d9898ee8 3768 none) break ;;
3769 esac
d9898ee8 3770 if depmode=$depmode \
8d138742 3771 source=sub/conftest.c object=$am__obj \
d9898ee8 3772 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8d138742 3773 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
d9898ee8 3774 >/dev/null 2>conftest.err &&
dd184caf 3775 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3776 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8d138742 3777 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
d9898ee8 3778 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3779 # icc doesn't choke on unknown options, it will just issue warnings
3780 # or remarks (even with -Werror). So we grep stderr for any message
3781 # that says an option was ignored or not supported.
3782 # When given -MP, icc 7.0 and 7.1 complain thusly:
3783 # icc: Command line warning: ignoring option '-M'; no argument required
3784 # The diagnosis changed in icc 8.0:
3785 # icc: Command line remark: option '-MP' not supported
3786 if (grep 'ignoring option' conftest.err ||
3787 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3788 am_cv_CC_dependencies_compiler_type=$depmode
3789 break
3790 fi
3791 fi
3792 done
3793
3794 cd ..
3795 rm -rf conftest.dir
3796else
3797 am_cv_CC_dependencies_compiler_type=none
3798fi
3799
3800fi
8d138742
CE
3801{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3802$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
d9898ee8 3803CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3804
dd184caf 3805 if
d9898ee8 3806 test "x$enable_dependency_tracking" != xno \
3807 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3808 am__fastdepCC_TRUE=
3809 am__fastdepCC_FALSE='#'
3810else
3811 am__fastdepCC_TRUE='#'
3812 am__fastdepCC_FALSE=
3813fi
3814
3815
8d138742
CE
3816{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3817$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3818if test "${ac_cv_path_SED+set}" = set; then
3819 $as_echo_n "(cached) " >&6
d9898ee8 3820else
8d138742
CE
3821 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3822 for ac_i in 1 2 3 4 5 6 7; do
3823 ac_script="$ac_script$as_nl$ac_script"
3824 done
3825 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3826 $as_unset ac_script || ac_script=
3827 if test -z "$SED"; then
3828 ac_path_SED_found=false
3829 # Loop through the user's path and test for each of PROGNAME-LIST
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831for as_dir in $PATH
3832do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 for ac_prog in sed gsed; do
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3838 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3839# Check for GNU ac_path_SED and select it if it is found.
3840 # Check for GNU $ac_path_SED
3841case `"$ac_path_SED" --version 2>&1` in
3842*GNU*)
3843 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3844*)
3845 ac_count=0
3846 $as_echo_n 0123456789 >"conftest.in"
3847 while :
3848 do
3849 cat "conftest.in" "conftest.in" >"conftest.tmp"
3850 mv "conftest.tmp" "conftest.in"
3851 cp "conftest.in" "conftest.nl"
3852 $as_echo '' >> "conftest.nl"
3853 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3855 ac_count=`expr $ac_count + 1`
3856 if test $ac_count -gt ${ac_path_SED_max-0}; then
3857 # Best one so far, save it but keep looking for a better one
3858 ac_cv_path_SED="$ac_path_SED"
3859 ac_path_SED_max=$ac_count
3860 fi
3861 # 10*(2^10) chars as input seems more than enough
3862 test $ac_count -gt 10 && break
3863 done
3864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
dd184caf 3865esac
d9898ee8 3866
8d138742
CE
3867 $ac_path_SED_found && break 3
3868 done
3869 done
3870done
3871IFS=$as_save_IFS
3872 if test -z "$ac_cv_path_SED"; then
3873 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3874$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3875 { (exit 1); exit 1; }; }
3876 fi
3877else
3878 ac_cv_path_SED=$SED
d9898ee8 3879fi
dd184caf 3880
d9898ee8 3881fi
8d138742
CE
3882{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3883$as_echo "$ac_cv_path_SED" >&6; }
3884 SED="$ac_cv_path_SED"
3885 rm -f conftest.sed
d9898ee8 3886
8d138742
CE
3887test -z "$SED" && SED=sed
3888Xsed="$SED -e 1s/^X//"
d9898ee8 3889
d9898ee8 3890
dd184caf 3891
3892
d9898ee8 3893
dd184caf 3894
3895
d9898ee8 3896
d9898ee8 3897
d9898ee8 3898
dd184caf 3899
8d138742
CE
3900{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3901$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
dd184caf 3902if test "${ac_cv_path_GREP+set}" = set; then
8d138742 3903 $as_echo_n "(cached) " >&6
dd184caf 3904else
8d138742 3905 if test -z "$GREP"; then
dd184caf 3906 ac_path_GREP_found=false
8d138742
CE
3907 # Loop through the user's path and test for each of PROGNAME-LIST
3908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 3909for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3910do
3911 IFS=$as_save_IFS
3912 test -z "$as_dir" && as_dir=.
3913 for ac_prog in grep ggrep; do
8d138742
CE
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3916 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3917# Check for GNU ac_path_GREP and select it if it is found.
dd184caf 3918 # Check for GNU $ac_path_GREP
3919case `"$ac_path_GREP" --version 2>&1` in
3920*GNU*)
3921 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3922*)
3923 ac_count=0
8d138742 3924 $as_echo_n 0123456789 >"conftest.in"
dd184caf 3925 while :
3926 do
3927 cat "conftest.in" "conftest.in" >"conftest.tmp"
3928 mv "conftest.tmp" "conftest.in"
3929 cp "conftest.in" "conftest.nl"
8d138742 3930 $as_echo 'GREP' >> "conftest.nl"
dd184caf 3931 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3933 ac_count=`expr $ac_count + 1`
3934 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3935 # Best one so far, save it but keep looking for a better one
3936 ac_cv_path_GREP="$ac_path_GREP"
3937 ac_path_GREP_max=$ac_count
3938 fi
3939 # 10*(2^10) chars as input seems more than enough
3940 test $ac_count -gt 10 && break
3941 done
3942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3943esac
3944
8d138742
CE
3945 $ac_path_GREP_found && break 3
3946 done
dd184caf 3947 done
3948done
dd184caf 3949IFS=$as_save_IFS
8d138742
CE
3950 if test -z "$ac_cv_path_GREP"; then
3951 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3952$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
dd184caf 3953 { (exit 1); exit 1; }; }
8d138742 3954 fi
dd184caf 3955else
3956 ac_cv_path_GREP=$GREP
3957fi
3958
dd184caf 3959fi
8d138742
CE
3960{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3961$as_echo "$ac_cv_path_GREP" >&6; }
dd184caf 3962 GREP="$ac_cv_path_GREP"
3963
d9898ee8 3964
8d138742
CE
3965{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3966$as_echo_n "checking for egrep... " >&6; }
dd184caf 3967if test "${ac_cv_path_EGREP+set}" = set; then
8d138742 3968 $as_echo_n "(cached) " >&6
dd184caf 3969else
3970 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3971 then ac_cv_path_EGREP="$GREP -E"
3972 else
8d138742 3973 if test -z "$EGREP"; then
dd184caf 3974 ac_path_EGREP_found=false
8d138742
CE
3975 # Loop through the user's path and test for each of PROGNAME-LIST
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dd184caf 3977for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978do
3979 IFS=$as_save_IFS
3980 test -z "$as_dir" && as_dir=.
3981 for ac_prog in egrep; do
8d138742
CE
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3984 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3985# Check for GNU ac_path_EGREP and select it if it is found.
dd184caf 3986 # Check for GNU $ac_path_EGREP
3987case `"$ac_path_EGREP" --version 2>&1` in
3988*GNU*)
3989 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3990*)
3991 ac_count=0
8d138742 3992 $as_echo_n 0123456789 >"conftest.in"
dd184caf 3993 while :
3994 do
3995 cat "conftest.in" "conftest.in" >"conftest.tmp"
3996 mv "conftest.tmp" "conftest.in"
3997 cp "conftest.in" "conftest.nl"
8d138742 3998 $as_echo 'EGREP' >> "conftest.nl"
dd184caf 3999 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4000 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4001 ac_count=`expr $ac_count + 1`
4002 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4003 # Best one so far, save it but keep looking for a better one
4004 ac_cv_path_EGREP="$ac_path_EGREP"
4005 ac_path_EGREP_max=$ac_count
d9898ee8 4006 fi
dd184caf 4007 # 10*(2^10) chars as input seems more than enough
4008 test $ac_count -gt 10 && break
4009 done
4010 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4011esac
4012
8d138742
CE
4013 $ac_path_EGREP_found && break 3
4014 done
dd184caf 4015 done
4016done
dd184caf 4017IFS=$as_save_IFS
8d138742
CE
4018 if test -z "$ac_cv_path_EGREP"; then
4019 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4020$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
dd184caf 4021 { (exit 1); exit 1; }; }
8d138742 4022 fi
dd184caf 4023else
4024 ac_cv_path_EGREP=$EGREP
d9898ee8 4025fi
dd184caf 4026
dd184caf 4027 fi
4028fi
8d138742
CE
4029{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4030$as_echo "$ac_cv_path_EGREP" >&6; }
dd184caf 4031 EGREP="$ac_cv_path_EGREP"
d9898ee8 4032
4033
8d138742
CE
4034{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4035$as_echo_n "checking for fgrep... " >&6; }
4036if test "${ac_cv_path_FGREP+set}" = set; then
4037 $as_echo_n "(cached) " >&6
d9898ee8 4038else
8d138742
CE
4039 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4040 then ac_cv_path_FGREP="$GREP -F"
4041 else
4042 if test -z "$FGREP"; then
4043 ac_path_FGREP_found=false
4044 # Loop through the user's path and test for each of PROGNAME-LIST
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4047do
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_prog in fgrep; do
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4053 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4054# Check for GNU ac_path_FGREP and select it if it is found.
4055 # Check for GNU $ac_path_FGREP
4056case `"$ac_path_FGREP" --version 2>&1` in
4057*GNU*)
4058 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4059*)
4060 ac_count=0
4061 $as_echo_n 0123456789 >"conftest.in"
4062 while :
4063 do
4064 cat "conftest.in" "conftest.in" >"conftest.tmp"
4065 mv "conftest.tmp" "conftest.in"
4066 cp "conftest.in" "conftest.nl"
4067 $as_echo 'FGREP' >> "conftest.nl"
4068 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4070 ac_count=`expr $ac_count + 1`
4071 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4072 # Best one so far, save it but keep looking for a better one
4073 ac_cv_path_FGREP="$ac_path_FGREP"
4074 ac_path_FGREP_max=$ac_count
4075 fi
4076 # 10*(2^10) chars as input seems more than enough
4077 test $ac_count -gt 10 && break
4078 done
4079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4080esac
4081
4082 $ac_path_FGREP_found && break 3
4083 done
4084 done
4085done
4086IFS=$as_save_IFS
4087 if test -z "$ac_cv_path_FGREP"; then
4088 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4089$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4090 { (exit 1); exit 1; }; }
4091 fi
4092else
4093 ac_cv_path_FGREP=$FGREP
4094fi
4095
4096 fi
4097fi
4098{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4099$as_echo "$ac_cv_path_FGREP" >&6; }
4100 FGREP="$ac_cv_path_FGREP"
4101
4102
4103test -z "$GREP" && GREP=grep
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123# Check whether --with-gnu-ld was given.
4124if test "${with_gnu_ld+set}" = set; then
4125 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4126else
4127 with_gnu_ld=no
4128fi
4129
4130ac_prog=ld
4131if test "$GCC" = yes; then
4132 # Check if gcc -print-prog-name=ld gives a path.
4133 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4134$as_echo_n "checking for ld used by $CC... " >&6; }
4135 case $host in
4136 *-*-mingw*)
4137 # gcc leaves a trailing carriage return which upsets mingw
4138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4139 *)
4140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4141 esac
4142 case $ac_prog in
4143 # Accept absolute paths.
4144 [\\/]* | ?:[\\/]*)
4145 re_direlt='/[^/][^/]*/\.\./'
4146 # Canonicalize the pathname of ld
4147 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4148 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4149 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4150 done
4151 test -z "$LD" && LD="$ac_prog"
4152 ;;
4153 "")
4154 # If it fails, then pretend we aren't using GCC.
d9898ee8 4155 ac_prog=ld
4156 ;;
4157 *)
4158 # If it is relative, then search for the first ld in PATH.
4159 with_gnu_ld=unknown
4160 ;;
4161 esac
4162elif test "$with_gnu_ld" = yes; then
8d138742
CE
4163 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4164$as_echo_n "checking for GNU ld... " >&6; }
d9898ee8 4165else
8d138742
CE
4166 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4167$as_echo_n "checking for non-GNU ld... " >&6; }
d9898ee8 4168fi
4169if test "${lt_cv_path_LD+set}" = set; then
8d138742 4170 $as_echo_n "(cached) " >&6
d9898ee8 4171else
4172 if test -z "$LD"; then
4173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4174 for ac_dir in $PATH; do
4175 IFS="$lt_save_ifs"
4176 test -z "$ac_dir" && ac_dir=.
4177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4178 lt_cv_path_LD="$ac_dir/$ac_prog"
4179 # Check to see if the program is GNU ld. I'd rather use --version,
4180 # but apparently some variants of GNU ld only accept -v.
4181 # Break only if it was the GNU/non-GNU ld that we prefer.
4182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4183 *GNU* | *'with BFD'*)
4184 test "$with_gnu_ld" != no && break
4185 ;;
4186 *)
4187 test "$with_gnu_ld" != yes && break
4188 ;;
4189 esac
4190 fi
4191 done
4192 IFS="$lt_save_ifs"
4193else
4194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4195fi
4196fi
4197
4198LD="$lt_cv_path_LD"
4199if test -n "$LD"; then
8d138742
CE
4200 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4201$as_echo "$LD" >&6; }
d9898ee8 4202else
8d138742
CE
4203 { $as_echo "$as_me:$LINENO: result: no" >&5
4204$as_echo "no" >&6; }
d9898ee8 4205fi
8d138742
CE
4206test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4207$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
d9898ee8 4208 { (exit 1); exit 1; }; }
8d138742
CE
4209{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4210$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d9898ee8 4211if test "${lt_cv_prog_gnu_ld+set}" = set; then
8d138742 4212 $as_echo_n "(cached) " >&6
d9898ee8 4213else
4214 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4215case `$LD -v 2>&1 </dev/null` in
4216*GNU* | *'with BFD'*)
4217 lt_cv_prog_gnu_ld=yes
4218 ;;
4219*)
4220 lt_cv_prog_gnu_ld=no
4221 ;;
4222esac
4223fi
8d138742
CE
4224{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4225$as_echo "$lt_cv_prog_gnu_ld" >&6; }
d9898ee8 4226with_gnu_ld=$lt_cv_prog_gnu_ld
4227
4228
d9898ee8 4229
8d138742
CE
4230
4231
4232
4233
4234
4235
4236{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4237$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d9898ee8 4238if test "${lt_cv_path_NM+set}" = set; then
8d138742 4239 $as_echo_n "(cached) " >&6
d9898ee8 4240else
4241 if test -n "$NM"; then
4242 # Let the user override the test.
4243 lt_cv_path_NM="$NM"
4244else
4245 lt_nm_to_check="${ac_tool_prefix}nm"
4246 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4247 lt_nm_to_check="$lt_nm_to_check nm"
4248 fi
4249 for lt_tmp_nm in $lt_nm_to_check; do
4250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4251 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4252 IFS="$lt_save_ifs"
4253 test -z "$ac_dir" && ac_dir=.
4254 tmp_nm="$ac_dir/$lt_tmp_nm"
4255 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4256 # Check to see if the nm accepts a BSD-compat flag.
4257 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4258 # nm: unknown option "B" ignored
4259 # Tru64's nm complains that /dev/null is an invalid object file
4260 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4261 */dev/null* | *'Invalid file or object type'*)
4262 lt_cv_path_NM="$tmp_nm -B"
4263 break
4264 ;;
4265 *)
4266 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4267 */dev/null*)
4268 lt_cv_path_NM="$tmp_nm -p"
4269 break
4270 ;;
4271 *)
4272 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4273 continue # so that we can try to find one that supports BSD flags
4274 ;;
4275 esac
4276 ;;
4277 esac
4278 fi
4279 done
4280 IFS="$lt_save_ifs"
4281 done
8d138742 4282 : ${lt_cv_path_NM=no}
d9898ee8 4283fi
4284fi
8d138742
CE
4285{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4286$as_echo "$lt_cv_path_NM" >&6; }
4287if test "$lt_cv_path_NM" != "no"; then
4288 NM="$lt_cv_path_NM"
4289else
4290 # Didn't find any BSD compatible name lister, look for dumpbin.
4291 if test -n "$ac_tool_prefix"; then
4292 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4293 do
4294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4295set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4296{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4297$as_echo_n "checking for $ac_word... " >&6; }
4298if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4299 $as_echo_n "(cached) " >&6
4300else
4301 if test -n "$DUMPBIN"; then
4302 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4303else
4304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305for as_dir in $PATH
4306do
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4312 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4314 fi
4315done
4316done
4317IFS=$as_save_IFS
d9898ee8 4318
8d138742
CE
4319fi
4320fi
4321DUMPBIN=$ac_cv_prog_DUMPBIN
4322if test -n "$DUMPBIN"; then
4323 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4324$as_echo "$DUMPBIN" >&6; }
d9898ee8 4325else
8d138742
CE
4326 { $as_echo "$as_me:$LINENO: result: no" >&5
4327$as_echo "no" >&6; }
d9898ee8 4328fi
4329
d9898ee8 4330
8d138742
CE
4331 test -n "$DUMPBIN" && break
4332 done
4333fi
4334if test -z "$DUMPBIN"; then
4335 ac_ct_DUMPBIN=$DUMPBIN
4336 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4337do
4338 # Extract the first word of "$ac_prog", so it can be a program name with args.
4339set dummy $ac_prog; ac_word=$2
4340{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4341$as_echo_n "checking for $ac_word... " >&6; }
4342if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4343 $as_echo_n "(cached) " >&6
4344else
4345 if test -n "$ac_ct_DUMPBIN"; then
4346 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4347else
4348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349for as_dir in $PATH
4350do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4356 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 break 2
4358 fi
4359done
4360done
4361IFS=$as_save_IFS
d9898ee8 4362
8d138742
CE
4363fi
4364fi
4365ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4366if test -n "$ac_ct_DUMPBIN"; then
4367 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4368$as_echo "$ac_ct_DUMPBIN" >&6; }
4369else
4370 { $as_echo "$as_me:$LINENO: result: no" >&5
4371$as_echo "no" >&6; }
4372fi
d9898ee8 4373
d9898ee8 4374
8d138742
CE
4375 test -n "$ac_ct_DUMPBIN" && break
4376done
d9898ee8 4377
8d138742
CE
4378 if test "x$ac_ct_DUMPBIN" = x; then
4379 DUMPBIN=":"
ac40fd9e 4380 else
8d138742
CE
4381 case $cross_compiling:$ac_tool_warned in
4382yes:)
4383{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4385ac_tool_warned=yes ;;
4386esac
4387 DUMPBIN=$ac_ct_DUMPBIN
ac40fd9e 4388 fi
8d138742 4389fi
d9898ee8 4390
d9898ee8 4391
8d138742
CE
4392 if test "$DUMPBIN" != ":"; then
4393 NM="$DUMPBIN"
d9898ee8 4394 fi
8d138742
CE
4395fi
4396test -z "$NM" && NM=nm
d9898ee8 4397
d9898ee8 4398
d9898ee8 4399
d9898ee8 4400
d9898ee8 4401
d9898ee8 4402
8d138742
CE
4403{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4404$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4405if test "${lt_cv_nm_interface+set}" = set; then
4406 $as_echo_n "(cached) " >&6
4407else
4408 lt_cv_nm_interface="BSD nm"
4409 echo "int some_variable = 0;" > conftest.$ac_ext
4410 (eval echo "\"\$as_me:4410: $ac_compile\"" >&5)
4411 (eval "$ac_compile" 2>conftest.err)
4412 cat conftest.err >&5
4413 (eval echo "\"\$as_me:4413: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4414 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4415 cat conftest.err >&5
4416 (eval echo "\"\$as_me:4416: output\"" >&5)
4417 cat conftest.out >&5
4418 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4419 lt_cv_nm_interface="MS dumpbin"
d9898ee8 4420 fi
8d138742
CE
4421 rm -f conftest*
4422fi
4423{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4424$as_echo "$lt_cv_nm_interface" >&6; }
d9898ee8 4425
8d138742
CE
4426{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4427$as_echo_n "checking whether ln -s works... " >&6; }
4428LN_S=$as_ln_s
4429if test "$LN_S" = "ln -s"; then
4430 { $as_echo "$as_me:$LINENO: result: yes" >&5
4431$as_echo "yes" >&6; }
4432else
4433 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4434$as_echo "no, using $LN_S" >&6; }
4435fi
d9898ee8 4436
8d138742
CE
4437# find the maximum length of command line arguments
4438{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4439$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4440if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4441 $as_echo_n "(cached) " >&6
4442else
4443 i=0
4444 teststring="ABCD"
d9898ee8 4445
8d138742
CE
4446 case $build_os in
4447 msdosdjgpp*)
4448 # On DJGPP, this test can blow up pretty badly due to problems in libc
4449 # (any single argument exceeding 2000 bytes causes a buffer overrun
4450 # during glob expansion). Even if it were fixed, the result of this
4451 # check would be larger than it should be.
4452 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4453 ;;
d9898ee8 4454
8d138742
CE
4455 gnu*)
4456 # Under GNU Hurd, this test is not required because there is
4457 # no limit to the length of command line arguments.
4458 # Libtool will interpret -1 as no limit whatsoever
4459 lt_cv_sys_max_cmd_len=-1;
4460 ;;
d9898ee8 4461
8d138742
CE
4462 cygwin* | mingw* | cegcc*)
4463 # On Win9x/ME, this test blows up -- it succeeds, but takes
4464 # about 5 minutes as the teststring grows exponentially.
4465 # Worse, since 9x/ME are not pre-emptively multitasking,
4466 # you end up with a "frozen" computer, even though with patience
4467 # the test eventually succeeds (with a max line length of 256k).
4468 # Instead, let's just punt: use the minimum linelength reported by
4469 # all of the supported platforms: 8192 (on NT/2K/XP).
4470 lt_cv_sys_max_cmd_len=8192;
4471 ;;
ac40fd9e 4472
8d138742
CE
4473 amigaos*)
4474 # On AmigaOS with pdksh, this test takes hours, literally.
4475 # So we just punt and use a minimum line length of 8192.
4476 lt_cv_sys_max_cmd_len=8192;
4477 ;;
d9898ee8 4478
8d138742
CE
4479 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4480 # This has been around since 386BSD, at least. Likely further.
4481 if test -x /sbin/sysctl; then
4482 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4483 elif test -x /usr/sbin/sysctl; then
4484 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4485 else
4486 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4487 fi
4488 # And add a safety zone
4489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
d9898ee8 4491 ;;
8d138742
CE
4492
4493 interix*)
4494 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4495 lt_cv_sys_max_cmd_len=196608
d9898ee8 4496 ;;
8d138742
CE
4497
4498 osf*)
4499 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4500 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4501 # nice to cause kernel panics so lets avoid the loop below.
4502 # First set a reasonable default.
4503 lt_cv_sys_max_cmd_len=16384
4504 #
4505 if test -x /sbin/sysconfig; then
4506 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4507 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4508 esac
4509 fi
d9898ee8 4510 ;;
8d138742
CE
4511 sco3.2v5*)
4512 lt_cv_sys_max_cmd_len=102400
d9898ee8 4513 ;;
8d138742
CE
4514 sysv5* | sco5v6* | sysv4.2uw2*)
4515 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4516 if test -n "$kargmax"; then
4517 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4518 else
4519 lt_cv_sys_max_cmd_len=32768
4520 fi
d9898ee8 4521 ;;
8d138742
CE
4522 *)
4523 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4524 if test -n "$lt_cv_sys_max_cmd_len"; then
4525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4527 else
4528 # Make teststring a little bigger before we do anything with it.
4529 # a 1K string should be a reasonable start.
4530 for i in 1 2 3 4 5 6 7 8 ; do
4531 teststring=$teststring$teststring
4532 done
4533 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4534 # If test is not a shell built-in, we'll probably end up computing a
4535 # maximum length that is only half of the actual maximum length, but
4536 # we can't tell.
4537 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4538 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4539 test $i != 17 # 1/2 MB should be enough
4540 do
4541 i=`expr $i + 1`
4542 teststring=$teststring$teststring
4543 done
4544 # Only check the string length outside the loop.
4545 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4546 teststring=
4547 # Add a significant safety factor because C++ compilers can tack on
4548 # massive amounts of additional arguments before passing them to the
4549 # linker. It appears as though 1/2 is a usable value.
4550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4551 fi
d9898ee8 4552 ;;
4553 esac
d9898ee8 4554
8d138742 4555fi
d9898ee8 4556
8d138742
CE
4557if test -n $lt_cv_sys_max_cmd_len ; then
4558 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4559$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4560else
4561 { $as_echo "$as_me:$LINENO: result: none" >&5
4562$as_echo "none" >&6; }
d9898ee8 4563fi
8d138742 4564max_cmd_len=$lt_cv_sys_max_cmd_len
d9898ee8 4565
4566
4567
4568
d9898ee8 4569
d9898ee8 4570
8d138742
CE
4571: ${CP="cp -f"}
4572: ${MV="mv -f"}
4573: ${RM="rm -f"}
d9898ee8 4574
8d138742
CE
4575{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4576$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4577# Try some XSI features
4578xsi_shell=no
4579( _lt_dummy="a/b/c"
4580 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4581 = c,a/b,, \
4582 && eval 'test $(( 1 + 1 )) -eq 2 \
4583 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4584 && xsi_shell=yes
4585{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
4586$as_echo "$xsi_shell" >&6; }
4587
4588
4589{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4590$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4591lt_shell_append=no
4592( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4593 >/dev/null 2>&1 \
4594 && lt_shell_append=yes
4595{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4596$as_echo "$lt_shell_append" >&6; }
4597
4598
4599if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4600 lt_unset=unset
4601else
4602 lt_unset=false
dd184caf 4603fi
d9898ee8 4604
d9898ee8 4605
8d138742
CE
4606
4607
4608
4609# test EBCDIC or ASCII
4610case `echo X|tr X '\101'` in
4611 A) # ASCII based system
4612 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4613 lt_SP2NL='tr \040 \012'
4614 lt_NL2SP='tr \015\012 \040\040'
d9898ee8 4615 ;;
8d138742
CE
4616 *) # EBCDIC based system
4617 lt_SP2NL='tr \100 \n'
4618 lt_NL2SP='tr \r\n \100\100'
d9898ee8 4619 ;;
8d138742 4620esac
d9898ee8 4621
d9898ee8 4622
d9898ee8 4623
d9898ee8 4624
d9898ee8 4625
dd184caf 4626
d9898ee8 4627
d9898ee8 4628
d9898ee8 4629
8d138742
CE
4630{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4631$as_echo_n "checking for $LD option to reload object files... " >&6; }
4632if test "${lt_cv_ld_reload_flag+set}" = set; then
4633 $as_echo_n "(cached) " >&6
d9898ee8 4634else
8d138742 4635 lt_cv_ld_reload_flag='-r'
d9898ee8 4636fi
8d138742
CE
4637{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4638$as_echo "$lt_cv_ld_reload_flag" >&6; }
4639reload_flag=$lt_cv_ld_reload_flag
4640case $reload_flag in
4641"" | " "*) ;;
4642*) reload_flag=" $reload_flag" ;;
4643esac
4644reload_cmds='$LD$reload_flag -o $output$reload_objs'
4645case $host_os in
4646 darwin*)
4647 if test "$GCC" = yes; then
4648 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4649 else
4650 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4651 fi
4652 ;;
4653esac
d9898ee8 4654
d9898ee8 4655
d9898ee8 4656
d9898ee8 4657
d9898ee8 4658
dd184caf 4659
d9898ee8 4660
d9898ee8 4661
d9898ee8 4662
8d138742 4663if test -n "$ac_tool_prefix"; then
d9898ee8 4664 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4665set dummy ${ac_tool_prefix}objdump; ac_word=$2
8d138742
CE
4666{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4667$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 4668if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8d138742 4669 $as_echo_n "(cached) " >&6
d9898ee8 4670else
4671 if test -n "$OBJDUMP"; then
4672 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4673else
4674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675for as_dir in $PATH
4676do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4681 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8d138742 4682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4683 break 2
4684 fi
4685done
4686done
dd184caf 4687IFS=$as_save_IFS
d9898ee8 4688
4689fi
4690fi
4691OBJDUMP=$ac_cv_prog_OBJDUMP
4692if test -n "$OBJDUMP"; then
8d138742
CE
4693 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4694$as_echo "$OBJDUMP" >&6; }
d9898ee8 4695else
8d138742
CE
4696 { $as_echo "$as_me:$LINENO: result: no" >&5
4697$as_echo "no" >&6; }
d9898ee8 4698fi
4699
dd184caf 4700
d9898ee8 4701fi
4702if test -z "$ac_cv_prog_OBJDUMP"; then
4703 ac_ct_OBJDUMP=$OBJDUMP
4704 # Extract the first word of "objdump", so it can be a program name with args.
4705set dummy objdump; ac_word=$2
8d138742
CE
4706{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4707$as_echo_n "checking for $ac_word... " >&6; }
d9898ee8 4708if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
8d138742 4709 $as_echo_n "(cached) " >&6
d9898ee8 4710else
4711 if test -n "$ac_ct_OBJDUMP"; then
4712 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4713else
4714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715for as_dir in $PATH
4716do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9898ee8 4721 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8d138742 4722 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 4723 break 2
4724 fi
4725done
4726done
dd184caf 4727IFS=$as_save_IFS
d9898ee8 4728
d9898ee8 4729fi
4730fi
4731ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4732if test -n "$ac_ct_OBJDUMP"; then
8d138742
CE
4733 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4734$as_echo "$ac_ct_OBJDUMP" >&6; }
d9898ee8 4735else
8d138742
CE
4736 { $as_echo "$as_me:$LINENO: result: no" >&5
4737$as_echo "no" >&6; }
d9898ee8 4738fi
4739
dd184caf 4740 if test "x$ac_ct_OBJDUMP" = x; then
4741 OBJDUMP="false"
4742 else
4743 case $cross_compiling:$ac_tool_warned in
4744yes:)
8d138742
CE
4745{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4746$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 4747ac_tool_warned=yes ;;
4748esac
4749 OBJDUMP=$ac_ct_OBJDUMP
4750 fi
d9898ee8 4751else
4752 OBJDUMP="$ac_cv_prog_OBJDUMP"
4753fi
4754
8d138742 4755test -z "$OBJDUMP" && OBJDUMP=objdump
d9898ee8 4756
d9898ee8 4757
d9898ee8 4758
4759
8d138742
CE
4760
4761
4762{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4763$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4764if test "${lt_cv_deplibs_check_method+set}" = set; then
4765 $as_echo_n "(cached) " >&6
d9898ee8 4766else
8d138742
CE
4767 lt_cv_file_magic_cmd='$MAGIC_CMD'
4768lt_cv_file_magic_test_file=
4769lt_cv_deplibs_check_method='unknown'
4770# Need to set the preceding variable on all platforms that support
4771# interlibrary dependencies.
4772# 'none' -- dependencies not supported.
4773# `unknown' -- same as none, but documents that we really don't know.
4774# 'pass_all' -- all dependencies passed with no checks.
4775# 'test_compile' -- check by making test program.
4776# 'file_magic [[regex]]' -- check by looking for files in library path
4777# which responds to the $file_magic_cmd with a given extended regex.
4778# If you have `file' or equivalent on your system and you're not sure
4779# whether `pass_all' will *always* work, you probably want this one.
dd184caf 4780
8d138742
CE
4781case $host_os in
4782aix[4-9]*)
4783 lt_cv_deplibs_check_method=pass_all
4784 ;;
d9898ee8 4785
8d138742
CE
4786beos*)
4787 lt_cv_deplibs_check_method=pass_all
4788 ;;
d9898ee8 4789
8d138742
CE
4790bsdi[45]*)
4791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4792 lt_cv_file_magic_cmd='/usr/bin/file -L'
4793 lt_cv_file_magic_test_file=/shlib/libc.so
4794 ;;
dd184caf 4795
8d138742
CE
4796cygwin*)
4797 # func_win32_libid is a shell function defined in ltmain.sh
4798 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4799 lt_cv_file_magic_cmd='func_win32_libid'
4800 ;;
d9898ee8 4801
8d138742
CE
4802mingw* | pw32*)
4803 # Base MSYS/MinGW do not provide the 'file' command needed by
4804 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4805 # unless we find 'file', for example because we are cross-compiling.
4806 if ( file / ) >/dev/null 2>&1; then
4807 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4808 lt_cv_file_magic_cmd='func_win32_libid'
4809 else
4810 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4811 lt_cv_file_magic_cmd='$OBJDUMP -f'
4812 fi
4813 ;;
d9898ee8 4814
8d138742
CE
4815cegcc)
4816 # use the weaker test based on 'objdump'. See mingw*.
4817 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4818 lt_cv_file_magic_cmd='$OBJDUMP -f'
4819 ;;
d9898ee8 4820
8d138742
CE
4821darwin* | rhapsody*)
4822 lt_cv_deplibs_check_method=pass_all
4823 ;;
d9898ee8 4824
8d138742
CE
4825freebsd* | dragonfly*)
4826 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4827 case $host_cpu in
4828 i*86 )
4829 # Not sure whether the presence of OpenBSD here was a mistake.
4830 # Let's accept both of them until this is cleared up.
4831 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4832 lt_cv_file_magic_cmd=/usr/bin/file
4833 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4834 ;;
4835 esac
4836 else
4837 lt_cv_deplibs_check_method=pass_all
4838 fi
4839 ;;
dd184caf 4840
8d138742
CE
4841gnu*)
4842 lt_cv_deplibs_check_method=pass_all
4843 ;;
d9898ee8 4844
8d138742
CE
4845hpux10.20* | hpux11*)
4846 lt_cv_file_magic_cmd=/usr/bin/file
4847 case $host_cpu in
4848 ia64*)
4849 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4850 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4851 ;;
4852 hppa*64*)
4853 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4854 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4855 ;;
4856 *)
4857 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4858 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4859 ;;
4860 esac
4861 ;;
d9898ee8 4862
8d138742
CE
4863interix[3-9]*)
4864 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4865 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4866 ;;
dd184caf 4867
8d138742
CE
4868irix5* | irix6* | nonstopux*)
4869 case $LD in
4870 *-32|*"-32 ") libmagic=32-bit;;
4871 *-n32|*"-n32 ") libmagic=N32;;
4872 *-64|*"-64 ") libmagic=64-bit;;
4873 *) libmagic=never-match;;
4874 esac
4875 lt_cv_deplibs_check_method=pass_all
4876 ;;
d9898ee8 4877
8d138742
CE
4878# This must be Linux ELF.
4879linux* | k*bsd*-gnu)
4880 lt_cv_deplibs_check_method=pass_all
4881 ;;
d9898ee8 4882
8d138742
CE
4883netbsd*)
4884 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4885 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4886 else
4887 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4888 fi
4889 ;;
d9898ee8 4890
8d138742
CE
4891newos6*)
4892 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4893 lt_cv_file_magic_cmd=/usr/bin/file
4894 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4895 ;;
d9898ee8 4896
8d138742
CE
4897*nto* | *qnx*)
4898 lt_cv_deplibs_check_method=pass_all
4899 ;;
d9898ee8 4900
8d138742
CE
4901openbsd*)
4902 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4903 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4904 else
4905 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4906 fi
4907 ;;
d9898ee8 4908
8d138742
CE
4909osf3* | osf4* | osf5*)
4910 lt_cv_deplibs_check_method=pass_all
4911 ;;
d9898ee8 4912
8d138742
CE
4913rdos*)
4914 lt_cv_deplibs_check_method=pass_all
4915 ;;
d9898ee8 4916
8d138742
CE
4917solaris*)
4918 lt_cv_deplibs_check_method=pass_all
4919 ;;
d9898ee8 4920
8d138742
CE
4921sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4922 lt_cv_deplibs_check_method=pass_all
4923 ;;
d9898ee8 4924
8d138742
CE
4925sysv4 | sysv4.3*)
4926 case $host_vendor in
4927 motorola)
4928 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4929 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4930 ;;
4931 ncr)
4932 lt_cv_deplibs_check_method=pass_all
4933 ;;
4934 sequent)
4935 lt_cv_file_magic_cmd='/bin/file'
4936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4937 ;;
4938 sni)
4939 lt_cv_file_magic_cmd='/bin/file'
4940 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4941 lt_cv_file_magic_test_file=/lib/libc.so
4942 ;;
4943 siemens)
4944 lt_cv_deplibs_check_method=pass_all
4945 ;;
4946 pc)
4947 lt_cv_deplibs_check_method=pass_all
4948 ;;
4949 esac
4950 ;;
d9898ee8 4951
8d138742
CE
4952tpf*)
4953 lt_cv_deplibs_check_method=pass_all
4954 ;;
dd184caf 4955esac
dd184caf 4956
d9898ee8 4957fi
8d138742
CE
4958{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4959$as_echo "$lt_cv_deplibs_check_method" >&6; }
4960file_magic_cmd=$lt_cv_file_magic_cmd
4961deplibs_check_method=$lt_cv_deplibs_check_method
4962test -z "$deplibs_check_method" && deplibs_check_method=unknown
d9898ee8 4963
d9898ee8 4964
d9898ee8 4965
d9898ee8 4966
4967
4968
4969
4970
4971
4972
4973
4974
8d138742
CE
4975if test -n "$ac_tool_prefix"; then
4976 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4977set dummy ${ac_tool_prefix}ar; ac_word=$2
4978{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4979$as_echo_n "checking for $ac_word... " >&6; }
4980if test "${ac_cv_prog_AR+set}" = set; then
4981 $as_echo_n "(cached) " >&6
d9898ee8 4982else
8d138742
CE
4983 if test -n "$AR"; then
4984 ac_cv_prog_AR="$AR" # Let the user override the test.
d9898ee8 4985else
8d138742
CE
4986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987for as_dir in $PATH
4988do
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 ac_cv_prog_AR="${ac_tool_prefix}ar"
4994 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4996 fi
4997done
4998done
4999IFS=$as_save_IFS
dd184caf 5000
d9898ee8 5001fi
d9898ee8 5002fi
8d138742
CE
5003AR=$ac_cv_prog_AR
5004if test -n "$AR"; then
5005 { $as_echo "$as_me:$LINENO: result: $AR" >&5
5006$as_echo "$AR" >&6; }
5007else
5008 { $as_echo "$as_me:$LINENO: result: no" >&5
5009$as_echo "no" >&6; }
5010fi
d9898ee8 5011
5012
d9898ee8 5013fi
8d138742
CE
5014if test -z "$ac_cv_prog_AR"; then
5015 ac_ct_AR=$AR
5016 # Extract the first word of "ar", so it can be a program name with args.
5017set dummy ar; ac_word=$2
5018{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5019$as_echo_n "checking for $ac_word... " >&6; }
5020if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5021 $as_echo_n "(cached) " >&6
d9898ee8 5022else
8d138742
CE
5023 if test -n "$ac_ct_AR"; then
5024 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
d9898ee8 5025else
8d138742
CE
5026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027for as_dir in $PATH
5028do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033 ac_cv_prog_ac_ct_AR="ar"
5034 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 break 2
5036 fi
5037done
5038done
5039IFS=$as_save_IFS
d9898ee8 5040
d9898ee8 5041fi
8d138742
CE
5042fi
5043ac_ct_AR=$ac_cv_prog_ac_ct_AR
5044if test -n "$ac_ct_AR"; then
5045 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5046$as_echo "$ac_ct_AR" >&6; }
d9898ee8 5047else
8d138742
CE
5048 { $as_echo "$as_me:$LINENO: result: no" >&5
5049$as_echo "no" >&6; }
d9898ee8 5050fi
dd184caf 5051
8d138742
CE
5052 if test "x$ac_ct_AR" = x; then
5053 AR="false"
5054 else
5055 case $cross_compiling:$ac_tool_warned in
5056yes:)
5057{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5059ac_tool_warned=yes ;;
d9898ee8 5060esac
8d138742
CE
5061 AR=$ac_ct_AR
5062 fi
d9898ee8 5063else
8d138742 5064 AR="$ac_cv_prog_AR"
d9898ee8 5065fi
d9898ee8 5066
8d138742
CE
5067test -z "$AR" && AR=ar
5068test -z "$AR_FLAGS" && AR_FLAGS=cru
d9898ee8 5069
d9898ee8 5070
d9898ee8 5071
8d138742
CE
5072
5073
5074
5075
5076
5077
5078
5079
5080if test -n "$ac_tool_prefix"; then
5081 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5082set dummy ${ac_tool_prefix}strip; ac_word=$2
5083{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5084$as_echo_n "checking for $ac_word... " >&6; }
5085if test "${ac_cv_prog_STRIP+set}" = set; then
5086 $as_echo_n "(cached) " >&6
d9898ee8 5087else
8d138742
CE
5088 if test -n "$STRIP"; then
5089 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
d9898ee8 5090else
5091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092for as_dir in $PATH
5093do
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5098 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5099 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5100 break 2
5101 fi
5102done
5103done
dd184caf 5104IFS=$as_save_IFS
d9898ee8 5105
5106fi
5107fi
8d138742
CE
5108STRIP=$ac_cv_prog_STRIP
5109if test -n "$STRIP"; then
5110 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5111$as_echo "$STRIP" >&6; }
d9898ee8 5112else
8d138742
CE
5113 { $as_echo "$as_me:$LINENO: result: no" >&5
5114$as_echo "no" >&6; }
d9898ee8 5115fi
5116
dd184caf 5117
d9898ee8 5118fi
8d138742
CE
5119if test -z "$ac_cv_prog_STRIP"; then
5120 ac_ct_STRIP=$STRIP
5121 # Extract the first word of "strip", so it can be a program name with args.
5122set dummy strip; ac_word=$2
5123{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5124$as_echo_n "checking for $ac_word... " >&6; }
5125if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5126 $as_echo_n "(cached) " >&6
d9898ee8 5127else
8d138742
CE
5128 if test -n "$ac_ct_STRIP"; then
5129 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
d9898ee8 5130else
5131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132for as_dir in $PATH
5133do
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5138 ac_cv_prog_ac_ct_STRIP="strip"
5139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5140 break 2
5141 fi
5142done
5143done
dd184caf 5144IFS=$as_save_IFS
d9898ee8 5145
5146fi
5147fi
8d138742
CE
5148ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5149if test -n "$ac_ct_STRIP"; then
5150 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5151$as_echo "$ac_ct_STRIP" >&6; }
d9898ee8 5152else
8d138742
CE
5153 { $as_echo "$as_me:$LINENO: result: no" >&5
5154$as_echo "no" >&6; }
d9898ee8 5155fi
5156
8d138742
CE
5157 if test "x$ac_ct_STRIP" = x; then
5158 STRIP=":"
dd184caf 5159 else
5160 case $cross_compiling:$ac_tool_warned in
5161yes:)
8d138742
CE
5162{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5164ac_tool_warned=yes ;;
5165esac
8d138742 5166 STRIP=$ac_ct_STRIP
dd184caf 5167 fi
8d138742
CE
5168else
5169 STRIP="$ac_cv_prog_STRIP"
d9898ee8 5170fi
5171
8d138742 5172test -z "$STRIP" && STRIP=:
d9898ee8 5173
d9898ee8 5174
d9898ee8 5175
8d138742
CE
5176
5177
5178
5179if test -n "$ac_tool_prefix"; then
5180 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5181set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5182{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5183$as_echo_n "checking for $ac_word... " >&6; }
5184if test "${ac_cv_prog_RANLIB+set}" = set; then
5185 $as_echo_n "(cached) " >&6
d9898ee8 5186else
8d138742
CE
5187 if test -n "$RANLIB"; then
5188 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5189else
5190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5198 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201done
5202done
5203IFS=$as_save_IFS
d9898ee8 5204
8d138742
CE
5205fi
5206fi
5207RANLIB=$ac_cv_prog_RANLIB
5208if test -n "$RANLIB"; then
5209 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5210$as_echo "$RANLIB" >&6; }
5211else
5212 { $as_echo "$as_me:$LINENO: result: no" >&5
5213$as_echo "no" >&6; }
d9898ee8 5214fi
dd184caf 5215
d9898ee8 5216
8d138742
CE
5217fi
5218if test -z "$ac_cv_prog_RANLIB"; then
5219 ac_ct_RANLIB=$RANLIB
5220 # Extract the first word of "ranlib", so it can be a program name with args.
5221set dummy ranlib; ac_word=$2
5222{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5223$as_echo_n "checking for $ac_word... " >&6; }
5224if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5225 $as_echo_n "(cached) " >&6
d9898ee8 5226else
8d138742
CE
5227 if test -n "$ac_ct_RANLIB"; then
5228 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5229else
5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 ac_cv_prog_ac_ct_RANLIB="ranlib"
5238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5240 fi
5241done
5242done
5243IFS=$as_save_IFS
dd184caf 5244
8d138742
CE
5245fi
5246fi
5247ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5248if test -n "$ac_ct_RANLIB"; then
5249 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5250$as_echo "$ac_ct_RANLIB" >&6; }
5251else
5252 { $as_echo "$as_me:$LINENO: result: no" >&5
5253$as_echo "no" >&6; }
5254fi
dd184caf 5255
8d138742
CE
5256 if test "x$ac_ct_RANLIB" = x; then
5257 RANLIB=":"
5258 else
5259 case $cross_compiling:$ac_tool_warned in
5260yes:)
5261{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5263ac_tool_warned=yes ;;
dd184caf 5264esac
8d138742
CE
5265 RANLIB=$ac_ct_RANLIB
5266 fi
d9898ee8 5267else
8d138742
CE
5268 RANLIB="$ac_cv_prog_RANLIB"
5269fi
d9898ee8 5270
8d138742 5271test -z "$RANLIB" && RANLIB=:
dd184caf 5272
dd184caf 5273
d9898ee8 5274
dd184caf 5275
dd184caf 5276
dd184caf 5277
8d138742
CE
5278# Determine commands to create old-style static archives.
5279old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5280old_postinstall_cmds='chmod 644 $oldlib'
5281old_postuninstall_cmds=
d9898ee8 5282
8d138742
CE
5283if test -n "$RANLIB"; then
5284 case $host_os in
5285 openbsd*)
5286 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5287 ;;
5288 *)
5289 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5290 ;;
5291 esac
5292 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
dd184caf 5293fi
d9898ee8 5294
d9898ee8 5295
d9898ee8 5296
d9898ee8 5297
d9898ee8 5298
d9898ee8 5299
d9898ee8 5300
d9898ee8 5301
5302
5303
5304
d9898ee8 5305
d9898ee8 5306
dd184caf 5307
d9898ee8 5308
d9898ee8 5309
d9898ee8 5310
d9898ee8 5311
dd184caf 5312
d9898ee8 5313
d9898ee8 5314
dd184caf 5315
d9898ee8 5316
d9898ee8 5317
d9898ee8 5318
d9898ee8 5319
5320
d9898ee8 5321
d9898ee8 5322
dd184caf 5323
d9898ee8 5324
d9898ee8 5325
dd184caf 5326
d9898ee8 5327
8d138742
CE
5328# If no C compiler was specified, use CC.
5329LTCC=${LTCC-"$CC"}
d9898ee8 5330
8d138742
CE
5331# If no C compiler flags were specified, use CFLAGS.
5332LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
d9898ee8 5333
8d138742
CE
5334# Allow CC to be a program name with arguments.
5335compiler=$CC
d9898ee8 5336
d9898ee8 5337
8d138742
CE
5338# Check for command to grab the raw symbol name followed by C symbol from nm.
5339{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5340$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5341if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5342 $as_echo_n "(cached) " >&6
d9898ee8 5343else
d9898ee8 5344
8d138742
CE
5345# These are sane defaults that work on at least a few old systems.
5346# [They come from Ultrix. What could be older than Ultrix?!! ;)]
dd184caf 5347
8d138742
CE
5348# Character class describing NM global symbol codes.
5349symcode='[BCDEGRST]'
d9898ee8 5350
8d138742
CE
5351# Regexp to match symbols that can be accessed directly from C.
5352sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
d9898ee8 5353
5354# Define system-specific variables.
5355case $host_os in
5356aix*)
5357 symcode='[BCDT]'
5358 ;;
8d138742 5359cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 5360 symcode='[ABCDGISTW]'
5361 ;;
8d138742 5362hpux*)
d9898ee8 5363 if test "$host_cpu" = ia64; then
5364 symcode='[ABCDEGRST]'
5365 fi
d9898ee8 5366 ;;
5367irix* | nonstopux*)
5368 symcode='[BCDEGRST]'
5369 ;;
5370osf*)
5371 symcode='[BCDEGQRST]'
5372 ;;
5373solaris*)
5374 symcode='[BDRT]'
5375 ;;
5376sco3.2v5*)
5377 symcode='[DT]'
5378 ;;
5379sysv4.2uw2*)
5380 symcode='[DT]'
5381 ;;
5382sysv5* | sco5v6* | unixware* | OpenUNIX*)
5383 symcode='[ABDT]'
5384 ;;
5385sysv4)
5386 symcode='[DFNSTU]'
5387 ;;
5388esac
5389
8d138742
CE
5390# If we're using GNU nm, then use its standard symbol codes.
5391case `$NM -V 2>&1` in
5392*GNU* | *'with BFD'*)
5393 symcode='[ABCDGIRSTW]' ;;
5394esac
5395
5396# Transform an extracted symbol line into a proper C declaration.
5397# Some systems (esp. on ia64) link data and code symbols differently,
5398# so use this general approach.
5399lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5400
5401# Transform an extracted symbol line into symbol name and symbol address
5402lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5403lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5404
d9898ee8 5405# Handle CRLF in mingw tool chain
5406opt_cr=
5407case $build_os in
5408mingw*)
8d138742 5409 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
d9898ee8 5410 ;;
5411esac
5412
8d138742 5413# Try without a prefix underscore, then with it.
d9898ee8 5414for ac_symprfx in "" "_"; do
5415
5416 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5417 symxfrm="\\1 $ac_symprfx\\2 \\2"
5418
5419 # Write the raw and C identifiers.
8d138742
CE
5420 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5421 # Fake it for dumpbin and say T for any non-static function
5422 # and D for any global variable.
5423 # Also find C++ and __fastcall symbols from MSVC++,
5424 # which start with @ or ?.
5425 lt_cv_sys_global_symbol_pipe="$AWK '"\
5426" {last_section=section; section=\$ 3};"\
5427" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5428" \$ 0!~/External *\|/{next};"\
5429" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5430" {if(hide[section]) next};"\
5431" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5432" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5433" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5434" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5435" ' prfx=^$ac_symprfx"
5436 else
5437 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5438 fi
d9898ee8 5439
5440 # Check to see that the pipe works correctly.
5441 pipe_works=no
5442
5443 rm -f conftest*
8d138742 5444 cat > conftest.$ac_ext <<_LT_EOF
d9898ee8 5445#ifdef __cplusplus
5446extern "C" {
5447#endif
5448char nm_test_var;
8d138742
CE
5449void nm_test_func(void);
5450void nm_test_func(void){}
d9898ee8 5451#ifdef __cplusplus
5452}
5453#endif
5454int main(){nm_test_var='a';nm_test_func();return(0);}
8d138742 5455_LT_EOF
d9898ee8 5456
5457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5458 (eval $ac_compile) 2>&5
5459 ac_status=$?
8d138742 5460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 5461 (exit $ac_status); }; then
5462 # Now try to grab the symbols.
5463 nlist=conftest.nm
5464 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5465 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5466 ac_status=$?
8d138742 5467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 5468 (exit $ac_status); } && test -s "$nlist"; then
5469 # Try sorting and uniquifying the output.
5470 if sort "$nlist" | uniq > "$nlist"T; then
5471 mv -f "$nlist"T "$nlist"
5472 else
5473 rm -f "$nlist"T
5474 fi
5475
5476 # Make sure that we snagged all the symbols we need.
8d138742
CE
5477 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5478 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5479 cat <<_LT_EOF > conftest.$ac_ext
d9898ee8 5480#ifdef __cplusplus
5481extern "C" {
5482#endif
5483
8d138742 5484_LT_EOF
d9898ee8 5485 # Now generate the symbol file.
8d138742 5486 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
d9898ee8 5487
8d138742 5488 cat <<_LT_EOF >> conftest.$ac_ext
d9898ee8 5489
8d138742 5490/* The mapping between symbol names and symbols. */
d9898ee8 5491const struct {
5492 const char *name;
8d138742 5493 void *address;
d9898ee8 5494}
8d138742 5495lt__PROGRAM__LTX_preloaded_symbols[] =
d9898ee8 5496{
8d138742
CE
5497 { "@PROGRAM@", (void *) 0 },
5498_LT_EOF
5499 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5500 cat <<\_LT_EOF >> conftest.$ac_ext
5501 {0, (void *) 0}
d9898ee8 5502};
5503
8d138742
CE
5504/* This works around a problem in FreeBSD linker */
5505#ifdef FREEBSD_WORKAROUND
5506static const void *lt_preloaded_setup() {
5507 return lt__PROGRAM__LTX_preloaded_symbols;
5508}
5509#endif
5510
d9898ee8 5511#ifdef __cplusplus
5512}
5513#endif
8d138742 5514_LT_EOF
d9898ee8 5515 # Now try linking the two files.
5516 mv conftest.$ac_objext conftstm.$ac_objext
5517 lt_save_LIBS="$LIBS"
5518 lt_save_CFLAGS="$CFLAGS"
5519 LIBS="conftstm.$ac_objext"
5520 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5522 (eval $ac_link) 2>&5
5523 ac_status=$?
8d138742 5524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
d9898ee8 5525 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5526 pipe_works=yes
5527 fi
5528 LIBS="$lt_save_LIBS"
5529 CFLAGS="$lt_save_CFLAGS"
5530 else
5531 echo "cannot find nm_test_func in $nlist" >&5
5532 fi
5533 else
5534 echo "cannot find nm_test_var in $nlist" >&5
5535 fi
5536 else
5537 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5538 fi
5539 else
5540 echo "$progname: failed program was:" >&5
5541 cat conftest.$ac_ext >&5
5542 fi
8d138742 5543 rm -rf conftest* conftst*
d9898ee8 5544
5545 # Do not use the global_symbol_pipe unless it works.
5546 if test "$pipe_works" = yes; then
5547 break
5548 else
5549 lt_cv_sys_global_symbol_pipe=
5550 fi
5551done
5552
5553fi
5554
5555if test -z "$lt_cv_sys_global_symbol_pipe"; then
5556 lt_cv_sys_global_symbol_to_cdecl=
5557fi
5558if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8d138742
CE
5559 { $as_echo "$as_me:$LINENO: result: failed" >&5
5560$as_echo "failed" >&6; }
d9898ee8 5561else
8d138742
CE
5562 { $as_echo "$as_me:$LINENO: result: ok" >&5
5563$as_echo "ok" >&6; }
d9898ee8 5564fi
5565
d9898ee8 5566
5567
5568
5569
5570
d9898ee8 5571
d9898ee8 5572
d9898ee8 5573
d9898ee8 5574
d9898ee8 5575
d9898ee8 5576
d9898ee8 5577
d9898ee8 5578
d9898ee8 5579
d9898ee8 5580
dd184caf 5581
8d138742
CE
5582
5583
5584
5585
5586
5587
5588# Check whether --enable-libtool-lock was given.
5589if test "${enable_libtool_lock+set}" = set; then
5590 enableval=$enable_libtool_lock;
d9898ee8 5591fi
8d138742
CE
5592
5593test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5594
5595# Some flags need to be propagated to the compiler or linker for good
5596# libtool support.
5597case $host in
5598ia64-*-hpux*)
5599 # Find out which ABI we are using.
5600 echo 'int i;' > conftest.$ac_ext
5601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5602 (eval $ac_compile) 2>&5
5603 ac_status=$?
5604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; then
5606 case `/usr/bin/file conftest.$ac_objext` in
5607 *ELF-32*)
5608 HPUX_IA64_MODE="32"
5609 ;;
5610 *ELF-64*)
5611 HPUX_IA64_MODE="64"
5612 ;;
5613 esac
5614 fi
5615 rm -rf conftest*
5616 ;;
5617*-*-irix6*)
5618 # Find out which ABI we are using.
5619 echo '#line 5619 "configure"' > conftest.$ac_ext
5620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621 (eval $ac_compile) 2>&5
5622 ac_status=$?
5623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); }; then
5625 if test "$lt_cv_prog_gnu_ld" = yes; then
5626 case `/usr/bin/file conftest.$ac_objext` in
5627 *32-bit*)
5628 LD="${LD-ld} -melf32bsmip"
5629 ;;
5630 *N32*)
5631 LD="${LD-ld} -melf32bmipn32"
5632 ;;
5633 *64-bit*)
5634 LD="${LD-ld} -melf64bmip"
5635 ;;
5636 esac
5637 else
5638 case `/usr/bin/file conftest.$ac_objext` in
5639 *32-bit*)
5640 LD="${LD-ld} -32"
5641 ;;
5642 *N32*)
5643 LD="${LD-ld} -n32"
5644 ;;
5645 *64-bit*)
5646 LD="${LD-ld} -64"
5647 ;;
5648 esac
5649 fi
5650 fi
5651 rm -rf conftest*
5652 ;;
5653
5654x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5655s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5656 # Find out which ABI we are using.
5657 echo 'int i;' > conftest.$ac_ext
5658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5659 (eval $ac_compile) 2>&5
5660 ac_status=$?
5661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; then
5663 case `/usr/bin/file conftest.o` in
5664 *32-bit*)
5665 case $host in
5666 x86_64-*kfreebsd*-gnu)
5667 LD="${LD-ld} -m elf_i386_fbsd"
5668 ;;
5669 x86_64-*linux*)
5670 LD="${LD-ld} -m elf_i386"
5671 ;;
5672 ppc64-*linux*|powerpc64-*linux*)
5673 LD="${LD-ld} -m elf32ppclinux"
5674 ;;
5675 s390x-*linux*)
5676 LD="${LD-ld} -m elf_s390"
5677 ;;
5678 sparc64-*linux*)
5679 LD="${LD-ld} -m elf32_sparc"
5680 ;;
5681 esac
5682 ;;
5683 *64-bit*)
5684 case $host in
5685 x86_64-*kfreebsd*-gnu)
5686 LD="${LD-ld} -m elf_x86_64_fbsd"
5687 ;;
5688 x86_64-*linux*)
5689 LD="${LD-ld} -m elf_x86_64"
5690 ;;
5691 ppc*-*linux*|powerpc*-*linux*)
5692 LD="${LD-ld} -m elf64ppc"
5693 ;;
5694 s390*-*linux*|s390*-*tpf*)
5695 LD="${LD-ld} -m elf64_s390"
5696 ;;
5697 sparc*-*linux*)
5698 LD="${LD-ld} -m elf64_sparc"
5699 ;;
5700 esac
5701 ;;
5702 esac
5703 fi
5704 rm -rf conftest*
5705 ;;
5706
5707*-*-sco3.2v5*)
5708 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5709 SAVE_CFLAGS="$CFLAGS"
5710 CFLAGS="$CFLAGS -belf"
5711 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5712$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5713if test "${lt_cv_cc_needs_belf+set}" = set; then
5714 $as_echo_n "(cached) " >&6
d9898ee8 5715else
8d138742
CE
5716 ac_ext=c
5717ac_cpp='$CPP $CPPFLAGS'
5718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5720ac_compiler_gnu=$ac_cv_c_compiler_gnu
5721
5722 cat >conftest.$ac_ext <<_ACEOF
5723/* confdefs.h. */
5724_ACEOF
5725cat confdefs.h >>conftest.$ac_ext
5726cat >>conftest.$ac_ext <<_ACEOF
5727/* end confdefs.h. */
5728
5729int
5730main ()
5731{
5732
5733 ;
5734 return 0;
5735}
5736_ACEOF
5737rm -f conftest.$ac_objext conftest$ac_exeext
5738if { (ac_try="$ac_link"
5739case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742esac
5743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5744$as_echo "$ac_try_echo") >&5
5745 (eval "$ac_link") 2>conftest.er1
5746 ac_status=$?
5747 grep -v '^ *+' conftest.er1 >conftest.err
5748 rm -f conftest.er1
5749 cat conftest.err >&5
5750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && {
5752 test -z "$ac_c_werror_flag" ||
5753 test ! -s conftest.err
5754 } && test -s conftest$ac_exeext && {
5755 test "$cross_compiling" = yes ||
5756 $as_test_x conftest$ac_exeext
5757 }; then
5758 lt_cv_cc_needs_belf=yes
5759else
5760 $as_echo "$as_me: failed program was:" >&5
5761sed 's/^/| /' conftest.$ac_ext >&5
5762
5763 lt_cv_cc_needs_belf=no
5764fi
5765
5766rm -rf conftest.dSYM
5767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5768 conftest$ac_exeext conftest.$ac_ext
5769 ac_ext=c
5770ac_cpp='$CPP $CPPFLAGS'
5771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5773ac_compiler_gnu=$ac_cv_c_compiler_gnu
5774
5775fi
5776{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5777$as_echo "$lt_cv_cc_needs_belf" >&6; }
5778 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5779 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5780 CFLAGS="$SAVE_CFLAGS"
5781 fi
5782 ;;
5783sparc*-*solaris*)
5784 # Find out which ABI we are using.
5785 echo 'int i;' > conftest.$ac_ext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787 (eval $ac_compile) 2>&5
5788 ac_status=$?
5789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; then
5791 case `/usr/bin/file conftest.o` in
5792 *64-bit*)
5793 case $lt_cv_prog_gnu_ld in
5794 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5795 *)
5796 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5797 LD="${LD-ld} -64"
5798 fi
5799 ;;
5800 esac
5801 ;;
5802 esac
5803 fi
5804 rm -rf conftest*
5805 ;;
5806esac
5807
5808need_locks="$enable_libtool_lock"
5809
5810
5811 case $host_os in
5812 rhapsody* | darwin*)
5813 if test -n "$ac_tool_prefix"; then
5814 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5815set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5816{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5817$as_echo_n "checking for $ac_word... " >&6; }
5818if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5819 $as_echo_n "(cached) " >&6
5820else
5821 if test -n "$DSYMUTIL"; then
5822 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
d9898ee8 5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5831 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5832 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5833 break 2
5834 fi
5835done
5836done
dd184caf 5837IFS=$as_save_IFS
d9898ee8 5838
d9898ee8 5839fi
5840fi
8d138742
CE
5841DSYMUTIL=$ac_cv_prog_DSYMUTIL
5842if test -n "$DSYMUTIL"; then
5843 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5844$as_echo "$DSYMUTIL" >&6; }
d9898ee8 5845else
8d138742
CE
5846 { $as_echo "$as_me:$LINENO: result: no" >&5
5847$as_echo "no" >&6; }
d9898ee8 5848fi
5849
8d138742
CE
5850
5851fi
5852if test -z "$ac_cv_prog_DSYMUTIL"; then
5853 ac_ct_DSYMUTIL=$DSYMUTIL
5854 # Extract the first word of "dsymutil", so it can be a program name with args.
5855set dummy dsymutil; ac_word=$2
5856{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5857$as_echo_n "checking for $ac_word... " >&6; }
5858if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5859 $as_echo_n "(cached) " >&6
5860else
5861 if test -n "$ac_ct_DSYMUTIL"; then
5862 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5863else
5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5871 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5872 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875done
5876done
5877IFS=$as_save_IFS
5878
5879fi
5880fi
5881ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5882if test -n "$ac_ct_DSYMUTIL"; then
5883 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5884$as_echo "$ac_ct_DSYMUTIL" >&6; }
5885else
5886 { $as_echo "$as_me:$LINENO: result: no" >&5
5887$as_echo "no" >&6; }
5888fi
5889
5890 if test "x$ac_ct_DSYMUTIL" = x; then
5891 DSYMUTIL=":"
dd184caf 5892 else
5893 case $cross_compiling:$ac_tool_warned in
5894yes:)
8d138742
CE
5895{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5897ac_tool_warned=yes ;;
5898esac
8d138742 5899 DSYMUTIL=$ac_ct_DSYMUTIL
dd184caf 5900 fi
d9898ee8 5901else
8d138742 5902 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
d9898ee8 5903fi
5904
8d138742
CE
5905 if test -n "$ac_tool_prefix"; then
5906 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5907set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5908{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5909$as_echo_n "checking for $ac_word... " >&6; }
5910if test "${ac_cv_prog_NMEDIT+set}" = set; then
5911 $as_echo_n "(cached) " >&6
d9898ee8 5912else
8d138742
CE
5913 if test -n "$NMEDIT"; then
5914 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
d9898ee8 5915else
5916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917for as_dir in $PATH
5918do
5919 IFS=$as_save_IFS
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5923 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5924 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5925 break 2
5926 fi
5927done
5928done
dd184caf 5929IFS=$as_save_IFS
d9898ee8 5930
5931fi
5932fi
8d138742
CE
5933NMEDIT=$ac_cv_prog_NMEDIT
5934if test -n "$NMEDIT"; then
5935 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
5936$as_echo "$NMEDIT" >&6; }
d9898ee8 5937else
8d138742
CE
5938 { $as_echo "$as_me:$LINENO: result: no" >&5
5939$as_echo "no" >&6; }
d9898ee8 5940fi
5941
dd184caf 5942
d9898ee8 5943fi
8d138742
CE
5944if test -z "$ac_cv_prog_NMEDIT"; then
5945 ac_ct_NMEDIT=$NMEDIT
5946 # Extract the first word of "nmedit", so it can be a program name with args.
5947set dummy nmedit; ac_word=$2
5948{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5949$as_echo_n "checking for $ac_word... " >&6; }
5950if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5951 $as_echo_n "(cached) " >&6
d9898ee8 5952else
8d138742
CE
5953 if test -n "$ac_ct_NMEDIT"; then
5954 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
d9898ee8 5955else
5956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957for as_dir in $PATH
5958do
5959 IFS=$as_save_IFS
5960 test -z "$as_dir" && as_dir=.
5961 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 5962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
5963 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5964 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 5965 break 2
5966 fi
5967done
5968done
dd184caf 5969IFS=$as_save_IFS
d9898ee8 5970
d9898ee8 5971fi
5972fi
8d138742
CE
5973ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5974if test -n "$ac_ct_NMEDIT"; then
5975 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5976$as_echo "$ac_ct_NMEDIT" >&6; }
d9898ee8 5977else
8d138742
CE
5978 { $as_echo "$as_me:$LINENO: result: no" >&5
5979$as_echo "no" >&6; }
d9898ee8 5980fi
5981
8d138742
CE
5982 if test "x$ac_ct_NMEDIT" = x; then
5983 NMEDIT=":"
dd184caf 5984 else
5985 case $cross_compiling:$ac_tool_warned in
5986yes:)
8d138742
CE
5987{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 5989ac_tool_warned=yes ;;
5990esac
8d138742 5991 NMEDIT=$ac_ct_NMEDIT
dd184caf 5992 fi
d9898ee8 5993else
8d138742 5994 NMEDIT="$ac_cv_prog_NMEDIT"
d9898ee8 5995fi
5996
8d138742
CE
5997 if test -n "$ac_tool_prefix"; then
5998 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5999set dummy ${ac_tool_prefix}lipo; ac_word=$2
6000{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6001$as_echo_n "checking for $ac_word... " >&6; }
6002if test "${ac_cv_prog_LIPO+set}" = set; then
6003 $as_echo_n "(cached) " >&6
d9898ee8 6004else
8d138742
CE
6005 if test -n "$LIPO"; then
6006 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
d9898ee8 6007else
6008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009for as_dir in $PATH
6010do
6011 IFS=$as_save_IFS
6012 test -z "$as_dir" && as_dir=.
6013 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6015 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6016 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6017 break 2
6018 fi
6019done
6020done
dd184caf 6021IFS=$as_save_IFS
d9898ee8 6022
6023fi
6024fi
8d138742
CE
6025LIPO=$ac_cv_prog_LIPO
6026if test -n "$LIPO"; then
6027 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
6028$as_echo "$LIPO" >&6; }
d9898ee8 6029else
8d138742
CE
6030 { $as_echo "$as_me:$LINENO: result: no" >&5
6031$as_echo "no" >&6; }
d9898ee8 6032fi
6033
dd184caf 6034
d9898ee8 6035fi
8d138742
CE
6036if test -z "$ac_cv_prog_LIPO"; then
6037 ac_ct_LIPO=$LIPO
6038 # Extract the first word of "lipo", so it can be a program name with args.
6039set dummy lipo; ac_word=$2
6040{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6041$as_echo_n "checking for $ac_word... " >&6; }
6042if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6043 $as_echo_n "(cached) " >&6
d9898ee8 6044else
8d138742
CE
6045 if test -n "$ac_ct_LIPO"; then
6046 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
d9898ee8 6047else
6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH
6050do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
dd184caf 6054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8d138742
CE
6055 ac_cv_prog_ac_ct_LIPO="lipo"
6056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
d9898ee8 6057 break 2
6058 fi
6059done
6060done
dd184caf 6061IFS=$as_save_IFS
d9898ee8 6062
d9898ee8 6063fi
6064fi
8d138742
CE
6065ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6066if test -n "$ac_ct_LIPO"; then
6067 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6068$as_echo "$ac_ct_LIPO" >&6; }
d9898ee8 6069else
8d138742
CE
6070 { $as_echo "$as_me:$LINENO: result: no" >&5
6071$as_echo "no" >&6; }
d9898ee8 6072fi
6073
8d138742
CE
6074 if test "x$ac_ct_LIPO" = x; then
6075 LIPO=":"
dd184caf 6076 else
6077 case $cross_compiling:$ac_tool_warned in
6078yes:)
8d138742
CE
6079{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
dd184caf 6081ac_tool_warned=yes ;;
6082esac
8d138742 6083 LIPO=$ac_ct_LIPO
dd184caf 6084 fi
d9898ee8 6085else
8d138742 6086 LIPO="$ac_cv_prog_LIPO"
d9898ee8 6087fi
6088
8d138742
CE
6089 if test -n "$ac_tool_prefix"; then
6090 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6091set dummy ${ac_tool_prefix}otool; ac_word=$2
6092{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6093$as_echo_n "checking for $ac_word... " >&6; }
6094if test "${ac_cv_prog_OTOOL+set}" = set; then
6095 $as_echo_n "(cached) " >&6
6096else
6097 if test -n "$OTOOL"; then
6098 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6099else
6100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101for as_dir in $PATH
6102do
6103 IFS=$as_save_IFS
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6108 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6109 break 2
6110 fi
6111done
6112done
6113IFS=$as_save_IFS
d9898ee8 6114
d9898ee8 6115fi
8d138742
CE
6116fi
6117OTOOL=$ac_cv_prog_OTOOL
6118if test -n "$OTOOL"; then
6119 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
6120$as_echo "$OTOOL" >&6; }
6121else
6122 { $as_echo "$as_me:$LINENO: result: no" >&5
6123$as_echo "no" >&6; }
6124fi
d9898ee8 6125
6126
8d138742
CE
6127fi
6128if test -z "$ac_cv_prog_OTOOL"; then
6129 ac_ct_OTOOL=$OTOOL
6130 # Extract the first word of "otool", so it can be a program name with args.
6131set dummy otool; ac_word=$2
6132{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6133$as_echo_n "checking for $ac_word... " >&6; }
6134if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6135 $as_echo_n "(cached) " >&6
d9898ee8 6136else
8d138742
CE
6137 if test -n "$ac_ct_OTOOL"; then
6138 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_exec_ext in '' $ac_executable_extensions; do
6146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147 ac_cv_prog_ac_ct_OTOOL="otool"
6148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6149 break 2
6150 fi
6151done
6152done
6153IFS=$as_save_IFS
d9898ee8 6154
8d138742
CE
6155fi
6156fi
6157ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6158if test -n "$ac_ct_OTOOL"; then
6159 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6160$as_echo "$ac_ct_OTOOL" >&6; }
6161else
6162 { $as_echo "$as_me:$LINENO: result: no" >&5
6163$as_echo "no" >&6; }
6164fi
d9898ee8 6165
8d138742
CE
6166 if test "x$ac_ct_OTOOL" = x; then
6167 OTOOL=":"
6168 else
6169 case $cross_compiling:$ac_tool_warned in
6170yes:)
6171{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6173ac_tool_warned=yes ;;
d9898ee8 6174esac
8d138742
CE
6175 OTOOL=$ac_ct_OTOOL
6176 fi
6177else
6178 OTOOL="$ac_cv_prog_OTOOL"
d9898ee8 6179fi
6180
8d138742
CE
6181 if test -n "$ac_tool_prefix"; then
6182 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6183set dummy ${ac_tool_prefix}otool64; ac_word=$2
6184{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6185$as_echo_n "checking for $ac_word... " >&6; }
6186if test "${ac_cv_prog_OTOOL64+set}" = set; then
6187 $as_echo_n "(cached) " >&6
d9898ee8 6188else
8d138742
CE
6189 if test -n "$OTOOL64"; then
6190 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6191else
6192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193for as_dir in $PATH
6194do
6195 IFS=$as_save_IFS
6196 test -z "$as_dir" && as_dir=.
6197 for ac_exec_ext in '' $ac_executable_extensions; do
6198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6199 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6201 break 2
6202 fi
6203done
6204done
6205IFS=$as_save_IFS
d9898ee8 6206
8d138742
CE
6207fi
6208fi
6209OTOOL64=$ac_cv_prog_OTOOL64
6210if test -n "$OTOOL64"; then
6211 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
6212$as_echo "$OTOOL64" >&6; }
d9898ee8 6213else
8d138742
CE
6214 { $as_echo "$as_me:$LINENO: result: no" >&5
6215$as_echo "no" >&6; }
6216fi
d9898ee8 6217
d9898ee8 6218
d9898ee8 6219fi
8d138742
CE
6220if test -z "$ac_cv_prog_OTOOL64"; then
6221 ac_ct_OTOOL64=$OTOOL64
6222 # Extract the first word of "otool64", so it can be a program name with args.
6223set dummy otool64; ac_word=$2
6224{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6225$as_echo_n "checking for $ac_word... " >&6; }
6226if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6227 $as_echo_n "(cached) " >&6
6228else
6229 if test -n "$ac_ct_OTOOL64"; then
6230 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6231else
6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_ac_ct_OTOOL64="otool64"
6240 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243done
6244done
6245IFS=$as_save_IFS
d9898ee8 6246
8d138742
CE
6247fi
6248fi
6249ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6250if test -n "$ac_ct_OTOOL64"; then
6251 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6252$as_echo "$ac_ct_OTOOL64" >&6; }
d9898ee8 6253else
8d138742
CE
6254 { $as_echo "$as_me:$LINENO: result: no" >&5
6255$as_echo "no" >&6; }
d9898ee8 6256fi
6257
8d138742
CE
6258 if test "x$ac_ct_OTOOL64" = x; then
6259 OTOOL64=":"
d9898ee8 6260 else
8d138742
CE
6261 case $cross_compiling:$ac_tool_warned in
6262yes:)
6263{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265ac_tool_warned=yes ;;
6266esac
6267 OTOOL64=$ac_ct_OTOOL64
d9898ee8 6268 fi
8d138742
CE
6269else
6270 OTOOL64="$ac_cv_prog_OTOOL64"
d9898ee8 6271fi
6272
d9898ee8 6273
d9898ee8 6274
d9898ee8 6275
d9898ee8 6276
6277
dd184caf 6278
d9898ee8 6279
d9898ee8 6280
6281
d9898ee8 6282
d9898ee8 6283
d9898ee8 6284
d9898ee8 6285
6286
d9898ee8 6287
d9898ee8 6288
d9898ee8 6289
6290
d9898ee8 6291
6292
d9898ee8 6293
d9898ee8 6294
d9898ee8 6295
6296
d9898ee8 6297
d9898ee8 6298
8d138742
CE
6299 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6300$as_echo_n "checking for -single_module linker flag... " >&6; }
6301if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6302 $as_echo_n "(cached) " >&6
d9898ee8 6303else
8d138742
CE
6304 lt_cv_apple_cc_single_mod=no
6305 if test -z "${LT_MULTI_MODULE}"; then
6306 # By default we will add the -single_module flag. You can override
6307 # by either setting the environment variable LT_MULTI_MODULE
6308 # non-empty at configure time, or by adding -multi_module to the
6309 # link flags.
6310 rm -rf libconftest.dylib*
6311 echo "int foo(void){return 1;}" > conftest.c
6312 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6313-dynamiclib -Wl,-single_module conftest.c" >&5
6314 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6315 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6316 _lt_result=$?
6317 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6318 lt_cv_apple_cc_single_mod=yes
6319 else
6320 cat conftest.err >&5
6321 fi
6322 rm -rf libconftest.dylib*
6323 rm -f conftest.*
6324 fi
d9898ee8 6325fi
8d138742
CE
6326{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6327$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6328 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6329$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6330if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6331 $as_echo_n "(cached) " >&6
6332else
6333 lt_cv_ld_exported_symbols_list=no
6334 save_LDFLAGS=$LDFLAGS
6335 echo "_main" > conftest.sym
6336 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6337 cat >conftest.$ac_ext <<_ACEOF
6338/* confdefs.h. */
6339_ACEOF
6340cat confdefs.h >>conftest.$ac_ext
6341cat >>conftest.$ac_ext <<_ACEOF
6342/* end confdefs.h. */
d9898ee8 6343
8d138742
CE
6344int
6345main ()
6346{
d9898ee8 6347
8d138742
CE
6348 ;
6349 return 0;
6350}
6351_ACEOF
6352rm -f conftest.$ac_objext conftest$ac_exeext
6353if { (ac_try="$ac_link"
6354case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357esac
6358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6359$as_echo "$ac_try_echo") >&5
6360 (eval "$ac_link") 2>conftest.er1
6361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
6365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); } && {
6367 test -z "$ac_c_werror_flag" ||
6368 test ! -s conftest.err
6369 } && test -s conftest$ac_exeext && {
6370 test "$cross_compiling" = yes ||
6371 $as_test_x conftest$ac_exeext
6372 }; then
6373 lt_cv_ld_exported_symbols_list=yes
6374else
6375 $as_echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6377
8d138742
CE
6378 lt_cv_ld_exported_symbols_list=no
6379fi
d9898ee8 6380
8d138742
CE
6381rm -rf conftest.dSYM
6382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6383 conftest$ac_exeext conftest.$ac_ext
6384 LDFLAGS="$save_LDFLAGS"
d9898ee8 6385
8d138742
CE
6386fi
6387{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6388$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
d9898ee8 6389 case $host_os in
8d138742
CE
6390 rhapsody* | darwin1.[012])
6391 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6392 darwin1.*)
6393 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6394 darwin*) # darwin 5.x on
6395 # if running on 10.5 or later, the deployment target defaults
6396 # to the OS version, if on x86, and 10.4, the deployment
6397 # target defaults to 10.4. Don't you love it?
6398 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6399 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6400 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6401 10.[012]*)
6402 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6403 10.*)
6404 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6405 esac
6406 ;;
6407 esac
6408 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6409 _lt_dar_single_mod='$single_module'
6410 fi
6411 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6412 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6413 else
6414 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6415 fi
6416 if test "$DSYMUTIL" != ":"; then
6417 _lt_dsymutil='~$DSYMUTIL $lib || :'
6418 else
6419 _lt_dsymutil=
6420 fi
6421 ;;
6422 esac
d9898ee8 6423
8d138742
CE
6424ac_ext=c
6425ac_cpp='$CPP $CPPFLAGS'
6426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6428ac_compiler_gnu=$ac_cv_c_compiler_gnu
6429{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6430$as_echo_n "checking how to run the C preprocessor... " >&6; }
6431# On Suns, sometimes $CPP names a directory.
6432if test -n "$CPP" && test -d "$CPP"; then
6433 CPP=
6434fi
6435if test -z "$CPP"; then
6436 if test "${ac_cv_prog_CPP+set}" = set; then
6437 $as_echo_n "(cached) " >&6
6438else
6439 # Double quotes because CPP needs to be expanded
6440 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6441 do
6442 ac_preproc_ok=false
6443for ac_c_preproc_warn_flag in '' yes
6444do
6445 # Use a header file that comes with gcc, so configuring glibc
6446 # with a fresh cross-compiler works.
6447 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6448 # <limits.h> exists even on freestanding compilers.
6449 # On the NeXT, cc -E runs the code through the compiler's parser,
6450 # not just through cpp. "Syntax error" is here to catch this case.
6451 cat >conftest.$ac_ext <<_ACEOF
6452/* confdefs.h. */
6453_ACEOF
6454cat confdefs.h >>conftest.$ac_ext
6455cat >>conftest.$ac_ext <<_ACEOF
6456/* end confdefs.h. */
6457#ifdef __STDC__
6458# include <limits.h>
6459#else
6460# include <assert.h>
6461#endif
6462 Syntax error
6463_ACEOF
6464if { (ac_try="$ac_cpp conftest.$ac_ext"
6465case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6468esac
6469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6470$as_echo "$ac_try_echo") >&5
6471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6472 ac_status=$?
6473 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -f conftest.er1
6475 cat conftest.err >&5
6476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } >/dev/null && {
6478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6479 test ! -s conftest.err
6480 }; then
6481 :
6482else
6483 $as_echo "$as_me: failed program was:" >&5
6484sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6485
8d138742
CE
6486 # Broken: fails on valid input.
6487continue
6488fi
d9898ee8 6489
8d138742 6490rm -f conftest.err conftest.$ac_ext
d9898ee8 6491
8d138742
CE
6492 # OK, works on sane cases. Now check whether nonexistent headers
6493 # can be detected and how.
6494 cat >conftest.$ac_ext <<_ACEOF
6495/* confdefs.h. */
6496_ACEOF
6497cat confdefs.h >>conftest.$ac_ext
6498cat >>conftest.$ac_ext <<_ACEOF
6499/* end confdefs.h. */
6500#include <ac_nonexistent.h>
6501_ACEOF
6502if { (ac_try="$ac_cpp conftest.$ac_ext"
6503case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6506esac
6507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6508$as_echo "$ac_try_echo") >&5
6509 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6510 ac_status=$?
6511 grep -v '^ *+' conftest.er1 >conftest.err
6512 rm -f conftest.er1
6513 cat conftest.err >&5
6514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); } >/dev/null && {
6516 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6517 test ! -s conftest.err
6518 }; then
6519 # Broken: success on invalid input.
6520continue
6521else
6522 $as_echo "$as_me: failed program was:" >&5
6523sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6524
8d138742
CE
6525 # Passes both tests.
6526ac_preproc_ok=:
6527break
6528fi
d9898ee8 6529
8d138742 6530rm -f conftest.err conftest.$ac_ext
d9898ee8 6531
8d138742
CE
6532done
6533# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6534rm -f conftest.err conftest.$ac_ext
6535if $ac_preproc_ok; then
6536 break
6537fi
d9898ee8 6538
8d138742
CE
6539 done
6540 ac_cv_prog_CPP=$CPP
d9898ee8 6541
8d138742
CE
6542fi
6543 CPP=$ac_cv_prog_CPP
6544else
6545 ac_cv_prog_CPP=$CPP
6546fi
6547{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
6548$as_echo "$CPP" >&6; }
6549ac_preproc_ok=false
6550for ac_c_preproc_warn_flag in '' yes
6551do
6552 # Use a header file that comes with gcc, so configuring glibc
6553 # with a fresh cross-compiler works.
6554 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6555 # <limits.h> exists even on freestanding compilers.
6556 # On the NeXT, cc -E runs the code through the compiler's parser,
6557 # not just through cpp. "Syntax error" is here to catch this case.
6558 cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h. */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
6563/* end confdefs.h. */
6564#ifdef __STDC__
6565# include <limits.h>
6566#else
6567# include <assert.h>
6568#endif
6569 Syntax error
6570_ACEOF
6571if { (ac_try="$ac_cpp conftest.$ac_ext"
6572case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575esac
6576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6577$as_echo "$ac_try_echo") >&5
6578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6579 ac_status=$?
6580 grep -v '^ *+' conftest.er1 >conftest.err
6581 rm -f conftest.er1
6582 cat conftest.err >&5
6583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); } >/dev/null && {
6585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6586 test ! -s conftest.err
6587 }; then
6588 :
6589else
6590 $as_echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6592
8d138742
CE
6593 # Broken: fails on valid input.
6594continue
6595fi
d9898ee8 6596
8d138742 6597rm -f conftest.err conftest.$ac_ext
d9898ee8 6598
8d138742
CE
6599 # OK, works on sane cases. Now check whether nonexistent headers
6600 # can be detected and how.
6601 cat >conftest.$ac_ext <<_ACEOF
6602/* confdefs.h. */
6603_ACEOF
6604cat confdefs.h >>conftest.$ac_ext
6605cat >>conftest.$ac_ext <<_ACEOF
6606/* end confdefs.h. */
6607#include <ac_nonexistent.h>
6608_ACEOF
6609if { (ac_try="$ac_cpp conftest.$ac_ext"
6610case "(($ac_try" in
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6613esac
6614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6615$as_echo "$ac_try_echo") >&5
6616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6617 ac_status=$?
6618 grep -v '^ *+' conftest.er1 >conftest.err
6619 rm -f conftest.er1
6620 cat conftest.err >&5
6621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } >/dev/null && {
6623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6625 }; then
6626 # Broken: success on invalid input.
6627continue
6628else
6629 $as_echo "$as_me: failed program was:" >&5
6630sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6631
8d138742
CE
6632 # Passes both tests.
6633ac_preproc_ok=:
6634break
6635fi
d9898ee8 6636
8d138742 6637rm -f conftest.err conftest.$ac_ext
ac40fd9e 6638
8d138742
CE
6639done
6640# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6641rm -f conftest.err conftest.$ac_ext
6642if $ac_preproc_ok; then
6643 :
6644else
6645 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6647{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6648See \`config.log' for more details." >&5
6649$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6650See \`config.log' for more details." >&2;}
6651 { (exit 1); exit 1; }; }; }
6652fi
d9898ee8 6653
8d138742
CE
6654ac_ext=c
6655ac_cpp='$CPP $CPPFLAGS'
6656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6658ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 6659
d9898ee8 6660
8d138742
CE
6661{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6662$as_echo_n "checking for ANSI C header files... " >&6; }
6663if test "${ac_cv_header_stdc+set}" = set; then
6664 $as_echo_n "(cached) " >&6
6665else
6666 cat >conftest.$ac_ext <<_ACEOF
6667/* confdefs.h. */
6668_ACEOF
6669cat confdefs.h >>conftest.$ac_ext
6670cat >>conftest.$ac_ext <<_ACEOF
6671/* end confdefs.h. */
6672#include <stdlib.h>
6673#include <stdarg.h>
6674#include <string.h>
6675#include <float.h>
d9898ee8 6676
8d138742
CE
6677int
6678main ()
6679{
d9898ee8 6680
8d138742
CE
6681 ;
6682 return 0;
6683}
6684_ACEOF
6685rm -f conftest.$ac_objext
6686if { (ac_try="$ac_compile"
6687case "(($ac_try" in
6688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6689 *) ac_try_echo=$ac_try;;
6690esac
6691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6692$as_echo "$ac_try_echo") >&5
6693 (eval "$ac_compile") 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && {
6700 test -z "$ac_c_werror_flag" ||
6701 test ! -s conftest.err
6702 } && test -s conftest.$ac_objext; then
6703 ac_cv_header_stdc=yes
6704else
6705 $as_echo "$as_me: failed program was:" >&5
6706sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6707
8d138742
CE
6708 ac_cv_header_stdc=no
6709fi
d9898ee8 6710
8d138742 6711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 6712
8d138742
CE
6713if test $ac_cv_header_stdc = yes; then
6714 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6715 cat >conftest.$ac_ext <<_ACEOF
6716/* confdefs.h. */
6717_ACEOF
6718cat confdefs.h >>conftest.$ac_ext
6719cat >>conftest.$ac_ext <<_ACEOF
6720/* end confdefs.h. */
6721#include <string.h>
d9898ee8 6722
8d138742
CE
6723_ACEOF
6724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6725 $EGREP "memchr" >/dev/null 2>&1; then
6726 :
d9898ee8 6727else
8d138742
CE
6728 ac_cv_header_stdc=no
6729fi
6730rm -f conftest*
d9898ee8 6731
6732fi
d9898ee8 6733
8d138742
CE
6734if test $ac_cv_header_stdc = yes; then
6735 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6736 cat >conftest.$ac_ext <<_ACEOF
6737/* confdefs.h. */
6738_ACEOF
6739cat confdefs.h >>conftest.$ac_ext
6740cat >>conftest.$ac_ext <<_ACEOF
6741/* end confdefs.h. */
6742#include <stdlib.h>
6743
6744_ACEOF
6745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6746 $EGREP "free" >/dev/null 2>&1; then
6747 :
d9898ee8 6748else
8d138742 6749 ac_cv_header_stdc=no
d9898ee8 6750fi
8d138742 6751rm -f conftest*
d9898ee8 6752
6753fi
d9898ee8 6754
8d138742
CE
6755if test $ac_cv_header_stdc = yes; then
6756 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6757 if test "$cross_compiling" = yes; then
6758 :
d9898ee8 6759else
8d138742
CE
6760 cat >conftest.$ac_ext <<_ACEOF
6761/* confdefs.h. */
6762_ACEOF
6763cat confdefs.h >>conftest.$ac_ext
6764cat >>conftest.$ac_ext <<_ACEOF
6765/* end confdefs.h. */
6766#include <ctype.h>
6767#include <stdlib.h>
6768#if ((' ' & 0x0FF) == 0x020)
6769# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6770# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6771#else
6772# define ISLOWER(c) \
6773 (('a' <= (c) && (c) <= 'i') \
6774 || ('j' <= (c) && (c) <= 'r') \
6775 || ('s' <= (c) && (c) <= 'z'))
6776# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6777#endif
6778
6779#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6780int
6781main ()
6782{
6783 int i;
6784 for (i = 0; i < 256; i++)
6785 if (XOR (islower (i), ISLOWER (i))
6786 || toupper (i) != TOUPPER (i))
6787 return 2;
6788 return 0;
6789}
6790_ACEOF
6791rm -f conftest$ac_exeext
6792if { (ac_try="$ac_link"
6793case "(($ac_try" in
6794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6795 *) ac_try_echo=$ac_try;;
6796esac
6797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6798$as_echo "$ac_try_echo") >&5
6799 (eval "$ac_link") 2>&5
6800 ac_status=$?
6801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6803 { (case "(($ac_try" in
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6806esac
6807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6808$as_echo "$ac_try_echo") >&5
6809 (eval "$ac_try") 2>&5
6810 ac_status=$?
6811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; }; then
6813 :
6814else
6815 $as_echo "$as_me: program exited with status $ac_status" >&5
6816$as_echo "$as_me: failed program was:" >&5
6817sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6818
8d138742
CE
6819( exit $ac_status )
6820ac_cv_header_stdc=no
6821fi
6822rm -rf conftest.dSYM
6823rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d9898ee8 6824fi
d9898ee8 6825
8d138742
CE
6826
6827fi
6828fi
6829{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6830$as_echo "$ac_cv_header_stdc" >&6; }
6831if test $ac_cv_header_stdc = yes; then
6832
6833cat >>confdefs.h <<\_ACEOF
6834#define STDC_HEADERS 1
6835_ACEOF
6836
d9898ee8 6837fi
6838
8d138742
CE
6839# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6840
d9898ee8 6841
8d138742
CE
6842
6843
6844
6845
6846
6847
6848
6849for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6850 inttypes.h stdint.h unistd.h
6851do
6852as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6853{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6854$as_echo_n "checking for $ac_header... " >&6; }
6855if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6856 $as_echo_n "(cached) " >&6
d9898ee8 6857else
8d138742
CE
6858 cat >conftest.$ac_ext <<_ACEOF
6859/* confdefs.h. */
6860_ACEOF
6861cat confdefs.h >>conftest.$ac_ext
6862cat >>conftest.$ac_ext <<_ACEOF
6863/* end confdefs.h. */
6864$ac_includes_default
d9898ee8 6865
8d138742
CE
6866#include <$ac_header>
6867_ACEOF
6868rm -f conftest.$ac_objext
6869if { (ac_try="$ac_compile"
6870case "(($ac_try" in
6871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6872 *) ac_try_echo=$ac_try;;
6873esac
6874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6875$as_echo "$ac_try_echo") >&5
6876 (eval "$ac_compile") 2>conftest.er1
6877 ac_status=$?
6878 grep -v '^ *+' conftest.er1 >conftest.err
6879 rm -f conftest.er1
6880 cat conftest.err >&5
6881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } && {
6883 test -z "$ac_c_werror_flag" ||
6884 test ! -s conftest.err
6885 } && test -s conftest.$ac_objext; then
6886 eval "$as_ac_Header=yes"
6887else
6888 $as_echo "$as_me: failed program was:" >&5
6889sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6890
8d138742 6891 eval "$as_ac_Header=no"
d9898ee8 6892fi
d9898ee8 6893
8d138742
CE
6894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6895fi
6896ac_res=`eval 'as_val=${'$as_ac_Header'}
6897 $as_echo "$as_val"'`
6898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6899$as_echo "$ac_res" >&6; }
6900as_val=`eval 'as_val=${'$as_ac_Header'}
6901 $as_echo "$as_val"'`
6902 if test "x$as_val" = x""yes; then
6903 cat >>confdefs.h <<_ACEOF
6904#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6905_ACEOF
d9898ee8 6906
d9898ee8 6907fi
6908
8d138742 6909done
d9898ee8 6910
d9898ee8 6911
d9898ee8 6912
8d138742
CE
6913for ac_header in dlfcn.h
6914do
6915as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6916{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6917$as_echo_n "checking for $ac_header... " >&6; }
6918if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6919 $as_echo_n "(cached) " >&6
6920else
6921 cat >conftest.$ac_ext <<_ACEOF
6922/* confdefs.h. */
6923_ACEOF
6924cat confdefs.h >>conftest.$ac_ext
6925cat >>conftest.$ac_ext <<_ACEOF
6926/* end confdefs.h. */
6927$ac_includes_default
d9898ee8 6928
8d138742
CE
6929#include <$ac_header>
6930_ACEOF
6931rm -f conftest.$ac_objext
6932if { (ac_try="$ac_compile"
6933case "(($ac_try" in
6934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6935 *) ac_try_echo=$ac_try;;
6936esac
6937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6938$as_echo "$ac_try_echo") >&5
6939 (eval "$ac_compile") 2>conftest.er1
6940 ac_status=$?
6941 grep -v '^ *+' conftest.er1 >conftest.err
6942 rm -f conftest.er1
6943 cat conftest.err >&5
6944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } && {
6946 test -z "$ac_c_werror_flag" ||
6947 test ! -s conftest.err
6948 } && test -s conftest.$ac_objext; then
6949 eval "$as_ac_Header=yes"
6950else
6951 $as_echo "$as_me: failed program was:" >&5
6952sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 6953
8d138742
CE
6954 eval "$as_ac_Header=no"
6955fi
d9898ee8 6956
8d138742
CE
6957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6958fi
6959ac_res=`eval 'as_val=${'$as_ac_Header'}
6960 $as_echo "$as_val"'`
6961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6962$as_echo "$ac_res" >&6; }
6963as_val=`eval 'as_val=${'$as_ac_Header'}
6964 $as_echo "$as_val"'`
6965 if test "x$as_val" = x""yes; then
6966 cat >>confdefs.h <<_ACEOF
6967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6968_ACEOF
d9898ee8 6969
8d138742 6970fi
d9898ee8 6971
8d138742 6972done
d9898ee8 6973
d9898ee8 6974
d9898ee8 6975
8d138742
CE
6976# Set options
6977enable_dlopen=yes
6978enable_win32_dll=yes
d9898ee8 6979
8d138742
CE
6980case $host in
6981*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
6982 if test -n "$ac_tool_prefix"; then
6983 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6984set dummy ${ac_tool_prefix}as; ac_word=$2
6985{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6986$as_echo_n "checking for $ac_word... " >&6; }
6987if test "${ac_cv_prog_AS+set}" = set; then
6988 $as_echo_n "(cached) " >&6
6989else
6990 if test -n "$AS"; then
6991 ac_cv_prog_AS="$AS" # Let the user override the test.
6992else
6993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6994for as_dir in $PATH
6995do
6996 IFS=$as_save_IFS
6997 test -z "$as_dir" && as_dir=.
6998 for ac_exec_ext in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_prog_AS="${ac_tool_prefix}as"
7001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 break 2
7003 fi
7004done
7005done
7006IFS=$as_save_IFS
d9898ee8 7007
8d138742
CE
7008fi
7009fi
7010AS=$ac_cv_prog_AS
7011if test -n "$AS"; then
7012 { $as_echo "$as_me:$LINENO: result: $AS" >&5
7013$as_echo "$AS" >&6; }
7014else
7015 { $as_echo "$as_me:$LINENO: result: no" >&5
7016$as_echo "no" >&6; }
7017fi
d9898ee8 7018
d9898ee8 7019
8d138742
CE
7020fi
7021if test -z "$ac_cv_prog_AS"; then
7022 ac_ct_AS=$AS
7023 # Extract the first word of "as", so it can be a program name with args.
7024set dummy as; ac_word=$2
7025{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7026$as_echo_n "checking for $ac_word... " >&6; }
7027if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
7028 $as_echo_n "(cached) " >&6
7029else
7030 if test -n "$ac_ct_AS"; then
7031 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7032else
7033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034for as_dir in $PATH
7035do
7036 IFS=$as_save_IFS
7037 test -z "$as_dir" && as_dir=.
7038 for ac_exec_ext in '' $ac_executable_extensions; do
7039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7040 ac_cv_prog_ac_ct_AS="as"
7041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 break 2
7043 fi
7044done
7045done
7046IFS=$as_save_IFS
d9898ee8 7047
8d138742
CE
7048fi
7049fi
7050ac_ct_AS=$ac_cv_prog_ac_ct_AS
7051if test -n "$ac_ct_AS"; then
7052 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7053$as_echo "$ac_ct_AS" >&6; }
7054else
7055 { $as_echo "$as_me:$LINENO: result: no" >&5
7056$as_echo "no" >&6; }
7057fi
d9898ee8 7058
8d138742
CE
7059 if test "x$ac_ct_AS" = x; then
7060 AS="false"
7061 else
7062 case $cross_compiling:$ac_tool_warned in
7063yes:)
7064{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7066ac_tool_warned=yes ;;
7067esac
7068 AS=$ac_ct_AS
7069 fi
7070else
7071 AS="$ac_cv_prog_AS"
7072fi
d9898ee8 7073
8d138742
CE
7074 if test -n "$ac_tool_prefix"; then
7075 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7076set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7077{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7078$as_echo_n "checking for $ac_word... " >&6; }
7079if test "${ac_cv_prog_DLLTOOL+set}" = set; then
7080 $as_echo_n "(cached) " >&6
7081else
7082 if test -n "$DLLTOOL"; then
7083 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7084else
7085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086for as_dir in $PATH
7087do
7088 IFS=$as_save_IFS
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7092 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7093 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7094 break 2
7095 fi
7096done
7097done
7098IFS=$as_save_IFS
d9898ee8 7099
8d138742
CE
7100fi
7101fi
7102DLLTOOL=$ac_cv_prog_DLLTOOL
7103if test -n "$DLLTOOL"; then
7104 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
7105$as_echo "$DLLTOOL" >&6; }
7106else
7107 { $as_echo "$as_me:$LINENO: result: no" >&5
7108$as_echo "no" >&6; }
7109fi
d9898ee8 7110
d9898ee8 7111
8d138742
CE
7112fi
7113if test -z "$ac_cv_prog_DLLTOOL"; then
7114 ac_ct_DLLTOOL=$DLLTOOL
7115 # Extract the first word of "dlltool", so it can be a program name with args.
7116set dummy dlltool; ac_word=$2
7117{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7118$as_echo_n "checking for $ac_word... " >&6; }
7119if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
7120 $as_echo_n "(cached) " >&6
7121else
7122 if test -n "$ac_ct_DLLTOOL"; then
7123 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7124else
7125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126for as_dir in $PATH
7127do
7128 IFS=$as_save_IFS
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7132 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7133 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 break 2
7135 fi
7136done
7137done
7138IFS=$as_save_IFS
d9898ee8 7139
8d138742
CE
7140fi
7141fi
7142ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7143if test -n "$ac_ct_DLLTOOL"; then
7144 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
7145$as_echo "$ac_ct_DLLTOOL" >&6; }
7146else
7147 { $as_echo "$as_me:$LINENO: result: no" >&5
7148$as_echo "no" >&6; }
7149fi
d9898ee8 7150
8d138742
CE
7151 if test "x$ac_ct_DLLTOOL" = x; then
7152 DLLTOOL="false"
d9898ee8 7153 else
8d138742
CE
7154 case $cross_compiling:$ac_tool_warned in
7155yes:)
7156{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7158ac_tool_warned=yes ;;
7159esac
7160 DLLTOOL=$ac_ct_DLLTOOL
7161 fi
7162else
7163 DLLTOOL="$ac_cv_prog_DLLTOOL"
7164fi
d9898ee8 7165
8d138742
CE
7166 if test -n "$ac_tool_prefix"; then
7167 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7168set dummy ${ac_tool_prefix}objdump; ac_word=$2
7169{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7170$as_echo_n "checking for $ac_word... " >&6; }
7171if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7172 $as_echo_n "(cached) " >&6
7173else
7174 if test -n "$OBJDUMP"; then
7175 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7176else
7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180 IFS=$as_save_IFS
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 break 2
7187 fi
7188done
7189done
7190IFS=$as_save_IFS
d9898ee8 7191
8d138742
CE
7192fi
7193fi
7194OBJDUMP=$ac_cv_prog_OBJDUMP
7195if test -n "$OBJDUMP"; then
7196 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7197$as_echo "$OBJDUMP" >&6; }
7198else
7199 { $as_echo "$as_me:$LINENO: result: no" >&5
7200$as_echo "no" >&6; }
7201fi
d9898ee8 7202
d9898ee8 7203
8d138742
CE
7204fi
7205if test -z "$ac_cv_prog_OBJDUMP"; then
7206 ac_ct_OBJDUMP=$OBJDUMP
7207 # Extract the first word of "objdump", so it can be a program name with args.
7208set dummy objdump; ac_word=$2
7209{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7210$as_echo_n "checking for $ac_word... " >&6; }
7211if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7212 $as_echo_n "(cached) " >&6
7213else
7214 if test -n "$ac_ct_OBJDUMP"; then
7215 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7216else
7217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218for as_dir in $PATH
7219do
7220 IFS=$as_save_IFS
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7224 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 break 2
7227 fi
7228done
7229done
7230IFS=$as_save_IFS
d9898ee8 7231
8d138742
CE
7232fi
7233fi
7234ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7235if test -n "$ac_ct_OBJDUMP"; then
7236 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7237$as_echo "$ac_ct_OBJDUMP" >&6; }
7238else
7239 { $as_echo "$as_me:$LINENO: result: no" >&5
7240$as_echo "no" >&6; }
7241fi
d9898ee8 7242
8d138742
CE
7243 if test "x$ac_ct_OBJDUMP" = x; then
7244 OBJDUMP="false"
d9898ee8 7245 else
8d138742
CE
7246 case $cross_compiling:$ac_tool_warned in
7247yes:)
7248{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7249$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250ac_tool_warned=yes ;;
7251esac
7252 OBJDUMP=$ac_ct_OBJDUMP
d9898ee8 7253 fi
8d138742
CE
7254else
7255 OBJDUMP="$ac_cv_prog_OBJDUMP"
7256fi
d9898ee8 7257
d9898ee8 7258 ;;
8d138742 7259esac
d9898ee8 7260
8d138742 7261test -z "$AS" && AS=as
d9898ee8 7262
ac40fd9e 7263
d9898ee8 7264
d9898ee8 7265
d9898ee8 7266
8d138742 7267test -z "$DLLTOOL" && DLLTOOL=dlltool
d9898ee8 7268
d9898ee8 7269
d9898ee8 7270
d9898ee8 7271
8d138742
CE
7272
7273test -z "$OBJDUMP" && OBJDUMP=objdump
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283 # Check whether --enable-shared was given.
7284if test "${enable_shared+set}" = set; then
7285 enableval=$enable_shared; p=${PACKAGE-default}
7286 case $enableval in
7287 yes) enable_shared=yes ;;
7288 no) enable_shared=no ;;
7289 *)
7290 enable_shared=no
7291 # Look at the argument we got. We use all the common list separators.
7292 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7293 for pkg in $enableval; do
7294 IFS="$lt_save_ifs"
7295 if test "X$pkg" = "X$p"; then
7296 enable_shared=yes
7297 fi
7298 done
7299 IFS="$lt_save_ifs"
7300 ;;
7301 esac
7302else
7303 enable_shared=yes
d9898ee8 7304fi
7305
d9898ee8 7306
8d138742
CE
7307
7308
7309
7310
7311
7312
7313
7314 # Check whether --enable-static was given.
7315if test "${enable_static+set}" = set; then
7316 enableval=$enable_static; p=${PACKAGE-default}
7317 case $enableval in
7318 yes) enable_static=yes ;;
7319 no) enable_static=no ;;
7320 *)
7321 enable_static=no
7322 # Look at the argument we got. We use all the common list separators.
7323 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7324 for pkg in $enableval; do
7325 IFS="$lt_save_ifs"
7326 if test "X$pkg" = "X$p"; then
7327 enable_static=yes
7328 fi
7329 done
7330 IFS="$lt_save_ifs"
7331 ;;
7332 esac
d9898ee8 7333else
8d138742 7334 enable_static=yes
d9898ee8 7335fi
d9898ee8 7336
8d138742
CE
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346# Check whether --with-pic was given.
7347if test "${with_pic+set}" = set; then
7348 withval=$with_pic; pic_mode="$withval"
7349else
7350 pic_mode=default
d9898ee8 7351fi
7352
7353
8d138742
CE
7354test -z "$pic_mode" && pic_mode=default
7355
7356
7357
7358
7359
7360
7361
7362 # Check whether --enable-fast-install was given.
7363if test "${enable_fast_install+set}" = set; then
7364 enableval=$enable_fast_install; p=${PACKAGE-default}
7365 case $enableval in
7366 yes) enable_fast_install=yes ;;
7367 no) enable_fast_install=no ;;
d9898ee8 7368 *)
8d138742
CE
7369 enable_fast_install=no
7370 # Look at the argument we got. We use all the common list separators.
7371 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7372 for pkg in $enableval; do
7373 IFS="$lt_save_ifs"
7374 if test "X$pkg" = "X$p"; then
7375 enable_fast_install=yes
7376 fi
7377 done
7378 IFS="$lt_save_ifs"
d9898ee8 7379 ;;
7380 esac
8d138742
CE
7381else
7382 enable_fast_install=yes
7383fi
d9898ee8 7384
d9898ee8 7385
d9898ee8 7386
d9898ee8 7387
d9898ee8 7388
d9898ee8 7389
d9898ee8 7390
d9898ee8 7391
d9898ee8 7392
d9898ee8 7393
d9898ee8 7394
8d138742
CE
7395# This can be used to rebuild libtool when needed
7396LIBTOOL_DEPS="$ltmain"
7397
7398# Always use our own libtool.
7399LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d9898ee8 7400
d9898ee8 7401
d9898ee8 7402
d9898ee8 7403
d9898ee8 7404
d9898ee8 7405
d9898ee8 7406
d9898ee8 7407
d9898ee8 7408
d9898ee8 7409
d9898ee8 7410
d9898ee8 7411
d9898ee8 7412
d9898ee8 7413
d9898ee8 7414
d9898ee8 7415
d9898ee8 7416
d9898ee8 7417
d9898ee8 7418
d9898ee8 7419
d9898ee8 7420
d9898ee8 7421
d9898ee8 7422
d9898ee8 7423
d9898ee8 7424
8d138742 7425test -z "$LN_S" && LN_S="ln -s"
d9898ee8 7426
d9898ee8 7427
d9898ee8 7428
d9898ee8 7429
d9898ee8 7430
d9898ee8 7431
d9898ee8 7432
d9898ee8 7433
d9898ee8 7434
d9898ee8 7435
d9898ee8 7436
d9898ee8 7437
d9898ee8 7438
d9898ee8 7439
8d138742
CE
7440if test -n "${ZSH_VERSION+set}" ; then
7441 setopt NO_GLOB_SUBST
7442fi
d9898ee8 7443
8d138742
CE
7444{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
7445$as_echo_n "checking for objdir... " >&6; }
7446if test "${lt_cv_objdir+set}" = set; then
7447 $as_echo_n "(cached) " >&6
7448else
7449 rm -f .libs 2>/dev/null
7450mkdir .libs 2>/dev/null
7451if test -d .libs; then
7452 lt_cv_objdir=.libs
7453else
7454 # MS-DOS does not allow filenames that begin with a dot.
7455 lt_cv_objdir=_libs
7456fi
7457rmdir .libs 2>/dev/null
7458fi
7459{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7460$as_echo "$lt_cv_objdir" >&6; }
7461objdir=$lt_cv_objdir
d9898ee8 7462
d9898ee8 7463
d9898ee8 7464
d9898ee8 7465
d9898ee8 7466
8d138742
CE
7467cat >>confdefs.h <<_ACEOF
7468#define LT_OBJDIR "$lt_cv_objdir/"
7469_ACEOF
d9898ee8 7470
d9898ee8 7471
d9898ee8 7472
d9898ee8 7473
d9898ee8 7474
d9898ee8 7475
d9898ee8 7476
d9898ee8 7477
d9898ee8 7478
d9898ee8 7479
d9898ee8 7480
d9898ee8 7481
d9898ee8 7482
d9898ee8 7483
d9898ee8 7484
d9898ee8 7485
d9898ee8 7486
8d138742
CE
7487case $host_os in
7488aix3*)
7489 # AIX sometimes has problems with the GCC collect2 program. For some
7490 # reason, if we set the COLLECT_NAMES environment variable, the problems
7491 # vanish in a puff of smoke.
7492 if test "X${COLLECT_NAMES+set}" != Xset; then
7493 COLLECT_NAMES=
7494 export COLLECT_NAMES
7495 fi
7496 ;;
7497esac
d9898ee8 7498
8d138742
CE
7499# Sed substitution that helps us do robust quoting. It backslashifies
7500# metacharacters that are still active within double-quoted strings.
7501sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
d9898ee8 7502
8d138742
CE
7503# Same as above, but do not quote variable references.
7504double_quote_subst='s/\(["`\\]\)/\\\1/g'
d9898ee8 7505
8d138742
CE
7506# Sed substitution to delay expansion of an escaped shell variable in a
7507# double_quote_subst'ed string.
7508delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
d9898ee8 7509
8d138742
CE
7510# Sed substitution to delay expansion of an escaped single quote.
7511delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
d9898ee8 7512
8d138742
CE
7513# Sed substitution to avoid accidental globbing in evaled expressions
7514no_glob_subst='s/\*/\\\*/g'
d9898ee8 7515
8d138742
CE
7516# Global variables:
7517ofile=libtool
7518can_build_shared=yes
7519
7520# All known linkers require a `.a' archive for static linking (except MSVC,
7521# which needs '.lib').
7522libext=a
d9898ee8 7523
8d138742 7524with_gnu_ld="$lt_cv_prog_gnu_ld"
d9898ee8 7525
8d138742
CE
7526old_CC="$CC"
7527old_CFLAGS="$CFLAGS"
d9898ee8 7528
8d138742
CE
7529# Set sane defaults for various variables
7530test -z "$CC" && CC=cc
7531test -z "$LTCC" && LTCC=$CC
7532test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7533test -z "$LD" && LD=ld
7534test -z "$ac_objext" && ac_objext=o
d9898ee8 7535
8d138742
CE
7536for cc_temp in $compiler""; do
7537 case $cc_temp in
7538 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7539 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7540 \-*) ;;
7541 *) break;;
7542 esac
7543done
7544cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
d9898ee8 7545
d9898ee8 7546
8d138742
CE
7547# Only perform the check for file, if the check method requires it
7548test -z "$MAGIC_CMD" && MAGIC_CMD=file
7549case $deplibs_check_method in
7550file_magic*)
7551 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7552 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7553$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7554if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7556else
7557 case $MAGIC_CMD in
7558[\\/*] | ?:[\\/]*)
7559 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7560 ;;
7561*)
7562 lt_save_MAGIC_CMD="$MAGIC_CMD"
7563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7564 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7565 for ac_dir in $ac_dummy; do
7566 IFS="$lt_save_ifs"
7567 test -z "$ac_dir" && ac_dir=.
7568 if test -f $ac_dir/${ac_tool_prefix}file; then
7569 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7570 if test -n "$file_magic_test_file"; then
7571 case $deplibs_check_method in
7572 "file_magic "*)
7573 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7576 $EGREP "$file_magic_regex" > /dev/null; then
7577 :
7578 else
7579 cat <<_LT_EOF 1>&2
d9898ee8 7580
8d138742
CE
7581*** Warning: the command libtool uses to detect shared libraries,
7582*** $file_magic_cmd, produces output that libtool cannot recognize.
7583*** The result is that libtool may fail to recognize shared libraries
7584*** as such. This will affect the creation of libtool libraries that
7585*** depend on shared libraries, but programs linked with such libtool
7586*** libraries will work regardless of this problem. Nevertheless, you
7587*** may want to report the problem to your system manager and/or to
7588*** bug-libtool@gnu.org
d9898ee8 7589
8d138742
CE
7590_LT_EOF
7591 fi ;;
7592 esac
7593 fi
7594 break
7595 fi
7596 done
7597 IFS="$lt_save_ifs"
7598 MAGIC_CMD="$lt_save_MAGIC_CMD"
7599 ;;
7600esac
7601fi
d9898ee8 7602
8d138742
CE
7603MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7604if test -n "$MAGIC_CMD"; then
7605 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7606$as_echo "$MAGIC_CMD" >&6; }
7607else
7608 { $as_echo "$as_me:$LINENO: result: no" >&5
7609$as_echo "no" >&6; }
7610fi
d9898ee8 7611
d9898ee8 7612
d9898ee8 7613
d9898ee8 7614
d9898ee8 7615
8d138742
CE
7616if test -z "$lt_cv_path_MAGIC_CMD"; then
7617 if test -n "$ac_tool_prefix"; then
7618 { $as_echo "$as_me:$LINENO: checking for file" >&5
7619$as_echo_n "checking for file... " >&6; }
7620if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7621 $as_echo_n "(cached) " >&6
7622else
7623 case $MAGIC_CMD in
7624[\\/*] | ?:[\\/]*)
7625 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7626 ;;
7627*)
7628 lt_save_MAGIC_CMD="$MAGIC_CMD"
7629 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7630 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7631 for ac_dir in $ac_dummy; do
7632 IFS="$lt_save_ifs"
7633 test -z "$ac_dir" && ac_dir=.
7634 if test -f $ac_dir/file; then
7635 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7636 if test -n "$file_magic_test_file"; then
7637 case $deplibs_check_method in
7638 "file_magic "*)
7639 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7641 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7642 $EGREP "$file_magic_regex" > /dev/null; then
7643 :
7644 else
7645 cat <<_LT_EOF 1>&2
d9898ee8 7646
8d138742
CE
7647*** Warning: the command libtool uses to detect shared libraries,
7648*** $file_magic_cmd, produces output that libtool cannot recognize.
7649*** The result is that libtool may fail to recognize shared libraries
7650*** as such. This will affect the creation of libtool libraries that
7651*** depend on shared libraries, but programs linked with such libtool
7652*** libraries will work regardless of this problem. Nevertheless, you
7653*** may want to report the problem to your system manager and/or to
7654*** bug-libtool@gnu.org
d9898ee8 7655
8d138742
CE
7656_LT_EOF
7657 fi ;;
7658 esac
7659 fi
7660 break
7661 fi
7662 done
7663 IFS="$lt_save_ifs"
7664 MAGIC_CMD="$lt_save_MAGIC_CMD"
7665 ;;
7666esac
7667fi
d9898ee8 7668
8d138742
CE
7669MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7670if test -n "$MAGIC_CMD"; then
7671 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7672$as_echo "$MAGIC_CMD" >&6; }
7673else
7674 { $as_echo "$as_me:$LINENO: result: no" >&5
7675$as_echo "no" >&6; }
7676fi
d9898ee8 7677
7678
8d138742
CE
7679 else
7680 MAGIC_CMD=:
d9898ee8 7681 fi
7682fi
7683
8d138742
CE
7684 fi
7685 ;;
7686esac
7687
7688# Use C for the default configuration in the libtool script
d9898ee8 7689
8d138742 7690lt_save_CC="$CC"
d9898ee8 7691ac_ext=c
7692ac_cpp='$CPP $CPPFLAGS'
7693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7695ac_compiler_gnu=$ac_cv_c_compiler_gnu
7696
d9898ee8 7697
8d138742
CE
7698# Source file extension for C test sources.
7699ac_ext=c
d9898ee8 7700
8d138742 7701# Object file extension for compiled C test sources.
d9898ee8 7702objext=o
8d138742 7703objext=$objext
d9898ee8 7704
7705# Code to be used in simple compile tests
8d138742 7706lt_simple_compile_test_code="int some_variable = 0;"
d9898ee8 7707
7708# Code to be used in simple link tests
8d138742
CE
7709lt_simple_link_test_code='int main(){return(0);}'
7710
7711
7712
7713
7714
d9898ee8 7715
d9898ee8 7716
7717# If no C compiler was specified, use CC.
7718LTCC=${LTCC-"$CC"}
7719
7720# If no C compiler flags were specified, use CFLAGS.
7721LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7722
7723# Allow CC to be a program name with arguments.
7724compiler=$CC
7725
8d138742
CE
7726# Save the default compiler, since it gets overwritten when the other
7727# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7728compiler_DEFAULT=$CC
d9898ee8 7729
7730# save warnings/boilerplate of simple test code
7731ac_outfile=conftest.$ac_objext
ac40fd9e 7732echo "$lt_simple_compile_test_code" >conftest.$ac_ext
d9898ee8 7733eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7734_lt_compiler_boilerplate=`cat conftest.err`
8d138742 7735$RM conftest*
d9898ee8 7736
7737ac_outfile=conftest.$ac_objext
ac40fd9e 7738echo "$lt_simple_link_test_code" >conftest.$ac_ext
d9898ee8 7739eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7740_lt_linker_boilerplate=`cat conftest.err`
8d138742 7741$RM -r conftest*
d9898ee8 7742
d9898ee8 7743
7744## CAVEAT EMPTOR:
7745## There is no encapsulation within the following macros, do not change
7746## the running order or otherwise move them around unless you know exactly
7747## what you are doing...
8d138742 7748if test -n "$compiler"; then
d9898ee8 7749
8d138742 7750lt_prog_compiler_no_builtin_flag=
d9898ee8 7751
7752if test "$GCC" = yes; then
8d138742 7753 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
d9898ee8 7754
8d138742
CE
7755 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7756$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d9898ee8 7757if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8d138742 7758 $as_echo_n "(cached) " >&6
d9898ee8 7759else
7760 lt_cv_prog_compiler_rtti_exceptions=no
8d138742 7761 ac_outfile=conftest.$ac_objext
ac40fd9e 7762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 7763 lt_compiler_flag="-fno-rtti -fno-exceptions"
7764 # Insert the option either (1) after the last *FLAGS variable, or
7765 # (2) before a word containing "conftest.", or (3) at the end.
7766 # Note that $ac_compile itself does not contain backslashes and begins
7767 # with a dollar sign (not a hyphen), so the echo should work correctly.
7768 # The option is referenced via a variable to avoid confusing sed.
7769 lt_compile=`echo "$ac_compile" | $SED \
7770 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7772 -e 's:$: $lt_compiler_flag:'`
8d138742 7773 (eval echo "\"\$as_me:7773: $lt_compile\"" >&5)
d9898ee8 7774 (eval "$lt_compile" 2>conftest.err)
7775 ac_status=$?
7776 cat conftest.err >&5
8d138742 7777 echo "$as_me:7777: \$? = $ac_status" >&5
d9898ee8 7778 if (exit $ac_status) && test -s "$ac_outfile"; then
7779 # The compiler can only warn and ignore the option if not recognized
7780 # So say no if there are warnings other than the usual output.
8d138742 7781 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
d9898ee8 7782 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7783 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7784 lt_cv_prog_compiler_rtti_exceptions=yes
7785 fi
7786 fi
8d138742 7787 $RM conftest*
d9898ee8 7788
7789fi
8d138742
CE
7790{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7791$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
d9898ee8 7792
7793if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8d138742 7794 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
d9898ee8 7795else
7796 :
7797fi
7798
7799fi
7800
d9898ee8 7801
8d138742
CE
7802
7803
7804
7805
7806 lt_prog_compiler_wl=
7807lt_prog_compiler_pic=
7808lt_prog_compiler_static=
7809
7810{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7811$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
d9898ee8 7812
7813 if test "$GCC" = yes; then
8d138742
CE
7814 lt_prog_compiler_wl='-Wl,'
7815 lt_prog_compiler_static='-static'
d9898ee8 7816
7817 case $host_os in
7818 aix*)
7819 # All AIX code is PIC.
7820 if test "$host_cpu" = ia64; then
7821 # AIX 5 now supports IA64 processor
8d138742 7822 lt_prog_compiler_static='-Bstatic'
d9898ee8 7823 fi
7824 ;;
7825
7826 amigaos*)
8d138742
CE
7827 case $host_cpu in
7828 powerpc)
7829 # see comment about AmigaOS4 .so support
7830 lt_prog_compiler_pic='-fPIC'
7831 ;;
7832 m68k)
7833 # FIXME: we need at least 68020 code to build shared libraries, but
7834 # adding the `-m68020' flag to GCC prevents building anything better,
7835 # like `-m68040'.
7836 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7837 ;;
7838 esac
d9898ee8 7839 ;;
7840
ac40fd9e 7841 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
d9898ee8 7842 # PIC is the default for these OSes.
7843 ;;
7844
8d138742 7845 mingw* | cygwin* | pw32* | os2* | cegcc*)
d9898ee8 7846 # This hack is so that the source file can tell whether it is being
7847 # built for inclusion in a dll (and should export symbols for example).
ac40fd9e 7848 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7849 # (--disable-auto-import) libraries
8d138742 7850 lt_prog_compiler_pic='-DDLL_EXPORT'
d9898ee8 7851 ;;
7852
7853 darwin* | rhapsody*)
7854 # PIC is the default on this platform
7855 # Common symbols not allowed in MH_DYLIB files
8d138742
CE
7856 lt_prog_compiler_pic='-fno-common'
7857 ;;
7858
7859 hpux*)
7860 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7861 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7862 # sets the default TLS model and affects inlining.
7863 case $host_cpu in
7864 hppa*64*)
7865 # +Z the default
7866 ;;
7867 *)
7868 lt_prog_compiler_pic='-fPIC'
7869 ;;
7870 esac
d9898ee8 7871 ;;
7872
ac40fd9e 7873 interix[3-9]*)
d9898ee8 7874 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7875 # Instead, we relocate shared libraries at runtime.
7876 ;;
7877
7878 msdosdjgpp*)
7879 # Just because we use GCC doesn't mean we suddenly get shared libraries
7880 # on systems that don't support them.
8d138742 7881 lt_prog_compiler_can_build_shared=no
d9898ee8 7882 enable_shared=no
7883 ;;
7884
8d138742
CE
7885 *nto* | *qnx*)
7886 # QNX uses GNU C++, but need to define -shared option too, otherwise
7887 # it will coredump.
7888 lt_prog_compiler_pic='-fPIC -shared'
7889 ;;
7890
d9898ee8 7891 sysv4*MP*)
7892 if test -d /usr/nec; then
8d138742 7893 lt_prog_compiler_pic=-Kconform_pic
d9898ee8 7894 fi
7895 ;;
7896
d9898ee8 7897 *)
8d138742 7898 lt_prog_compiler_pic='-fPIC'
d9898ee8 7899 ;;
7900 esac
7901 else
7902 # PORTME Check for flag to pass linker flags through the system compiler.
7903 case $host_os in
7904 aix*)
8d138742 7905 lt_prog_compiler_wl='-Wl,'
d9898ee8 7906 if test "$host_cpu" = ia64; then
7907 # AIX 5 now supports IA64 processor
8d138742 7908 lt_prog_compiler_static='-Bstatic'
d9898ee8 7909 else
8d138742 7910 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d9898ee8 7911 fi
7912 ;;
d9898ee8 7913
8d138742 7914 mingw* | cygwin* | pw32* | os2* | cegcc*)
d9898ee8 7915 # This hack is so that the source file can tell whether it is being
7916 # built for inclusion in a dll (and should export symbols for example).
8d138742 7917 lt_prog_compiler_pic='-DDLL_EXPORT'
d9898ee8 7918 ;;
7919
7920 hpux9* | hpux10* | hpux11*)
8d138742 7921 lt_prog_compiler_wl='-Wl,'
d9898ee8 7922 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7923 # not for PA HP-UX.
7924 case $host_cpu in
7925 hppa*64*|ia64*)
7926 # +Z the default
7927 ;;
7928 *)
8d138742 7929 lt_prog_compiler_pic='+Z'
d9898ee8 7930 ;;
7931 esac
7932 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8d138742 7933 lt_prog_compiler_static='${wl}-a ${wl}archive'
d9898ee8 7934 ;;
7935
7936 irix5* | irix6* | nonstopux*)
8d138742 7937 lt_prog_compiler_wl='-Wl,'
d9898ee8 7938 # PIC (with -KPIC) is the default.
8d138742 7939 lt_prog_compiler_static='-non_shared'
d9898ee8 7940 ;;
7941
ac40fd9e 7942 linux* | k*bsd*-gnu)
d9898ee8 7943 case $cc_basename in
8d138742
CE
7944 # old Intel for x86_64 which still supported -KPIC.
7945 ecc*)
7946 lt_prog_compiler_wl='-Wl,'
7947 lt_prog_compiler_pic='-KPIC'
7948 lt_prog_compiler_static='-static'
7949 ;;
7950 # icc used to be incompatible with GCC.
7951 # ICC 10 doesn't accept -KPIC any more.
7952 icc* | ifort*)
7953 lt_prog_compiler_wl='-Wl,'
7954 lt_prog_compiler_pic='-fPIC'
7955 lt_prog_compiler_static='-static'
d9898ee8 7956 ;;
8d138742
CE
7957 # Lahey Fortran 8.1.
7958 lf95*)
7959 lt_prog_compiler_wl='-Wl,'
7960 lt_prog_compiler_pic='--shared'
7961 lt_prog_compiler_static='--static'
7962 ;;
d9898ee8 7963 pgcc* | pgf77* | pgf90* | pgf95*)
7964 # Portland Group compilers (*not* the Pentium gcc compiler,
7965 # which looks to be a dead project)
8d138742
CE
7966 lt_prog_compiler_wl='-Wl,'
7967 lt_prog_compiler_pic='-fpic'
7968 lt_prog_compiler_static='-Bstatic'
d9898ee8 7969 ;;
7970 ccc*)
8d138742 7971 lt_prog_compiler_wl='-Wl,'
d9898ee8 7972 # All Alpha code is PIC.
8d138742 7973 lt_prog_compiler_static='-non_shared'
d9898ee8 7974 ;;
8d138742
CE
7975 xl*)
7976 # IBM XL C 8.0/Fortran 10.1 on PPC
7977 lt_prog_compiler_wl='-Wl,'
7978 lt_prog_compiler_pic='-qpic'
7979 lt_prog_compiler_static='-qstaticlink'
7980 ;;
ac40fd9e 7981 *)
8d138742 7982 case `$CC -V 2>&1 | sed 5q` in
ac40fd9e 7983 *Sun\ C*)
7984 # Sun C 5.9
8d138742
CE
7985 lt_prog_compiler_pic='-KPIC'
7986 lt_prog_compiler_static='-Bstatic'
7987 lt_prog_compiler_wl='-Wl,'
ac40fd9e 7988 ;;
7989 *Sun\ F*)
7990 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8d138742
CE
7991 lt_prog_compiler_pic='-KPIC'
7992 lt_prog_compiler_static='-Bstatic'
7993 lt_prog_compiler_wl=''
ac40fd9e 7994 ;;
7995 esac
7996 ;;
d9898ee8 7997 esac
7998 ;;
7999
8d138742
CE
8000 newsos6)
8001 lt_prog_compiler_pic='-KPIC'
8002 lt_prog_compiler_static='-Bstatic'
8003 ;;
8004
8005 *nto* | *qnx*)
8006 # QNX uses GNU C++, but need to define -shared option too, otherwise
8007 # it will coredump.
8008 lt_prog_compiler_pic='-fPIC -shared'
8009 ;;
8010
d9898ee8 8011 osf3* | osf4* | osf5*)
8d138742 8012 lt_prog_compiler_wl='-Wl,'
d9898ee8 8013 # All OSF/1 code is PIC.
8d138742 8014 lt_prog_compiler_static='-non_shared'
d9898ee8 8015 ;;
8016
ac40fd9e 8017 rdos*)
8d138742 8018 lt_prog_compiler_static='-non_shared'
ac40fd9e 8019 ;;
8020
d9898ee8 8021 solaris*)
8d138742
CE
8022 lt_prog_compiler_pic='-KPIC'
8023 lt_prog_compiler_static='-Bstatic'
d9898ee8 8024 case $cc_basename in
8025 f77* | f90* | f95*)
8d138742 8026 lt_prog_compiler_wl='-Qoption ld ';;
d9898ee8 8027 *)
8d138742 8028 lt_prog_compiler_wl='-Wl,';;
d9898ee8 8029 esac
8030 ;;
8031
8032 sunos4*)
8d138742
CE
8033 lt_prog_compiler_wl='-Qoption ld '
8034 lt_prog_compiler_pic='-PIC'
8035 lt_prog_compiler_static='-Bstatic'
d9898ee8 8036 ;;
8037
8038 sysv4 | sysv4.2uw2* | sysv4.3*)
8d138742
CE
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='-KPIC'
8041 lt_prog_compiler_static='-Bstatic'
d9898ee8 8042 ;;
8043
8044 sysv4*MP*)
8045 if test -d /usr/nec ;then
8d138742
CE
8046 lt_prog_compiler_pic='-Kconform_pic'
8047 lt_prog_compiler_static='-Bstatic'
d9898ee8 8048 fi
8049 ;;
8050
8051 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8d138742
CE
8052 lt_prog_compiler_wl='-Wl,'
8053 lt_prog_compiler_pic='-KPIC'
8054 lt_prog_compiler_static='-Bstatic'
d9898ee8 8055 ;;
8056
8057 unicos*)
8d138742
CE
8058 lt_prog_compiler_wl='-Wl,'
8059 lt_prog_compiler_can_build_shared=no
d9898ee8 8060 ;;
8061
8062 uts4*)
8d138742
CE
8063 lt_prog_compiler_pic='-pic'
8064 lt_prog_compiler_static='-Bstatic'
d9898ee8 8065 ;;
8066
8067 *)
8d138742 8068 lt_prog_compiler_can_build_shared=no
d9898ee8 8069 ;;
8070 esac
8071 fi
8072
8d138742
CE
8073case $host_os in
8074 # For platforms which do not support PIC, -DPIC is meaningless:
8075 *djgpp*)
8076 lt_prog_compiler_pic=
8077 ;;
8078 *)
8079 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8080 ;;
8081esac
8082{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8083$as_echo "$lt_prog_compiler_pic" >&6; }
8084
8085
8086
8087
8088
d9898ee8 8089
8090#
8091# Check to make sure the PIC flag actually works.
8092#
8d138742
CE
8093if test -n "$lt_prog_compiler_pic"; then
8094 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8095$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8096if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8097 $as_echo_n "(cached) " >&6
d9898ee8 8098else
8d138742
CE
8099 lt_cv_prog_compiler_pic_works=no
8100 ac_outfile=conftest.$ac_objext
ac40fd9e 8101 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8d138742 8102 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
d9898ee8 8103 # Insert the option either (1) after the last *FLAGS variable, or
8104 # (2) before a word containing "conftest.", or (3) at the end.
8105 # Note that $ac_compile itself does not contain backslashes and begins
8106 # with a dollar sign (not a hyphen), so the echo should work correctly.
8107 # The option is referenced via a variable to avoid confusing sed.
8108 lt_compile=`echo "$ac_compile" | $SED \
8109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8111 -e 's:$: $lt_compiler_flag:'`
8d138742 8112 (eval echo "\"\$as_me:8112: $lt_compile\"" >&5)
d9898ee8 8113 (eval "$lt_compile" 2>conftest.err)
8114 ac_status=$?
8115 cat conftest.err >&5
8d138742 8116 echo "$as_me:8116: \$? = $ac_status" >&5
d9898ee8 8117 if (exit $ac_status) && test -s "$ac_outfile"; then
8118 # The compiler can only warn and ignore the option if not recognized
8119 # So say no if there are warnings other than the usual output.
8d138742 8120 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
d9898ee8 8121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8122 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8d138742 8123 lt_cv_prog_compiler_pic_works=yes
d9898ee8 8124 fi
8125 fi
8d138742 8126 $RM conftest*
d9898ee8 8127
8128fi
8d138742
CE
8129{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8130$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d9898ee8 8131
8d138742
CE
8132if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8133 case $lt_prog_compiler_pic in
d9898ee8 8134 "" | " "*) ;;
8d138742 8135 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
d9898ee8 8136 esac
8137else
8d138742
CE
8138 lt_prog_compiler_pic=
8139 lt_prog_compiler_can_build_shared=no
d9898ee8 8140fi
8141
8142fi
8d138742
CE
8143
8144
8145
8146
8147
d9898ee8 8148
8149#
8150# Check to make sure the static flag actually works.
8151#
8d138742
CE
8152wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8153{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8154$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8155if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8156 $as_echo_n "(cached) " >&6
d9898ee8 8157else
8d138742 8158 lt_cv_prog_compiler_static_works=no
d9898ee8 8159 save_LDFLAGS="$LDFLAGS"
8160 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
ac40fd9e 8161 echo "$lt_simple_link_test_code" > conftest.$ac_ext
d9898ee8 8162 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8163 # The linker can only warn and ignore the option if not recognized
8164 # So say no if there are warnings
8165 if test -s conftest.err; then
8166 # Append any errors to the config.log.
8167 cat conftest.err 1>&5
8d138742 8168 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
d9898ee8 8169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8170 if diff conftest.exp conftest.er2 >/dev/null; then
8d138742 8171 lt_cv_prog_compiler_static_works=yes
d9898ee8 8172 fi
8173 else
8d138742 8174 lt_cv_prog_compiler_static_works=yes
d9898ee8 8175 fi
8176 fi
8d138742 8177 $RM -r conftest*
d9898ee8 8178 LDFLAGS="$save_LDFLAGS"
8179
8180fi
8d138742
CE
8181{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8182$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d9898ee8 8183
8d138742 8184if test x"$lt_cv_prog_compiler_static_works" = xyes; then
d9898ee8 8185 :
8186else
8d138742
CE
8187 lt_prog_compiler_static=
8188fi
8189
8190
8191
8192
8193
8194
8195
8196 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8197$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8198if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8199 $as_echo_n "(cached) " >&6
8200else
8201 lt_cv_prog_compiler_c_o=no
8202 $RM -r conftest 2>/dev/null
8203 mkdir conftest
8204 cd conftest
8205 mkdir out
8206 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8207
8208 lt_compiler_flag="-o out/conftest2.$ac_objext"
8209 # Insert the option either (1) after the last *FLAGS variable, or
8210 # (2) before a word containing "conftest.", or (3) at the end.
8211 # Note that $ac_compile itself does not contain backslashes and begins
8212 # with a dollar sign (not a hyphen), so the echo should work correctly.
8213 lt_compile=`echo "$ac_compile" | $SED \
8214 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8215 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8216 -e 's:$: $lt_compiler_flag:'`
8217 (eval echo "\"\$as_me:8217: $lt_compile\"" >&5)
8218 (eval "$lt_compile" 2>out/conftest.err)
8219 ac_status=$?
8220 cat out/conftest.err >&5
8221 echo "$as_me:8221: \$? = $ac_status" >&5
8222 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8223 then
8224 # The compiler can only warn and ignore the option if not recognized
8225 # So say no if there are warnings
8226 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8227 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8228 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8229 lt_cv_prog_compiler_c_o=yes
8230 fi
8231 fi
8232 chmod u+w . 2>&5
8233 $RM conftest*
8234 # SGI C++ compiler will create directory out/ii_files/ for
8235 # template instantiation
8236 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8237 $RM out/* && rmdir out
8238 cd ..
8239 $RM -r conftest
8240 $RM conftest*
8241
d9898ee8 8242fi
8d138742
CE
8243{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8244$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8245
8246
8247
d9898ee8 8248
8249
8d138742
CE
8250
8251 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8252$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8253if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8254 $as_echo_n "(cached) " >&6
d9898ee8 8255else
8d138742
CE
8256 lt_cv_prog_compiler_c_o=no
8257 $RM -r conftest 2>/dev/null
d9898ee8 8258 mkdir conftest
8259 cd conftest
8260 mkdir out
ac40fd9e 8261 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 8262
8263 lt_compiler_flag="-o out/conftest2.$ac_objext"
8264 # Insert the option either (1) after the last *FLAGS variable, or
8265 # (2) before a word containing "conftest.", or (3) at the end.
8266 # Note that $ac_compile itself does not contain backslashes and begins
8267 # with a dollar sign (not a hyphen), so the echo should work correctly.
8268 lt_compile=`echo "$ac_compile" | $SED \
8269 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8270 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8271 -e 's:$: $lt_compiler_flag:'`
8d138742 8272 (eval echo "\"\$as_me:8272: $lt_compile\"" >&5)
d9898ee8 8273 (eval "$lt_compile" 2>out/conftest.err)
8274 ac_status=$?
8275 cat out/conftest.err >&5
8d138742 8276 echo "$as_me:8276: \$? = $ac_status" >&5
d9898ee8 8277 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8278 then
8279 # The compiler can only warn and ignore the option if not recognized
8280 # So say no if there are warnings
8d138742 8281 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
d9898ee8 8282 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8283 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8d138742 8284 lt_cv_prog_compiler_c_o=yes
d9898ee8 8285 fi
8286 fi
8287 chmod u+w . 2>&5
8d138742 8288 $RM conftest*
d9898ee8 8289 # SGI C++ compiler will create directory out/ii_files/ for
8290 # template instantiation
8d138742
CE
8291 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8292 $RM out/* && rmdir out
d9898ee8 8293 cd ..
8d138742
CE
8294 $RM -r conftest
8295 $RM conftest*
d9898ee8 8296
8297fi
8d138742
CE
8298{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8299$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8300
8301
d9898ee8 8302
8303
8304hard_links="nottested"
8d138742 8305if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
d9898ee8 8306 # do not overwrite the value of need_locks provided by the user
8d138742
CE
8307 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8308$as_echo_n "checking if we can lock with hard links... " >&6; }
d9898ee8 8309 hard_links=yes
8d138742 8310 $RM conftest*
d9898ee8 8311 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8312 touch conftest.a
8313 ln conftest.a conftest.b 2>&5 || hard_links=no
8314 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8d138742
CE
8315 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8316$as_echo "$hard_links" >&6; }
d9898ee8 8317 if test "$hard_links" = no; then
8d138742
CE
8318 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8319$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
d9898ee8 8320 need_locks=warn
8321 fi
8322else
8323 need_locks=no
8324fi
8325
8d138742
CE
8326
8327
8328
8329
8330
8331 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8332$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d9898ee8 8333
8334 runpath_var=
8d138742
CE
8335 allow_undefined_flag=
8336 always_export_symbols=no
8337 archive_cmds=
8338 archive_expsym_cmds=
8339 compiler_needs_object=no
8340 enable_shared_with_static_runtimes=no
8341 export_dynamic_flag_spec=
8342 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8343 hardcode_automatic=no
8344 hardcode_direct=no
8345 hardcode_direct_absolute=no
8346 hardcode_libdir_flag_spec=
8347 hardcode_libdir_flag_spec_ld=
8348 hardcode_libdir_separator=
8349 hardcode_minus_L=no
8350 hardcode_shlibpath_var=unsupported
8351 inherit_rpath=no
8352 link_all_deplibs=unknown
8353 module_cmds=
8354 module_expsym_cmds=
8355 old_archive_from_new_cmds=
8356 old_archive_from_expsyms_cmds=
8357 thread_safe_flag_spec=
8358 whole_archive_flag_spec=
d9898ee8 8359 # include_expsyms should be a list of space-separated symbols to be *always*
8360 # included in the symbol list
8d138742 8361 include_expsyms=
d9898ee8 8362 # exclude_expsyms can be an extended regexp of symbols to exclude
8363 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8364 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8365 # as well as any symbol that contains `d'.
8d138742 8366 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
d9898ee8 8367 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8368 # platforms (ab)use it in PIC code, but their linkers get confused if
8369 # the symbol is explicitly referenced. Since portable code cannot
8370 # rely on this symbol name, it's probably fine to never include it in
8371 # preloaded symbol tables.
8d138742 8372 # Exclude shared library initialization/finalization symbols.
d9898ee8 8373 extract_expsyms_cmds=
d9898ee8 8374
8375 case $host_os in
8d138742 8376 cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 8377 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8378 # When not using gcc, we currently assume that we are using
8379 # Microsoft Visual C++.
8380 if test "$GCC" != yes; then
8381 with_gnu_ld=no
8382 fi
8383 ;;
8384 interix*)
8385 # we just hope/assume this is gcc and not c89 (= MSVC++)
8386 with_gnu_ld=yes
8387 ;;
8388 openbsd*)
8389 with_gnu_ld=no
8390 ;;
8391 esac
8392
8d138742 8393 ld_shlibs=yes
d9898ee8 8394 if test "$with_gnu_ld" = yes; then
8395 # If archive_cmds runs LD, not CC, wlarc should be empty
8396 wlarc='${wl}'
8397
8398 # Set some defaults for GNU ld with shared library support. These
8399 # are reset later if shared libraries are not supported. Putting them
8400 # here allows them to be overridden if necessary.
8401 runpath_var=LD_RUN_PATH
8d138742
CE
8402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8403 export_dynamic_flag_spec='${wl}--export-dynamic'
d9898ee8 8404 # ancient GNU ld didn't support --whole-archive et. al.
8d138742
CE
8405 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8406 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8407 else
8408 whole_archive_flag_spec=
d9898ee8 8409 fi
8410 supports_anon_versioning=no
8d138742 8411 case `$LD -v 2>&1` in
d9898ee8 8412 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8413 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8414 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8415 *\ 2.11.*) ;; # other 2.11 versions
8416 *) supports_anon_versioning=yes ;;
8417 esac
8418
8419 # See if GNU ld supports shared libraries.
8420 case $host_os in
8d138742 8421 aix[3-9]*)
d9898ee8 8422 # On AIX/PPC, the GNU linker is very broken
8423 if test "$host_cpu" != ia64; then
8d138742
CE
8424 ld_shlibs=no
8425 cat <<_LT_EOF 1>&2
d9898ee8 8426
8427*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8428*** to be unable to reliably create shared libraries on AIX.
8429*** Therefore, libtool is disabling shared libraries support. If you
8430*** really care for shared libraries, you may want to modify your PATH
8431*** so that a non-GNU linker is found, and then restart.
8432
8d138742 8433_LT_EOF
d9898ee8 8434 fi
8435 ;;
8436
8437 amigaos*)
8d138742
CE
8438 case $host_cpu in
8439 powerpc)
8440 # see comment about AmigaOS4 .so support
8441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8442 archive_expsym_cmds=''
8443 ;;
8444 m68k)
8445 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8446 hardcode_libdir_flag_spec='-L$libdir'
8447 hardcode_minus_L=yes
8448 ;;
8449 esac
d9898ee8 8450 ;;
8451
8452 beos*)
8d138742
CE
8453 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8454 allow_undefined_flag=unsupported
d9898ee8 8455 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8456 # support --undefined. This deserves some investigation. FIXME
8d138742 8457 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8458 else
8d138742 8459 ld_shlibs=no
d9898ee8 8460 fi
8461 ;;
8462
8d138742
CE
8463 cygwin* | mingw* | pw32* | cegcc*)
8464 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
d9898ee8 8465 # as there is no search path for DLLs.
8d138742
CE
8466 hardcode_libdir_flag_spec='-L$libdir'
8467 allow_undefined_flag=unsupported
8468 always_export_symbols=no
8469 enable_shared_with_static_runtimes=yes
8470 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8471
8472 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8473 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
d9898ee8 8474 # If the export-symbols file already is a .def file (1st line
8475 # is EXPORTS), use it as is; otherwise, prepend...
8d138742 8476 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
d9898ee8 8477 cp $export_symbols $output_objdir/$soname.def;
8478 else
8479 echo EXPORTS > $output_objdir/$soname.def;
8480 cat $export_symbols >> $output_objdir/$soname.def;
8481 fi~
8482 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8483 else
8d138742 8484 ld_shlibs=no
d9898ee8 8485 fi
8486 ;;
8487
ac40fd9e 8488 interix[3-9]*)
8d138742
CE
8489 hardcode_direct=no
8490 hardcode_shlibpath_var=no
8491 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8492 export_dynamic_flag_spec='${wl}-E'
d9898ee8 8493 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8494 # Instead, shared libraries are loaded at an image base (0x10000000 by
8495 # default) and relocated if they conflict, which is a slow very memory
8496 # consuming and fragmenting process. To avoid this, we pick a random,
8497 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8498 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8d138742
CE
8499 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8500 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'
d9898ee8 8501 ;;
8502
8d138742
CE
8503 gnu* | linux* | tpf* | k*bsd*-gnu)
8504 tmp_diet=no
8505 if test "$host_os" = linux-dietlibc; then
8506 case $cc_basename in
8507 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8508 esac
8509 fi
8510 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8511 && test "$tmp_diet" = no
8512 then
d9898ee8 8513 tmp_addflag=
8d138742 8514 tmp_sharedflag='-shared'
d9898ee8 8515 case $cc_basename,$host_cpu in
8d138742
CE
8516 pgcc*) # Portland Group C compiler
8517 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'
d9898ee8 8518 tmp_addflag=' $pic_flag'
8519 ;;
8520 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8d138742 8521 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'
d9898ee8 8522 tmp_addflag=' $pic_flag -Mnomain' ;;
8d138742 8523 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
d9898ee8 8524 tmp_addflag=' -i_dynamic' ;;
8525 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8526 tmp_addflag=' -i_dynamic -nofor_main' ;;
8527 ifc* | ifort*) # Intel Fortran compiler
8528 tmp_addflag=' -nofor_main' ;;
8d138742
CE
8529 lf95*) # Lahey Fortran 8.1
8530 whole_archive_flag_spec=
8531 tmp_sharedflag='--shared' ;;
8532 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8533 tmp_sharedflag='-qmkshrobj'
8534 tmp_addflag= ;;
d9898ee8 8535 esac
ac40fd9e 8536 case `$CC -V 2>&1 | sed 5q` in
8537 *Sun\ C*) # Sun C 5.9
8d138742
CE
8538 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8539 compiler_needs_object=yes
ac40fd9e 8540 tmp_sharedflag='-G' ;;
8541 *Sun\ F*) # Sun Fortran 8.3
8542 tmp_sharedflag='-G' ;;
ac40fd9e 8543 esac
8d138742 8544 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d9898ee8 8545
8d138742
CE
8546 if test "x$supports_anon_versioning" = xyes; then
8547 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8548 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8549 echo "local: *; };" >> $output_objdir/$libname.ver~
8550 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8551 fi
8552
8553 case $cc_basename in
8554 xlf*)
8555 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8556 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8557 hardcode_libdir_flag_spec=
8558 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8559 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8560 if test "x$supports_anon_versioning" = xyes; then
8561 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8562 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8563 echo "local: *; };" >> $output_objdir/$libname.ver~
8564 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8565 fi
8566 ;;
8567 esac
d9898ee8 8568 else
8d138742 8569 ld_shlibs=no
d9898ee8 8570 fi
8571 ;;
8572
8573 netbsd*)
8d138742
CE
8574 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8575 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
d9898ee8 8576 wlarc=
8577 else
8d138742
CE
8578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 8580 fi
8581 ;;
8582
8583 solaris*)
8d138742
CE
8584 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8585 ld_shlibs=no
8586 cat <<_LT_EOF 1>&2
d9898ee8 8587
8588*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8589*** create shared libraries on Solaris systems. Therefore, libtool
8590*** is disabling shared libraries support. We urge you to upgrade GNU
8591*** binutils to release 2.9.1 or newer. Another option is to modify
8592*** your PATH or compiler configuration so that the native linker is
8593*** used, and then restart.
8594
8d138742
CE
8595_LT_EOF
8596 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8598 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 8599 else
8d138742 8600 ld_shlibs=no
d9898ee8 8601 fi
8602 ;;
8603
8604 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8605 case `$LD -v 2>&1` in
8606 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8d138742 8607 ld_shlibs=no
d9898ee8 8608 cat <<_LT_EOF 1>&2
8609
8610*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8611*** reliably create shared libraries on SCO systems. Therefore, libtool
8612*** is disabling shared libraries support. We urge you to upgrade GNU
8613*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8614*** your PATH or compiler configuration so that the native linker is
8615*** used, and then restart.
8616
8617_LT_EOF
8618 ;;
8619 *)
8d138742
CE
8620 # For security reasons, it is highly recommended that you always
8621 # use absolute paths for naming shared libraries, and exclude the
8622 # DT_RUNPATH tag from executables and libraries. But doing so
8623 # requires that you compile everything twice, which is a pain.
8624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8625 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 8628 else
8d138742 8629 ld_shlibs=no
d9898ee8 8630 fi
8631 ;;
8632 esac
8633 ;;
8634
8635 sunos4*)
8d138742 8636 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
d9898ee8 8637 wlarc=
8d138742
CE
8638 hardcode_direct=yes
8639 hardcode_shlibpath_var=no
d9898ee8 8640 ;;
8641
8642 *)
8d138742
CE
8643 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8645 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
d9898ee8 8646 else
8d138742 8647 ld_shlibs=no
d9898ee8 8648 fi
8649 ;;
8650 esac
8651
8d138742 8652 if test "$ld_shlibs" = no; then
d9898ee8 8653 runpath_var=
8d138742
CE
8654 hardcode_libdir_flag_spec=
8655 export_dynamic_flag_spec=
8656 whole_archive_flag_spec=
d9898ee8 8657 fi
8658 else
8659 # PORTME fill in a description of your system's linker (not GNU ld)
8660 case $host_os in
8661 aix3*)
8d138742
CE
8662 allow_undefined_flag=unsupported
8663 always_export_symbols=yes
8664 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
d9898ee8 8665 # Note: this linker hardcodes the directories in LIBPATH if there
8666 # are no directories specified by -L.
8d138742 8667 hardcode_minus_L=yes
d9898ee8 8668 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8669 # Neither direct hardcoding nor static linking is supported with a
8670 # broken collect2.
8d138742 8671 hardcode_direct=unsupported
d9898ee8 8672 fi
8673 ;;
8674
8d138742 8675 aix[4-9]*)
d9898ee8 8676 if test "$host_cpu" = ia64; then
8677 # On IA64, the linker does run time linking by default, so we don't
8678 # have to do anything special.
8679 aix_use_runtimelinking=no
8680 exp_sym_flag='-Bexport'
8681 no_entry_flag=""
8682 else
8683 # If we're using GNU nm, then we don't want the "-C" option.
8684 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8d138742
CE
8685 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8686 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'
d9898ee8 8687 else
8d138742 8688 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'
d9898ee8 8689 fi
8690 aix_use_runtimelinking=no
8691
8692 # Test if we are trying to use run time linking or normal
8693 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8694 # need to do runtime linking.
8d138742 8695 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
d9898ee8 8696 for ld_flag in $LDFLAGS; do
8d138742
CE
8697 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8698 aix_use_runtimelinking=yes
8699 break
8700 fi
d9898ee8 8701 done
8702 ;;
8703 esac
8704
8705 exp_sym_flag='-bexport'
8706 no_entry_flag='-bnoentry'
8707 fi
8708
8709 # When large executables or shared objects are built, AIX ld can
8710 # have problems creating the table of contents. If linking a library
8711 # or program results in "error TOC overflow" add -mminimal-toc to
8712 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8713 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8714
8d138742
CE
8715 archive_cmds=''
8716 hardcode_direct=yes
8717 hardcode_direct_absolute=yes
8718 hardcode_libdir_separator=':'
8719 link_all_deplibs=yes
8720 file_list_spec='${wl}-f,'
d9898ee8 8721
8722 if test "$GCC" = yes; then
8723 case $host_os in aix4.[012]|aix4.[012].*)
8724 # We only want to do this on AIX 4.2 and lower, the check
8725 # below for broken collect2 doesn't work under 4.3+
8726 collect2name=`${CC} -print-prog-name=collect2`
8d138742
CE
8727 if test -f "$collect2name" &&
8728 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
d9898ee8 8729 then
8d138742
CE
8730 # We have reworked collect2
8731 :
d9898ee8 8732 else
8d138742
CE
8733 # We have old collect2
8734 hardcode_direct=unsupported
8735 # It fails to find uninstalled libraries when the uninstalled
8736 # path is not listed in the libpath. Setting hardcode_minus_L
8737 # to unsupported forces relinking
8738 hardcode_minus_L=yes
8739 hardcode_libdir_flag_spec='-L$libdir'
8740 hardcode_libdir_separator=
d9898ee8 8741 fi
8742 ;;
8743 esac
8744 shared_flag='-shared'
8745 if test "$aix_use_runtimelinking" = yes; then
8746 shared_flag="$shared_flag "'${wl}-G'
8747 fi
8748 else
8749 # not using gcc
8750 if test "$host_cpu" = ia64; then
8d138742
CE
8751 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8752 # chokes on -Wl,-G. The following line is correct:
d9898ee8 8753 shared_flag='-G'
8754 else
8755 if test "$aix_use_runtimelinking" = yes; then
8756 shared_flag='${wl}-G'
8757 else
8758 shared_flag='${wl}-bM:SRE'
8759 fi
8760 fi
8761 fi
8762
8d138742 8763 export_dynamic_flag_spec='${wl}-bexpall'
d9898ee8 8764 # It seems that -bexpall does not export symbols beginning with
8765 # underscore (_), so it is better to generate a list of symbols to export.
8d138742 8766 always_export_symbols=yes
d9898ee8 8767 if test "$aix_use_runtimelinking" = yes; then
8768 # Warning - without using the other runtime loading flags (-brtl),
8769 # -berok will link without error, but may produce a broken library.
8d138742
CE
8770 allow_undefined_flag='-berok'
8771 # Determine the default libpath from the value encoded in an
8772 # empty executable.
8773 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 8774/* confdefs.h. */
8775_ACEOF
8776cat confdefs.h >>conftest.$ac_ext
8777cat >>conftest.$ac_ext <<_ACEOF
8778/* end confdefs.h. */
8779
8780int
8781main ()
8782{
8783
8784 ;
8785 return 0;
8786}
8787_ACEOF
8788rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8789if { (ac_try="$ac_link"
8790case "(($ac_try" in
8791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792 *) ac_try_echo=$ac_try;;
8793esac
8d138742
CE
8794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8795$as_echo "$ac_try_echo") >&5
dd184caf 8796 (eval "$ac_link") 2>conftest.er1
d9898ee8 8797 ac_status=$?
8798 grep -v '^ *+' conftest.er1 >conftest.err
8799 rm -f conftest.er1
8800 cat conftest.err >&5
8d138742 8801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8802 (exit $ac_status); } && {
8803 test -z "$ac_c_werror_flag" ||
8804 test ! -s conftest.err
8d138742
CE
8805 } && test -s conftest$ac_exeext && {
8806 test "$cross_compiling" = yes ||
8807 $as_test_x conftest$ac_exeext
8808 }; then
d9898ee8 8809
ac40fd9e 8810lt_aix_libpath_sed='
8811 /Import File Strings/,/^$/ {
8812 /^0/ {
8813 s/^0 *\(.*\)$/\1/
8814 p
8815 }
8816 }'
8817aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8818# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8819if test -z "$aix_libpath"; then
8820 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8821fi
d9898ee8 8822else
8d138742 8823 $as_echo "$as_me: failed program was:" >&5
d9898ee8 8824sed 's/^/| /' conftest.$ac_ext >&5
8825
dd184caf 8826
d9898ee8 8827fi
dd184caf 8828
8d138742 8829rm -rf conftest.dSYM
dd184caf 8830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8831 conftest$ac_exeext conftest.$ac_ext
8832if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8833
8d138742
CE
8834 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8835 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8836 else
d9898ee8 8837 if test "$host_cpu" = ia64; then
8d138742
CE
8838 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8839 allow_undefined_flag="-z nodefs"
8840 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
d9898ee8 8841 else
8d138742
CE
8842 # Determine the default libpath from the value encoded in an
8843 # empty executable.
d9898ee8 8844 cat >conftest.$ac_ext <<_ACEOF
8845/* confdefs.h. */
8846_ACEOF
8847cat confdefs.h >>conftest.$ac_ext
8848cat >>conftest.$ac_ext <<_ACEOF
8849/* end confdefs.h. */
8850
8851int
8852main ()
8853{
8854
8855 ;
8856 return 0;
8857}
8858_ACEOF
8859rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 8860if { (ac_try="$ac_link"
8861case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864esac
8d138742
CE
8865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8866$as_echo "$ac_try_echo") >&5
dd184caf 8867 (eval "$ac_link") 2>conftest.er1
d9898ee8 8868 ac_status=$?
8869 grep -v '^ *+' conftest.er1 >conftest.err
8870 rm -f conftest.er1
8871 cat conftest.err >&5
8d138742 8872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 8873 (exit $ac_status); } && {
8874 test -z "$ac_c_werror_flag" ||
8875 test ! -s conftest.err
8d138742
CE
8876 } && test -s conftest$ac_exeext && {
8877 test "$cross_compiling" = yes ||
8878 $as_test_x conftest$ac_exeext
8879 }; then
d9898ee8 8880
ac40fd9e 8881lt_aix_libpath_sed='
8882 /Import File Strings/,/^$/ {
8883 /^0/ {
8884 s/^0 *\(.*\)$/\1/
8885 p
8886 }
8887 }'
8888aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
d9898ee8 8889# Check for a 64-bit object if we didn't find anything.
ac40fd9e 8890if test -z "$aix_libpath"; then
8891 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8892fi
d9898ee8 8893else
8d138742 8894 $as_echo "$as_me: failed program was:" >&5
d9898ee8 8895sed 's/^/| /' conftest.$ac_ext >&5
8896
dd184caf 8897
d9898ee8 8898fi
dd184caf 8899
8d138742 8900rm -rf conftest.dSYM
dd184caf 8901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 8902 conftest$ac_exeext conftest.$ac_ext
8903if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8904
8d138742 8905 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
d9898ee8 8906 # Warning - without using the other run time loading flags,
8907 # -berok will link without error, but may produce a broken library.
8d138742
CE
8908 no_undefined_flag=' ${wl}-bernotok'
8909 allow_undefined_flag=' ${wl}-berok'
d9898ee8 8910 # Exported symbols can be pulled into shared objects from archives
8d138742
CE
8911 whole_archive_flag_spec='$convenience'
8912 archive_cmds_need_lc=yes
d9898ee8 8913 # This is similar to how AIX traditionally builds its shared libraries.
8d138742 8914 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
d9898ee8 8915 fi
8916 fi
8917 ;;
8918
8919 amigaos*)
8d138742
CE
8920 case $host_cpu in
8921 powerpc)
8922 # see comment about AmigaOS4 .so support
8923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8924 archive_expsym_cmds=''
8925 ;;
8926 m68k)
8927 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8928 hardcode_libdir_flag_spec='-L$libdir'
8929 hardcode_minus_L=yes
8930 ;;
8931 esac
d9898ee8 8932 ;;
8933
8934 bsdi[45]*)
8d138742 8935 export_dynamic_flag_spec=-rdynamic
d9898ee8 8936 ;;
8937
8d138742 8938 cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 8939 # When not using gcc, we currently assume that we are using
8940 # Microsoft Visual C++.
8941 # hardcode_libdir_flag_spec is actually meaningless, as there is
8942 # no search path for DLLs.
8d138742
CE
8943 hardcode_libdir_flag_spec=' '
8944 allow_undefined_flag=unsupported
d9898ee8 8945 # Tell ltmain to make .lib files, not .a files.
8946 libext=lib
8947 # Tell ltmain to make .dll files, not .so files.
8948 shrext_cmds=".dll"
8949 # FIXME: Setting linknames here is a bad hack.
8d138742 8950 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
d9898ee8 8951 # The linker will automatically build a .lib file if we build a DLL.
8d138742 8952 old_archive_from_new_cmds='true'
d9898ee8 8953 # FIXME: Should let the user specify the lib program.
8d138742
CE
8954 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8955 fix_srcfile_path='`cygpath -w "$srcfile"`'
8956 enable_shared_with_static_runtimes=yes
d9898ee8 8957 ;;
8958
8959 darwin* | rhapsody*)
8d138742
CE
8960
8961
8962 archive_cmds_need_lc=no
8963 hardcode_direct=no
8964 hardcode_automatic=yes
8965 hardcode_shlibpath_var=unsupported
8966 whole_archive_flag_spec=''
8967 link_all_deplibs=yes
8968 allow_undefined_flag="$_lt_dar_allow_undefined"
8969 case $cc_basename in
8970 ifort*) _lt_dar_can_shared=yes ;;
8971 *) _lt_dar_can_shared=$GCC ;;
8972 esac
8973 if test "$_lt_dar_can_shared" = "yes"; then
8974 output_verbose_link_cmd=echo
8975 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8976 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8977 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8978 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}"
8979
8980 else
8981 ld_shlibs=no
8982 fi
8983
d9898ee8 8984 ;;
8985
8986 dgux*)
8d138742
CE
8987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_shlibpath_var=no
d9898ee8 8990 ;;
8991
8992 freebsd1*)
8d138742 8993 ld_shlibs=no
d9898ee8 8994 ;;
8995
8996 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8997 # support. Future versions do this automatically, but an explicit c++rt0.o
8998 # does not break anything, and helps significantly (at the cost of a little
8999 # extra space).
9000 freebsd2.2*)
8d138742
CE
9001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9002 hardcode_libdir_flag_spec='-R$libdir'
9003 hardcode_direct=yes
9004 hardcode_shlibpath_var=no
d9898ee8 9005 ;;
9006
9007 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9008 freebsd2*)
8d138742
CE
9009 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9010 hardcode_direct=yes
9011 hardcode_minus_L=yes
9012 hardcode_shlibpath_var=no
d9898ee8 9013 ;;
9014
9015 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
ac40fd9e 9016 freebsd* | dragonfly*)
8d138742
CE
9017 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9018 hardcode_libdir_flag_spec='-R$libdir'
9019 hardcode_direct=yes
9020 hardcode_shlibpath_var=no
d9898ee8 9021 ;;
9022
9023 hpux9*)
9024 if test "$GCC" = yes; then
8d138742 9025 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'
d9898ee8 9026 else
8d138742 9027 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
d9898ee8 9028 fi
8d138742
CE
9029 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9030 hardcode_libdir_separator=:
9031 hardcode_direct=yes
d9898ee8 9032
9033 # hardcode_minus_L: Not really in the search PATH,
9034 # but as the default location of the library.
8d138742
CE
9035 hardcode_minus_L=yes
9036 export_dynamic_flag_spec='${wl}-E'
d9898ee8 9037 ;;
9038
9039 hpux10*)
9040 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8d138742 9041 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9042 else
8d138742 9043 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
d9898ee8 9044 fi
9045 if test "$with_gnu_ld" = no; then
8d138742
CE
9046 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9047 hardcode_libdir_flag_spec_ld='+b $libdir'
9048 hardcode_libdir_separator=:
9049 hardcode_direct=yes
9050 hardcode_direct_absolute=yes
9051 export_dynamic_flag_spec='${wl}-E'
d9898ee8 9052 # hardcode_minus_L: Not really in the search PATH,
9053 # but as the default location of the library.
8d138742 9054 hardcode_minus_L=yes
d9898ee8 9055 fi
9056 ;;
9057
9058 hpux11*)
9059 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9060 case $host_cpu in
9061 hppa*64*)
8d138742 9062 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9063 ;;
9064 ia64*)
8d138742 9065 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9066 ;;
9067 *)
8d138742 9068 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9069 ;;
9070 esac
9071 else
9072 case $host_cpu in
9073 hppa*64*)
8d138742 9074 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9075 ;;
9076 ia64*)
8d138742 9077 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9078 ;;
9079 *)
8d138742 9080 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9081 ;;
9082 esac
9083 fi
9084 if test "$with_gnu_ld" = no; then
8d138742
CE
9085 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9086 hardcode_libdir_separator=:
d9898ee8 9087
9088 case $host_cpu in
9089 hppa*64*|ia64*)
8d138742
CE
9090 hardcode_direct=no
9091 hardcode_shlibpath_var=no
d9898ee8 9092 ;;
9093 *)
8d138742
CE
9094 hardcode_direct=yes
9095 hardcode_direct_absolute=yes
9096 export_dynamic_flag_spec='${wl}-E'
d9898ee8 9097
9098 # hardcode_minus_L: Not really in the search PATH,
9099 # but as the default location of the library.
8d138742 9100 hardcode_minus_L=yes
d9898ee8 9101 ;;
9102 esac
9103 fi
9104 ;;
9105
9106 irix5* | irix6* | nonstopux*)
9107 if test "$GCC" = yes; then
8d138742
CE
9108 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'
9109 # Try to use the -exported_symbol ld option, if it does not
9110 # work, assume that -exports_file does not work either and
9111 # implicitly export all symbols.
9112 save_LDFLAGS="$LDFLAGS"
9113 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9114 cat >conftest.$ac_ext <<_ACEOF
9115int foo(void) {}
9116_ACEOF
9117rm -f conftest.$ac_objext conftest$ac_exeext
9118if { (ac_try="$ac_link"
9119case "(($ac_try" in
9120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9121 *) ac_try_echo=$ac_try;;
9122esac
9123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9124$as_echo "$ac_try_echo") >&5
9125 (eval "$ac_link") 2>conftest.er1
9126 ac_status=$?
9127 grep -v '^ *+' conftest.er1 >conftest.err
9128 rm -f conftest.er1
9129 cat conftest.err >&5
9130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } && {
9132 test -z "$ac_c_werror_flag" ||
9133 test ! -s conftest.err
9134 } && test -s conftest$ac_exeext && {
9135 test "$cross_compiling" = yes ||
9136 $as_test_x conftest$ac_exeext
9137 }; then
9138 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9139
9140else
9141 $as_echo "$as_me: failed program was:" >&5
9142sed 's/^/| /' conftest.$ac_ext >&5
9143
9144
9145fi
9146
9147rm -rf conftest.dSYM
9148rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9149 conftest$ac_exeext conftest.$ac_ext
9150 LDFLAGS="$save_LDFLAGS"
d9898ee8 9151 else
8d138742
CE
9152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9153 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
d9898ee8 9154 fi
8d138742
CE
9155 archive_cmds_need_lc='no'
9156 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9157 hardcode_libdir_separator=:
9158 inherit_rpath=yes
9159 link_all_deplibs=yes
d9898ee8 9160 ;;
9161
9162 netbsd*)
8d138742
CE
9163 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9164 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
d9898ee8 9165 else
8d138742 9166 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
d9898ee8 9167 fi
8d138742
CE
9168 hardcode_libdir_flag_spec='-R$libdir'
9169 hardcode_direct=yes
9170 hardcode_shlibpath_var=no
d9898ee8 9171 ;;
9172
9173 newsos6)
8d138742
CE
9174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9175 hardcode_direct=yes
9176 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9177 hardcode_libdir_separator=:
9178 hardcode_shlibpath_var=no
9179 ;;
9180
9181 *nto* | *qnx*)
d9898ee8 9182 ;;
9183
9184 openbsd*)
ac40fd9e 9185 if test -f /usr/libexec/ld.so; then
8d138742
CE
9186 hardcode_direct=yes
9187 hardcode_shlibpath_var=no
9188 hardcode_direct_absolute=yes
9189 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9190 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9191 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9192 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9193 export_dynamic_flag_spec='${wl}-E'
ac40fd9e 9194 else
9195 case $host_os in
9196 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8d138742
CE
9197 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9198 hardcode_libdir_flag_spec='-R$libdir'
ac40fd9e 9199 ;;
9200 *)
8d138742
CE
9201 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9202 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
ac40fd9e 9203 ;;
9204 esac
8d138742 9205 fi
d9898ee8 9206 else
8d138742 9207 ld_shlibs=no
d9898ee8 9208 fi
9209 ;;
9210
9211 os2*)
8d138742
CE
9212 hardcode_libdir_flag_spec='-L$libdir'
9213 hardcode_minus_L=yes
9214 allow_undefined_flag=unsupported
9215 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9216 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
d9898ee8 9217 ;;
9218
9219 osf3*)
9220 if test "$GCC" = yes; then
8d138742
CE
9221 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9222 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
d9898ee8 9223 else
8d138742
CE
9224 allow_undefined_flag=' -expect_unresolved \*'
9225 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
d9898ee8 9226 fi
8d138742
CE
9227 archive_cmds_need_lc='no'
9228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229 hardcode_libdir_separator=:
d9898ee8 9230 ;;
9231
9232 osf4* | osf5*) # as osf3* with the addition of -msym flag
9233 if test "$GCC" = yes; then
8d138742
CE
9234 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9235 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9236 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
d9898ee8 9237 else
8d138742
CE
9238 allow_undefined_flag=' -expect_unresolved \*'
9239 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9240 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~
9241 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d9898ee8 9242
9243 # Both c and cxx compiler support -rpath directly
8d138742 9244 hardcode_libdir_flag_spec='-rpath $libdir'
d9898ee8 9245 fi
8d138742
CE
9246 archive_cmds_need_lc='no'
9247 hardcode_libdir_separator=:
d9898ee8 9248 ;;
9249
9250 solaris*)
8d138742 9251 no_undefined_flag=' -z defs'
d9898ee8 9252 if test "$GCC" = yes; then
9253 wlarc='${wl}'
8d138742
CE
9254 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9255 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9256 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
d9898ee8 9257 else
8d138742
CE
9258 case `$CC -V 2>&1` in
9259 *"Compilers 5.0"*)
9260 wlarc=''
9261 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9262 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9263 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9264 ;;
9265 *)
9266 wlarc='${wl}'
9267 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9268 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9269 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9270 ;;
9271 esac
d9898ee8 9272 fi
8d138742
CE
9273 hardcode_libdir_flag_spec='-R$libdir'
9274 hardcode_shlibpath_var=no
d9898ee8 9275 case $host_os in
9276 solaris2.[0-5] | solaris2.[0-5].*) ;;
9277 *)
ac40fd9e 9278 # The compiler driver will combine and reorder linker options,
9279 # but understands `-z linker_flag'. GCC discards it without `$wl',
9280 # but is careful enough not to reorder.
8d138742 9281 # Supported since Solaris 2.6 (maybe 2.5.1?)
ac40fd9e 9282 if test "$GCC" = yes; then
8d138742 9283 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
ac40fd9e 9284 else
8d138742 9285 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
ac40fd9e 9286 fi
9287 ;;
d9898ee8 9288 esac
8d138742 9289 link_all_deplibs=yes
d9898ee8 9290 ;;
9291
9292 sunos4*)
9293 if test "x$host_vendor" = xsequent; then
9294 # Use $CC to link under sequent, because it throws in some extra .o
9295 # files that make .init and .fini sections work.
8d138742 9296 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9297 else
8d138742 9298 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d9898ee8 9299 fi
8d138742
CE
9300 hardcode_libdir_flag_spec='-L$libdir'
9301 hardcode_direct=yes
9302 hardcode_minus_L=yes
9303 hardcode_shlibpath_var=no
d9898ee8 9304 ;;
9305
9306 sysv4)
9307 case $host_vendor in
9308 sni)
8d138742
CE
9309 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310 hardcode_direct=yes # is this really true???
d9898ee8 9311 ;;
9312 siemens)
9313 ## LD is ld it makes a PLAMLIB
9314 ## CC just makes a GrossModule.
8d138742
CE
9315 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9316 reload_cmds='$CC -r -o $output$reload_objs'
9317 hardcode_direct=no
d9898ee8 9318 ;;
9319 motorola)
8d138742
CE
9320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
d9898ee8 9322 ;;
9323 esac
9324 runpath_var='LD_RUN_PATH'
8d138742 9325 hardcode_shlibpath_var=no
d9898ee8 9326 ;;
9327
9328 sysv4.3*)
8d138742
CE
9329 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9330 hardcode_shlibpath_var=no
9331 export_dynamic_flag_spec='-Bexport'
d9898ee8 9332 ;;
9333
9334 sysv4*MP*)
9335 if test -d /usr/nec; then
8d138742
CE
9336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9337 hardcode_shlibpath_var=no
d9898ee8 9338 runpath_var=LD_RUN_PATH
9339 hardcode_runpath_var=yes
8d138742 9340 ld_shlibs=yes
d9898ee8 9341 fi
9342 ;;
9343
ac40fd9e 9344 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8d138742
CE
9345 no_undefined_flag='${wl}-z,text'
9346 archive_cmds_need_lc=no
9347 hardcode_shlibpath_var=no
d9898ee8 9348 runpath_var='LD_RUN_PATH'
9349
9350 if test "$GCC" = yes; then
8d138742
CE
9351 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9353 else
8d138742
CE
9354 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9356 fi
9357 ;;
9358
9359 sysv5* | sco3.2v5* | sco5v6*)
9360 # Note: We can NOT use -z defs as we might desire, because we do not
9361 # link with -lc, and that would cause any symbols used from libc to
9362 # always be unresolved, which means just about no library would
9363 # ever link correctly. If we're not using GNU ld we use -z text
9364 # though, which does catch some bad symbols but isn't as heavy-handed
9365 # as -z defs.
8d138742
CE
9366 no_undefined_flag='${wl}-z,text'
9367 allow_undefined_flag='${wl}-z,nodefs'
9368 archive_cmds_need_lc=no
9369 hardcode_shlibpath_var=no
9370 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9371 hardcode_libdir_separator=':'
9372 link_all_deplibs=yes
9373 export_dynamic_flag_spec='${wl}-Bexport'
d9898ee8 9374 runpath_var='LD_RUN_PATH'
9375
9376 if test "$GCC" = yes; then
8d138742
CE
9377 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9378 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9379 else
8d138742
CE
9380 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9381 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
d9898ee8 9382 fi
9383 ;;
9384
9385 uts4*)
8d138742
CE
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_libdir_flag_spec='-L$libdir'
9388 hardcode_shlibpath_var=no
d9898ee8 9389 ;;
9390
9391 *)
8d138742 9392 ld_shlibs=no
d9898ee8 9393 ;;
9394 esac
8d138742
CE
9395
9396 if test x$host_vendor = xsni; then
9397 case $host in
9398 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9399 export_dynamic_flag_spec='${wl}-Blargedynsym'
9400 ;;
9401 esac
9402 fi
d9898ee8 9403 fi
9404
8d138742
CE
9405{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9406$as_echo "$ld_shlibs" >&6; }
9407test "$ld_shlibs" = no && can_build_shared=no
9408
9409with_gnu_ld=$with_gnu_ld
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
d9898ee8 9424
9425#
9426# Do we need to explicitly link libc?
9427#
8d138742 9428case "x$archive_cmds_need_lc" in
d9898ee8 9429x|xyes)
9430 # Assume -lc should be added
8d138742 9431 archive_cmds_need_lc=yes
d9898ee8 9432
9433 if test "$enable_shared" = yes && test "$GCC" = yes; then
8d138742 9434 case $archive_cmds in
d9898ee8 9435 *'~'*)
9436 # FIXME: we may have to deal with multi-command sequences.
9437 ;;
9438 '$CC '*)
9439 # Test whether the compiler implicitly links with -lc since on some
9440 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9441 # to ld, don't add -lc before -lgcc.
8d138742
CE
9442 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9443$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9444 $RM conftest*
ac40fd9e 9445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d9898ee8 9446
8d138742
CE
9447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9448 (eval $ac_compile) 2>&5
9449 ac_status=$?
9450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } 2>conftest.err; then
9452 soname=conftest
9453 lib=conftest
9454 libobjs=conftest.$ac_objext
9455 deplibs=
9456 wl=$lt_prog_compiler_wl
9457 pic_flag=$lt_prog_compiler_pic
9458 compiler_flags=-v
9459 linker_flags=-v
9460 verstring=
9461 output_objdir=.
9462 libname=conftest
9463 lt_save_allow_undefined_flag=$allow_undefined_flag
9464 allow_undefined_flag=
9465 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9466 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9467 ac_status=$?
9468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); }
9470 then
9471 archive_cmds_need_lc=no
9472 else
9473 archive_cmds_need_lc=yes
9474 fi
9475 allow_undefined_flag=$lt_save_allow_undefined_flag
9476 else
9477 cat conftest.err 1>&5
9478 fi
9479 $RM conftest*
9480 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9481$as_echo "$archive_cmds_need_lc" >&6; }
9482 ;;
9483 esac
9484 fi
9485 ;;
9486esac
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
d9898ee8 9642
8d138742
CE
9643
9644 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9645$as_echo_n "checking dynamic linker characteristics... " >&6; }
9646
9647if test "$GCC" = yes; then
9648 case $host_os in
9649 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9650 *) lt_awk_arg="/^libraries:/" ;;
9651 esac
9652 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9653 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9654 # if the path contains ";" then we assume it to be the separator
9655 # otherwise default to the standard path separator (i.e. ":") - it is
9656 # assumed that no part of a normal pathname contains ";" but that should
9657 # okay in the real world where ";" in dirpaths is itself problematic.
9658 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9659 else
9660 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9661 fi
9662 # Ok, now we have the path, separated by spaces, we can step through it
9663 # and add multilib dir if necessary.
9664 lt_tmp_lt_search_path_spec=
9665 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9666 for lt_sys_path in $lt_search_path_spec; do
9667 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9668 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9669 else
9670 test -d "$lt_sys_path" && \
9671 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9672 fi
9673 done
9674 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9675BEGIN {RS=" "; FS="/|\n";} {
9676 lt_foo="";
9677 lt_count=0;
9678 for (lt_i = NF; lt_i > 0; lt_i--) {
9679 if ($lt_i != "" && $lt_i != ".") {
9680 if ($lt_i == "..") {
9681 lt_count++;
9682 } else {
9683 if (lt_count == 0) {
9684 lt_foo="/" $lt_i lt_foo;
9685 } else {
9686 lt_count--;
9687 }
9688 }
9689 }
9690 }
9691 if (lt_foo != "") { lt_freq[lt_foo]++; }
9692 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9693}'`
9694 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9695else
9696 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9697fi
d9898ee8 9698library_names_spec=
9699libname_spec='lib$name'
9700soname_spec=
9701shrext_cmds=".so"
9702postinstall_cmds=
9703postuninstall_cmds=
9704finish_cmds=
9705finish_eval=
9706shlibpath_var=
9707shlibpath_overrides_runpath=unknown
9708version_type=none
9709dynamic_linker="$host_os ld.so"
9710sys_lib_dlsearch_path_spec="/lib /usr/lib"
d9898ee8 9711need_lib_prefix=unknown
9712hardcode_into_libs=no
9713
9714# when you set need_version to no, make sure it does not cause -set_version
9715# flags to be left without arguments
9716need_version=unknown
9717
9718case $host_os in
9719aix3*)
9720 version_type=linux
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9722 shlibpath_var=LIBPATH
9723
9724 # AIX 3 has no versioning support, so we append a major version to the name.
9725 soname_spec='${libname}${release}${shared_ext}$major'
9726 ;;
9727
8d138742 9728aix[4-9]*)
d9898ee8 9729 version_type=linux
9730 need_lib_prefix=no
9731 need_version=no
9732 hardcode_into_libs=yes
9733 if test "$host_cpu" = ia64; then
9734 # AIX 5 supports IA64
9735 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9736 shlibpath_var=LD_LIBRARY_PATH
9737 else
9738 # With GCC up to 2.95.x, collect2 would create an import file
9739 # for dependence libraries. The import file would start with
9740 # the line `#! .'. This would cause the generated library to
9741 # depend on `.', always an invalid library. This was fixed in
9742 # development snapshots of GCC prior to 3.0.
9743 case $host_os in
9744 aix4 | aix4.[01] | aix4.[01].*)
9745 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9746 echo ' yes '
8d138742 9747 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
d9898ee8 9748 :
9749 else
9750 can_build_shared=no
9751 fi
9752 ;;
9753 esac
9754 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9755 # soname into executable. Probably we can add versioning support to
9756 # collect2, so additional links can be useful in future.
9757 if test "$aix_use_runtimelinking" = yes; then
9758 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9759 # instead of lib<name>.a to let people know that these are not
9760 # typical AIX shared libraries.
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762 else
9763 # We preserve .a as extension for shared libraries through AIX4.2
9764 # and later when we are not doing run time linking.
9765 library_names_spec='${libname}${release}.a $libname.a'
9766 soname_spec='${libname}${release}${shared_ext}$major'
9767 fi
9768 shlibpath_var=LIBPATH
9769 fi
9770 ;;
9771
9772amigaos*)
8d138742
CE
9773 case $host_cpu in
9774 powerpc)
9775 # Since July 2007 AmigaOS4 officially supports .so libraries.
9776 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9778 ;;
9779 m68k)
9780 library_names_spec='$libname.ixlibrary $libname.a'
9781 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9782 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9783 ;;
9784 esac
d9898ee8 9785 ;;
9786
9787beos*)
9788 library_names_spec='${libname}${shared_ext}'
9789 dynamic_linker="$host_os ld.so"
9790 shlibpath_var=LIBRARY_PATH
9791 ;;
9792
9793bsdi[45]*)
9794 version_type=linux
9795 need_version=no
9796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9798 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9799 shlibpath_var=LD_LIBRARY_PATH
9800 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9801 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9802 # the default ld.so.conf also contains /usr/contrib/lib and
9803 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9804 # libtool to hard-code these into programs
9805 ;;
9806
8d138742 9807cygwin* | mingw* | pw32* | cegcc*)
d9898ee8 9808 version_type=windows
9809 shrext_cmds=".dll"
9810 need_version=no
9811 need_lib_prefix=no
9812
9813 case $GCC,$host_os in
8d138742 9814 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
d9898ee8 9815 library_names_spec='$libname.dll.a'
9816 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9817 postinstall_cmds='base_file=`basename \${file}`~
8d138742 9818 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
d9898ee8 9819 dldir=$destdir/`dirname \$dlpath`~
9820 test -d \$dldir || mkdir -p \$dldir~
9821 $install_prog $dir/$dlname \$dldir/$dlname~
8d138742
CE
9822 chmod a+x \$dldir/$dlname~
9823 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9824 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9825 fi'
d9898ee8 9826 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9827 dlpath=$dir/\$dldll~
8d138742 9828 $RM \$dlpath'
d9898ee8 9829 shlibpath_overrides_runpath=yes
9830
9831 case $host_os in
9832 cygwin*)
9833 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9834 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9835 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9836 ;;
8d138742 9837 mingw* | cegcc*)
d9898ee8 9838 # MinGW DLLs use traditional 'lib' prefix
9839 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8d138742
CE
9840 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9841 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
d9898ee8 9842 # It is most probably a Windows format PATH printed by
9843 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9844 # path with ; separators, and with drive letters. We can handle the
9845 # drive letters (cygwin fileutils understands them), so leave them,
9846 # especially as we might pass files found there to a mingw objdump,
9847 # which wouldn't understand a cygwinified path. Ahh.
8d138742 9848 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
d9898ee8 9849 else
8d138742 9850 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
d9898ee8 9851 fi
9852 ;;
9853 pw32*)
9854 # pw32 DLLs use 'pw' prefix rather than 'lib'
9855 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9856 ;;
9857 esac
9858 ;;
9859
9860 *)
9861 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9862 ;;
9863 esac
9864 dynamic_linker='Win32 ld.exe'
9865 # FIXME: first we should search . and the directory the executable is in
9866 shlibpath_var=PATH
9867 ;;
9868
9869darwin* | rhapsody*)
9870 dynamic_linker="$host_os dyld"
9871 version_type=darwin
9872 need_lib_prefix=no
9873 need_version=no
8d138742 9874 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
d9898ee8 9875 soname_spec='${libname}${release}${major}$shared_ext'
9876 shlibpath_overrides_runpath=yes
9877 shlibpath_var=DYLD_LIBRARY_PATH
9878 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
ac40fd9e 9879
8d138742 9880 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
d9898ee8 9881 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9882 ;;
9883
9884dgux*)
9885 version_type=linux
9886 need_lib_prefix=no
9887 need_version=no
9888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 shlibpath_var=LD_LIBRARY_PATH
9891 ;;
9892
9893freebsd1*)
9894 dynamic_linker=no
9895 ;;
9896
d9898ee8 9897freebsd* | dragonfly*)
9898 # DragonFly does not have aout. When/if they implement a new
9899 # versioning mechanism, adjust this.
9900 if test -x /usr/bin/objformat; then
9901 objformat=`/usr/bin/objformat`
9902 else
9903 case $host_os in
9904 freebsd[123]*) objformat=aout ;;
9905 *) objformat=elf ;;
9906 esac
9907 fi
9908 version_type=freebsd-$objformat
9909 case $version_type in
9910 freebsd-elf*)
9911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9912 need_version=no
9913 need_lib_prefix=no
9914 ;;
9915 freebsd-*)
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9917 need_version=yes
9918 ;;
9919 esac
9920 shlibpath_var=LD_LIBRARY_PATH
9921 case $host_os in
9922 freebsd2*)
9923 shlibpath_overrides_runpath=yes
9924 ;;
9925 freebsd3.[01]* | freebsdelf3.[01]*)
9926 shlibpath_overrides_runpath=yes
9927 hardcode_into_libs=yes
9928 ;;
9929 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9930 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9931 shlibpath_overrides_runpath=no
9932 hardcode_into_libs=yes
9933 ;;
ac40fd9e 9934 *) # from 4.6 on, and DragonFly
d9898ee8 9935 shlibpath_overrides_runpath=yes
9936 hardcode_into_libs=yes
9937 ;;
9938 esac
9939 ;;
9940
9941gnu*)
9942 version_type=linux
9943 need_lib_prefix=no
9944 need_version=no
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 shlibpath_var=LD_LIBRARY_PATH
9948 hardcode_into_libs=yes
9949 ;;
9950
9951hpux9* | hpux10* | hpux11*)
9952 # Give a soname corresponding to the major version so that dld.sl refuses to
9953 # link against other versions.
9954 version_type=sunos
9955 need_lib_prefix=no
9956 need_version=no
9957 case $host_cpu in
9958 ia64*)
9959 shrext_cmds='.so'
9960 hardcode_into_libs=yes
9961 dynamic_linker="$host_os dld.so"
9962 shlibpath_var=LD_LIBRARY_PATH
9963 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965 soname_spec='${libname}${release}${shared_ext}$major'
9966 if test "X$HPUX_IA64_MODE" = X32; then
9967 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9968 else
9969 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9970 fi
9971 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9972 ;;
8d138742
CE
9973 hppa*64*)
9974 shrext_cmds='.sl'
9975 hardcode_into_libs=yes
9976 dynamic_linker="$host_os dld.sl"
9977 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9980 soname_spec='${libname}${release}${shared_ext}$major'
9981 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9983 ;;
9984 *)
d9898ee8 9985 shrext_cmds='.sl'
9986 dynamic_linker="$host_os dld.sl"
9987 shlibpath_var=SHLIB_PATH
9988 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9990 soname_spec='${libname}${release}${shared_ext}$major'
9991 ;;
9992 esac
9993 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9994 postinstall_cmds='chmod 555 $lib'
9995 ;;
9996
ac40fd9e 9997interix[3-9]*)
d9898ee8 9998 version_type=linux
9999 need_lib_prefix=no
10000 need_version=no
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10004 shlibpath_var=LD_LIBRARY_PATH
10005 shlibpath_overrides_runpath=no
10006 hardcode_into_libs=yes
10007 ;;
10008
10009irix5* | irix6* | nonstopux*)
10010 case $host_os in
10011 nonstopux*) version_type=nonstopux ;;
10012 *)
10013 if test "$lt_cv_prog_gnu_ld" = yes; then
10014 version_type=linux
10015 else
10016 version_type=irix
10017 fi ;;
10018 esac
10019 need_lib_prefix=no
10020 need_version=no
10021 soname_spec='${libname}${release}${shared_ext}$major'
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10023 case $host_os in
10024 irix5* | nonstopux*)
10025 libsuff= shlibsuff=
10026 ;;
10027 *)
10028 case $LD in # libtool.m4 will add one of these switches to LD
10029 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10030 libsuff= shlibsuff= libmagic=32-bit;;
10031 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10032 libsuff=32 shlibsuff=N32 libmagic=N32;;
10033 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10034 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10035 *) libsuff= shlibsuff= libmagic=never-match;;
10036 esac
10037 ;;
10038 esac
10039 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10040 shlibpath_overrides_runpath=no
10041 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10042 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10043 hardcode_into_libs=yes
10044 ;;
10045
10046# No shared lib support for Linux oldld, aout, or coff.
10047linux*oldld* | linux*aout* | linux*coff*)
10048 dynamic_linker=no
10049 ;;
10050
10051# This must be Linux ELF.
ac40fd9e 10052linux* | k*bsd*-gnu)
d9898ee8 10053 version_type=linux
10054 need_lib_prefix=no
10055 need_version=no
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057 soname_spec='${libname}${release}${shared_ext}$major'
10058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10059 shlibpath_var=LD_LIBRARY_PATH
10060 shlibpath_overrides_runpath=no
8d138742
CE
10061 # Some binutils ld are patched to set DT_RUNPATH
10062 save_LDFLAGS=$LDFLAGS
10063 save_libdir=$libdir
10064 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10065 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10066 cat >conftest.$ac_ext <<_ACEOF
10067/* confdefs.h. */
10068_ACEOF
10069cat confdefs.h >>conftest.$ac_ext
10070cat >>conftest.$ac_ext <<_ACEOF
10071/* end confdefs.h. */
10072
10073int
10074main ()
10075{
10076
10077 ;
10078 return 0;
10079}
10080_ACEOF
10081rm -f conftest.$ac_objext conftest$ac_exeext
10082if { (ac_try="$ac_link"
10083case "(($ac_try" in
10084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085 *) ac_try_echo=$ac_try;;
10086esac
10087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10088$as_echo "$ac_try_echo") >&5
10089 (eval "$ac_link") 2>conftest.er1
10090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
10094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } && {
10096 test -z "$ac_c_werror_flag" ||
10097 test ! -s conftest.err
10098 } && test -s conftest$ac_exeext && {
10099 test "$cross_compiling" = yes ||
10100 $as_test_x conftest$ac_exeext
10101 }; then
10102 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10103 shlibpath_overrides_runpath=yes
10104fi
10105
10106else
10107 $as_echo "$as_me: failed program was:" >&5
10108sed 's/^/| /' conftest.$ac_ext >&5
10109
10110
10111fi
10112
10113rm -rf conftest.dSYM
10114rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10115 conftest$ac_exeext conftest.$ac_ext
10116 LDFLAGS=$save_LDFLAGS
10117 libdir=$save_libdir
10118
d9898ee8 10119 # This implies no fast_install, which is unacceptable.
10120 # Some rework will be needed to allow for fast_install
10121 # before this can be enabled.
10122 hardcode_into_libs=yes
8d138742
CE
10123
10124 # Add ABI-specific directories to the system library path.
10125 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
d9898ee8 10126
10127 # Append ld.so.conf contents to the search path
10128 if test -f /etc/ld.so.conf; then
8d138742 10129 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
ac40fd9e 10130 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
d9898ee8 10131 fi
10132
10133 # We used to test for /lib/ld.so.1 and disable shared libraries on
10134 # powerpc, because MkLinux only supported shared libraries with the
10135 # GNU dynamic linker. Since this was broken with cross compilers,
10136 # most powerpc-linux boxes support dynamic linking these days and
10137 # people can always --disable-shared, the test was removed, and we
10138 # assume the GNU/Linux dynamic linker is in use.
10139 dynamic_linker='GNU/Linux ld.so'
10140 ;;
10141
d9898ee8 10142netbsd*)
10143 version_type=sunos
10144 need_lib_prefix=no
10145 need_version=no
8d138742 10146 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
d9898ee8 10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10149 dynamic_linker='NetBSD (a.out) ld.so'
10150 else
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 dynamic_linker='NetBSD ld.elf_so'
10154 fi
10155 shlibpath_var=LD_LIBRARY_PATH
10156 shlibpath_overrides_runpath=yes
10157 hardcode_into_libs=yes
10158 ;;
10159
10160newsos6)
10161 version_type=linux
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 shlibpath_var=LD_LIBRARY_PATH
10164 shlibpath_overrides_runpath=yes
10165 ;;
10166
8d138742
CE
10167*nto* | *qnx*)
10168 version_type=qnx
d9898ee8 10169 need_lib_prefix=no
10170 need_version=no
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 shlibpath_var=LD_LIBRARY_PATH
8d138742
CE
10174 shlibpath_overrides_runpath=no
10175 hardcode_into_libs=yes
10176 dynamic_linker='ldqnx.so'
d9898ee8 10177 ;;
10178
10179openbsd*)
10180 version_type=sunos
10181 sys_lib_dlsearch_path_spec="/usr/lib"
10182 need_lib_prefix=no
10183 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10184 case $host_os in
8d138742
CE
10185 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10186 *) need_version=no ;;
d9898ee8 10187 esac
10188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10190 shlibpath_var=LD_LIBRARY_PATH
8d138742 10191 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
d9898ee8 10192 case $host_os in
10193 openbsd2.[89] | openbsd2.[89].*)
10194 shlibpath_overrides_runpath=no
10195 ;;
10196 *)
10197 shlibpath_overrides_runpath=yes
10198 ;;
10199 esac
10200 else
10201 shlibpath_overrides_runpath=yes
10202 fi
10203 ;;
10204
10205os2*)
10206 libname_spec='$name'
10207 shrext_cmds=".dll"
10208 need_lib_prefix=no
10209 library_names_spec='$libname${shared_ext} $libname.a'
10210 dynamic_linker='OS/2 ld.exe'
10211 shlibpath_var=LIBPATH
10212 ;;
10213
10214osf3* | osf4* | osf5*)
10215 version_type=osf
10216 need_lib_prefix=no
10217 need_version=no
10218 soname_spec='${libname}${release}${shared_ext}$major'
10219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10222 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10223 ;;
10224
ac40fd9e 10225rdos*)
10226 dynamic_linker=no
10227 ;;
10228
d9898ee8 10229solaris*)
10230 version_type=linux
10231 need_lib_prefix=no
10232 need_version=no
10233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234 soname_spec='${libname}${release}${shared_ext}$major'
10235 shlibpath_var=LD_LIBRARY_PATH
10236 shlibpath_overrides_runpath=yes
10237 hardcode_into_libs=yes
10238 # ldd complains unless libraries are executable
10239 postinstall_cmds='chmod +x $lib'
10240 ;;
10241
10242sunos4*)
10243 version_type=sunos
10244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10245 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10246 shlibpath_var=LD_LIBRARY_PATH
10247 shlibpath_overrides_runpath=yes
10248 if test "$with_gnu_ld" = yes; then
10249 need_lib_prefix=no
10250 fi
10251 need_version=yes
10252 ;;
10253
10254sysv4 | sysv4.3*)
10255 version_type=linux
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 case $host_vendor in
10260 sni)
10261 shlibpath_overrides_runpath=no
10262 need_lib_prefix=no
d9898ee8 10263 runpath_var=LD_RUN_PATH
10264 ;;
10265 siemens)
10266 need_lib_prefix=no
10267 ;;
10268 motorola)
10269 need_lib_prefix=no
10270 need_version=no
10271 shlibpath_overrides_runpath=no
10272 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10273 ;;
10274 esac
10275 ;;
10276
10277sysv4*MP*)
10278 if test -d /usr/nec ;then
10279 version_type=linux
10280 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10281 soname_spec='$libname${shared_ext}.$major'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 fi
10284 ;;
10285
10286sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10287 version_type=freebsd-elf
10288 need_lib_prefix=no
10289 need_version=no
10290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 shlibpath_var=LD_LIBRARY_PATH
8d138742 10293 shlibpath_overrides_runpath=yes
d9898ee8 10294 hardcode_into_libs=yes
10295 if test "$with_gnu_ld" = yes; then
10296 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
d9898ee8 10297 else
10298 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
d9898ee8 10299 case $host_os in
10300 sco3.2v5*)
10301 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10302 ;;
10303 esac
10304 fi
10305 sys_lib_dlsearch_path_spec='/usr/lib'
10306 ;;
10307
8d138742
CE
10308tpf*)
10309 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10310 version_type=linux
10311 need_lib_prefix=no
10312 need_version=no
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 shlibpath_overrides_runpath=no
10316 hardcode_into_libs=yes
10317 ;;
10318
d9898ee8 10319uts4*)
10320 version_type=linux
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 ;;
10325
10326*)
10327 dynamic_linker=no
10328 ;;
10329esac
8d138742
CE
10330{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10331$as_echo "$dynamic_linker" >&6; }
d9898ee8 10332test "$dynamic_linker" = no && can_build_shared=no
10333
10334variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10335if test "$GCC" = yes; then
10336 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10337fi
10338
8d138742
CE
10339if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10340 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
d9898ee8 10341fi
8d138742
CE
10342if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10343 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
d9898ee8 10344fi
10345
10346
d9898ee8 10347
d9898ee8 10348
d9898ee8 10349
d9898ee8 10350
d9898ee8 10351
d9898ee8 10352
d9898ee8 10353
d9898ee8 10354
d9898ee8 10355
d9898ee8 10356
d9898ee8 10357
d9898ee8 10358
d9898ee8 10359
d9898ee8 10360
d9898ee8 10361
d9898ee8 10362
d9898ee8 10363
d9898ee8 10364
d9898ee8 10365
d9898ee8 10366
d9898ee8 10367
d9898ee8 10368
d9898ee8 10369
d9898ee8 10370
d9898ee8 10371
d9898ee8 10372
d9898ee8 10373
d9898ee8 10374
d9898ee8 10375
d9898ee8 10376
d9898ee8 10377
d9898ee8 10378
d9898ee8 10379
d9898ee8 10380
d9898ee8 10381
d9898ee8 10382
d9898ee8 10383
d9898ee8 10384
d9898ee8 10385
d9898ee8 10386
d9898ee8 10387
d9898ee8 10388
d9898ee8 10389
d9898ee8 10390
d9898ee8 10391
d9898ee8 10392
d9898ee8 10393
d9898ee8 10394
d9898ee8 10395
d9898ee8 10396
d9898ee8 10397
d9898ee8 10398
d9898ee8 10399
d9898ee8 10400
d9898ee8 10401
d9898ee8 10402
d9898ee8 10403
d9898ee8 10404
d9898ee8 10405
d9898ee8 10406
d9898ee8 10407
d9898ee8 10408
d9898ee8 10409
d9898ee8 10410
d9898ee8 10411
d9898ee8 10412
d9898ee8 10413
d9898ee8 10414
d9898ee8 10415
d9898ee8 10416
d9898ee8 10417
d9898ee8 10418
d9898ee8 10419
d9898ee8 10420
d9898ee8 10421
d9898ee8 10422
d9898ee8 10423
d9898ee8 10424
d9898ee8 10425
d9898ee8 10426
d9898ee8 10427
d9898ee8 10428
d9898ee8 10429
d9898ee8 10430
d9898ee8 10431
8d138742
CE
10432 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10433$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10434hardcode_action=
10435if test -n "$hardcode_libdir_flag_spec" ||
10436 test -n "$runpath_var" ||
10437 test "X$hardcode_automatic" = "Xyes" ; then
10438
10439 # We can hardcode non-existent directories.
10440 if test "$hardcode_direct" != no &&
10441 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10442 # have to relink, otherwise we might link with an installed library
10443 # when we should be linking with a yet-to-be-installed one
10444 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10445 test "$hardcode_minus_L" != no; then
10446 # Linking always hardcodes the temporary library directory.
10447 hardcode_action=relink
10448 else
10449 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10450 hardcode_action=immediate
10451 fi
10452else
10453 # We cannot hardcode anything, or else we can only hardcode existing
10454 # directories.
10455 hardcode_action=unsupported
10456fi
10457{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10458$as_echo "$hardcode_action" >&6; }
10459
10460if test "$hardcode_action" = relink ||
10461 test "$inherit_rpath" = yes; then
10462 # Fast installation is not supported
10463 enable_fast_install=no
10464elif test "$shlibpath_overrides_runpath" = yes ||
10465 test "$enable_shared" = no; then
10466 # Fast installation is not necessary
10467 enable_fast_install=needless
10468fi
d9898ee8 10469
d9898ee8 10470
d9898ee8 10471
d9898ee8 10472
d9898ee8 10473
d9898ee8 10474
8d138742
CE
10475 if test "x$enable_dlopen" != xyes; then
10476 enable_dlopen=unknown
10477 enable_dlopen_self=unknown
10478 enable_dlopen_self_static=unknown
10479else
10480 lt_cv_dlopen=no
10481 lt_cv_dlopen_libs=
d9898ee8 10482
8d138742
CE
10483 case $host_os in
10484 beos*)
10485 lt_cv_dlopen="load_add_on"
10486 lt_cv_dlopen_libs=
10487 lt_cv_dlopen_self=yes
10488 ;;
d9898ee8 10489
8d138742
CE
10490 mingw* | pw32* | cegcc*)
10491 lt_cv_dlopen="LoadLibrary"
10492 lt_cv_dlopen_libs=
10493 ;;
d9898ee8 10494
8d138742
CE
10495 cygwin*)
10496 lt_cv_dlopen="dlopen"
10497 lt_cv_dlopen_libs=
10498 ;;
d9898ee8 10499
8d138742
CE
10500 darwin*)
10501 # if libdl is installed we need to link against it
10502 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10503$as_echo_n "checking for dlopen in -ldl... " >&6; }
10504if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10505 $as_echo_n "(cached) " >&6
10506else
10507 ac_check_lib_save_LIBS=$LIBS
10508LIBS="-ldl $LIBS"
10509cat >conftest.$ac_ext <<_ACEOF
10510/* confdefs.h. */
10511_ACEOF
10512cat confdefs.h >>conftest.$ac_ext
10513cat >>conftest.$ac_ext <<_ACEOF
10514/* end confdefs.h. */
d9898ee8 10515
8d138742
CE
10516/* Override any GCC internal prototype to avoid an error.
10517 Use char because int might match the return type of a GCC
10518 builtin and then its argument prototype would still apply. */
10519#ifdef __cplusplus
10520extern "C"
10521#endif
10522char dlopen ();
10523int
10524main ()
10525{
10526return dlopen ();
10527 ;
10528 return 0;
10529}
10530_ACEOF
10531rm -f conftest.$ac_objext conftest$ac_exeext
10532if { (ac_try="$ac_link"
10533case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536esac
10537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10538$as_echo "$ac_try_echo") >&5
10539 (eval "$ac_link") 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && {
10546 test -z "$ac_c_werror_flag" ||
10547 test ! -s conftest.err
10548 } && test -s conftest$ac_exeext && {
10549 test "$cross_compiling" = yes ||
10550 $as_test_x conftest$ac_exeext
10551 }; then
10552 ac_cv_lib_dl_dlopen=yes
10553else
10554 $as_echo "$as_me: failed program was:" >&5
10555sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10556
8d138742
CE
10557 ac_cv_lib_dl_dlopen=no
10558fi
d9898ee8 10559
8d138742
CE
10560rm -rf conftest.dSYM
10561rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10562 conftest$ac_exeext conftest.$ac_ext
10563LIBS=$ac_check_lib_save_LIBS
10564fi
10565{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10566$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10567if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10568 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
d9898ee8 10569else
8d138742
CE
10570
10571 lt_cv_dlopen="dyld"
10572 lt_cv_dlopen_libs=
10573 lt_cv_dlopen_self=yes
10574
d9898ee8 10575fi
10576
8d138742 10577 ;;
d9898ee8 10578
8d138742
CE
10579 *)
10580 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10581$as_echo_n "checking for shl_load... " >&6; }
10582if test "${ac_cv_func_shl_load+set}" = set; then
10583 $as_echo_n "(cached) " >&6
10584else
10585 cat >conftest.$ac_ext <<_ACEOF
10586/* confdefs.h. */
10587_ACEOF
10588cat confdefs.h >>conftest.$ac_ext
10589cat >>conftest.$ac_ext <<_ACEOF
10590/* end confdefs.h. */
10591/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10593#define shl_load innocuous_shl_load
d9898ee8 10594
8d138742
CE
10595/* System header to define __stub macros and hopefully few prototypes,
10596 which can conflict with char shl_load (); below.
10597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10598 <limits.h> exists even on freestanding compilers. */
d9898ee8 10599
8d138742
CE
10600#ifdef __STDC__
10601# include <limits.h>
10602#else
10603# include <assert.h>
10604#endif
10605
10606#undef shl_load
10607
10608/* Override any GCC internal prototype to avoid an error.
10609 Use char because int might match the return type of a GCC
10610 builtin and then its argument prototype would still apply. */
10611#ifdef __cplusplus
10612extern "C"
10613#endif
10614char shl_load ();
10615/* The GNU C library defines this for functions which it implements
10616 to always fail with ENOSYS. Some functions are actually named
10617 something starting with __ and the normal name is an alias. */
10618#if defined __stub_shl_load || defined __stub___shl_load
10619choke me
10620#endif
10621
10622int
10623main ()
10624{
10625return shl_load ();
10626 ;
10627 return 0;
10628}
10629_ACEOF
10630rm -f conftest.$ac_objext conftest$ac_exeext
10631if { (ac_try="$ac_link"
10632case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10635esac
10636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10637$as_echo "$ac_try_echo") >&5
10638 (eval "$ac_link") 2>conftest.er1
10639 ac_status=$?
10640 grep -v '^ *+' conftest.er1 >conftest.err
10641 rm -f conftest.er1
10642 cat conftest.err >&5
10643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && {
10645 test -z "$ac_c_werror_flag" ||
10646 test ! -s conftest.err
10647 } && test -s conftest$ac_exeext && {
10648 test "$cross_compiling" = yes ||
10649 $as_test_x conftest$ac_exeext
10650 }; then
10651 ac_cv_func_shl_load=yes
10652else
10653 $as_echo "$as_me: failed program was:" >&5
10654sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10655
8d138742
CE
10656 ac_cv_func_shl_load=no
10657fi
d9898ee8 10658
8d138742
CE
10659rm -rf conftest.dSYM
10660rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10661 conftest$ac_exeext conftest.$ac_ext
10662fi
10663{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10664$as_echo "$ac_cv_func_shl_load" >&6; }
10665if test "x$ac_cv_func_shl_load" = x""yes; then
10666 lt_cv_dlopen="shl_load"
10667else
10668 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10669$as_echo_n "checking for shl_load in -ldld... " >&6; }
10670if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10671 $as_echo_n "(cached) " >&6
10672else
10673 ac_check_lib_save_LIBS=$LIBS
10674LIBS="-ldld $LIBS"
10675cat >conftest.$ac_ext <<_ACEOF
10676/* confdefs.h. */
10677_ACEOF
10678cat confdefs.h >>conftest.$ac_ext
10679cat >>conftest.$ac_ext <<_ACEOF
10680/* end confdefs.h. */
d9898ee8 10681
8d138742
CE
10682/* Override any GCC internal prototype to avoid an error.
10683 Use char because int might match the return type of a GCC
10684 builtin and then its argument prototype would still apply. */
10685#ifdef __cplusplus
10686extern "C"
10687#endif
10688char shl_load ();
10689int
10690main ()
10691{
10692return shl_load ();
10693 ;
10694 return 0;
10695}
10696_ACEOF
10697rm -f conftest.$ac_objext conftest$ac_exeext
10698if { (ac_try="$ac_link"
10699case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10702esac
10703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10704$as_echo "$ac_try_echo") >&5
10705 (eval "$ac_link") 2>conftest.er1
10706 ac_status=$?
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
10710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } && {
10712 test -z "$ac_c_werror_flag" ||
10713 test ! -s conftest.err
10714 } && test -s conftest$ac_exeext && {
10715 test "$cross_compiling" = yes ||
10716 $as_test_x conftest$ac_exeext
10717 }; then
10718 ac_cv_lib_dld_shl_load=yes
10719else
10720 $as_echo "$as_me: failed program was:" >&5
10721sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10722
8d138742
CE
10723 ac_cv_lib_dld_shl_load=no
10724fi
d9898ee8 10725
8d138742
CE
10726rm -rf conftest.dSYM
10727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10728 conftest$ac_exeext conftest.$ac_ext
10729LIBS=$ac_check_lib_save_LIBS
10730fi
10731{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10732$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10733if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10734 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10735else
10736 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10737$as_echo_n "checking for dlopen... " >&6; }
10738if test "${ac_cv_func_dlopen+set}" = set; then
10739 $as_echo_n "(cached) " >&6
10740else
10741 cat >conftest.$ac_ext <<_ACEOF
10742/* confdefs.h. */
10743_ACEOF
10744cat confdefs.h >>conftest.$ac_ext
10745cat >>conftest.$ac_ext <<_ACEOF
10746/* end confdefs.h. */
10747/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10749#define dlopen innocuous_dlopen
d9898ee8 10750
8d138742
CE
10751/* System header to define __stub macros and hopefully few prototypes,
10752 which can conflict with char dlopen (); below.
10753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10754 <limits.h> exists even on freestanding compilers. */
d9898ee8 10755
8d138742
CE
10756#ifdef __STDC__
10757# include <limits.h>
10758#else
10759# include <assert.h>
10760#endif
d9898ee8 10761
8d138742 10762#undef dlopen
d9898ee8 10763
8d138742
CE
10764/* Override any GCC internal prototype to avoid an error.
10765 Use char because int might match the return type of a GCC
10766 builtin and then its argument prototype would still apply. */
10767#ifdef __cplusplus
10768extern "C"
10769#endif
10770char dlopen ();
10771/* The GNU C library defines this for functions which it implements
10772 to always fail with ENOSYS. Some functions are actually named
10773 something starting with __ and the normal name is an alias. */
10774#if defined __stub_dlopen || defined __stub___dlopen
10775choke me
10776#endif
d9898ee8 10777
8d138742
CE
10778int
10779main ()
10780{
10781return dlopen ();
10782 ;
10783 return 0;
10784}
10785_ACEOF
10786rm -f conftest.$ac_objext conftest$ac_exeext
10787if { (ac_try="$ac_link"
10788case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791esac
10792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10793$as_echo "$ac_try_echo") >&5
10794 (eval "$ac_link") 2>conftest.er1
10795 ac_status=$?
10796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
10799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } && {
10801 test -z "$ac_c_werror_flag" ||
10802 test ! -s conftest.err
10803 } && test -s conftest$ac_exeext && {
10804 test "$cross_compiling" = yes ||
10805 $as_test_x conftest$ac_exeext
10806 }; then
10807 ac_cv_func_dlopen=yes
10808else
10809 $as_echo "$as_me: failed program was:" >&5
10810sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10811
8d138742
CE
10812 ac_cv_func_dlopen=no
10813fi
d9898ee8 10814
8d138742
CE
10815rm -rf conftest.dSYM
10816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10817 conftest$ac_exeext conftest.$ac_ext
10818fi
10819{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10820$as_echo "$ac_cv_func_dlopen" >&6; }
10821if test "x$ac_cv_func_dlopen" = x""yes; then
10822 lt_cv_dlopen="dlopen"
10823else
10824 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10825$as_echo_n "checking for dlopen in -ldl... " >&6; }
10826if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10827 $as_echo_n "(cached) " >&6
10828else
10829 ac_check_lib_save_LIBS=$LIBS
10830LIBS="-ldl $LIBS"
10831cat >conftest.$ac_ext <<_ACEOF
10832/* confdefs.h. */
10833_ACEOF
10834cat confdefs.h >>conftest.$ac_ext
10835cat >>conftest.$ac_ext <<_ACEOF
10836/* end confdefs.h. */
d9898ee8 10837
8d138742
CE
10838/* Override any GCC internal prototype to avoid an error.
10839 Use char because int might match the return type of a GCC
10840 builtin and then its argument prototype would still apply. */
10841#ifdef __cplusplus
10842extern "C"
10843#endif
10844char dlopen ();
10845int
10846main ()
10847{
10848return dlopen ();
10849 ;
10850 return 0;
10851}
10852_ACEOF
10853rm -f conftest.$ac_objext conftest$ac_exeext
10854if { (ac_try="$ac_link"
10855case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858esac
10859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10860$as_echo "$ac_try_echo") >&5
10861 (eval "$ac_link") 2>conftest.er1
10862 ac_status=$?
10863 grep -v '^ *+' conftest.er1 >conftest.err
10864 rm -f conftest.er1
10865 cat conftest.err >&5
10866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } && {
10868 test -z "$ac_c_werror_flag" ||
10869 test ! -s conftest.err
10870 } && test -s conftest$ac_exeext && {
10871 test "$cross_compiling" = yes ||
10872 $as_test_x conftest$ac_exeext
10873 }; then
10874 ac_cv_lib_dl_dlopen=yes
10875else
10876 $as_echo "$as_me: failed program was:" >&5
10877sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10878
8d138742
CE
10879 ac_cv_lib_dl_dlopen=no
10880fi
d9898ee8 10881
8d138742
CE
10882rm -rf conftest.dSYM
10883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10884 conftest$ac_exeext conftest.$ac_ext
10885LIBS=$ac_check_lib_save_LIBS
10886fi
10887{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10888$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10889if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10890 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10891else
10892 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10893$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10894if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10895 $as_echo_n "(cached) " >&6
10896else
10897 ac_check_lib_save_LIBS=$LIBS
10898LIBS="-lsvld $LIBS"
10899cat >conftest.$ac_ext <<_ACEOF
10900/* confdefs.h. */
10901_ACEOF
10902cat confdefs.h >>conftest.$ac_ext
10903cat >>conftest.$ac_ext <<_ACEOF
10904/* end confdefs.h. */
d9898ee8 10905
8d138742
CE
10906/* Override any GCC internal prototype to avoid an error.
10907 Use char because int might match the return type of a GCC
10908 builtin and then its argument prototype would still apply. */
10909#ifdef __cplusplus
10910extern "C"
10911#endif
10912char dlopen ();
10913int
10914main ()
10915{
10916return dlopen ();
10917 ;
10918 return 0;
10919}
10920_ACEOF
10921rm -f conftest.$ac_objext conftest$ac_exeext
10922if { (ac_try="$ac_link"
10923case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10926esac
10927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10928$as_echo "$ac_try_echo") >&5
10929 (eval "$ac_link") 2>conftest.er1
10930 ac_status=$?
10931 grep -v '^ *+' conftest.er1 >conftest.err
10932 rm -f conftest.er1
10933 cat conftest.err >&5
10934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && {
10936 test -z "$ac_c_werror_flag" ||
10937 test ! -s conftest.err
10938 } && test -s conftest$ac_exeext && {
10939 test "$cross_compiling" = yes ||
10940 $as_test_x conftest$ac_exeext
10941 }; then
10942 ac_cv_lib_svld_dlopen=yes
10943else
10944 $as_echo "$as_me: failed program was:" >&5
10945sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 10946
8d138742
CE
10947 ac_cv_lib_svld_dlopen=no
10948fi
d9898ee8 10949
8d138742
CE
10950rm -rf conftest.dSYM
10951rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10952 conftest$ac_exeext conftest.$ac_ext
10953LIBS=$ac_check_lib_save_LIBS
10954fi
10955{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10956$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10957if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10959else
10960 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10961$as_echo_n "checking for dld_link in -ldld... " >&6; }
10962if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10963 $as_echo_n "(cached) " >&6
10964else
10965 ac_check_lib_save_LIBS=$LIBS
10966LIBS="-ldld $LIBS"
10967cat >conftest.$ac_ext <<_ACEOF
10968/* confdefs.h. */
10969_ACEOF
10970cat confdefs.h >>conftest.$ac_ext
10971cat >>conftest.$ac_ext <<_ACEOF
10972/* end confdefs.h. */
d9898ee8 10973
8d138742
CE
10974/* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
10977#ifdef __cplusplus
10978extern "C"
10979#endif
10980char dld_link ();
10981int
10982main ()
10983{
10984return dld_link ();
10985 ;
10986 return 0;
10987}
10988_ACEOF
10989rm -f conftest.$ac_objext conftest$ac_exeext
10990if { (ac_try="$ac_link"
10991case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10994esac
10995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10996$as_echo "$ac_try_echo") >&5
10997 (eval "$ac_link") 2>conftest.er1
10998 ac_status=$?
10999 grep -v '^ *+' conftest.er1 >conftest.err
11000 rm -f conftest.er1
11001 cat conftest.err >&5
11002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); } && {
11004 test -z "$ac_c_werror_flag" ||
11005 test ! -s conftest.err
11006 } && test -s conftest$ac_exeext && {
11007 test "$cross_compiling" = yes ||
11008 $as_test_x conftest$ac_exeext
11009 }; then
11010 ac_cv_lib_dld_dld_link=yes
11011else
11012 $as_echo "$as_me: failed program was:" >&5
11013sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11014
8d138742
CE
11015 ac_cv_lib_dld_dld_link=no
11016fi
d9898ee8 11017
8d138742
CE
11018rm -rf conftest.dSYM
11019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11020 conftest$ac_exeext conftest.$ac_ext
11021LIBS=$ac_check_lib_save_LIBS
11022fi
11023{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11024$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11025if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11026 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11027fi
d9898ee8 11028
d9898ee8 11029
8d138742 11030fi
d9898ee8 11031
d9898ee8 11032
8d138742 11033fi
d9898ee8 11034
d9898ee8 11035
8d138742 11036fi
d9898ee8 11037
d9898ee8 11038
8d138742 11039fi
d9898ee8 11040
d9898ee8 11041
8d138742 11042fi
d9898ee8 11043
8d138742
CE
11044 ;;
11045 esac
d9898ee8 11046
8d138742
CE
11047 if test "x$lt_cv_dlopen" != xno; then
11048 enable_dlopen=yes
11049 else
11050 enable_dlopen=no
11051 fi
d9898ee8 11052
8d138742
CE
11053 case $lt_cv_dlopen in
11054 dlopen)
11055 save_CPPFLAGS="$CPPFLAGS"
11056 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
d9898ee8 11057
8d138742
CE
11058 save_LDFLAGS="$LDFLAGS"
11059 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
d9898ee8 11060
8d138742
CE
11061 save_LIBS="$LIBS"
11062 LIBS="$lt_cv_dlopen_libs $LIBS"
d9898ee8 11063
8d138742
CE
11064 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11065$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11066if test "${lt_cv_dlopen_self+set}" = set; then
11067 $as_echo_n "(cached) " >&6
11068else
11069 if test "$cross_compiling" = yes; then :
11070 lt_cv_dlopen_self=cross
11071else
11072 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11073 lt_status=$lt_dlunknown
11074 cat > conftest.$ac_ext <<_LT_EOF
11075#line 11075 "configure"
11076#include "confdefs.h"
d9898ee8 11077
8d138742
CE
11078#if HAVE_DLFCN_H
11079#include <dlfcn.h>
11080#endif
d9898ee8 11081
8d138742 11082#include <stdio.h>
d9898ee8 11083
8d138742
CE
11084#ifdef RTLD_GLOBAL
11085# define LT_DLGLOBAL RTLD_GLOBAL
11086#else
11087# ifdef DL_GLOBAL
11088# define LT_DLGLOBAL DL_GLOBAL
11089# else
11090# define LT_DLGLOBAL 0
11091# endif
11092#endif
d9898ee8 11093
8d138742
CE
11094/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11095 find out it does not work in some platform. */
11096#ifndef LT_DLLAZY_OR_NOW
11097# ifdef RTLD_LAZY
11098# define LT_DLLAZY_OR_NOW RTLD_LAZY
11099# else
11100# ifdef DL_LAZY
11101# define LT_DLLAZY_OR_NOW DL_LAZY
11102# else
11103# ifdef RTLD_NOW
11104# define LT_DLLAZY_OR_NOW RTLD_NOW
11105# else
11106# ifdef DL_NOW
11107# define LT_DLLAZY_OR_NOW DL_NOW
11108# else
11109# define LT_DLLAZY_OR_NOW 0
11110# endif
11111# endif
11112# endif
11113# endif
11114#endif
d9898ee8 11115
8d138742
CE
11116void fnord() { int i=42;}
11117int main ()
11118{
11119 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11120 int status = $lt_dlunknown;
d9898ee8 11121
8d138742
CE
11122 if (self)
11123 {
11124 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11125 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11126 /* dlclose (self); */
11127 }
11128 else
11129 puts (dlerror ());
d9898ee8 11130
8d138742
CE
11131 return status;
11132}
11133_LT_EOF
11134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>&5
11136 ac_status=$?
11137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11139 (./conftest; exit; ) >&5 2>/dev/null
11140 lt_status=$?
11141 case x$lt_status in
11142 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11143 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11144 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11145 esac
11146 else :
11147 # compilation failed
11148 lt_cv_dlopen_self=no
11149 fi
11150fi
11151rm -fr conftest*
d9898ee8 11152
d9898ee8 11153
8d138742
CE
11154fi
11155{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11156$as_echo "$lt_cv_dlopen_self" >&6; }
d9898ee8 11157
8d138742
CE
11158 if test "x$lt_cv_dlopen_self" = xyes; then
11159 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11160 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11161$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11162if test "${lt_cv_dlopen_self_static+set}" = set; then
11163 $as_echo_n "(cached) " >&6
11164else
11165 if test "$cross_compiling" = yes; then :
11166 lt_cv_dlopen_self_static=cross
11167else
11168 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11169 lt_status=$lt_dlunknown
11170 cat > conftest.$ac_ext <<_LT_EOF
11171#line 11171 "configure"
11172#include "confdefs.h"
d9898ee8 11173
8d138742
CE
11174#if HAVE_DLFCN_H
11175#include <dlfcn.h>
11176#endif
d9898ee8 11177
8d138742 11178#include <stdio.h>
d9898ee8 11179
8d138742
CE
11180#ifdef RTLD_GLOBAL
11181# define LT_DLGLOBAL RTLD_GLOBAL
11182#else
11183# ifdef DL_GLOBAL
11184# define LT_DLGLOBAL DL_GLOBAL
11185# else
11186# define LT_DLGLOBAL 0
11187# endif
11188#endif
d9898ee8 11189
8d138742
CE
11190/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11191 find out it does not work in some platform. */
11192#ifndef LT_DLLAZY_OR_NOW
11193# ifdef RTLD_LAZY
11194# define LT_DLLAZY_OR_NOW RTLD_LAZY
11195# else
11196# ifdef DL_LAZY
11197# define LT_DLLAZY_OR_NOW DL_LAZY
11198# else
11199# ifdef RTLD_NOW
11200# define LT_DLLAZY_OR_NOW RTLD_NOW
11201# else
11202# ifdef DL_NOW
11203# define LT_DLLAZY_OR_NOW DL_NOW
11204# else
11205# define LT_DLLAZY_OR_NOW 0
11206# endif
11207# endif
11208# endif
11209# endif
11210#endif
d9898ee8 11211
8d138742
CE
11212void fnord() { int i=42;}
11213int main ()
11214{
11215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11216 int status = $lt_dlunknown;
d9898ee8 11217
8d138742
CE
11218 if (self)
11219 {
11220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11221 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11222 /* dlclose (self); */
11223 }
11224 else
11225 puts (dlerror ());
d9898ee8 11226
8d138742
CE
11227 return status;
11228}
11229_LT_EOF
11230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11231 (eval $ac_link) 2>&5
11232 ac_status=$?
11233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11235 (./conftest; exit; ) >&5 2>/dev/null
11236 lt_status=$?
11237 case x$lt_status in
11238 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11239 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11240 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11241 esac
11242 else :
11243 # compilation failed
11244 lt_cv_dlopen_self_static=no
11245 fi
11246fi
11247rm -fr conftest*
d9898ee8 11248
d9898ee8 11249
8d138742
CE
11250fi
11251{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11252$as_echo "$lt_cv_dlopen_self_static" >&6; }
11253 fi
d9898ee8 11254
8d138742
CE
11255 CPPFLAGS="$save_CPPFLAGS"
11256 LDFLAGS="$save_LDFLAGS"
11257 LIBS="$save_LIBS"
11258 ;;
11259 esac
d9898ee8 11260
8d138742
CE
11261 case $lt_cv_dlopen_self in
11262 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11263 *) enable_dlopen_self=unknown ;;
11264 esac
d9898ee8 11265
8d138742
CE
11266 case $lt_cv_dlopen_self_static in
11267 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11268 *) enable_dlopen_self_static=unknown ;;
11269 esac
11270fi
d9898ee8 11271
d9898ee8 11272
d9898ee8 11273
d9898ee8 11274
d9898ee8 11275
d9898ee8 11276
d9898ee8 11277
d9898ee8 11278
d9898ee8 11279
d9898ee8 11280
d9898ee8 11281
d9898ee8 11282
d9898ee8 11283
d9898ee8 11284
d9898ee8 11285
d9898ee8 11286
d9898ee8 11287
8d138742
CE
11288striplib=
11289old_striplib=
11290{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11291$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11292if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11293 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11294 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11295 { $as_echo "$as_me:$LINENO: result: yes" >&5
11296$as_echo "yes" >&6; }
11297else
11298# FIXME - insert some real tests, host_os isn't really good enough
11299 case $host_os in
11300 darwin*)
11301 if test -n "$STRIP" ; then
11302 striplib="$STRIP -x"
11303 old_striplib="$STRIP -S"
11304 { $as_echo "$as_me:$LINENO: result: yes" >&5
11305$as_echo "yes" >&6; }
11306 else
11307 { $as_echo "$as_me:$LINENO: result: no" >&5
11308$as_echo "no" >&6; }
11309 fi
11310 ;;
11311 *)
11312 { $as_echo "$as_me:$LINENO: result: no" >&5
11313$as_echo "no" >&6; }
11314 ;;
11315 esac
11316fi
d9898ee8 11317
d9898ee8 11318
d9898ee8 11319
d9898ee8 11320
d9898ee8 11321
d9898ee8 11322
d9898ee8 11323
d9898ee8 11324
d9898ee8 11325
d9898ee8 11326
d9898ee8 11327
d9898ee8 11328
8d138742
CE
11329 # Report which library types will actually be built
11330 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11331$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11332 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11333$as_echo "$can_build_shared" >&6; }
d9898ee8 11334
8d138742
CE
11335 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11336$as_echo_n "checking whether to build shared libraries... " >&6; }
11337 test "$can_build_shared" = "no" && enable_shared=no
d9898ee8 11338
8d138742
CE
11339 # On AIX, shared libraries and static libraries use the same namespace, and
11340 # are all built from PIC.
11341 case $host_os in
11342 aix3*)
11343 test "$enable_shared" = yes && enable_static=no
11344 if test -n "$RANLIB"; then
11345 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11346 postinstall_cmds='$RANLIB $lib'
11347 fi
11348 ;;
d9898ee8 11349
8d138742
CE
11350 aix[4-9]*)
11351 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11352 test "$enable_shared" = yes && enable_static=no
11353 fi
11354 ;;
11355 esac
11356 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11357$as_echo "$enable_shared" >&6; }
d9898ee8 11358
8d138742
CE
11359 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11360$as_echo_n "checking whether to build static libraries... " >&6; }
11361 # Make sure either enable_shared or enable_static is yes.
11362 test "$enable_shared" = yes || enable_static=yes
11363 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11364$as_echo "$enable_static" >&6; }
d9898ee8 11365
d9898ee8 11366
d9898ee8 11367
d9898ee8 11368
8d138742
CE
11369fi
11370ac_ext=c
11371ac_cpp='$CPP $CPPFLAGS'
11372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11374ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 11375
8d138742 11376CC="$lt_save_CC"
d9898ee8 11377
d9898ee8 11378
d9898ee8 11379
d9898ee8 11380
d9898ee8 11381
d9898ee8 11382
d9898ee8 11383
d9898ee8 11384
d9898ee8 11385
d9898ee8 11386
d9898ee8 11387
d9898ee8 11388
d9898ee8 11389
8d138742 11390 ac_config_commands="$ac_config_commands libtool"
d9898ee8 11391
d9898ee8 11392
11393
d9898ee8 11394
8d138742 11395# Only expand once:
d9898ee8 11396
d9898ee8 11397
8d138742
CE
11398{ $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
11399$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11400if test "${libltdl_cv_shlibext+set}" = set; then
11401 $as_echo_n "(cached) " >&6
11402else
d9898ee8 11403
8d138742
CE
11404module=yes
11405eval libltdl_cv_shlibext=$shrext_cmds
d9898ee8 11406
8d138742
CE
11407fi
11408{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
11409$as_echo "$libltdl_cv_shlibext" >&6; }
11410if test -n "$libltdl_cv_shlibext"; then
d9898ee8 11411
8d138742
CE
11412cat >>confdefs.h <<_ACEOF
11413#define LT_MODULE_EXT "$libltdl_cv_shlibext"
11414_ACEOF
d9898ee8 11415
d9898ee8 11416fi
11417
8d138742
CE
11418{ $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
11419$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11420if test "${lt_cv_module_path_var+set}" = set; then
11421 $as_echo_n "(cached) " >&6
11422else
11423 lt_cv_module_path_var="$shlibpath_var"
11424fi
11425{ $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
11426$as_echo "$lt_cv_module_path_var" >&6; }
11427if test -n "$lt_cv_module_path_var"; then
d9898ee8 11428
8d138742
CE
11429cat >>confdefs.h <<_ACEOF
11430#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11431_ACEOF
d9898ee8 11432
8d138742 11433fi
d9898ee8 11434
8d138742
CE
11435{ $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
11436$as_echo_n "checking for the default library search path... " >&6; }
11437if test "${lt_cv_sys_dlsearch_path+set}" = set; then
11438 $as_echo_n "(cached) " >&6
11439else
11440 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11441fi
11442{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
11443$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11444if test -n "$lt_cv_sys_dlsearch_path"; then
11445 sys_dlsearch_path=
11446 for dir in $lt_cv_sys_dlsearch_path; do
11447 if test -z "$sys_dlsearch_path"; then
11448 sys_dlsearch_path="$dir"
11449 else
11450 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11451 fi
11452 done
d9898ee8 11453
8d138742
CE
11454cat >>confdefs.h <<_ACEOF
11455#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11456_ACEOF
d9898ee8 11457
8d138742 11458fi
d9898ee8 11459
11460
8d138742 11461LT_DLLOADERS=
d9898ee8 11462
11463
8d138742
CE
11464ac_ext=c
11465ac_cpp='$CPP $CPPFLAGS'
11466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11468ac_compiler_gnu=$ac_cv_c_compiler_gnu
d9898ee8 11469
11470
8d138742
CE
11471LIBADD_DLOPEN=
11472{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11473$as_echo_n "checking for library containing dlopen... " >&6; }
11474if test "${ac_cv_search_dlopen+set}" = set; then
11475 $as_echo_n "(cached) " >&6
11476else
11477 ac_func_search_save_LIBS=$LIBS
11478cat >conftest.$ac_ext <<_ACEOF
11479/* confdefs.h. */
11480_ACEOF
11481cat confdefs.h >>conftest.$ac_ext
11482cat >>conftest.$ac_ext <<_ACEOF
11483/* end confdefs.h. */
d9898ee8 11484
8d138742
CE
11485/* Override any GCC internal prototype to avoid an error.
11486 Use char because int might match the return type of a GCC
11487 builtin and then its argument prototype would still apply. */
11488#ifdef __cplusplus
11489extern "C"
11490#endif
11491char dlopen ();
11492int
11493main ()
11494{
11495return dlopen ();
11496 ;
11497 return 0;
11498}
11499_ACEOF
11500for ac_lib in '' dl; do
11501 if test -z "$ac_lib"; then
11502 ac_res="none required"
11503 else
11504 ac_res=-l$ac_lib
11505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11506 fi
11507 rm -f conftest.$ac_objext conftest$ac_exeext
11508if { (ac_try="$ac_link"
11509case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11512esac
11513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11514$as_echo "$ac_try_echo") >&5
11515 (eval "$ac_link") 2>conftest.er1
11516 ac_status=$?
11517 grep -v '^ *+' conftest.er1 >conftest.err
11518 rm -f conftest.er1
11519 cat conftest.err >&5
11520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && {
11522 test -z "$ac_c_werror_flag" ||
11523 test ! -s conftest.err
11524 } && test -s conftest$ac_exeext && {
11525 test "$cross_compiling" = yes ||
11526 $as_test_x conftest$ac_exeext
11527 }; then
11528 ac_cv_search_dlopen=$ac_res
11529else
11530 $as_echo "$as_me: failed program was:" >&5
11531sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11532
11533
8d138742 11534fi
d9898ee8 11535
8d138742
CE
11536rm -rf conftest.dSYM
11537rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11538 conftest$ac_exeext
11539 if test "${ac_cv_search_dlopen+set}" = set; then
11540 break
11541fi
11542done
11543if test "${ac_cv_search_dlopen+set}" = set; then
11544 :
11545else
11546 ac_cv_search_dlopen=no
11547fi
11548rm conftest.$ac_ext
11549LIBS=$ac_func_search_save_LIBS
11550fi
11551{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11552$as_echo "$ac_cv_search_dlopen" >&6; }
11553ac_res=$ac_cv_search_dlopen
11554if test "$ac_res" != no; then
11555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
d9898ee8 11556
8d138742
CE
11557cat >>confdefs.h <<\_ACEOF
11558#define HAVE_LIBDL 1
11559_ACEOF
d9898ee8 11560
8d138742
CE
11561 if test "$ac_cv_search_dlopen" != "none required" ; then
11562 LIBADD_DLOPEN="-ldl"
11563 fi
11564 libltdl_cv_lib_dl_dlopen="yes"
11565 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11566else
11567 cat >conftest.$ac_ext <<_ACEOF
11568/* confdefs.h. */
11569_ACEOF
11570cat confdefs.h >>conftest.$ac_ext
11571cat >>conftest.$ac_ext <<_ACEOF
11572/* end confdefs.h. */
11573#if HAVE_DLFCN_H
11574# include <dlfcn.h>
11575#endif
d9898ee8 11576
8d138742
CE
11577int
11578main ()
11579{
11580dlopen(0, 0);
11581 ;
11582 return 0;
11583}
11584_ACEOF
11585rm -f conftest.$ac_objext conftest$ac_exeext
11586if { (ac_try="$ac_link"
11587case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11590esac
11591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11592$as_echo "$ac_try_echo") >&5
11593 (eval "$ac_link") 2>conftest.er1
11594 ac_status=$?
11595 grep -v '^ *+' conftest.er1 >conftest.err
11596 rm -f conftest.er1
11597 cat conftest.err >&5
11598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); } && {
11600 test -z "$ac_c_werror_flag" ||
11601 test ! -s conftest.err
11602 } && test -s conftest$ac_exeext && {
11603 test "$cross_compiling" = yes ||
11604 $as_test_x conftest$ac_exeext
11605 }; then
d9898ee8 11606
8d138742
CE
11607cat >>confdefs.h <<\_ACEOF
11608#define HAVE_LIBDL 1
11609_ACEOF
d9898ee8 11610
8d138742
CE
11611 libltdl_cv_func_dlopen="yes"
11612 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11613else
11614 $as_echo "$as_me: failed program was:" >&5
11615sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11616
8d138742
CE
11617 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11618$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11619if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11620 $as_echo_n "(cached) " >&6
11621else
11622 ac_check_lib_save_LIBS=$LIBS
11623LIBS="-lsvld $LIBS"
11624cat >conftest.$ac_ext <<_ACEOF
11625/* confdefs.h. */
11626_ACEOF
11627cat confdefs.h >>conftest.$ac_ext
11628cat >>conftest.$ac_ext <<_ACEOF
11629/* end confdefs.h. */
d9898ee8 11630
8d138742
CE
11631/* Override any GCC internal prototype to avoid an error.
11632 Use char because int might match the return type of a GCC
11633 builtin and then its argument prototype would still apply. */
11634#ifdef __cplusplus
11635extern "C"
11636#endif
11637char dlopen ();
11638int
11639main ()
11640{
11641return dlopen ();
11642 ;
11643 return 0;
11644}
11645_ACEOF
11646rm -f conftest.$ac_objext conftest$ac_exeext
11647if { (ac_try="$ac_link"
11648case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11651esac
11652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11653$as_echo "$ac_try_echo") >&5
11654 (eval "$ac_link") 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && {
11661 test -z "$ac_c_werror_flag" ||
11662 test ! -s conftest.err
11663 } && test -s conftest$ac_exeext && {
11664 test "$cross_compiling" = yes ||
11665 $as_test_x conftest$ac_exeext
11666 }; then
11667 ac_cv_lib_svld_dlopen=yes
11668else
11669 $as_echo "$as_me: failed program was:" >&5
11670sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 11671
8d138742
CE
11672 ac_cv_lib_svld_dlopen=no
11673fi
d9898ee8 11674
8d138742
CE
11675rm -rf conftest.dSYM
11676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11677 conftest$ac_exeext conftest.$ac_ext
11678LIBS=$ac_check_lib_save_LIBS
11679fi
11680{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11681$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11682if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
d9898ee8 11683
8d138742
CE
11684cat >>confdefs.h <<\_ACEOF
11685#define HAVE_LIBDL 1
11686_ACEOF
d9898ee8 11687
8d138742
CE
11688 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11689 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11690fi
d9898ee8 11691
8d138742 11692fi
d9898ee8 11693
8d138742
CE
11694rm -rf conftest.dSYM
11695rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11696 conftest$ac_exeext conftest.$ac_ext
11697fi
d9898ee8 11698
8d138742
CE
11699if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11700then
11701 lt_save_LIBS="$LIBS"
11702 LIBS="$LIBS $LIBADD_DLOPEN"
d9898ee8 11703
8d138742
CE
11704for ac_func in dlerror
11705do
11706as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11707{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11708$as_echo_n "checking for $ac_func... " >&6; }
11709if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11710 $as_echo_n "(cached) " >&6
d9898ee8 11711else
11712 cat >conftest.$ac_ext <<_ACEOF
11713/* confdefs.h. */
11714_ACEOF
11715cat confdefs.h >>conftest.$ac_ext
11716cat >>conftest.$ac_ext <<_ACEOF
11717/* end confdefs.h. */
8d138742
CE
11718/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11720#define $ac_func innocuous_$ac_func
11721
11722/* System header to define __stub macros and hopefully few prototypes,
11723 which can conflict with char $ac_func (); below.
11724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11725 <limits.h> exists even on freestanding compilers. */
11726
11727#ifdef __STDC__
11728# include <limits.h>
11729#else
11730# include <assert.h>
11731#endif
11732
11733#undef $ac_func
11734
11735/* Override any GCC internal prototype to avoid an error.
11736 Use char because int might match the return type of a GCC
11737 builtin and then its argument prototype would still apply. */
11738#ifdef __cplusplus
11739extern "C"
11740#endif
11741char $ac_func ();
11742/* The GNU C library defines this for functions which it implements
11743 to always fail with ENOSYS. Some functions are actually named
11744 something starting with __ and the normal name is an alias. */
11745#if defined __stub_$ac_func || defined __stub___$ac_func
11746choke me
11747#endif
d9898ee8 11748
11749int
11750main ()
11751{
8d138742 11752return $ac_func ();
d9898ee8 11753 ;
11754 return 0;
11755}
11756_ACEOF
8d138742
CE
11757rm -f conftest.$ac_objext conftest$ac_exeext
11758if { (ac_try="$ac_link"
dd184caf 11759case "(($ac_try" in
11760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11761 *) ac_try_echo=$ac_try;;
11762esac
8d138742
CE
11763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11764$as_echo "$ac_try_echo") >&5
11765 (eval "$ac_link") 2>conftest.er1
d9898ee8 11766 ac_status=$?
11767 grep -v '^ *+' conftest.er1 >conftest.err
11768 rm -f conftest.er1
11769 cat conftest.err >&5
8d138742 11770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11771 (exit $ac_status); } && {
11772 test -z "$ac_c_werror_flag" ||
11773 test ! -s conftest.err
8d138742
CE
11774 } && test -s conftest$ac_exeext && {
11775 test "$cross_compiling" = yes ||
11776 $as_test_x conftest$ac_exeext
11777 }; then
11778 eval "$as_ac_var=yes"
d9898ee8 11779else
8d138742 11780 $as_echo "$as_me: failed program was:" >&5
d9898ee8 11781sed 's/^/| /' conftest.$ac_ext >&5
11782
8d138742 11783 eval "$as_ac_var=no"
d9898ee8 11784fi
dd184caf 11785
8d138742
CE
11786rm -rf conftest.dSYM
11787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11788 conftest$ac_exeext conftest.$ac_ext
d9898ee8 11789fi
8d138742
CE
11790ac_res=`eval 'as_val=${'$as_ac_var'}
11791 $as_echo "$as_val"'`
11792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11793$as_echo "$ac_res" >&6; }
11794as_val=`eval 'as_val=${'$as_ac_var'}
11795 $as_echo "$as_val"'`
11796 if test "x$as_val" = x""yes; then
d9898ee8 11797 cat >>confdefs.h <<_ACEOF
8d138742 11798#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d9898ee8 11799_ACEOF
11800
d9898ee8 11801fi
d9898ee8 11802done
8d138742
CE
11803
11804 LIBS="$lt_save_LIBS"
11805fi
11806
11807
11808LIBADD_SHL_LOAD=
11809{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11810$as_echo_n "checking for shl_load... " >&6; }
11811if test "${ac_cv_func_shl_load+set}" = set; then
11812 $as_echo_n "(cached) " >&6
d9898ee8 11813else
8d138742 11814 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 11815/* confdefs.h. */
11816_ACEOF
11817cat confdefs.h >>conftest.$ac_ext
11818cat >>conftest.$ac_ext <<_ACEOF
11819/* end confdefs.h. */
8d138742
CE
11820/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11822#define shl_load innocuous_shl_load
11823
11824/* System header to define __stub macros and hopefully few prototypes,
11825 which can conflict with char shl_load (); below.
11826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11827 <limits.h> exists even on freestanding compilers. */
11828
11829#ifdef __STDC__
11830# include <limits.h>
11831#else
11832# include <assert.h>
11833#endif
11834
11835#undef shl_load
d9898ee8 11836
dd184caf 11837/* Override any GCC internal prototype to avoid an error.
11838 Use char because int might match the return type of a GCC
11839 builtin and then its argument prototype would still apply. */
d9898ee8 11840#ifdef __cplusplus
11841extern "C"
11842#endif
8d138742
CE
11843char shl_load ();
11844/* The GNU C library defines this for functions which it implements
11845 to always fail with ENOSYS. Some functions are actually named
11846 something starting with __ and the normal name is an alias. */
11847#if defined __stub_shl_load || defined __stub___shl_load
11848choke me
11849#endif
11850
d9898ee8 11851int
11852main ()
11853{
8d138742 11854return shl_load ();
d9898ee8 11855 ;
11856 return 0;
11857}
11858_ACEOF
8d138742 11859rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11860if { (ac_try="$ac_link"
11861case "(($ac_try" in
11862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11863 *) ac_try_echo=$ac_try;;
11864esac
8d138742
CE
11865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11866$as_echo "$ac_try_echo") >&5
dd184caf 11867 (eval "$ac_link") 2>conftest.er1
d9898ee8 11868 ac_status=$?
11869 grep -v '^ *+' conftest.er1 >conftest.err
11870 rm -f conftest.er1
11871 cat conftest.err >&5
8d138742 11872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11873 (exit $ac_status); } && {
11874 test -z "$ac_c_werror_flag" ||
11875 test ! -s conftest.err
8d138742
CE
11876 } && test -s conftest$ac_exeext && {
11877 test "$cross_compiling" = yes ||
11878 $as_test_x conftest$ac_exeext
11879 }; then
11880 ac_cv_func_shl_load=yes
d9898ee8 11881else
8d138742 11882 $as_echo "$as_me: failed program was:" >&5
d9898ee8 11883sed 's/^/| /' conftest.$ac_ext >&5
11884
8d138742 11885 ac_cv_func_shl_load=no
dd184caf 11886fi
d9898ee8 11887
8d138742 11888rm -rf conftest.dSYM
dd184caf 11889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8d138742 11890 conftest$ac_exeext conftest.$ac_ext
d9898ee8 11891fi
8d138742
CE
11892{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11893$as_echo "$ac_cv_func_shl_load" >&6; }
11894if test "x$ac_cv_func_shl_load" = x""yes; then
d9898ee8 11895
8d138742
CE
11896cat >>confdefs.h <<\_ACEOF
11897#define HAVE_SHL_LOAD 1
11898_ACEOF
d9898ee8 11899
8d138742 11900 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
d9898ee8 11901else
8d138742
CE
11902 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11903$as_echo_n "checking for shl_load in -ldld... " >&6; }
11904if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11905 $as_echo_n "(cached) " >&6
d9898ee8 11906else
8d138742
CE
11907 ac_check_lib_save_LIBS=$LIBS
11908LIBS="-ldld $LIBS"
d9898ee8 11909cat >conftest.$ac_ext <<_ACEOF
11910/* confdefs.h. */
11911_ACEOF
11912cat confdefs.h >>conftest.$ac_ext
11913cat >>conftest.$ac_ext <<_ACEOF
11914/* end confdefs.h. */
11915
dd184caf 11916/* Override any GCC internal prototype to avoid an error.
11917 Use char because int might match the return type of a GCC
11918 builtin and then its argument prototype would still apply. */
d9898ee8 11919#ifdef __cplusplus
11920extern "C"
11921#endif
8d138742 11922char shl_load ();
d9898ee8 11923int
11924main ()
11925{
8d138742 11926return shl_load ();
d9898ee8 11927 ;
11928 return 0;
11929}
11930_ACEOF
8d138742 11931rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 11932if { (ac_try="$ac_link"
11933case "(($ac_try" in
11934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935 *) ac_try_echo=$ac_try;;
11936esac
8d138742
CE
11937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11938$as_echo "$ac_try_echo") >&5
dd184caf 11939 (eval "$ac_link") 2>conftest.er1
d9898ee8 11940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
8d138742 11944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 11945 (exit $ac_status); } && {
11946 test -z "$ac_c_werror_flag" ||
11947 test ! -s conftest.err
8d138742
CE
11948 } && test -s conftest$ac_exeext && {
11949 test "$cross_compiling" = yes ||
11950 $as_test_x conftest$ac_exeext
11951 }; then
11952 ac_cv_lib_dld_shl_load=yes
d9898ee8 11953else
8d138742 11954 $as_echo "$as_me: failed program was:" >&5
d9898ee8 11955sed 's/^/| /' conftest.$ac_ext >&5
11956
8d138742 11957 ac_cv_lib_dld_shl_load=no
d9898ee8 11958fi
d9898ee8 11959
8d138742
CE
11960rm -rf conftest.dSYM
11961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11962 conftest$ac_exeext conftest.$ac_ext
11963LIBS=$ac_check_lib_save_LIBS
d9898ee8 11964fi
8d138742
CE
11965{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11966$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11967if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
d9898ee8 11968
11969cat >>confdefs.h <<\_ACEOF
8d138742 11970#define HAVE_SHL_LOAD 1
d9898ee8 11971_ACEOF
11972
8d138742
CE
11973 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11974 LIBADD_SHL_LOAD="-ldld"
d9898ee8 11975fi
11976
8d138742 11977fi
d9898ee8 11978
d9898ee8 11979
11980
8d138742
CE
11981case $host_os in
11982darwin[1567].*)
11983# We only want this for pre-Mac OS X 10.4.
11984 { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11985$as_echo_n "checking for _dyld_func_lookup... " >&6; }
11986if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11987 $as_echo_n "(cached) " >&6
d9898ee8 11988else
11989 cat >conftest.$ac_ext <<_ACEOF
11990/* confdefs.h. */
11991_ACEOF
11992cat confdefs.h >>conftest.$ac_ext
11993cat >>conftest.$ac_ext <<_ACEOF
11994/* end confdefs.h. */
8d138742 11995/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
d9898ee8 11996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8d138742 11997#define _dyld_func_lookup innocuous__dyld_func_lookup
d9898ee8 11998
11999/* System header to define __stub macros and hopefully few prototypes,
8d138742 12000 which can conflict with char _dyld_func_lookup (); below.
d9898ee8 12001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12002 <limits.h> exists even on freestanding compilers. */
12003
12004#ifdef __STDC__
12005# include <limits.h>
12006#else
12007# include <assert.h>
12008#endif
12009
8d138742 12010#undef _dyld_func_lookup
d9898ee8 12011
dd184caf 12012/* Override any GCC internal prototype to avoid an error.
12013 Use char because int might match the return type of a GCC
12014 builtin and then its argument prototype would still apply. */
d9898ee8 12015#ifdef __cplusplus
12016extern "C"
d9898ee8 12017#endif
8d138742 12018char _dyld_func_lookup ();
d9898ee8 12019/* The GNU C library defines this for functions which it implements
12020 to always fail with ENOSYS. Some functions are actually named
12021 something starting with __ and the normal name is an alias. */
8d138742 12022#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
d9898ee8 12023choke me
d9898ee8 12024#endif
12025
12026int
12027main ()
12028{
8d138742 12029return _dyld_func_lookup ();
d9898ee8 12030 ;
12031 return 0;
12032}
12033_ACEOF
12034rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 12035if { (ac_try="$ac_link"
12036case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12039esac
8d138742
CE
12040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12041$as_echo "$ac_try_echo") >&5
dd184caf 12042 (eval "$ac_link") 2>conftest.er1
d9898ee8 12043 ac_status=$?
12044 grep -v '^ *+' conftest.er1 >conftest.err
12045 rm -f conftest.er1
12046 cat conftest.err >&5
8d138742 12047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12048 (exit $ac_status); } && {
12049 test -z "$ac_c_werror_flag" ||
12050 test ! -s conftest.err
8d138742
CE
12051 } && test -s conftest$ac_exeext && {
12052 test "$cross_compiling" = yes ||
12053 $as_test_x conftest$ac_exeext
12054 }; then
12055 ac_cv_func__dyld_func_lookup=yes
d9898ee8 12056else
8d138742 12057 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12058sed 's/^/| /' conftest.$ac_ext >&5
12059
8d138742 12060 ac_cv_func__dyld_func_lookup=no
d9898ee8 12061fi
dd184caf 12062
8d138742 12063rm -rf conftest.dSYM
dd184caf 12064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 12065 conftest$ac_exeext conftest.$ac_ext
12066fi
8d138742
CE
12067{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
12068$as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
12069if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
d9898ee8 12070
12071cat >>confdefs.h <<\_ACEOF
8d138742 12072#define HAVE_DYLD 1
d9898ee8 12073_ACEOF
12074
8d138742
CE
12075 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12076fi
12077
12078 ;;
12079beos*)
12080 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12081 ;;
12082cygwin* | mingw* | os2* | pw32*)
12083 { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
12084$as_echo_n "checking whether cygwin_conv_path is declared... " >&6; }
12085if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
12086 $as_echo_n "(cached) " >&6
d9898ee8 12087else
8d138742
CE
12088 cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h. */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h. */
12094#include <sys/cygwin.h>
12095
12096int
12097main ()
12098{
12099#ifndef cygwin_conv_path
12100 (void) cygwin_conv_path;
12101#endif
12102
12103 ;
12104 return 0;
12105}
12106_ACEOF
12107rm -f conftest.$ac_objext
12108if { (ac_try="$ac_compile"
12109case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12112esac
12113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12114$as_echo "$ac_try_echo") >&5
12115 (eval "$ac_compile") 2>conftest.er1
12116 ac_status=$?
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
12120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } && {
12122 test -z "$ac_c_werror_flag" ||
12123 test ! -s conftest.err
12124 } && test -s conftest.$ac_objext; then
12125 ac_cv_have_decl_cygwin_conv_path=yes
12126else
12127 $as_echo "$as_me: failed program was:" >&5
12128sed 's/^/| /' conftest.$ac_ext >&5
12129
12130 ac_cv_have_decl_cygwin_conv_path=no
12131fi
12132
12133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12134fi
12135{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
12136$as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; }
12137if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then
12138
12139cat >>confdefs.h <<_ACEOF
12140#define HAVE_DECL_CYGWIN_CONV_PATH 1
12141_ACEOF
12142
12143
12144else
12145 cat >>confdefs.h <<_ACEOF
12146#define HAVE_DECL_CYGWIN_CONV_PATH 0
12147_ACEOF
12148
12149
12150fi
12151
12152
12153 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12154 ;;
12155esac
12156
12157{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12158$as_echo_n "checking for dld_link in -ldld... " >&6; }
12159if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12160 $as_echo_n "(cached) " >&6
d9898ee8 12161else
12162 ac_check_lib_save_LIBS=$LIBS
12163LIBS="-ldld $LIBS"
12164cat >conftest.$ac_ext <<_ACEOF
12165/* confdefs.h. */
12166_ACEOF
12167cat confdefs.h >>conftest.$ac_ext
12168cat >>conftest.$ac_ext <<_ACEOF
12169/* end confdefs.h. */
12170
dd184caf 12171/* Override any GCC internal prototype to avoid an error.
12172 Use char because int might match the return type of a GCC
12173 builtin and then its argument prototype would still apply. */
d9898ee8 12174#ifdef __cplusplus
12175extern "C"
12176#endif
8d138742 12177char dld_link ();
d9898ee8 12178int
12179main ()
12180{
8d138742
CE
12181return dld_link ();
12182 ;
12183 return 0;
12184}
12185_ACEOF
12186rm -f conftest.$ac_objext conftest$ac_exeext
12187if { (ac_try="$ac_link"
12188case "(($ac_try" in
12189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12190 *) ac_try_echo=$ac_try;;
12191esac
12192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12193$as_echo "$ac_try_echo") >&5
12194 (eval "$ac_link") 2>conftest.er1
12195 ac_status=$?
12196 grep -v '^ *+' conftest.er1 >conftest.err
12197 rm -f conftest.er1
12198 cat conftest.err >&5
12199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } && {
12201 test -z "$ac_c_werror_flag" ||
12202 test ! -s conftest.err
12203 } && test -s conftest$ac_exeext && {
12204 test "$cross_compiling" = yes ||
12205 $as_test_x conftest$ac_exeext
12206 }; then
12207 ac_cv_lib_dld_dld_link=yes
12208else
12209 $as_echo "$as_me: failed program was:" >&5
12210sed 's/^/| /' conftest.$ac_ext >&5
12211
12212 ac_cv_lib_dld_dld_link=no
12213fi
12214
12215rm -rf conftest.dSYM
12216rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12217 conftest$ac_exeext conftest.$ac_ext
12218LIBS=$ac_check_lib_save_LIBS
12219fi
12220{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12221$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12222if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
12223
12224cat >>confdefs.h <<\_ACEOF
12225#define HAVE_DLD 1
12226_ACEOF
12227
12228 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12229fi
12230
12231
12232
12233
12234LT_DLPREOPEN=
12235if test -n "$LT_DLLOADERS"
12236then
12237 for lt_loader in $LT_DLLOADERS; do
12238 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12239 done
12240
12241cat >>confdefs.h <<\_ACEOF
12242#define HAVE_LIBDLLOADER 1
12243_ACEOF
12244
12245fi
12246
12247
12248LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12249
12250
12251ac_ext=c
12252ac_cpp='$CPP $CPPFLAGS'
12253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12255ac_compiler_gnu=$ac_cv_c_compiler_gnu
12256
12257
12258{ $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
12259$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12260if test "${lt_cv_sys_symbol_underscore+set}" = set; then
12261 $as_echo_n "(cached) " >&6
12262else
12263 lt_cv_sys_symbol_underscore=no
12264 cat > conftest.$ac_ext <<_LT_EOF
12265void nm_test_func(){}
12266int main(){nm_test_func;return 0;}
12267_LT_EOF
12268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12269 (eval $ac_compile) 2>&5
12270 ac_status=$?
12271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; then
12273 # Now try to grab the symbols.
12274 ac_nlist=conftest.nm
12275 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
12276 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12277 ac_status=$?
12278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && test -s "$ac_nlist"; then
12280 # See whether the symbols have a leading underscore.
12281 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12282 lt_cv_sys_symbol_underscore=yes
12283 else
12284 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12285 :
12286 else
12287 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12288 fi
12289 fi
12290 else
12291 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12292 fi
12293 else
12294 echo "configure: failed program was:" >&5
12295 cat conftest.c >&5
12296 fi
12297 rm -rf conftest*
12298
12299fi
12300{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
12301$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12302 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12303
12304
12305if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12306 if test x"$libltdl_cv_func_dlopen" = xyes ||
12307 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12308 { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
12309$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12310if test "${libltdl_cv_need_uscore+set}" = set; then
12311 $as_echo_n "(cached) " >&6
12312else
12313 libltdl_cv_need_uscore=unknown
12314 save_LIBS="$LIBS"
12315 LIBS="$LIBS $LIBADD_DLOPEN"
12316 if test "$cross_compiling" = yes; then :
12317 libltdl_cv_need_uscore=cross
12318else
12319 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12320 lt_status=$lt_dlunknown
12321 cat > conftest.$ac_ext <<_LT_EOF
12322#line 12322 "configure"
12323#include "confdefs.h"
12324
12325#if HAVE_DLFCN_H
12326#include <dlfcn.h>
12327#endif
12328
12329#include <stdio.h>
12330
12331#ifdef RTLD_GLOBAL
12332# define LT_DLGLOBAL RTLD_GLOBAL
12333#else
12334# ifdef DL_GLOBAL
12335# define LT_DLGLOBAL DL_GLOBAL
12336# else
12337# define LT_DLGLOBAL 0
12338# endif
12339#endif
12340
12341/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12342 find out it does not work in some platform. */
12343#ifndef LT_DLLAZY_OR_NOW
12344# ifdef RTLD_LAZY
12345# define LT_DLLAZY_OR_NOW RTLD_LAZY
12346# else
12347# ifdef DL_LAZY
12348# define LT_DLLAZY_OR_NOW DL_LAZY
12349# else
12350# ifdef RTLD_NOW
12351# define LT_DLLAZY_OR_NOW RTLD_NOW
12352# else
12353# ifdef DL_NOW
12354# define LT_DLLAZY_OR_NOW DL_NOW
12355# else
12356# define LT_DLLAZY_OR_NOW 0
12357# endif
12358# endif
12359# endif
12360# endif
12361#endif
12362
12363void fnord() { int i=42;}
12364int main ()
12365{
12366 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12367 int status = $lt_dlunknown;
12368
12369 if (self)
12370 {
12371 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12372 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12373 /* dlclose (self); */
12374 }
12375 else
12376 puts (dlerror ());
12377
12378 return status;
d9898ee8 12379}
8d138742
CE
12380_LT_EOF
12381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12382 (eval $ac_link) 2>&5
d9898ee8 12383 ac_status=$?
8d138742
CE
12384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12386 (./conftest; exit; ) >&5 2>/dev/null
12387 lt_status=$?
12388 case x$lt_status in
12389 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12390 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12391 x$lt_dlunknown|x*) ;;
12392 esac
12393 else :
12394 # compilation failed
d9898ee8 12395
8d138742 12396 fi
d9898ee8 12397fi
8d138742 12398rm -fr conftest*
dd184caf 12399
8d138742
CE
12400 LIBS="$save_LIBS"
12401
12402fi
12403{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
12404$as_echo "$libltdl_cv_need_uscore" >&6; }
12405 fi
d9898ee8 12406fi
8d138742
CE
12407
12408if test x"$libltdl_cv_need_uscore" = xyes; then
d9898ee8 12409
12410cat >>confdefs.h <<\_ACEOF
8d138742 12411#define NEED_USCORE 1
d9898ee8 12412_ACEOF
12413
8d138742 12414fi
d9898ee8 12415
8d138742
CE
12416{ $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
12417$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12418if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
12419 $as_echo_n "(cached) " >&6
d9898ee8 12420else
8d138742
CE
12421 # PORTME does your system automatically load deplibs for dlopen?
12422 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12423 # For now, we just catch OSes we know something about -- in the
12424 # future, we'll try test this programmatically.
12425 lt_cv_sys_dlopen_deplibs=unknown
12426 case $host_os in
12427 aix3*|aix4.1.*|aix4.2.*)
12428 # Unknown whether this is true for these versions of AIX, but
12429 # we want this `case' here to explicitly catch those versions.
12430 lt_cv_sys_dlopen_deplibs=unknown
12431 ;;
12432 aix[4-9]*)
12433 lt_cv_sys_dlopen_deplibs=yes
12434 ;;
12435 amigaos*)
12436 case $host_cpu in
12437 powerpc)
12438 lt_cv_sys_dlopen_deplibs=no
12439 ;;
12440 esac
12441 ;;
12442 darwin*)
12443 # Assuming the user has installed a libdl from somewhere, this is true
12444 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12445 lt_cv_sys_dlopen_deplibs=yes
12446 ;;
12447 freebsd* | dragonfly*)
12448 lt_cv_sys_dlopen_deplibs=yes
12449 ;;
12450 gnu* | linux* | k*bsd*-gnu)
12451 # GNU and its variants, using gnu ld.so (Glibc)
12452 lt_cv_sys_dlopen_deplibs=yes
12453 ;;
12454 hpux10*|hpux11*)
12455 lt_cv_sys_dlopen_deplibs=yes
12456 ;;
12457 interix*)
12458 lt_cv_sys_dlopen_deplibs=yes
12459 ;;
12460 irix[12345]*|irix6.[01]*)
12461 # Catch all versions of IRIX before 6.2, and indicate that we don't
12462 # know how it worked for any of those versions.
12463 lt_cv_sys_dlopen_deplibs=unknown
12464 ;;
12465 irix*)
12466 # The case above catches anything before 6.2, and it's known that
12467 # at 6.2 and later dlopen does load deplibs.
12468 lt_cv_sys_dlopen_deplibs=yes
12469 ;;
12470 netbsd*)
12471 lt_cv_sys_dlopen_deplibs=yes
12472 ;;
12473 openbsd*)
12474 lt_cv_sys_dlopen_deplibs=yes
12475 ;;
12476 osf[1234]*)
12477 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12478 # it did *not* use an RPATH in a shared library to find objects the
12479 # library depends on, so we explicitly say `no'.
12480 lt_cv_sys_dlopen_deplibs=no
12481 ;;
12482 osf5.0|osf5.0a|osf5.1)
12483 # dlopen *does* load deplibs and with the right loader patch applied
12484 # it even uses RPATH in a shared library to search for shared objects
12485 # that the library depends on, but there's no easy way to know if that
12486 # patch is installed. Since this is the case, all we can really
12487 # say is unknown -- it depends on the patch being installed. If
12488 # it is, this changes to `yes'. Without it, it would be `no'.
12489 lt_cv_sys_dlopen_deplibs=unknown
12490 ;;
12491 osf*)
12492 # the two cases above should catch all versions of osf <= 5.1. Read
12493 # the comments above for what we know about them.
12494 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12495 # is used to find them so we can finally say `yes'.
12496 lt_cv_sys_dlopen_deplibs=yes
12497 ;;
12498 qnx*)
12499 lt_cv_sys_dlopen_deplibs=yes
12500 ;;
12501 solaris*)
12502 lt_cv_sys_dlopen_deplibs=yes
12503 ;;
12504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12505 libltdl_cv_sys_dlopen_deplibs=yes
12506 ;;
12507 esac
dd184caf 12508
d9898ee8 12509fi
8d138742
CE
12510{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
12511$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12512if test "$lt_cv_sys_dlopen_deplibs" != yes; then
d9898ee8 12513
12514cat >>confdefs.h <<\_ACEOF
8d138742 12515#define LTDL_DLOPEN_DEPLIBS 1
d9898ee8 12516_ACEOF
12517
8d138742 12518fi
d9898ee8 12519
8d138742 12520:
d9898ee8 12521
d9898ee8 12522
8d138742
CE
12523for ac_header in argz.h
12524do
12525as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12526{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12527$as_echo_n "checking for $ac_header... " >&6; }
12528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12529 $as_echo_n "(cached) " >&6
d9898ee8 12530else
8d138742 12531 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 12532/* confdefs.h. */
12533_ACEOF
12534cat confdefs.h >>conftest.$ac_ext
12535cat >>conftest.$ac_ext <<_ACEOF
12536/* end confdefs.h. */
8d138742 12537$ac_includes_default
d9898ee8 12538
8d138742 12539#include <$ac_header>
d9898ee8 12540_ACEOF
8d138742
CE
12541rm -f conftest.$ac_objext
12542if { (ac_try="$ac_compile"
dd184caf 12543case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12546esac
8d138742
CE
12547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12548$as_echo "$ac_try_echo") >&5
12549 (eval "$ac_compile") 2>conftest.er1
d9898ee8 12550 ac_status=$?
12551 grep -v '^ *+' conftest.er1 >conftest.err
12552 rm -f conftest.er1
12553 cat conftest.err >&5
8d138742 12554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
8d138742
CE
12558 } && test -s conftest.$ac_objext; then
12559 eval "$as_ac_Header=yes"
d9898ee8 12560else
8d138742 12561 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12562sed 's/^/| /' conftest.$ac_ext >&5
12563
8d138742
CE
12564 eval "$as_ac_Header=no"
12565fi
12566
12567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12568fi
8d138742
CE
12569ac_res=`eval 'as_val=${'$as_ac_Header'}
12570 $as_echo "$as_val"'`
12571 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12572$as_echo "$ac_res" >&6; }
12573as_val=`eval 'as_val=${'$as_ac_Header'}
12574 $as_echo "$as_val"'`
12575 if test "x$as_val" = x""yes; then
12576 cat >>confdefs.h <<_ACEOF
12577#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12578_ACEOF
dd184caf 12579
d9898ee8 12580fi
d9898ee8 12581
8d138742 12582done
d9898ee8 12583
8d138742
CE
12584
12585{ $as_echo "$as_me:$LINENO: checking for error_t" >&5
12586$as_echo_n "checking for error_t... " >&6; }
12587if test "${ac_cv_type_error_t+set}" = set; then
12588 $as_echo_n "(cached) " >&6
d9898ee8 12589else
8d138742 12590 ac_cv_type_error_t=no
d9898ee8 12591cat >conftest.$ac_ext <<_ACEOF
12592/* confdefs.h. */
12593_ACEOF
12594cat confdefs.h >>conftest.$ac_ext
12595cat >>conftest.$ac_ext <<_ACEOF
12596/* end confdefs.h. */
8d138742
CE
12597#if defined(HAVE_ARGZ_H)
12598# include <argz.h>
d9898ee8 12599#endif
8d138742 12600
d9898ee8 12601int
12602main ()
12603{
8d138742
CE
12604if (sizeof (error_t))
12605 return 0;
d9898ee8 12606 ;
12607 return 0;
12608}
12609_ACEOF
8d138742
CE
12610rm -f conftest.$ac_objext
12611if { (ac_try="$ac_compile"
dd184caf 12612case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12615esac
8d138742
CE
12616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12617$as_echo "$ac_try_echo") >&5
12618 (eval "$ac_compile") 2>conftest.er1
d9898ee8 12619 ac_status=$?
12620 grep -v '^ *+' conftest.er1 >conftest.err
12621 rm -f conftest.er1
12622 cat conftest.err >&5
8d138742 12623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12624 (exit $ac_status); } && {
12625 test -z "$ac_c_werror_flag" ||
12626 test ! -s conftest.err
8d138742 12627 } && test -s conftest.$ac_objext; then
d9898ee8 12628 cat >conftest.$ac_ext <<_ACEOF
12629/* confdefs.h. */
12630_ACEOF
12631cat confdefs.h >>conftest.$ac_ext
12632cat >>conftest.$ac_ext <<_ACEOF
12633/* end confdefs.h. */
8d138742
CE
12634#if defined(HAVE_ARGZ_H)
12635# include <argz.h>
d9898ee8 12636#endif
12637
12638int
12639main ()
12640{
8d138742
CE
12641if (sizeof ((error_t)))
12642 return 0;
d9898ee8 12643 ;
12644 return 0;
12645}
12646_ACEOF
8d138742
CE
12647rm -f conftest.$ac_objext
12648if { (ac_try="$ac_compile"
dd184caf 12649case "(($ac_try" in
12650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651 *) ac_try_echo=$ac_try;;
12652esac
8d138742
CE
12653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12654$as_echo "$ac_try_echo") >&5
12655 (eval "$ac_compile") 2>conftest.er1
d9898ee8 12656 ac_status=$?
12657 grep -v '^ *+' conftest.er1 >conftest.err
12658 rm -f conftest.er1
12659 cat conftest.err >&5
8d138742 12660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12661 (exit $ac_status); } && {
12662 test -z "$ac_c_werror_flag" ||
12663 test ! -s conftest.err
8d138742
CE
12664 } && test -s conftest.$ac_objext; then
12665 :
d9898ee8 12666else
8d138742 12667 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12668sed 's/^/| /' conftest.$ac_ext >&5
12669
8d138742 12670 ac_cv_type_error_t=yes
d9898ee8 12671fi
dd184caf 12672
8d138742
CE
12673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12674else
12675 $as_echo "$as_me: failed program was:" >&5
12676sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12677
d9898ee8 12678
12679fi
12680
8d138742 12681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12682fi
8d138742
CE
12683{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
12684$as_echo "$ac_cv_type_error_t" >&6; }
12685if test "x$ac_cv_type_error_t" = x""yes; then
d9898ee8 12686
8d138742
CE
12687cat >>confdefs.h <<_ACEOF
12688#define HAVE_ERROR_T 1
12689_ACEOF
d9898ee8 12690
d9898ee8 12691
8d138742 12692else
d9898ee8 12693
8d138742
CE
12694cat >>confdefs.h <<\_ACEOF
12695#define error_t int
12696_ACEOF
dd184caf 12697
8d138742
CE
12698
12699cat >>confdefs.h <<\_ACEOF
12700#define __error_t_defined 1
12701_ACEOF
d9898ee8 12702
12703fi
12704
12705
8d138742 12706ARGZ_H=
d9898ee8 12707
12708
d9898ee8 12709
12710
d9898ee8 12711
8d138742
CE
12712
12713
12714for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12715 argz_next argz_stringify
d9898ee8 12716do
8d138742
CE
12717as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12719$as_echo_n "checking for $ac_func... " >&6; }
dd184caf 12720if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 12721 $as_echo_n "(cached) " >&6
d9898ee8 12722else
12723 cat >conftest.$ac_ext <<_ACEOF
12724/* confdefs.h. */
12725_ACEOF
12726cat confdefs.h >>conftest.$ac_ext
12727cat >>conftest.$ac_ext <<_ACEOF
12728/* end confdefs.h. */
12729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12731#define $ac_func innocuous_$ac_func
12732
12733/* System header to define __stub macros and hopefully few prototypes,
12734 which can conflict with char $ac_func (); below.
12735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12736 <limits.h> exists even on freestanding compilers. */
12737
12738#ifdef __STDC__
12739# include <limits.h>
12740#else
12741# include <assert.h>
12742#endif
12743
12744#undef $ac_func
12745
dd184caf 12746/* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
d9898ee8 12749#ifdef __cplusplus
12750extern "C"
d9898ee8 12751#endif
d9898ee8 12752char $ac_func ();
12753/* The GNU C library defines this for functions which it implements
12754 to always fail with ENOSYS. Some functions are actually named
12755 something starting with __ and the normal name is an alias. */
dd184caf 12756#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 12757choke me
d9898ee8 12758#endif
12759
12760int
12761main ()
12762{
dd184caf 12763return $ac_func ();
d9898ee8 12764 ;
12765 return 0;
12766}
12767_ACEOF
12768rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 12769if { (ac_try="$ac_link"
12770case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12773esac
8d138742
CE
12774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12775$as_echo "$ac_try_echo") >&5
dd184caf 12776 (eval "$ac_link") 2>conftest.er1
d9898ee8 12777 ac_status=$?
12778 grep -v '^ *+' conftest.er1 >conftest.err
12779 rm -f conftest.er1
12780 cat conftest.err >&5
8d138742 12781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12782 (exit $ac_status); } && {
8d138742
CE
12783 test -z "$ac_c_werror_flag" ||
12784 test ! -s conftest.err
12785 } && test -s conftest$ac_exeext && {
12786 test "$cross_compiling" = yes ||
12787 $as_test_x conftest$ac_exeext
12788 }; then
12789 eval "$as_ac_var=yes"
12790else
12791 $as_echo "$as_me: failed program was:" >&5
12792sed 's/^/| /' conftest.$ac_ext >&5
d9898ee8 12793
8d138742
CE
12794 eval "$as_ac_var=no"
12795fi
d9898ee8 12796
8d138742
CE
12797rm -rf conftest.dSYM
12798rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12799 conftest$ac_exeext conftest.$ac_ext
d9898ee8 12800fi
8d138742
CE
12801ac_res=`eval 'as_val=${'$as_ac_var'}
12802 $as_echo "$as_val"'`
12803 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12804$as_echo "$ac_res" >&6; }
12805as_val=`eval 'as_val=${'$as_ac_var'}
12806 $as_echo "$as_val"'`
12807 if test "x$as_val" = x""yes; then
12808 cat >>confdefs.h <<_ACEOF
12809#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12810_ACEOF
d9898ee8 12811
8d138742
CE
12812else
12813 ARGZ_H=argz.h; case " $LIBOBJS " in
12814 *" argz.$ac_objext "* ) ;;
12815 *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12816 ;;
12817esac
d9898ee8 12818
12819fi
8d138742 12820done
d9898ee8 12821
8d138742
CE
12822
12823if test -z "$ARGZ_H"; then
12824 { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5
12825$as_echo_n "checking if argz actually works... " >&6; }
12826if test "${lt_cv_sys_argz_works+set}" = set; then
12827 $as_echo_n "(cached) " >&6
12828else
12829 case $host_os in #(
12830 *cygwin*)
12831 lt_cv_sys_argz_works=no
12832 if test "$cross_compiling" != no; then
12833 lt_cv_sys_argz_works="guessing no"
12834 else
12835 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12836 save_IFS=$IFS
12837 IFS=-.
12838 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12839 IFS=$save_IFS
12840 lt_os_major=${2-0}
12841 lt_os_minor=${3-0}
12842 lt_os_micro=${4-0}
12843 if test "$lt_os_major" -gt 1 \
12844 || { test "$lt_os_major" -eq 1 \
12845 && { test "$lt_os_minor" -gt 5 \
12846 || { test "$lt_os_minor" -eq 5 \
12847 && test "$lt_os_micro" -gt 24; }; }; }; then
12848 lt_cv_sys_argz_works=yes
12849 fi
12850 fi
12851 ;; #(
12852 *) lt_cv_sys_argz_works=yes ;;
12853 esac
12854fi
12855{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
12856$as_echo "$lt_cv_sys_argz_works" >&6; }
12857 if test $lt_cv_sys_argz_works = yes; then
d9898ee8 12858
12859cat >>confdefs.h <<\_ACEOF
8d138742 12860#define HAVE_WORKING_ARGZ 1
d9898ee8 12861_ACEOF
12862
8d138742
CE
12863else
12864 ARGZ_H=argz.h
12865 case " $LIBOBJS " in
12866 *" argz.$ac_objext "* ) ;;
12867 *) LIBOBJS="$LIBOBJS argz.$ac_objext"
12868 ;;
12869esac
12870
12871fi
12872
d9898ee8 12873fi
12874
12875
8d138742
CE
12876
12877
12878{ $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
12879$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12880if test "${libltdl_cv_preloaded_symbols+set}" = set; then
12881 $as_echo_n "(cached) " >&6
d9898ee8 12882else
8d138742
CE
12883 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12884 libltdl_cv_preloaded_symbols=yes
12885 else
12886 libltdl_cv_preloaded_symbols=no
12887 fi
d9898ee8 12888
12889fi
8d138742
CE
12890{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
12891$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12892if test x"$libltdl_cv_preloaded_symbols" = xyes; then
d9898ee8 12893
12894cat >>confdefs.h <<\_ACEOF
8d138742 12895#define HAVE_PRELOADED_SYMBOLS 1
d9898ee8 12896_ACEOF
12897
12898fi
12899
12900
8d138742
CE
12901
12902# Check whether --enable-ltdl-install was given.
12903if test "${enable_ltdl_install+set}" = set; then
12904 enableval=$enable_ltdl_install;
12905fi
12906
12907
12908case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12909 *yes*) ;;
12910 *) enable_ltdl_convenience=yes ;;
12911esac
12912
12913 if test x"${enable_ltdl_install-no}" != xno; then
12914 INSTALL_LTDL_TRUE=
12915 INSTALL_LTDL_FALSE='#'
12916else
12917 INSTALL_LTDL_TRUE='#'
12918 INSTALL_LTDL_FALSE=
12919fi
12920
12921 if test x"${enable_ltdl_convenience-no}" != xno; then
12922 CONVENIENCE_LTDL_TRUE=
12923 CONVENIENCE_LTDL_FALSE='#'
12924else
12925 CONVENIENCE_LTDL_TRUE='#'
12926 CONVENIENCE_LTDL_FALSE=
12927fi
12928
12929
12930
12931
12932
12933
12934# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12935# the user used. This is so that ltdl.h can pick up the parent projects
12936# config.h file, The first file in AC_CONFIG_HEADERS must contain the
12937# definitions required by ltdl.c.
12938# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
d9898ee8 12949do
8d138742
CE
12950as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12951{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12952$as_echo_n "checking for $ac_header... " >&6; }
dd184caf 12953if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 12954 $as_echo_n "(cached) " >&6
d9898ee8 12955else
8d138742 12956 cat >conftest.$ac_ext <<_ACEOF
d9898ee8 12957/* confdefs.h. */
12958_ACEOF
12959cat confdefs.h >>conftest.$ac_ext
12960cat >>conftest.$ac_ext <<_ACEOF
12961/* end confdefs.h. */
12962$ac_includes_default
8d138742 12963
d9898ee8 12964#include <$ac_header>
12965_ACEOF
12966rm -f conftest.$ac_objext
dd184caf 12967if { (ac_try="$ac_compile"
12968case "(($ac_try" in
12969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12971esac
8d138742
CE
12972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12973$as_echo "$ac_try_echo") >&5
dd184caf 12974 (eval "$ac_compile") 2>conftest.er1
d9898ee8 12975 ac_status=$?
12976 grep -v '^ *+' conftest.er1 >conftest.err
12977 rm -f conftest.er1
12978 cat conftest.err >&5
8d138742 12979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 12980 (exit $ac_status); } && {
12981 test -z "$ac_c_werror_flag" ||
12982 test ! -s conftest.err
12983 } && test -s conftest.$ac_objext; then
8d138742 12984 eval "$as_ac_Header=yes"
d9898ee8 12985else
8d138742 12986 $as_echo "$as_me: failed program was:" >&5
d9898ee8 12987sed 's/^/| /' conftest.$ac_ext >&5
12988
8d138742 12989 eval "$as_ac_Header=no"
d9898ee8 12990fi
dd184caf 12991
12992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d9898ee8 12993fi
8d138742
CE
12994ac_res=`eval 'as_val=${'$as_ac_Header'}
12995 $as_echo "$as_val"'`
12996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12997$as_echo "$ac_res" >&6; }
12998as_val=`eval 'as_val=${'$as_ac_Header'}
12999 $as_echo "$as_val"'`
13000 if test "x$as_val" = x""yes; then
d9898ee8 13001 cat >>confdefs.h <<_ACEOF
8d138742 13002#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
d9898ee8 13003_ACEOF
13004
13005fi
13006
13007done
13008
13009
8d138742
CE
13010
13011
13012
13013for ac_func in closedir opendir readdir
13014do
13015as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13016{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13017$as_echo_n "checking for $ac_func... " >&6; }
13018if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13019 $as_echo_n "(cached) " >&6
d9898ee8 13020else
13021 cat >conftest.$ac_ext <<_ACEOF
13022/* confdefs.h. */
13023_ACEOF
13024cat confdefs.h >>conftest.$ac_ext
13025cat >>conftest.$ac_ext <<_ACEOF
13026/* end confdefs.h. */
8d138742
CE
13027/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13029#define $ac_func innocuous_$ac_func
13030
13031/* System header to define __stub macros and hopefully few prototypes,
13032 which can conflict with char $ac_func (); below.
13033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13034 <limits.h> exists even on freestanding compilers. */
13035
13036#ifdef __STDC__
13037# include <limits.h>
13038#else
13039# include <assert.h>
13040#endif
13041
13042#undef $ac_func
13043
13044/* Override any GCC internal prototype to avoid an error.
13045 Use char because int might match the return type of a GCC
13046 builtin and then its argument prototype would still apply. */
13047#ifdef __cplusplus
13048extern "C"
13049#endif
13050char $ac_func ();
13051/* The GNU C library defines this for functions which it implements
13052 to always fail with ENOSYS. Some functions are actually named
13053 something starting with __ and the normal name is an alias. */
13054#if defined __stub_$ac_func || defined __stub___$ac_func
13055choke me
d9898ee8 13056#endif
13057
13058int
13059main ()
13060{
8d138742 13061return $ac_func ();
d9898ee8 13062 ;
13063 return 0;
13064}
13065_ACEOF
8d138742
CE
13066rm -f conftest.$ac_objext conftest$ac_exeext
13067if { (ac_try="$ac_link"
dd184caf 13068case "(($ac_try" in
13069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13070 *) ac_try_echo=$ac_try;;
13071esac
8d138742
CE
13072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13073$as_echo "$ac_try_echo") >&5
13074 (eval "$ac_link") 2>conftest.er1
d9898ee8 13075 ac_status=$?
13076 grep -v '^ *+' conftest.er1 >conftest.err
13077 rm -f conftest.er1
13078 cat conftest.err >&5
8d138742 13079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 13080 (exit $ac_status); } && {
13081 test -z "$ac_c_werror_flag" ||
13082 test ! -s conftest.err
8d138742
CE
13083 } && test -s conftest$ac_exeext && {
13084 test "$cross_compiling" = yes ||
13085 $as_test_x conftest$ac_exeext
13086 }; then
13087 eval "$as_ac_var=yes"
d9898ee8 13088else
8d138742 13089 $as_echo "$as_me: failed program was:" >&5
d9898ee8 13090sed 's/^/| /' conftest.$ac_ext >&5
13091
8d138742 13092 eval "$as_ac_var=no"
d9898ee8 13093fi
dd184caf 13094
8d138742
CE
13095rm -rf conftest.dSYM
13096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13097 conftest$ac_exeext conftest.$ac_ext
d9898ee8 13098fi
8d138742
CE
13099ac_res=`eval 'as_val=${'$as_ac_var'}
13100 $as_echo "$as_val"'`
13101 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13102$as_echo "$ac_res" >&6; }
13103as_val=`eval 'as_val=${'$as_ac_var'}
13104 $as_echo "$as_val"'`
13105 if test "x$as_val" = x""yes; then
13106 cat >>confdefs.h <<_ACEOF
13107#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d9898ee8 13108_ACEOF
13109
d9898ee8 13110else
8d138742
CE
13111 case " $LIBOBJS " in
13112 *" lt__dirent.$ac_objext "* ) ;;
13113 *) LIBOBJS="$LIBOBJS lt__dirent.$ac_objext"
13114 ;;
13115esac
d9898ee8 13116
13117fi
8d138742 13118done
d9898ee8 13119
13120
13121
8d138742 13122for ac_func in strlcat strlcpy
d9898ee8 13123do
8d138742
CE
13124as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13125{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13126$as_echo_n "checking for $ac_func... " >&6; }
dd184caf 13127if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8d138742 13128 $as_echo_n "(cached) " >&6
d9898ee8 13129else
13130 cat >conftest.$ac_ext <<_ACEOF
13131/* confdefs.h. */
13132_ACEOF
13133cat confdefs.h >>conftest.$ac_ext
13134cat >>conftest.$ac_ext <<_ACEOF
13135/* end confdefs.h. */
13136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13138#define $ac_func innocuous_$ac_func
13139
13140/* System header to define __stub macros and hopefully few prototypes,
13141 which can conflict with char $ac_func (); below.
13142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13143 <limits.h> exists even on freestanding compilers. */
13144
13145#ifdef __STDC__
13146# include <limits.h>
13147#else
13148# include <assert.h>
13149#endif
13150
13151#undef $ac_func
13152
dd184caf 13153/* Override any GCC internal prototype to avoid an error.
13154 Use char because int might match the return type of a GCC
13155 builtin and then its argument prototype would still apply. */
d9898ee8 13156#ifdef __cplusplus
13157extern "C"
d9898ee8 13158#endif
d9898ee8 13159char $ac_func ();
13160/* The GNU C library defines this for functions which it implements
13161 to always fail with ENOSYS. Some functions are actually named
13162 something starting with __ and the normal name is an alias. */
dd184caf 13163#if defined __stub_$ac_func || defined __stub___$ac_func
d9898ee8 13164choke me
d9898ee8 13165#endif
13166
13167int
13168main ()
13169{
dd184caf 13170return $ac_func ();
d9898ee8 13171 ;
13172 return 0;
13173}
13174_ACEOF
13175rm -f conftest.$ac_objext conftest$ac_exeext
dd184caf 13176if { (ac_try="$ac_link"
13177case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13180esac
8d138742
CE
13181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13182$as_echo "$ac_try_echo") >&5
dd184caf 13183 (eval "$ac_link") 2>conftest.er1
d9898ee8 13184 ac_status=$?
13185 grep -v '^ *+' conftest.er1 >conftest.err
13186 rm -f conftest.er1
13187 cat conftest.err >&5
8d138742 13188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
dd184caf 13189 (exit $ac_status); } && {
13190 test -z "$ac_c_werror_flag" ||
13191 test ! -s conftest.err
8d138742
CE
13192 } && test -s conftest$ac_exeext && {
13193 test "$cross_compiling" = yes ||
13194 $as_test_x conftest$ac_exeext
13195 }; then
d9898ee8 13196 eval "$as_ac_var=yes"
13197else
8d138742 13198 $as_echo "$as_me: failed program was:" >&5
d9898ee8 13199sed 's/^/| /' conftest.$ac_ext >&5
13200
dd184caf 13201 eval "$as_ac_var=no"
d9898ee8 13202fi
dd184caf 13203
8d138742 13204rm -rf conftest.dSYM
dd184caf 13205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
d9898ee8 13206 conftest$ac_exeext conftest.$ac_ext
13207fi
8d138742
CE
13208ac_res=`eval 'as_val=${'$as_ac_var'}
13209 $as_echo "$as_val"'`
13210 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13211$as_echo "$ac_res" >&6; }
13212as_val=`eval 'as_val=${'$as_ac_var'}
13213 $as_echo "$as_val"'`
13214 if test "x$as_val" = x""yes; then
d9898ee8 13215 cat >>confdefs.h <<_ACEOF
8d138742 13216#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
d9898ee8 13217_ACEOF
13218
8d138742
CE
13219else
13220 case " $LIBOBJS " in
13221 *" lt__strl.$ac_objext "* ) ;;
13222 *) LIBOBJS="$LIBOBJS lt__strl.$ac_objext"
13223 ;;
13224esac
13225
d9898ee8 13226fi
13227done
13228
13229
13230
8d138742
CE
13231cat >>confdefs.h <<_ACEOF
13232#define LT_LIBEXT "$libext"
13233_ACEOF
13234
13235
13236name=ltdl
13237LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
d9898ee8 13238
13239
13240
13241
8d138742
CE
13242## -------- ##
13243## Outputs. ##
13244## -------- ##
13245ac_config_files="$ac_config_files Makefile"
13246
13247cat >confcache <<\_ACEOF
13248# This file is a shell script that caches the results of configure
13249# tests run on this system so they can be shared between configure
13250# scripts and configure runs, see configure's option --config-cache.
13251# It is not useful on other systems. If it contains results you don't
13252# want to keep, you may remove or edit it.
13253#
13254# config.status only pays attention to the cache file if you give it
13255# the --recheck option to rerun configure.
13256#
13257# `ac_cv_env_foo' variables (set or unset) will be overridden when
13258# loading this file, other *unset* `ac_cv_foo' will be assigned the
13259# following values.
d9898ee8 13260
8d138742 13261_ACEOF
d9898ee8 13262
8d138742
CE
13263# The following way of writing the cache mishandles newlines in values,
13264# but we know of no workaround that is simple, portable, and efficient.
13265# So, we kill variables containing newlines.
13266# Ultrix sh set writes to stderr and can't be redirected directly,
13267# and sets the high bit in the cache file unless we assign to the vars.
13268(
13269 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13270 eval ac_val=\$$ac_var
13271 case $ac_val in #(
13272 *${as_nl}*)
13273 case $ac_var in #(
13274 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13275$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13276 esac
13277 case $ac_var in #(
13278 _ | IFS | as_nl) ;; #(
13279 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13280 *) $as_unset $ac_var ;;
13281 esac ;;
13282 esac
13283 done
d9898ee8 13284
8d138742
CE
13285 (set) 2>&1 |
13286 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13287 *${as_nl}ac_space=\ *)
13288 # `set' does not quote correctly, so add quotes (double-quote
13289 # substitution turns \\\\ into \\, and sed turns \\ into \).
13290 sed -n \
13291 "s/'/'\\\\''/g;
13292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13293 ;; #(
13294 *)
13295 # `set' quotes correctly as required by POSIX, so do not add quotes.
13296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13297 ;;
13298 esac |
13299 sort
13300) |
13301 sed '
13302 /^ac_cv_env_/b end
13303 t clear
13304 :clear
13305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13306 t end
13307 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13308 :end' >>confcache
13309if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13310 if test -w "$cache_file"; then
13311 test "x$cache_file" != "x/dev/null" &&
13312 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13313$as_echo "$as_me: updating cache $cache_file" >&6;}
13314 cat confcache >$cache_file
13315 else
13316 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13317$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13318 fi
13319fi
13320rm -f confcache
d9898ee8 13321
8d138742
CE
13322test "x$prefix" = xNONE && prefix=$ac_default_prefix
13323# Let make expand exec_prefix.
13324test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
d9898ee8 13325
8d138742 13326DEFS=-DHAVE_CONFIG_H
d9898ee8 13327
8d138742
CE
13328ac_libobjs=
13329ac_ltlibobjs=
13330for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13331 # 1. Remove the extension, and $U if already installed.
13332 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13333 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13334 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13335 # will be set to the directory where LIBOBJS objects are built.
13336 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13337 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13338done
13339LIBOBJS=$ac_libobjs
d9898ee8 13340
8d138742 13341LTLIBOBJS=$ac_ltlibobjs
d9898ee8 13342
13343
8d138742
CE
13344 if test -n "$EXEEXT"; then
13345 am__EXEEXT_TRUE=
13346 am__EXEEXT_FALSE='#'
13347else
13348 am__EXEEXT_TRUE='#'
13349 am__EXEEXT_FALSE=
13350fi
d9898ee8 13351
8d138742
CE
13352if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13353 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13354Usually this means the macro was only invoked conditionally." >&5
13355$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
13356Usually this means the macro was only invoked conditionally." >&2;}
13357 { (exit 1); exit 1; }; }
13358fi
13359if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13360 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13361Usually this means the macro was only invoked conditionally." >&5
13362$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13363Usually this means the macro was only invoked conditionally." >&2;}
13364 { (exit 1); exit 1; }; }
13365fi
13366if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13367 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
13368Usually this means the macro was only invoked conditionally." >&5
13369$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
13370Usually this means the macro was only invoked conditionally." >&2;}
13371 { (exit 1); exit 1; }; }
13372fi
13373if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13374 { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
13375Usually this means the macro was only invoked conditionally." >&5
13376$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
13377Usually this means the macro was only invoked conditionally." >&2;}
13378 { (exit 1); exit 1; }; }
13379fi
13380LT_CONFIG_H=config.h
d9898ee8 13381
8d138742
CE
13382: ${CONFIG_STATUS=./config.status}
13383ac_write_fail=0
13384ac_clean_files_save=$ac_clean_files
13385ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13386{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13387$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13388cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13389#! $SHELL
13390# Generated by $as_me.
13391# Run this file to recreate the current configuration.
13392# Compiler output produced by configure, useful for debugging
13393# configure, is in config.log if it exists.
d9898ee8 13394
8d138742
CE
13395debug=false
13396ac_cs_recheck=false
13397ac_cs_silent=false
13398SHELL=\${CONFIG_SHELL-$SHELL}
13399_ACEOF
d9898ee8 13400
8d138742
CE
13401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13402## --------------------- ##
13403## M4sh Initialization. ##
13404## --------------------- ##
d9898ee8 13405
8d138742
CE
13406# Be more Bourne compatible
13407DUALCASE=1; export DUALCASE # for MKS sh
13408if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13409 emulate sh
13410 NULLCMD=:
13411 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13412 # is contrary to our usage. Disable this feature.
13413 alias -g '${1+"$@"}'='"$@"'
13414 setopt NO_GLOB_SUBST
13415else
13416 case `(set -o) 2>/dev/null` in
13417 *posix*) set -o posix ;;
13418esac
d9898ee8 13419
8d138742 13420fi
d9898ee8 13421
13422
13423
13424
8d138742
CE
13425# PATH needs CR
13426# Avoid depending upon Character Ranges.
13427as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13428as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13429as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13430as_cr_digits='0123456789'
13431as_cr_alnum=$as_cr_Letters$as_cr_digits
d9898ee8 13432
8d138742
CE
13433as_nl='
13434'
13435export as_nl
13436# Printing a long string crashes Solaris 7 /usr/bin/printf.
13437as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13438as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13439as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13440if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13441 as_echo='printf %s\n'
13442 as_echo_n='printf %s'
13443else
13444 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13445 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13446 as_echo_n='/usr/ucb/echo -n'
13447 else
13448 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13449 as_echo_n_body='eval
13450 arg=$1;
13451 case $arg in
13452 *"$as_nl"*)
13453 expr "X$arg" : "X\\(.*\\)$as_nl";
13454 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13455 esac;
13456 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13457 '
13458 export as_echo_n_body
13459 as_echo_n='sh -c $as_echo_n_body as_echo'
13460 fi
13461 export as_echo_body
13462 as_echo='sh -c $as_echo_body as_echo'
13463fi
d9898ee8 13464
8d138742
CE
13465# The user is always right.
13466if test "${PATH_SEPARATOR+set}" != set; then
13467 PATH_SEPARATOR=:
13468 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13469 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13470 PATH_SEPARATOR=';'
13471 }
d9898ee8 13472fi
d9898ee8 13473
8d138742
CE
13474# Support unset when possible.
13475if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13476 as_unset=unset
13477else
13478 as_unset=false
d9898ee8 13479fi
dd184caf 13480
d9898ee8 13481
8d138742
CE
13482# IFS
13483# We need space, tab and new line, in precisely that order. Quoting is
13484# there to prevent editors from complaining about space-tab.
13485# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13486# splitting by setting IFS to empty value.)
13487IFS=" "" $as_nl"
13488
13489# Find who we are. Look in the path if we contain no directory separator.
13490case $0 in
13491 *[\\/]* ) as_myself=$0 ;;
13492 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13493for as_dir in $PATH
13494do
13495 IFS=$as_save_IFS
13496 test -z "$as_dir" && as_dir=.
13497 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13498done
13499IFS=$as_save_IFS
d9898ee8 13500
8d138742
CE
13501 ;;
13502esac
13503# We did not find ourselves, most probably we were run as `sh COMMAND'
13504# in which case we are not to be found in the path.
13505if test "x$as_myself" = x; then
13506 as_myself=$0
13507fi
13508if test ! -f "$as_myself"; then
13509 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13510 { (exit 1); exit 1; }
d9898ee8 13511fi
dd184caf 13512
8d138742
CE
13513# Work around bugs in pre-3.0 UWIN ksh.
13514for as_var in ENV MAIL MAILPATH
13515do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13516done
13517PS1='$ '
13518PS2='> '
13519PS4='+ '
13520
13521# NLS nuisances.
13522LC_ALL=C
13523export LC_ALL
13524LANGUAGE=C
13525export LANGUAGE
13526
13527# Required to use basename.
13528if expr a : '\(a\)' >/dev/null 2>&1 &&
13529 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13530 as_expr=expr
d9898ee8 13531else
8d138742 13532 as_expr=false
d9898ee8 13533fi
d9898ee8 13534
8d138742
CE
13535if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13536 as_basename=basename
13537else
13538 as_basename=false
d9898ee8 13539fi
d9898ee8 13540
d9898ee8 13541
8d138742
CE
13542# Name of the executable.
13543as_me=`$as_basename -- "$0" ||
13544$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13545 X"$0" : 'X\(//\)$' \| \
13546 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13547$as_echo X/"$0" |
13548 sed '/^.*\/\([^/][^/]*\)\/*$/{
13549 s//\1/
13550 q
13551 }
13552 /^X\/\(\/\/\)$/{
13553 s//\1/
13554 q
13555 }
13556 /^X\/\(\/\).*/{
13557 s//\1/
13558 q
13559 }
13560 s/.*/./; q'`
d9898ee8 13561
8d138742
CE
13562# CDPATH.
13563$as_unset CDPATH
d9898ee8 13564
13565
13566
8d138742
CE
13567 as_lineno_1=$LINENO
13568 as_lineno_2=$LINENO
13569 test "x$as_lineno_1" != "x$as_lineno_2" &&
13570 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
d9898ee8 13571
8d138742
CE
13572 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13573 # uniformly replaced by the line number. The first 'sed' inserts a
13574 # line-number line after each line using $LINENO; the second 'sed'
13575 # does the real work. The second script uses 'N' to pair each
13576 # line-number line with the line containing $LINENO, and appends
13577 # trailing '-' during substitution so that $LINENO is not a special
13578 # case at line end.
13579 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13580 # scripts with optimization help from Paolo Bonzini. Blame Lee
13581 # E. McMahon (1931-1989) for sed's syntax. :-)
13582 sed -n '
13583 p
13584 /[$]LINENO/=
13585 ' <$as_myself |
13586 sed '
13587 s/[$]LINENO.*/&-/
13588 t lineno
13589 b
13590 :lineno
13591 N
13592 :loop
13593 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13594 t loop
13595 s/-\n.*//
13596 ' >$as_me.lineno &&
13597 chmod +x "$as_me.lineno" ||
13598 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13599 { (exit 1); exit 1; }; }
d9898ee8 13600
8d138742
CE
13601 # Don't try to exec as it changes $[0], causing all sort of problems
13602 # (the dirname of $[0] is not the place where we might find the
13603 # original and so on. Autoconf is especially sensitive to this).
13604 . "./$as_me.lineno"
13605 # Exit status is that of the last command.
13606 exit
13607}
dd184caf 13608
d9898ee8 13609
8d138742
CE
13610if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13611 as_dirname=dirname
d9898ee8 13612else
8d138742 13613 as_dirname=false
d9898ee8 13614fi
dd184caf 13615
8d138742
CE
13616ECHO_C= ECHO_N= ECHO_T=
13617case `echo -n x` in
13618-n*)
13619 case `echo 'x\c'` in
13620 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13621 *) ECHO_C='\c';;
13622 esac;;
13623*)
13624 ECHO_N='-n';;
d9898ee8 13625esac
8d138742
CE
13626if expr a : '\(a\)' >/dev/null 2>&1 &&
13627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13628 as_expr=expr
d9898ee8 13629else
8d138742 13630 as_expr=false
d9898ee8 13631fi
13632
8d138742
CE
13633rm -f conf$$ conf$$.exe conf$$.file
13634if test -d conf$$.dir; then
13635 rm -f conf$$.dir/conf$$.file
d9898ee8 13636else
8d138742
CE
13637 rm -f conf$$.dir
13638 mkdir conf$$.dir 2>/dev/null
13639fi
13640if (echo >conf$$.file) 2>/dev/null; then
13641 if ln -s conf$$.file conf$$ 2>/dev/null; then
13642 as_ln_s='ln -s'
13643 # ... but there are two gotchas:
13644 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13645 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13646 # In both cases, we have to default to `cp -p'.
13647 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13648 as_ln_s='cp -p'
13649 elif ln conf$$.file conf$$ 2>/dev/null; then
13650 as_ln_s=ln
13651 else
13652 as_ln_s='cp -p'
13653 fi
d9898ee8 13654else
8d138742 13655 as_ln_s='cp -p'
d9898ee8 13656fi
8d138742
CE
13657rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13658rmdir conf$$.dir 2>/dev/null
dd184caf 13659
8d138742
CE
13660if mkdir -p . 2>/dev/null; then
13661 as_mkdir_p=:
d9898ee8 13662else
8d138742
CE
13663 test -d ./-p && rmdir ./-p
13664 as_mkdir_p=false
d9898ee8 13665fi
dd184caf 13666
8d138742
CE
13667if test -x / >/dev/null 2>&1; then
13668 as_test_x='test -x'
d9898ee8 13669else
8d138742
CE
13670 if ls -dL / >/dev/null 2>&1; then
13671 as_ls_L_option=L
13672 else
13673 as_ls_L_option=
13674 fi
13675 as_test_x='
13676 eval sh -c '\''
13677 if test -d "$1"; then
13678 test -d "$1/.";
13679 else
13680 case $1 in
13681 -*)set "./$1";;
13682 esac;
13683 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13684 ???[sx]*):;;*)false;;esac;fi
13685 '\'' sh
13686 '
d9898ee8 13687fi
8d138742 13688as_executable_p=$as_test_x
d9898ee8 13689
8d138742
CE
13690# Sed expression to map a string onto a valid CPP name.
13691as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 13692
8d138742
CE
13693# Sed expression to map a string onto a valid variable name.
13694as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
d9898ee8 13695
13696
8d138742 13697exec 6>&1
d9898ee8 13698
8d138742
CE
13699# Save the log message, to keep $[0] and so on meaningful, and to
13700# report actual input values of CONFIG_FILES etc. instead of their
13701# values after options handling.
13702ac_log="
13703This file was extended by libltdl $as_me 2.2.6, which was
13704generated by GNU Autoconf 2.63. Invocation command line was
13705
13706 CONFIG_FILES = $CONFIG_FILES
13707 CONFIG_HEADERS = $CONFIG_HEADERS
13708 CONFIG_LINKS = $CONFIG_LINKS
13709 CONFIG_COMMANDS = $CONFIG_COMMANDS
13710 $ $0 $@
13711
13712on `(hostname || uname -n) 2>/dev/null | sed 1q`
13713"
d9898ee8 13714
d9898ee8 13715_ACEOF
d9898ee8 13716
8d138742
CE
13717case $ac_config_files in *"
13718"*) set x $ac_config_files; shift; ac_config_files=$*;;
13719esac
d9898ee8 13720
8d138742
CE
13721case $ac_config_headers in *"
13722"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13723esac
d9898ee8 13724
d9898ee8 13725
8d138742
CE
13726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13727# Files that config.status was made for.
13728config_files="$ac_config_files"
13729config_headers="$ac_config_headers"
13730config_commands="$ac_config_commands"
d9898ee8 13731
d9898ee8 13732_ACEOF
d9898ee8 13733
8d138742
CE
13734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13735ac_cs_usage="\
13736\`$as_me' instantiates files from templates according to the
13737current configuration.
13738
13739Usage: $0 [OPTION]... [FILE]...
13740
13741 -h, --help print this help, then exit
13742 -V, --version print version number and configuration settings, then exit
13743 -q, --quiet, --silent
13744 do not print progress messages
13745 -d, --debug don't remove temporary files
13746 --recheck update $as_me by reconfiguring in the same conditions
13747 --file=FILE[:TEMPLATE]
13748 instantiate the configuration file FILE
13749 --header=FILE[:TEMPLATE]
13750 instantiate the configuration header FILE
13751
13752Configuration files:
13753$config_files
13754
13755Configuration headers:
13756$config_headers
13757
13758Configuration commands:
13759$config_commands
13760
13761Report bugs to <bug-autoconf@gnu.org>."
dd184caf 13762
d9898ee8 13763_ACEOF
8d138742
CE
13764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13765ac_cs_version="\\
13766libltdl config.status 2.2.6
13767configured by $0, generated by GNU Autoconf 2.63,
13768 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
d9898ee8 13769
8d138742
CE
13770Copyright (C) 2008 Free Software Foundation, Inc.
13771This config.status script is free software; the Free Software Foundation
13772gives unlimited permission to copy, distribute and modify it."
d9898ee8 13773
8d138742
CE
13774ac_pwd='$ac_pwd'
13775srcdir='$srcdir'
13776INSTALL='$INSTALL'
13777MKDIR_P='$MKDIR_P'
13778AWK='$AWK'
13779test -n "\$AWK" || AWK=awk
13780_ACEOF
d9898ee8 13781
8d138742
CE
13782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13783# The default lists apply if the user does not specify any file.
13784ac_need_defaults=:
13785while test $# != 0
d9898ee8 13786do
8d138742
CE
13787 case $1 in
13788 --*=*)
13789 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13790 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13791 ac_shift=:
13792 ;;
13793 *)
13794 ac_option=$1
13795 ac_optarg=$2
13796 ac_shift=shift
13797 ;;
13798 esac
d9898ee8 13799
8d138742
CE
13800 case $ac_option in
13801 # Handling of the options.
13802 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13803 ac_cs_recheck=: ;;
13804 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13805 $as_echo "$ac_cs_version"; exit ;;
13806 --debug | --debu | --deb | --de | --d | -d )
13807 debug=: ;;
13808 --file | --fil | --fi | --f )
13809 $ac_shift
13810 case $ac_optarg in
13811 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13812 esac
13813 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13814 ac_need_defaults=false;;
13815 --header | --heade | --head | --hea )
13816 $ac_shift
13817 case $ac_optarg in
13818 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13819 esac
13820 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13821 ac_need_defaults=false;;
13822 --he | --h)
13823 # Conflict between --help and --header
13824 { $as_echo "$as_me: error: ambiguous option: $1
13825Try \`$0 --help' for more information." >&2
13826 { (exit 1); exit 1; }; };;
13827 --help | --hel | -h )
13828 $as_echo "$ac_cs_usage"; exit ;;
13829 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13830 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13831 ac_cs_silent=: ;;
d9898ee8 13832
8d138742
CE
13833 # This is an error.
13834 -*) { $as_echo "$as_me: error: unrecognized option: $1
13835Try \`$0 --help' for more information." >&2
13836 { (exit 1); exit 1; }; } ;;
d9898ee8 13837
8d138742
CE
13838 *) ac_config_targets="$ac_config_targets $1"
13839 ac_need_defaults=false ;;
d9898ee8 13840
8d138742
CE
13841 esac
13842 shift
13843done
d9898ee8 13844
8d138742 13845ac_configure_extra_args=
d9898ee8 13846
8d138742
CE
13847if $ac_cs_silent; then
13848 exec 6>/dev/null
13849 ac_configure_extra_args="$ac_configure_extra_args --silent"
d9898ee8 13850fi
dd184caf 13851
d9898ee8 13852_ACEOF
8d138742
CE
13853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13854if \$ac_cs_recheck; then
13855 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13856 shift
13857 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13858 CONFIG_SHELL='$SHELL'
13859 export CONFIG_SHELL
13860 exec "\$@"
d9898ee8 13861fi
d9898ee8 13862
8d138742
CE
13863_ACEOF
13864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13865exec 5>>config.log
13866{
13867 echo
13868 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13869## Running $as_me. ##
13870_ASBOX
13871 $as_echo "$ac_log"
13872} >&5
d9898ee8 13873
d9898ee8 13874_ACEOF
8d138742
CE
13875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13876#
13877# INIT-COMMANDS
13878#
13879AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d9898ee8 13880
d9898ee8 13881
8d138742
CE
13882# The HP-UX ksh and POSIX shell print the target directory to stdout
13883# if CDPATH is set.
13884(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
d9898ee8 13885
8d138742
CE
13886sed_quote_subst='$sed_quote_subst'
13887double_quote_subst='$double_quote_subst'
13888delay_variable_subst='$delay_variable_subst'
13889macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13890macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13891AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
13892DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13893OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13894enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13895enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13896pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13897enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13898host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13899host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13900host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13901build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13902build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13903build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13904SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13905Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13906GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13907EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13908FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13909LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13910NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13911LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13912max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13913ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13914exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13915lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13916lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13917lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13918reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13919reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13920deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13921file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13922AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13923AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13924STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13925RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13926old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13927old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13928old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13929CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13930CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13931compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13932GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13933lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13934lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13935lt_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"`'
13936lt_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"`'
13937objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13938SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13939ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13940MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13941lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13942lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13943lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13944lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13945lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13946need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13947DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13948NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13949LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13950OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13951OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13952libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13953shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13954extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13955archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13956enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13957export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13958whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13959compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13960old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13961old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13962archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13963archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13964module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13965module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13966with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13967allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13968no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13969hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13970hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13971hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13972hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13973hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13974hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13975hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13976hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13977inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13978link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13979fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13980always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13981export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13982exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13983include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13984prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13985file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13986variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13987need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13988need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13989version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13990runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13991shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13992shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13993libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13994library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13995soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13996postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13997postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13998finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13999finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14000hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14001sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14002sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14003hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14004enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14005enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14006enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14007old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14008striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14009
14010LTCC='$LTCC'
14011LTCFLAGS='$LTCFLAGS'
14012compiler='$compiler_DEFAULT'
14013
14014# Quote evaled strings.
14015for var in SED \
14016GREP \
14017EGREP \
14018FGREP \
14019LD \
14020NM \
14021LN_S \
14022lt_SP2NL \
14023lt_NL2SP \
14024reload_flag \
14025deplibs_check_method \
14026file_magic_cmd \
14027AR \
14028AR_FLAGS \
14029STRIP \
14030RANLIB \
14031CC \
14032CFLAGS \
14033compiler \
14034lt_cv_sys_global_symbol_pipe \
14035lt_cv_sys_global_symbol_to_cdecl \
14036lt_cv_sys_global_symbol_to_c_name_address \
14037lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14038SHELL \
14039ECHO \
14040lt_prog_compiler_no_builtin_flag \
14041lt_prog_compiler_wl \
14042lt_prog_compiler_pic \
14043lt_prog_compiler_static \
14044lt_cv_prog_compiler_c_o \
14045need_locks \
14046DSYMUTIL \
14047NMEDIT \
14048LIPO \
14049OTOOL \
14050OTOOL64 \
14051shrext_cmds \
14052export_dynamic_flag_spec \
14053whole_archive_flag_spec \
14054compiler_needs_object \
14055with_gnu_ld \
14056allow_undefined_flag \
14057no_undefined_flag \
14058hardcode_libdir_flag_spec \
14059hardcode_libdir_flag_spec_ld \
14060hardcode_libdir_separator \
14061fix_srcfile_path \
14062exclude_expsyms \
14063include_expsyms \
14064file_list_spec \
14065variables_saved_for_relink \
14066libname_spec \
14067library_names_spec \
14068soname_spec \
14069finish_eval \
14070old_striplib \
14071striplib; do
14072 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14073 *[\\\\\\\`\\"\\\$]*)
14074 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14075 ;;
14076 *)
14077 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14078 ;;
14079 esac
14080done
d9898ee8 14081
8d138742
CE
14082# Double-quote double-evaled strings.
14083for var in reload_cmds \
14084old_postinstall_cmds \
14085old_postuninstall_cmds \
14086old_archive_cmds \
14087extract_expsyms_cmds \
14088old_archive_from_new_cmds \
14089old_archive_from_expsyms_cmds \
14090archive_cmds \
14091archive_expsym_cmds \
14092module_cmds \
14093module_expsym_cmds \
14094export_symbols_cmds \
14095prelink_cmds \
14096postinstall_cmds \
14097postuninstall_cmds \
14098finish_cmds \
14099sys_lib_search_path_spec \
14100sys_lib_dlsearch_path_spec; do
14101 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14102 *[\\\\\\\`\\"\\\$]*)
14103 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14104 ;;
14105 *)
14106 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14107 ;;
14108 esac
14109done
d9898ee8 14110
8d138742
CE
14111# Fix-up fallback echo if it was mangled by the above quoting rules.
14112case \$lt_ECHO in
14113*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14114 ;;
dd184caf 14115esac
d9898ee8 14116
8d138742
CE
14117ac_aux_dir='$ac_aux_dir'
14118xsi_shell='$xsi_shell'
14119lt_shell_append='$lt_shell_append'
dd184caf 14120
8d138742
CE
14121# See if we are running on zsh, and set the options which allow our
14122# commands through without removal of \ escapes INIT.
14123if test -n "\${ZSH_VERSION+set}" ; then
14124 setopt NO_GLOB_SUBST
d9898ee8 14125fi
8d138742
CE
14126
14127
14128 PACKAGE='$PACKAGE'
14129 VERSION='$VERSION'
14130 TIMESTAMP='$TIMESTAMP'
14131 RM='$RM'
14132 ofile='$ofile'
14133
14134
14135
14136
d9898ee8 14137_ACEOF
8d138742
CE
14138
14139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14140
14141# Handling of arguments.
14142for ac_config_target in $ac_config_targets
14143do
14144 case $ac_config_target in
14145 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
14146 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14147 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14148 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14149
14150 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14151$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14152 { (exit 1); exit 1; }; };;
14153 esac
d9898ee8 14154done
14155
14156
8d138742
CE
14157# If the user did not use the arguments to specify the items to instantiate,
14158# then the envvar interface is used. Set only those that are not.
14159# We use the long form for the default assignment because of an extremely
14160# bizarre bug on SunOS 4.1.3.
14161if $ac_need_defaults; then
14162 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14163 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14164 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14165fi
14166
14167# Have a temporary directory for convenience. Make it in the build tree
14168# simply because there is no reason against having it here, and in addition,
14169# creating and moving files from /tmp can sometimes cause problems.
14170# Hook for its removal unless debugging.
14171# Note that there is a small window in which the directory will not be cleaned:
14172# after its creation but before its name has been assigned to `$tmp'.
14173$debug ||
14174{
14175 tmp=
14176 trap 'exit_status=$?
14177 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14178' 0
14179 trap '{ (exit 1); exit 1; }' 1 2 13 15
14180}
14181# Create a (secure) tmp directory for tmp files.
14182
14183{
14184 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14185 test -n "$tmp" && test -d "$tmp"
14186} ||
14187{
14188 tmp=./conf$$-$RANDOM
14189 (umask 077 && mkdir "$tmp")
14190} ||
14191{
14192 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14193 { (exit 1); exit 1; }
14194}
d9898ee8 14195
8d138742
CE
14196# Set up the scripts for CONFIG_FILES section.
14197# No need to generate them if there are no CONFIG_FILES.
14198# This happens for instance with `./config.status config.h'.
14199if test -n "$CONFIG_FILES"; then
14200
14201
14202ac_cr='\r'
14203ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14204if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14205 ac_cs_awk_cr='\\r'
d9898ee8 14206else
8d138742
CE
14207 ac_cs_awk_cr=$ac_cr
14208fi
d9898ee8 14209
8d138742
CE
14210echo 'BEGIN {' >"$tmp/subs1.awk" &&
14211_ACEOF
d9898ee8 14212
d9898ee8 14213
8d138742
CE
14214{
14215 echo "cat >conf$$subs.awk <<_ACEOF" &&
14216 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14217 echo "_ACEOF"
14218} >conf$$subs.sh ||
14219 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14220$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14221 { (exit 1); exit 1; }; }
14222ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14223ac_delim='%!_!# '
14224for ac_last_try in false false false false false :; do
14225 . ./conf$$subs.sh ||
14226 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14227$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14228 { (exit 1); exit 1; }; }
d9898ee8 14229
8d138742
CE
14230 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14231 if test $ac_delim_n = $ac_delim_num; then
14232 break
14233 elif $ac_last_try; then
14234 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14235$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14236 { (exit 1); exit 1; }; }
14237 else
14238 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14239 fi
14240done
14241rm -f conf$$subs.sh
14242
14243cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14244cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14245_ACEOF
14246sed -n '
14247h
14248s/^/S["/; s/!.*/"]=/
14249p
14250g
14251s/^[^!]*!//
14252:repl
14253t repl
14254s/'"$ac_delim"'$//
14255t delim
14256:nl
14257h
14258s/\(.\{148\}\).*/\1/
14259t more1
14260s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14261p
14262n
14263b repl
14264:more1
14265s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14266p
14267g
14268s/.\{148\}//
14269t nl
14270:delim
14271h
14272s/\(.\{148\}\).*/\1/
14273t more2
14274s/["\\]/\\&/g; s/^/"/; s/$/"/
14275p
14276b
14277:more2
14278s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14279p
14280g
14281s/.\{148\}//
14282t delim
14283' <conf$$subs.awk | sed '
14284/^[^""]/{
14285 N
14286 s/\n//
14287}
14288' >>$CONFIG_STATUS || ac_write_fail=1
14289rm -f conf$$subs.awk
14290cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14291_ACAWK
14292cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14293 for (key in S) S_is_set[key] = 1
14294 FS = "\a"
d9898ee8 14295
8d138742 14296}
d9898ee8 14297{
8d138742
CE
14298 line = $ 0
14299 nfields = split(line, field, "@")
14300 substed = 0
14301 len = length(field[1])
14302 for (i = 2; i < nfields; i++) {
14303 key = field[i]
14304 keylen = length(key)
14305 if (S_is_set[key]) {
14306 value = S[key]
14307 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14308 len += length(value) + length(field[++i])
14309 substed = 1
14310 } else
14311 len += 1 + keylen
14312 }
14313
14314 print line
d9898ee8 14315}
8d138742
CE
14316
14317_ACAWK
d9898ee8 14318_ACEOF
8d138742
CE
14319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14320if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14321 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
d9898ee8 14322else
8d138742
CE
14323 cat
14324fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14325 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14326$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14327 { (exit 1); exit 1; }; }
14328_ACEOF
d9898ee8 14329
8d138742
CE
14330# VPATH may cause trouble with some makes, so we remove $(srcdir),
14331# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14332# trailing colons and then remove the whole line if VPATH becomes empty
14333# (actually we leave an empty line to preserve line numbers).
14334if test "x$srcdir" = x.; then
14335 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14336s/:*\$(srcdir):*/:/
14337s/:*\${srcdir}:*/:/
14338s/:*@srcdir@:*/:/
14339s/^\([^=]*=[ ]*\):*/\1/
14340s/:*$//
14341s/^[^=]*=[ ]*$//
14342}'
d9898ee8 14343fi
dd184caf 14344
8d138742
CE
14345cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14346fi # test -n "$CONFIG_FILES"
14347
14348# Set up the scripts for CONFIG_HEADERS section.
14349# No need to generate them if there are no CONFIG_HEADERS.
14350# This happens for instance with `./config.status Makefile'.
14351if test -n "$CONFIG_HEADERS"; then
14352cat >"$tmp/defines.awk" <<\_ACAWK ||
14353BEGIN {
d9898ee8 14354_ACEOF
14355
8d138742
CE
14356# Transform confdefs.h into an awk script `defines.awk', embedded as
14357# here-document in config.status, that substitutes the proper values into
14358# config.h.in to produce config.h.
14359
14360# Create a delimiter string that does not exist in confdefs.h, to ease
14361# handling of long lines.
14362ac_delim='%!_!# '
14363for ac_last_try in false false :; do
14364 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14365 if test -z "$ac_t"; then
14366 break
14367 elif $ac_last_try; then
14368 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14369$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14370 { (exit 1); exit 1; }; }
14371 else
14372 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14373 fi
d9898ee8 14374done
14375
8d138742
CE
14376# For the awk script, D is an array of macro values keyed by name,
14377# likewise P contains macro parameters if any. Preserve backslash
14378# newline sequences.
d9898ee8 14379
8d138742
CE
14380ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14381sed -n '
14382s/.\{148\}/&'"$ac_delim"'/g
14383t rset
14384:rset
14385s/^[ ]*#[ ]*define[ ][ ]*/ /
14386t def
14387d
14388:def
14389s/\\$//
14390t bsnl
14391s/["\\]/\\&/g
14392s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14393D["\1"]=" \3"/p
14394s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14395d
14396:bsnl
14397s/["\\]/\\&/g
14398s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14399D["\1"]=" \3\\\\\\n"\\/p
14400t cont
14401s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14402t cont
14403d
14404:cont
14405n
14406s/.\{148\}/&'"$ac_delim"'/g
14407t clear
14408:clear
14409s/\\$//
14410t bsnlc
14411s/["\\]/\\&/g; s/^/"/; s/$/"/p
14412d
14413:bsnlc
14414s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14415b cont
14416' <confdefs.h | sed '
14417s/'"$ac_delim"'/"\\\
14418"/g' >>$CONFIG_STATUS || ac_write_fail=1
14419
14420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14421 for (key in D) D_is_set[key] = 1
14422 FS = "\a"
14423}
14424/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14425 line = \$ 0
14426 split(line, arg, " ")
14427 if (arg[1] == "#") {
14428 defundef = arg[2]
14429 mac1 = arg[3]
14430 } else {
14431 defundef = substr(arg[1], 2)
14432 mac1 = arg[2]
14433 }
14434 split(mac1, mac2, "(") #)
14435 macro = mac2[1]
14436 prefix = substr(line, 1, index(line, defundef) - 1)
14437 if (D_is_set[macro]) {
14438 # Preserve the white space surrounding the "#".
14439 print prefix "define", macro P[macro] D[macro]
14440 next
14441 } else {
14442 # Replace #undef with comments. This is necessary, for example,
14443 # in the case of _POSIX_SOURCE, which is predefined and required
14444 # on some systems where configure will not decide to define it.
14445 if (defundef == "undef") {
14446 print "/*", prefix defundef, macro, "*/"
14447 next
14448 }
14449 }
14450}
14451{ print }
14452_ACAWK
14453_ACEOF
14454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14455 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14456$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14457 { (exit 1); exit 1; }; }
14458fi # test -n "$CONFIG_HEADERS"
d9898ee8 14459
14460
8d138742
CE
14461eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14462shift
14463for ac_tag
d9898ee8 14464do
8d138742
CE
14465 case $ac_tag in
14466 :[FHLC]) ac_mode=$ac_tag; continue;;
14467 esac
14468 case $ac_mode$ac_tag in
14469 :[FHL]*:*);;
14470 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14471$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14472 { (exit 1); exit 1; }; };;
14473 :[FH]-) ac_tag=-:-;;
14474 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14475 esac
14476 ac_save_IFS=$IFS
14477 IFS=:
14478 set x $ac_tag
14479 IFS=$ac_save_IFS
14480 shift
14481 ac_file=$1
14482 shift
d9898ee8 14483
8d138742
CE
14484 case $ac_mode in
14485 :L) ac_source=$1;;
14486 :[FH])
14487 ac_file_inputs=
14488 for ac_f
14489 do
14490 case $ac_f in
14491 -) ac_f="$tmp/stdin";;
14492 *) # Look for the file first in the build tree, then in the source tree
14493 # (if the path is not absolute). The absolute path cannot be DOS-style,
14494 # because $ac_f cannot contain `:'.
14495 test -f "$ac_f" ||
14496 case $ac_f in
14497 [\\/$]*) false;;
14498 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14499 esac ||
14500 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14501$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14502 { (exit 1); exit 1; }; };;
14503 esac
14504 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14505 ac_file_inputs="$ac_file_inputs '$ac_f'"
14506 done
d9898ee8 14507
8d138742
CE
14508 # Let's still pretend it is `configure' which instantiates (i.e., don't
14509 # use $as_me), people would be surprised to read:
14510 # /* config.h. Generated by config.status. */
14511 configure_input='Generated from '`
14512 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14513 `' by configure.'
14514 if test x"$ac_file" != x-; then
14515 configure_input="$ac_file. $configure_input"
14516 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14517$as_echo "$as_me: creating $ac_file" >&6;}
14518 fi
14519 # Neutralize special characters interpreted by sed in replacement strings.
14520 case $configure_input in #(
14521 *\&* | *\|* | *\\* )
14522 ac_sed_conf_input=`$as_echo "$configure_input" |
14523 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14524 *) ac_sed_conf_input=$configure_input;;
14525 esac
d9898ee8 14526
8d138742
CE
14527 case $ac_tag in
14528 *:-:* | *:-) cat >"$tmp/stdin" \
14529 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14530$as_echo "$as_me: error: could not create $ac_file" >&2;}
14531 { (exit 1); exit 1; }; } ;;
14532 esac
14533 ;;
14534 esac
d9898ee8 14535
8d138742
CE
14536 ac_dir=`$as_dirname -- "$ac_file" ||
14537$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14538 X"$ac_file" : 'X\(//\)[^/]' \| \
14539 X"$ac_file" : 'X\(//\)$' \| \
14540 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14541$as_echo X"$ac_file" |
14542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14543 s//\1/
14544 q
14545 }
14546 /^X\(\/\/\)[^/].*/{
14547 s//\1/
14548 q
14549 }
14550 /^X\(\/\/\)$/{
14551 s//\1/
14552 q
14553 }
14554 /^X\(\/\).*/{
14555 s//\1/
14556 q
14557 }
14558 s/.*/./; q'`
14559 { as_dir="$ac_dir"
14560 case $as_dir in #(
14561 -*) as_dir=./$as_dir;;
14562 esac
14563 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14564 as_dirs=
14565 while :; do
14566 case $as_dir in #(
14567 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14568 *) as_qdir=$as_dir;;
14569 esac
14570 as_dirs="'$as_qdir' $as_dirs"
14571 as_dir=`$as_dirname -- "$as_dir" ||
14572$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14573 X"$as_dir" : 'X\(//\)[^/]' \| \
14574 X"$as_dir" : 'X\(//\)$' \| \
14575 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14576$as_echo X"$as_dir" |
14577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14578 s//\1/
14579 q
14580 }
14581 /^X\(\/\/\)[^/].*/{
14582 s//\1/
14583 q
14584 }
14585 /^X\(\/\/\)$/{
14586 s//\1/
14587 q
14588 }
14589 /^X\(\/\).*/{
14590 s//\1/
14591 q
14592 }
14593 s/.*/./; q'`
14594 test -d "$as_dir" && break
14595 done
14596 test -z "$as_dirs" || eval "mkdir $as_dirs"
14597 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14598$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14599 { (exit 1); exit 1; }; }; }
14600 ac_builddir=.
d9898ee8 14601
8d138742
CE
14602case "$ac_dir" in
14603.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14604*)
14605 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14606 # A ".." for each directory in $ac_dir_suffix.
14607 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14608 case $ac_top_builddir_sub in
14609 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14610 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14611 esac ;;
dd184caf 14612esac
8d138742
CE
14613ac_abs_top_builddir=$ac_pwd
14614ac_abs_builddir=$ac_pwd$ac_dir_suffix
14615# for backward compatibility:
14616ac_top_builddir=$ac_top_build_prefix
d9898ee8 14617
8d138742
CE
14618case $srcdir in
14619 .) # We are building in place.
14620 ac_srcdir=.
14621 ac_top_srcdir=$ac_top_builddir_sub
14622 ac_abs_top_srcdir=$ac_pwd ;;
14623 [\\/]* | ?:[\\/]* ) # Absolute name.
14624 ac_srcdir=$srcdir$ac_dir_suffix;
14625 ac_top_srcdir=$srcdir
14626 ac_abs_top_srcdir=$srcdir ;;
14627 *) # Relative name.
14628 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14629 ac_top_srcdir=$ac_top_build_prefix$srcdir
14630 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14631esac
14632ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14633
14634
14635 case $ac_mode in
14636 :F)
14637 #
14638 # CONFIG_FILE
14639 #
14640
14641 case $INSTALL in
14642 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14643 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14644 esac
14645 ac_MKDIR_P=$MKDIR_P
14646 case $MKDIR_P in
14647 [\\/$]* | ?:[\\/]* ) ;;
14648 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14649 esac
14650_ACEOF
14651
14652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14653# If the template does not know about datarootdir, expand it.
14654# FIXME: This hack should be removed a few years after 2.60.
14655ac_datarootdir_hack=; ac_datarootdir_seen=
14656
14657ac_sed_dataroot='
14658/datarootdir/ {
14659 p
14660 q
14661}
14662/@datadir@/p
14663/@docdir@/p
14664/@infodir@/p
14665/@localedir@/p
14666/@mandir@/p
14667'
14668case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14669*datarootdir*) ac_datarootdir_seen=yes;;
14670*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14671 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14672$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14673_ACEOF
14674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14675 ac_datarootdir_hack='
14676 s&@datadir@&$datadir&g
14677 s&@docdir@&$docdir&g
14678 s&@infodir@&$infodir&g
14679 s&@localedir@&$localedir&g
14680 s&@mandir@&$mandir&g
14681 s&\\\${datarootdir}&$datarootdir&g' ;;
14682esac
14683_ACEOF
dd184caf 14684
8d138742
CE
14685# Neutralize VPATH when `$srcdir' = `.'.
14686# Shell code in configure.ac might set extrasub.
14687# FIXME: do we really want to maintain this feature?
14688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14689ac_sed_extra="$ac_vpsub
14690$extrasub
d9898ee8 14691_ACEOF
8d138742
CE
14692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14693:t
14694/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14695s|@configure_input@|$ac_sed_conf_input|;t t
14696s&@top_builddir@&$ac_top_builddir_sub&;t t
14697s&@top_build_prefix@&$ac_top_build_prefix&;t t
14698s&@srcdir@&$ac_srcdir&;t t
14699s&@abs_srcdir@&$ac_abs_srcdir&;t t
14700s&@top_srcdir@&$ac_top_srcdir&;t t
14701s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14702s&@builddir@&$ac_builddir&;t t
14703s&@abs_builddir@&$ac_abs_builddir&;t t
14704s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14705s&@INSTALL@&$ac_INSTALL&;t t
14706s&@MKDIR_P@&$ac_MKDIR_P&;t t
14707$ac_datarootdir_hack
14708"
14709eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14710 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14711$as_echo "$as_me: error: could not create $ac_file" >&2;}
14712 { (exit 1); exit 1; }; }
d9898ee8 14713
8d138742
CE
14714test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14715 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14716 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14717 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14718which seems to be undefined. Please make sure it is defined." >&5
14719$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14720which seems to be undefined. Please make sure it is defined." >&2;}
14721
14722 rm -f "$tmp/stdin"
14723 case $ac_file in
14724 -) cat "$tmp/out" && rm -f "$tmp/out";;
14725 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14726 esac \
14727 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14728$as_echo "$as_me: error: could not create $ac_file" >&2;}
14729 { (exit 1); exit 1; }; }
14730 ;;
14731 :H)
14732 #
14733 # CONFIG_HEADER
14734 #
14735 if test x"$ac_file" != x-; then
14736 {
14737 $as_echo "/* $configure_input */" \
14738 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14739 } >"$tmp/config.h" \
14740 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14741$as_echo "$as_me: error: could not create $ac_file" >&2;}
14742 { (exit 1); exit 1; }; }
14743 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14744 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14745$as_echo "$as_me: $ac_file is unchanged" >&6;}
14746 else
14747 rm -f "$ac_file"
14748 mv "$tmp/config.h" "$ac_file" \
14749 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14750$as_echo "$as_me: error: could not create $ac_file" >&2;}
14751 { (exit 1); exit 1; }; }
14752 fi
14753 else
14754 $as_echo "/* $configure_input */" \
14755 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14756 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14757$as_echo "$as_me: error: could not create -" >&2;}
14758 { (exit 1); exit 1; }; }
14759 fi
14760# Compute "$ac_file"'s index in $config_headers.
14761_am_arg="$ac_file"
14762_am_stamp_count=1
14763for _am_header in $config_headers :; do
14764 case $_am_header in
14765 $_am_arg | $_am_arg:* )
14766 break ;;
14767 * )
14768 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14769 esac
d9898ee8 14770done
8d138742
CE
14771echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14772$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14773 X"$_am_arg" : 'X\(//\)[^/]' \| \
14774 X"$_am_arg" : 'X\(//\)$' \| \
14775 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14776$as_echo X"$_am_arg" |
14777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14778 s//\1/
14779 q
14780 }
14781 /^X\(\/\/\)[^/].*/{
14782 s//\1/
14783 q
14784 }
14785 /^X\(\/\/\)$/{
14786 s//\1/
14787 q
14788 }
14789 /^X\(\/\).*/{
14790 s//\1/
14791 q
14792 }
14793 s/.*/./; q'`/stamp-h$_am_stamp_count
14794 ;;
14795
14796 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14797$as_echo "$as_me: executing $ac_file commands" >&6;}
14798 ;;
14799 esac
14800
d9898ee8 14801
8d138742
CE
14802 case $ac_file$ac_mode in
14803 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14804 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14805 # are listed without --file. Let's play safe and only enable the eval
14806 # if we detect the quoting.
14807 case $CONFIG_FILES in
14808 *\'*) eval set x "$CONFIG_FILES" ;;
14809 *) set x $CONFIG_FILES ;;
14810 esac
14811 shift
14812 for mf
14813 do
14814 # Strip MF so we end up with the name of the file.
14815 mf=`echo "$mf" | sed -e 's/:.*$//'`
14816 # Check whether this is an Automake generated Makefile or not.
14817 # We used to match only the files named `Makefile.in', but
14818 # some people rename them; so instead we look at the file content.
14819 # Grep'ing the first line is not enough: some people post-process
14820 # each Makefile.in and add a new line on top of each file to say so.
14821 # Grep'ing the whole file is not good either: AIX grep has a line
14822 # limit of 2048, but all sed's we know have understand at least 4000.
14823 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14824 dirpart=`$as_dirname -- "$mf" ||
14825$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14826 X"$mf" : 'X\(//\)[^/]' \| \
14827 X"$mf" : 'X\(//\)$' \| \
14828 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14829$as_echo X"$mf" |
14830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14831 s//\1/
14832 q
14833 }
14834 /^X\(\/\/\)[^/].*/{
14835 s//\1/
14836 q
14837 }
14838 /^X\(\/\/\)$/{
14839 s//\1/
14840 q
14841 }
14842 /^X\(\/\).*/{
14843 s//\1/
14844 q
14845 }
14846 s/.*/./; q'`
14847 else
14848 continue
14849 fi
14850 # Extract the definition of DEPDIR, am__include, and am__quote
14851 # from the Makefile without running `make'.
14852 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14853 test -z "$DEPDIR" && continue
14854 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14855 test -z "am__include" && continue
14856 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14857 # When using ansi2knr, U may be empty or an underscore; expand it
14858 U=`sed -n 's/^U = //p' < "$mf"`
14859 # Find all dependency output files, they are included files with
14860 # $(DEPDIR) in their names. We invoke sed twice because it is the
14861 # simplest approach to changing $(DEPDIR) to its actual value in the
14862 # expansion.
14863 for file in `sed -n "
14864 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14865 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14866 # Make sure the directory exists.
14867 test -f "$dirpart/$file" && continue
14868 fdir=`$as_dirname -- "$file" ||
14869$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14870 X"$file" : 'X\(//\)[^/]' \| \
14871 X"$file" : 'X\(//\)$' \| \
14872 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14873$as_echo X"$file" |
14874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14875 s//\1/
14876 q
14877 }
14878 /^X\(\/\/\)[^/].*/{
14879 s//\1/
14880 q
14881 }
14882 /^X\(\/\/\)$/{
14883 s//\1/
14884 q
14885 }
14886 /^X\(\/\).*/{
14887 s//\1/
14888 q
14889 }
14890 s/.*/./; q'`
14891 { as_dir=$dirpart/$fdir
14892 case $as_dir in #(
14893 -*) as_dir=./$as_dir;;
14894 esac
14895 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14896 as_dirs=
14897 while :; do
14898 case $as_dir in #(
14899 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14900 *) as_qdir=$as_dir;;
14901 esac
14902 as_dirs="'$as_qdir' $as_dirs"
14903 as_dir=`$as_dirname -- "$as_dir" ||
14904$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14905 X"$as_dir" : 'X\(//\)[^/]' \| \
14906 X"$as_dir" : 'X\(//\)$' \| \
14907 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14908$as_echo X"$as_dir" |
14909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14910 s//\1/
14911 q
14912 }
14913 /^X\(\/\/\)[^/].*/{
14914 s//\1/
14915 q
14916 }
14917 /^X\(\/\/\)$/{
14918 s//\1/
14919 q
14920 }
14921 /^X\(\/\).*/{
14922 s//\1/
14923 q
14924 }
14925 s/.*/./; q'`
14926 test -d "$as_dir" && break
14927 done
14928 test -z "$as_dirs" || eval "mkdir $as_dirs"
14929 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14930$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14931 { (exit 1); exit 1; }; }; }
14932 # echo "creating $dirpart/$file"
14933 echo '# dummy' > "$dirpart/$file"
14934 done
14935 done
14936}
14937 ;;
14938 "libtool":C)
d9898ee8 14939
8d138742
CE
14940 # See if we are running on zsh, and set the options which allow our
14941 # commands through without removal of \ escapes.
14942 if test -n "${ZSH_VERSION+set}" ; then
14943 setopt NO_GLOB_SUBST
14944 fi
d9898ee8 14945
8d138742
CE
14946 cfgfile="${ofile}T"
14947 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14948 $RM "$cfgfile"
d9898ee8 14949
8d138742
CE
14950 cat <<_LT_EOF >> "$cfgfile"
14951#! $SHELL
d9898ee8 14952
8d138742
CE
14953# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14954# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14955# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14956# NOTE: Changes made to this file will be lost: look at ltmain.sh.
d9898ee8 14957#
8d138742
CE
14958# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14959# 2006, 2007, 2008 Free Software Foundation, Inc.
14960# Written by Gordon Matzigkeit, 1996
d9898ee8 14961#
8d138742
CE
14962# This file is part of GNU Libtool.
14963#
14964# GNU Libtool is free software; you can redistribute it and/or
14965# modify it under the terms of the GNU General Public License as
14966# published by the Free Software Foundation; either version 2 of
14967# the License, or (at your option) any later version.
14968#
14969# As a special exception to the GNU General Public License,
14970# if you distribute this file as part of a program or library that
14971# is built using GNU Libtool, you may include this file under the
14972# same distribution terms that you use for the rest of that program.
14973#
14974# GNU Libtool is distributed in the hope that it will be useful,
14975# but WITHOUT ANY WARRANTY; without even the implied warranty of
14976# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14977# GNU General Public License for more details.
14978#
14979# You should have received a copy of the GNU General Public License
14980# along with GNU Libtool; see the file COPYING. If not, a copy
14981# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14982# obtained by writing to the Free Software Foundation, Inc.,
14983# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d9898ee8 14984
d9898ee8 14985
8d138742
CE
14986# The names of the tagged configurations supported by this script.
14987available_tags=""
dd184caf 14988
8d138742 14989# ### BEGIN LIBTOOL CONFIG
d9898ee8 14990
8d138742
CE
14991# Which release of libtool.m4 was used?
14992macro_version=$macro_version
14993macro_revision=$macro_revision
d9898ee8 14994
8d138742
CE
14995# Assembler program.
14996AS=$AS
14997
14998# DLL creation program.
14999DLLTOOL=$DLLTOOL
d9898ee8 15000
8d138742
CE
15001# Object dumper program.
15002OBJDUMP=$OBJDUMP
d9898ee8 15003
8d138742
CE
15004# Whether or not to build shared libraries.
15005build_libtool_libs=$enable_shared
d9898ee8 15006
8d138742
CE
15007# Whether or not to build static libraries.
15008build_old_libs=$enable_static
d9898ee8 15009
8d138742
CE
15010# What type of objects to build.
15011pic_mode=$pic_mode
d9898ee8 15012
8d138742
CE
15013# Whether or not to optimize for fast installation.
15014fast_install=$enable_fast_install
d9898ee8 15015
8d138742
CE
15016# The host system.
15017host_alias=$host_alias
15018host=$host
15019host_os=$host_os
d9898ee8 15020
8d138742
CE
15021# The build system.
15022build_alias=$build_alias
15023build=$build
15024build_os=$build_os
d9898ee8 15025
8d138742
CE
15026# A sed program that does not truncate output.
15027SED=$lt_SED
dd184caf 15028
8d138742
CE
15029# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15030Xsed="\$SED -e 1s/^X//"
dd184caf 15031
8d138742
CE
15032# A grep program that handles long lines.
15033GREP=$lt_GREP
dd184caf 15034
8d138742
CE
15035# An ERE matcher.
15036EGREP=$lt_EGREP
dd184caf 15037
8d138742
CE
15038# A literal string matcher.
15039FGREP=$lt_FGREP
dd184caf 15040
8d138742
CE
15041# A BSD- or MS-compatible name lister.
15042NM=$lt_NM
dd184caf 15043
8d138742
CE
15044# Whether we need soft or hard links.
15045LN_S=$lt_LN_S
d9898ee8 15046
8d138742
CE
15047# What is the maximum length of a command?
15048max_cmd_len=$max_cmd_len
d9898ee8 15049
8d138742
CE
15050# Object file suffix (normally "o").
15051objext=$ac_objext
d9898ee8 15052
8d138742
CE
15053# Executable file suffix (normally "").
15054exeext=$exeext
d9898ee8 15055
8d138742
CE
15056# whether the shell understands "unset".
15057lt_unset=$lt_unset
dd184caf 15058
8d138742
CE
15059# turn spaces into newlines.
15060SP2NL=$lt_lt_SP2NL
dd184caf 15061
8d138742
CE
15062# turn newlines into spaces.
15063NL2SP=$lt_lt_NL2SP
dd184caf 15064
8d138742
CE
15065# How to create reloadable object files.
15066reload_flag=$lt_reload_flag
15067reload_cmds=$lt_reload_cmds
d9898ee8 15068
8d138742
CE
15069# Method to check whether dependent libraries are shared objects.
15070deplibs_check_method=$lt_deplibs_check_method
d9898ee8 15071
8d138742
CE
15072# Command to use when deplibs_check_method == "file_magic".
15073file_magic_cmd=$lt_file_magic_cmd
d9898ee8 15074
8d138742
CE
15075# The archiver.
15076AR=$lt_AR
15077AR_FLAGS=$lt_AR_FLAGS
d9898ee8 15078
8d138742
CE
15079# A symbol stripping program.
15080STRIP=$lt_STRIP
d9898ee8 15081
8d138742
CE
15082# Commands used to install an old-style archive.
15083RANLIB=$lt_RANLIB
15084old_postinstall_cmds=$lt_old_postinstall_cmds
15085old_postuninstall_cmds=$lt_old_postuninstall_cmds
d9898ee8 15086
8d138742
CE
15087# A C compiler.
15088LTCC=$lt_CC
d9898ee8 15089
8d138742
CE
15090# LTCC compiler flags.
15091LTCFLAGS=$lt_CFLAGS
d9898ee8 15092
8d138742
CE
15093# Take the output of nm and produce a listing of raw symbols and C names.
15094global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
d9898ee8 15095
8d138742
CE
15096# Transform the output of nm in a proper C declaration.
15097global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
d9898ee8 15098
8d138742
CE
15099# Transform the output of nm in a C name address pair.
15100global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
d9898ee8 15101
8d138742
CE
15102# Transform the output of nm in a C name address pair when lib prefix is needed.
15103global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
d9898ee8 15104
8d138742
CE
15105# The name of the directory that contains temporary libtool files.
15106objdir=$objdir
dd184caf 15107
8d138742
CE
15108# Shell to use when invoking shell scripts.
15109SHELL=$lt_SHELL
d9898ee8 15110
8d138742
CE
15111# An echo program that does not interpret backslashes.
15112ECHO=$lt_ECHO
d9898ee8 15113
8d138742
CE
15114# Used to examine libraries when file_magic_cmd begins with "file".
15115MAGIC_CMD=$MAGIC_CMD
d9898ee8 15116
8d138742
CE
15117# Must we lock files when doing compilation?
15118need_locks=$lt_need_locks
d9898ee8 15119
8d138742
CE
15120# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15121DSYMUTIL=$lt_DSYMUTIL
d9898ee8 15122
8d138742
CE
15123# Tool to change global to local symbols on Mac OS X.
15124NMEDIT=$lt_NMEDIT
d9898ee8 15125
8d138742
CE
15126# Tool to manipulate fat objects and archives on Mac OS X.
15127LIPO=$lt_LIPO
d9898ee8 15128
8d138742
CE
15129# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15130OTOOL=$lt_OTOOL
d9898ee8 15131
8d138742
CE
15132# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15133OTOOL64=$lt_OTOOL64
d9898ee8 15134
8d138742
CE
15135# Old archive suffix (normally "a").
15136libext=$libext
d9898ee8 15137
8d138742
CE
15138# Shared library suffix (normally ".so").
15139shrext_cmds=$lt_shrext_cmds
d9898ee8 15140
8d138742
CE
15141# The commands to extract the exported symbol list from a shared archive.
15142extract_expsyms_cmds=$lt_extract_expsyms_cmds
dd184caf 15143
8d138742
CE
15144# Variables whose values should be saved in libtool wrapper scripts and
15145# restored at link time.
15146variables_saved_for_relink=$lt_variables_saved_for_relink
d9898ee8 15147
8d138742
CE
15148# Do we need the "lib" prefix for modules?
15149need_lib_prefix=$need_lib_prefix
d9898ee8 15150
8d138742
CE
15151# Do we need a version for libraries?
15152need_version=$need_version
d9898ee8 15153
8d138742
CE
15154# Library versioning type.
15155version_type=$version_type
d9898ee8 15156
8d138742
CE
15157# Shared library runtime path variable.
15158runpath_var=$runpath_var
d9898ee8 15159
8d138742
CE
15160# Shared library path variable.
15161shlibpath_var=$shlibpath_var
d9898ee8 15162
8d138742
CE
15163# Is shlibpath searched before the hard-coded library search path?
15164shlibpath_overrides_runpath=$shlibpath_overrides_runpath
d9898ee8 15165
8d138742
CE
15166# Format of library name prefix.
15167libname_spec=$lt_libname_spec
d9898ee8 15168
8d138742
CE
15169# List of archive names. First name is the real one, the rest are links.
15170# The last name is the one that the linker finds with -lNAME
15171library_names_spec=$lt_library_names_spec
d9898ee8 15172
8d138742
CE
15173# The coded name of the library, if different from the real name.
15174soname_spec=$lt_soname_spec
d9898ee8 15175
8d138742
CE
15176# Command to use after installation of a shared archive.
15177postinstall_cmds=$lt_postinstall_cmds
d9898ee8 15178
8d138742
CE
15179# Command to use after uninstallation of a shared archive.
15180postuninstall_cmds=$lt_postuninstall_cmds
dd184caf 15181
8d138742
CE
15182# Commands used to finish a libtool library installation in a directory.
15183finish_cmds=$lt_finish_cmds
d9898ee8 15184
8d138742
CE
15185# As "finish_cmds", except a single script fragment to be evaled but
15186# not shown.
15187finish_eval=$lt_finish_eval
d9898ee8 15188
8d138742
CE
15189# Whether we should hardcode library paths into libraries.
15190hardcode_into_libs=$hardcode_into_libs
d9898ee8 15191
8d138742
CE
15192# Compile-time system search path for libraries.
15193sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
d9898ee8 15194
8d138742
CE
15195# Run-time system search path for libraries.
15196sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
d9898ee8 15197
8d138742
CE
15198# Whether dlopen is supported.
15199dlopen_support=$enable_dlopen
d9898ee8 15200
8d138742
CE
15201# Whether dlopen of programs is supported.
15202dlopen_self=$enable_dlopen_self
d9898ee8 15203
8d138742
CE
15204# Whether dlopen of statically linked programs is supported.
15205dlopen_self_static=$enable_dlopen_self_static
d9898ee8 15206
8d138742
CE
15207# Commands to strip libraries.
15208old_striplib=$lt_old_striplib
15209striplib=$lt_striplib
d9898ee8 15210
d9898ee8 15211
8d138742
CE
15212# The linker used to build libraries.
15213LD=$lt_LD
d9898ee8 15214
8d138742
CE
15215# Commands used to build an old-style archive.
15216old_archive_cmds=$lt_old_archive_cmds
d9898ee8 15217
8d138742
CE
15218# A language specific compiler.
15219CC=$lt_compiler
dd184caf 15220
8d138742
CE
15221# Is the compiler the GNU compiler?
15222with_gcc=$GCC
dd184caf 15223
8d138742
CE
15224# Compiler flag to turn off builtin functions.
15225no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
d9898ee8 15226
8d138742
CE
15227# How to pass a linker flag through the compiler.
15228wl=$lt_lt_prog_compiler_wl
dd184caf 15229
8d138742
CE
15230# Additional compiler flags for building library objects.
15231pic_flag=$lt_lt_prog_compiler_pic
d9898ee8 15232
8d138742
CE
15233# Compiler flag to prevent dynamic linking.
15234link_static_flag=$lt_lt_prog_compiler_static
15235
15236# Does compiler simultaneously support -c and -o options?
15237compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15238
15239# Whether or not to add -lc for building shared libraries.
15240build_libtool_need_lc=$archive_cmds_need_lc
15241
15242# Whether or not to disallow shared libs when runtime libs are static.
15243allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15244
15245# Compiler flag to allow reflexive dlopens.
15246export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
d9898ee8 15247
8d138742
CE
15248# Compiler flag to generate shared objects directly from archives.
15249whole_archive_flag_spec=$lt_whole_archive_flag_spec
d9898ee8 15250
8d138742
CE
15251# Whether the compiler copes with passing no objects directly.
15252compiler_needs_object=$lt_compiler_needs_object
d9898ee8 15253
8d138742
CE
15254# Create an old-style archive from a shared archive.
15255old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
d9898ee8 15256
8d138742
CE
15257# Create a temporary old-style archive to link instead of a shared archive.
15258old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
d9898ee8 15259
8d138742
CE
15260# Commands used to build a shared archive.
15261archive_cmds=$lt_archive_cmds
15262archive_expsym_cmds=$lt_archive_expsym_cmds
dd184caf 15263
8d138742
CE
15264# Commands used to build a loadable module if different from building
15265# a shared archive.
15266module_cmds=$lt_module_cmds
15267module_expsym_cmds=$lt_module_expsym_cmds
dd184caf 15268
8d138742
CE
15269# Whether we are building with GNU ld or not.
15270with_gnu_ld=$lt_with_gnu_ld
dd184caf 15271
8d138742
CE
15272# Flag that allows shared libraries with undefined symbols to be built.
15273allow_undefined_flag=$lt_allow_undefined_flag
dd184caf 15274
8d138742
CE
15275# Flag that enforces no undefined symbols.
15276no_undefined_flag=$lt_no_undefined_flag
dd184caf 15277
8d138742
CE
15278# Flag to hardcode \$libdir into a binary during linking.
15279# This must work even if \$libdir does not exist
15280hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
d9898ee8 15281
8d138742
CE
15282# If ld is used when linking, flag to hardcode \$libdir into a binary
15283# during linking. This must work even if \$libdir does not exist.
15284hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
dd184caf 15285
8d138742
CE
15286# Whether we need a single "-rpath" flag with a separated argument.
15287hardcode_libdir_separator=$lt_hardcode_libdir_separator
dd184caf 15288
8d138742
CE
15289# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15290# DIR into the resulting binary.
15291hardcode_direct=$hardcode_direct
dd184caf 15292
8d138742
CE
15293# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15294# DIR into the resulting binary and the resulting library dependency is
15295# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15296# library is relocated.
15297hardcode_direct_absolute=$hardcode_direct_absolute
dd184caf 15298
8d138742
CE
15299# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15300# into the resulting binary.
15301hardcode_minus_L=$hardcode_minus_L
dd184caf 15302
8d138742
CE
15303# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15304# into the resulting binary.
15305hardcode_shlibpath_var=$hardcode_shlibpath_var
dd184caf 15306
8d138742
CE
15307# Set to "yes" if building a shared library automatically hardcodes DIR
15308# into the library and all subsequent libraries and executables linked
15309# against it.
15310hardcode_automatic=$hardcode_automatic
dd184caf 15311
8d138742
CE
15312# Set to yes if linker adds runtime paths of dependent libraries
15313# to runtime path list.
15314inherit_rpath=$inherit_rpath
dd184caf 15315
8d138742
CE
15316# Whether libtool must link a program against all its dependency libraries.
15317link_all_deplibs=$link_all_deplibs
dd184caf 15318
8d138742
CE
15319# Fix the shell variable \$srcfile for the compiler.
15320fix_srcfile_path=$lt_fix_srcfile_path
dd184caf 15321
8d138742
CE
15322# Set to "yes" if exported symbols are required.
15323always_export_symbols=$always_export_symbols
dd184caf 15324
8d138742
CE
15325# The commands to list exported symbols.
15326export_symbols_cmds=$lt_export_symbols_cmds
dd184caf 15327
8d138742
CE
15328# Symbols that should not be listed in the preloaded symbols.
15329exclude_expsyms=$lt_exclude_expsyms
d9898ee8 15330
8d138742
CE
15331# Symbols that must always be exported.
15332include_expsyms=$lt_include_expsyms
d9898ee8 15333
8d138742
CE
15334# Commands necessary for linking programs (against libraries) with templates.
15335prelink_cmds=$lt_prelink_cmds
d9898ee8 15336
8d138742
CE
15337# Specify filename containing input files.
15338file_list_spec=$lt_file_list_spec
15339
15340# How to hardcode a shared library path into an executable.
15341hardcode_action=$hardcode_action
d9898ee8 15342
8d138742 15343# ### END LIBTOOL CONFIG
d9898ee8 15344
8d138742 15345_LT_EOF
d9898ee8 15346
8d138742
CE
15347 case $host_os in
15348 aix3*)
15349 cat <<\_LT_EOF >> "$cfgfile"
15350# AIX sometimes has problems with the GCC collect2 program. For some
15351# reason, if we set the COLLECT_NAMES environment variable, the problems
15352# vanish in a puff of smoke.
15353if test "X${COLLECT_NAMES+set}" != Xset; then
15354 COLLECT_NAMES=
15355 export COLLECT_NAMES
15356fi
15357_LT_EOF
15358 ;;
d9898ee8 15359 esac
8d138742
CE
15360
15361
15362ltmain="$ac_aux_dir/ltmain.sh"
15363
15364
15365 # We use sed instead of cat because bash on DJGPP gets confused if
15366 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15367 # text mode, it properly converts lines to CR/LF. This bash problem
15368 # is reportedly fixed, but why not run on old versions too?
15369 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15370 || (rm -f "$cfgfile"; exit 1)
15371
15372 case $xsi_shell in
15373 yes)
15374 cat << \_LT_EOF >> "$cfgfile"
15375
15376# func_dirname file append nondir_replacement
15377# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15378# otherwise set result to NONDIR_REPLACEMENT.
15379func_dirname ()
15380{
15381 case ${1} in
15382 */*) func_dirname_result="${1%/*}${2}" ;;
15383 * ) func_dirname_result="${3}" ;;
dd184caf 15384 esac
8d138742 15385}
d9898ee8 15386
8d138742
CE
15387# func_basename file
15388func_basename ()
15389{
15390 func_basename_result="${1##*/}"
15391}
dd184caf 15392
8d138742
CE
15393# func_dirname_and_basename file append nondir_replacement
15394# perform func_basename and func_dirname in a single function
15395# call:
15396# dirname: Compute the dirname of FILE. If nonempty,
15397# add APPEND to the result, otherwise set result
15398# to NONDIR_REPLACEMENT.
15399# value returned in "$func_dirname_result"
15400# basename: Compute filename of FILE.
15401# value retuned in "$func_basename_result"
15402# Implementation must be kept synchronized with func_dirname
15403# and func_basename. For efficiency, we do not delegate to
15404# those functions but instead duplicate the functionality here.
15405func_dirname_and_basename ()
15406{
15407 case ${1} in
15408 */*) func_dirname_result="${1%/*}${2}" ;;
15409 * ) func_dirname_result="${3}" ;;
15410 esac
15411 func_basename_result="${1##*/}"
dd184caf 15412}
dd184caf 15413
8d138742
CE
15414# func_stripname prefix suffix name
15415# strip PREFIX and SUFFIX off of NAME.
15416# PREFIX and SUFFIX must not contain globbing or regex special
15417# characters, hashes, percent signs, but SUFFIX may contain a leading
15418# dot (in which case that matches only a dot).
15419func_stripname ()
15420{
15421 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15422 # positional parameters, so assign one to ordinary parameter first.
15423 func_stripname_result=${3}
15424 func_stripname_result=${func_stripname_result#"${1}"}
15425 func_stripname_result=${func_stripname_result%"${2}"}
15426}
dd184caf 15427
8d138742
CE
15428# func_opt_split
15429func_opt_split ()
15430{
15431 func_opt_split_opt=${1%%=*}
15432 func_opt_split_arg=${1#*=}
15433}
dd184caf 15434
8d138742
CE
15435# func_lo2o object
15436func_lo2o ()
15437{
15438 case ${1} in
15439 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15440 *) func_lo2o_result=${1} ;;
d9898ee8 15441 esac
8d138742 15442}
d9898ee8 15443
8d138742
CE
15444# func_xform libobj-or-source
15445func_xform ()
15446{
15447 func_xform_result=${1%.*}.lo
15448}
d9898ee8 15449
8d138742
CE
15450# func_arith arithmetic-term...
15451func_arith ()
15452{
15453 func_arith_result=$(( $* ))
15454}
15455
15456# func_len string
15457# STRING may not start with a hyphen.
15458func_len ()
15459{
15460 func_len_result=${#1}
15461}
15462
15463_LT_EOF
15464 ;;
15465 *) # Bourne compatible functions.
15466 cat << \_LT_EOF >> "$cfgfile"
15467
15468# func_dirname file append nondir_replacement
15469# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15470# otherwise set result to NONDIR_REPLACEMENT.
15471func_dirname ()
15472{
15473 # Extract subdirectory from the argument.
15474 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15475 if test "X$func_dirname_result" = "X${1}"; then
15476 func_dirname_result="${3}"
d9898ee8 15477 else
8d138742 15478 func_dirname_result="$func_dirname_result${2}"
d9898ee8 15479 fi
8d138742 15480}
d9898ee8 15481
8d138742
CE
15482# func_basename file
15483func_basename ()
15484{
15485 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15486}
15487
15488
15489# func_stripname prefix suffix name
15490# strip PREFIX and SUFFIX off of NAME.
15491# PREFIX and SUFFIX must not contain globbing or regex special
15492# characters, hashes, percent signs, but SUFFIX may contain a leading
15493# dot (in which case that matches only a dot).
15494# func_strip_suffix prefix name
15495func_stripname ()
15496{
15497 case ${2} in
15498 .*) func_stripname_result=`$ECHO "X${3}" \
15499 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15500 *) func_stripname_result=`$ECHO "X${3}" \
15501 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
dd184caf 15502 esac
8d138742 15503}
d9898ee8 15504
8d138742
CE
15505# sed scripts:
15506my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15507my_sed_long_arg='1s/^-[^=]*=//'
d9898ee8 15508
8d138742
CE
15509# func_opt_split
15510func_opt_split ()
15511{
15512 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15513 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15514}
15515
15516# func_lo2o object
15517func_lo2o ()
15518{
15519 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15520}
15521
15522# func_xform libobj-or-source
15523func_xform ()
15524{
15525 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15526}
15527
15528# func_arith arithmetic-term...
15529func_arith ()
15530{
15531 func_arith_result=`expr "$@"`
15532}
15533
15534# func_len string
15535# STRING may not start with a hyphen.
15536func_len ()
15537{
15538 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15539}
15540
15541_LT_EOF
15542esac
15543
15544case $lt_shell_append in
15545 yes)
15546 cat << \_LT_EOF >> "$cfgfile"
15547
15548# func_append var value
15549# Append VALUE to the end of shell variable VAR.
15550func_append ()
15551{
15552 eval "$1+=\$2"
15553}
15554_LT_EOF
15555 ;;
15556 *)
15557 cat << \_LT_EOF >> "$cfgfile"
15558
15559# func_append var value
15560# Append VALUE to the end of shell variable VAR.
15561func_append ()
15562{
15563 eval "$1=\$$1\$2"
15564}
15565
15566_LT_EOF
15567 ;;
dd184caf 15568 esac
8d138742
CE
15569
15570
15571 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15572 || (rm -f "$cfgfile"; exit 1)
15573
15574 mv -f "$cfgfile" "$ofile" ||
15575 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15576 chmod +x "$ofile"
15577
d9898ee8 15578 ;;
dd184caf 15579
d9898ee8 15580 esac
dd184caf 15581done # for ac_tag
d9898ee8 15582
d9898ee8 15583
15584{ (exit 0); exit 0; }
15585_ACEOF
15586chmod +x $CONFIG_STATUS
15587ac_clean_files=$ac_clean_files_save
15588
8d138742
CE
15589test $ac_write_fail = 0 ||
15590 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15591$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15592 { (exit 1); exit 1; }; }
15593
d9898ee8 15594
15595# configure is writing to config.log, and then calls config.status.
15596# config.status does its own redirection, appending to config.log.
15597# Unfortunately, on DOS this fails, as config.log is still kept open
15598# by configure, so config.status won't be able to write to it; its
15599# output is simply discarded. So we exec the FD to /dev/null,
15600# effectively closing config.log, so it can be properly (re)opened and
15601# appended to by config.status. When coming back to configure, we
15602# need to make the FD available again.
15603if test "$no_create" != yes; then
15604 ac_cs_success=:
15605 ac_config_status_args=
15606 test "$silent" = yes &&
15607 ac_config_status_args="$ac_config_status_args --quiet"
15608 exec 5>/dev/null
15609 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15610 exec 5>>config.log
15611 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15612 # would make configure fail if this is the last instruction.
15613 $ac_cs_success || { (exit 1); exit 1; }
15614fi
8d138742
CE
15615if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15616 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15617$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15618fi
d9898ee8 15619