* config/sh/sh.md (cmpeqsi_t-1): Use logical_operand predicate
[official-gcc.git] / libjava / libltdl / configure
blob13e2469e222b531941fe1fcc92074ac7333448f7
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libltdl 1.2.
5 # Report bugs to <bug-libtool@gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and
232 $0: bug-libtool@gnu.org about your system, including any
233 $0: error possibly output before this message. Then install
234 $0: a modern shell, or manually run the script under such a
235 $0: shell if you do have one."
237 exit 1
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
255 { eval $1=; unset $1;}
257 as_unset=as_fn_unset
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
264 return $1
265 } # as_fn_set_status
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
308 /^X\(\/\/\)$/{
309 s//\1/
312 /^X\(\/\).*/{
313 s//\1/
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
333 eval $1+=\$2
335 else
336 as_fn_append ()
338 eval $1=\$$1\$2
340 fi # as_fn_append
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
350 as_val=$(( $* ))
352 else
353 as_fn_arith ()
355 as_val=`expr "$@" || test $? -eq 1`
357 fi # as_fn_arith
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
404 /^X\/\(\/\/\)$/{
405 s//\1/
408 /^X\/\(\/\).*/{
409 s//\1/
412 s/.*/./; q'`
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
435 :lineno
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
463 ECHO_N='-n';;
464 esac
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
487 else
488 as_ln_s='cp -p'
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
534 case X$ECHO in
535 X*--fallback-echo)
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 esac
541 echo=${ECHO-echo}
542 if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
544 shift
545 elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
548 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $echo works!
551 else
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
558 shift
559 cat <<EOF
562 exit 0
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 # if CDPATH is set.
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569 if test -z "$ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
575 echo_test_string="`eval $cmd`" &&
576 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
577 then
578 break
580 done
583 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
584 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
585 test "X$echo_testing_string" = "X$echo_test_string"; then
587 else
588 # The Solaris, AIX, and Digital Unix default echo programs unquote
589 # backslashes. This makes it impossible to quote backslashes using
590 # echo "$something" | sed 's/\\/\\\\/g'
592 # So, first we look for a working echo in the user's PATH.
594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
595 for dir in $PATH /usr/ucb; do
596 IFS="$lt_save_ifs"
597 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
598 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
599 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
600 test "X$echo_testing_string" = "X$echo_test_string"; then
601 echo="$dir/echo"
602 break
604 done
605 IFS="$lt_save_ifs"
607 if test "X$echo" = Xecho; then
608 # We didn't find a better echo, so look for alternatives.
609 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # This shell has a builtin print -r that does the trick.
613 echo='print -r'
614 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
615 test "X$CONFIG_SHELL" != X/bin/ksh; then
616 # If we have ksh, try running configure again with it.
617 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
618 export ORIGINAL_CONFIG_SHELL
619 CONFIG_SHELL=/bin/ksh
620 export CONFIG_SHELL
621 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
622 else
623 # Try using printf.
624 echo='printf %s\n'
625 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
626 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
627 test "X$echo_testing_string" = "X$echo_test_string"; then
628 # Cool, printf works
630 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
631 test "X$echo_testing_string" = 'X\t' &&
632 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635 export CONFIG_SHELL
636 SHELL="$CONFIG_SHELL"
637 export SHELL
638 echo="$CONFIG_SHELL $0 --fallback-echo"
639 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640 test "X$echo_testing_string" = 'X\t' &&
641 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642 test "X$echo_testing_string" = "X$echo_test_string"; then
643 echo="$CONFIG_SHELL $0 --fallback-echo"
644 else
645 # maybe with a smaller string...
646 prev=:
648 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
649 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
650 then
651 break
653 prev="$cmd"
654 done
656 if test "$prev" != 'sed 50q "$0"'; then
657 echo_test_string=`eval $prev`
658 export echo_test_string
659 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
660 else
661 # Oops. We lost completely, so just stick with echo.
662 echo=echo
670 # Copy echo and quote the copy suitably for passing to libtool from
671 # the Makefile, instead of quoting the original, which is used later.
672 ECHO=$echo
673 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
674 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
680 tagnames=${tagnames+${tagnames},}CXX
682 tagnames=${tagnames+${tagnames},}F77
684 exec 7<&0 </dev/null 6>&1
686 # Name of the host.
687 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
688 # so uname gets run too.
689 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692 # Initializations.
694 ac_default_prefix=/usr/local
695 ac_clean_files=
696 ac_config_libobj_dir=.
697 LIBOBJS=
698 cross_compiling=no
699 subdirs=
700 MFLAGS=
701 MAKEFLAGS=
703 # Identity of this package.
704 PACKAGE_NAME='libltdl'
705 PACKAGE_TARNAME='libltdl'
706 PACKAGE_VERSION='1.2'
707 PACKAGE_STRING='libltdl 1.2'
708 PACKAGE_BUGREPORT='bug-libtool@gnu.org'
709 PACKAGE_URL=''
711 ac_unique_file="ltdl.c"
712 # Factoring default headers for most tests.
713 ac_includes_default="\
714 #include <stdio.h>
715 #ifdef HAVE_SYS_TYPES_H
716 # include <sys/types.h>
717 #endif
718 #ifdef HAVE_SYS_STAT_H
719 # include <sys/stat.h>
720 #endif
721 #ifdef STDC_HEADERS
722 # include <stdlib.h>
723 # include <stddef.h>
724 #else
725 # ifdef HAVE_STDLIB_H
726 # include <stdlib.h>
727 # endif
728 #endif
729 #ifdef HAVE_STRING_H
730 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
731 # include <memory.h>
732 # endif
733 # include <string.h>
734 #endif
735 #ifdef HAVE_STRINGS_H
736 # include <strings.h>
737 #endif
738 #ifdef HAVE_INTTYPES_H
739 # include <inttypes.h>
740 #endif
741 #ifdef HAVE_STDINT_H
742 # include <stdint.h>
743 #endif
744 #ifdef HAVE_UNISTD_H
745 # include <unistd.h>
746 #endif"
748 ac_subst_vars='am__EXEEXT_FALSE
749 am__EXEEXT_TRUE
750 LTLIBOBJS
751 LIBOBJS
752 LIBADD_DL
753 CONVENIENCE_LTDL_FALSE
754 CONVENIENCE_LTDL_TRUE
755 INSTALL_LTDL_FALSE
756 INSTALL_LTDL_TRUE
757 LIBTOOL_DEPS
758 LIBTOOL
759 ac_ct_F77
760 FFLAGS
762 CXXCPP
763 am__fastdepCXX_FALSE
764 am__fastdepCXX_TRUE
765 CXXDEPMODE
766 ac_ct_CXX
767 CXXFLAGS
770 OBJDUMP
772 DLLTOOL
773 RANLIB
775 ECHO
776 LN_S
777 EGREP
778 GREP
779 host_os
780 host_vendor
781 host_cpu
782 host
783 build_os
784 build_vendor
785 build_cpu
786 build
787 am__fastdepCC_FALSE
788 am__fastdepCC_TRUE
789 CCDEPMODE
790 AMDEPBACKSLASH
791 AMDEP_FALSE
792 AMDEP_TRUE
793 am__quote
794 am__include
795 DEPDIR
796 OBJEXT
797 EXEEXT
798 ac_ct_CC
799 CPPFLAGS
800 LDFLAGS
801 CFLAGS
803 am__untar
804 am__tar
805 AMTAR
806 am__leading_dot
807 SET_MAKE
809 mkdir_p
810 MKDIR_P
811 INSTALL_STRIP_PROGRAM
812 STRIP
813 install_sh
814 MAKEINFO
815 AUTOHEADER
816 AUTOMAKE
817 AUTOCONF
818 ACLOCAL
819 VERSION
820 PACKAGE
821 CYGPATH_W
822 am__isrc
823 INSTALL_DATA
824 INSTALL_SCRIPT
825 INSTALL_PROGRAM
826 multi_basedir
827 MAINT
828 MAINTAINER_MODE_FALSE
829 MAINTAINER_MODE_TRUE
830 target_alias
831 host_alias
832 build_alias
833 LIBS
834 ECHO_T
835 ECHO_N
836 ECHO_C
837 DEFS
838 mandir
839 localedir
840 libdir
841 psdir
842 pdfdir
843 dvidir
844 htmldir
845 infodir
846 docdir
847 oldincludedir
848 includedir
849 localstatedir
850 sharedstatedir
851 sysconfdir
852 datadir
853 datarootdir
854 libexecdir
855 sbindir
856 bindir
857 program_transform_name
858 prefix
859 exec_prefix
860 PACKAGE_URL
861 PACKAGE_BUGREPORT
862 PACKAGE_STRING
863 PACKAGE_VERSION
864 PACKAGE_TARNAME
865 PACKAGE_NAME
866 PATH_SEPARATOR
867 SHELL'
868 ac_subst_files=''
869 ac_user_opts='
870 enable_option_checking
871 enable_maintainer_mode
872 enable_multilib
873 enable_dependency_tracking
874 enable_shared
875 enable_static
876 enable_fast_install
877 with_gnu_ld
878 enable_libtool_lock
879 with_pic
880 with_tags
881 enable_ltdl_install
883 ac_precious_vars='build_alias
884 host_alias
885 target_alias
887 CFLAGS
888 LDFLAGS
889 LIBS
890 CPPFLAGS
893 CXXFLAGS
895 CXXCPP
897 FFLAGS'
900 # Initialize some variables set by options.
901 ac_init_help=
902 ac_init_version=false
903 ac_unrecognized_opts=
904 ac_unrecognized_sep=
905 # The variables have the same names as the options, with
906 # dashes changed to underlines.
907 cache_file=/dev/null
908 exec_prefix=NONE
909 no_create=
910 no_recursion=
911 prefix=NONE
912 program_prefix=NONE
913 program_suffix=NONE
914 program_transform_name=s,x,x,
915 silent=
916 site=
917 srcdir=
918 verbose=
919 x_includes=NONE
920 x_libraries=NONE
922 # Installation directory options.
923 # These are left unexpanded so users can "make install exec_prefix=/foo"
924 # and all the variables that are supposed to be based on exec_prefix
925 # by default will actually change.
926 # Use braces instead of parens because sh, perl, etc. also accept them.
927 # (The list follows the same order as the GNU Coding Standards.)
928 bindir='${exec_prefix}/bin'
929 sbindir='${exec_prefix}/sbin'
930 libexecdir='${exec_prefix}/libexec'
931 datarootdir='${prefix}/share'
932 datadir='${datarootdir}'
933 sysconfdir='${prefix}/etc'
934 sharedstatedir='${prefix}/com'
935 localstatedir='${prefix}/var'
936 includedir='${prefix}/include'
937 oldincludedir='/usr/include'
938 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939 infodir='${datarootdir}/info'
940 htmldir='${docdir}'
941 dvidir='${docdir}'
942 pdfdir='${docdir}'
943 psdir='${docdir}'
944 libdir='${exec_prefix}/lib'
945 localedir='${datarootdir}/locale'
946 mandir='${datarootdir}/man'
948 ac_prev=
949 ac_dashdash=
950 for ac_option
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\$ac_option
955 ac_prev=
956 continue
959 case $ac_option in
960 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 *) ac_optarg=yes ;;
962 esac
964 # Accept the important Cygnus configure options, so we can diagnose typos.
966 case $ac_dashdash$ac_option in
968 ac_dashdash=yes ;;
970 -bindir | --bindir | --bindi | --bind | --bin | --bi)
971 ac_prev=bindir ;;
972 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973 bindir=$ac_optarg ;;
975 -build | --build | --buil | --bui | --bu)
976 ac_prev=build_alias ;;
977 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978 build_alias=$ac_optarg ;;
980 -cache-file | --cache-file | --cache-fil | --cache-fi \
981 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982 ac_prev=cache_file ;;
983 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985 cache_file=$ac_optarg ;;
987 --config-cache | -C)
988 cache_file=config.cache ;;
990 -datadir | --datadir | --datadi | --datad)
991 ac_prev=datadir ;;
992 -datadir=* | --datadir=* | --datadi=* | --datad=*)
993 datadir=$ac_optarg ;;
995 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996 | --dataroo | --dataro | --datar)
997 ac_prev=datarootdir ;;
998 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000 datarootdir=$ac_optarg ;;
1002 -disable-* | --disable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error "invalid feature name: $ac_useropt"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1011 "enable_$ac_useropt"
1012 "*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=no ;;
1018 -docdir | --docdir | --docdi | --doc | --do)
1019 ac_prev=docdir ;;
1020 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021 docdir=$ac_optarg ;;
1023 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 ac_prev=dvidir ;;
1025 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026 dvidir=$ac_optarg ;;
1028 -enable-* | --enable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error "invalid feature name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1037 "enable_$ac_useropt"
1038 "*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=\$ac_optarg ;;
1044 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046 | --exec | --exe | --ex)
1047 ac_prev=exec_prefix ;;
1048 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050 | --exec=* | --exe=* | --ex=*)
1051 exec_prefix=$ac_optarg ;;
1053 -gas | --gas | --ga | --g)
1054 # Obsolete; use --with-gas.
1055 with_gas=yes ;;
1057 -help | --help | --hel | --he | -h)
1058 ac_init_help=long ;;
1059 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060 ac_init_help=recursive ;;
1061 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062 ac_init_help=short ;;
1064 -host | --host | --hos | --ho)
1065 ac_prev=host_alias ;;
1066 -host=* | --host=* | --hos=* | --ho=*)
1067 host_alias=$ac_optarg ;;
1069 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070 ac_prev=htmldir ;;
1071 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072 | --ht=*)
1073 htmldir=$ac_optarg ;;
1075 -includedir | --includedir | --includedi | --included | --include \
1076 | --includ | --inclu | --incl | --inc)
1077 ac_prev=includedir ;;
1078 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079 | --includ=* | --inclu=* | --incl=* | --inc=*)
1080 includedir=$ac_optarg ;;
1082 -infodir | --infodir | --infodi | --infod | --info | --inf)
1083 ac_prev=infodir ;;
1084 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085 infodir=$ac_optarg ;;
1087 -libdir | --libdir | --libdi | --libd)
1088 ac_prev=libdir ;;
1089 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090 libdir=$ac_optarg ;;
1092 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093 | --libexe | --libex | --libe)
1094 ac_prev=libexecdir ;;
1095 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096 | --libexe=* | --libex=* | --libe=*)
1097 libexecdir=$ac_optarg ;;
1099 -localedir | --localedir | --localedi | --localed | --locale)
1100 ac_prev=localedir ;;
1101 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102 localedir=$ac_optarg ;;
1104 -localstatedir | --localstatedir | --localstatedi | --localstated \
1105 | --localstate | --localstat | --localsta | --localst | --locals)
1106 ac_prev=localstatedir ;;
1107 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109 localstatedir=$ac_optarg ;;
1111 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112 ac_prev=mandir ;;
1113 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114 mandir=$ac_optarg ;;
1116 -nfp | --nfp | --nf)
1117 # Obsolete; use --without-fp.
1118 with_fp=no ;;
1120 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121 | --no-cr | --no-c | -n)
1122 no_create=yes ;;
1124 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126 no_recursion=yes ;;
1128 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130 | --oldin | --oldi | --old | --ol | --o)
1131 ac_prev=oldincludedir ;;
1132 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135 oldincludedir=$ac_optarg ;;
1137 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138 ac_prev=prefix ;;
1139 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140 prefix=$ac_optarg ;;
1142 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143 | --program-pre | --program-pr | --program-p)
1144 ac_prev=program_prefix ;;
1145 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147 program_prefix=$ac_optarg ;;
1149 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150 | --program-suf | --program-su | --program-s)
1151 ac_prev=program_suffix ;;
1152 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154 program_suffix=$ac_optarg ;;
1156 -program-transform-name | --program-transform-name \
1157 | --program-transform-nam | --program-transform-na \
1158 | --program-transform-n | --program-transform- \
1159 | --program-transform | --program-transfor \
1160 | --program-transfo | --program-transf \
1161 | --program-trans | --program-tran \
1162 | --progr-tra | --program-tr | --program-t)
1163 ac_prev=program_transform_name ;;
1164 -program-transform-name=* | --program-transform-name=* \
1165 | --program-transform-nam=* | --program-transform-na=* \
1166 | --program-transform-n=* | --program-transform-=* \
1167 | --program-transform=* | --program-transfor=* \
1168 | --program-transfo=* | --program-transf=* \
1169 | --program-trans=* | --program-tran=* \
1170 | --progr-tra=* | --program-tr=* | --program-t=*)
1171 program_transform_name=$ac_optarg ;;
1173 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174 ac_prev=pdfdir ;;
1175 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176 pdfdir=$ac_optarg ;;
1178 -psdir | --psdir | --psdi | --psd | --ps)
1179 ac_prev=psdir ;;
1180 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181 psdir=$ac_optarg ;;
1183 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184 | -silent | --silent | --silen | --sile | --sil)
1185 silent=yes ;;
1187 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188 ac_prev=sbindir ;;
1189 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190 | --sbi=* | --sb=*)
1191 sbindir=$ac_optarg ;;
1193 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195 | --sharedst | --shareds | --shared | --share | --shar \
1196 | --sha | --sh)
1197 ac_prev=sharedstatedir ;;
1198 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201 | --sha=* | --sh=*)
1202 sharedstatedir=$ac_optarg ;;
1204 -site | --site | --sit)
1205 ac_prev=site ;;
1206 -site=* | --site=* | --sit=*)
1207 site=$ac_optarg ;;
1209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210 ac_prev=srcdir ;;
1211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212 srcdir=$ac_optarg ;;
1214 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215 | --syscon | --sysco | --sysc | --sys | --sy)
1216 ac_prev=sysconfdir ;;
1217 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219 sysconfdir=$ac_optarg ;;
1221 -target | --target | --targe | --targ | --tar | --ta | --t)
1222 ac_prev=target_alias ;;
1223 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224 target_alias=$ac_optarg ;;
1226 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227 verbose=yes ;;
1229 -version | --version | --versio | --versi | --vers | -V)
1230 ac_init_version=: ;;
1232 -with-* | --with-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=\$ac_optarg ;;
1248 -without-* | --without-*)
1249 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250 # Reject names that are not valid shell variable names.
1251 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252 as_fn_error "invalid package name: $ac_useropt"
1253 ac_useropt_orig=$ac_useropt
1254 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255 case $ac_user_opts in
1257 "with_$ac_useropt"
1258 "*) ;;
1259 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260 ac_unrecognized_sep=', ';;
1261 esac
1262 eval with_$ac_useropt=no ;;
1264 --x)
1265 # Obsolete; use --with-x.
1266 with_x=yes ;;
1268 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269 | --x-incl | --x-inc | --x-in | --x-i)
1270 ac_prev=x_includes ;;
1271 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273 x_includes=$ac_optarg ;;
1275 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277 ac_prev=x_libraries ;;
1278 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280 x_libraries=$ac_optarg ;;
1282 -*) as_fn_error "unrecognized option: \`$ac_option'
1283 Try \`$0 --help' for more information."
1286 *=*)
1287 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288 # Reject names that are not valid shell variable names.
1289 case $ac_envvar in #(
1290 '' | [0-9]* | *[!_$as_cr_alnum]* )
1291 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1292 esac
1293 eval $ac_envvar=\$ac_optarg
1294 export $ac_envvar ;;
1297 # FIXME: should be removed in autoconf 3.0.
1298 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1304 esac
1305 done
1307 if test -n "$ac_prev"; then
1308 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309 as_fn_error "missing argument to $ac_option"
1312 if test -n "$ac_unrecognized_opts"; then
1313 case $enable_option_checking in
1314 no) ;;
1315 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1316 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317 esac
1320 # Check all directory arguments for consistency.
1321 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322 datadir sysconfdir sharedstatedir localstatedir includedir \
1323 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324 libdir localedir mandir
1326 eval ac_val=\$$ac_var
1327 # Remove trailing slashes.
1328 case $ac_val in
1329 */ )
1330 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331 eval $ac_var=\$ac_val;;
1332 esac
1333 # Be sure to have absolute directory names.
1334 case $ac_val in
1335 [\\/$]* | ?:[\\/]* ) continue;;
1336 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337 esac
1338 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1339 done
1341 # There might be people who depend on the old broken behavior: `$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1344 build=$build_alias
1345 host=$host_alias
1346 target=$target_alias
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350 if test "x$build_alias" = x; then
1351 cross_compiling=maybe
1352 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1353 If a cross compiler is detected then cross compile mode will be used." >&2
1354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1359 ac_tool_prefix=
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362 test "$silent" = yes && exec 6>/dev/null
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 as_fn_error "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 as_fn_error "pwd does not report name of working directory"
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1391 /^X\(\/\/\)$/{
1392 s//\1/
1395 /^X\(\/\).*/{
1396 s//\1/
1399 s/.*/./; q'`
1400 srcdir=$ac_confdir
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 srcdir=..
1404 else
1405 ac_srcdir_defaulted=no
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412 ac_abs_confdir=`(
1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1414 pwd)`
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1422 case $srcdir in
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424 esac
1425 for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430 done
1433 # Report the --help message.
1435 if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439 \`configure' configures libltdl 1.2 to adapt to many kinds of systems.
1441 Usage: $0 [OPTION]... [VAR=VALUE]...
1443 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444 VAR=VALUE. See below for descriptions of some of the useful variables.
1446 Defaults for the options are specified in brackets.
1448 Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
1453 -q, --quiet, --silent do not print \`checking...' messages
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1459 Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
1461 [$ac_default_prefix]
1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1463 [PREFIX]
1465 By default, \`make install' will install all the files in
1466 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468 for instance \`--prefix=\$HOME'.
1470 For better control, use the options below.
1472 Fine tuning of the installation directories:
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/libltdl]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
1492 _ACEOF
1494 cat <<\_ACEOF
1496 Program names:
1497 --program-prefix=PREFIX prepend PREFIX to installed program names
1498 --program-suffix=SUFFIX append SUFFIX to installed program names
1499 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1501 System types:
1502 --build=BUILD configure for building on BUILD [guessed]
1503 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1504 _ACEOF
1507 if test -n "$ac_init_help"; then
1508 case $ac_init_help in
1509 short | recursive ) echo "Configuration of libltdl 1.2:";;
1510 esac
1511 cat <<\_ACEOF
1513 Optional Features:
1514 --disable-option-checking ignore unrecognized --enable/--with options
1515 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1516 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1517 --enable-maintainer-mode enable make rules and dependencies not useful
1518 (and sometimes confusing) to the casual installer
1519 --enable-multilib build many library versions (default)
1520 --disable-dependency-tracking speeds up one-time build
1521 --enable-dependency-tracking do not reject slow dependency extractors
1522 --enable-shared[=PKGS] build shared libraries [default=yes]
1523 --enable-static[=PKGS] build static libraries [default=yes]
1524 --enable-fast-install[=PKGS]
1525 optimize for fast installation [default=yes]
1526 --disable-libtool-lock avoid locking (might break parallel builds)
1527 --enable-ltdl-install install libltdl
1529 Optional Packages:
1530 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1531 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1532 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1533 --with-pic try to use only PIC/non-PIC objects [default=use
1534 both]
1535 --with-tags[=TAGS] include additional configurations [automatic]
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 LIBS libraries to pass to the linker, e.g. -l<library>
1543 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1544 you have headers in a nonstandard directory <include dir>
1545 CPP C preprocessor
1546 CXX C++ compiler command
1547 CXXFLAGS C++ compiler flags
1548 CXXCPP C++ preprocessor
1549 F77 Fortran 77 compiler command
1550 FFLAGS Fortran 77 compiler flags
1552 Use these variables to override the choices made by `configure' or to help
1553 it to find libraries and programs with nonstandard names/locations.
1555 Report bugs to <bug-libtool@gnu.org>.
1556 _ACEOF
1557 ac_status=$?
1560 if test "$ac_init_help" = "recursive"; then
1561 # If there are subdirs, report their specific --help.
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563 test -d "$ac_dir" ||
1564 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1565 continue
1566 ac_builddir=.
1568 case "$ac_dir" in
1569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1571 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1572 # A ".." for each directory in $ac_dir_suffix.
1573 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1574 case $ac_top_builddir_sub in
1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577 esac ;;
1578 esac
1579 ac_abs_top_builddir=$ac_pwd
1580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581 # for backward compatibility:
1582 ac_top_builddir=$ac_top_build_prefix
1584 case $srcdir in
1585 .) # We are building in place.
1586 ac_srcdir=.
1587 ac_top_srcdir=$ac_top_builddir_sub
1588 ac_abs_top_srcdir=$ac_pwd ;;
1589 [\\/]* | ?:[\\/]* ) # Absolute name.
1590 ac_srcdir=$srcdir$ac_dir_suffix;
1591 ac_top_srcdir=$srcdir
1592 ac_abs_top_srcdir=$srcdir ;;
1593 *) # Relative name.
1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595 ac_top_srcdir=$ac_top_build_prefix$srcdir
1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1597 esac
1598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1600 cd "$ac_dir" || { ac_status=$?; continue; }
1601 # Check for guested configure.
1602 if test -f "$ac_srcdir/configure.gnu"; then
1603 echo &&
1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1605 elif test -f "$ac_srcdir/configure"; then
1606 echo &&
1607 $SHELL "$ac_srcdir/configure" --help=recursive
1608 else
1609 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1610 fi || ac_status=$?
1611 cd "$ac_pwd" || { ac_status=$?; break; }
1612 done
1615 test -n "$ac_init_help" && exit $ac_status
1616 if $ac_init_version; then
1617 cat <<\_ACEOF
1618 libltdl configure 1.2
1619 generated by GNU Autoconf 2.64
1621 Copyright (C) 2009 Free Software Foundation, Inc.
1622 This configure script is free software; the Free Software Foundation
1623 gives unlimited permission to copy, distribute and modify it.
1624 _ACEOF
1625 exit
1628 ## ------------------------ ##
1629 ## Autoconf initialization. ##
1630 ## ------------------------ ##
1632 # ac_fn_c_try_compile LINENO
1633 # --------------------------
1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_compile ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext
1639 if { { ac_try="$ac_compile"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.$ac_objext; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1663 ac_retval=1
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666 return $ac_retval
1668 } # ac_fn_c_try_compile
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_link ()
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 $as_test_x conftest$ac_exeext
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=1
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712 return $ac_retval
1714 } # ac_fn_c_try_link
1716 # ac_fn_c_try_cpp LINENO
1717 # ----------------------
1718 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_cpp ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_cpp conftest.$ac_ext"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } >/dev/null && {
1738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1746 ac_retval=1
1748 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1749 return $ac_retval
1751 } # ac_fn_c_try_cpp
1753 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1756 # the include files in INCLUDES and setting the cache variable VAR
1757 # accordingly.
1758 ac_fn_c_check_header_mongrel ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763 $as_echo_n "checking for $2... " >&6; }
1764 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1765 $as_echo_n "(cached) " >&6
1767 eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 else
1771 # Is the header compilable?
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1773 $as_echo_n "checking $2 usability... " >&6; }
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 ac_header_compiler=yes
1781 else
1782 ac_header_compiler=no
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1786 $as_echo "$ac_header_compiler" >&6; }
1788 # Is the header present?
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1790 $as_echo_n "checking $2 presence... " >&6; }
1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792 /* end confdefs.h. */
1793 #include <$2>
1794 _ACEOF
1795 if ac_fn_c_try_cpp "$LINENO"; then :
1796 ac_header_preproc=yes
1797 else
1798 ac_header_preproc=no
1800 rm -f conftest.err conftest.$ac_ext
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1802 $as_echo "$ac_header_preproc" >&6; }
1804 # So? What about this header?
1805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1806 yes:no: )
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1808 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1810 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1812 no:yes:* )
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1814 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1816 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1818 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1820 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 ( cat <<\_ASBOX
1824 ## ---------------------------------- ##
1825 ## Report this to bug-libtool@gnu.org ##
1826 ## ---------------------------------- ##
1827 _ASBOX
1828 ) | sed "s/^/$as_me: WARNING: /" >&2
1830 esac
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834 $as_echo_n "(cached) " >&6
1835 else
1836 eval "$3=\$ac_header_compiler"
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844 } # ac_fn_c_check_header_mongrel
1846 # ac_fn_c_try_run LINENO
1847 # ----------------------
1848 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1849 # that executables *can* be run.
1850 ac_fn_c_try_run ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 if { { ac_try="$ac_link"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>&5
1861 ac_status=$?
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1864 { { case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_try") 2>&5
1871 ac_status=$?
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; }; }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: program exited with status $ac_status" >&5
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1880 ac_retval=$ac_status
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1886 } # ac_fn_c_try_run
1888 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1889 # -------------------------------------------------------
1890 # Tests whether HEADER exists and can be compiled using the include files in
1891 # INCLUDES, setting the cache variable VAR accordingly.
1892 ac_fn_c_check_header_compile ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1896 $as_echo_n "checking for $2... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1899 else
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1903 #include <$2>
1904 _ACEOF
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 eval "$3=yes"
1907 else
1908 eval "$3=no"
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912 eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 } # ac_fn_c_check_header_compile
1919 # ac_fn_c_check_func LINENO FUNC VAR
1920 # ----------------------------------
1921 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1922 ac_fn_c_check_func ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1928 $as_echo_n "(cached) " >&6
1929 else
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1932 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1934 #define $2 innocuous_$2
1936 /* System header to define __stub macros and hopefully few prototypes,
1937 which can conflict with char $2 (); below.
1938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1939 <limits.h> exists even on freestanding compilers. */
1941 #ifdef __STDC__
1942 # include <limits.h>
1943 #else
1944 # include <assert.h>
1945 #endif
1947 #undef $2
1949 /* Override any GCC internal prototype to avoid an error.
1950 Use char because int might match the return type of a GCC
1951 builtin and then its argument prototype would still apply. */
1952 #ifdef __cplusplus
1953 extern "C"
1954 #endif
1955 char $2 ();
1956 /* The GNU C library defines this for functions which it implements
1957 to always fail with ENOSYS. Some functions are actually named
1958 something starting with __ and the normal name is an alias. */
1959 #if defined __stub_$2 || defined __stub___$2
1960 choke me
1961 #endif
1964 main ()
1966 return $2 ();
1968 return 0;
1970 _ACEOF
1971 if ac_fn_c_try_link "$LINENO"; then :
1972 eval "$3=yes"
1973 else
1974 eval "$3=no"
1976 rm -f core conftest.err conftest.$ac_objext \
1977 conftest$ac_exeext conftest.$ac_ext
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984 } # ac_fn_c_check_func
1986 # ac_fn_cxx_try_compile LINENO
1987 # ----------------------------
1988 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_cxx_try_compile ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 rm -f conftest.$ac_objext
1993 if { { ac_try="$ac_compile"
1994 case "(($ac_try" in
1995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996 *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000 (eval "$ac_compile") 2>conftest.err
2001 ac_status=$?
2002 if test -s conftest.err; then
2003 grep -v '^ *+' conftest.err >conftest.er1
2004 cat conftest.er1 >&5
2005 mv -f conftest.er1 conftest.err
2007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008 test $ac_status = 0; } && {
2009 test -z "$ac_cxx_werror_flag" ||
2010 test ! -s conftest.err
2011 } && test -s conftest.$ac_objext; then :
2012 ac_retval=0
2013 else
2014 $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2017 ac_retval=1
2019 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2020 return $ac_retval
2022 } # ac_fn_cxx_try_compile
2024 # ac_fn_cxx_try_cpp LINENO
2025 # ------------------------
2026 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2027 ac_fn_cxx_try_cpp ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 if { { ac_try="$ac_cpp conftest.$ac_ext"
2031 case "(($ac_try" in
2032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033 *) ac_try_echo=$ac_try;;
2034 esac
2035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036 $as_echo "$ac_try_echo"; } >&5
2037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2038 ac_status=$?
2039 if test -s conftest.err; then
2040 grep -v '^ *+' conftest.err >conftest.er1
2041 cat conftest.er1 >&5
2042 mv -f conftest.er1 conftest.err
2044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045 test $ac_status = 0; } >/dev/null && {
2046 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2047 test ! -s conftest.err
2048 }; then :
2049 ac_retval=0
2050 else
2051 $as_echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2054 ac_retval=1
2056 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 return $ac_retval
2059 } # ac_fn_cxx_try_cpp
2061 # ac_fn_cxx_try_link LINENO
2062 # -------------------------
2063 # Try to link conftest.$ac_ext, and return whether this succeeded.
2064 ac_fn_cxx_try_link ()
2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067 rm -f conftest.$ac_objext conftest$ac_exeext
2068 if { { ac_try="$ac_link"
2069 case "(($ac_try" in
2070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071 *) ac_try_echo=$ac_try;;
2072 esac
2073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2074 $as_echo "$ac_try_echo"; } >&5
2075 (eval "$ac_link") 2>conftest.err
2076 ac_status=$?
2077 if test -s conftest.err; then
2078 grep -v '^ *+' conftest.err >conftest.er1
2079 cat conftest.er1 >&5
2080 mv -f conftest.er1 conftest.err
2082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2083 test $ac_status = 0; } && {
2084 test -z "$ac_cxx_werror_flag" ||
2085 test ! -s conftest.err
2086 } && test -s conftest$ac_exeext && {
2087 test "$cross_compiling" = yes ||
2088 $as_test_x conftest$ac_exeext
2089 }; then :
2090 ac_retval=0
2091 else
2092 $as_echo "$as_me: failed program was:" >&5
2093 sed 's/^/| /' conftest.$ac_ext >&5
2095 ac_retval=1
2097 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2098 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2099 # interfere with the next link command; also delete a directory that is
2100 # left behind by Apple's compiler. We do this before executing the actions.
2101 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2102 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2103 return $ac_retval
2105 } # ac_fn_cxx_try_link
2107 # ac_fn_cxx_check_func LINENO FUNC VAR
2108 # ------------------------------------
2109 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2110 ac_fn_cxx_check_func ()
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114 $as_echo_n "checking for $2... " >&6; }
2115 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2116 $as_echo_n "(cached) " >&6
2117 else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2121 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2122 #define $2 innocuous_$2
2124 /* System header to define __stub macros and hopefully few prototypes,
2125 which can conflict with char $2 (); below.
2126 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2127 <limits.h> exists even on freestanding compilers. */
2129 #ifdef __STDC__
2130 # include <limits.h>
2131 #else
2132 # include <assert.h>
2133 #endif
2135 #undef $2
2137 /* Override any GCC internal prototype to avoid an error.
2138 Use char because int might match the return type of a GCC
2139 builtin and then its argument prototype would still apply. */
2140 #ifdef __cplusplus
2141 extern "C"
2142 #endif
2143 char $2 ();
2144 /* The GNU C library defines this for functions which it implements
2145 to always fail with ENOSYS. Some functions are actually named
2146 something starting with __ and the normal name is an alias. */
2147 #if defined __stub_$2 || defined __stub___$2
2148 choke me
2149 #endif
2152 main ()
2154 return $2 ();
2156 return 0;
2158 _ACEOF
2159 if ac_fn_cxx_try_link "$LINENO"; then :
2160 eval "$3=yes"
2161 else
2162 eval "$3=no"
2164 rm -f core conftest.err conftest.$ac_objext \
2165 conftest$ac_exeext conftest.$ac_ext
2167 eval ac_res=\$$3
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2169 $as_echo "$ac_res" >&6; }
2170 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2172 } # ac_fn_cxx_check_func
2174 # ac_fn_f77_try_compile LINENO
2175 # ----------------------------
2176 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2177 ac_fn_f77_try_compile ()
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 rm -f conftest.$ac_objext
2181 if { { ac_try="$ac_compile"
2182 case "(($ac_try" in
2183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2184 *) ac_try_echo=$ac_try;;
2185 esac
2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187 $as_echo "$ac_try_echo"; } >&5
2188 (eval "$ac_compile") 2>conftest.err
2189 ac_status=$?
2190 if test -s conftest.err; then
2191 grep -v '^ *+' conftest.err >conftest.er1
2192 cat conftest.er1 >&5
2193 mv -f conftest.er1 conftest.err
2195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196 test $ac_status = 0; } && {
2197 test -z "$ac_f77_werror_flag" ||
2198 test ! -s conftest.err
2199 } && test -s conftest.$ac_objext; then :
2200 ac_retval=0
2201 else
2202 $as_echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2205 ac_retval=1
2207 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2208 return $ac_retval
2210 } # ac_fn_f77_try_compile
2212 # ac_fn_f77_try_link LINENO
2213 # -------------------------
2214 # Try to link conftest.$ac_ext, and return whether this succeeded.
2215 ac_fn_f77_try_link ()
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 rm -f conftest.$ac_objext conftest$ac_exeext
2219 if { { ac_try="$ac_link"
2220 case "(($ac_try" in
2221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222 *) ac_try_echo=$ac_try;;
2223 esac
2224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2225 $as_echo "$ac_try_echo"; } >&5
2226 (eval "$ac_link") 2>conftest.err
2227 ac_status=$?
2228 if test -s conftest.err; then
2229 grep -v '^ *+' conftest.err >conftest.er1
2230 cat conftest.er1 >&5
2231 mv -f conftest.er1 conftest.err
2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234 test $ac_status = 0; } && {
2235 test -z "$ac_f77_werror_flag" ||
2236 test ! -s conftest.err
2237 } && test -s conftest$ac_exeext && {
2238 test "$cross_compiling" = yes ||
2239 $as_test_x conftest$ac_exeext
2240 }; then :
2241 ac_retval=0
2242 else
2243 $as_echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2246 ac_retval=1
2248 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2249 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2250 # interfere with the next link command; also delete a directory that is
2251 # left behind by Apple's compiler. We do this before executing the actions.
2252 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2253 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254 return $ac_retval
2256 } # ac_fn_f77_try_link
2258 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2259 # -------------------------------------------
2260 # Tests whether TYPE exists after having included INCLUDES, setting cache
2261 # variable VAR accordingly.
2262 ac_fn_c_check_type ()
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2266 $as_echo_n "checking for $2... " >&6; }
2267 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2268 $as_echo_n "(cached) " >&6
2269 else
2270 eval "$3=no"
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2275 main ()
2277 if (sizeof ($2))
2278 return 0;
2280 return 0;
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2288 main ()
2290 if (sizeof (($2)))
2291 return 0;
2293 return 0;
2295 _ACEOF
2296 if ac_fn_c_try_compile "$LINENO"; then :
2298 else
2299 eval "$3=yes"
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 eval ac_res=\$$3
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2310 } # ac_fn_c_check_type
2311 cat >config.log <<_ACEOF
2312 This file contains any messages produced by compilers while
2313 running configure, to aid debugging if configure makes a mistake.
2315 It was created by libltdl $as_me 1.2, which was
2316 generated by GNU Autoconf 2.64. Invocation command line was
2318 $ $0 $@
2320 _ACEOF
2321 exec 5>>config.log
2323 cat <<_ASUNAME
2324 ## --------- ##
2325 ## Platform. ##
2326 ## --------- ##
2328 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2329 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2330 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2331 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2332 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2334 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2335 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2337 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2338 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2339 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2340 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2341 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2342 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2343 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2345 _ASUNAME
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 $as_echo "PATH: $as_dir"
2353 done
2354 IFS=$as_save_IFS
2356 } >&5
2358 cat >&5 <<_ACEOF
2361 ## ----------- ##
2362 ## Core tests. ##
2363 ## ----------- ##
2365 _ACEOF
2368 # Keep a trace of the command line.
2369 # Strip out --no-create and --no-recursion so they do not pile up.
2370 # Strip out --silent because we don't want to record it for future runs.
2371 # Also quote any args containing shell meta-characters.
2372 # Make two passes to allow for proper duplicate-argument suppression.
2373 ac_configure_args=
2374 ac_configure_args0=
2375 ac_configure_args1=
2376 ac_must_keep_next=false
2377 for ac_pass in 1 2
2379 for ac_arg
2381 case $ac_arg in
2382 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2384 | -silent | --silent | --silen | --sile | --sil)
2385 continue ;;
2386 *\'*)
2387 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2388 esac
2389 case $ac_pass in
2390 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2392 as_fn_append ac_configure_args1 " '$ac_arg'"
2393 if test $ac_must_keep_next = true; then
2394 ac_must_keep_next=false # Got value, back to normal.
2395 else
2396 case $ac_arg in
2397 *=* | --config-cache | -C | -disable-* | --disable-* \
2398 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2399 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2400 | -with-* | --with-* | -without-* | --without-* | --x)
2401 case "$ac_configure_args0 " in
2402 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2403 esac
2405 -* ) ac_must_keep_next=true ;;
2406 esac
2408 as_fn_append ac_configure_args " '$ac_arg'"
2410 esac
2411 done
2412 done
2413 { ac_configure_args0=; unset ac_configure_args0;}
2414 { ac_configure_args1=; unset ac_configure_args1;}
2416 # When interrupted or exit'd, cleanup temporary files, and complete
2417 # config.log. We remove comments because anyway the quotes in there
2418 # would cause problems or look ugly.
2419 # WARNING: Use '\'' to represent an apostrophe within the trap.
2420 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2421 trap 'exit_status=$?
2422 # Save into config.log some information that might help in debugging.
2424 echo
2426 cat <<\_ASBOX
2427 ## ---------------- ##
2428 ## Cache variables. ##
2429 ## ---------------- ##
2430 _ASBOX
2431 echo
2432 # The following way of writing the cache mishandles newlines in values,
2434 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2435 eval ac_val=\$$ac_var
2436 case $ac_val in #(
2437 *${as_nl}*)
2438 case $ac_var in #(
2439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2440 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2441 esac
2442 case $ac_var in #(
2443 _ | IFS | as_nl) ;; #(
2444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2445 *) { eval $ac_var=; unset $ac_var;} ;;
2446 esac ;;
2447 esac
2448 done
2449 (set) 2>&1 |
2450 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2451 *${as_nl}ac_space=\ *)
2452 sed -n \
2453 "s/'\''/'\''\\\\'\'''\''/g;
2454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2455 ;; #(
2457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2459 esac |
2460 sort
2462 echo
2464 cat <<\_ASBOX
2465 ## ----------------- ##
2466 ## Output variables. ##
2467 ## ----------------- ##
2468 _ASBOX
2469 echo
2470 for ac_var in $ac_subst_vars
2472 eval ac_val=\$$ac_var
2473 case $ac_val in
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 esac
2476 $as_echo "$ac_var='\''$ac_val'\''"
2477 done | sort
2478 echo
2480 if test -n "$ac_subst_files"; then
2481 cat <<\_ASBOX
2482 ## ------------------- ##
2483 ## File substitutions. ##
2484 ## ------------------- ##
2485 _ASBOX
2486 echo
2487 for ac_var in $ac_subst_files
2489 eval ac_val=\$$ac_var
2490 case $ac_val in
2491 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2492 esac
2493 $as_echo "$ac_var='\''$ac_val'\''"
2494 done | sort
2495 echo
2498 if test -s confdefs.h; then
2499 cat <<\_ASBOX
2500 ## ----------- ##
2501 ## confdefs.h. ##
2502 ## ----------- ##
2503 _ASBOX
2504 echo
2505 cat confdefs.h
2506 echo
2508 test "$ac_signal" != 0 &&
2509 $as_echo "$as_me: caught signal $ac_signal"
2510 $as_echo "$as_me: exit $exit_status"
2511 } >&5
2512 rm -f core *.core core.conftest.* &&
2513 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2514 exit $exit_status
2516 for ac_signal in 1 2 13 15; do
2517 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2518 done
2519 ac_signal=0
2521 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2522 rm -f -r conftest* confdefs.h
2524 $as_echo "/* confdefs.h */" > confdefs.h
2526 # Predefined preprocessor variables.
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_NAME "$PACKAGE_NAME"
2530 _ACEOF
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2534 _ACEOF
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2538 _ACEOF
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_STRING "$PACKAGE_STRING"
2542 _ACEOF
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2546 _ACEOF
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_URL "$PACKAGE_URL"
2550 _ACEOF
2553 # Let the site file select an alternate cache file if it wants to.
2554 # Prefer an explicitly selected file to automatically selected ones.
2555 ac_site_file1=NONE
2556 ac_site_file2=NONE
2557 if test -n "$CONFIG_SITE"; then
2558 ac_site_file1=$CONFIG_SITE
2559 elif test "x$prefix" != xNONE; then
2560 ac_site_file1=$prefix/share/config.site
2561 ac_site_file2=$prefix/etc/config.site
2562 else
2563 ac_site_file1=$ac_default_prefix/share/config.site
2564 ac_site_file2=$ac_default_prefix/etc/config.site
2566 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2568 test "x$ac_site_file" = xNONE && continue
2569 if test -r "$ac_site_file"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2571 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2572 sed 's/^/| /' "$ac_site_file" >&5
2573 . "$ac_site_file"
2575 done
2577 if test -r "$cache_file"; then
2578 # Some versions of bash will fail to source /dev/null (special
2579 # files actually), so we avoid doing that.
2580 if test -f "$cache_file"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2582 $as_echo "$as_me: loading cache $cache_file" >&6;}
2583 case $cache_file in
2584 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2585 *) . "./$cache_file";;
2586 esac
2588 else
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2590 $as_echo "$as_me: creating cache $cache_file" >&6;}
2591 >$cache_file
2594 # Check that the precious variables saved in the cache have kept the same
2595 # value.
2596 ac_cache_corrupted=false
2597 for ac_var in $ac_precious_vars; do
2598 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2599 eval ac_new_set=\$ac_env_${ac_var}_set
2600 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2601 eval ac_new_val=\$ac_env_${ac_var}_value
2602 case $ac_old_set,$ac_new_set in
2603 set,)
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2605 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2606 ac_cache_corrupted=: ;;
2607 ,set)
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2609 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2610 ac_cache_corrupted=: ;;
2611 ,);;
2613 if test "x$ac_old_val" != "x$ac_new_val"; then
2614 # differences in whitespace do not lead to failure.
2615 ac_old_val_w=`echo x $ac_old_val`
2616 ac_new_val_w=`echo x $ac_new_val`
2617 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2619 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2620 ac_cache_corrupted=:
2621 else
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2623 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2624 eval $ac_var=\$ac_old_val
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2627 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2629 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2630 fi;;
2631 esac
2632 # Pass precious variables to config.status.
2633 if test "$ac_new_set" = set; then
2634 case $ac_new_val in
2635 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2636 *) ac_arg=$ac_var=$ac_new_val ;;
2637 esac
2638 case " $ac_configure_args " in
2639 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2640 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2641 esac
2643 done
2644 if $ac_cache_corrupted; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2648 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2649 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2651 ## -------------------- ##
2652 ## Main body of script. ##
2653 ## -------------------- ##
2655 ac_ext=c
2656 ac_cpp='$CPP $CPPFLAGS'
2657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2667 ## GCJ LOCAL: gcc tree uses maintainer mode.
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2670 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2671 # Check whether --enable-maintainer-mode was given.
2672 if test "${enable_maintainer_mode+set}" = set; then :
2673 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2674 else
2675 USE_MAINTAINER_MODE=no
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2679 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2680 if test $USE_MAINTAINER_MODE = yes; then
2681 MAINTAINER_MODE_TRUE=
2682 MAINTAINER_MODE_FALSE='#'
2683 else
2684 MAINTAINER_MODE_TRUE='#'
2685 MAINTAINER_MODE_FALSE=
2688 MAINT=$MAINTAINER_MODE_TRUE
2692 # Default to --enable-multilib
2693 # Check whether --enable-multilib was given.
2694 if test "${enable_multilib+set}" = set; then :
2695 enableval=$enable_multilib; case "$enableval" in
2696 yes) multilib=yes ;;
2697 no) multilib=no ;;
2698 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2699 esac
2700 else
2701 multilib=yes
2705 # We may get other options which we leave undocumented:
2706 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2707 # See config-ml.in if you want the gory details.
2709 if test "$srcdir" = "."; then
2710 if test "$with_target_subdir" != "."; then
2711 multi_basedir="$srcdir/$with_multisrctop../../.."
2712 else
2713 multi_basedir="$srcdir/$with_multisrctop../.."
2715 else
2716 multi_basedir="$srcdir/../.."
2720 # Even if the default multilib is not a cross compilation,
2721 # it may be that some of the other multilibs are.
2722 if test $cross_compiling = no && test $multilib = yes \
2723 && test "x${with_multisubdir}" != x ; then
2724 cross_compiling=maybe
2727 ac_config_commands="$ac_config_commands default-1"
2730 ## ------------------------------- ##
2731 ## Libltdl specific configuration. ##
2732 ## ------------------------------- ##
2734 ac_aux_dir=
2735 for ac_dir in . "$srcdir"/.; do
2736 for ac_t in install-sh install.sh shtool; do
2737 if test -f "$ac_dir/$ac_t"; then
2738 ac_aux_dir=$ac_dir
2739 ac_install_sh="$ac_aux_dir/$ac_t -c"
2740 break 2
2742 done
2743 done
2744 if test -z "$ac_aux_dir"; then
2745 as_fn_error "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2748 # These three variables are undocumented and unsupported,
2749 # and are intended to be withdrawn in a future Autoconf release.
2750 # They can cause serious problems if a builder's source tree is in a directory
2751 # whose full name contains unusual characters.
2752 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2753 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2754 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2758 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
2759 if test -f ${srcdir}/ltmain.sh; then
2760 # if libltdl is libtoolized, it is assumed to be stand-alone and
2761 # installed unless the command line overrides it (tested above)
2762 enable_ltdl_install=yes
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The top-level configure must select either" >&5
2765 $as_echo "$as_me: WARNING: *** The top-level configure must select either" >&2;}
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5
2767 $as_echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;}
2768 as_fn_error "*** Maybe you want to --enable-ltdl-install?" "$LINENO" 5
2773 ## ------------------------ ##
2774 ## Automake Initialisation. ##
2775 ## ------------------------ ##
2776 am__api_version='1.11'
2778 # Find a good install program. We prefer a C program (faster),
2779 # so one script is as good as another. But avoid the broken or
2780 # incompatible versions:
2781 # SysV /etc/install, /usr/sbin/install
2782 # SunOS /usr/etc/install
2783 # IRIX /sbin/install
2784 # AIX /bin/install
2785 # AmigaOS /C/install, which installs bootblocks on floppy discs
2786 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2787 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2788 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2789 # OS/2's system install, which has a completely different semantic
2790 # ./install, which can be erroneously created by make from ./install.sh.
2791 # Reject install programs that cannot install multiple files.
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2793 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2794 if test -z "$INSTALL"; then
2795 if test "${ac_cv_path_install+set}" = set; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 # Account for people who put trailing slashes in PATH elements.
2804 case $as_dir/ in #((
2805 ./ | .// | /[cC]/* | \
2806 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2807 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2808 /usr/ucb/* ) ;;
2810 # OSF1 and SCO ODT 3.0 have their own names for install.
2811 # Don't use installbsd from OSF since it installs stuff as root
2812 # by default.
2813 for ac_prog in ginstall scoinst install; do
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2816 if test $ac_prog = install &&
2817 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2818 # AIX install. It has an incompatible calling convention.
2820 elif test $ac_prog = install &&
2821 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2822 # program-specific install script used by HP pwplus--don't use.
2824 else
2825 rm -rf conftest.one conftest.two conftest.dir
2826 echo one > conftest.one
2827 echo two > conftest.two
2828 mkdir conftest.dir
2829 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2830 test -s conftest.one && test -s conftest.two &&
2831 test -s conftest.dir/conftest.one &&
2832 test -s conftest.dir/conftest.two
2833 then
2834 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2835 break 3
2839 done
2840 done
2842 esac
2844 done
2845 IFS=$as_save_IFS
2847 rm -rf conftest.one conftest.two conftest.dir
2850 if test "${ac_cv_path_install+set}" = set; then
2851 INSTALL=$ac_cv_path_install
2852 else
2853 # As a last resort, use the slow shell script. Don't cache a
2854 # value for INSTALL within a source directory, because that will
2855 # break other packages using the cache if that directory is
2856 # removed, or if the value is a relative name.
2857 INSTALL=$ac_install_sh
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2861 $as_echo "$INSTALL" >&6; }
2863 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2864 # It thinks the first close brace ends the variable substitution.
2865 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2867 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2869 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2872 $as_echo_n "checking whether build environment is sane... " >&6; }
2873 # Just in case
2874 sleep 1
2875 echo timestamp > conftest.file
2876 # Reject unsafe characters in $srcdir or the absolute working directory
2877 # name. Accept space and tab only in the latter.
2878 am_lf='
2880 case `pwd` in
2881 *[\\\"\#\$\&\'\`$am_lf]*)
2882 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2883 esac
2884 case $srcdir in
2885 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2886 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2887 esac
2889 # Do `set' in a subshell so we don't clobber the current shell's
2890 # arguments. Must try -L first in case configure is actually a
2891 # symlink; some systems play weird games with the mod time of symlinks
2892 # (eg FreeBSD returns the mod time of the symlink's containing
2893 # directory).
2894 if (
2895 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2896 if test "$*" = "X"; then
2897 # -L didn't work.
2898 set X `ls -t "$srcdir/configure" conftest.file`
2900 rm -f conftest.file
2901 if test "$*" != "X $srcdir/configure conftest.file" \
2902 && test "$*" != "X conftest.file $srcdir/configure"; then
2904 # If neither matched, then we have a broken ls. This can happen
2905 # if, for instance, CONFIG_SHELL is bash and it inherits a
2906 # broken ls alias from the environment. This has actually
2907 # happened. Such a system could not be considered "sane".
2908 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2909 alias in your environment" "$LINENO" 5
2912 test "$2" = conftest.file
2914 then
2915 # Ok.
2917 else
2918 as_fn_error "newly created file is older than distributed files!
2919 Check your system clock" "$LINENO" 5
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922 $as_echo "yes" >&6; }
2923 test "$program_prefix" != NONE &&
2924 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2925 # Use a double $ so make ignores it.
2926 test "$program_suffix" != NONE &&
2927 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2928 # Double any \ or $.
2929 # By default was `s,x,x', remove it if useless.
2930 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2931 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2933 # expand $ac_aux_dir to an absolute path
2934 am_aux_dir=`cd $ac_aux_dir && pwd`
2936 if test x"${MISSING+set}" != xset; then
2937 case $am_aux_dir in
2938 *\ * | *\ *)
2939 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2941 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2942 esac
2944 # Use eval to expand $SHELL
2945 if eval "$MISSING --run true"; then
2946 am_missing_run="$MISSING --run "
2947 else
2948 am_missing_run=
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2950 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2953 if test x"${install_sh}" != xset; then
2954 case $am_aux_dir in
2955 *\ * | *\ *)
2956 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2958 install_sh="\${SHELL} $am_aux_dir/install-sh"
2959 esac
2962 # Installed binaries are usually stripped using `strip' when the user
2963 # run `make install-strip'. However `strip' might not be the right
2964 # tool to use in cross-compilation environments, therefore Automake
2965 # will honor the `STRIP' environment variable to overrule this program.
2966 if test "$cross_compiling" != no; then
2967 if test -n "$ac_tool_prefix"; then
2968 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}strip; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if test "${ac_cv_prog_STRIP+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$STRIP"; then
2976 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2989 done
2990 done
2991 IFS=$as_save_IFS
2995 STRIP=$ac_cv_prog_STRIP
2996 if test -n "$STRIP"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2998 $as_echo "$STRIP" >&6; }
2999 else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3006 if test -z "$ac_cv_prog_STRIP"; then
3007 ac_ct_STRIP=$STRIP
3008 # Extract the first word of "strip", so it can be a program name with args.
3009 set dummy strip; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$ac_ct_STRIP"; then
3016 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_ac_ct_STRIP="strip"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3029 done
3030 done
3031 IFS=$as_save_IFS
3035 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3036 if test -n "$ac_ct_STRIP"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3038 $as_echo "$ac_ct_STRIP" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3044 if test "x$ac_ct_STRIP" = x; then
3045 STRIP=":"
3046 else
3047 case $cross_compiling:$ac_tool_warned in
3048 yes:)
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3051 ac_tool_warned=yes ;;
3052 esac
3053 STRIP=$ac_ct_STRIP
3055 else
3056 STRIP="$ac_cv_prog_STRIP"
3060 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3063 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3064 if test -z "$MKDIR_P"; then
3065 if test "${ac_cv_path_mkdir+set}" = set; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_prog in mkdir gmkdir; do
3074 for ac_exec_ext in '' $ac_executable_extensions; do
3075 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3076 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3077 'mkdir (GNU coreutils) '* | \
3078 'mkdir (coreutils) '* | \
3079 'mkdir (fileutils) '4.1*)
3080 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3081 break 3;;
3082 esac
3083 done
3084 done
3085 done
3086 IFS=$as_save_IFS
3090 if test "${ac_cv_path_mkdir+set}" = set; then
3091 MKDIR_P="$ac_cv_path_mkdir -p"
3092 else
3093 # As a last resort, use the slow shell script. Don't cache a
3094 # value for MKDIR_P within a source directory, because that will
3095 # break other packages using the cache if that directory is
3096 # removed, or if the value is a relative name.
3097 test -d ./--version && rmdir ./--version
3098 MKDIR_P="$ac_install_sh -d"
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3102 $as_echo "$MKDIR_P" >&6; }
3104 mkdir_p="$MKDIR_P"
3105 case $mkdir_p in
3106 [\\/$]* | ?:[\\/]*) ;;
3107 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3108 esac
3110 for ac_prog in gawk mawk nawk awk
3112 # Extract the first word of "$ac_prog", so it can be a program name with args.
3113 set dummy $ac_prog; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if test "${ac_cv_prog_AWK+set}" = set; then :
3117 $as_echo_n "(cached) " >&6
3118 else
3119 if test -n "$AWK"; then
3120 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3121 else
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 for as_dir in $PATH
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_AWK="$ac_prog"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 break 2
3133 done
3134 done
3135 IFS=$as_save_IFS
3139 AWK=$ac_cv_prog_AWK
3140 if test -n "$AWK"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3142 $as_echo "$AWK" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3149 test -n "$AWK" && break
3150 done
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3153 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3154 set x ${MAKE-make}
3155 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3156 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 cat >conftest.make <<\_ACEOF
3160 SHELL = /bin/sh
3161 all:
3162 @echo '@@@%%%=$(MAKE)=@@@%%%'
3163 _ACEOF
3164 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3165 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3166 *@@@%%%=?*=@@@%%%*)
3167 eval ac_cv_prog_make_${ac_make}_set=yes;;
3169 eval ac_cv_prog_make_${ac_make}_set=no;;
3170 esac
3171 rm -f conftest.make
3173 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175 $as_echo "yes" >&6; }
3176 SET_MAKE=
3177 else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 SET_MAKE="MAKE=${MAKE-make}"
3183 rm -rf .tst 2>/dev/null
3184 mkdir .tst 2>/dev/null
3185 if test -d .tst; then
3186 am__leading_dot=.
3187 else
3188 am__leading_dot=_
3190 rmdir .tst 2>/dev/null
3192 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3193 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3194 # is not polluted with repeated "-I."
3195 am__isrc=' -I$(srcdir)'
3196 # test to see if srcdir already configured
3197 if test -f $srcdir/config.status; then
3198 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3202 # test whether we have cygpath
3203 if test -z "$CYGPATH_W"; then
3204 if (cygpath --version) >/dev/null 2>/dev/null; then
3205 CYGPATH_W='cygpath -w'
3206 else
3207 CYGPATH_W=echo
3212 # Define the identity of the package.
3213 PACKAGE=libltdl
3214 VERSION=1.2
3217 # Some tools Automake needs.
3219 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3222 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3225 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3228 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3231 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3233 # We need awk for the "check" target. The system "awk" is bad on
3234 # some platforms.
3235 # Always define AMTAR for backward compatibility.
3237 AMTAR=${AMTAR-"${am_missing_run}tar"}
3239 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3245 ac_config_headers="$ac_config_headers config.h:config-h.in"
3249 ## ------------------ ##
3250 ## C compiler checks. ##
3251 ## ------------------ ##
3252 ac_ext=c
3253 ac_cpp='$CPP $CPPFLAGS'
3254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3257 if test -n "$ac_tool_prefix"; then
3258 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3259 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261 $as_echo_n "checking for $ac_word... " >&6; }
3262 if test "${ac_cv_prog_CC+set}" = set; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 if test -n "$CC"; then
3266 ac_cv_prog_CC="$CC" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3271 IFS=$as_save_IFS
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3279 done
3280 done
3281 IFS=$as_save_IFS
3285 CC=$ac_cv_prog_CC
3286 if test -n "$CC"; then
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3288 $as_echo "$CC" >&6; }
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3296 if test -z "$ac_cv_prog_CC"; then
3297 ac_ct_CC=$CC
3298 # Extract the first word of "gcc", so it can be a program name with args.
3299 set dummy gcc; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3305 if test -n "$ac_ct_CC"; then
3306 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3315 ac_cv_prog_ac_ct_CC="gcc"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3319 done
3320 done
3321 IFS=$as_save_IFS
3325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3326 if test -n "$ac_ct_CC"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3328 $as_echo "$ac_ct_CC" >&6; }
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3334 if test "x$ac_ct_CC" = x; then
3335 CC=""
3336 else
3337 case $cross_compiling:$ac_tool_warned in
3338 yes:)
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3341 ac_tool_warned=yes ;;
3342 esac
3343 CC=$ac_ct_CC
3345 else
3346 CC="$ac_cv_prog_CC"
3349 if test -z "$CC"; then
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}cc; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if test "${ac_cv_prog_CC+set}" = set; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 if test -n "$CC"; then
3359 ac_cv_prog_CC="$CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3368 ac_cv_prog_CC="${ac_tool_prefix}cc"
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 break 2
3372 done
3373 done
3374 IFS=$as_save_IFS
3378 CC=$ac_cv_prog_CC
3379 if test -n "$CC"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3381 $as_echo "$CC" >&6; }
3382 else
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3390 if test -z "$CC"; then
3391 # Extract the first word of "cc", so it can be a program name with args.
3392 set dummy cc; ac_word=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if test "${ac_cv_prog_CC+set}" = set; then :
3396 $as_echo_n "(cached) " >&6
3397 else
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3400 else
3401 ac_prog_rejected=no
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3405 IFS=$as_save_IFS
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3410 ac_prog_rejected=yes
3411 continue
3413 ac_cv_prog_CC="cc"
3414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3415 break 2
3417 done
3418 done
3419 IFS=$as_save_IFS
3421 if test $ac_prog_rejected = yes; then
3422 # We found a bogon in the path, so make sure we never use it.
3423 set dummy $ac_cv_prog_CC
3424 shift
3425 if test $# != 0; then
3426 # We chose a different compiler from the bogus one.
3427 # However, it has the same basename, so the bogon will be chosen
3428 # first if we set CC to just the basename; use the full file name.
3429 shift
3430 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3439 else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3446 if test -z "$CC"; then
3447 if test -n "$ac_tool_prefix"; then
3448 for ac_prog in cl.exe
3450 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3451 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3453 $as_echo_n "checking for $ac_word... " >&6; }
3454 if test "${ac_cv_prog_CC+set}" = set; then :
3455 $as_echo_n "(cached) " >&6
3456 else
3457 if test -n "$CC"; then
3458 ac_cv_prog_CC="$CC" # Let the user override the test.
3459 else
3460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3463 IFS=$as_save_IFS
3464 test -z "$as_dir" && as_dir=.
3465 for ac_exec_ext in '' $ac_executable_extensions; do
3466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3467 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 break 2
3471 done
3472 done
3473 IFS=$as_save_IFS
3477 CC=$ac_cv_prog_CC
3478 if test -n "$CC"; then
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480 $as_echo "$CC" >&6; }
3481 else
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483 $as_echo "no" >&6; }
3487 test -n "$CC" && break
3488 done
3490 if test -z "$CC"; then
3491 ac_ct_CC=$CC
3492 for ac_prog in cl.exe
3494 # Extract the first word of "$ac_prog", so it can be a program name with args.
3495 set dummy $ac_prog; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 if test -n "$ac_ct_CC"; then
3502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_prog_ac_ct_CC="$ac_prog"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3515 done
3516 done
3517 IFS=$as_save_IFS
3521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3522 if test -n "$ac_ct_CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3524 $as_echo "$ac_ct_CC" >&6; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3531 test -n "$ac_ct_CC" && break
3532 done
3534 if test "x$ac_ct_CC" = x; then
3535 CC=""
3536 else
3537 case $cross_compiling:$ac_tool_warned in
3538 yes:)
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3541 ac_tool_warned=yes ;;
3542 esac
3543 CC=$ac_ct_CC
3550 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error "no acceptable C compiler found in \$PATH
3553 See \`config.log' for more details." "$LINENO" 5; }
3555 # Provide some information about the compiler.
3556 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3557 set X $ac_compile
3558 ac_compiler=$2
3559 for ac_option in --version -v -V -qversion; do
3560 { { ac_try="$ac_compiler $ac_option >&5"
3561 case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564 esac
3565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566 $as_echo "$ac_try_echo"; } >&5
3567 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3568 ac_status=$?
3569 if test -s conftest.err; then
3570 sed '10a\
3571 ... rest of stderr output deleted ...
3572 10q' conftest.err >conftest.er1
3573 cat conftest.er1 >&5
3574 rm -f conftest.er1 conftest.err
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }
3578 done
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3584 main ()
3588 return 0;
3590 _ACEOF
3591 ac_clean_files_save=$ac_clean_files
3592 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3593 # Try to create an executable without -o first, disregard a.out.
3594 # It will help us diagnose broken compilers, and finding out an intuition
3595 # of exeext.
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3597 $as_echo_n "checking for C compiler default output file name... " >&6; }
3598 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3600 # The possible output files:
3601 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3603 ac_rmfiles=
3604 for ac_file in $ac_files
3606 case $ac_file in
3607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3608 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3609 esac
3610 done
3611 rm -f $ac_rmfiles
3613 if { { ac_try="$ac_link_default"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_link_default") 2>&5
3621 ac_status=$?
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; then :
3624 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3625 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3626 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3627 # so that the user can short-circuit this test for compilers unknown to
3628 # Autoconf.
3629 for ac_file in $ac_files ''
3631 test -f "$ac_file" || continue
3632 case $ac_file in
3633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3635 [ab].out )
3636 # We found the default executable, but exeext='' is most
3637 # certainly right.
3638 break;;
3639 *.* )
3640 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3641 then :; else
3642 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3644 # We set ac_cv_exeext here because the later test for it is not
3645 # safe: cross compilers may not add the suffix if given an `-o'
3646 # argument, so we may need to know it at that point already.
3647 # Even if this section looks crufty: it has the advantage of
3648 # actually working.
3649 break;;
3651 break;;
3652 esac
3653 done
3654 test "$ac_cv_exeext" = no && ac_cv_exeext=
3656 else
3657 ac_file=''
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3660 $as_echo "$ac_file" >&6; }
3661 if test -z "$ac_file"; then :
3662 $as_echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3667 { as_fn_set_status 77
3668 as_fn_error "C compiler cannot create executables
3669 See \`config.log' for more details." "$LINENO" 5; }; }
3671 ac_exeext=$ac_cv_exeext
3673 # Check that the compiler produces executables we can run. If not, either
3674 # the compiler is broken, or we cross compile.
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3676 $as_echo_n "checking whether the C compiler works... " >&6; }
3677 # If not cross compiling, check that we can run a simple program.
3678 if test "$cross_compiling" != yes; then
3679 if { ac_try='./$ac_file'
3680 { { case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3683 esac
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686 (eval "$ac_try") 2>&5
3687 ac_status=$?
3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689 test $ac_status = 0; }; }; then
3690 cross_compiling=no
3691 else
3692 if test "$cross_compiling" = maybe; then
3693 cross_compiling=yes
3694 else
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697 as_fn_error "cannot run C compiled programs.
3698 If you meant to cross compile, use \`--host'.
3699 See \`config.log' for more details." "$LINENO" 5; }
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3704 $as_echo "yes" >&6; }
3706 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3707 ac_clean_files=$ac_clean_files_save
3708 # Check that the compiler produces executables we can run. If not, either
3709 # the compiler is broken, or we cross compile.
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3711 $as_echo_n "checking whether we are cross compiling... " >&6; }
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3713 $as_echo "$cross_compiling" >&6; }
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3716 $as_echo_n "checking for suffix of executables... " >&6; }
3717 if { { ac_try="$ac_link"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
3724 (eval "$ac_link") 2>&5
3725 ac_status=$?
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }; then :
3728 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3729 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3730 # work properly (i.e., refer to `conftest.exe'), while it won't with
3731 # `rm'.
3732 for ac_file in conftest.exe conftest conftest.*; do
3733 test -f "$ac_file" || continue
3734 case $ac_file in
3735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3736 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3737 break;;
3738 * ) break;;
3739 esac
3740 done
3741 else
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error "cannot compute suffix of executables: cannot compile and link
3745 See \`config.log' for more details." "$LINENO" 5; }
3747 rm -f conftest$ac_cv_exeext
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3749 $as_echo "$ac_cv_exeext" >&6; }
3751 rm -f conftest.$ac_ext
3752 EXEEXT=$ac_cv_exeext
3753 ac_exeext=$EXEEXT
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3755 $as_echo_n "checking for suffix of object files... " >&6; }
3756 if test "${ac_cv_objext+set}" = set; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3763 main ()
3767 return 0;
3769 _ACEOF
3770 rm -f conftest.o conftest.obj
3771 if { { ac_try="$ac_compile"
3772 case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3775 esac
3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777 $as_echo "$ac_try_echo"; } >&5
3778 (eval "$ac_compile") 2>&5
3779 ac_status=$?
3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781 test $ac_status = 0; }; then :
3782 for ac_file in conftest.o conftest.obj conftest.*; do
3783 test -f "$ac_file" || continue;
3784 case $ac_file in
3785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3786 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3787 break;;
3788 esac
3789 done
3790 else
3791 $as_echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 as_fn_error "cannot compute suffix of object files: cannot compile
3797 See \`config.log' for more details." "$LINENO" 5; }
3799 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3802 $as_echo "$ac_cv_objext" >&6; }
3803 OBJEXT=$ac_cv_objext
3804 ac_objext=$OBJEXT
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3806 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3807 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3808 $as_echo_n "(cached) " >&6
3809 else
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3814 main ()
3816 #ifndef __GNUC__
3817 choke me
3818 #endif
3821 return 0;
3823 _ACEOF
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_compiler_gnu=yes
3826 else
3827 ac_compiler_gnu=no
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3834 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3835 if test $ac_compiler_gnu = yes; then
3836 GCC=yes
3837 else
3838 GCC=
3840 ac_test_CFLAGS=${CFLAGS+set}
3841 ac_save_CFLAGS=$CFLAGS
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3843 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3844 if test "${ac_cv_prog_cc_g+set}" = set; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 ac_save_c_werror_flag=$ac_c_werror_flag
3848 ac_c_werror_flag=yes
3849 ac_cv_prog_cc_g=no
3850 CFLAGS="-g"
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852 /* end confdefs.h. */
3855 main ()
3859 return 0;
3861 _ACEOF
3862 if ac_fn_c_try_compile "$LINENO"; then :
3863 ac_cv_prog_cc_g=yes
3864 else
3865 CFLAGS=""
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3870 main ()
3874 return 0;
3876 _ACEOF
3877 if ac_fn_c_try_compile "$LINENO"; then :
3879 else
3880 ac_c_werror_flag=$ac_save_c_werror_flag
3881 CFLAGS="-g"
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3886 main ()
3890 return 0;
3892 _ACEOF
3893 if ac_fn_c_try_compile "$LINENO"; then :
3894 ac_cv_prog_cc_g=yes
3896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3904 $as_echo "$ac_cv_prog_cc_g" >&6; }
3905 if test "$ac_test_CFLAGS" = set; then
3906 CFLAGS=$ac_save_CFLAGS
3907 elif test $ac_cv_prog_cc_g = yes; then
3908 if test "$GCC" = yes; then
3909 CFLAGS="-g -O2"
3910 else
3911 CFLAGS="-g"
3913 else
3914 if test "$GCC" = yes; then
3915 CFLAGS="-O2"
3916 else
3917 CFLAGS=
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3921 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3922 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 ac_cv_prog_cc_c89=no
3926 ac_save_CC=$CC
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3929 #include <stdarg.h>
3930 #include <stdio.h>
3931 #include <sys/types.h>
3932 #include <sys/stat.h>
3933 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3934 struct buf { int x; };
3935 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3936 static char *e (p, i)
3937 char **p;
3938 int i;
3940 return p[i];
3942 static char *f (char * (*g) (char **, int), char **p, ...)
3944 char *s;
3945 va_list v;
3946 va_start (v,p);
3947 s = g (p, va_arg (v,int));
3948 va_end (v);
3949 return s;
3952 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3953 function prototypes and stuff, but not '\xHH' hex character constants.
3954 These don't provoke an error unfortunately, instead are silently treated
3955 as 'x'. The following induces an error, until -std is added to get
3956 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3957 array size at least. It's necessary to write '\x00'==0 to get something
3958 that's true only with -std. */
3959 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3961 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3962 inside strings and character constants. */
3963 #define FOO(x) 'x'
3964 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3966 int test (int i, double x);
3967 struct s1 {int (*f) (int a);};
3968 struct s2 {int (*f) (double a);};
3969 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3970 int argc;
3971 char **argv;
3973 main ()
3975 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3977 return 0;
3979 _ACEOF
3980 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3981 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3983 CC="$ac_save_CC $ac_arg"
3984 if ac_fn_c_try_compile "$LINENO"; then :
3985 ac_cv_prog_cc_c89=$ac_arg
3987 rm -f core conftest.err conftest.$ac_objext
3988 test "x$ac_cv_prog_cc_c89" != "xno" && break
3989 done
3990 rm -f conftest.$ac_ext
3991 CC=$ac_save_CC
3994 # AC_CACHE_VAL
3995 case "x$ac_cv_prog_cc_c89" in
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3998 $as_echo "none needed" >&6; } ;;
3999 xno)
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4001 $as_echo "unsupported" >&6; } ;;
4003 CC="$CC $ac_cv_prog_cc_c89"
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4005 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4006 esac
4007 if test "x$ac_cv_prog_cc_c89" != xno; then :
4011 ac_ext=c
4012 ac_cpp='$CPP $CPPFLAGS'
4013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4016 DEPDIR="${am__leading_dot}deps"
4018 ac_config_commands="$ac_config_commands depfiles"
4021 am_make=${MAKE-make}
4022 cat > confinc << 'END'
4023 am__doit:
4024 @echo this is the am__doit target
4025 .PHONY: am__doit
4027 # If we don't find an include directive, just comment out the code.
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4029 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4030 am__include="#"
4031 am__quote=
4032 _am_result=none
4033 # First try GNU make style include.
4034 echo "include confinc" > confmf
4035 # Ignore all kinds of additional output from `make'.
4036 case `$am_make -s -f confmf 2> /dev/null` in #(
4037 *the\ am__doit\ target*)
4038 am__include=include
4039 am__quote=
4040 _am_result=GNU
4042 esac
4043 # Now try BSD make style include.
4044 if test "$am__include" = "#"; then
4045 echo '.include "confinc"' > confmf
4046 case `$am_make -s -f confmf 2> /dev/null` in #(
4047 *the\ am__doit\ target*)
4048 am__include=.include
4049 am__quote="\""
4050 _am_result=BSD
4052 esac
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4057 $as_echo "$_am_result" >&6; }
4058 rm -f confinc confmf
4060 # Check whether --enable-dependency-tracking was given.
4061 if test "${enable_dependency_tracking+set}" = set; then :
4062 enableval=$enable_dependency_tracking;
4065 if test "x$enable_dependency_tracking" != xno; then
4066 am_depcomp="$ac_aux_dir/depcomp"
4067 AMDEPBACKSLASH='\'
4069 if test "x$enable_dependency_tracking" != xno; then
4070 AMDEP_TRUE=
4071 AMDEP_FALSE='#'
4072 else
4073 AMDEP_TRUE='#'
4074 AMDEP_FALSE=
4079 depcc="$CC" am_compiler_list=
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4082 $as_echo_n "checking dependency style of $depcc... " >&6; }
4083 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4084 $as_echo_n "(cached) " >&6
4085 else
4086 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4087 # We make a subdir and do the tests there. Otherwise we can end up
4088 # making bogus files that we don't know about and never remove. For
4089 # instance it was reported that on HP-UX the gcc test will end up
4090 # making a dummy file named `D' -- because `-MD' means `put the output
4091 # in D'.
4092 mkdir conftest.dir
4093 # Copy depcomp to subdir because otherwise we won't find it if we're
4094 # using a relative directory.
4095 cp "$am_depcomp" conftest.dir
4096 cd conftest.dir
4097 # We will build objects and dependencies in a subdirectory because
4098 # it helps to detect inapplicable dependency modes. For instance
4099 # both Tru64's cc and ICC support -MD to output dependencies as a
4100 # side effect of compilation, but ICC will put the dependencies in
4101 # the current directory while Tru64 will put them in the object
4102 # directory.
4103 mkdir sub
4105 am_cv_CC_dependencies_compiler_type=none
4106 if test "$am_compiler_list" = ""; then
4107 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4109 am__universal=false
4110 case " $depcc " in #(
4111 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4112 esac
4114 for depmode in $am_compiler_list; do
4115 # Setup a source with many dependencies, because some compilers
4116 # like to wrap large dependency lists on column 80 (with \), and
4117 # we should not choose a depcomp mode which is confused by this.
4119 # We need to recreate these files for each test, as the compiler may
4120 # overwrite some of them when testing with obscure command lines.
4121 # This happens at least with the AIX C compiler.
4122 : > sub/conftest.c
4123 for i in 1 2 3 4 5 6; do
4124 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4125 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4126 # Solaris 8's {/usr,}/bin/sh.
4127 touch sub/conftst$i.h
4128 done
4129 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4131 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4132 # mode. It turns out that the SunPro C++ compiler does not properly
4133 # handle `-M -o', and we need to detect this. Also, some Intel
4134 # versions had trouble with output in subdirs
4135 am__obj=sub/conftest.${OBJEXT-o}
4136 am__minus_obj="-o $am__obj"
4137 case $depmode in
4138 gcc)
4139 # This depmode causes a compiler race in universal mode.
4140 test "$am__universal" = false || continue
4142 nosideeffect)
4143 # after this tag, mechanisms are not by side-effect, so they'll
4144 # only be used when explicitly requested
4145 if test "x$enable_dependency_tracking" = xyes; then
4146 continue
4147 else
4148 break
4151 msvisualcpp | msvcmsys)
4152 # This compiler won't grok `-c -o', but also, the minuso test has
4153 # not run yet. These depmodes are late enough in the game, and
4154 # so weak that their functioning should not be impacted.
4155 am__obj=conftest.${OBJEXT-o}
4156 am__minus_obj=
4158 none) break ;;
4159 esac
4160 if depmode=$depmode \
4161 source=sub/conftest.c object=$am__obj \
4162 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4163 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4164 >/dev/null 2>conftest.err &&
4165 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4166 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4167 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4168 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4169 # icc doesn't choke on unknown options, it will just issue warnings
4170 # or remarks (even with -Werror). So we grep stderr for any message
4171 # that says an option was ignored or not supported.
4172 # When given -MP, icc 7.0 and 7.1 complain thusly:
4173 # icc: Command line warning: ignoring option '-M'; no argument required
4174 # The diagnosis changed in icc 8.0:
4175 # icc: Command line remark: option '-MP' not supported
4176 if (grep 'ignoring option' conftest.err ||
4177 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4178 am_cv_CC_dependencies_compiler_type=$depmode
4179 break
4182 done
4184 cd ..
4185 rm -rf conftest.dir
4186 else
4187 am_cv_CC_dependencies_compiler_type=none
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4192 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4193 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4196 test "x$enable_dependency_tracking" != xno \
4197 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4198 am__fastdepCC_TRUE=
4199 am__fastdepCC_FALSE='#'
4200 else
4201 am__fastdepCC_TRUE='#'
4202 am__fastdepCC_FALSE=
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4208 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4209 if test "${ac_cv_c_const+set}" = set; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213 /* end confdefs.h. */
4216 main ()
4218 /* FIXME: Include the comments suggested by Paul. */
4219 #ifndef __cplusplus
4220 /* Ultrix mips cc rejects this. */
4221 typedef int charset[2];
4222 const charset cs;
4223 /* SunOS 4.1.1 cc rejects this. */
4224 char const *const *pcpcc;
4225 char **ppc;
4226 /* NEC SVR4.0.2 mips cc rejects this. */
4227 struct point {int x, y;};
4228 static struct point const zero = {0,0};
4229 /* AIX XL C 1.02.0.0 rejects this.
4230 It does not let you subtract one const X* pointer from another in
4231 an arm of an if-expression whose if-part is not a constant
4232 expression */
4233 const char *g = "string";
4234 pcpcc = &g + (g ? g-g : 0);
4235 /* HPUX 7.0 cc rejects these. */
4236 ++pcpcc;
4237 ppc = (char**) pcpcc;
4238 pcpcc = (char const *const *) ppc;
4239 { /* SCO 3.2v4 cc rejects this. */
4240 char *t;
4241 char const *s = 0 ? (char *) 0 : (char const *) 0;
4243 *t++ = 0;
4244 if (s) return 0;
4246 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4247 int x[] = {25, 17};
4248 const int *foo = &x[0];
4249 ++foo;
4251 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4252 typedef const int *iptr;
4253 iptr p = 0;
4254 ++p;
4256 { /* AIX XL C 1.02.0.0 rejects this saying
4257 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4258 struct s { int j; const int *ap[3]; };
4259 struct s *b; b->j = 5;
4261 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4262 const int foo = 10;
4263 if (!foo) return 0;
4265 return !cs[0] && !zero.x;
4266 #endif
4269 return 0;
4271 _ACEOF
4272 if ac_fn_c_try_compile "$LINENO"; then :
4273 ac_cv_c_const=yes
4274 else
4275 ac_cv_c_const=no
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4280 $as_echo "$ac_cv_c_const" >&6; }
4281 if test $ac_cv_c_const = no; then
4283 $as_echo "#define const /**/" >>confdefs.h
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4288 $as_echo_n "checking for inline... " >&6; }
4289 if test "${ac_cv_c_inline+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4291 else
4292 ac_cv_c_inline=no
4293 for ac_kw in inline __inline__ __inline; do
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 #ifndef __cplusplus
4297 typedef int foo_t;
4298 static $ac_kw foo_t static_foo () {return 0; }
4299 $ac_kw foo_t foo () {return 0; }
4300 #endif
4302 _ACEOF
4303 if ac_fn_c_try_compile "$LINENO"; then :
4304 ac_cv_c_inline=$ac_kw
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 test "$ac_cv_c_inline" != no && break
4308 done
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4312 $as_echo "$ac_cv_c_inline" >&6; }
4314 case $ac_cv_c_inline in
4315 inline | yes) ;;
4317 case $ac_cv_c_inline in
4318 no) ac_val=;;
4319 *) ac_val=$ac_cv_c_inline;;
4320 esac
4321 cat >>confdefs.h <<_ACEOF
4322 #ifndef __cplusplus
4323 #define inline $ac_val
4324 #endif
4325 _ACEOF
4327 esac
4331 ## ----------------------- ##
4332 ## Libtool initialisation. ##
4333 ## ----------------------- ##
4336 # Check whether --enable-shared was given.
4337 if test "${enable_shared+set}" = set; then :
4338 enableval=$enable_shared; p=${PACKAGE-default}
4339 case $enableval in
4340 yes) enable_shared=yes ;;
4341 no) enable_shared=no ;;
4343 enable_shared=no
4344 # Look at the argument we got. We use all the common list separators.
4345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4346 for pkg in $enableval; do
4347 IFS="$lt_save_ifs"
4348 if test "X$pkg" = "X$p"; then
4349 enable_shared=yes
4351 done
4352 IFS="$lt_save_ifs"
4354 esac
4355 else
4356 enable_shared=yes
4360 # Check whether --enable-static was given.
4361 if test "${enable_static+set}" = set; then :
4362 enableval=$enable_static; p=${PACKAGE-default}
4363 case $enableval in
4364 yes) enable_static=yes ;;
4365 no) enable_static=no ;;
4367 enable_static=no
4368 # Look at the argument we got. We use all the common list separators.
4369 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4370 for pkg in $enableval; do
4371 IFS="$lt_save_ifs"
4372 if test "X$pkg" = "X$p"; then
4373 enable_static=yes
4375 done
4376 IFS="$lt_save_ifs"
4378 esac
4379 else
4380 enable_static=yes
4384 # Check whether --enable-fast-install was given.
4385 if test "${enable_fast_install+set}" = set; then :
4386 enableval=$enable_fast_install; p=${PACKAGE-default}
4387 case $enableval in
4388 yes) enable_fast_install=yes ;;
4389 no) enable_fast_install=no ;;
4391 enable_fast_install=no
4392 # Look at the argument we got. We use all the common list separators.
4393 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4394 for pkg in $enableval; do
4395 IFS="$lt_save_ifs"
4396 if test "X$pkg" = "X$p"; then
4397 enable_fast_install=yes
4399 done
4400 IFS="$lt_save_ifs"
4402 esac
4403 else
4404 enable_fast_install=yes
4408 # Make sure we can run config.sub.
4409 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4410 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4413 $as_echo_n "checking build system type... " >&6; }
4414 if test "${ac_cv_build+set}" = set; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 ac_build_alias=$build_alias
4418 test "x$ac_build_alias" = x &&
4419 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4420 test "x$ac_build_alias" = x &&
4421 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4422 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4423 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4427 $as_echo "$ac_cv_build" >&6; }
4428 case $ac_cv_build in
4429 *-*-*) ;;
4430 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4431 esac
4432 build=$ac_cv_build
4433 ac_save_IFS=$IFS; IFS='-'
4434 set x $ac_cv_build
4435 shift
4436 build_cpu=$1
4437 build_vendor=$2
4438 shift; shift
4439 # Remember, the first character of IFS is used to create $*,
4440 # except with old shells:
4441 build_os=$*
4442 IFS=$ac_save_IFS
4443 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4447 $as_echo_n "checking host system type... " >&6; }
4448 if test "${ac_cv_host+set}" = set; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 if test "x$host_alias" = x; then
4452 ac_cv_host=$ac_cv_build
4453 else
4454 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4455 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4460 $as_echo "$ac_cv_host" >&6; }
4461 case $ac_cv_host in
4462 *-*-*) ;;
4463 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4464 esac
4465 host=$ac_cv_host
4466 ac_save_IFS=$IFS; IFS='-'
4467 set x $ac_cv_host
4468 shift
4469 host_cpu=$1
4470 host_vendor=$2
4471 shift; shift
4472 # Remember, the first character of IFS is used to create $*,
4473 # except with old shells:
4474 host_os=$*
4475 IFS=$ac_save_IFS
4476 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4480 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4481 if test "${lt_cv_path_SED+set}" = set; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 # Loop through the user's path and test for sed and gsed.
4485 # Then use that list of sed's as ones to test for truncation.
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for lt_ac_prog in sed gsed; do
4492 for ac_exec_ext in '' $ac_executable_extensions; do
4493 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4494 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4496 done
4497 done
4498 done
4499 lt_ac_max=0
4500 lt_ac_count=0
4501 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4502 # along with /bin/sed that truncates output.
4503 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4504 test ! -f $lt_ac_sed && continue
4505 cat /dev/null > conftest.in
4506 lt_ac_count=0
4507 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4508 # Check for GNU sed and select it if it is found.
4509 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4510 lt_cv_path_SED=$lt_ac_sed
4511 break
4513 while true; do
4514 cat conftest.in conftest.in >conftest.tmp
4515 mv conftest.tmp conftest.in
4516 cp conftest.in conftest.nl
4517 echo >>conftest.nl
4518 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4519 cmp -s conftest.out conftest.nl || break
4520 # 10000 chars as input seems more than enough
4521 test $lt_ac_count -gt 10 && break
4522 lt_ac_count=`expr $lt_ac_count + 1`
4523 if test $lt_ac_count -gt $lt_ac_max; then
4524 lt_ac_max=$lt_ac_count
4525 lt_cv_path_SED=$lt_ac_sed
4527 done
4528 done
4532 SED=$lt_cv_path_SED
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4534 $as_echo "$SED" >&6; }
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4537 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4538 if test "${ac_cv_path_GREP+set}" = set; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -z "$GREP"; then
4542 ac_path_GREP_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in grep ggrep; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4552 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4553 # Check for GNU ac_path_GREP and select it if it is found.
4554 # Check for GNU $ac_path_GREP
4555 case `"$ac_path_GREP" --version 2>&1` in
4556 *GNU*)
4557 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4559 ac_count=0
4560 $as_echo_n 0123456789 >"conftest.in"
4561 while :
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo 'GREP' >> "conftest.nl"
4567 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 as_fn_arith $ac_count + 1 && ac_count=$as_val
4570 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_GREP="$ac_path_GREP"
4573 ac_path_GREP_max=$ac_count
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4577 done
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 esac
4581 $ac_path_GREP_found && break 3
4582 done
4583 done
4584 done
4585 IFS=$as_save_IFS
4586 if test -z "$ac_cv_path_GREP"; then
4587 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4589 else
4590 ac_cv_path_GREP=$GREP
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4595 $as_echo "$ac_cv_path_GREP" >&6; }
4596 GREP="$ac_cv_path_GREP"
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4600 $as_echo_n "checking for egrep... " >&6; }
4601 if test "${ac_cv_path_EGREP+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4605 then ac_cv_path_EGREP="$GREP -E"
4606 else
4607 if test -z "$EGREP"; then
4608 ac_path_EGREP_found=false
4609 # Loop through the user's path and test for each of PROGNAME-LIST
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_prog in egrep; do
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4618 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4619 # Check for GNU ac_path_EGREP and select it if it is found.
4620 # Check for GNU $ac_path_EGREP
4621 case `"$ac_path_EGREP" --version 2>&1` in
4622 *GNU*)
4623 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4625 ac_count=0
4626 $as_echo_n 0123456789 >"conftest.in"
4627 while :
4629 cat "conftest.in" "conftest.in" >"conftest.tmp"
4630 mv "conftest.tmp" "conftest.in"
4631 cp "conftest.in" "conftest.nl"
4632 $as_echo 'EGREP' >> "conftest.nl"
4633 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4635 as_fn_arith $ac_count + 1 && ac_count=$as_val
4636 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4637 # Best one so far, save it but keep looking for a better one
4638 ac_cv_path_EGREP="$ac_path_EGREP"
4639 ac_path_EGREP_max=$ac_count
4641 # 10*(2^10) chars as input seems more than enough
4642 test $ac_count -gt 10 && break
4643 done
4644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4645 esac
4647 $ac_path_EGREP_found && break 3
4648 done
4649 done
4650 done
4651 IFS=$as_save_IFS
4652 if test -z "$ac_cv_path_EGREP"; then
4653 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4655 else
4656 ac_cv_path_EGREP=$EGREP
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4662 $as_echo "$ac_cv_path_EGREP" >&6; }
4663 EGREP="$ac_cv_path_EGREP"
4667 # Check whether --with-gnu-ld was given.
4668 if test "${with_gnu_ld+set}" = set; then :
4669 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4670 else
4671 with_gnu_ld=no
4674 ac_prog=ld
4675 if test "$GCC" = yes; then
4676 # Check if gcc -print-prog-name=ld gives a path.
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4678 $as_echo_n "checking for ld used by $CC... " >&6; }
4679 case $host in
4680 *-*-mingw*)
4681 # gcc leaves a trailing carriage return which upsets mingw
4682 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4684 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4685 esac
4686 case $ac_prog in
4687 # Accept absolute paths.
4688 [\\/]* | ?:[\\/]*)
4689 re_direlt='/[^/][^/]*/\.\./'
4690 # Canonicalize the pathname of ld
4691 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4692 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4693 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4694 done
4695 test -z "$LD" && LD="$ac_prog"
4698 # If it fails, then pretend we aren't using GCC.
4699 ac_prog=ld
4702 # If it is relative, then search for the first ld in PATH.
4703 with_gnu_ld=unknown
4705 esac
4706 elif test "$with_gnu_ld" = yes; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4708 $as_echo_n "checking for GNU ld... " >&6; }
4709 else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4711 $as_echo_n "checking for non-GNU ld... " >&6; }
4713 if test "${lt_cv_path_LD+set}" = set; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 if test -z "$LD"; then
4717 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4718 for ac_dir in $PATH; do
4719 IFS="$lt_save_ifs"
4720 test -z "$ac_dir" && ac_dir=.
4721 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4722 lt_cv_path_LD="$ac_dir/$ac_prog"
4723 # Check to see if the program is GNU ld. I'd rather use --version,
4724 # but apparently some GNU ld's only accept -v.
4725 # Break only if it was the GNU/non-GNU ld that we prefer.
4726 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4727 *GNU* | *'with BFD'*)
4728 test "$with_gnu_ld" != no && break
4731 test "$with_gnu_ld" != yes && break
4733 esac
4735 done
4736 IFS="$lt_save_ifs"
4737 else
4738 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4742 LD="$lt_cv_path_LD"
4743 if test -n "$LD"; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4745 $as_echo "$LD" >&6; }
4746 else
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748 $as_echo "no" >&6; }
4750 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4752 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4753 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4757 case `$LD -v 2>&1 </dev/null` in
4758 *GNU* | *'with BFD'*)
4759 lt_cv_prog_gnu_ld=yes
4762 lt_cv_prog_gnu_ld=no
4764 esac
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4767 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4768 with_gnu_ld=$lt_cv_prog_gnu_ld
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4772 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4773 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 lt_cv_ld_reload_flag='-r'
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4779 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4780 reload_flag=$lt_cv_ld_reload_flag
4781 case $reload_flag in
4782 "" | " "*) ;;
4783 *) reload_flag=" $reload_flag" ;;
4784 esac
4785 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4786 case $host_os in
4787 darwin*)
4788 if test "$GCC" = yes; then
4789 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4790 else
4791 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4794 esac
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4797 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4798 if test "${lt_cv_path_NM+set}" = set; then :
4799 $as_echo_n "(cached) " >&6
4800 else
4801 if test -n "$NM"; then
4802 # Let the user override the test.
4803 lt_cv_path_NM="$NM"
4804 else
4805 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4806 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4807 IFS="$lt_save_ifs"
4808 test -z "$ac_dir" && ac_dir=.
4809 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4810 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4811 # Check to see if the nm accepts a BSD-compat flag.
4812 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4813 # nm: unknown option "B" ignored
4814 # Tru64's nm complains that /dev/null is an invalid object file
4815 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4816 */dev/null* | *'Invalid file or object type'*)
4817 lt_cv_path_NM="$tmp_nm -B"
4818 break
4821 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4822 */dev/null*)
4823 lt_cv_path_NM="$tmp_nm -p"
4824 break
4827 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4828 continue # so that we can try to find one that supports BSD flags
4830 esac
4831 esac
4833 done
4834 IFS="$lt_save_ifs"
4835 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4839 $as_echo "$lt_cv_path_NM" >&6; }
4840 NM="$lt_cv_path_NM"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4843 $as_echo_n "checking whether ln -s works... " >&6; }
4844 LN_S=$as_ln_s
4845 if test "$LN_S" = "ln -s"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4847 $as_echo "yes" >&6; }
4848 else
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4850 $as_echo "no, using $LN_S" >&6; }
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4854 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4855 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 lt_cv_file_magic_cmd='$MAGIC_CMD'
4859 lt_cv_file_magic_test_file=
4860 lt_cv_deplibs_check_method='unknown'
4861 # Need to set the preceding variable on all platforms that support
4862 # interlibrary dependencies.
4863 # 'none' -- dependencies not supported.
4864 # `unknown' -- same as none, but documents that we really don't know.
4865 # 'pass_all' -- all dependencies passed with no checks.
4866 # 'test_compile' -- check by making test program.
4867 # 'file_magic [[regex]]' -- check by looking for files in library path
4868 # which responds to the $file_magic_cmd with a given extended regex.
4869 # If you have `file' or equivalent on your system and you're not sure
4870 # whether `pass_all' will *always* work, you probably want this one.
4872 case $host_os in
4873 aix4* | aix5*)
4874 lt_cv_deplibs_check_method=pass_all
4877 beos*)
4878 lt_cv_deplibs_check_method=pass_all
4881 bsdi[45]*)
4882 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4883 lt_cv_file_magic_cmd='/usr/bin/file -L'
4884 lt_cv_file_magic_test_file=/shlib/libc.so
4887 cygwin*)
4888 # func_win32_libid is a shell function defined in ltmain.sh
4889 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4890 lt_cv_file_magic_cmd='func_win32_libid'
4893 mingw* | pw32*)
4894 # Base MSYS/MinGW do not provide the 'file' command needed by
4895 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4896 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4897 lt_cv_file_magic_cmd='$OBJDUMP -f'
4900 darwin* | rhapsody*)
4901 lt_cv_deplibs_check_method=pass_all
4904 freebsd* | kfreebsd*-gnu | dragonfly*)
4905 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4906 case $host_cpu in
4907 i*86 )
4908 # Not sure whether the presence of OpenBSD here was a mistake.
4909 # Let's accept both of them until this is cleared up.
4910 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4911 lt_cv_file_magic_cmd=/usr/bin/file
4912 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4914 esac
4915 else
4916 lt_cv_deplibs_check_method=pass_all
4920 gnu*)
4921 lt_cv_deplibs_check_method=pass_all
4924 hpux10.20* | hpux11*)
4925 lt_cv_file_magic_cmd=/usr/bin/file
4926 case "$host_cpu" in
4927 ia64*)
4928 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4929 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4931 hppa*64*)
4932 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]'
4933 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4936 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4937 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4939 esac
4942 irix5* | irix6* | nonstopux*)
4943 case $LD in
4944 *-32|*"-32 ") libmagic=32-bit;;
4945 *-n32|*"-n32 ") libmagic=N32;;
4946 *-64|*"-64 ") libmagic=64-bit;;
4947 *) libmagic=never-match;;
4948 esac
4949 lt_cv_deplibs_check_method=pass_all
4952 # This must be Linux ELF.
4953 linux*)
4954 lt_cv_deplibs_check_method=pass_all
4957 netbsd*)
4958 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4960 else
4961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4965 newos6*)
4966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4967 lt_cv_file_magic_cmd=/usr/bin/file
4968 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4971 nto-qnx*)
4972 lt_cv_deplibs_check_method=unknown
4975 openbsd*)
4976 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4978 else
4979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4983 osf3* | osf4* | osf5*)
4984 lt_cv_deplibs_check_method=pass_all
4987 sco3.2v5*)
4988 lt_cv_deplibs_check_method=pass_all
4991 solaris*)
4992 lt_cv_deplibs_check_method=pass_all
4995 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4996 case $host_vendor in
4997 motorola)
4998 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]'
4999 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5001 ncr)
5002 lt_cv_deplibs_check_method=pass_all
5004 sequent)
5005 lt_cv_file_magic_cmd='/bin/file'
5006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5008 sni)
5009 lt_cv_file_magic_cmd='/bin/file'
5010 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5011 lt_cv_file_magic_test_file=/lib/libc.so
5013 siemens)
5014 lt_cv_deplibs_check_method=pass_all
5016 esac
5019 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5020 lt_cv_deplibs_check_method=pass_all
5022 esac
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5026 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5027 file_magic_cmd=$lt_cv_file_magic_cmd
5028 deplibs_check_method=$lt_cv_deplibs_check_method
5029 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5034 # If no C compiler was specified, use CC.
5035 LTCC=${LTCC-"$CC"}
5037 # Allow CC to be a program name with arguments.
5038 compiler=$CC
5040 # Check whether --enable-libtool-lock was given.
5041 if test "${enable_libtool_lock+set}" = set; then :
5042 enableval=$enable_libtool_lock;
5045 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5047 # Some flags need to be propagated to the compiler or linker for good
5048 # libtool support.
5049 case $host in
5050 ia64-*-hpux*)
5051 # Find out which ABI we are using.
5052 echo 'int i;' > conftest.$ac_ext
5053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5054 (eval $ac_compile) 2>&5
5055 ac_status=$?
5056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5057 test $ac_status = 0; }; then
5058 case `/usr/bin/file conftest.$ac_objext` in
5059 *ELF-32*)
5060 HPUX_IA64_MODE="32"
5062 *ELF-64*)
5063 HPUX_IA64_MODE="64"
5065 esac
5067 rm -rf conftest*
5069 *-*-irix6*)
5070 # Find out which ABI we are using.
5071 echo '#line 5071 "configure"' > conftest.$ac_ext
5072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5073 (eval $ac_compile) 2>&5
5074 ac_status=$?
5075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5076 test $ac_status = 0; }; then
5077 if test "$lt_cv_prog_gnu_ld" = yes; then
5078 case `/usr/bin/file conftest.$ac_objext` in
5079 *32-bit*)
5080 LD="${LD-ld} -melf32bsmip"
5082 *N32*)
5083 LD="${LD-ld} -melf32bmipn32"
5085 *64-bit*)
5086 LD="${LD-ld} -melf64bmip"
5088 esac
5089 else
5090 case `/usr/bin/file conftest.$ac_objext` in
5091 *32-bit*)
5092 LD="${LD-ld} -32"
5094 *N32*)
5095 LD="${LD-ld} -n32"
5097 *64-bit*)
5098 LD="${LD-ld} -64"
5100 esac
5103 rm -rf conftest*
5106 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5107 # Find out which ABI we are using.
5108 echo 'int i;' > conftest.$ac_ext
5109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5110 (eval $ac_compile) 2>&5
5111 ac_status=$?
5112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5113 test $ac_status = 0; }; then
5114 case "`/usr/bin/file conftest.o`" in
5115 *32-bit*)
5116 case $host in
5117 x86_64-*linux*)
5118 LD="${LD-ld} -m elf_i386"
5120 ppc64-*linux*|powerpc64-*linux*)
5121 LD="${LD-ld} -m elf32ppclinux"
5123 s390x-*linux*)
5124 LD="${LD-ld} -m elf_s390"
5126 sparc64-*linux*)
5127 LD="${LD-ld} -m elf32_sparc"
5129 esac
5131 *64-bit*)
5132 case $host in
5133 x86_64-*linux*)
5134 LD="${LD-ld} -m elf_x86_64"
5136 ppc*-*linux*|powerpc*-*linux*)
5137 LD="${LD-ld} -m elf64ppc"
5139 s390*-*linux*)
5140 LD="${LD-ld} -m elf64_s390"
5142 sparc*-*linux*)
5143 LD="${LD-ld} -m elf64_sparc"
5145 esac
5147 esac
5149 rm -rf conftest*
5152 *-*-sco3.2v5*)
5153 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5154 SAVE_CFLAGS="$CFLAGS"
5155 CFLAGS="$CFLAGS -belf"
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5157 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5158 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 ac_ext=c
5162 ac_cpp='$CPP $CPPFLAGS'
5163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5171 main ()
5175 return 0;
5177 _ACEOF
5178 if ac_fn_c_try_link "$LINENO"; then :
5179 lt_cv_cc_needs_belf=yes
5180 else
5181 lt_cv_cc_needs_belf=no
5183 rm -f core conftest.err conftest.$ac_objext \
5184 conftest$ac_exeext conftest.$ac_ext
5185 ac_ext=c
5186 ac_cpp='$CPP $CPPFLAGS'
5187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5193 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5194 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5195 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5196 CFLAGS="$SAVE_CFLAGS"
5199 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5200 if test -n "$ac_tool_prefix"; then
5201 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5202 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test -n "$DLLTOOL"; then
5209 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5222 done
5223 done
5224 IFS=$as_save_IFS
5228 DLLTOOL=$ac_cv_prog_DLLTOOL
5229 if test -n "$DLLTOOL"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5231 $as_echo "$DLLTOOL" >&6; }
5232 else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5239 if test -z "$ac_cv_prog_DLLTOOL"; then
5240 ac_ct_DLLTOOL=$DLLTOOL
5241 # Extract the first word of "dlltool", so it can be a program name with args.
5242 set dummy dlltool; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if test -n "$ac_ct_DLLTOOL"; then
5249 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5262 done
5263 done
5264 IFS=$as_save_IFS
5268 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5269 if test -n "$ac_ct_DLLTOOL"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5271 $as_echo "$ac_ct_DLLTOOL" >&6; }
5272 else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5277 if test "x$ac_ct_DLLTOOL" = x; then
5278 DLLTOOL="false"
5279 else
5280 case $cross_compiling:$ac_tool_warned in
5281 yes:)
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5284 ac_tool_warned=yes ;;
5285 esac
5286 DLLTOOL=$ac_ct_DLLTOOL
5288 else
5289 DLLTOOL="$ac_cv_prog_DLLTOOL"
5292 if test -n "$ac_tool_prefix"; then
5293 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5294 set dummy ${ac_tool_prefix}as; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if test "${ac_cv_prog_AS+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 if test -n "$AS"; then
5301 ac_cv_prog_AS="$AS" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_prog_AS="${ac_tool_prefix}as"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5314 done
5315 done
5316 IFS=$as_save_IFS
5320 AS=$ac_cv_prog_AS
5321 if test -n "$AS"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5323 $as_echo "$AS" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5331 if test -z "$ac_cv_prog_AS"; then
5332 ac_ct_AS=$AS
5333 # Extract the first word of "as", so it can be a program name with args.
5334 set dummy as; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 if test -n "$ac_ct_AS"; then
5341 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_prog_ac_ct_AS="as"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5354 done
5355 done
5356 IFS=$as_save_IFS
5360 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5361 if test -n "$ac_ct_AS"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5363 $as_echo "$ac_ct_AS" >&6; }
5364 else
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5369 if test "x$ac_ct_AS" = x; then
5370 AS="false"
5371 else
5372 case $cross_compiling:$ac_tool_warned in
5373 yes:)
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5376 ac_tool_warned=yes ;;
5377 esac
5378 AS=$ac_ct_AS
5380 else
5381 AS="$ac_cv_prog_AS"
5384 if test -n "$ac_tool_prefix"; then
5385 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5386 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 if test -n "$OBJDUMP"; then
5393 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5406 done
5407 done
5408 IFS=$as_save_IFS
5412 OBJDUMP=$ac_cv_prog_OBJDUMP
5413 if test -n "$OBJDUMP"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5415 $as_echo "$OBJDUMP" >&6; }
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5423 if test -z "$ac_cv_prog_OBJDUMP"; then
5424 ac_ct_OBJDUMP=$OBJDUMP
5425 # Extract the first word of "objdump", so it can be a program name with args.
5426 set dummy objdump; ac_word=$2
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428 $as_echo_n "checking for $ac_word... " >&6; }
5429 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 if test -n "$ac_ct_OBJDUMP"; then
5433 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5434 else
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5446 done
5447 done
5448 IFS=$as_save_IFS
5452 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5453 if test -n "$ac_ct_OBJDUMP"; then
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5455 $as_echo "$ac_ct_OBJDUMP" >&6; }
5456 else
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458 $as_echo "no" >&6; }
5461 if test "x$ac_ct_OBJDUMP" = x; then
5462 OBJDUMP="false"
5463 else
5464 case $cross_compiling:$ac_tool_warned in
5465 yes:)
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5468 ac_tool_warned=yes ;;
5469 esac
5470 OBJDUMP=$ac_ct_OBJDUMP
5472 else
5473 OBJDUMP="$ac_cv_prog_OBJDUMP"
5478 esac
5480 need_locks="$enable_libtool_lock"
5483 ac_ext=c
5484 ac_cpp='$CPP $CPPFLAGS'
5485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5489 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5490 # On Suns, sometimes $CPP names a directory.
5491 if test -n "$CPP" && test -d "$CPP"; then
5492 CPP=
5494 if test -z "$CPP"; then
5495 if test "${ac_cv_prog_CPP+set}" = set; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 # Double quotes because CPP needs to be expanded
5499 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5501 ac_preproc_ok=false
5502 for ac_c_preproc_warn_flag in '' yes
5504 # Use a header file that comes with gcc, so configuring glibc
5505 # with a fresh cross-compiler works.
5506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5507 # <limits.h> exists even on freestanding compilers.
5508 # On the NeXT, cc -E runs the code through the compiler's parser,
5509 # not just through cpp. "Syntax error" is here to catch this case.
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 #ifdef __STDC__
5513 # include <limits.h>
5514 #else
5515 # include <assert.h>
5516 #endif
5517 Syntax error
5518 _ACEOF
5519 if ac_fn_c_try_cpp "$LINENO"; then :
5521 else
5522 # Broken: fails on valid input.
5523 continue
5525 rm -f conftest.err conftest.$ac_ext
5527 # OK, works on sane cases. Now check whether nonexistent headers
5528 # can be detected and how.
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 #include <ac_nonexistent.h>
5532 _ACEOF
5533 if ac_fn_c_try_cpp "$LINENO"; then :
5534 # Broken: success on invalid input.
5535 continue
5536 else
5537 # Passes both tests.
5538 ac_preproc_ok=:
5539 break
5541 rm -f conftest.err conftest.$ac_ext
5543 done
5544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5545 rm -f conftest.err conftest.$ac_ext
5546 if $ac_preproc_ok; then :
5547 break
5550 done
5551 ac_cv_prog_CPP=$CPP
5554 CPP=$ac_cv_prog_CPP
5555 else
5556 ac_cv_prog_CPP=$CPP
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5559 $as_echo "$CPP" >&6; }
5560 ac_preproc_ok=false
5561 for ac_c_preproc_warn_flag in '' yes
5563 # Use a header file that comes with gcc, so configuring glibc
5564 # with a fresh cross-compiler works.
5565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5566 # <limits.h> exists even on freestanding compilers.
5567 # On the NeXT, cc -E runs the code through the compiler's parser,
5568 # not just through cpp. "Syntax error" is here to catch this case.
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 #ifdef __STDC__
5572 # include <limits.h>
5573 #else
5574 # include <assert.h>
5575 #endif
5576 Syntax error
5577 _ACEOF
5578 if ac_fn_c_try_cpp "$LINENO"; then :
5580 else
5581 # Broken: fails on valid input.
5582 continue
5584 rm -f conftest.err conftest.$ac_ext
5586 # OK, works on sane cases. Now check whether nonexistent headers
5587 # can be detected and how.
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5590 #include <ac_nonexistent.h>
5591 _ACEOF
5592 if ac_fn_c_try_cpp "$LINENO"; then :
5593 # Broken: success on invalid input.
5594 continue
5595 else
5596 # Passes both tests.
5597 ac_preproc_ok=:
5598 break
5600 rm -f conftest.err conftest.$ac_ext
5602 done
5603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5604 rm -f conftest.err conftest.$ac_ext
5605 if $ac_preproc_ok; then :
5607 else
5608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5610 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5611 See \`config.log' for more details." "$LINENO" 5; }
5614 ac_ext=c
5615 ac_cpp='$CPP $CPPFLAGS'
5616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5622 $as_echo_n "checking for ANSI C header files... " >&6; }
5623 if test "${ac_cv_header_stdc+set}" = set; then :
5624 $as_echo_n "(cached) " >&6
5625 else
5626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627 /* end confdefs.h. */
5628 #include <stdlib.h>
5629 #include <stdarg.h>
5630 #include <string.h>
5631 #include <float.h>
5634 main ()
5638 return 0;
5640 _ACEOF
5641 if ac_fn_c_try_compile "$LINENO"; then :
5642 ac_cv_header_stdc=yes
5643 else
5644 ac_cv_header_stdc=no
5646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5648 if test $ac_cv_header_stdc = yes; then
5649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 #include <string.h>
5654 _ACEOF
5655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5656 $EGREP "memchr" >/dev/null 2>&1; then :
5658 else
5659 ac_cv_header_stdc=no
5661 rm -f conftest*
5665 if test $ac_cv_header_stdc = yes; then
5666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5668 /* end confdefs.h. */
5669 #include <stdlib.h>
5671 _ACEOF
5672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5673 $EGREP "free" >/dev/null 2>&1; then :
5675 else
5676 ac_cv_header_stdc=no
5678 rm -f conftest*
5682 if test $ac_cv_header_stdc = yes; then
5683 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5684 if test "$cross_compiling" = yes; then :
5686 else
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 #include <ctype.h>
5690 #include <stdlib.h>
5691 #if ((' ' & 0x0FF) == 0x020)
5692 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5693 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5694 #else
5695 # define ISLOWER(c) \
5696 (('a' <= (c) && (c) <= 'i') \
5697 || ('j' <= (c) && (c) <= 'r') \
5698 || ('s' <= (c) && (c) <= 'z'))
5699 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5700 #endif
5702 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5704 main ()
5706 int i;
5707 for (i = 0; i < 256; i++)
5708 if (XOR (islower (i), ISLOWER (i))
5709 || toupper (i) != TOUPPER (i))
5710 return 2;
5711 return 0;
5713 _ACEOF
5714 if ac_fn_c_try_run "$LINENO"; then :
5716 else
5717 ac_cv_header_stdc=no
5719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5720 conftest.$ac_objext conftest.beam conftest.$ac_ext
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5726 $as_echo "$ac_cv_header_stdc" >&6; }
5727 if test $ac_cv_header_stdc = yes; then
5729 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5733 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5734 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5735 inttypes.h stdint.h unistd.h
5736 do :
5737 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5738 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5740 eval as_val=\$$as_ac_Header
5741 if test "x$as_val" = x""yes; then :
5742 cat >>confdefs.h <<_ACEOF
5743 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5744 _ACEOF
5748 done
5751 for ac_header in dlfcn.h
5752 do :
5753 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5754 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5755 cat >>confdefs.h <<_ACEOF
5756 #define HAVE_DLFCN_H 1
5757 _ACEOF
5761 done
5763 ac_ext=cpp
5764 ac_cpp='$CXXCPP $CPPFLAGS'
5765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5768 if test -z "$CXX"; then
5769 if test -n "$CCC"; then
5770 CXX=$CCC
5771 else
5772 if test -n "$ac_tool_prefix"; then
5773 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5775 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5776 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778 $as_echo_n "checking for $ac_word... " >&6; }
5779 if test "${ac_cv_prog_CXX+set}" = set; then :
5780 $as_echo_n "(cached) " >&6
5781 else
5782 if test -n "$CXX"; then
5783 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5784 else
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH
5788 IFS=$as_save_IFS
5789 test -z "$as_dir" && as_dir=.
5790 for ac_exec_ext in '' $ac_executable_extensions; do
5791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5792 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 break 2
5796 done
5797 done
5798 IFS=$as_save_IFS
5802 CXX=$ac_cv_prog_CXX
5803 if test -n "$CXX"; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5805 $as_echo "$CXX" >&6; }
5806 else
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 $as_echo "no" >&6; }
5812 test -n "$CXX" && break
5813 done
5815 if test -z "$CXX"; then
5816 ac_ct_CXX=$CXX
5817 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5819 # Extract the first word of "$ac_prog", so it can be a program name with args.
5820 set dummy $ac_prog; ac_word=$2
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822 $as_echo_n "checking for $ac_word... " >&6; }
5823 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5824 $as_echo_n "(cached) " >&6
5825 else
5826 if test -n "$ac_ct_CXX"; then
5827 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5828 else
5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 for as_dir in $PATH
5832 IFS=$as_save_IFS
5833 test -z "$as_dir" && as_dir=.
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836 ac_cv_prog_ac_ct_CXX="$ac_prog"
5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838 break 2
5840 done
5841 done
5842 IFS=$as_save_IFS
5846 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5847 if test -n "$ac_ct_CXX"; then
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5849 $as_echo "$ac_ct_CXX" >&6; }
5850 else
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 $as_echo "no" >&6; }
5856 test -n "$ac_ct_CXX" && break
5857 done
5859 if test "x$ac_ct_CXX" = x; then
5860 CXX="g++"
5861 else
5862 case $cross_compiling:$ac_tool_warned in
5863 yes:)
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5866 ac_tool_warned=yes ;;
5867 esac
5868 CXX=$ac_ct_CXX
5874 # Provide some information about the compiler.
5875 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5876 set X $ac_compile
5877 ac_compiler=$2
5878 for ac_option in --version -v -V -qversion; do
5879 { { ac_try="$ac_compiler $ac_option >&5"
5880 case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883 esac
5884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5885 $as_echo "$ac_try_echo"; } >&5
5886 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5887 ac_status=$?
5888 if test -s conftest.err; then
5889 sed '10a\
5890 ... rest of stderr output deleted ...
5891 10q' conftest.err >conftest.er1
5892 cat conftest.er1 >&5
5893 rm -f conftest.er1 conftest.err
5895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5896 test $ac_status = 0; }
5897 done
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5900 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5901 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905 /* end confdefs.h. */
5908 main ()
5910 #ifndef __GNUC__
5911 choke me
5912 #endif
5915 return 0;
5917 _ACEOF
5918 if ac_fn_cxx_try_compile "$LINENO"; then :
5919 ac_compiler_gnu=yes
5920 else
5921 ac_compiler_gnu=no
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5928 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5929 if test $ac_compiler_gnu = yes; then
5930 GXX=yes
5931 else
5932 GXX=
5934 ac_test_CXXFLAGS=${CXXFLAGS+set}
5935 ac_save_CXXFLAGS=$CXXFLAGS
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5937 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5938 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5942 ac_cxx_werror_flag=yes
5943 ac_cv_prog_cxx_g=no
5944 CXXFLAGS="-g"
5945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5946 /* end confdefs.h. */
5949 main ()
5953 return 0;
5955 _ACEOF
5956 if ac_fn_cxx_try_compile "$LINENO"; then :
5957 ac_cv_prog_cxx_g=yes
5958 else
5959 CXXFLAGS=""
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5964 main ()
5968 return 0;
5970 _ACEOF
5971 if ac_fn_cxx_try_compile "$LINENO"; then :
5973 else
5974 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5975 CXXFLAGS="-g"
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5980 main ()
5984 return 0;
5986 _ACEOF
5987 if ac_fn_cxx_try_compile "$LINENO"; then :
5988 ac_cv_prog_cxx_g=yes
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5998 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5999 if test "$ac_test_CXXFLAGS" = set; then
6000 CXXFLAGS=$ac_save_CXXFLAGS
6001 elif test $ac_cv_prog_cxx_g = yes; then
6002 if test "$GXX" = yes; then
6003 CXXFLAGS="-g -O2"
6004 else
6005 CXXFLAGS="-g"
6007 else
6008 if test "$GXX" = yes; then
6009 CXXFLAGS="-O2"
6010 else
6011 CXXFLAGS=
6014 ac_ext=cpp
6015 ac_cpp='$CXXCPP $CPPFLAGS'
6016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6020 depcc="$CXX" am_compiler_list=
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6023 $as_echo_n "checking dependency style of $depcc... " >&6; }
6024 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6028 # We make a subdir and do the tests there. Otherwise we can end up
6029 # making bogus files that we don't know about and never remove. For
6030 # instance it was reported that on HP-UX the gcc test will end up
6031 # making a dummy file named `D' -- because `-MD' means `put the output
6032 # in D'.
6033 mkdir conftest.dir
6034 # Copy depcomp to subdir because otherwise we won't find it if we're
6035 # using a relative directory.
6036 cp "$am_depcomp" conftest.dir
6037 cd conftest.dir
6038 # We will build objects and dependencies in a subdirectory because
6039 # it helps to detect inapplicable dependency modes. For instance
6040 # both Tru64's cc and ICC support -MD to output dependencies as a
6041 # side effect of compilation, but ICC will put the dependencies in
6042 # the current directory while Tru64 will put them in the object
6043 # directory.
6044 mkdir sub
6046 am_cv_CXX_dependencies_compiler_type=none
6047 if test "$am_compiler_list" = ""; then
6048 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6050 am__universal=false
6051 case " $depcc " in #(
6052 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6053 esac
6055 for depmode in $am_compiler_list; do
6056 # Setup a source with many dependencies, because some compilers
6057 # like to wrap large dependency lists on column 80 (with \), and
6058 # we should not choose a depcomp mode which is confused by this.
6060 # We need to recreate these files for each test, as the compiler may
6061 # overwrite some of them when testing with obscure command lines.
6062 # This happens at least with the AIX C compiler.
6063 : > sub/conftest.c
6064 for i in 1 2 3 4 5 6; do
6065 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6066 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6067 # Solaris 8's {/usr,}/bin/sh.
6068 touch sub/conftst$i.h
6069 done
6070 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6072 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6073 # mode. It turns out that the SunPro C++ compiler does not properly
6074 # handle `-M -o', and we need to detect this. Also, some Intel
6075 # versions had trouble with output in subdirs
6076 am__obj=sub/conftest.${OBJEXT-o}
6077 am__minus_obj="-o $am__obj"
6078 case $depmode in
6079 gcc)
6080 # This depmode causes a compiler race in universal mode.
6081 test "$am__universal" = false || continue
6083 nosideeffect)
6084 # after this tag, mechanisms are not by side-effect, so they'll
6085 # only be used when explicitly requested
6086 if test "x$enable_dependency_tracking" = xyes; then
6087 continue
6088 else
6089 break
6092 msvisualcpp | msvcmsys)
6093 # This compiler won't grok `-c -o', but also, the minuso test has
6094 # not run yet. These depmodes are late enough in the game, and
6095 # so weak that their functioning should not be impacted.
6096 am__obj=conftest.${OBJEXT-o}
6097 am__minus_obj=
6099 none) break ;;
6100 esac
6101 if depmode=$depmode \
6102 source=sub/conftest.c object=$am__obj \
6103 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6104 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6105 >/dev/null 2>conftest.err &&
6106 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6107 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6108 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6109 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6110 # icc doesn't choke on unknown options, it will just issue warnings
6111 # or remarks (even with -Werror). So we grep stderr for any message
6112 # that says an option was ignored or not supported.
6113 # When given -MP, icc 7.0 and 7.1 complain thusly:
6114 # icc: Command line warning: ignoring option '-M'; no argument required
6115 # The diagnosis changed in icc 8.0:
6116 # icc: Command line remark: option '-MP' not supported
6117 if (grep 'ignoring option' conftest.err ||
6118 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6119 am_cv_CXX_dependencies_compiler_type=$depmode
6120 break
6123 done
6125 cd ..
6126 rm -rf conftest.dir
6127 else
6128 am_cv_CXX_dependencies_compiler_type=none
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6133 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6134 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6137 test "x$enable_dependency_tracking" != xno \
6138 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6139 am__fastdepCXX_TRUE=
6140 am__fastdepCXX_FALSE='#'
6141 else
6142 am__fastdepCXX_TRUE='#'
6143 am__fastdepCXX_FALSE=
6149 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6150 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6151 (test "X$CXX" != "Xg++"))) ; then
6152 ac_ext=cpp
6153 ac_cpp='$CXXCPP $CPPFLAGS'
6154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6158 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6159 if test -z "$CXXCPP"; then
6160 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
6161 $as_echo_n "(cached) " >&6
6162 else
6163 # Double quotes because CXXCPP needs to be expanded
6164 for CXXCPP in "$CXX -E" "/lib/cpp"
6166 ac_preproc_ok=false
6167 for ac_cxx_preproc_warn_flag in '' yes
6169 # Use a header file that comes with gcc, so configuring glibc
6170 # with a fresh cross-compiler works.
6171 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6172 # <limits.h> exists even on freestanding compilers.
6173 # On the NeXT, cc -E runs the code through the compiler's parser,
6174 # not just through cpp. "Syntax error" is here to catch this case.
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6177 #ifdef __STDC__
6178 # include <limits.h>
6179 #else
6180 # include <assert.h>
6181 #endif
6182 Syntax error
6183 _ACEOF
6184 if ac_fn_cxx_try_cpp "$LINENO"; then :
6186 else
6187 # Broken: fails on valid input.
6188 continue
6190 rm -f conftest.err conftest.$ac_ext
6192 # OK, works on sane cases. Now check whether nonexistent headers
6193 # can be detected and how.
6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6196 #include <ac_nonexistent.h>
6197 _ACEOF
6198 if ac_fn_cxx_try_cpp "$LINENO"; then :
6199 # Broken: success on invalid input.
6200 continue
6201 else
6202 # Passes both tests.
6203 ac_preproc_ok=:
6204 break
6206 rm -f conftest.err conftest.$ac_ext
6208 done
6209 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6210 rm -f conftest.err conftest.$ac_ext
6211 if $ac_preproc_ok; then :
6212 break
6215 done
6216 ac_cv_prog_CXXCPP=$CXXCPP
6219 CXXCPP=$ac_cv_prog_CXXCPP
6220 else
6221 ac_cv_prog_CXXCPP=$CXXCPP
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6224 $as_echo "$CXXCPP" >&6; }
6225 ac_preproc_ok=false
6226 for ac_cxx_preproc_warn_flag in '' yes
6228 # Use a header file that comes with gcc, so configuring glibc
6229 # with a fresh cross-compiler works.
6230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6231 # <limits.h> exists even on freestanding compilers.
6232 # On the NeXT, cc -E runs the code through the compiler's parser,
6233 # not just through cpp. "Syntax error" is here to catch this case.
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 #ifdef __STDC__
6237 # include <limits.h>
6238 #else
6239 # include <assert.h>
6240 #endif
6241 Syntax error
6242 _ACEOF
6243 if ac_fn_cxx_try_cpp "$LINENO"; then :
6245 else
6246 # Broken: fails on valid input.
6247 continue
6249 rm -f conftest.err conftest.$ac_ext
6251 # OK, works on sane cases. Now check whether nonexistent headers
6252 # can be detected and how.
6253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6254 /* end confdefs.h. */
6255 #include <ac_nonexistent.h>
6256 _ACEOF
6257 if ac_fn_cxx_try_cpp "$LINENO"; then :
6258 # Broken: success on invalid input.
6259 continue
6260 else
6261 # Passes both tests.
6262 ac_preproc_ok=:
6263 break
6265 rm -f conftest.err conftest.$ac_ext
6267 done
6268 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6269 rm -f conftest.err conftest.$ac_ext
6270 if $ac_preproc_ok; then :
6272 else
6273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6275 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
6276 See \`config.log' for more details." "$LINENO" 5; }
6279 ac_ext=cpp
6280 ac_cpp='$CXXCPP $CPPFLAGS'
6281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6288 ac_ext=f
6289 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6290 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6291 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6292 if test -n "$ac_tool_prefix"; then
6293 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6295 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6296 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if test "${ac_cv_prog_F77+set}" = set; then :
6300 $as_echo_n "(cached) " >&6
6301 else
6302 if test -n "$F77"; then
6303 ac_cv_prog_F77="$F77" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6308 IFS=$as_save_IFS
6309 test -z "$as_dir" && as_dir=.
6310 for ac_exec_ext in '' $ac_executable_extensions; do
6311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314 break 2
6316 done
6317 done
6318 IFS=$as_save_IFS
6322 F77=$ac_cv_prog_F77
6323 if test -n "$F77"; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6325 $as_echo "$F77" >&6; }
6326 else
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6332 test -n "$F77" && break
6333 done
6335 if test -z "$F77"; then
6336 ac_ct_F77=$F77
6337 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6339 # Extract the first word of "$ac_prog", so it can be a program name with args.
6340 set dummy $ac_prog; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 if test -n "$ac_ct_F77"; then
6347 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6356 ac_cv_prog_ac_ct_F77="$ac_prog"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6360 done
6361 done
6362 IFS=$as_save_IFS
6366 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6367 if test -n "$ac_ct_F77"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6369 $as_echo "$ac_ct_F77" >&6; }
6370 else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6376 test -n "$ac_ct_F77" && break
6377 done
6379 if test "x$ac_ct_F77" = x; then
6380 F77=""
6381 else
6382 case $cross_compiling:$ac_tool_warned in
6383 yes:)
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6386 ac_tool_warned=yes ;;
6387 esac
6388 F77=$ac_ct_F77
6393 # Provide some information about the compiler.
6394 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6395 set X $ac_compile
6396 ac_compiler=$2
6397 for ac_option in --version -v -V -qversion; do
6398 { { ac_try="$ac_compiler $ac_option >&5"
6399 case "(($ac_try" in
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6402 esac
6403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6404 $as_echo "$ac_try_echo"; } >&5
6405 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6406 ac_status=$?
6407 if test -s conftest.err; then
6408 sed '10a\
6409 ... rest of stderr output deleted ...
6410 10q' conftest.err >conftest.er1
6411 cat conftest.er1 >&5
6412 rm -f conftest.er1 conftest.err
6414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6415 test $ac_status = 0; }
6416 done
6417 rm -f a.out
6419 # If we don't use `.F' as extension, the preprocessor is not run on the
6420 # input file. (Note that this only needs to work for GNU compilers.)
6421 ac_save_ext=$ac_ext
6422 ac_ext=F
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6424 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6425 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 cat > conftest.$ac_ext <<_ACEOF
6429 program main
6430 #ifndef __GNUC__
6431 choke me
6432 #endif
6435 _ACEOF
6436 if ac_fn_f77_try_compile "$LINENO"; then :
6437 ac_compiler_gnu=yes
6438 else
6439 ac_compiler_gnu=no
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6446 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6447 ac_ext=$ac_save_ext
6448 ac_test_FFLAGS=${FFLAGS+set}
6449 ac_save_FFLAGS=$FFLAGS
6450 FFLAGS=
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6452 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6453 if test "${ac_cv_prog_f77_g+set}" = set; then :
6454 $as_echo_n "(cached) " >&6
6455 else
6456 FFLAGS=-g
6457 cat > conftest.$ac_ext <<_ACEOF
6458 program main
6461 _ACEOF
6462 if ac_fn_f77_try_compile "$LINENO"; then :
6463 ac_cv_prog_f77_g=yes
6464 else
6465 ac_cv_prog_f77_g=no
6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6471 $as_echo "$ac_cv_prog_f77_g" >&6; }
6472 if test "$ac_test_FFLAGS" = set; then
6473 FFLAGS=$ac_save_FFLAGS
6474 elif test $ac_cv_prog_f77_g = yes; then
6475 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6476 FFLAGS="-g -O2"
6477 else
6478 FFLAGS="-g"
6480 else
6481 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6482 FFLAGS="-O2"
6483 else
6484 FFLAGS=
6488 if test $ac_compiler_gnu = yes; then
6489 G77=yes
6490 else
6491 G77=
6493 ac_ext=c
6494 ac_cpp='$CPP $CPPFLAGS'
6495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6501 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6503 # find the maximum length of command line arguments
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6505 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6506 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6507 $as_echo_n "(cached) " >&6
6508 else
6510 teststring="ABCD"
6512 case $build_os in
6513 msdosdjgpp*)
6514 # On DJGPP, this test can blow up pretty badly due to problems in libc
6515 # (any single argument exceeding 2000 bytes causes a buffer overrun
6516 # during glob expansion). Even if it were fixed, the result of this
6517 # check would be larger than it should be.
6518 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6521 gnu*)
6522 # Under GNU Hurd, this test is not required because there is
6523 # no limit to the length of command line arguments.
6524 # Libtool will interpret -1 as no limit whatsoever
6525 lt_cv_sys_max_cmd_len=-1;
6528 cygwin* | mingw*)
6529 # On Win9x/ME, this test blows up -- it succeeds, but takes
6530 # about 5 minutes as the teststring grows exponentially.
6531 # Worse, since 9x/ME are not pre-emptively multitasking,
6532 # you end up with a "frozen" computer, even though with patience
6533 # the test eventually succeeds (with a max line length of 256k).
6534 # Instead, let's just punt: use the minimum linelength reported by
6535 # all of the supported platforms: 8192 (on NT/2K/XP).
6536 lt_cv_sys_max_cmd_len=8192;
6539 amigaos*)
6540 # On AmigaOS with pdksh, this test takes hours, literally.
6541 # So we just punt and use a minimum line length of 8192.
6542 lt_cv_sys_max_cmd_len=8192;
6545 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6546 # This has been around since 386BSD, at least. Likely further.
6547 if test -x /sbin/sysctl; then
6548 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6549 elif test -x /usr/sbin/sysctl; then
6550 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6551 else
6552 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6554 # And add a safety zone
6555 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6558 osf*)
6559 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6560 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6561 # nice to cause kernel panics so lets avoid the loop below.
6562 # First set a reasonable default.
6563 lt_cv_sys_max_cmd_len=16384
6565 if test -x /sbin/sysconfig; then
6566 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6567 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6568 esac
6572 # If test is not a shell built-in, we'll probably end up computing a
6573 # maximum length that is only half of the actual maximum length, but
6574 # we can't tell.
6575 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6576 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6577 = "XX$teststring") >/dev/null 2>&1 &&
6578 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6579 lt_cv_sys_max_cmd_len=$new_result &&
6580 test $i != 17 # 1/2 MB should be enough
6582 i=`expr $i + 1`
6583 teststring=$teststring$teststring
6584 done
6585 teststring=
6586 # Add a significant safety factor because C++ compilers can tack on massive
6587 # amounts of additional arguments before passing them to the linker.
6588 # It appears as though 1/2 is a usable value.
6589 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6591 esac
6595 if test -n $lt_cv_sys_max_cmd_len ; then
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6597 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6598 else
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6600 $as_echo "none" >&6; }
6606 # Check for command to grab the raw symbol name followed by C symbol from nm.
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6608 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6609 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6610 $as_echo_n "(cached) " >&6
6611 else
6613 # These are sane defaults that work on at least a few old systems.
6614 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6616 # Character class describing NM global symbol codes.
6617 symcode='[BCDEGRST]'
6619 # Regexp to match symbols that can be accessed directly from C.
6620 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6622 # Transform an extracted symbol line into a proper C declaration
6623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6625 # Transform an extracted symbol line into symbol name and symbol address
6626 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6628 # Define system-specific variables.
6629 case $host_os in
6630 aix*)
6631 symcode='[BCDT]'
6633 cygwin* | mingw* | pw32*)
6634 symcode='[ABCDGISTW]'
6636 hpux*) # Its linker distinguishes data from code symbols
6637 if test "$host_cpu" = ia64; then
6638 symcode='[ABCDEGRST]'
6640 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6641 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6643 linux*)
6644 if test "$host_cpu" = ia64; then
6645 symcode='[ABCDGIRSTW]'
6646 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6647 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6650 irix* | nonstopux*)
6651 symcode='[BCDEGRST]'
6653 osf*)
6654 symcode='[BCDEGQRST]'
6656 solaris* | sysv5*)
6657 symcode='[BDRT]'
6659 sysv4)
6660 symcode='[DFNSTU]'
6662 esac
6664 # Handle CRLF in mingw tool chain
6665 opt_cr=
6666 case $build_os in
6667 mingw*)
6668 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6670 esac
6672 # If we're using GNU nm, then use its standard symbol codes.
6673 case `$NM -V 2>&1` in
6674 *GNU* | *'with BFD'*)
6675 symcode='[ABCDGIRSTW]' ;;
6676 esac
6678 # Try without a prefix undercore, then with it.
6679 for ac_symprfx in "" "_"; do
6681 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6682 symxfrm="\\1 $ac_symprfx\\2 \\2"
6684 # Write the raw and C identifiers.
6685 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6687 # Check to see that the pipe works correctly.
6688 pipe_works=no
6690 rm -f conftest*
6691 cat > conftest.$ac_ext <<EOF
6692 #ifdef __cplusplus
6693 extern "C" {
6694 #endif
6695 char nm_test_var;
6696 void nm_test_func(){}
6697 #ifdef __cplusplus
6699 #endif
6700 int main(){nm_test_var='a';nm_test_func();return(0);}
6703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6704 (eval $ac_compile) 2>&5
6705 ac_status=$?
6706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6707 test $ac_status = 0; }; then
6708 # Now try to grab the symbols.
6709 nlist=conftest.nm
6710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6711 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6712 ac_status=$?
6713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6714 test $ac_status = 0; } && test -s "$nlist"; then
6715 # Try sorting and uniquifying the output.
6716 if sort "$nlist" | uniq > "$nlist"T; then
6717 mv -f "$nlist"T "$nlist"
6718 else
6719 rm -f "$nlist"T
6722 # Make sure that we snagged all the symbols we need.
6723 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6724 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6725 cat <<EOF > conftest.$ac_ext
6726 #ifdef __cplusplus
6727 extern "C" {
6728 #endif
6731 # Now generate the symbol file.
6732 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6734 cat <<EOF >> conftest.$ac_ext
6735 #if defined (__STDC__) && __STDC__
6736 # define lt_ptr_t void *
6737 #else
6738 # define lt_ptr_t char *
6739 # define const
6740 #endif
6742 /* The mapping between symbol names and symbols. */
6743 const struct {
6744 const char *name;
6745 lt_ptr_t address;
6747 lt_preloaded_symbols[] =
6750 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6751 cat <<\EOF >> conftest.$ac_ext
6752 {0, (lt_ptr_t) 0}
6755 #ifdef __cplusplus
6757 #endif
6759 # Now try linking the two files.
6760 mv conftest.$ac_objext conftstm.$ac_objext
6761 lt_save_LIBS="$LIBS"
6762 lt_save_CFLAGS="$CFLAGS"
6763 LIBS="conftstm.$ac_objext"
6764 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6766 (eval $ac_link) 2>&5
6767 ac_status=$?
6768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6769 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6770 pipe_works=yes
6772 LIBS="$lt_save_LIBS"
6773 CFLAGS="$lt_save_CFLAGS"
6774 else
6775 echo "cannot find nm_test_func in $nlist" >&5
6777 else
6778 echo "cannot find nm_test_var in $nlist" >&5
6780 else
6781 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6783 else
6784 echo "$progname: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6787 rm -f conftest* conftst*
6789 # Do not use the global_symbol_pipe unless it works.
6790 if test "$pipe_works" = yes; then
6791 break
6792 else
6793 lt_cv_sys_global_symbol_pipe=
6795 done
6799 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6800 lt_cv_sys_global_symbol_to_cdecl=
6802 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6804 $as_echo "failed" >&6; }
6805 else
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6807 $as_echo "ok" >&6; }
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6811 $as_echo_n "checking for objdir... " >&6; }
6812 if test "${lt_cv_objdir+set}" = set; then :
6813 $as_echo_n "(cached) " >&6
6814 else
6815 rm -f .libs 2>/dev/null
6816 mkdir .libs 2>/dev/null
6817 if test -d .libs; then
6818 lt_cv_objdir=.libs
6819 else
6820 # MS-DOS does not allow filenames that begin with a dot.
6821 lt_cv_objdir=_libs
6823 rmdir .libs 2>/dev/null
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6826 $as_echo "$lt_cv_objdir" >&6; }
6827 objdir=$lt_cv_objdir
6833 case $host_os in
6834 aix3*)
6835 # AIX sometimes has problems with the GCC collect2 program. For some
6836 # reason, if we set the COLLECT_NAMES environment variable, the problems
6837 # vanish in a puff of smoke.
6838 if test "X${COLLECT_NAMES+set}" != Xset; then
6839 COLLECT_NAMES=
6840 export COLLECT_NAMES
6843 esac
6845 # Sed substitution that helps us do robust quoting. It backslashifies
6846 # metacharacters that are still active within double-quoted strings.
6847 Xsed='sed -e 1s/^X//'
6848 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6850 # Same as above, but do not quote variable references.
6851 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6853 # Sed substitution to delay expansion of an escaped shell variable in a
6854 # double_quote_subst'ed string.
6855 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6857 # Sed substitution to avoid accidental globbing in evaled expressions
6858 no_glob_subst='s/\*/\\\*/g'
6860 # Constants:
6861 rm="rm -f"
6863 # Global variables:
6864 default_ofile=libtool
6865 can_build_shared=yes
6867 # All known linkers require a `.a' archive for static linking (except M$VC,
6868 # which needs '.lib').
6869 libext=a
6870 ltmain="$ac_aux_dir/ltmain.sh"
6871 ofile="$default_ofile"
6872 with_gnu_ld="$lt_cv_prog_gnu_ld"
6874 if test -n "$ac_tool_prefix"; then
6875 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6876 set dummy ${ac_tool_prefix}ar; ac_word=$2
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6878 $as_echo_n "checking for $ac_word... " >&6; }
6879 if test "${ac_cv_prog_AR+set}" = set; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 if test -n "$AR"; then
6883 ac_cv_prog_AR="$AR" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6888 IFS=$as_save_IFS
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6892 ac_cv_prog_AR="${ac_tool_prefix}ar"
6893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 break 2
6896 done
6897 done
6898 IFS=$as_save_IFS
6902 AR=$ac_cv_prog_AR
6903 if test -n "$AR"; then
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6905 $as_echo "$AR" >&6; }
6906 else
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6913 if test -z "$ac_cv_prog_AR"; then
6914 ac_ct_AR=$AR
6915 # Extract the first word of "ar", so it can be a program name with args.
6916 set dummy ar; ac_word=$2
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6918 $as_echo_n "checking for $ac_word... " >&6; }
6919 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6921 else
6922 if test -n "$ac_ct_AR"; then
6923 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6924 else
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH
6928 IFS=$as_save_IFS
6929 test -z "$as_dir" && as_dir=.
6930 for ac_exec_ext in '' $ac_executable_extensions; do
6931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6932 ac_cv_prog_ac_ct_AR="ar"
6933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934 break 2
6936 done
6937 done
6938 IFS=$as_save_IFS
6942 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6943 if test -n "$ac_ct_AR"; then
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6945 $as_echo "$ac_ct_AR" >&6; }
6946 else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6951 if test "x$ac_ct_AR" = x; then
6952 AR="false"
6953 else
6954 case $cross_compiling:$ac_tool_warned in
6955 yes:)
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6958 ac_tool_warned=yes ;;
6959 esac
6960 AR=$ac_ct_AR
6962 else
6963 AR="$ac_cv_prog_AR"
6966 if test -n "$ac_tool_prefix"; then
6967 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6970 $as_echo_n "checking for $ac_word... " >&6; }
6971 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6972 $as_echo_n "(cached) " >&6
6973 else
6974 if test -n "$RANLIB"; then
6975 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6986 break 2
6988 done
6989 done
6990 IFS=$as_save_IFS
6994 RANLIB=$ac_cv_prog_RANLIB
6995 if test -n "$RANLIB"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6997 $as_echo "$RANLIB" >&6; }
6998 else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7005 if test -z "$ac_cv_prog_RANLIB"; then
7006 ac_ct_RANLIB=$RANLIB
7007 # Extract the first word of "ranlib", so it can be a program name with args.
7008 set dummy ranlib; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 if test -n "$ac_ct_RANLIB"; then
7015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_ac_ct_RANLIB="ranlib"
7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7028 done
7029 done
7030 IFS=$as_save_IFS
7034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7035 if test -n "$ac_ct_RANLIB"; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7037 $as_echo "$ac_ct_RANLIB" >&6; }
7038 else
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7040 $as_echo "no" >&6; }
7043 if test "x$ac_ct_RANLIB" = x; then
7044 RANLIB=":"
7045 else
7046 case $cross_compiling:$ac_tool_warned in
7047 yes:)
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7050 ac_tool_warned=yes ;;
7051 esac
7052 RANLIB=$ac_ct_RANLIB
7054 else
7055 RANLIB="$ac_cv_prog_RANLIB"
7058 if test -n "$ac_tool_prefix"; then
7059 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7060 set dummy ${ac_tool_prefix}strip; ac_word=$2
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7062 $as_echo_n "checking for $ac_word... " >&6; }
7063 if test "${ac_cv_prog_STRIP+set}" = set; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 if test -n "$STRIP"; then
7067 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7068 else
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 for as_dir in $PATH
7072 IFS=$as_save_IFS
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7078 break 2
7080 done
7081 done
7082 IFS=$as_save_IFS
7086 STRIP=$ac_cv_prog_STRIP
7087 if test -n "$STRIP"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7089 $as_echo "$STRIP" >&6; }
7090 else
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7092 $as_echo "no" >&6; }
7097 if test -z "$ac_cv_prog_STRIP"; then
7098 ac_ct_STRIP=$STRIP
7099 # Extract the first word of "strip", so it can be a program name with args.
7100 set dummy strip; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7104 $as_echo_n "(cached) " >&6
7105 else
7106 if test -n "$ac_ct_STRIP"; then
7107 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7108 else
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7112 IFS=$as_save_IFS
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_prog_ac_ct_STRIP="strip"
7117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 break 2
7120 done
7121 done
7122 IFS=$as_save_IFS
7126 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7127 if test -n "$ac_ct_STRIP"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7129 $as_echo "$ac_ct_STRIP" >&6; }
7130 else
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7135 if test "x$ac_ct_STRIP" = x; then
7136 STRIP=":"
7137 else
7138 case $cross_compiling:$ac_tool_warned in
7139 yes:)
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7142 ac_tool_warned=yes ;;
7143 esac
7144 STRIP=$ac_ct_STRIP
7146 else
7147 STRIP="$ac_cv_prog_STRIP"
7151 old_CC="$CC"
7152 old_CFLAGS="$CFLAGS"
7154 # Set sane defaults for various variables
7155 test -z "$AR" && AR=ar
7156 test -z "$AR_FLAGS" && AR_FLAGS=cru
7157 test -z "$AS" && AS=as
7158 test -z "$CC" && CC=cc
7159 test -z "$LTCC" && LTCC=$CC
7160 test -z "$DLLTOOL" && DLLTOOL=dlltool
7161 test -z "$LD" && LD=ld
7162 test -z "$LN_S" && LN_S="ln -s"
7163 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7164 test -z "$NM" && NM=nm
7165 test -z "$SED" && SED=sed
7166 test -z "$OBJDUMP" && OBJDUMP=objdump
7167 test -z "$RANLIB" && RANLIB=:
7168 test -z "$STRIP" && STRIP=:
7169 test -z "$ac_objext" && ac_objext=o
7171 # Determine commands to create old-style static archives.
7172 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7173 old_postinstall_cmds='chmod 644 $oldlib'
7174 old_postuninstall_cmds=
7176 if test -n "$RANLIB"; then
7177 case $host_os in
7178 openbsd*)
7179 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7182 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7184 esac
7185 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7188 for cc_temp in $compiler""; do
7189 case $cc_temp in
7190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7192 \-*) ;;
7193 *) break;;
7194 esac
7195 done
7196 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7199 # Only perform the check for file, if the check method requires it
7200 case $deplibs_check_method in
7201 file_magic*)
7202 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7204 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7205 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 case $MAGIC_CMD in
7209 [\\/*] | ?:[\\/]*)
7210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7213 lt_save_MAGIC_CMD="$MAGIC_CMD"
7214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7215 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7216 for ac_dir in $ac_dummy; do
7217 IFS="$lt_save_ifs"
7218 test -z "$ac_dir" && ac_dir=.
7219 if test -f $ac_dir/${ac_tool_prefix}file; then
7220 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7221 if test -n "$file_magic_test_file"; then
7222 case $deplibs_check_method in
7223 "file_magic "*)
7224 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7226 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7227 $EGREP "$file_magic_regex" > /dev/null; then
7229 else
7230 cat <<EOF 1>&2
7232 *** Warning: the command libtool uses to detect shared libraries,
7233 *** $file_magic_cmd, produces output that libtool cannot recognize.
7234 *** The result is that libtool may fail to recognize shared libraries
7235 *** as such. This will affect the creation of libtool libraries that
7236 *** depend on shared libraries, but programs linked with such libtool
7237 *** libraries will work regardless of this problem. Nevertheless, you
7238 *** may want to report the problem to your system manager and/or to
7239 *** bug-libtool@gnu.org
7242 fi ;;
7243 esac
7245 break
7247 done
7248 IFS="$lt_save_ifs"
7249 MAGIC_CMD="$lt_save_MAGIC_CMD"
7251 esac
7254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7255 if test -n "$MAGIC_CMD"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7257 $as_echo "$MAGIC_CMD" >&6; }
7258 else
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7263 if test -z "$lt_cv_path_MAGIC_CMD"; then
7264 if test -n "$ac_tool_prefix"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7266 $as_echo_n "checking for file... " >&6; }
7267 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 case $MAGIC_CMD in
7271 [\\/*] | ?:[\\/]*)
7272 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7275 lt_save_MAGIC_CMD="$MAGIC_CMD"
7276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7277 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7278 for ac_dir in $ac_dummy; do
7279 IFS="$lt_save_ifs"
7280 test -z "$ac_dir" && ac_dir=.
7281 if test -f $ac_dir/file; then
7282 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7283 if test -n "$file_magic_test_file"; then
7284 case $deplibs_check_method in
7285 "file_magic "*)
7286 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7289 $EGREP "$file_magic_regex" > /dev/null; then
7291 else
7292 cat <<EOF 1>&2
7294 *** Warning: the command libtool uses to detect shared libraries,
7295 *** $file_magic_cmd, produces output that libtool cannot recognize.
7296 *** The result is that libtool may fail to recognize shared libraries
7297 *** as such. This will affect the creation of libtool libraries that
7298 *** depend on shared libraries, but programs linked with such libtool
7299 *** libraries will work regardless of this problem. Nevertheless, you
7300 *** may want to report the problem to your system manager and/or to
7301 *** bug-libtool@gnu.org
7304 fi ;;
7305 esac
7307 break
7309 done
7310 IFS="$lt_save_ifs"
7311 MAGIC_CMD="$lt_save_MAGIC_CMD"
7313 esac
7316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7317 if test -n "$MAGIC_CMD"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7319 $as_echo "$MAGIC_CMD" >&6; }
7320 else
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7325 else
7326 MAGIC_CMD=:
7332 esac
7334 enable_dlopen=no
7335 enable_win32_dll=yes
7337 # Check whether --enable-libtool-lock was given.
7338 if test "${enable_libtool_lock+set}" = set; then :
7339 enableval=$enable_libtool_lock;
7342 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7345 # Check whether --with-pic was given.
7346 if test "${with_pic+set}" = set; then :
7347 withval=$with_pic; pic_mode="$withval"
7348 else
7349 pic_mode=default
7352 test -z "$pic_mode" && pic_mode=default
7354 # Use C for the default configuration in the libtool script
7355 tagname=
7356 lt_save_CC="$CC"
7357 ac_ext=c
7358 ac_cpp='$CPP $CPPFLAGS'
7359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7364 # Source file extension for C test sources.
7365 ac_ext=c
7367 # Object file extension for compiled C test sources.
7368 objext=o
7369 objext=$objext
7371 # Code to be used in simple compile tests
7372 lt_simple_compile_test_code="int some_variable = 0;\n"
7374 # Code to be used in simple link tests
7375 lt_simple_link_test_code='int main(){return(0);}\n'
7378 # If no C compiler was specified, use CC.
7379 LTCC=${LTCC-"$CC"}
7381 # Allow CC to be a program name with arguments.
7382 compiler=$CC
7385 # save warnings/boilerplate of simple test code
7386 ac_outfile=conftest.$ac_objext
7387 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7388 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7389 _lt_compiler_boilerplate=`cat conftest.err`
7390 $rm conftest*
7392 ac_outfile=conftest.$ac_objext
7393 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7394 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7395 _lt_linker_boilerplate=`cat conftest.err`
7396 $rm conftest*
7400 # Check for any special shared library compilation flags.
7402 lt_prog_cc_shlib=
7403 if test "$GCC" = no; then
7404 case $host_os in
7405 sco3.2v5*)
7406 lt_prog_cc_shlib='-belf'
7408 esac
7410 if test -n "$lt_prog_cc_shlib"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7412 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7413 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7414 else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7416 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7417 lt_cv_prog_cc_can_build_shared=no
7423 # Check to make sure the static flag actually works.
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7426 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
7427 if test "${lt_prog_compiler_static_works+set}" = set; then :
7428 $as_echo_n "(cached) " >&6
7429 else
7430 lt_prog_compiler_static_works=no
7431 save_LDFLAGS="$LDFLAGS"
7432 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7433 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7434 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7435 # The compiler can only warn and ignore the option if not recognized
7436 # So say no if there are warnings
7437 if test -s conftest.err; then
7438 # Append any errors to the config.log.
7439 cat conftest.err 1>&5
7440 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7441 $SED '/^$/d' conftest.err >conftest.er2
7442 if diff conftest.exp conftest.er2 >/dev/null; then
7443 lt_prog_compiler_static_works=yes
7445 else
7446 lt_prog_compiler_static_works=yes
7449 $rm conftest*
7450 LDFLAGS="$save_LDFLAGS"
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
7454 $as_echo "$lt_prog_compiler_static_works" >&6; }
7456 if test x"$lt_prog_compiler_static_works" = xyes; then
7458 else
7459 lt_prog_compiler_static=
7464 ## CAVEAT EMPTOR:
7465 ## There is no encapsulation within the following macros, do not change
7466 ## the running order or otherwise move them around unless you know exactly
7467 ## what you are doing...
7469 lt_prog_compiler_no_builtin_flag=
7471 if test "$GCC" = yes; then
7472 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7476 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7477 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 lt_cv_prog_compiler_rtti_exceptions=no
7481 ac_outfile=conftest.$ac_objext
7482 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7483 lt_compiler_flag="-fno-rtti -fno-exceptions"
7484 # Insert the option either (1) after the last *FLAGS variable, or
7485 # (2) before a word containing "conftest.", or (3) at the end.
7486 # Note that $ac_compile itself does not contain backslashes and begins
7487 # with a dollar sign (not a hyphen), so the echo should work correctly.
7488 # The option is referenced via a variable to avoid confusing sed.
7489 lt_compile=`echo "$ac_compile" | $SED \
7490 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7492 -e 's:$: $lt_compiler_flag:'`
7493 (eval echo "\"\$as_me:7493: $lt_compile\"" >&5)
7494 (eval "$lt_compile" 2>conftest.err)
7495 ac_status=$?
7496 cat conftest.err >&5
7497 echo "$as_me:7497: \$? = $ac_status" >&5
7498 if (exit $ac_status) && test -s "$ac_outfile"; then
7499 # The compiler can only warn and ignore the option if not recognized
7500 # So say no if there are warnings other than the usual output.
7501 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7502 $SED '/^$/d' conftest.err >conftest.er2
7503 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7504 lt_cv_prog_compiler_rtti_exceptions=yes
7507 $rm conftest*
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7511 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7513 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7514 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7515 else
7521 lt_prog_compiler_wl=
7522 lt_prog_compiler_pic=
7523 lt_prog_compiler_static=
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7526 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7528 if test "$GCC" = yes; then
7529 lt_prog_compiler_wl='-Wl,'
7530 lt_prog_compiler_static='-static'
7532 case $host_os in
7533 aix*)
7534 # All AIX code is PIC.
7535 if test "$host_cpu" = ia64; then
7536 # AIX 5 now supports IA64 processor
7537 lt_prog_compiler_static='-Bstatic'
7541 amigaos*)
7542 # FIXME: we need at least 68020 code to build shared libraries, but
7543 # adding the `-m68020' flag to GCC prevents building anything better,
7544 # like `-m68040'.
7545 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7548 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7549 # PIC is the default for these OSes.
7552 mingw* | pw32* | os2*)
7553 # This hack is so that the source file can tell whether it is being
7554 # built for inclusion in a dll (and should export symbols for example).
7555 lt_prog_compiler_pic='-DDLL_EXPORT'
7558 darwin* | rhapsody*)
7559 # PIC is the default on this platform
7560 # Common symbols not allowed in MH_DYLIB files
7561 lt_prog_compiler_pic='-fno-common'
7564 msdosdjgpp*)
7565 # Just because we use GCC doesn't mean we suddenly get shared libraries
7566 # on systems that don't support them.
7567 lt_prog_compiler_can_build_shared=no
7568 enable_shared=no
7571 sysv4*MP*)
7572 if test -d /usr/nec; then
7573 lt_prog_compiler_pic=-Kconform_pic
7577 hpux*)
7578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7579 # not for PA HP-UX.
7580 case "$host_cpu" in
7581 hppa*64*|ia64*)
7582 # +Z the default
7585 lt_prog_compiler_pic='-fPIC'
7587 esac
7591 lt_prog_compiler_pic='-fPIC'
7593 esac
7594 else
7595 # PORTME Check for flag to pass linker flags through the system compiler.
7596 case $host_os in
7597 aix*)
7598 lt_prog_compiler_wl='-Wl,'
7599 if test "$host_cpu" = ia64; then
7600 # AIX 5 now supports IA64 processor
7601 lt_prog_compiler_static='-Bstatic'
7602 else
7603 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7606 darwin*)
7607 # PIC is the default on this platform
7608 # Common symbols not allowed in MH_DYLIB files
7609 case $cc_basename in
7610 xlc*)
7611 lt_prog_compiler_pic='-qnocommon'
7612 lt_prog_compiler_wl='-Wl,'
7614 esac
7617 mingw* | pw32* | os2*)
7618 # This hack is so that the source file can tell whether it is being
7619 # built for inclusion in a dll (and should export symbols for example).
7620 lt_prog_compiler_pic='-DDLL_EXPORT'
7623 hpux9* | hpux10* | hpux11*)
7624 lt_prog_compiler_wl='-Wl,'
7625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7626 # not for PA HP-UX.
7627 case "$host_cpu" in
7628 hppa*64*|ia64*)
7629 # +Z the default
7632 lt_prog_compiler_pic='+Z'
7634 esac
7635 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7636 lt_prog_compiler_static='${wl}-a ${wl}archive'
7639 irix5* | irix6* | nonstopux*)
7640 lt_prog_compiler_wl='-Wl,'
7641 # PIC (with -KPIC) is the default.
7642 lt_prog_compiler_static='-non_shared'
7645 newsos6)
7646 lt_prog_compiler_pic='-KPIC'
7647 lt_prog_compiler_static='-Bstatic'
7650 linux*)
7651 case $cc_basename in
7652 icc* | ecc*)
7653 lt_prog_compiler_wl='-Wl,'
7654 lt_prog_compiler_pic='-KPIC'
7655 lt_prog_compiler_static='-static'
7657 pgcc* | pgf77* | pgf90*)
7658 # Portland Group compilers (*not* the Pentium gcc compiler,
7659 # which looks to be a dead project)
7660 lt_prog_compiler_wl='-Wl,'
7661 lt_prog_compiler_pic='-fpic'
7662 lt_prog_compiler_static='-static'
7664 ccc*)
7665 lt_prog_compiler_wl='-Wl,'
7666 # All Alpha code is PIC.
7667 lt_prog_compiler_static='-non_shared'
7669 esac
7672 osf3* | osf4* | osf5*)
7673 lt_prog_compiler_wl='-Wl,'
7674 # All OSF/1 code is PIC.
7675 lt_prog_compiler_static='-non_shared'
7678 sco3.2v5*)
7679 lt_prog_compiler_pic='-Kpic'
7680 lt_prog_compiler_static='-dn'
7683 solaris*)
7684 lt_prog_compiler_pic='-KPIC'
7685 lt_prog_compiler_static='-Bstatic'
7686 case $cc_basename in
7687 f77* | f90* | f95*)
7688 lt_prog_compiler_wl='-Qoption ld ';;
7690 lt_prog_compiler_wl='-Wl,';;
7691 esac
7694 sunos4*)
7695 lt_prog_compiler_wl='-Qoption ld '
7696 lt_prog_compiler_pic='-PIC'
7697 lt_prog_compiler_static='-Bstatic'
7700 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7701 lt_prog_compiler_wl='-Wl,'
7702 lt_prog_compiler_pic='-KPIC'
7703 lt_prog_compiler_static='-Bstatic'
7706 sysv4*MP*)
7707 if test -d /usr/nec ;then
7708 lt_prog_compiler_pic='-Kconform_pic'
7709 lt_prog_compiler_static='-Bstatic'
7713 unicos*)
7714 lt_prog_compiler_wl='-Wl,'
7715 lt_prog_compiler_can_build_shared=no
7718 uts4*)
7719 lt_prog_compiler_pic='-pic'
7720 lt_prog_compiler_static='-Bstatic'
7724 lt_prog_compiler_can_build_shared=no
7726 esac
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7730 $as_echo "$lt_prog_compiler_pic" >&6; }
7733 # Check to make sure the PIC flag actually works.
7735 if test -n "$lt_prog_compiler_pic"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7738 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7739 if test "${lt_prog_compiler_pic_works+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 lt_prog_compiler_pic_works=no
7743 ac_outfile=conftest.$ac_objext
7744 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7745 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7746 # Insert the option either (1) after the last *FLAGS variable, or
7747 # (2) before a word containing "conftest.", or (3) at the end.
7748 # Note that $ac_compile itself does not contain backslashes and begins
7749 # with a dollar sign (not a hyphen), so the echo should work correctly.
7750 # The option is referenced via a variable to avoid confusing sed.
7751 lt_compile=`echo "$ac_compile" | $SED \
7752 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7753 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7754 -e 's:$: $lt_compiler_flag:'`
7755 (eval echo "\"\$as_me:7755: $lt_compile\"" >&5)
7756 (eval "$lt_compile" 2>conftest.err)
7757 ac_status=$?
7758 cat conftest.err >&5
7759 echo "$as_me:7759: \$? = $ac_status" >&5
7760 if (exit $ac_status) && test -s "$ac_outfile"; then
7761 # The compiler can only warn and ignore the option if not recognized
7762 # So say no if there are warnings other than the usual output.
7763 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7764 $SED '/^$/d' conftest.err >conftest.er2
7765 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7766 lt_prog_compiler_pic_works=yes
7769 $rm conftest*
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7773 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7775 if test x"$lt_prog_compiler_pic_works" = xyes; then
7776 case $lt_prog_compiler_pic in
7777 "" | " "*) ;;
7778 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7779 esac
7780 else
7781 lt_prog_compiler_pic=
7782 lt_prog_compiler_can_build_shared=no
7786 case "$host_os" in
7787 # For platforms which do not support PIC, -DPIC is meaningless:
7788 *djgpp*)
7789 lt_prog_compiler_pic=
7792 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7794 esac
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7797 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7798 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 lt_cv_prog_compiler_c_o=no
7802 $rm -r conftest 2>/dev/null
7803 mkdir conftest
7804 cd conftest
7805 mkdir out
7806 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7808 lt_compiler_flag="-o out/conftest2.$ac_objext"
7809 # Insert the option either (1) after the last *FLAGS variable, or
7810 # (2) before a word containing "conftest.", or (3) at the end.
7811 # Note that $ac_compile itself does not contain backslashes and begins
7812 # with a dollar sign (not a hyphen), so the echo should work correctly.
7813 lt_compile=`echo "$ac_compile" | $SED \
7814 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7816 -e 's:$: $lt_compiler_flag:'`
7817 (eval echo "\"\$as_me:7817: $lt_compile\"" >&5)
7818 (eval "$lt_compile" 2>out/conftest.err)
7819 ac_status=$?
7820 cat out/conftest.err >&5
7821 echo "$as_me:7821: \$? = $ac_status" >&5
7822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7823 then
7824 # The compiler can only warn and ignore the option if not recognized
7825 # So say no if there are warnings
7826 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7827 $SED '/^$/d' out/conftest.err >out/conftest.er2
7828 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7829 lt_cv_prog_compiler_c_o=yes
7832 chmod u+w .
7833 $rm conftest*
7834 # SGI C++ compiler will create directory out/ii_files/ for
7835 # template instantiation
7836 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7837 $rm out/* && rmdir out
7838 cd ..
7839 rmdir conftest
7840 $rm conftest*
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7844 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7847 hard_links="nottested"
7848 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7849 # do not overwrite the value of need_locks provided by the user
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7851 $as_echo_n "checking if we can lock with hard links... " >&6; }
7852 hard_links=yes
7853 $rm conftest*
7854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7855 touch conftest.a
7856 ln conftest.a conftest.b 2>&5 || hard_links=no
7857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7859 $as_echo "$hard_links" >&6; }
7860 if test "$hard_links" = no; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7862 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7863 need_locks=warn
7865 else
7866 need_locks=no
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7870 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7872 runpath_var=
7873 allow_undefined_flag=
7874 enable_shared_with_static_runtimes=no
7875 archive_cmds=
7876 archive_expsym_cmds=
7877 old_archive_From_new_cmds=
7878 old_archive_from_expsyms_cmds=
7879 export_dynamic_flag_spec=
7880 whole_archive_flag_spec=
7881 thread_safe_flag_spec=
7882 hardcode_libdir_flag_spec=
7883 hardcode_libdir_flag_spec_ld=
7884 hardcode_libdir_separator=
7885 hardcode_direct=no
7886 hardcode_minus_L=no
7887 hardcode_shlibpath_var=unsupported
7888 link_all_deplibs=unknown
7889 hardcode_automatic=no
7890 module_cmds=
7891 module_expsym_cmds=
7892 always_export_symbols=no
7893 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7894 # include_expsyms should be a list of space-separated symbols to be *always*
7895 # included in the symbol list
7896 include_expsyms=
7897 # exclude_expsyms can be an extended regexp of symbols to exclude
7898 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7899 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7900 # as well as any symbol that contains `d'.
7901 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7902 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7903 # platforms (ab)use it in PIC code, but their linkers get confused if
7904 # the symbol is explicitly referenced. Since portable code cannot
7905 # rely on this symbol name, it's probably fine to never include it in
7906 # preloaded symbol tables.
7907 extract_expsyms_cmds=
7908 # Just being paranoid about ensuring that cc_basename is set.
7909 for cc_temp in $compiler""; do
7910 case $cc_temp in
7911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7913 \-*) ;;
7914 *) break;;
7915 esac
7916 done
7917 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7919 case $host_os in
7920 cygwin* | mingw* | pw32*)
7921 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7922 # When not using gcc, we currently assume that we are using
7923 # Microsoft Visual C++.
7924 if test "$GCC" != yes; then
7925 with_gnu_ld=no
7928 openbsd*)
7929 with_gnu_ld=no
7931 esac
7933 ld_shlibs=yes
7934 if test "$with_gnu_ld" = yes; then
7935 # If archive_cmds runs LD, not CC, wlarc should be empty
7936 wlarc='${wl}'
7938 # Set some defaults for GNU ld with shared library support. These
7939 # are reset later if shared libraries are not supported. Putting them
7940 # here allows them to be overridden if necessary.
7941 runpath_var=LD_RUN_PATH
7942 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7943 export_dynamic_flag_spec='${wl}--export-dynamic'
7944 # ancient GNU ld didn't support --whole-archive et. al.
7945 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7946 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7947 else
7948 whole_archive_flag_spec=
7950 supports_anon_versioning=no
7951 case `$LD -v 2>/dev/null` in
7952 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7953 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7954 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7955 *\ 2.11.*) ;; # other 2.11 versions
7956 *) supports_anon_versioning=yes ;;
7957 esac
7959 # See if GNU ld supports shared libraries.
7960 case $host_os in
7961 aix3* | aix4* | aix5*)
7962 # On AIX/PPC, the GNU linker is very broken
7963 if test "$host_cpu" != ia64; then
7964 ld_shlibs=no
7965 cat <<EOF 1>&2
7967 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7968 *** to be unable to reliably create shared libraries on AIX.
7969 *** Therefore, libtool is disabling shared libraries support. If you
7970 *** really care for shared libraries, you may want to modify your PATH
7971 *** so that a non-GNU linker is found, and then restart.
7977 amigaos*)
7978 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)'
7979 hardcode_libdir_flag_spec='-L$libdir'
7980 hardcode_minus_L=yes
7982 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7983 # that the semantics of dynamic libraries on AmigaOS, at least up
7984 # to version 4, is to share data among multiple programs linked
7985 # with the same dynamic library. Since this doesn't match the
7986 # behavior of shared libraries on other platforms, we can't use
7987 # them.
7988 ld_shlibs=no
7991 beos*)
7992 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7993 allow_undefined_flag=unsupported
7994 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7995 # support --undefined. This deserves some investigation. FIXME
7996 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7997 else
7998 ld_shlibs=no
8002 cygwin* | mingw* | pw32*)
8003 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8004 # as there is no search path for DLLs.
8005 hardcode_libdir_flag_spec='-L$libdir'
8006 allow_undefined_flag=unsupported
8007 always_export_symbols=no
8008 enable_shared_with_static_runtimes=yes
8009 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8011 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8013 # If the export-symbols file already is a .def file (1st line
8014 # is EXPORTS), use it as is; otherwise, prepend...
8015 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8016 cp $export_symbols $output_objdir/$soname.def;
8017 else
8018 echo EXPORTS > $output_objdir/$soname.def;
8019 cat $export_symbols >> $output_objdir/$soname.def;
8021 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8022 else
8023 ld_shlibs=no
8027 linux*)
8028 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8029 tmp_addflag=
8030 case $cc_basename,$host_cpu in
8031 pgcc*) # Portland Group C compiler
8032 whole_archive_flag_spec=
8034 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
8035 whole_archive_flag_spec=
8036 tmp_addflag=' -fpic -Mnomain' ;;
8037 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8038 tmp_addflag=' -i_dynamic' ;;
8039 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8040 tmp_addflag=' -i_dynamic -nofor_main' ;;
8041 ifc* | ifort*) # Intel Fortran compiler
8042 tmp_addflag=' -nofor_main' ;;
8043 esac
8044 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8046 if test $supports_anon_versioning = yes; then
8047 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8048 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8049 $echo "local: *; };" >> $output_objdir/$libname.ver~
8050 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8052 else
8053 ld_shlibs=no
8057 netbsd*)
8058 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8059 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8060 wlarc=
8061 else
8062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8063 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8067 solaris* | sysv5*)
8068 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8069 ld_shlibs=no
8070 cat <<EOF 1>&2
8072 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8073 *** create shared libraries on Solaris systems. Therefore, libtool
8074 *** is disabling shared libraries support. We urge you to upgrade GNU
8075 *** binutils to release 2.9.1 or newer. Another option is to modify
8076 *** your PATH or compiler configuration so that the native linker is
8077 *** used, and then restart.
8080 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8082 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8083 else
8084 ld_shlibs=no
8088 sunos4*)
8089 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8090 wlarc=
8091 hardcode_direct=yes
8092 hardcode_shlibpath_var=no
8096 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8098 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8099 else
8100 ld_shlibs=no
8103 esac
8105 if test "$ld_shlibs" = no; then
8106 runpath_var=
8107 hardcode_libdir_flag_spec=
8108 export_dynamic_flag_spec=
8109 whole_archive_flag_spec=
8111 else
8112 # PORTME fill in a description of your system's linker (not GNU ld)
8113 case $host_os in
8114 aix3*)
8115 allow_undefined_flag=unsupported
8116 always_export_symbols=yes
8117 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'
8118 # Note: this linker hardcodes the directories in LIBPATH if there
8119 # are no directories specified by -L.
8120 hardcode_minus_L=yes
8121 if test "$GCC" = yes && test -z "$link_static_flag"; then
8122 # Neither direct hardcoding nor static linking is supported with a
8123 # broken collect2.
8124 hardcode_direct=unsupported
8128 aix4* | aix5*)
8129 if test "$host_cpu" = ia64; then
8130 # On IA64, the linker does run time linking by default, so we don't
8131 # have to do anything special.
8132 aix_use_runtimelinking=no
8133 exp_sym_flag='-Bexport'
8134 no_entry_flag=""
8135 else
8136 # If we're using GNU nm, then we don't want the "-C" option.
8137 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8138 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8139 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'
8140 else
8141 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'
8143 aix_use_runtimelinking=no
8145 # Test if we are trying to use run time linking or normal
8146 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8147 # need to do runtime linking.
8148 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8149 for ld_flag in $LDFLAGS; do
8150 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8151 aix_use_runtimelinking=yes
8152 break
8154 done
8155 esac
8157 exp_sym_flag='-bexport'
8158 no_entry_flag='-bnoentry'
8161 # When large executables or shared objects are built, AIX ld can
8162 # have problems creating the table of contents. If linking a library
8163 # or program results in "error TOC overflow" add -mminimal-toc to
8164 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8165 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8167 archive_cmds=''
8168 hardcode_direct=yes
8169 hardcode_libdir_separator=':'
8170 link_all_deplibs=yes
8172 if test "$GCC" = yes; then
8173 case $host_os in aix4.[012]|aix4.[012].*)
8174 # We only want to do this on AIX 4.2 and lower, the check
8175 # below for broken collect2 doesn't work under 4.3+
8176 collect2name=`${CC} -print-prog-name=collect2`
8177 if test -f "$collect2name" && \
8178 strings "$collect2name" | grep resolve_lib_name >/dev/null
8179 then
8180 # We have reworked collect2
8181 hardcode_direct=yes
8182 else
8183 # We have old collect2
8184 hardcode_direct=unsupported
8185 # It fails to find uninstalled libraries when the uninstalled
8186 # path is not listed in the libpath. Setting hardcode_minus_L
8187 # to unsupported forces relinking
8188 hardcode_minus_L=yes
8189 hardcode_libdir_flag_spec='-L$libdir'
8190 hardcode_libdir_separator=
8192 esac
8193 shared_flag='-shared'
8194 if test "$aix_use_runtimelinking" = yes; then
8195 shared_flag="$shared_flag "'${wl}-G'
8197 else
8198 # not using gcc
8199 if test "$host_cpu" = ia64; then
8200 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8201 # chokes on -Wl,-G. The following line is correct:
8202 shared_flag='-G'
8203 else
8204 if test "$aix_use_runtimelinking" = yes; then
8205 shared_flag='${wl}-G'
8206 else
8207 shared_flag='${wl}-bM:SRE'
8212 # It seems that -bexpall does not export symbols beginning with
8213 # underscore (_), so it is better to generate a list of symbols to export.
8214 always_export_symbols=yes
8215 if test "$aix_use_runtimelinking" = yes; then
8216 # Warning - without using the other runtime loading flags (-brtl),
8217 # -berok will link without error, but may produce a broken library.
8218 allow_undefined_flag='-berok'
8219 # Determine the default libpath from the value encoded in an empty executable.
8220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h. */
8224 main ()
8228 return 0;
8230 _ACEOF
8231 if ac_fn_c_try_link "$LINENO"; then :
8233 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8235 # Check for a 64-bit object if we didn't find anything.
8236 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8237 }'`; fi
8239 rm -f core conftest.err conftest.$ac_objext \
8240 conftest$ac_exeext conftest.$ac_ext
8241 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8243 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8244 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8245 else
8246 if test "$host_cpu" = ia64; then
8247 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8248 allow_undefined_flag="-z nodefs"
8249 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8250 else
8251 # Determine the default libpath from the value encoded in an empty executable.
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8256 main ()
8260 return 0;
8262 _ACEOF
8263 if ac_fn_c_try_link "$LINENO"; then :
8265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8267 # Check for a 64-bit object if we didn't find anything.
8268 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8269 }'`; fi
8271 rm -f core conftest.err conftest.$ac_objext \
8272 conftest$ac_exeext conftest.$ac_ext
8273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8275 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8276 # Warning - without using the other run time loading flags,
8277 # -berok will link without error, but may produce a broken library.
8278 no_undefined_flag=' ${wl}-bernotok'
8279 allow_undefined_flag=' ${wl}-berok'
8280 # -bexpall does not export symbols beginning with underscore (_)
8281 always_export_symbols=yes
8282 # Exported symbols can be pulled into shared objects from archives
8283 whole_archive_flag_spec=' '
8284 archive_cmds_need_lc=yes
8285 # This is similar to how AIX traditionally builds it's shared libraries.
8286 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8291 amigaos*)
8292 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)'
8293 hardcode_libdir_flag_spec='-L$libdir'
8294 hardcode_minus_L=yes
8295 # see comment about different semantics on the GNU ld section
8296 ld_shlibs=no
8299 bsdi[45]*)
8300 export_dynamic_flag_spec=-rdynamic
8303 cygwin* | mingw* | pw32*)
8304 # When not using gcc, we currently assume that we are using
8305 # Microsoft Visual C++.
8306 # hardcode_libdir_flag_spec is actually meaningless, as there is
8307 # no search path for DLLs.
8308 hardcode_libdir_flag_spec=' '
8309 allow_undefined_flag=unsupported
8310 # Tell ltmain to make .lib files, not .a files.
8311 libext=lib
8312 # Tell ltmain to make .dll files, not .so files.
8313 shrext_cmds=".dll"
8314 # FIXME: Setting linknames here is a bad hack.
8315 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8316 # The linker will automatically build a .lib file if we build a DLL.
8317 old_archive_From_new_cmds='true'
8318 # FIXME: Should let the user specify the lib program.
8319 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8320 fix_srcfile_path='`cygpath -w "$srcfile"`'
8321 enable_shared_with_static_runtimes=yes
8324 darwin* | rhapsody*)
8325 case "$host_os" in
8326 rhapsody* | darwin1.[012])
8327 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8329 *) # Darwin 1.3 on
8330 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8331 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8332 else
8333 case ${MACOSX_DEPLOYMENT_TARGET} in
8334 10.[012])
8335 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8337 10.*)
8338 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8340 esac
8343 esac
8344 archive_cmds_need_lc=no
8345 hardcode_direct=no
8346 hardcode_automatic=yes
8347 hardcode_shlibpath_var=unsupported
8348 whole_archive_flag_spec=''
8349 link_all_deplibs=yes
8350 if test "$GCC" = yes ; then
8351 output_verbose_link_cmd='echo'
8352 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8353 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8354 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8355 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8356 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8357 else
8358 case $cc_basename in
8359 xlc*)
8360 output_verbose_link_cmd='echo'
8361 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8362 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8363 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8364 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8365 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8368 ld_shlibs=no
8370 esac
8374 dgux*)
8375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8376 hardcode_libdir_flag_spec='-L$libdir'
8377 hardcode_shlibpath_var=no
8380 freebsd1*)
8381 ld_shlibs=no
8384 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8385 # support. Future versions do this automatically, but an explicit c++rt0.o
8386 # does not break anything, and helps significantly (at the cost of a little
8387 # extra space).
8388 freebsd2.2*)
8389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8390 hardcode_libdir_flag_spec='-R$libdir'
8391 hardcode_direct=yes
8392 hardcode_shlibpath_var=no
8395 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8396 freebsd2*)
8397 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8398 hardcode_direct=yes
8399 hardcode_minus_L=yes
8400 hardcode_shlibpath_var=no
8403 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8404 freebsd* | kfreebsd*-gnu | dragonfly*)
8405 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8406 hardcode_libdir_flag_spec='-R$libdir'
8407 hardcode_direct=yes
8408 hardcode_shlibpath_var=no
8411 hpux9*)
8412 if test "$GCC" = yes; then
8413 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'
8414 else
8415 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'
8417 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8418 hardcode_libdir_separator=:
8419 hardcode_direct=yes
8421 # hardcode_minus_L: Not really in the search PATH,
8422 # but as the default location of the library.
8423 hardcode_minus_L=yes
8424 export_dynamic_flag_spec='${wl}-E'
8427 hpux10* | hpux11*)
8428 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8429 case "$host_cpu" in
8430 hppa*64*|ia64*)
8431 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8434 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8436 esac
8437 else
8438 case "$host_cpu" in
8439 hppa*64*|ia64*)
8440 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8443 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8445 esac
8447 if test "$with_gnu_ld" = no; then
8448 case "$host_cpu" in
8449 hppa*64*)
8450 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8451 hardcode_libdir_flag_spec_ld='+b $libdir'
8452 hardcode_libdir_separator=:
8453 hardcode_direct=no
8454 hardcode_shlibpath_var=no
8456 ia64*)
8457 hardcode_libdir_flag_spec='-L$libdir'
8458 hardcode_direct=no
8459 hardcode_shlibpath_var=no
8461 # hardcode_minus_L: Not really in the search PATH,
8462 # but as the default location of the library.
8463 hardcode_minus_L=yes
8466 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8467 hardcode_libdir_separator=:
8468 hardcode_direct=yes
8469 export_dynamic_flag_spec='${wl}-E'
8471 # hardcode_minus_L: Not really in the search PATH,
8472 # but as the default location of the library.
8473 hardcode_minus_L=yes
8475 esac
8479 irix5* | irix6* | nonstopux*)
8480 if test "$GCC" = yes; then
8481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8482 else
8483 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8484 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8486 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8487 hardcode_libdir_separator=:
8488 link_all_deplibs=yes
8491 netbsd*)
8492 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8493 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8494 else
8495 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8497 hardcode_libdir_flag_spec='-R$libdir'
8498 hardcode_direct=yes
8499 hardcode_shlibpath_var=no
8502 newsos6)
8503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8504 hardcode_direct=yes
8505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8506 hardcode_libdir_separator=:
8507 hardcode_shlibpath_var=no
8510 openbsd*)
8511 hardcode_direct=yes
8512 hardcode_shlibpath_var=no
8513 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8514 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8515 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8516 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8517 export_dynamic_flag_spec='${wl}-E'
8518 else
8519 case $host_os in
8520 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8521 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8522 hardcode_libdir_flag_spec='-R$libdir'
8525 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8526 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8528 esac
8532 os2*)
8533 hardcode_libdir_flag_spec='-L$libdir'
8534 hardcode_minus_L=yes
8535 allow_undefined_flag=unsupported
8536 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'
8537 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8540 osf3*)
8541 if test "$GCC" = yes; then
8542 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8543 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8544 else
8545 allow_undefined_flag=' -expect_unresolved \*'
8546 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8549 hardcode_libdir_separator=:
8552 osf4* | osf5*) # as osf3* with the addition of -msym flag
8553 if test "$GCC" = yes; then
8554 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8555 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8557 else
8558 allow_undefined_flag=' -expect_unresolved \*'
8559 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8560 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8561 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8563 # Both c and cxx compiler support -rpath directly
8564 hardcode_libdir_flag_spec='-rpath $libdir'
8566 hardcode_libdir_separator=:
8569 sco3.2v5*)
8570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8571 hardcode_shlibpath_var=no
8572 export_dynamic_flag_spec='${wl}-Bexport'
8573 runpath_var=LD_RUN_PATH
8574 hardcode_runpath_var=yes
8577 solaris*)
8578 no_undefined_flag=' -z text'
8579 if test "$GCC" = yes; then
8580 wlarc='${wl}'
8581 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8582 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8583 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8584 else
8585 wlarc=''
8586 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8587 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8588 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8590 hardcode_libdir_flag_spec='-R$libdir'
8591 hardcode_shlibpath_var=no
8592 case $host_os in
8593 solaris2.[0-5] | solaris2.[0-5].*) ;;
8595 # The compiler driver will combine linker options so we
8596 # cannot just pass the convience library names through
8597 # without $wl, iff we do not link with $LD.
8598 # Luckily, gcc supports the same syntax we need for Sun Studio.
8599 # Supported since Solaris 2.6 (maybe 2.5.1?)
8600 case $wlarc in
8602 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8604 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8605 esac ;;
8606 esac
8607 link_all_deplibs=yes
8610 sunos4*)
8611 if test "x$host_vendor" = xsequent; then
8612 # Use $CC to link under sequent, because it throws in some extra .o
8613 # files that make .init and .fini sections work.
8614 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8615 else
8616 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8618 hardcode_libdir_flag_spec='-L$libdir'
8619 hardcode_direct=yes
8620 hardcode_minus_L=yes
8621 hardcode_shlibpath_var=no
8624 sysv4)
8625 case $host_vendor in
8626 sni)
8627 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8628 hardcode_direct=yes # is this really true???
8630 siemens)
8631 ## LD is ld it makes a PLAMLIB
8632 ## CC just makes a GrossModule.
8633 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8634 reload_cmds='$CC -r -o $output$reload_objs'
8635 hardcode_direct=no
8637 motorola)
8638 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8641 esac
8642 runpath_var='LD_RUN_PATH'
8643 hardcode_shlibpath_var=no
8646 sysv4.3*)
8647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8648 hardcode_shlibpath_var=no
8649 export_dynamic_flag_spec='-Bexport'
8652 sysv4*MP*)
8653 if test -d /usr/nec; then
8654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8655 hardcode_shlibpath_var=no
8656 runpath_var=LD_RUN_PATH
8657 hardcode_runpath_var=yes
8658 ld_shlibs=yes
8662 sysv4.2uw2*)
8663 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8664 hardcode_direct=yes
8665 hardcode_minus_L=no
8666 hardcode_shlibpath_var=no
8667 hardcode_runpath_var=yes
8668 runpath_var=LD_RUN_PATH
8671 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8672 no_undefined_flag='${wl}-z ${wl}text'
8673 if test "$GCC" = yes; then
8674 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8675 else
8676 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8678 runpath_var='LD_RUN_PATH'
8679 hardcode_shlibpath_var=no
8682 sysv5*)
8683 no_undefined_flag=' -z text'
8684 # $CC -shared without GNU ld will not create a library from C++
8685 # object files and a static libstdc++, better avoid it by now
8686 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8687 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8688 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8689 hardcode_libdir_flag_spec=
8690 hardcode_shlibpath_var=no
8691 runpath_var='LD_RUN_PATH'
8694 uts4*)
8695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8696 hardcode_libdir_flag_spec='-L$libdir'
8697 hardcode_shlibpath_var=no
8701 ld_shlibs=no
8703 esac
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8707 $as_echo "$ld_shlibs" >&6; }
8708 test "$ld_shlibs" = no && can_build_shared=no
8710 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8711 if test "$GCC" = yes; then
8712 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8716 # Do we need to explicitly link libc?
8718 case "x$archive_cmds_need_lc" in
8719 x|xyes)
8720 # Assume -lc should be added
8721 archive_cmds_need_lc=yes
8723 if test "$enable_shared" = yes && test "$GCC" = yes; then
8724 case $archive_cmds in
8725 *'~'*)
8726 # FIXME: we may have to deal with multi-command sequences.
8728 '$CC '*)
8729 # Test whether the compiler implicitly links with -lc since on some
8730 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8731 # to ld, don't add -lc before -lgcc.
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8733 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8734 $rm conftest*
8735 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8738 (eval $ac_compile) 2>&5
8739 ac_status=$?
8740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8741 test $ac_status = 0; } 2>conftest.err; then
8742 soname=conftest
8743 lib=conftest
8744 libobjs=conftest.$ac_objext
8745 deplibs=
8746 wl=$lt_prog_compiler_wl
8747 compiler_flags=-v
8748 linker_flags=-v
8749 verstring=
8750 output_objdir=.
8751 libname=conftest
8752 lt_save_allow_undefined_flag=$allow_undefined_flag
8753 allow_undefined_flag=
8754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8755 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8756 ac_status=$?
8757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8758 test $ac_status = 0; }
8759 then
8760 archive_cmds_need_lc=no
8761 else
8762 archive_cmds_need_lc=yes
8764 allow_undefined_flag=$lt_save_allow_undefined_flag
8765 else
8766 cat conftest.err 1>&5
8768 $rm conftest*
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8770 $as_echo "$archive_cmds_need_lc" >&6; }
8772 esac
8775 esac
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8778 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8779 library_names_spec=
8780 libname_spec='lib$name'
8781 soname_spec=
8782 shrext_cmds=".so"
8783 postinstall_cmds=
8784 postuninstall_cmds=
8785 finish_cmds=
8786 finish_eval=
8787 shlibpath_var=
8788 shlibpath_overrides_runpath=unknown
8789 version_type=none
8790 dynamic_linker="$host_os ld.so"
8791 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8792 if test "$GCC" = yes; then
8793 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8794 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8795 # if the path contains ";" then we assume it to be the separator
8796 # otherwise default to the standard path separator (i.e. ":") - it is
8797 # assumed that no part of a normal pathname contains ";" but that should
8798 # okay in the real world where ";" in dirpaths is itself problematic.
8799 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8800 else
8801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8803 else
8804 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8806 need_lib_prefix=unknown
8807 hardcode_into_libs=no
8809 # when you set need_version to no, make sure it does not cause -set_version
8810 # flags to be left without arguments
8811 need_version=unknown
8813 case $host_os in
8814 aix3*)
8815 version_type=linux
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8817 shlibpath_var=LIBPATH
8819 # AIX 3 has no versioning support, so we append a major version to the name.
8820 soname_spec='${libname}${release}${shared_ext}$major'
8823 aix4* | aix5*)
8824 version_type=linux
8825 need_lib_prefix=no
8826 need_version=no
8827 hardcode_into_libs=yes
8828 if test "$host_cpu" = ia64; then
8829 # AIX 5 supports IA64
8830 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8831 shlibpath_var=LD_LIBRARY_PATH
8832 else
8833 # With GCC up to 2.95.x, collect2 would create an import file
8834 # for dependence libraries. The import file would start with
8835 # the line `#! .'. This would cause the generated library to
8836 # depend on `.', always an invalid library. This was fixed in
8837 # development snapshots of GCC prior to 3.0.
8838 case $host_os in
8839 aix4 | aix4.[01] | aix4.[01].*)
8840 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8841 echo ' yes '
8842 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8844 else
8845 can_build_shared=no
8848 esac
8849 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8850 # soname into executable. Probably we can add versioning support to
8851 # collect2, so additional links can be useful in future.
8852 if test "$aix_use_runtimelinking" = yes; then
8853 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8854 # instead of lib<name>.a to let people know that these are not
8855 # typical AIX shared libraries.
8856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8857 else
8858 # We preserve .a as extension for shared libraries through AIX4.2
8859 # and later when we are not doing run time linking.
8860 library_names_spec='${libname}${release}.a $libname.a'
8861 soname_spec='${libname}${release}${shared_ext}$major'
8863 shlibpath_var=LIBPATH
8867 amigaos*)
8868 library_names_spec='$libname.ixlibrary $libname.a'
8869 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8870 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'
8873 beos*)
8874 library_names_spec='${libname}${shared_ext}'
8875 dynamic_linker="$host_os ld.so"
8876 shlibpath_var=LIBRARY_PATH
8879 bsdi[45]*)
8880 version_type=linux
8881 need_version=no
8882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8883 soname_spec='${libname}${release}${shared_ext}$major'
8884 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8885 shlibpath_var=LD_LIBRARY_PATH
8886 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8887 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8888 # the default ld.so.conf also contains /usr/contrib/lib and
8889 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8890 # libtool to hard-code these into programs
8893 cygwin* | mingw* | pw32*)
8894 version_type=windows
8895 shrext_cmds=".dll"
8896 need_version=no
8897 need_lib_prefix=no
8899 case $GCC,$host_os in
8900 yes,cygwin* | yes,mingw* | yes,pw32*)
8901 library_names_spec='$libname.dll.a'
8902 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8903 postinstall_cmds='base_file=`basename \${file}`~
8904 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8905 dldir=$destdir/`dirname \$dlpath`~
8906 test -d \$dldir || mkdir -p \$dldir~
8907 $install_prog $dir/$dlname \$dldir/$dlname'
8908 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8909 dlpath=$dir/\$dldll~
8910 $rm \$dlpath'
8911 shlibpath_overrides_runpath=yes
8913 case $host_os in
8914 cygwin*)
8915 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8916 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8917 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8919 mingw*)
8920 # MinGW DLLs use traditional 'lib' prefix
8921 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8922 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8923 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8924 # It is most probably a Windows format PATH printed by
8925 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8926 # path with ; separators, and with drive letters. We can handle the
8927 # drive letters (cygwin fileutils understands them), so leave them,
8928 # especially as we might pass files found there to a mingw objdump,
8929 # which wouldn't understand a cygwinified path. Ahh.
8930 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8931 else
8932 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8935 pw32*)
8936 # pw32 DLLs use 'pw' prefix rather than 'lib'
8937 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8939 esac
8943 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8945 esac
8946 dynamic_linker='Win32 ld.exe'
8947 # FIXME: first we should search . and the directory the executable is in
8948 shlibpath_var=PATH
8951 darwin* | rhapsody*)
8952 dynamic_linker="$host_os dyld"
8953 version_type=darwin
8954 need_lib_prefix=no
8955 need_version=no
8956 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8957 soname_spec='${libname}${release}${major}$shared_ext'
8958 shlibpath_overrides_runpath=yes
8959 shlibpath_var=DYLD_LIBRARY_PATH
8960 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8961 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8962 if test "$GCC" = yes; then
8963 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8964 else
8965 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8967 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8970 dgux*)
8971 version_type=linux
8972 need_lib_prefix=no
8973 need_version=no
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8975 soname_spec='${libname}${release}${shared_ext}$major'
8976 shlibpath_var=LD_LIBRARY_PATH
8979 freebsd1*)
8980 dynamic_linker=no
8983 kfreebsd*-gnu)
8984 version_type=linux
8985 need_lib_prefix=no
8986 need_version=no
8987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8988 soname_spec='${libname}${release}${shared_ext}$major'
8989 shlibpath_var=LD_LIBRARY_PATH
8990 shlibpath_overrides_runpath=no
8991 hardcode_into_libs=yes
8992 dynamic_linker='GNU ld.so'
8995 freebsd* | dragonfly*)
8996 # DragonFly does not have aout. When/if they implement a new
8997 # versioning mechanism, adjust this.
8998 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8999 version_type=freebsd-$objformat
9000 case $version_type in
9001 freebsd-elf*)
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9003 need_version=no
9004 need_lib_prefix=no
9006 freebsd-*)
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9008 need_version=yes
9010 esac
9011 shlibpath_var=LD_LIBRARY_PATH
9012 case $host_os in
9013 freebsd2*)
9014 shlibpath_overrides_runpath=yes
9016 freebsd3.[01]* | freebsdelf3.[01]*)
9017 shlibpath_overrides_runpath=yes
9018 hardcode_into_libs=yes
9020 *) # from 3.2 on
9021 shlibpath_overrides_runpath=no
9022 hardcode_into_libs=yes
9024 esac
9027 gnu*)
9028 version_type=linux
9029 need_lib_prefix=no
9030 need_version=no
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9032 soname_spec='${libname}${release}${shared_ext}$major'
9033 shlibpath_var=LD_LIBRARY_PATH
9034 hardcode_into_libs=yes
9037 hpux9* | hpux10* | hpux11*)
9038 # Give a soname corresponding to the major version so that dld.sl refuses to
9039 # link against other versions.
9040 version_type=sunos
9041 need_lib_prefix=no
9042 need_version=no
9043 case "$host_cpu" in
9044 ia64*)
9045 shrext_cmds='.so'
9046 hardcode_into_libs=yes
9047 dynamic_linker="$host_os dld.so"
9048 shlibpath_var=LD_LIBRARY_PATH
9049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9051 soname_spec='${libname}${release}${shared_ext}$major'
9052 if test "X$HPUX_IA64_MODE" = X32; then
9053 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9054 else
9055 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9057 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9059 hppa*64*)
9060 shrext_cmds='.sl'
9061 hardcode_into_libs=yes
9062 dynamic_linker="$host_os dld.sl"
9063 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9064 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9066 soname_spec='${libname}${release}${shared_ext}$major'
9067 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9071 shrext_cmds='.sl'
9072 dynamic_linker="$host_os dld.sl"
9073 shlibpath_var=SHLIB_PATH
9074 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9076 soname_spec='${libname}${release}${shared_ext}$major'
9078 esac
9079 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9080 postinstall_cmds='chmod 555 $lib'
9083 irix5* | irix6* | nonstopux*)
9084 case $host_os in
9085 nonstopux*) version_type=nonstopux ;;
9087 if test "$lt_cv_prog_gnu_ld" = yes; then
9088 version_type=linux
9089 else
9090 version_type=irix
9091 fi ;;
9092 esac
9093 need_lib_prefix=no
9094 need_version=no
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9097 case $host_os in
9098 irix5* | nonstopux*)
9099 libsuff= shlibsuff=
9102 case $LD in # libtool.m4 will add one of these switches to LD
9103 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9104 libsuff= shlibsuff= libmagic=32-bit;;
9105 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9106 libsuff=32 shlibsuff=N32 libmagic=N32;;
9107 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9108 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9109 *) libsuff= shlibsuff= libmagic=never-match;;
9110 esac
9112 esac
9113 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9114 shlibpath_overrides_runpath=no
9115 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9116 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9117 hardcode_into_libs=yes
9120 # No shared lib support for Linux oldld, aout, or coff.
9121 linux*oldld* | linux*aout* | linux*coff*)
9122 dynamic_linker=no
9125 # This must be Linux ELF.
9126 linux*)
9127 version_type=linux
9128 need_lib_prefix=no
9129 need_version=no
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 soname_spec='${libname}${release}${shared_ext}$major'
9132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9133 shlibpath_var=LD_LIBRARY_PATH
9134 shlibpath_overrides_runpath=no
9135 # This implies no fast_install, which is unacceptable.
9136 # Some rework will be needed to allow for fast_install
9137 # before this can be enabled.
9138 hardcode_into_libs=yes
9140 # find out which ABI we are using
9141 libsuff=
9142 case "$host_cpu" in
9143 x86_64*|s390x*|powerpc64*)
9144 echo '#line 9144 "configure"' > conftest.$ac_ext
9145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9146 (eval $ac_compile) 2>&5
9147 ac_status=$?
9148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9149 test $ac_status = 0; }; then
9150 case `/usr/bin/file conftest.$ac_objext` in
9151 *64-bit*)
9152 libsuff=64
9153 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9155 esac
9157 rm -rf conftest*
9159 esac
9161 # Append ld.so.conf contents to the search path
9162 if test -f /etc/ld.so.conf; then
9163 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9164 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9167 # We used to test for /lib/ld.so.1 and disable shared libraries on
9168 # powerpc, because MkLinux only supported shared libraries with the
9169 # GNU dynamic linker. Since this was broken with cross compilers,
9170 # most powerpc-linux boxes support dynamic linking these days and
9171 # people can always --disable-shared, the test was removed, and we
9172 # assume the GNU/Linux dynamic linker is in use.
9173 dynamic_linker='GNU/Linux ld.so'
9176 knetbsd*-gnu)
9177 version_type=linux
9178 need_lib_prefix=no
9179 need_version=no
9180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9181 soname_spec='${libname}${release}${shared_ext}$major'
9182 shlibpath_var=LD_LIBRARY_PATH
9183 shlibpath_overrides_runpath=no
9184 hardcode_into_libs=yes
9185 dynamic_linker='GNU ld.so'
9188 netbsd*)
9189 version_type=sunos
9190 need_lib_prefix=no
9191 need_version=no
9192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9195 dynamic_linker='NetBSD (a.out) ld.so'
9196 else
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 dynamic_linker='NetBSD ld.elf_so'
9201 shlibpath_var=LD_LIBRARY_PATH
9202 shlibpath_overrides_runpath=yes
9203 hardcode_into_libs=yes
9206 newsos6)
9207 version_type=linux
9208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 shlibpath_var=LD_LIBRARY_PATH
9210 shlibpath_overrides_runpath=yes
9213 nto-qnx*)
9214 version_type=linux
9215 need_lib_prefix=no
9216 need_version=no
9217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9218 soname_spec='${libname}${release}${shared_ext}$major'
9219 shlibpath_var=LD_LIBRARY_PATH
9220 shlibpath_overrides_runpath=yes
9223 openbsd*)
9224 version_type=sunos
9225 need_lib_prefix=no
9226 need_version=no
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9229 shlibpath_var=LD_LIBRARY_PATH
9230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9231 case $host_os in
9232 openbsd2.[89] | openbsd2.[89].*)
9233 shlibpath_overrides_runpath=no
9236 shlibpath_overrides_runpath=yes
9238 esac
9239 else
9240 shlibpath_overrides_runpath=yes
9244 os2*)
9245 libname_spec='$name'
9246 shrext_cmds=".dll"
9247 need_lib_prefix=no
9248 library_names_spec='$libname${shared_ext} $libname.a'
9249 dynamic_linker='OS/2 ld.exe'
9250 shlibpath_var=LIBPATH
9253 osf3* | osf4* | osf5*)
9254 version_type=osf
9255 need_lib_prefix=no
9256 need_version=no
9257 soname_spec='${libname}${release}${shared_ext}$major'
9258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9259 shlibpath_var=LD_LIBRARY_PATH
9260 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9261 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9264 sco3.2v5*)
9265 version_type=osf
9266 soname_spec='${libname}${release}${shared_ext}$major'
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268 shlibpath_var=LD_LIBRARY_PATH
9271 solaris*)
9272 version_type=linux
9273 need_lib_prefix=no
9274 need_version=no
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9276 soname_spec='${libname}${release}${shared_ext}$major'
9277 shlibpath_var=LD_LIBRARY_PATH
9278 shlibpath_overrides_runpath=yes
9279 hardcode_into_libs=yes
9280 # ldd complains unless libraries are executable
9281 postinstall_cmds='chmod +x $lib'
9284 sunos4*)
9285 version_type=sunos
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9287 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9288 shlibpath_var=LD_LIBRARY_PATH
9289 shlibpath_overrides_runpath=yes
9290 if test "$with_gnu_ld" = yes; then
9291 need_lib_prefix=no
9293 need_version=yes
9296 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9297 version_type=linux
9298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9299 soname_spec='${libname}${release}${shared_ext}$major'
9300 shlibpath_var=LD_LIBRARY_PATH
9301 case $host_vendor in
9302 sni)
9303 shlibpath_overrides_runpath=no
9304 need_lib_prefix=no
9305 export_dynamic_flag_spec='${wl}-Blargedynsym'
9306 runpath_var=LD_RUN_PATH
9308 siemens)
9309 need_lib_prefix=no
9311 motorola)
9312 need_lib_prefix=no
9313 need_version=no
9314 shlibpath_overrides_runpath=no
9315 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9317 esac
9320 sysv4*MP*)
9321 if test -d /usr/nec ;then
9322 version_type=linux
9323 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9324 soname_spec='$libname${shared_ext}.$major'
9325 shlibpath_var=LD_LIBRARY_PATH
9329 uts4*)
9330 version_type=linux
9331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9332 soname_spec='${libname}${release}${shared_ext}$major'
9333 shlibpath_var=LD_LIBRARY_PATH
9337 dynamic_linker=no
9339 esac
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9341 $as_echo "$dynamic_linker" >&6; }
9342 test "$dynamic_linker" = no && can_build_shared=no
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9345 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9346 hardcode_action=
9347 if test -n "$hardcode_libdir_flag_spec" || \
9348 test -n "$runpath_var" || \
9349 test "X$hardcode_automatic" = "Xyes" ; then
9351 # We can hardcode non-existant directories.
9352 if test "$hardcode_direct" != no &&
9353 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9354 # have to relink, otherwise we might link with an installed library
9355 # when we should be linking with a yet-to-be-installed one
9356 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9357 test "$hardcode_minus_L" != no; then
9358 # Linking always hardcodes the temporary library directory.
9359 hardcode_action=relink
9360 else
9361 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9362 hardcode_action=immediate
9364 else
9365 # We cannot hardcode anything, or else we can only hardcode existing
9366 # directories.
9367 hardcode_action=unsupported
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9370 $as_echo "$hardcode_action" >&6; }
9372 if test "$hardcode_action" = relink; then
9373 # Fast installation is not supported
9374 enable_fast_install=no
9375 elif test "$shlibpath_overrides_runpath" = yes ||
9376 test "$enable_shared" = no; then
9377 # Fast installation is not necessary
9378 enable_fast_install=needless
9381 striplib=
9382 old_striplib=
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9384 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9385 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9386 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9387 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9389 $as_echo "yes" >&6; }
9390 else
9391 # FIXME - insert some real tests, host_os isn't really good enough
9392 case $host_os in
9393 darwin*)
9394 if test -n "$STRIP" ; then
9395 striplib="$STRIP -x"
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9397 $as_echo "yes" >&6; }
9398 else
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9400 $as_echo "no" >&6; }
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9407 esac
9410 if test "x$enable_dlopen" != xyes; then
9411 enable_dlopen=unknown
9412 enable_dlopen_self=unknown
9413 enable_dlopen_self_static=unknown
9414 else
9415 lt_cv_dlopen=no
9416 lt_cv_dlopen_libs=
9418 case $host_os in
9419 beos*)
9420 lt_cv_dlopen="load_add_on"
9421 lt_cv_dlopen_libs=
9422 lt_cv_dlopen_self=yes
9425 mingw* | pw32*)
9426 lt_cv_dlopen="LoadLibrary"
9427 lt_cv_dlopen_libs=
9430 cygwin*)
9431 lt_cv_dlopen="dlopen"
9432 lt_cv_dlopen_libs=
9435 darwin*)
9436 # if libdl is installed we need to link against it
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9438 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9439 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 ac_check_lib_save_LIBS=$LIBS
9443 LIBS="-ldl $LIBS"
9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9447 /* Override any GCC internal prototype to avoid an error.
9448 Use char because int might match the return type of a GCC
9449 builtin and then its argument prototype would still apply. */
9450 #ifdef __cplusplus
9451 extern "C"
9452 #endif
9453 char dlopen ();
9455 main ()
9457 return dlopen ();
9459 return 0;
9461 _ACEOF
9462 if ac_fn_c_try_link "$LINENO"; then :
9463 ac_cv_lib_dl_dlopen=yes
9464 else
9465 ac_cv_lib_dl_dlopen=no
9467 rm -f core conftest.err conftest.$ac_objext \
9468 conftest$ac_exeext conftest.$ac_ext
9469 LIBS=$ac_check_lib_save_LIBS
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9472 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9473 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9474 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9475 else
9477 lt_cv_dlopen="dyld"
9478 lt_cv_dlopen_libs=
9479 lt_cv_dlopen_self=yes
9486 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9487 if test "x$ac_cv_func_shl_load" = x""yes; then :
9488 lt_cv_dlopen="shl_load"
9489 else
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9491 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9492 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 ac_check_lib_save_LIBS=$LIBS
9496 LIBS="-ldld $LIBS"
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9500 /* Override any GCC internal prototype to avoid an error.
9501 Use char because int might match the return type of a GCC
9502 builtin and then its argument prototype would still apply. */
9503 #ifdef __cplusplus
9504 extern "C"
9505 #endif
9506 char shl_load ();
9508 main ()
9510 return shl_load ();
9512 return 0;
9514 _ACEOF
9515 if ac_fn_c_try_link "$LINENO"; then :
9516 ac_cv_lib_dld_shl_load=yes
9517 else
9518 ac_cv_lib_dld_shl_load=no
9520 rm -f core conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9522 LIBS=$ac_check_lib_save_LIBS
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9525 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9526 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
9527 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9528 else
9529 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9530 if test "x$ac_cv_func_dlopen" = x""yes; then :
9531 lt_cv_dlopen="dlopen"
9532 else
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9534 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9535 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9536 $as_echo_n "(cached) " >&6
9537 else
9538 ac_check_lib_save_LIBS=$LIBS
9539 LIBS="-ldl $LIBS"
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9543 /* Override any GCC internal prototype to avoid an error.
9544 Use char because int might match the return type of a GCC
9545 builtin and then its argument prototype would still apply. */
9546 #ifdef __cplusplus
9547 extern "C"
9548 #endif
9549 char dlopen ();
9551 main ()
9553 return dlopen ();
9555 return 0;
9557 _ACEOF
9558 if ac_fn_c_try_link "$LINENO"; then :
9559 ac_cv_lib_dl_dlopen=yes
9560 else
9561 ac_cv_lib_dl_dlopen=no
9563 rm -f core conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext conftest.$ac_ext
9565 LIBS=$ac_check_lib_save_LIBS
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9568 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9569 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9571 else
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9573 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9574 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 ac_check_lib_save_LIBS=$LIBS
9578 LIBS="-lsvld $LIBS"
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9582 /* Override any GCC internal prototype to avoid an error.
9583 Use char because int might match the return type of a GCC
9584 builtin and then its argument prototype would still apply. */
9585 #ifdef __cplusplus
9586 extern "C"
9587 #endif
9588 char dlopen ();
9590 main ()
9592 return dlopen ();
9594 return 0;
9596 _ACEOF
9597 if ac_fn_c_try_link "$LINENO"; then :
9598 ac_cv_lib_svld_dlopen=yes
9599 else
9600 ac_cv_lib_svld_dlopen=no
9602 rm -f core conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext conftest.$ac_ext
9604 LIBS=$ac_check_lib_save_LIBS
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9607 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9608 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
9609 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9610 else
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9612 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9613 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9614 $as_echo_n "(cached) " >&6
9615 else
9616 ac_check_lib_save_LIBS=$LIBS
9617 LIBS="-ldld $LIBS"
9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619 /* end confdefs.h. */
9621 /* Override any GCC internal prototype to avoid an error.
9622 Use char because int might match the return type of a GCC
9623 builtin and then its argument prototype would still apply. */
9624 #ifdef __cplusplus
9625 extern "C"
9626 #endif
9627 char dld_link ();
9629 main ()
9631 return dld_link ();
9633 return 0;
9635 _ACEOF
9636 if ac_fn_c_try_link "$LINENO"; then :
9637 ac_cv_lib_dld_dld_link=yes
9638 else
9639 ac_cv_lib_dld_dld_link=no
9641 rm -f core conftest.err conftest.$ac_objext \
9642 conftest$ac_exeext conftest.$ac_ext
9643 LIBS=$ac_check_lib_save_LIBS
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9646 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9647 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
9648 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9667 esac
9669 if test "x$lt_cv_dlopen" != xno; then
9670 enable_dlopen=yes
9671 else
9672 enable_dlopen=no
9675 case $lt_cv_dlopen in
9676 dlopen)
9677 save_CPPFLAGS="$CPPFLAGS"
9678 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9680 save_LDFLAGS="$LDFLAGS"
9681 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9683 save_LIBS="$LIBS"
9684 LIBS="$lt_cv_dlopen_libs $LIBS"
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9687 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9688 if test "${lt_cv_dlopen_self+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 if test "$cross_compiling" = yes; then :
9692 lt_cv_dlopen_self=cross
9693 else
9694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9695 lt_status=$lt_dlunknown
9696 cat > conftest.$ac_ext <<EOF
9697 #line 9697 "configure"
9698 #include "confdefs.h"
9700 #if HAVE_DLFCN_H
9701 #include <dlfcn.h>
9702 #endif
9704 #include <stdio.h>
9706 #ifdef RTLD_GLOBAL
9707 # define LT_DLGLOBAL RTLD_GLOBAL
9708 #else
9709 # ifdef DL_GLOBAL
9710 # define LT_DLGLOBAL DL_GLOBAL
9711 # else
9712 # define LT_DLGLOBAL 0
9713 # endif
9714 #endif
9716 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9717 find out it does not work in some platform. */
9718 #ifndef LT_DLLAZY_OR_NOW
9719 # ifdef RTLD_LAZY
9720 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9721 # else
9722 # ifdef DL_LAZY
9723 # define LT_DLLAZY_OR_NOW DL_LAZY
9724 # else
9725 # ifdef RTLD_NOW
9726 # define LT_DLLAZY_OR_NOW RTLD_NOW
9727 # else
9728 # ifdef DL_NOW
9729 # define LT_DLLAZY_OR_NOW DL_NOW
9730 # else
9731 # define LT_DLLAZY_OR_NOW 0
9732 # endif
9733 # endif
9734 # endif
9735 # endif
9736 #endif
9738 #ifdef __cplusplus
9739 extern "C" void exit (int);
9740 #endif
9742 void fnord() { int i=42;}
9743 int main ()
9745 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9746 int status = $lt_dlunknown;
9748 if (self)
9750 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9751 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9752 /* dlclose (self); */
9755 exit (status);
9758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9759 (eval $ac_link) 2>&5
9760 ac_status=$?
9761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9762 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9763 (./conftest; exit; ) 2>/dev/null
9764 lt_status=$?
9765 case x$lt_status in
9766 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9767 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9768 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9769 esac
9770 else :
9771 # compilation failed
9772 lt_cv_dlopen_self=no
9775 rm -fr conftest*
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9780 $as_echo "$lt_cv_dlopen_self" >&6; }
9782 if test "x$lt_cv_dlopen_self" = xyes; then
9783 LDFLAGS="$LDFLAGS $link_static_flag"
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9785 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9786 if test "${lt_cv_dlopen_self_static+set}" = set; then :
9787 $as_echo_n "(cached) " >&6
9788 else
9789 if test "$cross_compiling" = yes; then :
9790 lt_cv_dlopen_self_static=cross
9791 else
9792 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9793 lt_status=$lt_dlunknown
9794 cat > conftest.$ac_ext <<EOF
9795 #line 9795 "configure"
9796 #include "confdefs.h"
9798 #if HAVE_DLFCN_H
9799 #include <dlfcn.h>
9800 #endif
9802 #include <stdio.h>
9804 #ifdef RTLD_GLOBAL
9805 # define LT_DLGLOBAL RTLD_GLOBAL
9806 #else
9807 # ifdef DL_GLOBAL
9808 # define LT_DLGLOBAL DL_GLOBAL
9809 # else
9810 # define LT_DLGLOBAL 0
9811 # endif
9812 #endif
9814 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9815 find out it does not work in some platform. */
9816 #ifndef LT_DLLAZY_OR_NOW
9817 # ifdef RTLD_LAZY
9818 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9819 # else
9820 # ifdef DL_LAZY
9821 # define LT_DLLAZY_OR_NOW DL_LAZY
9822 # else
9823 # ifdef RTLD_NOW
9824 # define LT_DLLAZY_OR_NOW RTLD_NOW
9825 # else
9826 # ifdef DL_NOW
9827 # define LT_DLLAZY_OR_NOW DL_NOW
9828 # else
9829 # define LT_DLLAZY_OR_NOW 0
9830 # endif
9831 # endif
9832 # endif
9833 # endif
9834 #endif
9836 #ifdef __cplusplus
9837 extern "C" void exit (int);
9838 #endif
9840 void fnord() { int i=42;}
9841 int main ()
9843 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9844 int status = $lt_dlunknown;
9846 if (self)
9848 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9849 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9850 /* dlclose (self); */
9853 exit (status);
9856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9857 (eval $ac_link) 2>&5
9858 ac_status=$?
9859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9860 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9861 (./conftest; exit; ) 2>/dev/null
9862 lt_status=$?
9863 case x$lt_status in
9864 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9865 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9866 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9867 esac
9868 else :
9869 # compilation failed
9870 lt_cv_dlopen_self_static=no
9873 rm -fr conftest*
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9878 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9881 CPPFLAGS="$save_CPPFLAGS"
9882 LDFLAGS="$save_LDFLAGS"
9883 LIBS="$save_LIBS"
9885 esac
9887 case $lt_cv_dlopen_self in
9888 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9889 *) enable_dlopen_self=unknown ;;
9890 esac
9892 case $lt_cv_dlopen_self_static in
9893 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9894 *) enable_dlopen_self_static=unknown ;;
9895 esac
9899 # Report which librarie types wil actually be built
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9901 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9903 $as_echo "$can_build_shared" >&6; }
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9906 $as_echo_n "checking whether to build shared libraries... " >&6; }
9907 test "$can_build_shared" = "no" && enable_shared=no
9909 # On AIX, shared libraries and static libraries use the same namespace, and
9910 # are all built from PIC.
9911 case "$host_os" in
9912 aix3*)
9913 test "$enable_shared" = yes && enable_static=no
9914 if test -n "$RANLIB"; then
9915 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9916 postinstall_cmds='$RANLIB $lib'
9920 aix4* | aix5*)
9921 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9922 test "$enable_shared" = yes && enable_static=no
9925 esac
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9927 $as_echo "$enable_shared" >&6; }
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9930 $as_echo_n "checking whether to build static libraries... " >&6; }
9931 # Make sure either enable_shared or enable_static is yes.
9932 test "$enable_shared" = yes || enable_static=yes
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9934 $as_echo "$enable_static" >&6; }
9936 # The else clause should only fire when bootstrapping the
9937 # libtool distribution, otherwise you forgot to ship ltmain.sh
9938 # with your package, and you will get complaints that there are
9939 # no rules to generate ltmain.sh.
9940 if test -f "$ltmain"; then
9941 # See if we are running on zsh, and set the options which allow our commands through
9942 # without removal of \ escapes.
9943 if test -n "${ZSH_VERSION+set}" ; then
9944 setopt NO_GLOB_SUBST
9946 # Now quote all the things that may contain metacharacters while being
9947 # careful not to overquote the AC_SUBSTed values. We take copies of the
9948 # variables and quote the copies for generation of the libtool script.
9949 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9950 SED SHELL STRIP \
9951 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9952 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9953 deplibs_check_method reload_flag reload_cmds need_locks \
9954 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9955 lt_cv_sys_global_symbol_to_c_name_address \
9956 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9957 old_postinstall_cmds old_postuninstall_cmds \
9958 compiler \
9959 CC \
9960 LD \
9961 lt_prog_compiler_wl \
9962 lt_prog_compiler_pic \
9963 lt_prog_compiler_static \
9964 lt_prog_compiler_no_builtin_flag \
9965 export_dynamic_flag_spec \
9966 thread_safe_flag_spec \
9967 whole_archive_flag_spec \
9968 enable_shared_with_static_runtimes \
9969 old_archive_cmds \
9970 old_archive_from_new_cmds \
9971 predep_objects \
9972 postdep_objects \
9973 predeps \
9974 postdeps \
9975 compiler_lib_search_path \
9976 archive_cmds \
9977 archive_expsym_cmds \
9978 postinstall_cmds \
9979 postuninstall_cmds \
9980 old_archive_from_expsyms_cmds \
9981 allow_undefined_flag \
9982 no_undefined_flag \
9983 export_symbols_cmds \
9984 hardcode_libdir_flag_spec \
9985 hardcode_libdir_flag_spec_ld \
9986 hardcode_libdir_separator \
9987 hardcode_automatic \
9988 module_cmds \
9989 module_expsym_cmds \
9990 lt_cv_prog_compiler_c_o \
9991 exclude_expsyms \
9992 include_expsyms; do
9994 case $var in
9995 old_archive_cmds | \
9996 old_archive_from_new_cmds | \
9997 archive_cmds | \
9998 archive_expsym_cmds | \
9999 module_cmds | \
10000 module_expsym_cmds | \
10001 old_archive_from_expsyms_cmds | \
10002 export_symbols_cmds | \
10003 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10004 postinstall_cmds | postuninstall_cmds | \
10005 old_postinstall_cmds | old_postuninstall_cmds | \
10006 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10007 # Double-quote double-evaled strings.
10008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10013 esac
10014 done
10016 case $lt_echo in
10017 *'\$0 --fallback-echo"')
10018 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10020 esac
10022 cfgfile="${ofile}T"
10023 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10024 $rm -f "$cfgfile"
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10026 $as_echo "$as_me: creating $ofile" >&6;}
10028 cat <<__EOF__ >> "$cfgfile"
10029 #! $SHELL
10031 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10032 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10033 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10035 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10036 # Free Software Foundation, Inc.
10038 # This file is part of GNU Libtool:
10039 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10041 # This program is free software; you can redistribute it and/or modify
10042 # it under the terms of the GNU General Public License as published by
10043 # the Free Software Foundation; either version 2 of the License, or
10044 # (at your option) any later version.
10046 # This program is distributed in the hope that it will be useful, but
10047 # WITHOUT ANY WARRANTY; without even the implied warranty of
10048 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10049 # General Public License for more details.
10051 # You should have received a copy of the GNU General Public License
10052 # along with this program; if not, write to the Free Software
10053 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10055 # As a special exception to the GNU General Public License, if you
10056 # distribute this file as part of a program that contains a
10057 # configuration script generated by Autoconf, you may include it under
10058 # the same distribution terms that you use for the rest of that program.
10060 # A sed program that does not truncate output.
10061 SED=$lt_SED
10063 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10064 Xsed="$SED -e 1s/^X//"
10066 # The HP-UX ksh and POSIX shell print the target directory to stdout
10067 # if CDPATH is set.
10068 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10070 # The names of the tagged configurations supported by this script.
10071 available_tags=
10073 # ### BEGIN LIBTOOL CONFIG
10075 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10077 # Shell to use when invoking shell scripts.
10078 SHELL=$lt_SHELL
10080 # Whether or not to build shared libraries.
10081 build_libtool_libs=$enable_shared
10083 # Whether or not to build static libraries.
10084 build_old_libs=$enable_static
10086 # Whether or not to add -lc for building shared libraries.
10087 build_libtool_need_lc=$archive_cmds_need_lc
10089 # Whether or not to disallow shared libs when runtime libs are static
10090 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10092 # Whether or not to optimize for fast installation.
10093 fast_install=$enable_fast_install
10095 # The host system.
10096 host_alias=$host_alias
10097 host=$host
10098 host_os=$host_os
10100 # The build system.
10101 build_alias=$build_alias
10102 build=$build
10103 build_os=$build_os
10105 # An echo program that does not interpret backslashes.
10106 echo=$lt_echo
10108 # The archiver.
10109 AR=$lt_AR
10110 AR_FLAGS=$lt_AR_FLAGS
10112 # A C compiler.
10113 LTCC=$lt_LTCC
10115 # A language-specific compiler.
10116 CC=$lt_compiler
10118 # Is the compiler the GNU C compiler?
10119 with_gcc=$GCC
10121 # An ERE matcher.
10122 EGREP=$lt_EGREP
10124 # The linker used to build libraries.
10125 LD=$lt_LD
10127 # Whether we need hard or soft links.
10128 LN_S=$lt_LN_S
10130 # A BSD-compatible nm program.
10131 NM=$lt_NM
10133 # A symbol stripping program
10134 STRIP=$lt_STRIP
10136 # Used to examine libraries when file_magic_cmd begins "file"
10137 MAGIC_CMD=$MAGIC_CMD
10139 # Used on cygwin: DLL creation program.
10140 DLLTOOL="$DLLTOOL"
10142 # Used on cygwin: object dumper.
10143 OBJDUMP="$OBJDUMP"
10145 # Used on cygwin: assembler.
10146 AS="$AS"
10148 # The name of the directory that contains temporary libtool files.
10149 objdir=$objdir
10151 # How to create reloadable object files.
10152 reload_flag=$lt_reload_flag
10153 reload_cmds=$lt_reload_cmds
10155 # How to pass a linker flag through the compiler.
10156 wl=$lt_lt_prog_compiler_wl
10158 # Object file suffix (normally "o").
10159 objext="$ac_objext"
10161 # Old archive suffix (normally "a").
10162 libext="$libext"
10164 # Shared library suffix (normally ".so").
10165 shrext_cmds='$shrext_cmds'
10167 # Executable file suffix (normally "").
10168 exeext="$exeext"
10170 # Additional compiler flags for building library objects.
10171 pic_flag=$lt_lt_prog_compiler_pic
10172 pic_mode=$pic_mode
10174 # What is the maximum length of a command?
10175 max_cmd_len=$lt_cv_sys_max_cmd_len
10177 # Does compiler simultaneously support -c and -o options?
10178 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10180 # Must we lock files when doing compilation?
10181 need_locks=$lt_need_locks
10183 # Do we need the lib prefix for modules?
10184 need_lib_prefix=$need_lib_prefix
10186 # Do we need a version for libraries?
10187 need_version=$need_version
10189 # Whether dlopen is supported.
10190 dlopen_support=$enable_dlopen
10192 # Whether dlopen of programs is supported.
10193 dlopen_self=$enable_dlopen_self
10195 # Whether dlopen of statically linked programs is supported.
10196 dlopen_self_static=$enable_dlopen_self_static
10198 # Compiler flag to prevent dynamic linking.
10199 link_static_flag=$lt_lt_prog_compiler_static
10201 # Compiler flag to turn off builtin functions.
10202 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10204 # Compiler flag to allow reflexive dlopens.
10205 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10207 # Compiler flag to generate shared objects directly from archives.
10208 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10210 # Compiler flag to generate thread-safe objects.
10211 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10213 # Library versioning type.
10214 version_type=$version_type
10216 # Format of library name prefix.
10217 libname_spec=$lt_libname_spec
10219 # List of archive names. First name is the real one, the rest are links.
10220 # The last name is the one that the linker finds with -lNAME.
10221 library_names_spec=$lt_library_names_spec
10223 # The coded name of the library, if different from the real name.
10224 soname_spec=$lt_soname_spec
10226 # Commands used to build and install an old-style archive.
10227 RANLIB=$lt_RANLIB
10228 old_archive_cmds=$lt_old_archive_cmds
10229 old_postinstall_cmds=$lt_old_postinstall_cmds
10230 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10232 # Create an old-style archive from a shared archive.
10233 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10235 # Create a temporary old-style archive to link instead of a shared archive.
10236 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10238 # Commands used to build and install a shared archive.
10239 archive_cmds=$lt_archive_cmds
10240 archive_expsym_cmds=$lt_archive_expsym_cmds
10241 postinstall_cmds=$lt_postinstall_cmds
10242 postuninstall_cmds=$lt_postuninstall_cmds
10244 # Commands used to build a loadable module (assumed same as above if empty)
10245 module_cmds=$lt_module_cmds
10246 module_expsym_cmds=$lt_module_expsym_cmds
10248 # Commands to strip libraries.
10249 old_striplib=$lt_old_striplib
10250 striplib=$lt_striplib
10252 # Dependencies to place before the objects being linked to create a
10253 # shared library.
10254 predep_objects=$lt_predep_objects
10256 # Dependencies to place after the objects being linked to create a
10257 # shared library.
10258 postdep_objects=$lt_postdep_objects
10260 # Dependencies to place before the objects being linked to create a
10261 # shared library.
10262 predeps=$lt_predeps
10264 # Dependencies to place after the objects being linked to create a
10265 # shared library.
10266 postdeps=$lt_postdeps
10268 # The library search path used internally by the compiler when linking
10269 # a shared library.
10270 compiler_lib_search_path=$lt_compiler_lib_search_path
10272 # Method to check whether dependent libraries are shared objects.
10273 deplibs_check_method=$lt_deplibs_check_method
10275 # Command to use when deplibs_check_method == file_magic.
10276 file_magic_cmd=$lt_file_magic_cmd
10278 # Flag that allows shared libraries with undefined symbols to be built.
10279 allow_undefined_flag=$lt_allow_undefined_flag
10281 # Flag that forces no undefined symbols.
10282 no_undefined_flag=$lt_no_undefined_flag
10284 # Commands used to finish a libtool library installation in a directory.
10285 finish_cmds=$lt_finish_cmds
10287 # Same as above, but a single script fragment to be evaled but not shown.
10288 finish_eval=$lt_finish_eval
10290 # Take the output of nm and produce a listing of raw symbols and C names.
10291 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10293 # Transform the output of nm in a proper C declaration
10294 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10296 # Transform the output of nm in a C name address pair
10297 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10299 # This is the shared library runtime path variable.
10300 runpath_var=$runpath_var
10302 # This is the shared library path variable.
10303 shlibpath_var=$shlibpath_var
10305 # Is shlibpath searched before the hard-coded library search path?
10306 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10308 # How to hardcode a shared library path into an executable.
10309 hardcode_action=$hardcode_action
10311 # Whether we should hardcode library paths into libraries.
10312 hardcode_into_libs=$hardcode_into_libs
10314 # Flag to hardcode \$libdir into a binary during linking.
10315 # This must work even if \$libdir does not exist.
10316 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10318 # If ld is used when linking, flag to hardcode \$libdir into
10319 # a binary during linking. This must work even if \$libdir does
10320 # not exist.
10321 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10323 # Whether we need a single -rpath flag with a separated argument.
10324 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10326 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10327 # resulting binary.
10328 hardcode_direct=$hardcode_direct
10330 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10331 # resulting binary.
10332 hardcode_minus_L=$hardcode_minus_L
10334 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10335 # the resulting binary.
10336 hardcode_shlibpath_var=$hardcode_shlibpath_var
10338 # Set to yes if building a shared library automatically hardcodes DIR into the library
10339 # and all subsequent libraries and executables linked against it.
10340 hardcode_automatic=$hardcode_automatic
10342 # Variables whose values should be saved in libtool wrapper scripts and
10343 # restored at relink time.
10344 variables_saved_for_relink="$variables_saved_for_relink"
10346 # Whether libtool must link a program against all its dependency libraries.
10347 link_all_deplibs=$link_all_deplibs
10349 # Compile-time system search path for libraries
10350 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10352 # Run-time system search path for libraries
10353 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10355 # Fix the shell variable \$srcfile for the compiler.
10356 fix_srcfile_path="$fix_srcfile_path"
10358 # Set to yes if exported symbols are required.
10359 always_export_symbols=$always_export_symbols
10361 # The commands to list exported symbols.
10362 export_symbols_cmds=$lt_export_symbols_cmds
10364 # The commands to extract the exported symbol list from a shared archive.
10365 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10367 # Symbols that should not be listed in the preloaded symbols.
10368 exclude_expsyms=$lt_exclude_expsyms
10370 # Symbols that must always be exported.
10371 include_expsyms=$lt_include_expsyms
10373 # ### END LIBTOOL CONFIG
10375 __EOF__
10378 case $host_os in
10379 aix3*)
10380 cat <<\EOF >> "$cfgfile"
10382 # AIX sometimes has problems with the GCC collect2 program. For some
10383 # reason, if we set the COLLECT_NAMES environment variable, the problems
10384 # vanish in a puff of smoke.
10385 if test "X${COLLECT_NAMES+set}" != Xset; then
10386 COLLECT_NAMES=
10387 export COLLECT_NAMES
10391 esac
10393 # We use sed instead of cat because bash on DJGPP gets confused if
10394 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10395 # text mode, it properly converts lines to CR/LF. This bash problem
10396 # is reportedly fixed, but why not run on old versions too?
10397 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10399 mv -f "$cfgfile" "$ofile" || \
10400 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10401 chmod +x "$ofile"
10403 else
10404 # If there is no Makefile yet, we rely on a make rule to execute
10405 # `config.status --recheck' to rerun these tests and create the
10406 # libtool script then.
10407 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10408 if test -f "$ltmain_in"; then
10409 test -f Makefile && make "$ltmain"
10414 ac_ext=c
10415 ac_cpp='$CPP $CPPFLAGS'
10416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10420 CC="$lt_save_CC"
10423 # Check whether --with-tags was given.
10424 if test "${with_tags+set}" = set; then :
10425 withval=$with_tags; tagnames="$withval"
10429 if test -f "$ltmain" && test -n "$tagnames"; then
10430 if test ! -f "${ofile}"; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10432 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10435 if test -z "$LTCC"; then
10436 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10437 if test -z "$LTCC"; then
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10439 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10440 else
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10442 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10446 # Extract list of available tagged configurations in $ofile.
10447 # Note that this assumes the entire list is on one line.
10448 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10450 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10451 for tagname in $tagnames; do
10452 IFS="$lt_save_ifs"
10453 # Check whether tagname contains only valid characters
10454 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10455 "") ;;
10456 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
10458 esac
10460 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10461 then
10462 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
10465 # Update the list of available tags.
10466 if test -n "$tagname"; then
10467 echo appending configuration tag \"$tagname\" to $ofile
10469 case $tagname in
10470 CXX)
10471 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10472 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10473 (test "X$CXX" != "Xg++"))) ; then
10474 ac_ext=cpp
10475 ac_cpp='$CXXCPP $CPPFLAGS'
10476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10483 archive_cmds_need_lc_CXX=no
10484 allow_undefined_flag_CXX=
10485 always_export_symbols_CXX=no
10486 archive_expsym_cmds_CXX=
10487 export_dynamic_flag_spec_CXX=
10488 hardcode_direct_CXX=no
10489 hardcode_libdir_flag_spec_CXX=
10490 hardcode_libdir_flag_spec_ld_CXX=
10491 hardcode_libdir_separator_CXX=
10492 hardcode_minus_L_CXX=no
10493 hardcode_automatic_CXX=no
10494 module_cmds_CXX=
10495 module_expsym_cmds_CXX=
10496 link_all_deplibs_CXX=unknown
10497 old_archive_cmds_CXX=$old_archive_cmds
10498 no_undefined_flag_CXX=
10499 whole_archive_flag_spec_CXX=
10500 enable_shared_with_static_runtimes_CXX=no
10502 # Dependencies to place before and after the object being linked:
10503 predep_objects_CXX=
10504 postdep_objects_CXX=
10505 predeps_CXX=
10506 postdeps_CXX=
10507 compiler_lib_search_path_CXX=
10509 # Source file extension for C++ test sources.
10510 ac_ext=cc
10512 # Object file extension for compiled C++ test sources.
10513 objext=o
10514 objext_CXX=$objext
10516 # Code to be used in simple compile tests
10517 lt_simple_compile_test_code="int some_variable = 0;\n"
10519 # Code to be used in simple link tests
10520 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10522 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10524 # If no C compiler was specified, use CC.
10525 LTCC=${LTCC-"$CC"}
10527 # Allow CC to be a program name with arguments.
10528 compiler=$CC
10531 # save warnings/boilerplate of simple test code
10532 ac_outfile=conftest.$ac_objext
10533 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10534 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10535 _lt_compiler_boilerplate=`cat conftest.err`
10536 $rm conftest*
10538 ac_outfile=conftest.$ac_objext
10539 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10540 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10541 _lt_linker_boilerplate=`cat conftest.err`
10542 $rm conftest*
10545 # Allow CC to be a program name with arguments.
10546 lt_save_CC=$CC
10547 lt_save_LD=$LD
10548 lt_save_GCC=$GCC
10549 GCC=$GXX
10550 lt_save_with_gnu_ld=$with_gnu_ld
10551 lt_save_path_LD=$lt_cv_path_LD
10552 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10553 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10554 else
10555 unset lt_cv_prog_gnu_ld
10557 if test -n "${lt_cv_path_LDCXX+set}"; then
10558 lt_cv_path_LD=$lt_cv_path_LDCXX
10559 else
10560 unset lt_cv_path_LD
10562 test -z "${LDCXX+set}" || LD=$LDCXX
10563 CC=${CXX-"c++"}
10564 compiler=$CC
10565 compiler_CXX=$CC
10566 for cc_temp in $compiler""; do
10567 case $cc_temp in
10568 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10569 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10570 \-*) ;;
10571 *) break;;
10572 esac
10573 done
10574 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10577 # We don't want -fno-exception wen compiling C++ code, so set the
10578 # no_builtin_flag separately
10579 if test "$GXX" = yes; then
10580 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10581 else
10582 lt_prog_compiler_no_builtin_flag_CXX=
10585 if test "$GXX" = yes; then
10586 # Set up default GNU C++ configuration
10589 # Check whether --with-gnu-ld was given.
10590 if test "${with_gnu_ld+set}" = set; then :
10591 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10592 else
10593 with_gnu_ld=no
10596 ac_prog=ld
10597 if test "$GCC" = yes; then
10598 # Check if gcc -print-prog-name=ld gives a path.
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10600 $as_echo_n "checking for ld used by $CC... " >&6; }
10601 case $host in
10602 *-*-mingw*)
10603 # gcc leaves a trailing carriage return which upsets mingw
10604 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10606 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10607 esac
10608 case $ac_prog in
10609 # Accept absolute paths.
10610 [\\/]* | ?:[\\/]*)
10611 re_direlt='/[^/][^/]*/\.\./'
10612 # Canonicalize the pathname of ld
10613 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10614 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10615 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10616 done
10617 test -z "$LD" && LD="$ac_prog"
10620 # If it fails, then pretend we aren't using GCC.
10621 ac_prog=ld
10624 # If it is relative, then search for the first ld in PATH.
10625 with_gnu_ld=unknown
10627 esac
10628 elif test "$with_gnu_ld" = yes; then
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10630 $as_echo_n "checking for GNU ld... " >&6; }
10631 else
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10633 $as_echo_n "checking for non-GNU ld... " >&6; }
10635 if test "${lt_cv_path_LD+set}" = set; then :
10636 $as_echo_n "(cached) " >&6
10637 else
10638 if test -z "$LD"; then
10639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10640 for ac_dir in $PATH; do
10641 IFS="$lt_save_ifs"
10642 test -z "$ac_dir" && ac_dir=.
10643 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10644 lt_cv_path_LD="$ac_dir/$ac_prog"
10645 # Check to see if the program is GNU ld. I'd rather use --version,
10646 # but apparently some GNU ld's only accept -v.
10647 # Break only if it was the GNU/non-GNU ld that we prefer.
10648 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10649 *GNU* | *'with BFD'*)
10650 test "$with_gnu_ld" != no && break
10653 test "$with_gnu_ld" != yes && break
10655 esac
10657 done
10658 IFS="$lt_save_ifs"
10659 else
10660 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10664 LD="$lt_cv_path_LD"
10665 if test -n "$LD"; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10667 $as_echo "$LD" >&6; }
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; }
10672 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10674 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10675 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10676 $as_echo_n "(cached) " >&6
10677 else
10678 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10679 case `$LD -v 2>&1 </dev/null` in
10680 *GNU* | *'with BFD'*)
10681 lt_cv_prog_gnu_ld=yes
10684 lt_cv_prog_gnu_ld=no
10686 esac
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10689 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10690 with_gnu_ld=$lt_cv_prog_gnu_ld
10694 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10695 # archiving commands below assume that GNU ld is being used.
10696 if test "$with_gnu_ld" = yes; then
10697 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10698 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10700 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10701 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10703 # If archive_cmds runs LD, not CC, wlarc should be empty
10704 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10705 # investigate it a little bit more. (MM)
10706 wlarc='${wl}'
10708 # ancient GNU ld didn't support --whole-archive et. al.
10709 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10710 grep 'no-whole-archive' > /dev/null; then
10711 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10712 else
10713 whole_archive_flag_spec_CXX=
10715 else
10716 with_gnu_ld=no
10717 wlarc=
10719 # A generic and very simple default shared library creation
10720 # command for GNU C++ for the case where it uses the native
10721 # linker, instead of GNU ld. If possible, this setting should
10722 # overridden to take advantage of the native linker features on
10723 # the platform it is being used on.
10724 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10727 # Commands to make compiler produce verbose output that lists
10728 # what "hidden" libraries, object files and flags are used when
10729 # linking a shared library.
10730 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10732 else
10733 GXX=no
10734 with_gnu_ld=no
10735 wlarc=
10738 # PORTME: fill in a description of your system's C++ link characteristics
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10740 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10741 ld_shlibs_CXX=yes
10742 case $host_os in
10743 aix3*)
10744 # FIXME: insert proper C++ library support
10745 ld_shlibs_CXX=no
10747 aix4* | aix5*)
10748 if test "$host_cpu" = ia64; then
10749 # On IA64, the linker does run time linking by default, so we don't
10750 # have to do anything special.
10751 aix_use_runtimelinking=no
10752 exp_sym_flag='-Bexport'
10753 no_entry_flag=""
10754 else
10755 aix_use_runtimelinking=no
10757 # Test if we are trying to use run time linking or normal
10758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10759 # need to do runtime linking.
10760 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10761 for ld_flag in $LDFLAGS; do
10762 case $ld_flag in
10763 *-brtl*)
10764 aix_use_runtimelinking=yes
10765 break
10767 esac
10768 done
10769 esac
10771 exp_sym_flag='-bexport'
10772 no_entry_flag='-bnoentry'
10775 # When large executables or shared objects are built, AIX ld can
10776 # have problems creating the table of contents. If linking a library
10777 # or program results in "error TOC overflow" add -mminimal-toc to
10778 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10779 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10781 archive_cmds_CXX=''
10782 hardcode_direct_CXX=yes
10783 hardcode_libdir_separator_CXX=':'
10784 link_all_deplibs_CXX=yes
10786 if test "$GXX" = yes; then
10787 case $host_os in aix4.[012]|aix4.[012].*)
10788 # We only want to do this on AIX 4.2 and lower, the check
10789 # below for broken collect2 doesn't work under 4.3+
10790 collect2name=`${CC} -print-prog-name=collect2`
10791 if test -f "$collect2name" && \
10792 strings "$collect2name" | grep resolve_lib_name >/dev/null
10793 then
10794 # We have reworked collect2
10795 hardcode_direct_CXX=yes
10796 else
10797 # We have old collect2
10798 hardcode_direct_CXX=unsupported
10799 # It fails to find uninstalled libraries when the uninstalled
10800 # path is not listed in the libpath. Setting hardcode_minus_L
10801 # to unsupported forces relinking
10802 hardcode_minus_L_CXX=yes
10803 hardcode_libdir_flag_spec_CXX='-L$libdir'
10804 hardcode_libdir_separator_CXX=
10806 esac
10807 shared_flag='-shared'
10808 if test "$aix_use_runtimelinking" = yes; then
10809 shared_flag="$shared_flag "'${wl}-G'
10811 else
10812 # not using gcc
10813 if test "$host_cpu" = ia64; then
10814 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10815 # chokes on -Wl,-G. The following line is correct:
10816 shared_flag='-G'
10817 else
10818 if test "$aix_use_runtimelinking" = yes; then
10819 shared_flag='${wl}-G'
10820 else
10821 shared_flag='${wl}-bM:SRE'
10826 # It seems that -bexpall does not export symbols beginning with
10827 # underscore (_), so it is better to generate a list of symbols to export.
10828 always_export_symbols_CXX=yes
10829 if test "$aix_use_runtimelinking" = yes; then
10830 # Warning - without using the other runtime loading flags (-brtl),
10831 # -berok will link without error, but may produce a broken library.
10832 allow_undefined_flag_CXX='-berok'
10833 # Determine the default libpath from the value encoded in an empty executable.
10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10838 main ()
10842 return 0;
10844 _ACEOF
10845 if ac_fn_cxx_try_link "$LINENO"; then :
10847 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10849 # Check for a 64-bit object if we didn't find anything.
10850 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10851 }'`; fi
10853 rm -f core conftest.err conftest.$ac_objext \
10854 conftest$ac_exeext conftest.$ac_ext
10855 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10857 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10859 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10860 else
10861 if test "$host_cpu" = ia64; then
10862 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10863 allow_undefined_flag_CXX="-z nodefs"
10864 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10865 else
10866 # Determine the default libpath from the value encoded in an empty executable.
10867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h. */
10871 main ()
10875 return 0;
10877 _ACEOF
10878 if ac_fn_cxx_try_link "$LINENO"; then :
10880 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10882 # Check for a 64-bit object if we didn't find anything.
10883 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10884 }'`; fi
10886 rm -f core conftest.err conftest.$ac_objext \
10887 conftest$ac_exeext conftest.$ac_ext
10888 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10890 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10891 # Warning - without using the other run time loading flags,
10892 # -berok will link without error, but may produce a broken library.
10893 no_undefined_flag_CXX=' ${wl}-bernotok'
10894 allow_undefined_flag_CXX=' ${wl}-berok'
10895 # -bexpall does not export symbols beginning with underscore (_)
10896 always_export_symbols_CXX=yes
10897 # Exported symbols can be pulled into shared objects from archives
10898 whole_archive_flag_spec_CXX=' '
10899 archive_cmds_need_lc_CXX=yes
10900 # This is similar to how AIX traditionally builds it's shared libraries.
10901 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10905 chorus*)
10906 case $cc_basename in
10908 # FIXME: insert proper C++ library support
10909 ld_shlibs_CXX=no
10911 esac
10915 cygwin* | mingw* | pw32*)
10916 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10917 # as there is no search path for DLLs.
10918 hardcode_libdir_flag_spec_CXX='-L$libdir'
10919 allow_undefined_flag_CXX=unsupported
10920 always_export_symbols_CXX=no
10921 enable_shared_with_static_runtimes_CXX=yes
10923 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10924 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10925 # If the export-symbols file already is a .def file (1st line
10926 # is EXPORTS), use it as is; otherwise, prepend...
10927 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10928 cp $export_symbols $output_objdir/$soname.def;
10929 else
10930 echo EXPORTS > $output_objdir/$soname.def;
10931 cat $export_symbols >> $output_objdir/$soname.def;
10933 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10934 else
10935 ld_shlibs_CXX=no
10938 darwin* | rhapsody*)
10939 case "$host_os" in
10940 rhapsody* | darwin1.[012])
10941 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10943 *) # Darwin 1.3 on
10944 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10945 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10946 else
10947 case ${MACOSX_DEPLOYMENT_TARGET} in
10948 10.[012])
10949 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10951 10.*)
10952 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10954 esac
10957 esac
10958 archive_cmds_need_lc_CXX=no
10959 hardcode_direct_CXX=no
10960 hardcode_automatic_CXX=yes
10961 hardcode_shlibpath_var_CXX=unsupported
10962 whole_archive_flag_spec_CXX=''
10963 link_all_deplibs_CXX=yes
10965 if test "$GXX" = yes ; then
10966 lt_int_apple_cc_single_mod=no
10967 output_verbose_link_cmd='echo'
10968 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10969 lt_int_apple_cc_single_mod=yes
10971 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10972 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10973 else
10974 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10976 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10977 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10978 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10979 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10980 else
10981 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10983 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10984 else
10985 case $cc_basename in
10986 xlc*)
10987 output_verbose_link_cmd='echo'
10988 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10989 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10990 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10991 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10992 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10995 ld_shlibs_CXX=no
10997 esac
11001 dgux*)
11002 case $cc_basename in
11003 ec++*)
11004 # FIXME: insert proper C++ library support
11005 ld_shlibs_CXX=no
11007 ghcx*)
11008 # Green Hills C++ Compiler
11009 # FIXME: insert proper C++ library support
11010 ld_shlibs_CXX=no
11013 # FIXME: insert proper C++ library support
11014 ld_shlibs_CXX=no
11016 esac
11018 freebsd[12]*)
11019 # C++ shared libraries reported to be fairly broken before switch to ELF
11020 ld_shlibs_CXX=no
11022 freebsd-elf*)
11023 archive_cmds_need_lc_CXX=no
11025 freebsd* | kfreebsd*-gnu | dragonfly*)
11026 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11027 # conventions
11028 ld_shlibs_CXX=yes
11030 gnu*)
11032 hpux9*)
11033 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11034 hardcode_libdir_separator_CXX=:
11035 export_dynamic_flag_spec_CXX='${wl}-E'
11036 hardcode_direct_CXX=yes
11037 hardcode_minus_L_CXX=yes # Not in the search PATH,
11038 # but as the default
11039 # location of the library.
11041 case $cc_basename in
11042 CC*)
11043 # FIXME: insert proper C++ library support
11044 ld_shlibs_CXX=no
11046 aCC*)
11047 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11048 # Commands to make compiler produce verbose output that lists
11049 # what "hidden" libraries, object files and flags are used when
11050 # linking a shared library.
11052 # There doesn't appear to be a way to prevent this compiler from
11053 # explicitly linking system object files so we need to strip them
11054 # from the output so that they don't get included in the library
11055 # dependencies.
11056 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11059 if test "$GXX" = yes; then
11060 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11061 else
11062 # FIXME: insert proper C++ library support
11063 ld_shlibs_CXX=no
11066 esac
11068 hpux10*|hpux11*)
11069 if test $with_gnu_ld = no; then
11070 case "$host_cpu" in
11071 hppa*64*)
11072 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11073 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11074 hardcode_libdir_separator_CXX=:
11076 ia64*)
11077 hardcode_libdir_flag_spec_CXX='-L$libdir'
11080 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11081 hardcode_libdir_separator_CXX=:
11082 export_dynamic_flag_spec_CXX='${wl}-E'
11084 esac
11086 case "$host_cpu" in
11087 hppa*64*)
11088 hardcode_direct_CXX=no
11089 hardcode_shlibpath_var_CXX=no
11091 ia64*)
11092 hardcode_direct_CXX=no
11093 hardcode_shlibpath_var_CXX=no
11094 hardcode_minus_L_CXX=yes # Not in the search PATH,
11095 # but as the default
11096 # location of the library.
11099 hardcode_direct_CXX=yes
11100 hardcode_minus_L_CXX=yes # Not in the search PATH,
11101 # but as the default
11102 # location of the library.
11104 esac
11106 case $cc_basename in
11107 CC*)
11108 # FIXME: insert proper C++ library support
11109 ld_shlibs_CXX=no
11111 aCC*)
11112 case "$host_cpu" in
11113 hppa*64*|ia64*)
11114 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11117 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11119 esac
11120 # Commands to make compiler produce verbose output that lists
11121 # what "hidden" libraries, object files and flags are used when
11122 # linking a shared library.
11124 # There doesn't appear to be a way to prevent this compiler from
11125 # explicitly linking system object files so we need to strip them
11126 # from the output so that they don't get included in the library
11127 # dependencies.
11128 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11131 if test "$GXX" = yes; then
11132 if test $with_gnu_ld = no; then
11133 case "$host_cpu" in
11134 ia64*|hppa*64*)
11135 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11138 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11140 esac
11142 else
11143 # FIXME: insert proper C++ library support
11144 ld_shlibs_CXX=no
11147 esac
11149 irix5* | irix6*)
11150 case $cc_basename in
11151 CC*)
11152 # SGI C++
11153 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11155 # Archives containing C++ object files must be created using
11156 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11157 # necessary to make sure instantiated templates are included
11158 # in the archive.
11159 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11162 if test "$GXX" = yes; then
11163 if test "$with_gnu_ld" = no; then
11164 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11165 else
11166 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11169 link_all_deplibs_CXX=yes
11171 esac
11172 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11173 hardcode_libdir_separator_CXX=:
11175 linux*)
11176 case $cc_basename in
11177 KCC*)
11178 # Kuck and Associates, Inc. (KAI) C++ Compiler
11180 # KCC will only create a shared library if the output file
11181 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11182 # to its proper name (with version) after linking.
11183 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11184 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11185 # Commands to make compiler produce verbose output that lists
11186 # what "hidden" libraries, object files and flags are used when
11187 # linking a shared library.
11189 # There doesn't appear to be a way to prevent this compiler from
11190 # explicitly linking system object files so we need to strip them
11191 # from the output so that they don't get included in the library
11192 # dependencies.
11193 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11195 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11196 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11198 # Archives containing C++ object files must be created using
11199 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11200 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11202 icpc*)
11203 # Intel C++
11204 with_gnu_ld=yes
11205 # version 8.0 and above of icpc choke on multiply defined symbols
11206 # if we add $predep_objects and $postdep_objects, however 7.1 and
11207 # earlier do not add the objects themselves.
11208 case `$CC -V 2>&1` in
11209 *"Version 7."*)
11210 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11211 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11213 *) # Version 8.0 or newer
11214 tmp_idyn=
11215 case $host_cpu in
11216 ia64*) tmp_idyn=' -i_dynamic';;
11217 esac
11218 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11219 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11221 esac
11222 archive_cmds_need_lc_CXX=no
11223 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11224 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11225 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11227 pgCC*)
11228 # Portland Group C++ compiler
11229 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11230 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11232 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11233 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11234 whole_archive_flag_spec_CXX=''
11236 cxx*)
11237 # Compaq C++
11238 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11239 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11241 runpath_var=LD_RUN_PATH
11242 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11243 hardcode_libdir_separator_CXX=:
11245 # Commands to make compiler produce verbose output that lists
11246 # what "hidden" libraries, object files and flags are used when
11247 # linking a shared library.
11249 # There doesn't appear to be a way to prevent this compiler from
11250 # explicitly linking system object files so we need to strip them
11251 # from the output so that they don't get included in the library
11252 # dependencies.
11253 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11255 esac
11257 lynxos*)
11258 # FIXME: insert proper C++ library support
11259 ld_shlibs_CXX=no
11261 m88k*)
11262 # FIXME: insert proper C++ library support
11263 ld_shlibs_CXX=no
11265 mvs*)
11266 case $cc_basename in
11267 cxx*)
11268 # FIXME: insert proper C++ library support
11269 ld_shlibs_CXX=no
11272 # FIXME: insert proper C++ library support
11273 ld_shlibs_CXX=no
11275 esac
11277 netbsd*)
11278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11279 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11280 wlarc=
11281 hardcode_libdir_flag_spec_CXX='-R$libdir'
11282 hardcode_direct_CXX=yes
11283 hardcode_shlibpath_var_CXX=no
11285 # Workaround some broken pre-1.5 toolchains
11286 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11288 openbsd2*)
11289 # C++ shared libraries are fairly broken
11290 ld_shlibs_CXX=no
11292 openbsd*)
11293 hardcode_direct_CXX=yes
11294 hardcode_shlibpath_var_CXX=no
11295 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11296 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11298 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11299 export_dynamic_flag_spec_CXX='${wl}-E'
11300 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11302 output_verbose_link_cmd='echo'
11304 osf3*)
11305 case $cc_basename in
11306 KCC*)
11307 # Kuck and Associates, Inc. (KAI) C++ Compiler
11309 # KCC will only create a shared library if the output file
11310 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11311 # to its proper name (with version) after linking.
11312 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11314 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11315 hardcode_libdir_separator_CXX=:
11317 # Archives containing C++ object files must be created using
11318 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11319 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11322 RCC*)
11323 # Rational C++ 2.4.1
11324 # FIXME: insert proper C++ library support
11325 ld_shlibs_CXX=no
11327 cxx*)
11328 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11329 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11331 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11332 hardcode_libdir_separator_CXX=:
11334 # Commands to make compiler produce verbose output that lists
11335 # what "hidden" libraries, object files and flags are used when
11336 # linking a shared library.
11338 # There doesn't appear to be a way to prevent this compiler from
11339 # explicitly linking system object files so we need to strip them
11340 # from the output so that they don't get included in the library
11341 # dependencies.
11342 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11345 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11346 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11347 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11349 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11350 hardcode_libdir_separator_CXX=:
11352 # Commands to make compiler produce verbose output that lists
11353 # what "hidden" libraries, object files and flags are used when
11354 # linking a shared library.
11355 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11357 else
11358 # FIXME: insert proper C++ library support
11359 ld_shlibs_CXX=no
11362 esac
11364 osf4* | osf5*)
11365 case $cc_basename in
11366 KCC*)
11367 # Kuck and Associates, Inc. (KAI) C++ Compiler
11369 # KCC will only create a shared library if the output file
11370 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11371 # to its proper name (with version) after linking.
11372 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11374 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11375 hardcode_libdir_separator_CXX=:
11377 # Archives containing C++ object files must be created using
11378 # the KAI C++ compiler.
11379 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11381 RCC*)
11382 # Rational C++ 2.4.1
11383 # FIXME: insert proper C++ library support
11384 ld_shlibs_CXX=no
11386 cxx*)
11387 allow_undefined_flag_CXX=' -expect_unresolved \*'
11388 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11389 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11390 echo "-hidden">> $lib.exp~
11391 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11392 $rm $lib.exp'
11394 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11395 hardcode_libdir_separator_CXX=:
11397 # Commands to make compiler produce verbose output that lists
11398 # what "hidden" libraries, object files and flags are used when
11399 # linking a shared library.
11401 # There doesn't appear to be a way to prevent this compiler from
11402 # explicitly linking system object files so we need to strip them
11403 # from the output so that they don't get included in the library
11404 # dependencies.
11405 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11408 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11409 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11410 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11412 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11413 hardcode_libdir_separator_CXX=:
11415 # Commands to make compiler produce verbose output that lists
11416 # what "hidden" libraries, object files and flags are used when
11417 # linking a shared library.
11418 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11420 else
11421 # FIXME: insert proper C++ library support
11422 ld_shlibs_CXX=no
11425 esac
11427 psos*)
11428 # FIXME: insert proper C++ library support
11429 ld_shlibs_CXX=no
11431 sco*)
11432 archive_cmds_need_lc_CXX=no
11433 case $cc_basename in
11434 CC*)
11435 # FIXME: insert proper C++ library support
11436 ld_shlibs_CXX=no
11439 # FIXME: insert proper C++ library support
11440 ld_shlibs_CXX=no
11442 esac
11444 sunos4*)
11445 case $cc_basename in
11446 CC*)
11447 # Sun C++ 4.x
11448 # FIXME: insert proper C++ library support
11449 ld_shlibs_CXX=no
11451 lcc*)
11452 # Lucid
11453 # FIXME: insert proper C++ library support
11454 ld_shlibs_CXX=no
11457 # FIXME: insert proper C++ library support
11458 ld_shlibs_CXX=no
11460 esac
11462 solaris*)
11463 case $cc_basename in
11464 CC*)
11465 # Sun C++ 4.2, 5.x and Centerline C++
11466 no_undefined_flag_CXX=' -zdefs'
11467 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11468 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11469 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11471 hardcode_libdir_flag_spec_CXX='-R$libdir'
11472 hardcode_shlibpath_var_CXX=no
11473 case $host_os in
11474 solaris2.[0-5] | solaris2.[0-5].*) ;;
11476 # The C++ compiler is used as linker so we must use $wl
11477 # flag to pass the commands to the underlying system
11478 # linker. We must also pass each convience library through
11479 # to the system linker between allextract/defaultextract.
11480 # The C++ compiler will combine linker options so we
11481 # cannot just pass the convience library names through
11482 # without $wl.
11483 # Supported since Solaris 2.6 (maybe 2.5.1?)
11484 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11486 esac
11487 link_all_deplibs_CXX=yes
11489 # Commands to make compiler produce verbose output that lists
11490 # what "hidden" libraries, object files and flags are used when
11491 # linking a shared library.
11493 # There doesn't appear to be a way to prevent this compiler from
11494 # explicitly linking system object files so we need to strip them
11495 # from the output so that they don't get included in the library
11496 # dependencies.
11497 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11499 # Archives containing C++ object files must be created using
11500 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11501 # necessary to make sure instantiated templates are included
11502 # in the archive.
11503 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11505 gcx*)
11506 # Green Hills C++ Compiler
11507 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11509 # The C++ compiler must be used to create the archive.
11510 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11513 # GNU C++ compiler with Solaris linker
11514 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11515 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11516 if $CC --version | grep -v '^2\.7' > /dev/null; then
11517 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11518 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11519 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11521 # Commands to make compiler produce verbose output that lists
11522 # what "hidden" libraries, object files and flags are used when
11523 # linking a shared library.
11524 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11525 else
11526 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11527 # platform.
11528 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11529 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11530 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11532 # Commands to make compiler produce verbose output that lists
11533 # what "hidden" libraries, object files and flags are used when
11534 # linking a shared library.
11535 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11538 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11541 esac
11543 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11544 archive_cmds_need_lc_CXX=no
11546 tandem*)
11547 case $cc_basename in
11548 NCC*)
11549 # NonStop-UX NCC 3.20
11550 # FIXME: insert proper C++ library support
11551 ld_shlibs_CXX=no
11554 # FIXME: insert proper C++ library support
11555 ld_shlibs_CXX=no
11557 esac
11559 vxworks*)
11560 # FIXME: insert proper C++ library support
11561 ld_shlibs_CXX=no
11564 # FIXME: insert proper C++ library support
11565 ld_shlibs_CXX=no
11567 esac
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11569 $as_echo "$ld_shlibs_CXX" >&6; }
11570 test "$ld_shlibs_CXX" = no && can_build_shared=no
11572 GCC_CXX="$GXX"
11573 LD_CXX="$LD"
11575 ## CAVEAT EMPTOR:
11576 ## There is no encapsulation within the following macros, do not change
11577 ## the running order or otherwise move them around unless you know exactly
11578 ## what you are doing...
11580 cat > conftest.$ac_ext <<EOF
11581 class Foo
11583 public:
11584 Foo (void) { a = 0; }
11585 private:
11586 int a;
11590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11591 (eval $ac_compile) 2>&5
11592 ac_status=$?
11593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11594 test $ac_status = 0; }; then
11595 # Parse the compiler output and extract the necessary
11596 # objects, libraries and library flags.
11598 # Sentinel used to keep track of whether or not we are before
11599 # the conftest object file.
11600 pre_test_object_deps_done=no
11602 # The `*' in the case matches for architectures that use `case' in
11603 # $output_verbose_cmd can trigger glob expansion during the loop
11604 # eval without this substitution.
11605 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11607 for p in `eval $output_verbose_link_cmd`; do
11608 case $p in
11610 -L* | -R* | -l*)
11611 # Some compilers place space between "-{L,R}" and the path.
11612 # Remove the space.
11613 if test $p = "-L" \
11614 || test $p = "-R"; then
11615 prev=$p
11616 continue
11617 else
11618 prev=
11621 if test "$pre_test_object_deps_done" = no; then
11622 case $p in
11623 -L* | -R*)
11624 # Internal compiler library paths should come after those
11625 # provided the user. The postdeps already come after the
11626 # user supplied libs so there is no need to process them.
11627 if test -z "$compiler_lib_search_path_CXX"; then
11628 compiler_lib_search_path_CXX="${prev}${p}"
11629 else
11630 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11633 # The "-l" case would never come before the object being
11634 # linked, so don't bother handling this case.
11635 esac
11636 else
11637 if test -z "$postdeps_CXX"; then
11638 postdeps_CXX="${prev}${p}"
11639 else
11640 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11645 *.$objext)
11646 # This assumes that the test object file only shows up
11647 # once in the compiler output.
11648 if test "$p" = "conftest.$objext"; then
11649 pre_test_object_deps_done=yes
11650 continue
11653 if test "$pre_test_object_deps_done" = no; then
11654 if test -z "$predep_objects_CXX"; then
11655 predep_objects_CXX="$p"
11656 else
11657 predep_objects_CXX="$predep_objects_CXX $p"
11659 else
11660 if test -z "$postdep_objects_CXX"; then
11661 postdep_objects_CXX="$p"
11662 else
11663 postdep_objects_CXX="$postdep_objects_CXX $p"
11668 *) ;; # Ignore the rest.
11670 esac
11671 done
11673 # Clean up.
11674 rm -f a.out a.exe
11675 else
11676 echo "libtool.m4: error: problem compiling CXX test program"
11679 $rm -f confest.$objext
11681 case " $postdeps_CXX " in
11682 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11683 esac
11685 lt_prog_compiler_wl_CXX=
11686 lt_prog_compiler_pic_CXX=
11687 lt_prog_compiler_static_CXX=
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11690 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11692 # C++ specific cases for pic, static, wl, etc.
11693 if test "$GXX" = yes; then
11694 lt_prog_compiler_wl_CXX='-Wl,'
11695 lt_prog_compiler_static_CXX='-static'
11697 case $host_os in
11698 aix*)
11699 # All AIX code is PIC.
11700 if test "$host_cpu" = ia64; then
11701 # AIX 5 now supports IA64 processor
11702 lt_prog_compiler_static_CXX='-Bstatic'
11705 amigaos*)
11706 # FIXME: we need at least 68020 code to build shared libraries, but
11707 # adding the `-m68020' flag to GCC prevents building anything better,
11708 # like `-m68040'.
11709 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11711 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11712 # PIC is the default for these OSes.
11714 mingw* | os2* | pw32*)
11715 # This hack is so that the source file can tell whether it is being
11716 # built for inclusion in a dll (and should export symbols for example).
11717 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11719 darwin* | rhapsody*)
11720 # PIC is the default on this platform
11721 # Common symbols not allowed in MH_DYLIB files
11722 lt_prog_compiler_pic_CXX='-fno-common'
11724 *djgpp*)
11725 # DJGPP does not support shared libraries at all
11726 lt_prog_compiler_pic_CXX=
11728 sysv4*MP*)
11729 if test -d /usr/nec; then
11730 lt_prog_compiler_pic_CXX=-Kconform_pic
11733 hpux*)
11734 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11735 # not for PA HP-UX.
11736 case "$host_cpu" in
11737 hppa*64*|ia64*)
11740 lt_prog_compiler_pic_CXX='-fPIC'
11742 esac
11745 lt_prog_compiler_pic_CXX='-fPIC'
11747 esac
11748 else
11749 case $host_os in
11750 aix4* | aix5*)
11751 # All AIX code is PIC.
11752 if test "$host_cpu" = ia64; then
11753 # AIX 5 now supports IA64 processor
11754 lt_prog_compiler_static_CXX='-Bstatic'
11755 else
11756 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11759 chorus*)
11760 case $cc_basename in
11761 cxch68*)
11762 # Green Hills C++ Compiler
11763 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11765 esac
11767 darwin*)
11768 # PIC is the default on this platform
11769 # Common symbols not allowed in MH_DYLIB files
11770 case $cc_basename in
11771 xlc*)
11772 lt_prog_compiler_pic_CXX='-qnocommon'
11773 lt_prog_compiler_wl_CXX='-Wl,'
11775 esac
11777 dgux*)
11778 case $cc_basename in
11779 ec++*)
11780 lt_prog_compiler_pic_CXX='-KPIC'
11782 ghcx*)
11783 # Green Hills C++ Compiler
11784 lt_prog_compiler_pic_CXX='-pic'
11788 esac
11790 freebsd* | kfreebsd*-gnu | dragonfly*)
11791 # FreeBSD uses GNU C++
11793 hpux9* | hpux10* | hpux11*)
11794 case $cc_basename in
11795 CC*)
11796 lt_prog_compiler_wl_CXX='-Wl,'
11797 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11798 if test "$host_cpu" != ia64; then
11799 lt_prog_compiler_pic_CXX='+Z'
11802 aCC*)
11803 lt_prog_compiler_wl_CXX='-Wl,'
11804 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11805 case "$host_cpu" in
11806 hppa*64*|ia64*)
11807 # +Z the default
11810 lt_prog_compiler_pic_CXX='+Z'
11812 esac
11816 esac
11818 irix5* | irix6* | nonstopux*)
11819 case $cc_basename in
11820 CC*)
11821 lt_prog_compiler_wl_CXX='-Wl,'
11822 lt_prog_compiler_static_CXX='-non_shared'
11823 # CC pic flag -KPIC is the default.
11827 esac
11829 linux*)
11830 case $cc_basename in
11831 KCC*)
11832 # KAI C++ Compiler
11833 lt_prog_compiler_wl_CXX='--backend -Wl,'
11834 lt_prog_compiler_pic_CXX='-fPIC'
11836 icpc* | ecpc*)
11837 # Intel C++
11838 lt_prog_compiler_wl_CXX='-Wl,'
11839 lt_prog_compiler_pic_CXX='-KPIC'
11840 lt_prog_compiler_static_CXX='-static'
11842 pgCC*)
11843 # Portland Group C++ compiler.
11844 lt_prog_compiler_wl_CXX='-Wl,'
11845 lt_prog_compiler_pic_CXX='-fpic'
11846 lt_prog_compiler_static_CXX='-static'
11848 cxx*)
11849 # Compaq C++
11850 # Make sure the PIC flag is empty. It appears that all Alpha
11851 # Linux and Compaq Tru64 Unix objects are PIC.
11852 lt_prog_compiler_pic_CXX=
11853 lt_prog_compiler_static_CXX='-non_shared'
11857 esac
11859 lynxos*)
11861 m88k*)
11863 mvs*)
11864 case $cc_basename in
11865 cxx*)
11866 lt_prog_compiler_pic_CXX='-W c,exportall'
11870 esac
11872 netbsd*)
11874 osf3* | osf4* | osf5*)
11875 case $cc_basename in
11876 KCC*)
11877 lt_prog_compiler_wl_CXX='--backend -Wl,'
11879 RCC*)
11880 # Rational C++ 2.4.1
11881 lt_prog_compiler_pic_CXX='-pic'
11883 cxx*)
11884 # Digital/Compaq C++
11885 lt_prog_compiler_wl_CXX='-Wl,'
11886 # Make sure the PIC flag is empty. It appears that all Alpha
11887 # Linux and Compaq Tru64 Unix objects are PIC.
11888 lt_prog_compiler_pic_CXX=
11889 lt_prog_compiler_static_CXX='-non_shared'
11893 esac
11895 psos*)
11897 sco*)
11898 case $cc_basename in
11899 CC*)
11900 lt_prog_compiler_pic_CXX='-fPIC'
11904 esac
11906 solaris*)
11907 case $cc_basename in
11908 CC*)
11909 # Sun C++ 4.2, 5.x and Centerline C++
11910 lt_prog_compiler_pic_CXX='-KPIC'
11911 lt_prog_compiler_static_CXX='-Bstatic'
11912 lt_prog_compiler_wl_CXX='-Qoption ld '
11914 gcx*)
11915 # Green Hills C++ Compiler
11916 lt_prog_compiler_pic_CXX='-PIC'
11920 esac
11922 sunos4*)
11923 case $cc_basename in
11924 CC*)
11925 # Sun C++ 4.x
11926 lt_prog_compiler_pic_CXX='-pic'
11927 lt_prog_compiler_static_CXX='-Bstatic'
11929 lcc*)
11930 # Lucid
11931 lt_prog_compiler_pic_CXX='-pic'
11935 esac
11937 tandem*)
11938 case $cc_basename in
11939 NCC*)
11940 # NonStop-UX NCC 3.20
11941 lt_prog_compiler_pic_CXX='-KPIC'
11945 esac
11947 unixware*)
11949 vxworks*)
11952 lt_prog_compiler_can_build_shared_CXX=no
11954 esac
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11958 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11961 # Check to make sure the PIC flag actually works.
11963 if test -n "$lt_prog_compiler_pic_CXX"; then
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11966 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11967 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 lt_prog_compiler_pic_works_CXX=no
11971 ac_outfile=conftest.$ac_objext
11972 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11973 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11974 # Insert the option either (1) after the last *FLAGS variable, or
11975 # (2) before a word containing "conftest.", or (3) at the end.
11976 # Note that $ac_compile itself does not contain backslashes and begins
11977 # with a dollar sign (not a hyphen), so the echo should work correctly.
11978 # The option is referenced via a variable to avoid confusing sed.
11979 lt_compile=`echo "$ac_compile" | $SED \
11980 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11982 -e 's:$: $lt_compiler_flag:'`
11983 (eval echo "\"\$as_me:11983: $lt_compile\"" >&5)
11984 (eval "$lt_compile" 2>conftest.err)
11985 ac_status=$?
11986 cat conftest.err >&5
11987 echo "$as_me:11987: \$? = $ac_status" >&5
11988 if (exit $ac_status) && test -s "$ac_outfile"; then
11989 # The compiler can only warn and ignore the option if not recognized
11990 # So say no if there are warnings other than the usual output.
11991 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
11992 $SED '/^$/d' conftest.err >conftest.er2
11993 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11994 lt_prog_compiler_pic_works_CXX=yes
11997 $rm conftest*
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
12001 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
12003 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12004 case $lt_prog_compiler_pic_CXX in
12005 "" | " "*) ;;
12006 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12007 esac
12008 else
12009 lt_prog_compiler_pic_CXX=
12010 lt_prog_compiler_can_build_shared_CXX=no
12014 case "$host_os" in
12015 # For platforms which do not support PIC, -DPIC is meaningless:
12016 *djgpp*)
12017 lt_prog_compiler_pic_CXX=
12020 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12022 esac
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12025 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12026 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 lt_cv_prog_compiler_c_o_CXX=no
12030 $rm -r conftest 2>/dev/null
12031 mkdir conftest
12032 cd conftest
12033 mkdir out
12034 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12036 lt_compiler_flag="-o out/conftest2.$ac_objext"
12037 # Insert the option either (1) after the last *FLAGS variable, or
12038 # (2) before a word containing "conftest.", or (3) at the end.
12039 # Note that $ac_compile itself does not contain backslashes and begins
12040 # with a dollar sign (not a hyphen), so the echo should work correctly.
12041 lt_compile=`echo "$ac_compile" | $SED \
12042 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12044 -e 's:$: $lt_compiler_flag:'`
12045 (eval echo "\"\$as_me:12045: $lt_compile\"" >&5)
12046 (eval "$lt_compile" 2>out/conftest.err)
12047 ac_status=$?
12048 cat out/conftest.err >&5
12049 echo "$as_me:12049: \$? = $ac_status" >&5
12050 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12051 then
12052 # The compiler can only warn and ignore the option if not recognized
12053 # So say no if there are warnings
12054 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12055 $SED '/^$/d' out/conftest.err >out/conftest.er2
12056 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12057 lt_cv_prog_compiler_c_o_CXX=yes
12060 chmod u+w .
12061 $rm conftest*
12062 # SGI C++ compiler will create directory out/ii_files/ for
12063 # template instantiation
12064 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12065 $rm out/* && rmdir out
12066 cd ..
12067 rmdir conftest
12068 $rm conftest*
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12072 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12075 hard_links="nottested"
12076 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12077 # do not overwrite the value of need_locks provided by the user
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12079 $as_echo_n "checking if we can lock with hard links... " >&6; }
12080 hard_links=yes
12081 $rm conftest*
12082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12083 touch conftest.a
12084 ln conftest.a conftest.b 2>&5 || hard_links=no
12085 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12087 $as_echo "$hard_links" >&6; }
12088 if test "$hard_links" = no; then
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12090 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12091 need_locks=warn
12093 else
12094 need_locks=no
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12098 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12100 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12101 case $host_os in
12102 aix4* | aix5*)
12103 # If we're using GNU nm, then we don't want the "-C" option.
12104 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12105 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12106 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12107 else
12108 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12111 pw32*)
12112 export_symbols_cmds_CXX="$ltdll_cmds"
12114 cygwin* | mingw*)
12115 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12118 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12120 esac
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12123 $as_echo "$ld_shlibs_CXX" >&6; }
12124 test "$ld_shlibs_CXX" = no && can_build_shared=no
12126 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12127 if test "$GCC" = yes; then
12128 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12132 # Do we need to explicitly link libc?
12134 case "x$archive_cmds_need_lc_CXX" in
12135 x|xyes)
12136 # Assume -lc should be added
12137 archive_cmds_need_lc_CXX=yes
12139 if test "$enable_shared" = yes && test "$GCC" = yes; then
12140 case $archive_cmds_CXX in
12141 *'~'*)
12142 # FIXME: we may have to deal with multi-command sequences.
12144 '$CC '*)
12145 # Test whether the compiler implicitly links with -lc since on some
12146 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12147 # to ld, don't add -lc before -lgcc.
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12149 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12150 $rm conftest*
12151 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12154 (eval $ac_compile) 2>&5
12155 ac_status=$?
12156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12157 test $ac_status = 0; } 2>conftest.err; then
12158 soname=conftest
12159 lib=conftest
12160 libobjs=conftest.$ac_objext
12161 deplibs=
12162 wl=$lt_prog_compiler_wl_CXX
12163 compiler_flags=-v
12164 linker_flags=-v
12165 verstring=
12166 output_objdir=.
12167 libname=conftest
12168 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12169 allow_undefined_flag_CXX=
12170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12171 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12172 ac_status=$?
12173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12174 test $ac_status = 0; }
12175 then
12176 archive_cmds_need_lc_CXX=no
12177 else
12178 archive_cmds_need_lc_CXX=yes
12180 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12181 else
12182 cat conftest.err 1>&5
12184 $rm conftest*
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12186 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
12188 esac
12191 esac
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12194 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12195 library_names_spec=
12196 libname_spec='lib$name'
12197 soname_spec=
12198 shrext_cmds=".so"
12199 postinstall_cmds=
12200 postuninstall_cmds=
12201 finish_cmds=
12202 finish_eval=
12203 shlibpath_var=
12204 shlibpath_overrides_runpath=unknown
12205 version_type=none
12206 dynamic_linker="$host_os ld.so"
12207 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12208 if test "$GCC" = yes; then
12209 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12210 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12211 # if the path contains ";" then we assume it to be the separator
12212 # otherwise default to the standard path separator (i.e. ":") - it is
12213 # assumed that no part of a normal pathname contains ";" but that should
12214 # okay in the real world where ";" in dirpaths is itself problematic.
12215 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12216 else
12217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12219 else
12220 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12222 need_lib_prefix=unknown
12223 hardcode_into_libs=no
12225 # when you set need_version to no, make sure it does not cause -set_version
12226 # flags to be left without arguments
12227 need_version=unknown
12229 case $host_os in
12230 aix3*)
12231 version_type=linux
12232 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12233 shlibpath_var=LIBPATH
12235 # AIX 3 has no versioning support, so we append a major version to the name.
12236 soname_spec='${libname}${release}${shared_ext}$major'
12239 aix4* | aix5*)
12240 version_type=linux
12241 need_lib_prefix=no
12242 need_version=no
12243 hardcode_into_libs=yes
12244 if test "$host_cpu" = ia64; then
12245 # AIX 5 supports IA64
12246 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12247 shlibpath_var=LD_LIBRARY_PATH
12248 else
12249 # With GCC up to 2.95.x, collect2 would create an import file
12250 # for dependence libraries. The import file would start with
12251 # the line `#! .'. This would cause the generated library to
12252 # depend on `.', always an invalid library. This was fixed in
12253 # development snapshots of GCC prior to 3.0.
12254 case $host_os in
12255 aix4 | aix4.[01] | aix4.[01].*)
12256 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12257 echo ' yes '
12258 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12260 else
12261 can_build_shared=no
12264 esac
12265 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12266 # soname into executable. Probably we can add versioning support to
12267 # collect2, so additional links can be useful in future.
12268 if test "$aix_use_runtimelinking" = yes; then
12269 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12270 # instead of lib<name>.a to let people know that these are not
12271 # typical AIX shared libraries.
12272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12273 else
12274 # We preserve .a as extension for shared libraries through AIX4.2
12275 # and later when we are not doing run time linking.
12276 library_names_spec='${libname}${release}.a $libname.a'
12277 soname_spec='${libname}${release}${shared_ext}$major'
12279 shlibpath_var=LIBPATH
12283 amigaos*)
12284 library_names_spec='$libname.ixlibrary $libname.a'
12285 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12286 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'
12289 beos*)
12290 library_names_spec='${libname}${shared_ext}'
12291 dynamic_linker="$host_os ld.so"
12292 shlibpath_var=LIBRARY_PATH
12295 bsdi[45]*)
12296 version_type=linux
12297 need_version=no
12298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12299 soname_spec='${libname}${release}${shared_ext}$major'
12300 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12301 shlibpath_var=LD_LIBRARY_PATH
12302 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12303 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12304 # the default ld.so.conf also contains /usr/contrib/lib and
12305 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12306 # libtool to hard-code these into programs
12309 cygwin* | mingw* | pw32*)
12310 version_type=windows
12311 shrext_cmds=".dll"
12312 need_version=no
12313 need_lib_prefix=no
12315 case $GCC,$host_os in
12316 yes,cygwin* | yes,mingw* | yes,pw32*)
12317 library_names_spec='$libname.dll.a'
12318 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12319 postinstall_cmds='base_file=`basename \${file}`~
12320 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12321 dldir=$destdir/`dirname \$dlpath`~
12322 test -d \$dldir || mkdir -p \$dldir~
12323 $install_prog $dir/$dlname \$dldir/$dlname'
12324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12325 dlpath=$dir/\$dldll~
12326 $rm \$dlpath'
12327 shlibpath_overrides_runpath=yes
12329 case $host_os in
12330 cygwin*)
12331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12333 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12335 mingw*)
12336 # MinGW DLLs use traditional 'lib' prefix
12337 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12338 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12339 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12340 # It is most probably a Windows format PATH printed by
12341 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12342 # path with ; separators, and with drive letters. We can handle the
12343 # drive letters (cygwin fileutils understands them), so leave them,
12344 # especially as we might pass files found there to a mingw objdump,
12345 # which wouldn't understand a cygwinified path. Ahh.
12346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12347 else
12348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12351 pw32*)
12352 # pw32 DLLs use 'pw' prefix rather than 'lib'
12353 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12355 esac
12359 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12361 esac
12362 dynamic_linker='Win32 ld.exe'
12363 # FIXME: first we should search . and the directory the executable is in
12364 shlibpath_var=PATH
12367 darwin* | rhapsody*)
12368 dynamic_linker="$host_os dyld"
12369 version_type=darwin
12370 need_lib_prefix=no
12371 need_version=no
12372 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12373 soname_spec='${libname}${release}${major}$shared_ext'
12374 shlibpath_overrides_runpath=yes
12375 shlibpath_var=DYLD_LIBRARY_PATH
12376 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12377 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12378 if test "$GCC" = yes; then
12379 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12380 else
12381 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12383 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12386 dgux*)
12387 version_type=linux
12388 need_lib_prefix=no
12389 need_version=no
12390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12391 soname_spec='${libname}${release}${shared_ext}$major'
12392 shlibpath_var=LD_LIBRARY_PATH
12395 freebsd1*)
12396 dynamic_linker=no
12399 kfreebsd*-gnu)
12400 version_type=linux
12401 need_lib_prefix=no
12402 need_version=no
12403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12404 soname_spec='${libname}${release}${shared_ext}$major'
12405 shlibpath_var=LD_LIBRARY_PATH
12406 shlibpath_overrides_runpath=no
12407 hardcode_into_libs=yes
12408 dynamic_linker='GNU ld.so'
12411 freebsd* | dragonfly*)
12412 # DragonFly does not have aout. When/if they implement a new
12413 # versioning mechanism, adjust this.
12414 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12415 version_type=freebsd-$objformat
12416 case $version_type in
12417 freebsd-elf*)
12418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12419 need_version=no
12420 need_lib_prefix=no
12422 freebsd-*)
12423 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12424 need_version=yes
12426 esac
12427 shlibpath_var=LD_LIBRARY_PATH
12428 case $host_os in
12429 freebsd2*)
12430 shlibpath_overrides_runpath=yes
12432 freebsd3.[01]* | freebsdelf3.[01]*)
12433 shlibpath_overrides_runpath=yes
12434 hardcode_into_libs=yes
12436 *) # from 3.2 on
12437 shlibpath_overrides_runpath=no
12438 hardcode_into_libs=yes
12440 esac
12443 gnu*)
12444 version_type=linux
12445 need_lib_prefix=no
12446 need_version=no
12447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12448 soname_spec='${libname}${release}${shared_ext}$major'
12449 shlibpath_var=LD_LIBRARY_PATH
12450 hardcode_into_libs=yes
12453 hpux9* | hpux10* | hpux11*)
12454 # Give a soname corresponding to the major version so that dld.sl refuses to
12455 # link against other versions.
12456 version_type=sunos
12457 need_lib_prefix=no
12458 need_version=no
12459 case "$host_cpu" in
12460 ia64*)
12461 shrext_cmds='.so'
12462 hardcode_into_libs=yes
12463 dynamic_linker="$host_os dld.so"
12464 shlibpath_var=LD_LIBRARY_PATH
12465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12467 soname_spec='${libname}${release}${shared_ext}$major'
12468 if test "X$HPUX_IA64_MODE" = X32; then
12469 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12470 else
12471 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12475 hppa*64*)
12476 shrext_cmds='.sl'
12477 hardcode_into_libs=yes
12478 dynamic_linker="$host_os dld.sl"
12479 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12482 soname_spec='${libname}${release}${shared_ext}$major'
12483 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12487 shrext_cmds='.sl'
12488 dynamic_linker="$host_os dld.sl"
12489 shlibpath_var=SHLIB_PATH
12490 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12492 soname_spec='${libname}${release}${shared_ext}$major'
12494 esac
12495 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12496 postinstall_cmds='chmod 555 $lib'
12499 irix5* | irix6* | nonstopux*)
12500 case $host_os in
12501 nonstopux*) version_type=nonstopux ;;
12503 if test "$lt_cv_prog_gnu_ld" = yes; then
12504 version_type=linux
12505 else
12506 version_type=irix
12507 fi ;;
12508 esac
12509 need_lib_prefix=no
12510 need_version=no
12511 soname_spec='${libname}${release}${shared_ext}$major'
12512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12513 case $host_os in
12514 irix5* | nonstopux*)
12515 libsuff= shlibsuff=
12518 case $LD in # libtool.m4 will add one of these switches to LD
12519 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12520 libsuff= shlibsuff= libmagic=32-bit;;
12521 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12522 libsuff=32 shlibsuff=N32 libmagic=N32;;
12523 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12524 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12525 *) libsuff= shlibsuff= libmagic=never-match;;
12526 esac
12528 esac
12529 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12530 shlibpath_overrides_runpath=no
12531 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12532 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12533 hardcode_into_libs=yes
12536 # No shared lib support for Linux oldld, aout, or coff.
12537 linux*oldld* | linux*aout* | linux*coff*)
12538 dynamic_linker=no
12541 # This must be Linux ELF.
12542 linux*)
12543 version_type=linux
12544 need_lib_prefix=no
12545 need_version=no
12546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12547 soname_spec='${libname}${release}${shared_ext}$major'
12548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12549 shlibpath_var=LD_LIBRARY_PATH
12550 shlibpath_overrides_runpath=no
12551 # This implies no fast_install, which is unacceptable.
12552 # Some rework will be needed to allow for fast_install
12553 # before this can be enabled.
12554 hardcode_into_libs=yes
12556 # find out which ABI we are using
12557 libsuff=
12558 case "$host_cpu" in
12559 x86_64*|s390x*|powerpc64*)
12560 echo '#line 12560 "configure"' > conftest.$ac_ext
12561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12562 (eval $ac_compile) 2>&5
12563 ac_status=$?
12564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12565 test $ac_status = 0; }; then
12566 case `/usr/bin/file conftest.$ac_objext` in
12567 *64-bit*)
12568 libsuff=64
12569 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12571 esac
12573 rm -rf conftest*
12575 esac
12577 # Append ld.so.conf contents to the search path
12578 if test -f /etc/ld.so.conf; then
12579 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12580 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12583 # We used to test for /lib/ld.so.1 and disable shared libraries on
12584 # powerpc, because MkLinux only supported shared libraries with the
12585 # GNU dynamic linker. Since this was broken with cross compilers,
12586 # most powerpc-linux boxes support dynamic linking these days and
12587 # people can always --disable-shared, the test was removed, and we
12588 # assume the GNU/Linux dynamic linker is in use.
12589 dynamic_linker='GNU/Linux ld.so'
12592 knetbsd*-gnu)
12593 version_type=linux
12594 need_lib_prefix=no
12595 need_version=no
12596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12597 soname_spec='${libname}${release}${shared_ext}$major'
12598 shlibpath_var=LD_LIBRARY_PATH
12599 shlibpath_overrides_runpath=no
12600 hardcode_into_libs=yes
12601 dynamic_linker='GNU ld.so'
12604 netbsd*)
12605 version_type=sunos
12606 need_lib_prefix=no
12607 need_version=no
12608 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12611 dynamic_linker='NetBSD (a.out) ld.so'
12612 else
12613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12614 soname_spec='${libname}${release}${shared_ext}$major'
12615 dynamic_linker='NetBSD ld.elf_so'
12617 shlibpath_var=LD_LIBRARY_PATH
12618 shlibpath_overrides_runpath=yes
12619 hardcode_into_libs=yes
12622 newsos6)
12623 version_type=linux
12624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12625 shlibpath_var=LD_LIBRARY_PATH
12626 shlibpath_overrides_runpath=yes
12629 nto-qnx*)
12630 version_type=linux
12631 need_lib_prefix=no
12632 need_version=no
12633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12634 soname_spec='${libname}${release}${shared_ext}$major'
12635 shlibpath_var=LD_LIBRARY_PATH
12636 shlibpath_overrides_runpath=yes
12639 openbsd*)
12640 version_type=sunos
12641 need_lib_prefix=no
12642 need_version=no
12643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12645 shlibpath_var=LD_LIBRARY_PATH
12646 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12647 case $host_os in
12648 openbsd2.[89] | openbsd2.[89].*)
12649 shlibpath_overrides_runpath=no
12652 shlibpath_overrides_runpath=yes
12654 esac
12655 else
12656 shlibpath_overrides_runpath=yes
12660 os2*)
12661 libname_spec='$name'
12662 shrext_cmds=".dll"
12663 need_lib_prefix=no
12664 library_names_spec='$libname${shared_ext} $libname.a'
12665 dynamic_linker='OS/2 ld.exe'
12666 shlibpath_var=LIBPATH
12669 osf3* | osf4* | osf5*)
12670 version_type=osf
12671 need_lib_prefix=no
12672 need_version=no
12673 soname_spec='${libname}${release}${shared_ext}$major'
12674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12675 shlibpath_var=LD_LIBRARY_PATH
12676 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12677 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12680 sco3.2v5*)
12681 version_type=osf
12682 soname_spec='${libname}${release}${shared_ext}$major'
12683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12684 shlibpath_var=LD_LIBRARY_PATH
12687 solaris*)
12688 version_type=linux
12689 need_lib_prefix=no
12690 need_version=no
12691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12692 soname_spec='${libname}${release}${shared_ext}$major'
12693 shlibpath_var=LD_LIBRARY_PATH
12694 shlibpath_overrides_runpath=yes
12695 hardcode_into_libs=yes
12696 # ldd complains unless libraries are executable
12697 postinstall_cmds='chmod +x $lib'
12700 sunos4*)
12701 version_type=sunos
12702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12703 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12704 shlibpath_var=LD_LIBRARY_PATH
12705 shlibpath_overrides_runpath=yes
12706 if test "$with_gnu_ld" = yes; then
12707 need_lib_prefix=no
12709 need_version=yes
12712 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12713 version_type=linux
12714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12715 soname_spec='${libname}${release}${shared_ext}$major'
12716 shlibpath_var=LD_LIBRARY_PATH
12717 case $host_vendor in
12718 sni)
12719 shlibpath_overrides_runpath=no
12720 need_lib_prefix=no
12721 export_dynamic_flag_spec='${wl}-Blargedynsym'
12722 runpath_var=LD_RUN_PATH
12724 siemens)
12725 need_lib_prefix=no
12727 motorola)
12728 need_lib_prefix=no
12729 need_version=no
12730 shlibpath_overrides_runpath=no
12731 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12733 esac
12736 sysv4*MP*)
12737 if test -d /usr/nec ;then
12738 version_type=linux
12739 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12740 soname_spec='$libname${shared_ext}.$major'
12741 shlibpath_var=LD_LIBRARY_PATH
12745 uts4*)
12746 version_type=linux
12747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12748 soname_spec='${libname}${release}${shared_ext}$major'
12749 shlibpath_var=LD_LIBRARY_PATH
12753 dynamic_linker=no
12755 esac
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12757 $as_echo "$dynamic_linker" >&6; }
12758 test "$dynamic_linker" = no && can_build_shared=no
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12761 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12762 hardcode_action_CXX=
12763 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12764 test -n "$runpath_var_CXX" || \
12765 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12767 # We can hardcode non-existant directories.
12768 if test "$hardcode_direct_CXX" != no &&
12769 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12770 # have to relink, otherwise we might link with an installed library
12771 # when we should be linking with a yet-to-be-installed one
12772 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12773 test "$hardcode_minus_L_CXX" != no; then
12774 # Linking always hardcodes the temporary library directory.
12775 hardcode_action_CXX=relink
12776 else
12777 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12778 hardcode_action_CXX=immediate
12780 else
12781 # We cannot hardcode anything, or else we can only hardcode existing
12782 # directories.
12783 hardcode_action_CXX=unsupported
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12786 $as_echo "$hardcode_action_CXX" >&6; }
12788 if test "$hardcode_action_CXX" = relink; then
12789 # Fast installation is not supported
12790 enable_fast_install=no
12791 elif test "$shlibpath_overrides_runpath" = yes ||
12792 test "$enable_shared" = no; then
12793 # Fast installation is not necessary
12794 enable_fast_install=needless
12797 striplib=
12798 old_striplib=
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12800 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12801 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12802 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12803 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12805 $as_echo "yes" >&6; }
12806 else
12807 # FIXME - insert some real tests, host_os isn't really good enough
12808 case $host_os in
12809 darwin*)
12810 if test -n "$STRIP" ; then
12811 striplib="$STRIP -x"
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12813 $as_echo "yes" >&6; }
12814 else
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816 $as_echo "no" >&6; }
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12821 $as_echo "no" >&6; }
12823 esac
12826 if test "x$enable_dlopen" != xyes; then
12827 enable_dlopen=unknown
12828 enable_dlopen_self=unknown
12829 enable_dlopen_self_static=unknown
12830 else
12831 lt_cv_dlopen=no
12832 lt_cv_dlopen_libs=
12834 case $host_os in
12835 beos*)
12836 lt_cv_dlopen="load_add_on"
12837 lt_cv_dlopen_libs=
12838 lt_cv_dlopen_self=yes
12841 mingw* | pw32*)
12842 lt_cv_dlopen="LoadLibrary"
12843 lt_cv_dlopen_libs=
12846 cygwin*)
12847 lt_cv_dlopen="dlopen"
12848 lt_cv_dlopen_libs=
12851 darwin*)
12852 # if libdl is installed we need to link against it
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12854 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12855 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12856 $as_echo_n "(cached) " >&6
12857 else
12858 ac_check_lib_save_LIBS=$LIBS
12859 LIBS="-ldl $LIBS"
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12863 /* Override any GCC internal prototype to avoid an error.
12864 Use char because int might match the return type of a GCC
12865 builtin and then its argument prototype would still apply. */
12866 #ifdef __cplusplus
12867 extern "C"
12868 #endif
12869 char dlopen ();
12871 main ()
12873 return dlopen ();
12875 return 0;
12877 _ACEOF
12878 if ac_fn_cxx_try_link "$LINENO"; then :
12879 ac_cv_lib_dl_dlopen=yes
12880 else
12881 ac_cv_lib_dl_dlopen=no
12883 rm -f core conftest.err conftest.$ac_objext \
12884 conftest$ac_exeext conftest.$ac_ext
12885 LIBS=$ac_check_lib_save_LIBS
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12888 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12889 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12890 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12891 else
12893 lt_cv_dlopen="dyld"
12894 lt_cv_dlopen_libs=
12895 lt_cv_dlopen_self=yes
12902 ac_fn_cxx_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12903 if test "x$ac_cv_func_shl_load" = x""yes; then :
12904 lt_cv_dlopen="shl_load"
12905 else
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12907 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12908 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12909 $as_echo_n "(cached) " >&6
12910 else
12911 ac_check_lib_save_LIBS=$LIBS
12912 LIBS="-ldld $LIBS"
12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914 /* end confdefs.h. */
12916 /* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12919 #ifdef __cplusplus
12920 extern "C"
12921 #endif
12922 char shl_load ();
12924 main ()
12926 return shl_load ();
12928 return 0;
12930 _ACEOF
12931 if ac_fn_cxx_try_link "$LINENO"; then :
12932 ac_cv_lib_dld_shl_load=yes
12933 else
12934 ac_cv_lib_dld_shl_load=no
12936 rm -f core conftest.err conftest.$ac_objext \
12937 conftest$ac_exeext conftest.$ac_ext
12938 LIBS=$ac_check_lib_save_LIBS
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12941 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12942 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12943 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12944 else
12945 ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12946 if test "x$ac_cv_func_dlopen" = x""yes; then :
12947 lt_cv_dlopen="dlopen"
12948 else
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12950 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12951 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12952 $as_echo_n "(cached) " >&6
12953 else
12954 ac_check_lib_save_LIBS=$LIBS
12955 LIBS="-ldl $LIBS"
12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12959 /* Override any GCC internal prototype to avoid an error.
12960 Use char because int might match the return type of a GCC
12961 builtin and then its argument prototype would still apply. */
12962 #ifdef __cplusplus
12963 extern "C"
12964 #endif
12965 char dlopen ();
12967 main ()
12969 return dlopen ();
12971 return 0;
12973 _ACEOF
12974 if ac_fn_cxx_try_link "$LINENO"; then :
12975 ac_cv_lib_dl_dlopen=yes
12976 else
12977 ac_cv_lib_dl_dlopen=no
12979 rm -f core conftest.err conftest.$ac_objext \
12980 conftest$ac_exeext conftest.$ac_ext
12981 LIBS=$ac_check_lib_save_LIBS
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12984 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12985 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12987 else
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12989 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12990 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12991 $as_echo_n "(cached) " >&6
12992 else
12993 ac_check_lib_save_LIBS=$LIBS
12994 LIBS="-lsvld $LIBS"
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h. */
12998 /* Override any GCC internal prototype to avoid an error.
12999 Use char because int might match the return type of a GCC
13000 builtin and then its argument prototype would still apply. */
13001 #ifdef __cplusplus
13002 extern "C"
13003 #endif
13004 char dlopen ();
13006 main ()
13008 return dlopen ();
13010 return 0;
13012 _ACEOF
13013 if ac_fn_cxx_try_link "$LINENO"; then :
13014 ac_cv_lib_svld_dlopen=yes
13015 else
13016 ac_cv_lib_svld_dlopen=no
13018 rm -f core conftest.err conftest.$ac_objext \
13019 conftest$ac_exeext conftest.$ac_ext
13020 LIBS=$ac_check_lib_save_LIBS
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13023 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13024 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13026 else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13028 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13029 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13030 $as_echo_n "(cached) " >&6
13031 else
13032 ac_check_lib_save_LIBS=$LIBS
13033 LIBS="-ldld $LIBS"
13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h. */
13037 /* Override any GCC internal prototype to avoid an error.
13038 Use char because int might match the return type of a GCC
13039 builtin and then its argument prototype would still apply. */
13040 #ifdef __cplusplus
13041 extern "C"
13042 #endif
13043 char dld_link ();
13045 main ()
13047 return dld_link ();
13049 return 0;
13051 _ACEOF
13052 if ac_fn_cxx_try_link "$LINENO"; then :
13053 ac_cv_lib_dld_dld_link=yes
13054 else
13055 ac_cv_lib_dld_dld_link=no
13057 rm -f core conftest.err conftest.$ac_objext \
13058 conftest$ac_exeext conftest.$ac_ext
13059 LIBS=$ac_check_lib_save_LIBS
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13062 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13063 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13064 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13083 esac
13085 if test "x$lt_cv_dlopen" != xno; then
13086 enable_dlopen=yes
13087 else
13088 enable_dlopen=no
13091 case $lt_cv_dlopen in
13092 dlopen)
13093 save_CPPFLAGS="$CPPFLAGS"
13094 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13096 save_LDFLAGS="$LDFLAGS"
13097 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13099 save_LIBS="$LIBS"
13100 LIBS="$lt_cv_dlopen_libs $LIBS"
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13103 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13104 if test "${lt_cv_dlopen_self+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
13106 else
13107 if test "$cross_compiling" = yes; then :
13108 lt_cv_dlopen_self=cross
13109 else
13110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13111 lt_status=$lt_dlunknown
13112 cat > conftest.$ac_ext <<EOF
13113 #line 13113 "configure"
13114 #include "confdefs.h"
13116 #if HAVE_DLFCN_H
13117 #include <dlfcn.h>
13118 #endif
13120 #include <stdio.h>
13122 #ifdef RTLD_GLOBAL
13123 # define LT_DLGLOBAL RTLD_GLOBAL
13124 #else
13125 # ifdef DL_GLOBAL
13126 # define LT_DLGLOBAL DL_GLOBAL
13127 # else
13128 # define LT_DLGLOBAL 0
13129 # endif
13130 #endif
13132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13133 find out it does not work in some platform. */
13134 #ifndef LT_DLLAZY_OR_NOW
13135 # ifdef RTLD_LAZY
13136 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13137 # else
13138 # ifdef DL_LAZY
13139 # define LT_DLLAZY_OR_NOW DL_LAZY
13140 # else
13141 # ifdef RTLD_NOW
13142 # define LT_DLLAZY_OR_NOW RTLD_NOW
13143 # else
13144 # ifdef DL_NOW
13145 # define LT_DLLAZY_OR_NOW DL_NOW
13146 # else
13147 # define LT_DLLAZY_OR_NOW 0
13148 # endif
13149 # endif
13150 # endif
13151 # endif
13152 #endif
13154 #ifdef __cplusplus
13155 extern "C" void exit (int);
13156 #endif
13158 void fnord() { int i=42;}
13159 int main ()
13161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13162 int status = $lt_dlunknown;
13164 if (self)
13166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13167 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13168 /* dlclose (self); */
13171 exit (status);
13174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13175 (eval $ac_link) 2>&5
13176 ac_status=$?
13177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13178 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13179 (./conftest; exit; ) 2>/dev/null
13180 lt_status=$?
13181 case x$lt_status in
13182 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13183 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13184 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13185 esac
13186 else :
13187 # compilation failed
13188 lt_cv_dlopen_self=no
13191 rm -fr conftest*
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13196 $as_echo "$lt_cv_dlopen_self" >&6; }
13198 if test "x$lt_cv_dlopen_self" = xyes; then
13199 LDFLAGS="$LDFLAGS $link_static_flag"
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13201 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13202 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205 if test "$cross_compiling" = yes; then :
13206 lt_cv_dlopen_self_static=cross
13207 else
13208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13209 lt_status=$lt_dlunknown
13210 cat > conftest.$ac_ext <<EOF
13211 #line 13211 "configure"
13212 #include "confdefs.h"
13214 #if HAVE_DLFCN_H
13215 #include <dlfcn.h>
13216 #endif
13218 #include <stdio.h>
13220 #ifdef RTLD_GLOBAL
13221 # define LT_DLGLOBAL RTLD_GLOBAL
13222 #else
13223 # ifdef DL_GLOBAL
13224 # define LT_DLGLOBAL DL_GLOBAL
13225 # else
13226 # define LT_DLGLOBAL 0
13227 # endif
13228 #endif
13230 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13231 find out it does not work in some platform. */
13232 #ifndef LT_DLLAZY_OR_NOW
13233 # ifdef RTLD_LAZY
13234 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13235 # else
13236 # ifdef DL_LAZY
13237 # define LT_DLLAZY_OR_NOW DL_LAZY
13238 # else
13239 # ifdef RTLD_NOW
13240 # define LT_DLLAZY_OR_NOW RTLD_NOW
13241 # else
13242 # ifdef DL_NOW
13243 # define LT_DLLAZY_OR_NOW DL_NOW
13244 # else
13245 # define LT_DLLAZY_OR_NOW 0
13246 # endif
13247 # endif
13248 # endif
13249 # endif
13250 #endif
13252 #ifdef __cplusplus
13253 extern "C" void exit (int);
13254 #endif
13256 void fnord() { int i=42;}
13257 int main ()
13259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13260 int status = $lt_dlunknown;
13262 if (self)
13264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13265 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13266 /* dlclose (self); */
13269 exit (status);
13272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13273 (eval $ac_link) 2>&5
13274 ac_status=$?
13275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13276 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13277 (./conftest; exit; ) 2>/dev/null
13278 lt_status=$?
13279 case x$lt_status in
13280 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13281 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13282 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13283 esac
13284 else :
13285 # compilation failed
13286 lt_cv_dlopen_self_static=no
13289 rm -fr conftest*
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13294 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13297 CPPFLAGS="$save_CPPFLAGS"
13298 LDFLAGS="$save_LDFLAGS"
13299 LIBS="$save_LIBS"
13301 esac
13303 case $lt_cv_dlopen_self in
13304 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13305 *) enable_dlopen_self=unknown ;;
13306 esac
13308 case $lt_cv_dlopen_self_static in
13309 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13310 *) enable_dlopen_self_static=unknown ;;
13311 esac
13315 # The else clause should only fire when bootstrapping the
13316 # libtool distribution, otherwise you forgot to ship ltmain.sh
13317 # with your package, and you will get complaints that there are
13318 # no rules to generate ltmain.sh.
13319 if test -f "$ltmain"; then
13320 # See if we are running on zsh, and set the options which allow our commands through
13321 # without removal of \ escapes.
13322 if test -n "${ZSH_VERSION+set}" ; then
13323 setopt NO_GLOB_SUBST
13325 # Now quote all the things that may contain metacharacters while being
13326 # careful not to overquote the AC_SUBSTed values. We take copies of the
13327 # variables and quote the copies for generation of the libtool script.
13328 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13329 SED SHELL STRIP \
13330 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13331 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13332 deplibs_check_method reload_flag reload_cmds need_locks \
13333 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13334 lt_cv_sys_global_symbol_to_c_name_address \
13335 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13336 old_postinstall_cmds old_postuninstall_cmds \
13337 compiler_CXX \
13338 CC_CXX \
13339 LD_CXX \
13340 lt_prog_compiler_wl_CXX \
13341 lt_prog_compiler_pic_CXX \
13342 lt_prog_compiler_static_CXX \
13343 lt_prog_compiler_no_builtin_flag_CXX \
13344 export_dynamic_flag_spec_CXX \
13345 thread_safe_flag_spec_CXX \
13346 whole_archive_flag_spec_CXX \
13347 enable_shared_with_static_runtimes_CXX \
13348 old_archive_cmds_CXX \
13349 old_archive_from_new_cmds_CXX \
13350 predep_objects_CXX \
13351 postdep_objects_CXX \
13352 predeps_CXX \
13353 postdeps_CXX \
13354 compiler_lib_search_path_CXX \
13355 archive_cmds_CXX \
13356 archive_expsym_cmds_CXX \
13357 postinstall_cmds_CXX \
13358 postuninstall_cmds_CXX \
13359 old_archive_from_expsyms_cmds_CXX \
13360 allow_undefined_flag_CXX \
13361 no_undefined_flag_CXX \
13362 export_symbols_cmds_CXX \
13363 hardcode_libdir_flag_spec_CXX \
13364 hardcode_libdir_flag_spec_ld_CXX \
13365 hardcode_libdir_separator_CXX \
13366 hardcode_automatic_CXX \
13367 module_cmds_CXX \
13368 module_expsym_cmds_CXX \
13369 lt_cv_prog_compiler_c_o_CXX \
13370 exclude_expsyms_CXX \
13371 include_expsyms_CXX; do
13373 case $var in
13374 old_archive_cmds_CXX | \
13375 old_archive_from_new_cmds_CXX | \
13376 archive_cmds_CXX | \
13377 archive_expsym_cmds_CXX | \
13378 module_cmds_CXX | \
13379 module_expsym_cmds_CXX | \
13380 old_archive_from_expsyms_cmds_CXX | \
13381 export_symbols_cmds_CXX | \
13382 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13383 postinstall_cmds | postuninstall_cmds | \
13384 old_postinstall_cmds | old_postuninstall_cmds | \
13385 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13386 # Double-quote double-evaled strings.
13387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13392 esac
13393 done
13395 case $lt_echo in
13396 *'\$0 --fallback-echo"')
13397 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13399 esac
13401 cfgfile="$ofile"
13403 cat <<__EOF__ >> "$cfgfile"
13404 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13406 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13408 # Shell to use when invoking shell scripts.
13409 SHELL=$lt_SHELL
13411 # Whether or not to build shared libraries.
13412 build_libtool_libs=$enable_shared
13414 # Whether or not to build static libraries.
13415 build_old_libs=$enable_static
13417 # Whether or not to add -lc for building shared libraries.
13418 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13420 # Whether or not to disallow shared libs when runtime libs are static
13421 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13423 # Whether or not to optimize for fast installation.
13424 fast_install=$enable_fast_install
13426 # The host system.
13427 host_alias=$host_alias
13428 host=$host
13429 host_os=$host_os
13431 # The build system.
13432 build_alias=$build_alias
13433 build=$build
13434 build_os=$build_os
13436 # An echo program that does not interpret backslashes.
13437 echo=$lt_echo
13439 # The archiver.
13440 AR=$lt_AR
13441 AR_FLAGS=$lt_AR_FLAGS
13443 # A C compiler.
13444 LTCC=$lt_LTCC
13446 # A language-specific compiler.
13447 CC=$lt_compiler_CXX
13449 # Is the compiler the GNU C compiler?
13450 with_gcc=$GCC_CXX
13452 # An ERE matcher.
13453 EGREP=$lt_EGREP
13455 # The linker used to build libraries.
13456 LD=$lt_LD_CXX
13458 # Whether we need hard or soft links.
13459 LN_S=$lt_LN_S
13461 # A BSD-compatible nm program.
13462 NM=$lt_NM
13464 # A symbol stripping program
13465 STRIP=$lt_STRIP
13467 # Used to examine libraries when file_magic_cmd begins "file"
13468 MAGIC_CMD=$MAGIC_CMD
13470 # Used on cygwin: DLL creation program.
13471 DLLTOOL="$DLLTOOL"
13473 # Used on cygwin: object dumper.
13474 OBJDUMP="$OBJDUMP"
13476 # Used on cygwin: assembler.
13477 AS="$AS"
13479 # The name of the directory that contains temporary libtool files.
13480 objdir=$objdir
13482 # How to create reloadable object files.
13483 reload_flag=$lt_reload_flag
13484 reload_cmds=$lt_reload_cmds
13486 # How to pass a linker flag through the compiler.
13487 wl=$lt_lt_prog_compiler_wl_CXX
13489 # Object file suffix (normally "o").
13490 objext="$ac_objext"
13492 # Old archive suffix (normally "a").
13493 libext="$libext"
13495 # Shared library suffix (normally ".so").
13496 shrext_cmds='$shrext_cmds'
13498 # Executable file suffix (normally "").
13499 exeext="$exeext"
13501 # Additional compiler flags for building library objects.
13502 pic_flag=$lt_lt_prog_compiler_pic_CXX
13503 pic_mode=$pic_mode
13505 # What is the maximum length of a command?
13506 max_cmd_len=$lt_cv_sys_max_cmd_len
13508 # Does compiler simultaneously support -c and -o options?
13509 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13511 # Must we lock files when doing compilation?
13512 need_locks=$lt_need_locks
13514 # Do we need the lib prefix for modules?
13515 need_lib_prefix=$need_lib_prefix
13517 # Do we need a version for libraries?
13518 need_version=$need_version
13520 # Whether dlopen is supported.
13521 dlopen_support=$enable_dlopen
13523 # Whether dlopen of programs is supported.
13524 dlopen_self=$enable_dlopen_self
13526 # Whether dlopen of statically linked programs is supported.
13527 dlopen_self_static=$enable_dlopen_self_static
13529 # Compiler flag to prevent dynamic linking.
13530 link_static_flag=$lt_lt_prog_compiler_static_CXX
13532 # Compiler flag to turn off builtin functions.
13533 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13535 # Compiler flag to allow reflexive dlopens.
13536 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13538 # Compiler flag to generate shared objects directly from archives.
13539 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13541 # Compiler flag to generate thread-safe objects.
13542 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13544 # Library versioning type.
13545 version_type=$version_type
13547 # Format of library name prefix.
13548 libname_spec=$lt_libname_spec
13550 # List of archive names. First name is the real one, the rest are links.
13551 # The last name is the one that the linker finds with -lNAME.
13552 library_names_spec=$lt_library_names_spec
13554 # The coded name of the library, if different from the real name.
13555 soname_spec=$lt_soname_spec
13557 # Commands used to build and install an old-style archive.
13558 RANLIB=$lt_RANLIB
13559 old_archive_cmds=$lt_old_archive_cmds_CXX
13560 old_postinstall_cmds=$lt_old_postinstall_cmds
13561 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13563 # Create an old-style archive from a shared archive.
13564 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13566 # Create a temporary old-style archive to link instead of a shared archive.
13567 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13569 # Commands used to build and install a shared archive.
13570 archive_cmds=$lt_archive_cmds_CXX
13571 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13572 postinstall_cmds=$lt_postinstall_cmds
13573 postuninstall_cmds=$lt_postuninstall_cmds
13575 # Commands used to build a loadable module (assumed same as above if empty)
13576 module_cmds=$lt_module_cmds_CXX
13577 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13579 # Commands to strip libraries.
13580 old_striplib=$lt_old_striplib
13581 striplib=$lt_striplib
13583 # Dependencies to place before the objects being linked to create a
13584 # shared library.
13585 predep_objects=$lt_predep_objects_CXX
13587 # Dependencies to place after the objects being linked to create a
13588 # shared library.
13589 postdep_objects=$lt_postdep_objects_CXX
13591 # Dependencies to place before the objects being linked to create a
13592 # shared library.
13593 predeps=$lt_predeps_CXX
13595 # Dependencies to place after the objects being linked to create a
13596 # shared library.
13597 postdeps=$lt_postdeps_CXX
13599 # The library search path used internally by the compiler when linking
13600 # a shared library.
13601 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13603 # Method to check whether dependent libraries are shared objects.
13604 deplibs_check_method=$lt_deplibs_check_method
13606 # Command to use when deplibs_check_method == file_magic.
13607 file_magic_cmd=$lt_file_magic_cmd
13609 # Flag that allows shared libraries with undefined symbols to be built.
13610 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13612 # Flag that forces no undefined symbols.
13613 no_undefined_flag=$lt_no_undefined_flag_CXX
13615 # Commands used to finish a libtool library installation in a directory.
13616 finish_cmds=$lt_finish_cmds
13618 # Same as above, but a single script fragment to be evaled but not shown.
13619 finish_eval=$lt_finish_eval
13621 # Take the output of nm and produce a listing of raw symbols and C names.
13622 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13624 # Transform the output of nm in a proper C declaration
13625 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13627 # Transform the output of nm in a C name address pair
13628 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13630 # This is the shared library runtime path variable.
13631 runpath_var=$runpath_var
13633 # This is the shared library path variable.
13634 shlibpath_var=$shlibpath_var
13636 # Is shlibpath searched before the hard-coded library search path?
13637 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13639 # How to hardcode a shared library path into an executable.
13640 hardcode_action=$hardcode_action_CXX
13642 # Whether we should hardcode library paths into libraries.
13643 hardcode_into_libs=$hardcode_into_libs
13645 # Flag to hardcode \$libdir into a binary during linking.
13646 # This must work even if \$libdir does not exist.
13647 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13649 # If ld is used when linking, flag to hardcode \$libdir into
13650 # a binary during linking. This must work even if \$libdir does
13651 # not exist.
13652 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13654 # Whether we need a single -rpath flag with a separated argument.
13655 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13657 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13658 # resulting binary.
13659 hardcode_direct=$hardcode_direct_CXX
13661 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13662 # resulting binary.
13663 hardcode_minus_L=$hardcode_minus_L_CXX
13665 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13666 # the resulting binary.
13667 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13669 # Set to yes if building a shared library automatically hardcodes DIR into the library
13670 # and all subsequent libraries and executables linked against it.
13671 hardcode_automatic=$hardcode_automatic_CXX
13673 # Variables whose values should be saved in libtool wrapper scripts and
13674 # restored at relink time.
13675 variables_saved_for_relink="$variables_saved_for_relink"
13677 # Whether libtool must link a program against all its dependency libraries.
13678 link_all_deplibs=$link_all_deplibs_CXX
13680 # Compile-time system search path for libraries
13681 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13683 # Run-time system search path for libraries
13684 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13686 # Fix the shell variable \$srcfile for the compiler.
13687 fix_srcfile_path="$fix_srcfile_path_CXX"
13689 # Set to yes if exported symbols are required.
13690 always_export_symbols=$always_export_symbols_CXX
13692 # The commands to list exported symbols.
13693 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13695 # The commands to extract the exported symbol list from a shared archive.
13696 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13698 # Symbols that should not be listed in the preloaded symbols.
13699 exclude_expsyms=$lt_exclude_expsyms_CXX
13701 # Symbols that must always be exported.
13702 include_expsyms=$lt_include_expsyms_CXX
13704 # ### END LIBTOOL TAG CONFIG: $tagname
13706 __EOF__
13709 else
13710 # If there is no Makefile yet, we rely on a make rule to execute
13711 # `config.status --recheck' to rerun these tests and create the
13712 # libtool script then.
13713 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13714 if test -f "$ltmain_in"; then
13715 test -f Makefile && make "$ltmain"
13720 ac_ext=c
13721 ac_cpp='$CPP $CPPFLAGS'
13722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13726 CC=$lt_save_CC
13727 LDCXX=$LD
13728 LD=$lt_save_LD
13729 GCC=$lt_save_GCC
13730 with_gnu_ldcxx=$with_gnu_ld
13731 with_gnu_ld=$lt_save_with_gnu_ld
13732 lt_cv_path_LDCXX=$lt_cv_path_LD
13733 lt_cv_path_LD=$lt_save_path_LD
13734 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13735 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13737 else
13738 tagname=""
13742 F77)
13743 if test -n "$F77" && test "X$F77" != "Xno"; then
13745 ac_ext=f
13746 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13747 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13748 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13751 archive_cmds_need_lc_F77=no
13752 allow_undefined_flag_F77=
13753 always_export_symbols_F77=no
13754 archive_expsym_cmds_F77=
13755 export_dynamic_flag_spec_F77=
13756 hardcode_direct_F77=no
13757 hardcode_libdir_flag_spec_F77=
13758 hardcode_libdir_flag_spec_ld_F77=
13759 hardcode_libdir_separator_F77=
13760 hardcode_minus_L_F77=no
13761 hardcode_automatic_F77=no
13762 module_cmds_F77=
13763 module_expsym_cmds_F77=
13764 link_all_deplibs_F77=unknown
13765 old_archive_cmds_F77=$old_archive_cmds
13766 no_undefined_flag_F77=
13767 whole_archive_flag_spec_F77=
13768 enable_shared_with_static_runtimes_F77=no
13770 # Source file extension for f77 test sources.
13771 ac_ext=f
13773 # Object file extension for compiled f77 test sources.
13774 objext=o
13775 objext_F77=$objext
13777 # Code to be used in simple compile tests
13778 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13780 # Code to be used in simple link tests
13781 lt_simple_link_test_code=" program t\n end\n"
13783 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13785 # If no C compiler was specified, use CC.
13786 LTCC=${LTCC-"$CC"}
13788 # Allow CC to be a program name with arguments.
13789 compiler=$CC
13792 # save warnings/boilerplate of simple test code
13793 ac_outfile=conftest.$ac_objext
13794 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13795 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13796 _lt_compiler_boilerplate=`cat conftest.err`
13797 $rm conftest*
13799 ac_outfile=conftest.$ac_objext
13800 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13801 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13802 _lt_linker_boilerplate=`cat conftest.err`
13803 $rm conftest*
13806 # Allow CC to be a program name with arguments.
13807 lt_save_CC="$CC"
13808 CC=${F77-"f77"}
13809 compiler=$CC
13810 compiler_F77=$CC
13811 for cc_temp in $compiler""; do
13812 case $cc_temp in
13813 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13814 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13815 \-*) ;;
13816 *) break;;
13817 esac
13818 done
13819 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13823 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13825 $as_echo "$can_build_shared" >&6; }
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13828 $as_echo_n "checking whether to build shared libraries... " >&6; }
13829 test "$can_build_shared" = "no" && enable_shared=no
13831 # On AIX, shared libraries and static libraries use the same namespace, and
13832 # are all built from PIC.
13833 case "$host_os" in
13834 aix3*)
13835 test "$enable_shared" = yes && enable_static=no
13836 if test -n "$RANLIB"; then
13837 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13838 postinstall_cmds='$RANLIB $lib'
13841 aix4* | aix5*)
13842 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13843 test "$enable_shared" = yes && enable_static=no
13846 esac
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13848 $as_echo "$enable_shared" >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13851 $as_echo_n "checking whether to build static libraries... " >&6; }
13852 # Make sure either enable_shared or enable_static is yes.
13853 test "$enable_shared" = yes || enable_static=yes
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13855 $as_echo "$enable_static" >&6; }
13857 test "$ld_shlibs_F77" = no && can_build_shared=no
13859 GCC_F77="$G77"
13860 LD_F77="$LD"
13862 lt_prog_compiler_wl_F77=
13863 lt_prog_compiler_pic_F77=
13864 lt_prog_compiler_static_F77=
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13867 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13869 if test "$GCC" = yes; then
13870 lt_prog_compiler_wl_F77='-Wl,'
13871 lt_prog_compiler_static_F77='-static'
13873 case $host_os in
13874 aix*)
13875 # All AIX code is PIC.
13876 if test "$host_cpu" = ia64; then
13877 # AIX 5 now supports IA64 processor
13878 lt_prog_compiler_static_F77='-Bstatic'
13882 amigaos*)
13883 # FIXME: we need at least 68020 code to build shared libraries, but
13884 # adding the `-m68020' flag to GCC prevents building anything better,
13885 # like `-m68040'.
13886 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13889 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13890 # PIC is the default for these OSes.
13893 mingw* | pw32* | os2*)
13894 # This hack is so that the source file can tell whether it is being
13895 # built for inclusion in a dll (and should export symbols for example).
13896 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13899 darwin* | rhapsody*)
13900 # PIC is the default on this platform
13901 # Common symbols not allowed in MH_DYLIB files
13902 lt_prog_compiler_pic_F77='-fno-common'
13905 msdosdjgpp*)
13906 # Just because we use GCC doesn't mean we suddenly get shared libraries
13907 # on systems that don't support them.
13908 lt_prog_compiler_can_build_shared_F77=no
13909 enable_shared=no
13912 sysv4*MP*)
13913 if test -d /usr/nec; then
13914 lt_prog_compiler_pic_F77=-Kconform_pic
13918 hpux*)
13919 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13920 # not for PA HP-UX.
13921 case "$host_cpu" in
13922 hppa*64*|ia64*)
13923 # +Z the default
13926 lt_prog_compiler_pic_F77='-fPIC'
13928 esac
13932 lt_prog_compiler_pic_F77='-fPIC'
13934 esac
13935 else
13936 # PORTME Check for flag to pass linker flags through the system compiler.
13937 case $host_os in
13938 aix*)
13939 lt_prog_compiler_wl_F77='-Wl,'
13940 if test "$host_cpu" = ia64; then
13941 # AIX 5 now supports IA64 processor
13942 lt_prog_compiler_static_F77='-Bstatic'
13943 else
13944 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13947 darwin*)
13948 # PIC is the default on this platform
13949 # Common symbols not allowed in MH_DYLIB files
13950 case $cc_basename in
13951 xlc*)
13952 lt_prog_compiler_pic_F77='-qnocommon'
13953 lt_prog_compiler_wl_F77='-Wl,'
13955 esac
13958 mingw* | pw32* | os2*)
13959 # This hack is so that the source file can tell whether it is being
13960 # built for inclusion in a dll (and should export symbols for example).
13961 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13964 hpux9* | hpux10* | hpux11*)
13965 lt_prog_compiler_wl_F77='-Wl,'
13966 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13967 # not for PA HP-UX.
13968 case "$host_cpu" in
13969 hppa*64*|ia64*)
13970 # +Z the default
13973 lt_prog_compiler_pic_F77='+Z'
13975 esac
13976 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13977 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13980 irix5* | irix6* | nonstopux*)
13981 lt_prog_compiler_wl_F77='-Wl,'
13982 # PIC (with -KPIC) is the default.
13983 lt_prog_compiler_static_F77='-non_shared'
13986 newsos6)
13987 lt_prog_compiler_pic_F77='-KPIC'
13988 lt_prog_compiler_static_F77='-Bstatic'
13991 linux*)
13992 case $cc_basename in
13993 icc* | ecc*)
13994 lt_prog_compiler_wl_F77='-Wl,'
13995 lt_prog_compiler_pic_F77='-KPIC'
13996 lt_prog_compiler_static_F77='-static'
13998 pgcc* | pgf77* | pgf90*)
13999 # Portland Group compilers (*not* the Pentium gcc compiler,
14000 # which looks to be a dead project)
14001 lt_prog_compiler_wl_F77='-Wl,'
14002 lt_prog_compiler_pic_F77='-fpic'
14003 lt_prog_compiler_static_F77='-static'
14005 ccc*)
14006 lt_prog_compiler_wl_F77='-Wl,'
14007 # All Alpha code is PIC.
14008 lt_prog_compiler_static_F77='-non_shared'
14010 esac
14013 osf3* | osf4* | osf5*)
14014 lt_prog_compiler_wl_F77='-Wl,'
14015 # All OSF/1 code is PIC.
14016 lt_prog_compiler_static_F77='-non_shared'
14019 sco3.2v5*)
14020 lt_prog_compiler_pic_F77='-Kpic'
14021 lt_prog_compiler_static_F77='-dn'
14024 solaris*)
14025 lt_prog_compiler_pic_F77='-KPIC'
14026 lt_prog_compiler_static_F77='-Bstatic'
14027 case $cc_basename in
14028 f77* | f90* | f95*)
14029 lt_prog_compiler_wl_F77='-Qoption ld ';;
14031 lt_prog_compiler_wl_F77='-Wl,';;
14032 esac
14035 sunos4*)
14036 lt_prog_compiler_wl_F77='-Qoption ld '
14037 lt_prog_compiler_pic_F77='-PIC'
14038 lt_prog_compiler_static_F77='-Bstatic'
14041 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14042 lt_prog_compiler_wl_F77='-Wl,'
14043 lt_prog_compiler_pic_F77='-KPIC'
14044 lt_prog_compiler_static_F77='-Bstatic'
14047 sysv4*MP*)
14048 if test -d /usr/nec ;then
14049 lt_prog_compiler_pic_F77='-Kconform_pic'
14050 lt_prog_compiler_static_F77='-Bstatic'
14054 unicos*)
14055 lt_prog_compiler_wl_F77='-Wl,'
14056 lt_prog_compiler_can_build_shared_F77=no
14059 uts4*)
14060 lt_prog_compiler_pic_F77='-pic'
14061 lt_prog_compiler_static_F77='-Bstatic'
14065 lt_prog_compiler_can_build_shared_F77=no
14067 esac
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14071 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14074 # Check to make sure the PIC flag actually works.
14076 if test -n "$lt_prog_compiler_pic_F77"; then
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14079 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14080 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then :
14081 $as_echo_n "(cached) " >&6
14082 else
14083 lt_prog_compiler_pic_works_F77=no
14084 ac_outfile=conftest.$ac_objext
14085 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14086 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14087 # Insert the option either (1) after the last *FLAGS variable, or
14088 # (2) before a word containing "conftest.", or (3) at the end.
14089 # Note that $ac_compile itself does not contain backslashes and begins
14090 # with a dollar sign (not a hyphen), so the echo should work correctly.
14091 # The option is referenced via a variable to avoid confusing sed.
14092 lt_compile=`echo "$ac_compile" | $SED \
14093 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14095 -e 's:$: $lt_compiler_flag:'`
14096 (eval echo "\"\$as_me:14096: $lt_compile\"" >&5)
14097 (eval "$lt_compile" 2>conftest.err)
14098 ac_status=$?
14099 cat conftest.err >&5
14100 echo "$as_me:14100: \$? = $ac_status" >&5
14101 if (exit $ac_status) && test -s "$ac_outfile"; then
14102 # The compiler can only warn and ignore the option if not recognized
14103 # So say no if there are warnings other than the usual output.
14104 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14105 $SED '/^$/d' conftest.err >conftest.er2
14106 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14107 lt_prog_compiler_pic_works_F77=yes
14110 $rm conftest*
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
14114 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
14116 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14117 case $lt_prog_compiler_pic_F77 in
14118 "" | " "*) ;;
14119 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14120 esac
14121 else
14122 lt_prog_compiler_pic_F77=
14123 lt_prog_compiler_can_build_shared_F77=no
14127 case "$host_os" in
14128 # For platforms which do not support PIC, -DPIC is meaningless:
14129 *djgpp*)
14130 lt_prog_compiler_pic_F77=
14133 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14135 esac
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14138 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14139 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
14140 $as_echo_n "(cached) " >&6
14141 else
14142 lt_cv_prog_compiler_c_o_F77=no
14143 $rm -r conftest 2>/dev/null
14144 mkdir conftest
14145 cd conftest
14146 mkdir out
14147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14149 lt_compiler_flag="-o out/conftest2.$ac_objext"
14150 # Insert the option either (1) after the last *FLAGS variable, or
14151 # (2) before a word containing "conftest.", or (3) at the end.
14152 # Note that $ac_compile itself does not contain backslashes and begins
14153 # with a dollar sign (not a hyphen), so the echo should work correctly.
14154 lt_compile=`echo "$ac_compile" | $SED \
14155 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14157 -e 's:$: $lt_compiler_flag:'`
14158 (eval echo "\"\$as_me:14158: $lt_compile\"" >&5)
14159 (eval "$lt_compile" 2>out/conftest.err)
14160 ac_status=$?
14161 cat out/conftest.err >&5
14162 echo "$as_me:14162: \$? = $ac_status" >&5
14163 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14164 then
14165 # The compiler can only warn and ignore the option if not recognized
14166 # So say no if there are warnings
14167 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14168 $SED '/^$/d' out/conftest.err >out/conftest.er2
14169 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14170 lt_cv_prog_compiler_c_o_F77=yes
14173 chmod u+w .
14174 $rm conftest*
14175 # SGI C++ compiler will create directory out/ii_files/ for
14176 # template instantiation
14177 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14178 $rm out/* && rmdir out
14179 cd ..
14180 rmdir conftest
14181 $rm conftest*
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14185 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14188 hard_links="nottested"
14189 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14190 # do not overwrite the value of need_locks provided by the user
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14192 $as_echo_n "checking if we can lock with hard links... " >&6; }
14193 hard_links=yes
14194 $rm conftest*
14195 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14196 touch conftest.a
14197 ln conftest.a conftest.b 2>&5 || hard_links=no
14198 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14200 $as_echo "$hard_links" >&6; }
14201 if test "$hard_links" = no; then
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14203 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14204 need_locks=warn
14206 else
14207 need_locks=no
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14211 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14213 runpath_var=
14214 allow_undefined_flag_F77=
14215 enable_shared_with_static_runtimes_F77=no
14216 archive_cmds_F77=
14217 archive_expsym_cmds_F77=
14218 old_archive_From_new_cmds_F77=
14219 old_archive_from_expsyms_cmds_F77=
14220 export_dynamic_flag_spec_F77=
14221 whole_archive_flag_spec_F77=
14222 thread_safe_flag_spec_F77=
14223 hardcode_libdir_flag_spec_F77=
14224 hardcode_libdir_flag_spec_ld_F77=
14225 hardcode_libdir_separator_F77=
14226 hardcode_direct_F77=no
14227 hardcode_minus_L_F77=no
14228 hardcode_shlibpath_var_F77=unsupported
14229 link_all_deplibs_F77=unknown
14230 hardcode_automatic_F77=no
14231 module_cmds_F77=
14232 module_expsym_cmds_F77=
14233 always_export_symbols_F77=no
14234 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14235 # include_expsyms should be a list of space-separated symbols to be *always*
14236 # included in the symbol list
14237 include_expsyms_F77=
14238 # exclude_expsyms can be an extended regexp of symbols to exclude
14239 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14240 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14241 # as well as any symbol that contains `d'.
14242 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14243 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14244 # platforms (ab)use it in PIC code, but their linkers get confused if
14245 # the symbol is explicitly referenced. Since portable code cannot
14246 # rely on this symbol name, it's probably fine to never include it in
14247 # preloaded symbol tables.
14248 extract_expsyms_cmds=
14249 # Just being paranoid about ensuring that cc_basename is set.
14250 for cc_temp in $compiler""; do
14251 case $cc_temp in
14252 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14253 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14254 \-*) ;;
14255 *) break;;
14256 esac
14257 done
14258 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14260 case $host_os in
14261 cygwin* | mingw* | pw32*)
14262 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14263 # When not using gcc, we currently assume that we are using
14264 # Microsoft Visual C++.
14265 if test "$GCC" != yes; then
14266 with_gnu_ld=no
14269 openbsd*)
14270 with_gnu_ld=no
14272 esac
14274 ld_shlibs_F77=yes
14275 if test "$with_gnu_ld" = yes; then
14276 # If archive_cmds runs LD, not CC, wlarc should be empty
14277 wlarc='${wl}'
14279 # Set some defaults for GNU ld with shared library support. These
14280 # are reset later if shared libraries are not supported. Putting them
14281 # here allows them to be overridden if necessary.
14282 runpath_var=LD_RUN_PATH
14283 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14284 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14285 # ancient GNU ld didn't support --whole-archive et. al.
14286 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14287 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14288 else
14289 whole_archive_flag_spec_F77=
14291 supports_anon_versioning=no
14292 case `$LD -v 2>/dev/null` in
14293 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14294 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14295 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14296 *\ 2.11.*) ;; # other 2.11 versions
14297 *) supports_anon_versioning=yes ;;
14298 esac
14300 # See if GNU ld supports shared libraries.
14301 case $host_os in
14302 aix3* | aix4* | aix5*)
14303 # On AIX/PPC, the GNU linker is very broken
14304 if test "$host_cpu" != ia64; then
14305 ld_shlibs_F77=no
14306 cat <<EOF 1>&2
14308 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14309 *** to be unable to reliably create shared libraries on AIX.
14310 *** Therefore, libtool is disabling shared libraries support. If you
14311 *** really care for shared libraries, you may want to modify your PATH
14312 *** so that a non-GNU linker is found, and then restart.
14318 amigaos*)
14319 archive_cmds_F77='$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)'
14320 hardcode_libdir_flag_spec_F77='-L$libdir'
14321 hardcode_minus_L_F77=yes
14323 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14324 # that the semantics of dynamic libraries on AmigaOS, at least up
14325 # to version 4, is to share data among multiple programs linked
14326 # with the same dynamic library. Since this doesn't match the
14327 # behavior of shared libraries on other platforms, we can't use
14328 # them.
14329 ld_shlibs_F77=no
14332 beos*)
14333 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14334 allow_undefined_flag_F77=unsupported
14335 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14336 # support --undefined. This deserves some investigation. FIXME
14337 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14338 else
14339 ld_shlibs_F77=no
14343 cygwin* | mingw* | pw32*)
14344 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14345 # as there is no search path for DLLs.
14346 hardcode_libdir_flag_spec_F77='-L$libdir'
14347 allow_undefined_flag_F77=unsupported
14348 always_export_symbols_F77=no
14349 enable_shared_with_static_runtimes_F77=yes
14350 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14352 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14353 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14354 # If the export-symbols file already is a .def file (1st line
14355 # is EXPORTS), use it as is; otherwise, prepend...
14356 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14357 cp $export_symbols $output_objdir/$soname.def;
14358 else
14359 echo EXPORTS > $output_objdir/$soname.def;
14360 cat $export_symbols >> $output_objdir/$soname.def;
14362 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14363 else
14364 ld_shlibs_F77=no
14368 linux*)
14369 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14370 tmp_addflag=
14371 case $cc_basename,$host_cpu in
14372 pgcc*) # Portland Group C compiler
14373 whole_archive_flag_spec_F77=
14375 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14376 whole_archive_flag_spec_F77=
14377 tmp_addflag=' -fpic -Mnomain' ;;
14378 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14379 tmp_addflag=' -i_dynamic' ;;
14380 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14381 tmp_addflag=' -i_dynamic -nofor_main' ;;
14382 ifc* | ifort*) # Intel Fortran compiler
14383 tmp_addflag=' -nofor_main' ;;
14384 esac
14385 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14387 if test $supports_anon_versioning = yes; then
14388 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14389 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14390 $echo "local: *; };" >> $output_objdir/$libname.ver~
14391 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14393 else
14394 ld_shlibs_F77=no
14398 netbsd*)
14399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14400 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14401 wlarc=
14402 else
14403 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14404 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14408 solaris* | sysv5*)
14409 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14410 ld_shlibs_F77=no
14411 cat <<EOF 1>&2
14413 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14414 *** create shared libraries on Solaris systems. Therefore, libtool
14415 *** is disabling shared libraries support. We urge you to upgrade GNU
14416 *** binutils to release 2.9.1 or newer. Another option is to modify
14417 *** your PATH or compiler configuration so that the native linker is
14418 *** used, and then restart.
14421 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14422 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14423 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14424 else
14425 ld_shlibs_F77=no
14429 sunos4*)
14430 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14431 wlarc=
14432 hardcode_direct_F77=yes
14433 hardcode_shlibpath_var_F77=no
14437 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14438 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14439 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14440 else
14441 ld_shlibs_F77=no
14444 esac
14446 if test "$ld_shlibs_F77" = no; then
14447 runpath_var=
14448 hardcode_libdir_flag_spec_F77=
14449 export_dynamic_flag_spec_F77=
14450 whole_archive_flag_spec_F77=
14452 else
14453 # PORTME fill in a description of your system's linker (not GNU ld)
14454 case $host_os in
14455 aix3*)
14456 allow_undefined_flag_F77=unsupported
14457 always_export_symbols_F77=yes
14458 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14459 # Note: this linker hardcodes the directories in LIBPATH if there
14460 # are no directories specified by -L.
14461 hardcode_minus_L_F77=yes
14462 if test "$GCC" = yes && test -z "$link_static_flag"; then
14463 # Neither direct hardcoding nor static linking is supported with a
14464 # broken collect2.
14465 hardcode_direct_F77=unsupported
14469 aix4* | aix5*)
14470 if test "$host_cpu" = ia64; then
14471 # On IA64, the linker does run time linking by default, so we don't
14472 # have to do anything special.
14473 aix_use_runtimelinking=no
14474 exp_sym_flag='-Bexport'
14475 no_entry_flag=""
14476 else
14477 # If we're using GNU nm, then we don't want the "-C" option.
14478 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14479 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14480 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14481 else
14482 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14484 aix_use_runtimelinking=no
14486 # Test if we are trying to use run time linking or normal
14487 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14488 # need to do runtime linking.
14489 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14490 for ld_flag in $LDFLAGS; do
14491 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14492 aix_use_runtimelinking=yes
14493 break
14495 done
14496 esac
14498 exp_sym_flag='-bexport'
14499 no_entry_flag='-bnoentry'
14502 # When large executables or shared objects are built, AIX ld can
14503 # have problems creating the table of contents. If linking a library
14504 # or program results in "error TOC overflow" add -mminimal-toc to
14505 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14506 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14508 archive_cmds_F77=''
14509 hardcode_direct_F77=yes
14510 hardcode_libdir_separator_F77=':'
14511 link_all_deplibs_F77=yes
14513 if test "$GCC" = yes; then
14514 case $host_os in aix4.[012]|aix4.[012].*)
14515 # We only want to do this on AIX 4.2 and lower, the check
14516 # below for broken collect2 doesn't work under 4.3+
14517 collect2name=`${CC} -print-prog-name=collect2`
14518 if test -f "$collect2name" && \
14519 strings "$collect2name" | grep resolve_lib_name >/dev/null
14520 then
14521 # We have reworked collect2
14522 hardcode_direct_F77=yes
14523 else
14524 # We have old collect2
14525 hardcode_direct_F77=unsupported
14526 # It fails to find uninstalled libraries when the uninstalled
14527 # path is not listed in the libpath. Setting hardcode_minus_L
14528 # to unsupported forces relinking
14529 hardcode_minus_L_F77=yes
14530 hardcode_libdir_flag_spec_F77='-L$libdir'
14531 hardcode_libdir_separator_F77=
14533 esac
14534 shared_flag='-shared'
14535 if test "$aix_use_runtimelinking" = yes; then
14536 shared_flag="$shared_flag "'${wl}-G'
14538 else
14539 # not using gcc
14540 if test "$host_cpu" = ia64; then
14541 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14542 # chokes on -Wl,-G. The following line is correct:
14543 shared_flag='-G'
14544 else
14545 if test "$aix_use_runtimelinking" = yes; then
14546 shared_flag='${wl}-G'
14547 else
14548 shared_flag='${wl}-bM:SRE'
14553 # It seems that -bexpall does not export symbols beginning with
14554 # underscore (_), so it is better to generate a list of symbols to export.
14555 always_export_symbols_F77=yes
14556 if test "$aix_use_runtimelinking" = yes; then
14557 # Warning - without using the other runtime loading flags (-brtl),
14558 # -berok will link without error, but may produce a broken library.
14559 allow_undefined_flag_F77='-berok'
14560 # Determine the default libpath from the value encoded in an empty executable.
14561 cat > conftest.$ac_ext <<_ACEOF
14562 program main
14565 _ACEOF
14566 if ac_fn_f77_try_link "$LINENO"; then :
14568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14570 # Check for a 64-bit object if we didn't find anything.
14571 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14572 }'`; fi
14574 rm -f core conftest.err conftest.$ac_objext \
14575 conftest$ac_exeext conftest.$ac_ext
14576 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14578 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14579 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14580 else
14581 if test "$host_cpu" = ia64; then
14582 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14583 allow_undefined_flag_F77="-z nodefs"
14584 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14585 else
14586 # Determine the default libpath from the value encoded in an empty executable.
14587 cat > conftest.$ac_ext <<_ACEOF
14588 program main
14591 _ACEOF
14592 if ac_fn_f77_try_link "$LINENO"; then :
14594 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14596 # Check for a 64-bit object if we didn't find anything.
14597 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14598 }'`; fi
14600 rm -f core conftest.err conftest.$ac_objext \
14601 conftest$ac_exeext conftest.$ac_ext
14602 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14604 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14605 # Warning - without using the other run time loading flags,
14606 # -berok will link without error, but may produce a broken library.
14607 no_undefined_flag_F77=' ${wl}-bernotok'
14608 allow_undefined_flag_F77=' ${wl}-berok'
14609 # -bexpall does not export symbols beginning with underscore (_)
14610 always_export_symbols_F77=yes
14611 # Exported symbols can be pulled into shared objects from archives
14612 whole_archive_flag_spec_F77=' '
14613 archive_cmds_need_lc_F77=yes
14614 # This is similar to how AIX traditionally builds it's shared libraries.
14615 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14620 amigaos*)
14621 archive_cmds_F77='$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)'
14622 hardcode_libdir_flag_spec_F77='-L$libdir'
14623 hardcode_minus_L_F77=yes
14624 # see comment about different semantics on the GNU ld section
14625 ld_shlibs_F77=no
14628 bsdi[45]*)
14629 export_dynamic_flag_spec_F77=-rdynamic
14632 cygwin* | mingw* | pw32*)
14633 # When not using gcc, we currently assume that we are using
14634 # Microsoft Visual C++.
14635 # hardcode_libdir_flag_spec is actually meaningless, as there is
14636 # no search path for DLLs.
14637 hardcode_libdir_flag_spec_F77=' '
14638 allow_undefined_flag_F77=unsupported
14639 # Tell ltmain to make .lib files, not .a files.
14640 libext=lib
14641 # Tell ltmain to make .dll files, not .so files.
14642 shrext_cmds=".dll"
14643 # FIXME: Setting linknames here is a bad hack.
14644 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14645 # The linker will automatically build a .lib file if we build a DLL.
14646 old_archive_From_new_cmds_F77='true'
14647 # FIXME: Should let the user specify the lib program.
14648 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14649 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14650 enable_shared_with_static_runtimes_F77=yes
14653 darwin* | rhapsody*)
14654 case "$host_os" in
14655 rhapsody* | darwin1.[012])
14656 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14658 *) # Darwin 1.3 on
14659 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14660 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14661 else
14662 case ${MACOSX_DEPLOYMENT_TARGET} in
14663 10.[012])
14664 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14666 10.*)
14667 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14669 esac
14672 esac
14673 archive_cmds_need_lc_F77=no
14674 hardcode_direct_F77=no
14675 hardcode_automatic_F77=yes
14676 hardcode_shlibpath_var_F77=unsupported
14677 whole_archive_flag_spec_F77=''
14678 link_all_deplibs_F77=yes
14679 if test "$GCC" = yes ; then
14680 output_verbose_link_cmd='echo'
14681 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14682 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14683 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14684 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14685 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14686 else
14687 case $cc_basename in
14688 xlc*)
14689 output_verbose_link_cmd='echo'
14690 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14691 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14692 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14693 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14694 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14697 ld_shlibs_F77=no
14699 esac
14703 dgux*)
14704 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14705 hardcode_libdir_flag_spec_F77='-L$libdir'
14706 hardcode_shlibpath_var_F77=no
14709 freebsd1*)
14710 ld_shlibs_F77=no
14713 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14714 # support. Future versions do this automatically, but an explicit c++rt0.o
14715 # does not break anything, and helps significantly (at the cost of a little
14716 # extra space).
14717 freebsd2.2*)
14718 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14719 hardcode_libdir_flag_spec_F77='-R$libdir'
14720 hardcode_direct_F77=yes
14721 hardcode_shlibpath_var_F77=no
14724 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14725 freebsd2*)
14726 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14727 hardcode_direct_F77=yes
14728 hardcode_minus_L_F77=yes
14729 hardcode_shlibpath_var_F77=no
14732 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14733 freebsd* | kfreebsd*-gnu | dragonfly*)
14734 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14735 hardcode_libdir_flag_spec_F77='-R$libdir'
14736 hardcode_direct_F77=yes
14737 hardcode_shlibpath_var_F77=no
14740 hpux9*)
14741 if test "$GCC" = yes; then
14742 archive_cmds_F77='$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'
14743 else
14744 archive_cmds_F77='$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'
14746 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14747 hardcode_libdir_separator_F77=:
14748 hardcode_direct_F77=yes
14750 # hardcode_minus_L: Not really in the search PATH,
14751 # but as the default location of the library.
14752 hardcode_minus_L_F77=yes
14753 export_dynamic_flag_spec_F77='${wl}-E'
14756 hpux10* | hpux11*)
14757 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14758 case "$host_cpu" in
14759 hppa*64*|ia64*)
14760 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14763 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14765 esac
14766 else
14767 case "$host_cpu" in
14768 hppa*64*|ia64*)
14769 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14772 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14774 esac
14776 if test "$with_gnu_ld" = no; then
14777 case "$host_cpu" in
14778 hppa*64*)
14779 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14780 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14781 hardcode_libdir_separator_F77=:
14782 hardcode_direct_F77=no
14783 hardcode_shlibpath_var_F77=no
14785 ia64*)
14786 hardcode_libdir_flag_spec_F77='-L$libdir'
14787 hardcode_direct_F77=no
14788 hardcode_shlibpath_var_F77=no
14790 # hardcode_minus_L: Not really in the search PATH,
14791 # but as the default location of the library.
14792 hardcode_minus_L_F77=yes
14795 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14796 hardcode_libdir_separator_F77=:
14797 hardcode_direct_F77=yes
14798 export_dynamic_flag_spec_F77='${wl}-E'
14800 # hardcode_minus_L: Not really in the search PATH,
14801 # but as the default location of the library.
14802 hardcode_minus_L_F77=yes
14804 esac
14808 irix5* | irix6* | nonstopux*)
14809 if test "$GCC" = yes; then
14810 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14811 else
14812 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14813 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14815 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14816 hardcode_libdir_separator_F77=:
14817 link_all_deplibs_F77=yes
14820 netbsd*)
14821 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14822 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14823 else
14824 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14826 hardcode_libdir_flag_spec_F77='-R$libdir'
14827 hardcode_direct_F77=yes
14828 hardcode_shlibpath_var_F77=no
14831 newsos6)
14832 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14833 hardcode_direct_F77=yes
14834 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14835 hardcode_libdir_separator_F77=:
14836 hardcode_shlibpath_var_F77=no
14839 openbsd*)
14840 hardcode_direct_F77=yes
14841 hardcode_shlibpath_var_F77=no
14842 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14843 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14844 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14845 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14846 export_dynamic_flag_spec_F77='${wl}-E'
14847 else
14848 case $host_os in
14849 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14850 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14851 hardcode_libdir_flag_spec_F77='-R$libdir'
14854 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14855 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14857 esac
14861 os2*)
14862 hardcode_libdir_flag_spec_F77='-L$libdir'
14863 hardcode_minus_L_F77=yes
14864 allow_undefined_flag_F77=unsupported
14865 archive_cmds_F77='$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'
14866 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14869 osf3*)
14870 if test "$GCC" = yes; then
14871 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14872 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14873 else
14874 allow_undefined_flag_F77=' -expect_unresolved \*'
14875 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14877 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14878 hardcode_libdir_separator_F77=:
14881 osf4* | osf5*) # as osf3* with the addition of -msym flag
14882 if test "$GCC" = yes; then
14883 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14884 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14885 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14886 else
14887 allow_undefined_flag_F77=' -expect_unresolved \*'
14888 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14889 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14890 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14892 # Both c and cxx compiler support -rpath directly
14893 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14895 hardcode_libdir_separator_F77=:
14898 sco3.2v5*)
14899 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14900 hardcode_shlibpath_var_F77=no
14901 export_dynamic_flag_spec_F77='${wl}-Bexport'
14902 runpath_var=LD_RUN_PATH
14903 hardcode_runpath_var=yes
14906 solaris*)
14907 no_undefined_flag_F77=' -z text'
14908 if test "$GCC" = yes; then
14909 wlarc='${wl}'
14910 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14911 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14912 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14913 else
14914 wlarc=''
14915 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14916 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14917 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14919 hardcode_libdir_flag_spec_F77='-R$libdir'
14920 hardcode_shlibpath_var_F77=no
14921 case $host_os in
14922 solaris2.[0-5] | solaris2.[0-5].*) ;;
14924 # The compiler driver will combine linker options so we
14925 # cannot just pass the convience library names through
14926 # without $wl, iff we do not link with $LD.
14927 # Luckily, gcc supports the same syntax we need for Sun Studio.
14928 # Supported since Solaris 2.6 (maybe 2.5.1?)
14929 case $wlarc in
14931 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14933 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14934 esac ;;
14935 esac
14936 link_all_deplibs_F77=yes
14939 sunos4*)
14940 if test "x$host_vendor" = xsequent; then
14941 # Use $CC to link under sequent, because it throws in some extra .o
14942 # files that make .init and .fini sections work.
14943 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14944 else
14945 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14947 hardcode_libdir_flag_spec_F77='-L$libdir'
14948 hardcode_direct_F77=yes
14949 hardcode_minus_L_F77=yes
14950 hardcode_shlibpath_var_F77=no
14953 sysv4)
14954 case $host_vendor in
14955 sni)
14956 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14957 hardcode_direct_F77=yes # is this really true???
14959 siemens)
14960 ## LD is ld it makes a PLAMLIB
14961 ## CC just makes a GrossModule.
14962 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14963 reload_cmds_F77='$CC -r -o $output$reload_objs'
14964 hardcode_direct_F77=no
14966 motorola)
14967 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14968 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14970 esac
14971 runpath_var='LD_RUN_PATH'
14972 hardcode_shlibpath_var_F77=no
14975 sysv4.3*)
14976 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14977 hardcode_shlibpath_var_F77=no
14978 export_dynamic_flag_spec_F77='-Bexport'
14981 sysv4*MP*)
14982 if test -d /usr/nec; then
14983 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14984 hardcode_shlibpath_var_F77=no
14985 runpath_var=LD_RUN_PATH
14986 hardcode_runpath_var=yes
14987 ld_shlibs_F77=yes
14991 sysv4.2uw2*)
14992 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14993 hardcode_direct_F77=yes
14994 hardcode_minus_L_F77=no
14995 hardcode_shlibpath_var_F77=no
14996 hardcode_runpath_var=yes
14997 runpath_var=LD_RUN_PATH
15000 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15001 no_undefined_flag_F77='${wl}-z ${wl}text'
15002 if test "$GCC" = yes; then
15003 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15004 else
15005 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15007 runpath_var='LD_RUN_PATH'
15008 hardcode_shlibpath_var_F77=no
15011 sysv5*)
15012 no_undefined_flag_F77=' -z text'
15013 # $CC -shared without GNU ld will not create a library from C++
15014 # object files and a static libstdc++, better avoid it by now
15015 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15016 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15017 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15018 hardcode_libdir_flag_spec_F77=
15019 hardcode_shlibpath_var_F77=no
15020 runpath_var='LD_RUN_PATH'
15023 uts4*)
15024 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15025 hardcode_libdir_flag_spec_F77='-L$libdir'
15026 hardcode_shlibpath_var_F77=no
15030 ld_shlibs_F77=no
15032 esac
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15036 $as_echo "$ld_shlibs_F77" >&6; }
15037 test "$ld_shlibs_F77" = no && can_build_shared=no
15039 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15040 if test "$GCC" = yes; then
15041 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15045 # Do we need to explicitly link libc?
15047 case "x$archive_cmds_need_lc_F77" in
15048 x|xyes)
15049 # Assume -lc should be added
15050 archive_cmds_need_lc_F77=yes
15052 if test "$enable_shared" = yes && test "$GCC" = yes; then
15053 case $archive_cmds_F77 in
15054 *'~'*)
15055 # FIXME: we may have to deal with multi-command sequences.
15057 '$CC '*)
15058 # Test whether the compiler implicitly links with -lc since on some
15059 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15060 # to ld, don't add -lc before -lgcc.
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15062 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15063 $rm conftest*
15064 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15067 (eval $ac_compile) 2>&5
15068 ac_status=$?
15069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15070 test $ac_status = 0; } 2>conftest.err; then
15071 soname=conftest
15072 lib=conftest
15073 libobjs=conftest.$ac_objext
15074 deplibs=
15075 wl=$lt_prog_compiler_wl_F77
15076 compiler_flags=-v
15077 linker_flags=-v
15078 verstring=
15079 output_objdir=.
15080 libname=conftest
15081 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15082 allow_undefined_flag_F77=
15083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15084 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15085 ac_status=$?
15086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15087 test $ac_status = 0; }
15088 then
15089 archive_cmds_need_lc_F77=no
15090 else
15091 archive_cmds_need_lc_F77=yes
15093 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15094 else
15095 cat conftest.err 1>&5
15097 $rm conftest*
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15099 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15101 esac
15104 esac
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15107 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15108 library_names_spec=
15109 libname_spec='lib$name'
15110 soname_spec=
15111 shrext_cmds=".so"
15112 postinstall_cmds=
15113 postuninstall_cmds=
15114 finish_cmds=
15115 finish_eval=
15116 shlibpath_var=
15117 shlibpath_overrides_runpath=unknown
15118 version_type=none
15119 dynamic_linker="$host_os ld.so"
15120 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15121 if test "$GCC" = yes; then
15122 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15123 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15124 # if the path contains ";" then we assume it to be the separator
15125 # otherwise default to the standard path separator (i.e. ":") - it is
15126 # assumed that no part of a normal pathname contains ";" but that should
15127 # okay in the real world where ";" in dirpaths is itself problematic.
15128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15129 else
15130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15132 else
15133 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15135 need_lib_prefix=unknown
15136 hardcode_into_libs=no
15138 # when you set need_version to no, make sure it does not cause -set_version
15139 # flags to be left without arguments
15140 need_version=unknown
15142 case $host_os in
15143 aix3*)
15144 version_type=linux
15145 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15146 shlibpath_var=LIBPATH
15148 # AIX 3 has no versioning support, so we append a major version to the name.
15149 soname_spec='${libname}${release}${shared_ext}$major'
15152 aix4* | aix5*)
15153 version_type=linux
15154 need_lib_prefix=no
15155 need_version=no
15156 hardcode_into_libs=yes
15157 if test "$host_cpu" = ia64; then
15158 # AIX 5 supports IA64
15159 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15160 shlibpath_var=LD_LIBRARY_PATH
15161 else
15162 # With GCC up to 2.95.x, collect2 would create an import file
15163 # for dependence libraries. The import file would start with
15164 # the line `#! .'. This would cause the generated library to
15165 # depend on `.', always an invalid library. This was fixed in
15166 # development snapshots of GCC prior to 3.0.
15167 case $host_os in
15168 aix4 | aix4.[01] | aix4.[01].*)
15169 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15170 echo ' yes '
15171 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15173 else
15174 can_build_shared=no
15177 esac
15178 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15179 # soname into executable. Probably we can add versioning support to
15180 # collect2, so additional links can be useful in future.
15181 if test "$aix_use_runtimelinking" = yes; then
15182 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15183 # instead of lib<name>.a to let people know that these are not
15184 # typical AIX shared libraries.
15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186 else
15187 # We preserve .a as extension for shared libraries through AIX4.2
15188 # and later when we are not doing run time linking.
15189 library_names_spec='${libname}${release}.a $libname.a'
15190 soname_spec='${libname}${release}${shared_ext}$major'
15192 shlibpath_var=LIBPATH
15196 amigaos*)
15197 library_names_spec='$libname.ixlibrary $libname.a'
15198 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15199 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'
15202 beos*)
15203 library_names_spec='${libname}${shared_ext}'
15204 dynamic_linker="$host_os ld.so"
15205 shlibpath_var=LIBRARY_PATH
15208 bsdi[45]*)
15209 version_type=linux
15210 need_version=no
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212 soname_spec='${libname}${release}${shared_ext}$major'
15213 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15214 shlibpath_var=LD_LIBRARY_PATH
15215 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15216 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15217 # the default ld.so.conf also contains /usr/contrib/lib and
15218 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15219 # libtool to hard-code these into programs
15222 cygwin* | mingw* | pw32*)
15223 version_type=windows
15224 shrext_cmds=".dll"
15225 need_version=no
15226 need_lib_prefix=no
15228 case $GCC,$host_os in
15229 yes,cygwin* | yes,mingw* | yes,pw32*)
15230 library_names_spec='$libname.dll.a'
15231 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15232 postinstall_cmds='base_file=`basename \${file}`~
15233 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15234 dldir=$destdir/`dirname \$dlpath`~
15235 test -d \$dldir || mkdir -p \$dldir~
15236 $install_prog $dir/$dlname \$dldir/$dlname'
15237 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15238 dlpath=$dir/\$dldll~
15239 $rm \$dlpath'
15240 shlibpath_overrides_runpath=yes
15242 case $host_os in
15243 cygwin*)
15244 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15245 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15246 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15248 mingw*)
15249 # MinGW DLLs use traditional 'lib' prefix
15250 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15251 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15252 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15253 # It is most probably a Windows format PATH printed by
15254 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15255 # path with ; separators, and with drive letters. We can handle the
15256 # drive letters (cygwin fileutils understands them), so leave them,
15257 # especially as we might pass files found there to a mingw objdump,
15258 # which wouldn't understand a cygwinified path. Ahh.
15259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15260 else
15261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15264 pw32*)
15265 # pw32 DLLs use 'pw' prefix rather than 'lib'
15266 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15268 esac
15272 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15274 esac
15275 dynamic_linker='Win32 ld.exe'
15276 # FIXME: first we should search . and the directory the executable is in
15277 shlibpath_var=PATH
15280 darwin* | rhapsody*)
15281 dynamic_linker="$host_os dyld"
15282 version_type=darwin
15283 need_lib_prefix=no
15284 need_version=no
15285 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15286 soname_spec='${libname}${release}${major}$shared_ext'
15287 shlibpath_overrides_runpath=yes
15288 shlibpath_var=DYLD_LIBRARY_PATH
15289 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15290 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15291 if test "$GCC" = yes; then
15292 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15293 else
15294 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15296 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15299 dgux*)
15300 version_type=linux
15301 need_lib_prefix=no
15302 need_version=no
15303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15304 soname_spec='${libname}${release}${shared_ext}$major'
15305 shlibpath_var=LD_LIBRARY_PATH
15308 freebsd1*)
15309 dynamic_linker=no
15312 kfreebsd*-gnu)
15313 version_type=linux
15314 need_lib_prefix=no
15315 need_version=no
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15317 soname_spec='${libname}${release}${shared_ext}$major'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 shlibpath_overrides_runpath=no
15320 hardcode_into_libs=yes
15321 dynamic_linker='GNU ld.so'
15324 freebsd* | dragonfly*)
15325 # DragonFly does not have aout. When/if they implement a new
15326 # versioning mechanism, adjust this.
15327 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15328 version_type=freebsd-$objformat
15329 case $version_type in
15330 freebsd-elf*)
15331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15332 need_version=no
15333 need_lib_prefix=no
15335 freebsd-*)
15336 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15337 need_version=yes
15339 esac
15340 shlibpath_var=LD_LIBRARY_PATH
15341 case $host_os in
15342 freebsd2*)
15343 shlibpath_overrides_runpath=yes
15345 freebsd3.[01]* | freebsdelf3.[01]*)
15346 shlibpath_overrides_runpath=yes
15347 hardcode_into_libs=yes
15349 *) # from 3.2 on
15350 shlibpath_overrides_runpath=no
15351 hardcode_into_libs=yes
15353 esac
15356 gnu*)
15357 version_type=linux
15358 need_lib_prefix=no
15359 need_version=no
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15362 shlibpath_var=LD_LIBRARY_PATH
15363 hardcode_into_libs=yes
15366 hpux9* | hpux10* | hpux11*)
15367 # Give a soname corresponding to the major version so that dld.sl refuses to
15368 # link against other versions.
15369 version_type=sunos
15370 need_lib_prefix=no
15371 need_version=no
15372 case "$host_cpu" in
15373 ia64*)
15374 shrext_cmds='.so'
15375 hardcode_into_libs=yes
15376 dynamic_linker="$host_os dld.so"
15377 shlibpath_var=LD_LIBRARY_PATH
15378 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 if test "X$HPUX_IA64_MODE" = X32; then
15382 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15383 else
15384 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15386 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15388 hppa*64*)
15389 shrext_cmds='.sl'
15390 hardcode_into_libs=yes
15391 dynamic_linker="$host_os dld.sl"
15392 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15393 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 soname_spec='${libname}${release}${shared_ext}$major'
15396 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15397 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15400 shrext_cmds='.sl'
15401 dynamic_linker="$host_os dld.sl"
15402 shlibpath_var=SHLIB_PATH
15403 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405 soname_spec='${libname}${release}${shared_ext}$major'
15407 esac
15408 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15409 postinstall_cmds='chmod 555 $lib'
15412 irix5* | irix6* | nonstopux*)
15413 case $host_os in
15414 nonstopux*) version_type=nonstopux ;;
15416 if test "$lt_cv_prog_gnu_ld" = yes; then
15417 version_type=linux
15418 else
15419 version_type=irix
15420 fi ;;
15421 esac
15422 need_lib_prefix=no
15423 need_version=no
15424 soname_spec='${libname}${release}${shared_ext}$major'
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15426 case $host_os in
15427 irix5* | nonstopux*)
15428 libsuff= shlibsuff=
15431 case $LD in # libtool.m4 will add one of these switches to LD
15432 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15433 libsuff= shlibsuff= libmagic=32-bit;;
15434 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15435 libsuff=32 shlibsuff=N32 libmagic=N32;;
15436 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15437 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15438 *) libsuff= shlibsuff= libmagic=never-match;;
15439 esac
15441 esac
15442 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15443 shlibpath_overrides_runpath=no
15444 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15445 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15446 hardcode_into_libs=yes
15449 # No shared lib support for Linux oldld, aout, or coff.
15450 linux*oldld* | linux*aout* | linux*coff*)
15451 dynamic_linker=no
15454 # This must be Linux ELF.
15455 linux*)
15456 version_type=linux
15457 need_lib_prefix=no
15458 need_version=no
15459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15460 soname_spec='${libname}${release}${shared_ext}$major'
15461 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15462 shlibpath_var=LD_LIBRARY_PATH
15463 shlibpath_overrides_runpath=no
15464 # This implies no fast_install, which is unacceptable.
15465 # Some rework will be needed to allow for fast_install
15466 # before this can be enabled.
15467 hardcode_into_libs=yes
15469 # find out which ABI we are using
15470 libsuff=
15471 case "$host_cpu" in
15472 x86_64*|s390x*|powerpc64*)
15473 echo '#line 15473 "configure"' > conftest.$ac_ext
15474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15475 (eval $ac_compile) 2>&5
15476 ac_status=$?
15477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15478 test $ac_status = 0; }; then
15479 case `/usr/bin/file conftest.$ac_objext` in
15480 *64-bit*)
15481 libsuff=64
15482 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15484 esac
15486 rm -rf conftest*
15488 esac
15490 # Append ld.so.conf contents to the search path
15491 if test -f /etc/ld.so.conf; then
15492 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15493 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15496 # We used to test for /lib/ld.so.1 and disable shared libraries on
15497 # powerpc, because MkLinux only supported shared libraries with the
15498 # GNU dynamic linker. Since this was broken with cross compilers,
15499 # most powerpc-linux boxes support dynamic linking these days and
15500 # people can always --disable-shared, the test was removed, and we
15501 # assume the GNU/Linux dynamic linker is in use.
15502 dynamic_linker='GNU/Linux ld.so'
15505 knetbsd*-gnu)
15506 version_type=linux
15507 need_lib_prefix=no
15508 need_version=no
15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15510 soname_spec='${libname}${release}${shared_ext}$major'
15511 shlibpath_var=LD_LIBRARY_PATH
15512 shlibpath_overrides_runpath=no
15513 hardcode_into_libs=yes
15514 dynamic_linker='GNU ld.so'
15517 netbsd*)
15518 version_type=sunos
15519 need_lib_prefix=no
15520 need_version=no
15521 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15523 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15524 dynamic_linker='NetBSD (a.out) ld.so'
15525 else
15526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15527 soname_spec='${libname}${release}${shared_ext}$major'
15528 dynamic_linker='NetBSD ld.elf_so'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 shlibpath_overrides_runpath=yes
15532 hardcode_into_libs=yes
15535 newsos6)
15536 version_type=linux
15537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15538 shlibpath_var=LD_LIBRARY_PATH
15539 shlibpath_overrides_runpath=yes
15542 nto-qnx*)
15543 version_type=linux
15544 need_lib_prefix=no
15545 need_version=no
15546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15547 soname_spec='${libname}${release}${shared_ext}$major'
15548 shlibpath_var=LD_LIBRARY_PATH
15549 shlibpath_overrides_runpath=yes
15552 openbsd*)
15553 version_type=sunos
15554 need_lib_prefix=no
15555 need_version=no
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15558 shlibpath_var=LD_LIBRARY_PATH
15559 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15560 case $host_os in
15561 openbsd2.[89] | openbsd2.[89].*)
15562 shlibpath_overrides_runpath=no
15565 shlibpath_overrides_runpath=yes
15567 esac
15568 else
15569 shlibpath_overrides_runpath=yes
15573 os2*)
15574 libname_spec='$name'
15575 shrext_cmds=".dll"
15576 need_lib_prefix=no
15577 library_names_spec='$libname${shared_ext} $libname.a'
15578 dynamic_linker='OS/2 ld.exe'
15579 shlibpath_var=LIBPATH
15582 osf3* | osf4* | osf5*)
15583 version_type=osf
15584 need_lib_prefix=no
15585 need_version=no
15586 soname_spec='${libname}${release}${shared_ext}$major'
15587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15588 shlibpath_var=LD_LIBRARY_PATH
15589 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15590 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15593 sco3.2v5*)
15594 version_type=osf
15595 soname_spec='${libname}${release}${shared_ext}$major'
15596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15597 shlibpath_var=LD_LIBRARY_PATH
15600 solaris*)
15601 version_type=linux
15602 need_lib_prefix=no
15603 need_version=no
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605 soname_spec='${libname}${release}${shared_ext}$major'
15606 shlibpath_var=LD_LIBRARY_PATH
15607 shlibpath_overrides_runpath=yes
15608 hardcode_into_libs=yes
15609 # ldd complains unless libraries are executable
15610 postinstall_cmds='chmod +x $lib'
15613 sunos4*)
15614 version_type=sunos
15615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15616 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15617 shlibpath_var=LD_LIBRARY_PATH
15618 shlibpath_overrides_runpath=yes
15619 if test "$with_gnu_ld" = yes; then
15620 need_lib_prefix=no
15622 need_version=yes
15625 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15626 version_type=linux
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 soname_spec='${libname}${release}${shared_ext}$major'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 case $host_vendor in
15631 sni)
15632 shlibpath_overrides_runpath=no
15633 need_lib_prefix=no
15634 export_dynamic_flag_spec='${wl}-Blargedynsym'
15635 runpath_var=LD_RUN_PATH
15637 siemens)
15638 need_lib_prefix=no
15640 motorola)
15641 need_lib_prefix=no
15642 need_version=no
15643 shlibpath_overrides_runpath=no
15644 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15646 esac
15649 sysv4*MP*)
15650 if test -d /usr/nec ;then
15651 version_type=linux
15652 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15653 soname_spec='$libname${shared_ext}.$major'
15654 shlibpath_var=LD_LIBRARY_PATH
15658 uts4*)
15659 version_type=linux
15660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15661 soname_spec='${libname}${release}${shared_ext}$major'
15662 shlibpath_var=LD_LIBRARY_PATH
15666 dynamic_linker=no
15668 esac
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15670 $as_echo "$dynamic_linker" >&6; }
15671 test "$dynamic_linker" = no && can_build_shared=no
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15674 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15675 hardcode_action_F77=
15676 if test -n "$hardcode_libdir_flag_spec_F77" || \
15677 test -n "$runpath_var_F77" || \
15678 test "X$hardcode_automatic_F77" = "Xyes" ; then
15680 # We can hardcode non-existant directories.
15681 if test "$hardcode_direct_F77" != no &&
15682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15683 # have to relink, otherwise we might link with an installed library
15684 # when we should be linking with a yet-to-be-installed one
15685 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15686 test "$hardcode_minus_L_F77" != no; then
15687 # Linking always hardcodes the temporary library directory.
15688 hardcode_action_F77=relink
15689 else
15690 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15691 hardcode_action_F77=immediate
15693 else
15694 # We cannot hardcode anything, or else we can only hardcode existing
15695 # directories.
15696 hardcode_action_F77=unsupported
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15699 $as_echo "$hardcode_action_F77" >&6; }
15701 if test "$hardcode_action_F77" = relink; then
15702 # Fast installation is not supported
15703 enable_fast_install=no
15704 elif test "$shlibpath_overrides_runpath" = yes ||
15705 test "$enable_shared" = no; then
15706 # Fast installation is not necessary
15707 enable_fast_install=needless
15710 striplib=
15711 old_striplib=
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15713 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15714 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15715 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15716 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15718 $as_echo "yes" >&6; }
15719 else
15720 # FIXME - insert some real tests, host_os isn't really good enough
15721 case $host_os in
15722 darwin*)
15723 if test -n "$STRIP" ; then
15724 striplib="$STRIP -x"
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15726 $as_echo "yes" >&6; }
15727 else
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15729 $as_echo "no" >&6; }
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15734 $as_echo "no" >&6; }
15736 esac
15741 # The else clause should only fire when bootstrapping the
15742 # libtool distribution, otherwise you forgot to ship ltmain.sh
15743 # with your package, and you will get complaints that there are
15744 # no rules to generate ltmain.sh.
15745 if test -f "$ltmain"; then
15746 # See if we are running on zsh, and set the options which allow our commands through
15747 # without removal of \ escapes.
15748 if test -n "${ZSH_VERSION+set}" ; then
15749 setopt NO_GLOB_SUBST
15751 # Now quote all the things that may contain metacharacters while being
15752 # careful not to overquote the AC_SUBSTed values. We take copies of the
15753 # variables and quote the copies for generation of the libtool script.
15754 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15755 SED SHELL STRIP \
15756 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15757 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15758 deplibs_check_method reload_flag reload_cmds need_locks \
15759 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15760 lt_cv_sys_global_symbol_to_c_name_address \
15761 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15762 old_postinstall_cmds old_postuninstall_cmds \
15763 compiler_F77 \
15764 CC_F77 \
15765 LD_F77 \
15766 lt_prog_compiler_wl_F77 \
15767 lt_prog_compiler_pic_F77 \
15768 lt_prog_compiler_static_F77 \
15769 lt_prog_compiler_no_builtin_flag_F77 \
15770 export_dynamic_flag_spec_F77 \
15771 thread_safe_flag_spec_F77 \
15772 whole_archive_flag_spec_F77 \
15773 enable_shared_with_static_runtimes_F77 \
15774 old_archive_cmds_F77 \
15775 old_archive_from_new_cmds_F77 \
15776 predep_objects_F77 \
15777 postdep_objects_F77 \
15778 predeps_F77 \
15779 postdeps_F77 \
15780 compiler_lib_search_path_F77 \
15781 archive_cmds_F77 \
15782 archive_expsym_cmds_F77 \
15783 postinstall_cmds_F77 \
15784 postuninstall_cmds_F77 \
15785 old_archive_from_expsyms_cmds_F77 \
15786 allow_undefined_flag_F77 \
15787 no_undefined_flag_F77 \
15788 export_symbols_cmds_F77 \
15789 hardcode_libdir_flag_spec_F77 \
15790 hardcode_libdir_flag_spec_ld_F77 \
15791 hardcode_libdir_separator_F77 \
15792 hardcode_automatic_F77 \
15793 module_cmds_F77 \
15794 module_expsym_cmds_F77 \
15795 lt_cv_prog_compiler_c_o_F77 \
15796 exclude_expsyms_F77 \
15797 include_expsyms_F77; do
15799 case $var in
15800 old_archive_cmds_F77 | \
15801 old_archive_from_new_cmds_F77 | \
15802 archive_cmds_F77 | \
15803 archive_expsym_cmds_F77 | \
15804 module_cmds_F77 | \
15805 module_expsym_cmds_F77 | \
15806 old_archive_from_expsyms_cmds_F77 | \
15807 export_symbols_cmds_F77 | \
15808 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15809 postinstall_cmds | postuninstall_cmds | \
15810 old_postinstall_cmds | old_postuninstall_cmds | \
15811 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15812 # Double-quote double-evaled strings.
15813 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15816 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15818 esac
15819 done
15821 case $lt_echo in
15822 *'\$0 --fallback-echo"')
15823 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15825 esac
15827 cfgfile="$ofile"
15829 cat <<__EOF__ >> "$cfgfile"
15830 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15832 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15834 # Shell to use when invoking shell scripts.
15835 SHELL=$lt_SHELL
15837 # Whether or not to build shared libraries.
15838 build_libtool_libs=$enable_shared
15840 # Whether or not to build static libraries.
15841 build_old_libs=$enable_static
15843 # Whether or not to add -lc for building shared libraries.
15844 build_libtool_need_lc=$archive_cmds_need_lc_F77
15846 # Whether or not to disallow shared libs when runtime libs are static
15847 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15849 # Whether or not to optimize for fast installation.
15850 fast_install=$enable_fast_install
15852 # The host system.
15853 host_alias=$host_alias
15854 host=$host
15855 host_os=$host_os
15857 # The build system.
15858 build_alias=$build_alias
15859 build=$build
15860 build_os=$build_os
15862 # An echo program that does not interpret backslashes.
15863 echo=$lt_echo
15865 # The archiver.
15866 AR=$lt_AR
15867 AR_FLAGS=$lt_AR_FLAGS
15869 # A C compiler.
15870 LTCC=$lt_LTCC
15872 # A language-specific compiler.
15873 CC=$lt_compiler_F77
15875 # Is the compiler the GNU C compiler?
15876 with_gcc=$GCC_F77
15878 # An ERE matcher.
15879 EGREP=$lt_EGREP
15881 # The linker used to build libraries.
15882 LD=$lt_LD_F77
15884 # Whether we need hard or soft links.
15885 LN_S=$lt_LN_S
15887 # A BSD-compatible nm program.
15888 NM=$lt_NM
15890 # A symbol stripping program
15891 STRIP=$lt_STRIP
15893 # Used to examine libraries when file_magic_cmd begins "file"
15894 MAGIC_CMD=$MAGIC_CMD
15896 # Used on cygwin: DLL creation program.
15897 DLLTOOL="$DLLTOOL"
15899 # Used on cygwin: object dumper.
15900 OBJDUMP="$OBJDUMP"
15902 # Used on cygwin: assembler.
15903 AS="$AS"
15905 # The name of the directory that contains temporary libtool files.
15906 objdir=$objdir
15908 # How to create reloadable object files.
15909 reload_flag=$lt_reload_flag
15910 reload_cmds=$lt_reload_cmds
15912 # How to pass a linker flag through the compiler.
15913 wl=$lt_lt_prog_compiler_wl_F77
15915 # Object file suffix (normally "o").
15916 objext="$ac_objext"
15918 # Old archive suffix (normally "a").
15919 libext="$libext"
15921 # Shared library suffix (normally ".so").
15922 shrext_cmds='$shrext_cmds'
15924 # Executable file suffix (normally "").
15925 exeext="$exeext"
15927 # Additional compiler flags for building library objects.
15928 pic_flag=$lt_lt_prog_compiler_pic_F77
15929 pic_mode=$pic_mode
15931 # What is the maximum length of a command?
15932 max_cmd_len=$lt_cv_sys_max_cmd_len
15934 # Does compiler simultaneously support -c and -o options?
15935 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15937 # Must we lock files when doing compilation?
15938 need_locks=$lt_need_locks
15940 # Do we need the lib prefix for modules?
15941 need_lib_prefix=$need_lib_prefix
15943 # Do we need a version for libraries?
15944 need_version=$need_version
15946 # Whether dlopen is supported.
15947 dlopen_support=$enable_dlopen
15949 # Whether dlopen of programs is supported.
15950 dlopen_self=$enable_dlopen_self
15952 # Whether dlopen of statically linked programs is supported.
15953 dlopen_self_static=$enable_dlopen_self_static
15955 # Compiler flag to prevent dynamic linking.
15956 link_static_flag=$lt_lt_prog_compiler_static_F77
15958 # Compiler flag to turn off builtin functions.
15959 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15961 # Compiler flag to allow reflexive dlopens.
15962 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15964 # Compiler flag to generate shared objects directly from archives.
15965 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15967 # Compiler flag to generate thread-safe objects.
15968 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15970 # Library versioning type.
15971 version_type=$version_type
15973 # Format of library name prefix.
15974 libname_spec=$lt_libname_spec
15976 # List of archive names. First name is the real one, the rest are links.
15977 # The last name is the one that the linker finds with -lNAME.
15978 library_names_spec=$lt_library_names_spec
15980 # The coded name of the library, if different from the real name.
15981 soname_spec=$lt_soname_spec
15983 # Commands used to build and install an old-style archive.
15984 RANLIB=$lt_RANLIB
15985 old_archive_cmds=$lt_old_archive_cmds_F77
15986 old_postinstall_cmds=$lt_old_postinstall_cmds
15987 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15989 # Create an old-style archive from a shared archive.
15990 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15992 # Create a temporary old-style archive to link instead of a shared archive.
15993 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15995 # Commands used to build and install a shared archive.
15996 archive_cmds=$lt_archive_cmds_F77
15997 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15998 postinstall_cmds=$lt_postinstall_cmds
15999 postuninstall_cmds=$lt_postuninstall_cmds
16001 # Commands used to build a loadable module (assumed same as above if empty)
16002 module_cmds=$lt_module_cmds_F77
16003 module_expsym_cmds=$lt_module_expsym_cmds_F77
16005 # Commands to strip libraries.
16006 old_striplib=$lt_old_striplib
16007 striplib=$lt_striplib
16009 # Dependencies to place before the objects being linked to create a
16010 # shared library.
16011 predep_objects=$lt_predep_objects_F77
16013 # Dependencies to place after the objects being linked to create a
16014 # shared library.
16015 postdep_objects=$lt_postdep_objects_F77
16017 # Dependencies to place before the objects being linked to create a
16018 # shared library.
16019 predeps=$lt_predeps_F77
16021 # Dependencies to place after the objects being linked to create a
16022 # shared library.
16023 postdeps=$lt_postdeps_F77
16025 # The library search path used internally by the compiler when linking
16026 # a shared library.
16027 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16029 # Method to check whether dependent libraries are shared objects.
16030 deplibs_check_method=$lt_deplibs_check_method
16032 # Command to use when deplibs_check_method == file_magic.
16033 file_magic_cmd=$lt_file_magic_cmd
16035 # Flag that allows shared libraries with undefined symbols to be built.
16036 allow_undefined_flag=$lt_allow_undefined_flag_F77
16038 # Flag that forces no undefined symbols.
16039 no_undefined_flag=$lt_no_undefined_flag_F77
16041 # Commands used to finish a libtool library installation in a directory.
16042 finish_cmds=$lt_finish_cmds
16044 # Same as above, but a single script fragment to be evaled but not shown.
16045 finish_eval=$lt_finish_eval
16047 # Take the output of nm and produce a listing of raw symbols and C names.
16048 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16050 # Transform the output of nm in a proper C declaration
16051 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16053 # Transform the output of nm in a C name address pair
16054 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16056 # This is the shared library runtime path variable.
16057 runpath_var=$runpath_var
16059 # This is the shared library path variable.
16060 shlibpath_var=$shlibpath_var
16062 # Is shlibpath searched before the hard-coded library search path?
16063 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16065 # How to hardcode a shared library path into an executable.
16066 hardcode_action=$hardcode_action_F77
16068 # Whether we should hardcode library paths into libraries.
16069 hardcode_into_libs=$hardcode_into_libs
16071 # Flag to hardcode \$libdir into a binary during linking.
16072 # This must work even if \$libdir does not exist.
16073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16075 # If ld is used when linking, flag to hardcode \$libdir into
16076 # a binary during linking. This must work even if \$libdir does
16077 # not exist.
16078 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16080 # Whether we need a single -rpath flag with a separated argument.
16081 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16083 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16084 # resulting binary.
16085 hardcode_direct=$hardcode_direct_F77
16087 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16088 # resulting binary.
16089 hardcode_minus_L=$hardcode_minus_L_F77
16091 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16092 # the resulting binary.
16093 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16095 # Set to yes if building a shared library automatically hardcodes DIR into the library
16096 # and all subsequent libraries and executables linked against it.
16097 hardcode_automatic=$hardcode_automatic_F77
16099 # Variables whose values should be saved in libtool wrapper scripts and
16100 # restored at relink time.
16101 variables_saved_for_relink="$variables_saved_for_relink"
16103 # Whether libtool must link a program against all its dependency libraries.
16104 link_all_deplibs=$link_all_deplibs_F77
16106 # Compile-time system search path for libraries
16107 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16109 # Run-time system search path for libraries
16110 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16112 # Fix the shell variable \$srcfile for the compiler.
16113 fix_srcfile_path="$fix_srcfile_path_F77"
16115 # Set to yes if exported symbols are required.
16116 always_export_symbols=$always_export_symbols_F77
16118 # The commands to list exported symbols.
16119 export_symbols_cmds=$lt_export_symbols_cmds_F77
16121 # The commands to extract the exported symbol list from a shared archive.
16122 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16124 # Symbols that should not be listed in the preloaded symbols.
16125 exclude_expsyms=$lt_exclude_expsyms_F77
16127 # Symbols that must always be exported.
16128 include_expsyms=$lt_include_expsyms_F77
16130 # ### END LIBTOOL TAG CONFIG: $tagname
16132 __EOF__
16135 else
16136 # If there is no Makefile yet, we rely on a make rule to execute
16137 # `config.status --recheck' to rerun these tests and create the
16138 # libtool script then.
16139 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16140 if test -f "$ltmain_in"; then
16141 test -f Makefile && make "$ltmain"
16146 ac_ext=c
16147 ac_cpp='$CPP $CPPFLAGS'
16148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16152 CC="$lt_save_CC"
16154 else
16155 tagname=""
16159 GCJ)
16160 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16163 # Source file extension for Java test sources.
16164 ac_ext=java
16166 # Object file extension for compiled Java test sources.
16167 objext=o
16168 objext_GCJ=$objext
16170 # Code to be used in simple compile tests
16171 lt_simple_compile_test_code="class foo {}\n"
16173 # Code to be used in simple link tests
16174 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16176 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16178 # If no C compiler was specified, use CC.
16179 LTCC=${LTCC-"$CC"}
16181 # Allow CC to be a program name with arguments.
16182 compiler=$CC
16185 # save warnings/boilerplate of simple test code
16186 ac_outfile=conftest.$ac_objext
16187 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16188 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16189 _lt_compiler_boilerplate=`cat conftest.err`
16190 $rm conftest*
16192 ac_outfile=conftest.$ac_objext
16193 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16194 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16195 _lt_linker_boilerplate=`cat conftest.err`
16196 $rm conftest*
16199 # Allow CC to be a program name with arguments.
16200 lt_save_CC="$CC"
16201 CC=${GCJ-"gcj"}
16202 compiler=$CC
16203 compiler_GCJ=$CC
16204 for cc_temp in $compiler""; do
16205 case $cc_temp in
16206 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16207 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16208 \-*) ;;
16209 *) break;;
16210 esac
16211 done
16212 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16215 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16216 archive_cmds_need_lc_GCJ=no
16218 old_archive_cmds_GCJ=$old_archive_cmds
16220 ## CAVEAT EMPTOR:
16221 ## There is no encapsulation within the following macros, do not change
16222 ## the running order or otherwise move them around unless you know exactly
16223 ## what you are doing...
16225 lt_prog_compiler_no_builtin_flag_GCJ=
16227 if test "$GCC" = yes; then
16228 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16232 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16233 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
16234 $as_echo_n "(cached) " >&6
16235 else
16236 lt_cv_prog_compiler_rtti_exceptions=no
16237 ac_outfile=conftest.$ac_objext
16238 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16239 lt_compiler_flag="-fno-rtti -fno-exceptions"
16240 # Insert the option either (1) after the last *FLAGS variable, or
16241 # (2) before a word containing "conftest.", or (3) at the end.
16242 # Note that $ac_compile itself does not contain backslashes and begins
16243 # with a dollar sign (not a hyphen), so the echo should work correctly.
16244 # The option is referenced via a variable to avoid confusing sed.
16245 lt_compile=`echo "$ac_compile" | $SED \
16246 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16247 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16248 -e 's:$: $lt_compiler_flag:'`
16249 (eval echo "\"\$as_me:16249: $lt_compile\"" >&5)
16250 (eval "$lt_compile" 2>conftest.err)
16251 ac_status=$?
16252 cat conftest.err >&5
16253 echo "$as_me:16253: \$? = $ac_status" >&5
16254 if (exit $ac_status) && test -s "$ac_outfile"; then
16255 # The compiler can only warn and ignore the option if not recognized
16256 # So say no if there are warnings other than the usual output.
16257 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16258 $SED '/^$/d' conftest.err >conftest.er2
16259 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16260 lt_cv_prog_compiler_rtti_exceptions=yes
16263 $rm conftest*
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16267 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16269 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16270 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16271 else
16277 lt_prog_compiler_wl_GCJ=
16278 lt_prog_compiler_pic_GCJ=
16279 lt_prog_compiler_static_GCJ=
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16282 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16284 if test "$GCC" = yes; then
16285 lt_prog_compiler_wl_GCJ='-Wl,'
16286 lt_prog_compiler_static_GCJ='-static'
16288 case $host_os in
16289 aix*)
16290 # All AIX code is PIC.
16291 if test "$host_cpu" = ia64; then
16292 # AIX 5 now supports IA64 processor
16293 lt_prog_compiler_static_GCJ='-Bstatic'
16297 amigaos*)
16298 # FIXME: we need at least 68020 code to build shared libraries, but
16299 # adding the `-m68020' flag to GCC prevents building anything better,
16300 # like `-m68040'.
16301 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16304 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16305 # PIC is the default for these OSes.
16308 mingw* | pw32* | os2*)
16309 # This hack is so that the source file can tell whether it is being
16310 # built for inclusion in a dll (and should export symbols for example).
16311 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16314 darwin* | rhapsody*)
16315 # PIC is the default on this platform
16316 # Common symbols not allowed in MH_DYLIB files
16317 lt_prog_compiler_pic_GCJ='-fno-common'
16320 msdosdjgpp*)
16321 # Just because we use GCC doesn't mean we suddenly get shared libraries
16322 # on systems that don't support them.
16323 lt_prog_compiler_can_build_shared_GCJ=no
16324 enable_shared=no
16327 sysv4*MP*)
16328 if test -d /usr/nec; then
16329 lt_prog_compiler_pic_GCJ=-Kconform_pic
16333 hpux*)
16334 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16335 # not for PA HP-UX.
16336 case "$host_cpu" in
16337 hppa*64*|ia64*)
16338 # +Z the default
16341 lt_prog_compiler_pic_GCJ='-fPIC'
16343 esac
16347 lt_prog_compiler_pic_GCJ='-fPIC'
16349 esac
16350 else
16351 # PORTME Check for flag to pass linker flags through the system compiler.
16352 case $host_os in
16353 aix*)
16354 lt_prog_compiler_wl_GCJ='-Wl,'
16355 if test "$host_cpu" = ia64; then
16356 # AIX 5 now supports IA64 processor
16357 lt_prog_compiler_static_GCJ='-Bstatic'
16358 else
16359 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16362 darwin*)
16363 # PIC is the default on this platform
16364 # Common symbols not allowed in MH_DYLIB files
16365 case $cc_basename in
16366 xlc*)
16367 lt_prog_compiler_pic_GCJ='-qnocommon'
16368 lt_prog_compiler_wl_GCJ='-Wl,'
16370 esac
16373 mingw* | pw32* | os2*)
16374 # This hack is so that the source file can tell whether it is being
16375 # built for inclusion in a dll (and should export symbols for example).
16376 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16379 hpux9* | hpux10* | hpux11*)
16380 lt_prog_compiler_wl_GCJ='-Wl,'
16381 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16382 # not for PA HP-UX.
16383 case "$host_cpu" in
16384 hppa*64*|ia64*)
16385 # +Z the default
16388 lt_prog_compiler_pic_GCJ='+Z'
16390 esac
16391 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16392 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16395 irix5* | irix6* | nonstopux*)
16396 lt_prog_compiler_wl_GCJ='-Wl,'
16397 # PIC (with -KPIC) is the default.
16398 lt_prog_compiler_static_GCJ='-non_shared'
16401 newsos6)
16402 lt_prog_compiler_pic_GCJ='-KPIC'
16403 lt_prog_compiler_static_GCJ='-Bstatic'
16406 linux*)
16407 case $cc_basename in
16408 icc* | ecc*)
16409 lt_prog_compiler_wl_GCJ='-Wl,'
16410 lt_prog_compiler_pic_GCJ='-KPIC'
16411 lt_prog_compiler_static_GCJ='-static'
16413 pgcc* | pgf77* | pgf90*)
16414 # Portland Group compilers (*not* the Pentium gcc compiler,
16415 # which looks to be a dead project)
16416 lt_prog_compiler_wl_GCJ='-Wl,'
16417 lt_prog_compiler_pic_GCJ='-fpic'
16418 lt_prog_compiler_static_GCJ='-static'
16420 ccc*)
16421 lt_prog_compiler_wl_GCJ='-Wl,'
16422 # All Alpha code is PIC.
16423 lt_prog_compiler_static_GCJ='-non_shared'
16425 esac
16428 osf3* | osf4* | osf5*)
16429 lt_prog_compiler_wl_GCJ='-Wl,'
16430 # All OSF/1 code is PIC.
16431 lt_prog_compiler_static_GCJ='-non_shared'
16434 sco3.2v5*)
16435 lt_prog_compiler_pic_GCJ='-Kpic'
16436 lt_prog_compiler_static_GCJ='-dn'
16439 solaris*)
16440 lt_prog_compiler_pic_GCJ='-KPIC'
16441 lt_prog_compiler_static_GCJ='-Bstatic'
16442 case $cc_basename in
16443 f77* | f90* | f95*)
16444 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16446 lt_prog_compiler_wl_GCJ='-Wl,';;
16447 esac
16450 sunos4*)
16451 lt_prog_compiler_wl_GCJ='-Qoption ld '
16452 lt_prog_compiler_pic_GCJ='-PIC'
16453 lt_prog_compiler_static_GCJ='-Bstatic'
16456 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16457 lt_prog_compiler_wl_GCJ='-Wl,'
16458 lt_prog_compiler_pic_GCJ='-KPIC'
16459 lt_prog_compiler_static_GCJ='-Bstatic'
16462 sysv4*MP*)
16463 if test -d /usr/nec ;then
16464 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16465 lt_prog_compiler_static_GCJ='-Bstatic'
16469 unicos*)
16470 lt_prog_compiler_wl_GCJ='-Wl,'
16471 lt_prog_compiler_can_build_shared_GCJ=no
16474 uts4*)
16475 lt_prog_compiler_pic_GCJ='-pic'
16476 lt_prog_compiler_static_GCJ='-Bstatic'
16480 lt_prog_compiler_can_build_shared_GCJ=no
16482 esac
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16486 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16489 # Check to make sure the PIC flag actually works.
16491 if test -n "$lt_prog_compiler_pic_GCJ"; then
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16494 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16495 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then :
16496 $as_echo_n "(cached) " >&6
16497 else
16498 lt_prog_compiler_pic_works_GCJ=no
16499 ac_outfile=conftest.$ac_objext
16500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16501 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16502 # Insert the option either (1) after the last *FLAGS variable, or
16503 # (2) before a word containing "conftest.", or (3) at the end.
16504 # Note that $ac_compile itself does not contain backslashes and begins
16505 # with a dollar sign (not a hyphen), so the echo should work correctly.
16506 # The option is referenced via a variable to avoid confusing sed.
16507 lt_compile=`echo "$ac_compile" | $SED \
16508 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16510 -e 's:$: $lt_compiler_flag:'`
16511 (eval echo "\"\$as_me:16511: $lt_compile\"" >&5)
16512 (eval "$lt_compile" 2>conftest.err)
16513 ac_status=$?
16514 cat conftest.err >&5
16515 echo "$as_me:16515: \$? = $ac_status" >&5
16516 if (exit $ac_status) && test -s "$ac_outfile"; then
16517 # The compiler can only warn and ignore the option if not recognized
16518 # So say no if there are warnings other than the usual output.
16519 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16520 $SED '/^$/d' conftest.err >conftest.er2
16521 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16522 lt_prog_compiler_pic_works_GCJ=yes
16525 $rm conftest*
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16529 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16531 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16532 case $lt_prog_compiler_pic_GCJ in
16533 "" | " "*) ;;
16534 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16535 esac
16536 else
16537 lt_prog_compiler_pic_GCJ=
16538 lt_prog_compiler_can_build_shared_GCJ=no
16542 case "$host_os" in
16543 # For platforms which do not support PIC, -DPIC is meaningless:
16544 *djgpp*)
16545 lt_prog_compiler_pic_GCJ=
16548 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16550 esac
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16553 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16554 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
16555 $as_echo_n "(cached) " >&6
16556 else
16557 lt_cv_prog_compiler_c_o_GCJ=no
16558 $rm -r conftest 2>/dev/null
16559 mkdir conftest
16560 cd conftest
16561 mkdir out
16562 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16564 lt_compiler_flag="-o out/conftest2.$ac_objext"
16565 # Insert the option either (1) after the last *FLAGS variable, or
16566 # (2) before a word containing "conftest.", or (3) at the end.
16567 # Note that $ac_compile itself does not contain backslashes and begins
16568 # with a dollar sign (not a hyphen), so the echo should work correctly.
16569 lt_compile=`echo "$ac_compile" | $SED \
16570 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16572 -e 's:$: $lt_compiler_flag:'`
16573 (eval echo "\"\$as_me:16573: $lt_compile\"" >&5)
16574 (eval "$lt_compile" 2>out/conftest.err)
16575 ac_status=$?
16576 cat out/conftest.err >&5
16577 echo "$as_me:16577: \$? = $ac_status" >&5
16578 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16579 then
16580 # The compiler can only warn and ignore the option if not recognized
16581 # So say no if there are warnings
16582 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16583 $SED '/^$/d' out/conftest.err >out/conftest.er2
16584 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16585 lt_cv_prog_compiler_c_o_GCJ=yes
16588 chmod u+w .
16589 $rm conftest*
16590 # SGI C++ compiler will create directory out/ii_files/ for
16591 # template instantiation
16592 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16593 $rm out/* && rmdir out
16594 cd ..
16595 rmdir conftest
16596 $rm conftest*
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16600 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16603 hard_links="nottested"
16604 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16605 # do not overwrite the value of need_locks provided by the user
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16607 $as_echo_n "checking if we can lock with hard links... " >&6; }
16608 hard_links=yes
16609 $rm conftest*
16610 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16611 touch conftest.a
16612 ln conftest.a conftest.b 2>&5 || hard_links=no
16613 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16615 $as_echo "$hard_links" >&6; }
16616 if test "$hard_links" = no; then
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16618 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16619 need_locks=warn
16621 else
16622 need_locks=no
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16626 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16628 runpath_var=
16629 allow_undefined_flag_GCJ=
16630 enable_shared_with_static_runtimes_GCJ=no
16631 archive_cmds_GCJ=
16632 archive_expsym_cmds_GCJ=
16633 old_archive_From_new_cmds_GCJ=
16634 old_archive_from_expsyms_cmds_GCJ=
16635 export_dynamic_flag_spec_GCJ=
16636 whole_archive_flag_spec_GCJ=
16637 thread_safe_flag_spec_GCJ=
16638 hardcode_libdir_flag_spec_GCJ=
16639 hardcode_libdir_flag_spec_ld_GCJ=
16640 hardcode_libdir_separator_GCJ=
16641 hardcode_direct_GCJ=no
16642 hardcode_minus_L_GCJ=no
16643 hardcode_shlibpath_var_GCJ=unsupported
16644 link_all_deplibs_GCJ=unknown
16645 hardcode_automatic_GCJ=no
16646 module_cmds_GCJ=
16647 module_expsym_cmds_GCJ=
16648 always_export_symbols_GCJ=no
16649 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16650 # include_expsyms should be a list of space-separated symbols to be *always*
16651 # included in the symbol list
16652 include_expsyms_GCJ=
16653 # exclude_expsyms can be an extended regexp of symbols to exclude
16654 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16655 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16656 # as well as any symbol that contains `d'.
16657 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16658 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16659 # platforms (ab)use it in PIC code, but their linkers get confused if
16660 # the symbol is explicitly referenced. Since portable code cannot
16661 # rely on this symbol name, it's probably fine to never include it in
16662 # preloaded symbol tables.
16663 extract_expsyms_cmds=
16664 # Just being paranoid about ensuring that cc_basename is set.
16665 for cc_temp in $compiler""; do
16666 case $cc_temp in
16667 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16668 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16669 \-*) ;;
16670 *) break;;
16671 esac
16672 done
16673 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16675 case $host_os in
16676 cygwin* | mingw* | pw32*)
16677 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16678 # When not using gcc, we currently assume that we are using
16679 # Microsoft Visual C++.
16680 if test "$GCC" != yes; then
16681 with_gnu_ld=no
16684 openbsd*)
16685 with_gnu_ld=no
16687 esac
16689 ld_shlibs_GCJ=yes
16690 if test "$with_gnu_ld" = yes; then
16691 # If archive_cmds runs LD, not CC, wlarc should be empty
16692 wlarc='${wl}'
16694 # Set some defaults for GNU ld with shared library support. These
16695 # are reset later if shared libraries are not supported. Putting them
16696 # here allows them to be overridden if necessary.
16697 runpath_var=LD_RUN_PATH
16698 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16699 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16700 # ancient GNU ld didn't support --whole-archive et. al.
16701 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16702 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16703 else
16704 whole_archive_flag_spec_GCJ=
16706 supports_anon_versioning=no
16707 case `$LD -v 2>/dev/null` in
16708 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16709 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16710 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16711 *\ 2.11.*) ;; # other 2.11 versions
16712 *) supports_anon_versioning=yes ;;
16713 esac
16715 # See if GNU ld supports shared libraries.
16716 case $host_os in
16717 aix3* | aix4* | aix5*)
16718 # On AIX/PPC, the GNU linker is very broken
16719 if test "$host_cpu" != ia64; then
16720 ld_shlibs_GCJ=no
16721 cat <<EOF 1>&2
16723 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16724 *** to be unable to reliably create shared libraries on AIX.
16725 *** Therefore, libtool is disabling shared libraries support. If you
16726 *** really care for shared libraries, you may want to modify your PATH
16727 *** so that a non-GNU linker is found, and then restart.
16733 amigaos*)
16734 archive_cmds_GCJ='$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)'
16735 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16736 hardcode_minus_L_GCJ=yes
16738 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16739 # that the semantics of dynamic libraries on AmigaOS, at least up
16740 # to version 4, is to share data among multiple programs linked
16741 # with the same dynamic library. Since this doesn't match the
16742 # behavior of shared libraries on other platforms, we can't use
16743 # them.
16744 ld_shlibs_GCJ=no
16747 beos*)
16748 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16749 allow_undefined_flag_GCJ=unsupported
16750 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16751 # support --undefined. This deserves some investigation. FIXME
16752 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16753 else
16754 ld_shlibs_GCJ=no
16758 cygwin* | mingw* | pw32*)
16759 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16760 # as there is no search path for DLLs.
16761 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16762 allow_undefined_flag_GCJ=unsupported
16763 always_export_symbols_GCJ=no
16764 enable_shared_with_static_runtimes_GCJ=yes
16765 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16767 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16768 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16769 # If the export-symbols file already is a .def file (1st line
16770 # is EXPORTS), use it as is; otherwise, prepend...
16771 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16772 cp $export_symbols $output_objdir/$soname.def;
16773 else
16774 echo EXPORTS > $output_objdir/$soname.def;
16775 cat $export_symbols >> $output_objdir/$soname.def;
16777 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16778 else
16779 ld_shlibs_GCJ=no
16783 linux*)
16784 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16785 tmp_addflag=
16786 case $cc_basename,$host_cpu in
16787 pgcc*) # Portland Group C compiler
16788 whole_archive_flag_spec_GCJ=
16790 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16791 whole_archive_flag_spec_GCJ=
16792 tmp_addflag=' -fpic -Mnomain' ;;
16793 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16794 tmp_addflag=' -i_dynamic' ;;
16795 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16796 tmp_addflag=' -i_dynamic -nofor_main' ;;
16797 ifc* | ifort*) # Intel Fortran compiler
16798 tmp_addflag=' -nofor_main' ;;
16799 esac
16800 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16802 if test $supports_anon_versioning = yes; then
16803 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16804 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16805 $echo "local: *; };" >> $output_objdir/$libname.ver~
16806 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16808 else
16809 ld_shlibs_GCJ=no
16813 netbsd*)
16814 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16815 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16816 wlarc=
16817 else
16818 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16819 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16823 solaris* | sysv5*)
16824 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16825 ld_shlibs_GCJ=no
16826 cat <<EOF 1>&2
16828 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16829 *** create shared libraries on Solaris systems. Therefore, libtool
16830 *** is disabling shared libraries support. We urge you to upgrade GNU
16831 *** binutils to release 2.9.1 or newer. Another option is to modify
16832 *** your PATH or compiler configuration so that the native linker is
16833 *** used, and then restart.
16836 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16837 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16838 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16839 else
16840 ld_shlibs_GCJ=no
16844 sunos4*)
16845 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16846 wlarc=
16847 hardcode_direct_GCJ=yes
16848 hardcode_shlibpath_var_GCJ=no
16852 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16853 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16854 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16855 else
16856 ld_shlibs_GCJ=no
16859 esac
16861 if test "$ld_shlibs_GCJ" = no; then
16862 runpath_var=
16863 hardcode_libdir_flag_spec_GCJ=
16864 export_dynamic_flag_spec_GCJ=
16865 whole_archive_flag_spec_GCJ=
16867 else
16868 # PORTME fill in a description of your system's linker (not GNU ld)
16869 case $host_os in
16870 aix3*)
16871 allow_undefined_flag_GCJ=unsupported
16872 always_export_symbols_GCJ=yes
16873 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16874 # Note: this linker hardcodes the directories in LIBPATH if there
16875 # are no directories specified by -L.
16876 hardcode_minus_L_GCJ=yes
16877 if test "$GCC" = yes && test -z "$link_static_flag"; then
16878 # Neither direct hardcoding nor static linking is supported with a
16879 # broken collect2.
16880 hardcode_direct_GCJ=unsupported
16884 aix4* | aix5*)
16885 if test "$host_cpu" = ia64; then
16886 # On IA64, the linker does run time linking by default, so we don't
16887 # have to do anything special.
16888 aix_use_runtimelinking=no
16889 exp_sym_flag='-Bexport'
16890 no_entry_flag=""
16891 else
16892 # If we're using GNU nm, then we don't want the "-C" option.
16893 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16894 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16895 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16896 else
16897 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16899 aix_use_runtimelinking=no
16901 # Test if we are trying to use run time linking or normal
16902 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16903 # need to do runtime linking.
16904 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16905 for ld_flag in $LDFLAGS; do
16906 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16907 aix_use_runtimelinking=yes
16908 break
16910 done
16911 esac
16913 exp_sym_flag='-bexport'
16914 no_entry_flag='-bnoentry'
16917 # When large executables or shared objects are built, AIX ld can
16918 # have problems creating the table of contents. If linking a library
16919 # or program results in "error TOC overflow" add -mminimal-toc to
16920 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16921 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16923 archive_cmds_GCJ=''
16924 hardcode_direct_GCJ=yes
16925 hardcode_libdir_separator_GCJ=':'
16926 link_all_deplibs_GCJ=yes
16928 if test "$GCC" = yes; then
16929 case $host_os in aix4.[012]|aix4.[012].*)
16930 # We only want to do this on AIX 4.2 and lower, the check
16931 # below for broken collect2 doesn't work under 4.3+
16932 collect2name=`${CC} -print-prog-name=collect2`
16933 if test -f "$collect2name" && \
16934 strings "$collect2name" | grep resolve_lib_name >/dev/null
16935 then
16936 # We have reworked collect2
16937 hardcode_direct_GCJ=yes
16938 else
16939 # We have old collect2
16940 hardcode_direct_GCJ=unsupported
16941 # It fails to find uninstalled libraries when the uninstalled
16942 # path is not listed in the libpath. Setting hardcode_minus_L
16943 # to unsupported forces relinking
16944 hardcode_minus_L_GCJ=yes
16945 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16946 hardcode_libdir_separator_GCJ=
16948 esac
16949 shared_flag='-shared'
16950 if test "$aix_use_runtimelinking" = yes; then
16951 shared_flag="$shared_flag "'${wl}-G'
16953 else
16954 # not using gcc
16955 if test "$host_cpu" = ia64; then
16956 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16957 # chokes on -Wl,-G. The following line is correct:
16958 shared_flag='-G'
16959 else
16960 if test "$aix_use_runtimelinking" = yes; then
16961 shared_flag='${wl}-G'
16962 else
16963 shared_flag='${wl}-bM:SRE'
16968 # It seems that -bexpall does not export symbols beginning with
16969 # underscore (_), so it is better to generate a list of symbols to export.
16970 always_export_symbols_GCJ=yes
16971 if test "$aix_use_runtimelinking" = yes; then
16972 # Warning - without using the other runtime loading flags (-brtl),
16973 # -berok will link without error, but may produce a broken library.
16974 allow_undefined_flag_GCJ='-berok'
16975 # Determine the default libpath from the value encoded in an empty executable.
16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h. */
16980 main ()
16984 return 0;
16986 _ACEOF
16987 if ac_fn_c_try_link "$LINENO"; then :
16989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16991 # Check for a 64-bit object if we didn't find anything.
16992 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16993 }'`; fi
16995 rm -f core conftest.err conftest.$ac_objext \
16996 conftest$ac_exeext conftest.$ac_ext
16997 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16999 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17000 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17001 else
17002 if test "$host_cpu" = ia64; then
17003 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17004 allow_undefined_flag_GCJ="-z nodefs"
17005 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17006 else
17007 # Determine the default libpath from the value encoded in an empty executable.
17008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17009 /* end confdefs.h. */
17012 main ()
17016 return 0;
17018 _ACEOF
17019 if ac_fn_c_try_link "$LINENO"; then :
17021 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17023 # Check for a 64-bit object if we didn't find anything.
17024 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17025 }'`; fi
17027 rm -f core conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext conftest.$ac_ext
17029 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17031 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17032 # Warning - without using the other run time loading flags,
17033 # -berok will link without error, but may produce a broken library.
17034 no_undefined_flag_GCJ=' ${wl}-bernotok'
17035 allow_undefined_flag_GCJ=' ${wl}-berok'
17036 # -bexpall does not export symbols beginning with underscore (_)
17037 always_export_symbols_GCJ=yes
17038 # Exported symbols can be pulled into shared objects from archives
17039 whole_archive_flag_spec_GCJ=' '
17040 archive_cmds_need_lc_GCJ=yes
17041 # This is similar to how AIX traditionally builds it's shared libraries.
17042 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17047 amigaos*)
17048 archive_cmds_GCJ='$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)'
17049 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17050 hardcode_minus_L_GCJ=yes
17051 # see comment about different semantics on the GNU ld section
17052 ld_shlibs_GCJ=no
17055 bsdi[45]*)
17056 export_dynamic_flag_spec_GCJ=-rdynamic
17059 cygwin* | mingw* | pw32*)
17060 # When not using gcc, we currently assume that we are using
17061 # Microsoft Visual C++.
17062 # hardcode_libdir_flag_spec is actually meaningless, as there is
17063 # no search path for DLLs.
17064 hardcode_libdir_flag_spec_GCJ=' '
17065 allow_undefined_flag_GCJ=unsupported
17066 # Tell ltmain to make .lib files, not .a files.
17067 libext=lib
17068 # Tell ltmain to make .dll files, not .so files.
17069 shrext_cmds=".dll"
17070 # FIXME: Setting linknames here is a bad hack.
17071 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17072 # The linker will automatically build a .lib file if we build a DLL.
17073 old_archive_From_new_cmds_GCJ='true'
17074 # FIXME: Should let the user specify the lib program.
17075 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17076 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17077 enable_shared_with_static_runtimes_GCJ=yes
17080 darwin* | rhapsody*)
17081 case "$host_os" in
17082 rhapsody* | darwin1.[012])
17083 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17085 *) # Darwin 1.3 on
17086 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17087 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17088 else
17089 case ${MACOSX_DEPLOYMENT_TARGET} in
17090 10.[012])
17091 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17093 10.*)
17094 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17096 esac
17099 esac
17100 archive_cmds_need_lc_GCJ=no
17101 hardcode_direct_GCJ=no
17102 hardcode_automatic_GCJ=yes
17103 hardcode_shlibpath_var_GCJ=unsupported
17104 whole_archive_flag_spec_GCJ=''
17105 link_all_deplibs_GCJ=yes
17106 if test "$GCC" = yes ; then
17107 output_verbose_link_cmd='echo'
17108 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17109 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17110 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17111 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17112 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17113 else
17114 case $cc_basename in
17115 xlc*)
17116 output_verbose_link_cmd='echo'
17117 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17118 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17119 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17120 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17121 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17124 ld_shlibs_GCJ=no
17126 esac
17130 dgux*)
17131 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17132 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17133 hardcode_shlibpath_var_GCJ=no
17136 freebsd1*)
17137 ld_shlibs_GCJ=no
17140 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17141 # support. Future versions do this automatically, but an explicit c++rt0.o
17142 # does not break anything, and helps significantly (at the cost of a little
17143 # extra space).
17144 freebsd2.2*)
17145 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17146 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17147 hardcode_direct_GCJ=yes
17148 hardcode_shlibpath_var_GCJ=no
17151 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17152 freebsd2*)
17153 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17154 hardcode_direct_GCJ=yes
17155 hardcode_minus_L_GCJ=yes
17156 hardcode_shlibpath_var_GCJ=no
17159 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17160 freebsd* | kfreebsd*-gnu | dragonfly*)
17161 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17162 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17163 hardcode_direct_GCJ=yes
17164 hardcode_shlibpath_var_GCJ=no
17167 hpux9*)
17168 if test "$GCC" = yes; then
17169 archive_cmds_GCJ='$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'
17170 else
17171 archive_cmds_GCJ='$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'
17173 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17174 hardcode_libdir_separator_GCJ=:
17175 hardcode_direct_GCJ=yes
17177 # hardcode_minus_L: Not really in the search PATH,
17178 # but as the default location of the library.
17179 hardcode_minus_L_GCJ=yes
17180 export_dynamic_flag_spec_GCJ='${wl}-E'
17183 hpux10* | hpux11*)
17184 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17185 case "$host_cpu" in
17186 hppa*64*|ia64*)
17187 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17190 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17192 esac
17193 else
17194 case "$host_cpu" in
17195 hppa*64*|ia64*)
17196 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17199 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17201 esac
17203 if test "$with_gnu_ld" = no; then
17204 case "$host_cpu" in
17205 hppa*64*)
17206 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17207 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17208 hardcode_libdir_separator_GCJ=:
17209 hardcode_direct_GCJ=no
17210 hardcode_shlibpath_var_GCJ=no
17212 ia64*)
17213 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17214 hardcode_direct_GCJ=no
17215 hardcode_shlibpath_var_GCJ=no
17217 # hardcode_minus_L: Not really in the search PATH,
17218 # but as the default location of the library.
17219 hardcode_minus_L_GCJ=yes
17222 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17223 hardcode_libdir_separator_GCJ=:
17224 hardcode_direct_GCJ=yes
17225 export_dynamic_flag_spec_GCJ='${wl}-E'
17227 # hardcode_minus_L: Not really in the search PATH,
17228 # but as the default location of the library.
17229 hardcode_minus_L_GCJ=yes
17231 esac
17235 irix5* | irix6* | nonstopux*)
17236 if test "$GCC" = yes; then
17237 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17238 else
17239 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17240 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17242 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17243 hardcode_libdir_separator_GCJ=:
17244 link_all_deplibs_GCJ=yes
17247 netbsd*)
17248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17249 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17250 else
17251 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17253 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17254 hardcode_direct_GCJ=yes
17255 hardcode_shlibpath_var_GCJ=no
17258 newsos6)
17259 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17260 hardcode_direct_GCJ=yes
17261 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17262 hardcode_libdir_separator_GCJ=:
17263 hardcode_shlibpath_var_GCJ=no
17266 openbsd*)
17267 hardcode_direct_GCJ=yes
17268 hardcode_shlibpath_var_GCJ=no
17269 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17270 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17271 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17272 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17273 export_dynamic_flag_spec_GCJ='${wl}-E'
17274 else
17275 case $host_os in
17276 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17277 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17278 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17281 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17282 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17284 esac
17288 os2*)
17289 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17290 hardcode_minus_L_GCJ=yes
17291 allow_undefined_flag_GCJ=unsupported
17292 archive_cmds_GCJ='$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'
17293 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17296 osf3*)
17297 if test "$GCC" = yes; then
17298 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17299 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17300 else
17301 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17302 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17304 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17305 hardcode_libdir_separator_GCJ=:
17308 osf4* | osf5*) # as osf3* with the addition of -msym flag
17309 if test "$GCC" = yes; then
17310 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17311 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17312 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17313 else
17314 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17315 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17316 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17317 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17319 # Both c and cxx compiler support -rpath directly
17320 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17322 hardcode_libdir_separator_GCJ=:
17325 sco3.2v5*)
17326 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17327 hardcode_shlibpath_var_GCJ=no
17328 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17329 runpath_var=LD_RUN_PATH
17330 hardcode_runpath_var=yes
17333 solaris*)
17334 no_undefined_flag_GCJ=' -z text'
17335 if test "$GCC" = yes; then
17336 wlarc='${wl}'
17337 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17338 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17339 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17340 else
17341 wlarc=''
17342 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17343 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17344 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17346 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17347 hardcode_shlibpath_var_GCJ=no
17348 case $host_os in
17349 solaris2.[0-5] | solaris2.[0-5].*) ;;
17351 # The compiler driver will combine linker options so we
17352 # cannot just pass the convience library names through
17353 # without $wl, iff we do not link with $LD.
17354 # Luckily, gcc supports the same syntax we need for Sun Studio.
17355 # Supported since Solaris 2.6 (maybe 2.5.1?)
17356 case $wlarc in
17358 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17360 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17361 esac ;;
17362 esac
17363 link_all_deplibs_GCJ=yes
17366 sunos4*)
17367 if test "x$host_vendor" = xsequent; then
17368 # Use $CC to link under sequent, because it throws in some extra .o
17369 # files that make .init and .fini sections work.
17370 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17371 else
17372 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17374 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17375 hardcode_direct_GCJ=yes
17376 hardcode_minus_L_GCJ=yes
17377 hardcode_shlibpath_var_GCJ=no
17380 sysv4)
17381 case $host_vendor in
17382 sni)
17383 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17384 hardcode_direct_GCJ=yes # is this really true???
17386 siemens)
17387 ## LD is ld it makes a PLAMLIB
17388 ## CC just makes a GrossModule.
17389 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17390 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17391 hardcode_direct_GCJ=no
17393 motorola)
17394 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17395 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17397 esac
17398 runpath_var='LD_RUN_PATH'
17399 hardcode_shlibpath_var_GCJ=no
17402 sysv4.3*)
17403 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17404 hardcode_shlibpath_var_GCJ=no
17405 export_dynamic_flag_spec_GCJ='-Bexport'
17408 sysv4*MP*)
17409 if test -d /usr/nec; then
17410 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17411 hardcode_shlibpath_var_GCJ=no
17412 runpath_var=LD_RUN_PATH
17413 hardcode_runpath_var=yes
17414 ld_shlibs_GCJ=yes
17418 sysv4.2uw2*)
17419 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17420 hardcode_direct_GCJ=yes
17421 hardcode_minus_L_GCJ=no
17422 hardcode_shlibpath_var_GCJ=no
17423 hardcode_runpath_var=yes
17424 runpath_var=LD_RUN_PATH
17427 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17428 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17429 if test "$GCC" = yes; then
17430 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17431 else
17432 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17434 runpath_var='LD_RUN_PATH'
17435 hardcode_shlibpath_var_GCJ=no
17438 sysv5*)
17439 no_undefined_flag_GCJ=' -z text'
17440 # $CC -shared without GNU ld will not create a library from C++
17441 # object files and a static libstdc++, better avoid it by now
17442 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17443 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17444 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17445 hardcode_libdir_flag_spec_GCJ=
17446 hardcode_shlibpath_var_GCJ=no
17447 runpath_var='LD_RUN_PATH'
17450 uts4*)
17451 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17452 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17453 hardcode_shlibpath_var_GCJ=no
17457 ld_shlibs_GCJ=no
17459 esac
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17463 $as_echo "$ld_shlibs_GCJ" >&6; }
17464 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17466 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17467 if test "$GCC" = yes; then
17468 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17472 # Do we need to explicitly link libc?
17474 case "x$archive_cmds_need_lc_GCJ" in
17475 x|xyes)
17476 # Assume -lc should be added
17477 archive_cmds_need_lc_GCJ=yes
17479 if test "$enable_shared" = yes && test "$GCC" = yes; then
17480 case $archive_cmds_GCJ in
17481 *'~'*)
17482 # FIXME: we may have to deal with multi-command sequences.
17484 '$CC '*)
17485 # Test whether the compiler implicitly links with -lc since on some
17486 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17487 # to ld, don't add -lc before -lgcc.
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17489 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17490 $rm conftest*
17491 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17494 (eval $ac_compile) 2>&5
17495 ac_status=$?
17496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17497 test $ac_status = 0; } 2>conftest.err; then
17498 soname=conftest
17499 lib=conftest
17500 libobjs=conftest.$ac_objext
17501 deplibs=
17502 wl=$lt_prog_compiler_wl_GCJ
17503 compiler_flags=-v
17504 linker_flags=-v
17505 verstring=
17506 output_objdir=.
17507 libname=conftest
17508 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17509 allow_undefined_flag_GCJ=
17510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17511 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17512 ac_status=$?
17513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17514 test $ac_status = 0; }
17515 then
17516 archive_cmds_need_lc_GCJ=no
17517 else
17518 archive_cmds_need_lc_GCJ=yes
17520 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17521 else
17522 cat conftest.err 1>&5
17524 $rm conftest*
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17526 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17528 esac
17531 esac
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17534 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17535 library_names_spec=
17536 libname_spec='lib$name'
17537 soname_spec=
17538 shrext_cmds=".so"
17539 postinstall_cmds=
17540 postuninstall_cmds=
17541 finish_cmds=
17542 finish_eval=
17543 shlibpath_var=
17544 shlibpath_overrides_runpath=unknown
17545 version_type=none
17546 dynamic_linker="$host_os ld.so"
17547 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17548 if test "$GCC" = yes; then
17549 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17550 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17551 # if the path contains ";" then we assume it to be the separator
17552 # otherwise default to the standard path separator (i.e. ":") - it is
17553 # assumed that no part of a normal pathname contains ";" but that should
17554 # okay in the real world where ";" in dirpaths is itself problematic.
17555 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17556 else
17557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17559 else
17560 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17562 need_lib_prefix=unknown
17563 hardcode_into_libs=no
17565 # when you set need_version to no, make sure it does not cause -set_version
17566 # flags to be left without arguments
17567 need_version=unknown
17569 case $host_os in
17570 aix3*)
17571 version_type=linux
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17573 shlibpath_var=LIBPATH
17575 # AIX 3 has no versioning support, so we append a major version to the name.
17576 soname_spec='${libname}${release}${shared_ext}$major'
17579 aix4* | aix5*)
17580 version_type=linux
17581 need_lib_prefix=no
17582 need_version=no
17583 hardcode_into_libs=yes
17584 if test "$host_cpu" = ia64; then
17585 # AIX 5 supports IA64
17586 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17587 shlibpath_var=LD_LIBRARY_PATH
17588 else
17589 # With GCC up to 2.95.x, collect2 would create an import file
17590 # for dependence libraries. The import file would start with
17591 # the line `#! .'. This would cause the generated library to
17592 # depend on `.', always an invalid library. This was fixed in
17593 # development snapshots of GCC prior to 3.0.
17594 case $host_os in
17595 aix4 | aix4.[01] | aix4.[01].*)
17596 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17597 echo ' yes '
17598 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17600 else
17601 can_build_shared=no
17604 esac
17605 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17606 # soname into executable. Probably we can add versioning support to
17607 # collect2, so additional links can be useful in future.
17608 if test "$aix_use_runtimelinking" = yes; then
17609 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17610 # instead of lib<name>.a to let people know that these are not
17611 # typical AIX shared libraries.
17612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17613 else
17614 # We preserve .a as extension for shared libraries through AIX4.2
17615 # and later when we are not doing run time linking.
17616 library_names_spec='${libname}${release}.a $libname.a'
17617 soname_spec='${libname}${release}${shared_ext}$major'
17619 shlibpath_var=LIBPATH
17623 amigaos*)
17624 library_names_spec='$libname.ixlibrary $libname.a'
17625 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17626 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'
17629 beos*)
17630 library_names_spec='${libname}${shared_ext}'
17631 dynamic_linker="$host_os ld.so"
17632 shlibpath_var=LIBRARY_PATH
17635 bsdi[45]*)
17636 version_type=linux
17637 need_version=no
17638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17639 soname_spec='${libname}${release}${shared_ext}$major'
17640 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17641 shlibpath_var=LD_LIBRARY_PATH
17642 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17643 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17644 # the default ld.so.conf also contains /usr/contrib/lib and
17645 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17646 # libtool to hard-code these into programs
17649 cygwin* | mingw* | pw32*)
17650 version_type=windows
17651 shrext_cmds=".dll"
17652 need_version=no
17653 need_lib_prefix=no
17655 case $GCC,$host_os in
17656 yes,cygwin* | yes,mingw* | yes,pw32*)
17657 library_names_spec='$libname.dll.a'
17658 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17659 postinstall_cmds='base_file=`basename \${file}`~
17660 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17661 dldir=$destdir/`dirname \$dlpath`~
17662 test -d \$dldir || mkdir -p \$dldir~
17663 $install_prog $dir/$dlname \$dldir/$dlname'
17664 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17665 dlpath=$dir/\$dldll~
17666 $rm \$dlpath'
17667 shlibpath_overrides_runpath=yes
17669 case $host_os in
17670 cygwin*)
17671 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17672 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17673 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17675 mingw*)
17676 # MinGW DLLs use traditional 'lib' prefix
17677 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17678 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17679 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17680 # It is most probably a Windows format PATH printed by
17681 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17682 # path with ; separators, and with drive letters. We can handle the
17683 # drive letters (cygwin fileutils understands them), so leave them,
17684 # especially as we might pass files found there to a mingw objdump,
17685 # which wouldn't understand a cygwinified path. Ahh.
17686 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17687 else
17688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17691 pw32*)
17692 # pw32 DLLs use 'pw' prefix rather than 'lib'
17693 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17695 esac
17699 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17701 esac
17702 dynamic_linker='Win32 ld.exe'
17703 # FIXME: first we should search . and the directory the executable is in
17704 shlibpath_var=PATH
17707 darwin* | rhapsody*)
17708 dynamic_linker="$host_os dyld"
17709 version_type=darwin
17710 need_lib_prefix=no
17711 need_version=no
17712 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17713 soname_spec='${libname}${release}${major}$shared_ext'
17714 shlibpath_overrides_runpath=yes
17715 shlibpath_var=DYLD_LIBRARY_PATH
17716 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17717 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17718 if test "$GCC" = yes; then
17719 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17720 else
17721 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17723 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17726 dgux*)
17727 version_type=linux
17728 need_lib_prefix=no
17729 need_version=no
17730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17731 soname_spec='${libname}${release}${shared_ext}$major'
17732 shlibpath_var=LD_LIBRARY_PATH
17735 freebsd1*)
17736 dynamic_linker=no
17739 kfreebsd*-gnu)
17740 version_type=linux
17741 need_lib_prefix=no
17742 need_version=no
17743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17744 soname_spec='${libname}${release}${shared_ext}$major'
17745 shlibpath_var=LD_LIBRARY_PATH
17746 shlibpath_overrides_runpath=no
17747 hardcode_into_libs=yes
17748 dynamic_linker='GNU ld.so'
17751 freebsd* | dragonfly*)
17752 # DragonFly does not have aout. When/if they implement a new
17753 # versioning mechanism, adjust this.
17754 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17755 version_type=freebsd-$objformat
17756 case $version_type in
17757 freebsd-elf*)
17758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17759 need_version=no
17760 need_lib_prefix=no
17762 freebsd-*)
17763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17764 need_version=yes
17766 esac
17767 shlibpath_var=LD_LIBRARY_PATH
17768 case $host_os in
17769 freebsd2*)
17770 shlibpath_overrides_runpath=yes
17772 freebsd3.[01]* | freebsdelf3.[01]*)
17773 shlibpath_overrides_runpath=yes
17774 hardcode_into_libs=yes
17776 *) # from 3.2 on
17777 shlibpath_overrides_runpath=no
17778 hardcode_into_libs=yes
17780 esac
17783 gnu*)
17784 version_type=linux
17785 need_lib_prefix=no
17786 need_version=no
17787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17788 soname_spec='${libname}${release}${shared_ext}$major'
17789 shlibpath_var=LD_LIBRARY_PATH
17790 hardcode_into_libs=yes
17793 hpux9* | hpux10* | hpux11*)
17794 # Give a soname corresponding to the major version so that dld.sl refuses to
17795 # link against other versions.
17796 version_type=sunos
17797 need_lib_prefix=no
17798 need_version=no
17799 case "$host_cpu" in
17800 ia64*)
17801 shrext_cmds='.so'
17802 hardcode_into_libs=yes
17803 dynamic_linker="$host_os dld.so"
17804 shlibpath_var=LD_LIBRARY_PATH
17805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17807 soname_spec='${libname}${release}${shared_ext}$major'
17808 if test "X$HPUX_IA64_MODE" = X32; then
17809 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17810 else
17811 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17813 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17815 hppa*64*)
17816 shrext_cmds='.sl'
17817 hardcode_into_libs=yes
17818 dynamic_linker="$host_os dld.sl"
17819 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17820 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17822 soname_spec='${libname}${release}${shared_ext}$major'
17823 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17827 shrext_cmds='.sl'
17828 dynamic_linker="$host_os dld.sl"
17829 shlibpath_var=SHLIB_PATH
17830 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17832 soname_spec='${libname}${release}${shared_ext}$major'
17834 esac
17835 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17836 postinstall_cmds='chmod 555 $lib'
17839 irix5* | irix6* | nonstopux*)
17840 case $host_os in
17841 nonstopux*) version_type=nonstopux ;;
17843 if test "$lt_cv_prog_gnu_ld" = yes; then
17844 version_type=linux
17845 else
17846 version_type=irix
17847 fi ;;
17848 esac
17849 need_lib_prefix=no
17850 need_version=no
17851 soname_spec='${libname}${release}${shared_ext}$major'
17852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17853 case $host_os in
17854 irix5* | nonstopux*)
17855 libsuff= shlibsuff=
17858 case $LD in # libtool.m4 will add one of these switches to LD
17859 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17860 libsuff= shlibsuff= libmagic=32-bit;;
17861 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17862 libsuff=32 shlibsuff=N32 libmagic=N32;;
17863 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17864 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17865 *) libsuff= shlibsuff= libmagic=never-match;;
17866 esac
17868 esac
17869 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17870 shlibpath_overrides_runpath=no
17871 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17872 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17873 hardcode_into_libs=yes
17876 # No shared lib support for Linux oldld, aout, or coff.
17877 linux*oldld* | linux*aout* | linux*coff*)
17878 dynamic_linker=no
17881 # This must be Linux ELF.
17882 linux*)
17883 version_type=linux
17884 need_lib_prefix=no
17885 need_version=no
17886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17887 soname_spec='${libname}${release}${shared_ext}$major'
17888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17889 shlibpath_var=LD_LIBRARY_PATH
17890 shlibpath_overrides_runpath=no
17891 # This implies no fast_install, which is unacceptable.
17892 # Some rework will be needed to allow for fast_install
17893 # before this can be enabled.
17894 hardcode_into_libs=yes
17896 # find out which ABI we are using
17897 libsuff=
17898 case "$host_cpu" in
17899 x86_64*|s390x*|powerpc64*)
17900 echo '#line 17900 "configure"' > conftest.$ac_ext
17901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17902 (eval $ac_compile) 2>&5
17903 ac_status=$?
17904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17905 test $ac_status = 0; }; then
17906 case `/usr/bin/file conftest.$ac_objext` in
17907 *64-bit*)
17908 libsuff=64
17909 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17911 esac
17913 rm -rf conftest*
17915 esac
17917 # Append ld.so.conf contents to the search path
17918 if test -f /etc/ld.so.conf; then
17919 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17920 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17923 # We used to test for /lib/ld.so.1 and disable shared libraries on
17924 # powerpc, because MkLinux only supported shared libraries with the
17925 # GNU dynamic linker. Since this was broken with cross compilers,
17926 # most powerpc-linux boxes support dynamic linking these days and
17927 # people can always --disable-shared, the test was removed, and we
17928 # assume the GNU/Linux dynamic linker is in use.
17929 dynamic_linker='GNU/Linux ld.so'
17932 knetbsd*-gnu)
17933 version_type=linux
17934 need_lib_prefix=no
17935 need_version=no
17936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17937 soname_spec='${libname}${release}${shared_ext}$major'
17938 shlibpath_var=LD_LIBRARY_PATH
17939 shlibpath_overrides_runpath=no
17940 hardcode_into_libs=yes
17941 dynamic_linker='GNU ld.so'
17944 netbsd*)
17945 version_type=sunos
17946 need_lib_prefix=no
17947 need_version=no
17948 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17950 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17951 dynamic_linker='NetBSD (a.out) ld.so'
17952 else
17953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17954 soname_spec='${libname}${release}${shared_ext}$major'
17955 dynamic_linker='NetBSD ld.elf_so'
17957 shlibpath_var=LD_LIBRARY_PATH
17958 shlibpath_overrides_runpath=yes
17959 hardcode_into_libs=yes
17962 newsos6)
17963 version_type=linux
17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17965 shlibpath_var=LD_LIBRARY_PATH
17966 shlibpath_overrides_runpath=yes
17969 nto-qnx*)
17970 version_type=linux
17971 need_lib_prefix=no
17972 need_version=no
17973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17974 soname_spec='${libname}${release}${shared_ext}$major'
17975 shlibpath_var=LD_LIBRARY_PATH
17976 shlibpath_overrides_runpath=yes
17979 openbsd*)
17980 version_type=sunos
17981 need_lib_prefix=no
17982 need_version=no
17983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17985 shlibpath_var=LD_LIBRARY_PATH
17986 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17987 case $host_os in
17988 openbsd2.[89] | openbsd2.[89].*)
17989 shlibpath_overrides_runpath=no
17992 shlibpath_overrides_runpath=yes
17994 esac
17995 else
17996 shlibpath_overrides_runpath=yes
18000 os2*)
18001 libname_spec='$name'
18002 shrext_cmds=".dll"
18003 need_lib_prefix=no
18004 library_names_spec='$libname${shared_ext} $libname.a'
18005 dynamic_linker='OS/2 ld.exe'
18006 shlibpath_var=LIBPATH
18009 osf3* | osf4* | osf5*)
18010 version_type=osf
18011 need_lib_prefix=no
18012 need_version=no
18013 soname_spec='${libname}${release}${shared_ext}$major'
18014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015 shlibpath_var=LD_LIBRARY_PATH
18016 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18017 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18020 sco3.2v5*)
18021 version_type=osf
18022 soname_spec='${libname}${release}${shared_ext}$major'
18023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18024 shlibpath_var=LD_LIBRARY_PATH
18027 solaris*)
18028 version_type=linux
18029 need_lib_prefix=no
18030 need_version=no
18031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18032 soname_spec='${libname}${release}${shared_ext}$major'
18033 shlibpath_var=LD_LIBRARY_PATH
18034 shlibpath_overrides_runpath=yes
18035 hardcode_into_libs=yes
18036 # ldd complains unless libraries are executable
18037 postinstall_cmds='chmod +x $lib'
18040 sunos4*)
18041 version_type=sunos
18042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18043 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18044 shlibpath_var=LD_LIBRARY_PATH
18045 shlibpath_overrides_runpath=yes
18046 if test "$with_gnu_ld" = yes; then
18047 need_lib_prefix=no
18049 need_version=yes
18052 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18053 version_type=linux
18054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18055 soname_spec='${libname}${release}${shared_ext}$major'
18056 shlibpath_var=LD_LIBRARY_PATH
18057 case $host_vendor in
18058 sni)
18059 shlibpath_overrides_runpath=no
18060 need_lib_prefix=no
18061 export_dynamic_flag_spec='${wl}-Blargedynsym'
18062 runpath_var=LD_RUN_PATH
18064 siemens)
18065 need_lib_prefix=no
18067 motorola)
18068 need_lib_prefix=no
18069 need_version=no
18070 shlibpath_overrides_runpath=no
18071 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18073 esac
18076 sysv4*MP*)
18077 if test -d /usr/nec ;then
18078 version_type=linux
18079 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18080 soname_spec='$libname${shared_ext}.$major'
18081 shlibpath_var=LD_LIBRARY_PATH
18085 uts4*)
18086 version_type=linux
18087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18088 soname_spec='${libname}${release}${shared_ext}$major'
18089 shlibpath_var=LD_LIBRARY_PATH
18093 dynamic_linker=no
18095 esac
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18097 $as_echo "$dynamic_linker" >&6; }
18098 test "$dynamic_linker" = no && can_build_shared=no
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18101 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18102 hardcode_action_GCJ=
18103 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18104 test -n "$runpath_var_GCJ" || \
18105 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18107 # We can hardcode non-existant directories.
18108 if test "$hardcode_direct_GCJ" != no &&
18109 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18110 # have to relink, otherwise we might link with an installed library
18111 # when we should be linking with a yet-to-be-installed one
18112 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18113 test "$hardcode_minus_L_GCJ" != no; then
18114 # Linking always hardcodes the temporary library directory.
18115 hardcode_action_GCJ=relink
18116 else
18117 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18118 hardcode_action_GCJ=immediate
18120 else
18121 # We cannot hardcode anything, or else we can only hardcode existing
18122 # directories.
18123 hardcode_action_GCJ=unsupported
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18126 $as_echo "$hardcode_action_GCJ" >&6; }
18128 if test "$hardcode_action_GCJ" = relink; then
18129 # Fast installation is not supported
18130 enable_fast_install=no
18131 elif test "$shlibpath_overrides_runpath" = yes ||
18132 test "$enable_shared" = no; then
18133 # Fast installation is not necessary
18134 enable_fast_install=needless
18137 striplib=
18138 old_striplib=
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18140 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18141 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18142 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18143 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18145 $as_echo "yes" >&6; }
18146 else
18147 # FIXME - insert some real tests, host_os isn't really good enough
18148 case $host_os in
18149 darwin*)
18150 if test -n "$STRIP" ; then
18151 striplib="$STRIP -x"
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18153 $as_echo "yes" >&6; }
18154 else
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18156 $as_echo "no" >&6; }
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18161 $as_echo "no" >&6; }
18163 esac
18166 if test "x$enable_dlopen" != xyes; then
18167 enable_dlopen=unknown
18168 enable_dlopen_self=unknown
18169 enable_dlopen_self_static=unknown
18170 else
18171 lt_cv_dlopen=no
18172 lt_cv_dlopen_libs=
18174 case $host_os in
18175 beos*)
18176 lt_cv_dlopen="load_add_on"
18177 lt_cv_dlopen_libs=
18178 lt_cv_dlopen_self=yes
18181 mingw* | pw32*)
18182 lt_cv_dlopen="LoadLibrary"
18183 lt_cv_dlopen_libs=
18186 cygwin*)
18187 lt_cv_dlopen="dlopen"
18188 lt_cv_dlopen_libs=
18191 darwin*)
18192 # if libdl is installed we need to link against it
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18194 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18195 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18196 $as_echo_n "(cached) " >&6
18197 else
18198 ac_check_lib_save_LIBS=$LIBS
18199 LIBS="-ldl $LIBS"
18200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18201 /* end confdefs.h. */
18203 /* Override any GCC internal prototype to avoid an error.
18204 Use char because int might match the return type of a GCC
18205 builtin and then its argument prototype would still apply. */
18206 #ifdef __cplusplus
18207 extern "C"
18208 #endif
18209 char dlopen ();
18211 main ()
18213 return dlopen ();
18215 return 0;
18217 _ACEOF
18218 if ac_fn_c_try_link "$LINENO"; then :
18219 ac_cv_lib_dl_dlopen=yes
18220 else
18221 ac_cv_lib_dl_dlopen=no
18223 rm -f core conftest.err conftest.$ac_objext \
18224 conftest$ac_exeext conftest.$ac_ext
18225 LIBS=$ac_check_lib_save_LIBS
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18228 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18229 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18230 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18231 else
18233 lt_cv_dlopen="dyld"
18234 lt_cv_dlopen_libs=
18235 lt_cv_dlopen_self=yes
18242 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18243 if test "x$ac_cv_func_shl_load" = x""yes; then :
18244 lt_cv_dlopen="shl_load"
18245 else
18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18247 $as_echo_n "checking for shl_load in -ldld... " >&6; }
18248 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
18249 $as_echo_n "(cached) " >&6
18250 else
18251 ac_check_lib_save_LIBS=$LIBS
18252 LIBS="-ldld $LIBS"
18253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18254 /* end confdefs.h. */
18256 /* Override any GCC internal prototype to avoid an error.
18257 Use char because int might match the return type of a GCC
18258 builtin and then its argument prototype would still apply. */
18259 #ifdef __cplusplus
18260 extern "C"
18261 #endif
18262 char shl_load ();
18264 main ()
18266 return shl_load ();
18268 return 0;
18270 _ACEOF
18271 if ac_fn_c_try_link "$LINENO"; then :
18272 ac_cv_lib_dld_shl_load=yes
18273 else
18274 ac_cv_lib_dld_shl_load=no
18276 rm -f core conftest.err conftest.$ac_objext \
18277 conftest$ac_exeext conftest.$ac_ext
18278 LIBS=$ac_check_lib_save_LIBS
18280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18281 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18282 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
18283 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18284 else
18285 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18286 if test "x$ac_cv_func_dlopen" = x""yes; then :
18287 lt_cv_dlopen="dlopen"
18288 else
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18290 $as_echo_n "checking for dlopen in -ldl... " >&6; }
18291 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
18292 $as_echo_n "(cached) " >&6
18293 else
18294 ac_check_lib_save_LIBS=$LIBS
18295 LIBS="-ldl $LIBS"
18296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h. */
18299 /* Override any GCC internal prototype to avoid an error.
18300 Use char because int might match the return type of a GCC
18301 builtin and then its argument prototype would still apply. */
18302 #ifdef __cplusplus
18303 extern "C"
18304 #endif
18305 char dlopen ();
18307 main ()
18309 return dlopen ();
18311 return 0;
18313 _ACEOF
18314 if ac_fn_c_try_link "$LINENO"; then :
18315 ac_cv_lib_dl_dlopen=yes
18316 else
18317 ac_cv_lib_dl_dlopen=no
18319 rm -f core conftest.err conftest.$ac_objext \
18320 conftest$ac_exeext conftest.$ac_ext
18321 LIBS=$ac_check_lib_save_LIBS
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18324 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18325 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
18326 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18327 else
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18329 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
18330 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
18331 $as_echo_n "(cached) " >&6
18332 else
18333 ac_check_lib_save_LIBS=$LIBS
18334 LIBS="-lsvld $LIBS"
18335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18336 /* end confdefs.h. */
18338 /* Override any GCC internal prototype to avoid an error.
18339 Use char because int might match the return type of a GCC
18340 builtin and then its argument prototype would still apply. */
18341 #ifdef __cplusplus
18342 extern "C"
18343 #endif
18344 char dlopen ();
18346 main ()
18348 return dlopen ();
18350 return 0;
18352 _ACEOF
18353 if ac_fn_c_try_link "$LINENO"; then :
18354 ac_cv_lib_svld_dlopen=yes
18355 else
18356 ac_cv_lib_svld_dlopen=no
18358 rm -f core conftest.err conftest.$ac_objext \
18359 conftest$ac_exeext conftest.$ac_ext
18360 LIBS=$ac_check_lib_save_LIBS
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18363 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18364 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18365 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18366 else
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18368 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18369 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18370 $as_echo_n "(cached) " >&6
18371 else
18372 ac_check_lib_save_LIBS=$LIBS
18373 LIBS="-ldld $LIBS"
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18377 /* Override any GCC internal prototype to avoid an error.
18378 Use char because int might match the return type of a GCC
18379 builtin and then its argument prototype would still apply. */
18380 #ifdef __cplusplus
18381 extern "C"
18382 #endif
18383 char dld_link ();
18385 main ()
18387 return dld_link ();
18389 return 0;
18391 _ACEOF
18392 if ac_fn_c_try_link "$LINENO"; then :
18393 ac_cv_lib_dld_dld_link=yes
18394 else
18395 ac_cv_lib_dld_dld_link=no
18397 rm -f core conftest.err conftest.$ac_objext \
18398 conftest$ac_exeext conftest.$ac_ext
18399 LIBS=$ac_check_lib_save_LIBS
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18402 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18403 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18404 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18423 esac
18425 if test "x$lt_cv_dlopen" != xno; then
18426 enable_dlopen=yes
18427 else
18428 enable_dlopen=no
18431 case $lt_cv_dlopen in
18432 dlopen)
18433 save_CPPFLAGS="$CPPFLAGS"
18434 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18436 save_LDFLAGS="$LDFLAGS"
18437 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18439 save_LIBS="$LIBS"
18440 LIBS="$lt_cv_dlopen_libs $LIBS"
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18443 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18444 if test "${lt_cv_dlopen_self+set}" = set; then :
18445 $as_echo_n "(cached) " >&6
18446 else
18447 if test "$cross_compiling" = yes; then :
18448 lt_cv_dlopen_self=cross
18449 else
18450 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18451 lt_status=$lt_dlunknown
18452 cat > conftest.$ac_ext <<EOF
18453 #line 18453 "configure"
18454 #include "confdefs.h"
18456 #if HAVE_DLFCN_H
18457 #include <dlfcn.h>
18458 #endif
18460 #include <stdio.h>
18462 #ifdef RTLD_GLOBAL
18463 # define LT_DLGLOBAL RTLD_GLOBAL
18464 #else
18465 # ifdef DL_GLOBAL
18466 # define LT_DLGLOBAL DL_GLOBAL
18467 # else
18468 # define LT_DLGLOBAL 0
18469 # endif
18470 #endif
18472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18473 find out it does not work in some platform. */
18474 #ifndef LT_DLLAZY_OR_NOW
18475 # ifdef RTLD_LAZY
18476 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18477 # else
18478 # ifdef DL_LAZY
18479 # define LT_DLLAZY_OR_NOW DL_LAZY
18480 # else
18481 # ifdef RTLD_NOW
18482 # define LT_DLLAZY_OR_NOW RTLD_NOW
18483 # else
18484 # ifdef DL_NOW
18485 # define LT_DLLAZY_OR_NOW DL_NOW
18486 # else
18487 # define LT_DLLAZY_OR_NOW 0
18488 # endif
18489 # endif
18490 # endif
18491 # endif
18492 #endif
18494 #ifdef __cplusplus
18495 extern "C" void exit (int);
18496 #endif
18498 void fnord() { int i=42;}
18499 int main ()
18501 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18502 int status = $lt_dlunknown;
18504 if (self)
18506 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18507 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18508 /* dlclose (self); */
18511 exit (status);
18514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18515 (eval $ac_link) 2>&5
18516 ac_status=$?
18517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18518 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18519 (./conftest; exit; ) 2>/dev/null
18520 lt_status=$?
18521 case x$lt_status in
18522 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18523 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18524 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18525 esac
18526 else :
18527 # compilation failed
18528 lt_cv_dlopen_self=no
18531 rm -fr conftest*
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18536 $as_echo "$lt_cv_dlopen_self" >&6; }
18538 if test "x$lt_cv_dlopen_self" = xyes; then
18539 LDFLAGS="$LDFLAGS $link_static_flag"
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18541 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18542 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18543 $as_echo_n "(cached) " >&6
18544 else
18545 if test "$cross_compiling" = yes; then :
18546 lt_cv_dlopen_self_static=cross
18547 else
18548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18549 lt_status=$lt_dlunknown
18550 cat > conftest.$ac_ext <<EOF
18551 #line 18551 "configure"
18552 #include "confdefs.h"
18554 #if HAVE_DLFCN_H
18555 #include <dlfcn.h>
18556 #endif
18558 #include <stdio.h>
18560 #ifdef RTLD_GLOBAL
18561 # define LT_DLGLOBAL RTLD_GLOBAL
18562 #else
18563 # ifdef DL_GLOBAL
18564 # define LT_DLGLOBAL DL_GLOBAL
18565 # else
18566 # define LT_DLGLOBAL 0
18567 # endif
18568 #endif
18570 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18571 find out it does not work in some platform. */
18572 #ifndef LT_DLLAZY_OR_NOW
18573 # ifdef RTLD_LAZY
18574 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18575 # else
18576 # ifdef DL_LAZY
18577 # define LT_DLLAZY_OR_NOW DL_LAZY
18578 # else
18579 # ifdef RTLD_NOW
18580 # define LT_DLLAZY_OR_NOW RTLD_NOW
18581 # else
18582 # ifdef DL_NOW
18583 # define LT_DLLAZY_OR_NOW DL_NOW
18584 # else
18585 # define LT_DLLAZY_OR_NOW 0
18586 # endif
18587 # endif
18588 # endif
18589 # endif
18590 #endif
18592 #ifdef __cplusplus
18593 extern "C" void exit (int);
18594 #endif
18596 void fnord() { int i=42;}
18597 int main ()
18599 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18600 int status = $lt_dlunknown;
18602 if (self)
18604 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18605 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18606 /* dlclose (self); */
18609 exit (status);
18612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18613 (eval $ac_link) 2>&5
18614 ac_status=$?
18615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18616 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18617 (./conftest; exit; ) 2>/dev/null
18618 lt_status=$?
18619 case x$lt_status in
18620 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18621 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18622 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18623 esac
18624 else :
18625 # compilation failed
18626 lt_cv_dlopen_self_static=no
18629 rm -fr conftest*
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18634 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18637 CPPFLAGS="$save_CPPFLAGS"
18638 LDFLAGS="$save_LDFLAGS"
18639 LIBS="$save_LIBS"
18641 esac
18643 case $lt_cv_dlopen_self in
18644 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18645 *) enable_dlopen_self=unknown ;;
18646 esac
18648 case $lt_cv_dlopen_self_static in
18649 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18650 *) enable_dlopen_self_static=unknown ;;
18651 esac
18655 # The else clause should only fire when bootstrapping the
18656 # libtool distribution, otherwise you forgot to ship ltmain.sh
18657 # with your package, and you will get complaints that there are
18658 # no rules to generate ltmain.sh.
18659 if test -f "$ltmain"; then
18660 # See if we are running on zsh, and set the options which allow our commands through
18661 # without removal of \ escapes.
18662 if test -n "${ZSH_VERSION+set}" ; then
18663 setopt NO_GLOB_SUBST
18665 # Now quote all the things that may contain metacharacters while being
18666 # careful not to overquote the AC_SUBSTed values. We take copies of the
18667 # variables and quote the copies for generation of the libtool script.
18668 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18669 SED SHELL STRIP \
18670 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18671 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18672 deplibs_check_method reload_flag reload_cmds need_locks \
18673 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18674 lt_cv_sys_global_symbol_to_c_name_address \
18675 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18676 old_postinstall_cmds old_postuninstall_cmds \
18677 compiler_GCJ \
18678 CC_GCJ \
18679 LD_GCJ \
18680 lt_prog_compiler_wl_GCJ \
18681 lt_prog_compiler_pic_GCJ \
18682 lt_prog_compiler_static_GCJ \
18683 lt_prog_compiler_no_builtin_flag_GCJ \
18684 export_dynamic_flag_spec_GCJ \
18685 thread_safe_flag_spec_GCJ \
18686 whole_archive_flag_spec_GCJ \
18687 enable_shared_with_static_runtimes_GCJ \
18688 old_archive_cmds_GCJ \
18689 old_archive_from_new_cmds_GCJ \
18690 predep_objects_GCJ \
18691 postdep_objects_GCJ \
18692 predeps_GCJ \
18693 postdeps_GCJ \
18694 compiler_lib_search_path_GCJ \
18695 archive_cmds_GCJ \
18696 archive_expsym_cmds_GCJ \
18697 postinstall_cmds_GCJ \
18698 postuninstall_cmds_GCJ \
18699 old_archive_from_expsyms_cmds_GCJ \
18700 allow_undefined_flag_GCJ \
18701 no_undefined_flag_GCJ \
18702 export_symbols_cmds_GCJ \
18703 hardcode_libdir_flag_spec_GCJ \
18704 hardcode_libdir_flag_spec_ld_GCJ \
18705 hardcode_libdir_separator_GCJ \
18706 hardcode_automatic_GCJ \
18707 module_cmds_GCJ \
18708 module_expsym_cmds_GCJ \
18709 lt_cv_prog_compiler_c_o_GCJ \
18710 exclude_expsyms_GCJ \
18711 include_expsyms_GCJ; do
18713 case $var in
18714 old_archive_cmds_GCJ | \
18715 old_archive_from_new_cmds_GCJ | \
18716 archive_cmds_GCJ | \
18717 archive_expsym_cmds_GCJ | \
18718 module_cmds_GCJ | \
18719 module_expsym_cmds_GCJ | \
18720 old_archive_from_expsyms_cmds_GCJ | \
18721 export_symbols_cmds_GCJ | \
18722 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18723 postinstall_cmds | postuninstall_cmds | \
18724 old_postinstall_cmds | old_postuninstall_cmds | \
18725 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18726 # Double-quote double-evaled strings.
18727 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18730 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18732 esac
18733 done
18735 case $lt_echo in
18736 *'\$0 --fallback-echo"')
18737 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18739 esac
18741 cfgfile="$ofile"
18743 cat <<__EOF__ >> "$cfgfile"
18744 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18746 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18748 # Shell to use when invoking shell scripts.
18749 SHELL=$lt_SHELL
18751 # Whether or not to build shared libraries.
18752 build_libtool_libs=$enable_shared
18754 # Whether or not to build static libraries.
18755 build_old_libs=$enable_static
18757 # Whether or not to add -lc for building shared libraries.
18758 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18760 # Whether or not to disallow shared libs when runtime libs are static
18761 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18763 # Whether or not to optimize for fast installation.
18764 fast_install=$enable_fast_install
18766 # The host system.
18767 host_alias=$host_alias
18768 host=$host
18769 host_os=$host_os
18771 # The build system.
18772 build_alias=$build_alias
18773 build=$build
18774 build_os=$build_os
18776 # An echo program that does not interpret backslashes.
18777 echo=$lt_echo
18779 # The archiver.
18780 AR=$lt_AR
18781 AR_FLAGS=$lt_AR_FLAGS
18783 # A C compiler.
18784 LTCC=$lt_LTCC
18786 # A language-specific compiler.
18787 CC=$lt_compiler_GCJ
18789 # Is the compiler the GNU C compiler?
18790 with_gcc=$GCC_GCJ
18792 # An ERE matcher.
18793 EGREP=$lt_EGREP
18795 # The linker used to build libraries.
18796 LD=$lt_LD_GCJ
18798 # Whether we need hard or soft links.
18799 LN_S=$lt_LN_S
18801 # A BSD-compatible nm program.
18802 NM=$lt_NM
18804 # A symbol stripping program
18805 STRIP=$lt_STRIP
18807 # Used to examine libraries when file_magic_cmd begins "file"
18808 MAGIC_CMD=$MAGIC_CMD
18810 # Used on cygwin: DLL creation program.
18811 DLLTOOL="$DLLTOOL"
18813 # Used on cygwin: object dumper.
18814 OBJDUMP="$OBJDUMP"
18816 # Used on cygwin: assembler.
18817 AS="$AS"
18819 # The name of the directory that contains temporary libtool files.
18820 objdir=$objdir
18822 # How to create reloadable object files.
18823 reload_flag=$lt_reload_flag
18824 reload_cmds=$lt_reload_cmds
18826 # How to pass a linker flag through the compiler.
18827 wl=$lt_lt_prog_compiler_wl_GCJ
18829 # Object file suffix (normally "o").
18830 objext="$ac_objext"
18832 # Old archive suffix (normally "a").
18833 libext="$libext"
18835 # Shared library suffix (normally ".so").
18836 shrext_cmds='$shrext_cmds'
18838 # Executable file suffix (normally "").
18839 exeext="$exeext"
18841 # Additional compiler flags for building library objects.
18842 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18843 pic_mode=$pic_mode
18845 # What is the maximum length of a command?
18846 max_cmd_len=$lt_cv_sys_max_cmd_len
18848 # Does compiler simultaneously support -c and -o options?
18849 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18851 # Must we lock files when doing compilation?
18852 need_locks=$lt_need_locks
18854 # Do we need the lib prefix for modules?
18855 need_lib_prefix=$need_lib_prefix
18857 # Do we need a version for libraries?
18858 need_version=$need_version
18860 # Whether dlopen is supported.
18861 dlopen_support=$enable_dlopen
18863 # Whether dlopen of programs is supported.
18864 dlopen_self=$enable_dlopen_self
18866 # Whether dlopen of statically linked programs is supported.
18867 dlopen_self_static=$enable_dlopen_self_static
18869 # Compiler flag to prevent dynamic linking.
18870 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18872 # Compiler flag to turn off builtin functions.
18873 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18875 # Compiler flag to allow reflexive dlopens.
18876 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18878 # Compiler flag to generate shared objects directly from archives.
18879 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18881 # Compiler flag to generate thread-safe objects.
18882 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18884 # Library versioning type.
18885 version_type=$version_type
18887 # Format of library name prefix.
18888 libname_spec=$lt_libname_spec
18890 # List of archive names. First name is the real one, the rest are links.
18891 # The last name is the one that the linker finds with -lNAME.
18892 library_names_spec=$lt_library_names_spec
18894 # The coded name of the library, if different from the real name.
18895 soname_spec=$lt_soname_spec
18897 # Commands used to build and install an old-style archive.
18898 RANLIB=$lt_RANLIB
18899 old_archive_cmds=$lt_old_archive_cmds_GCJ
18900 old_postinstall_cmds=$lt_old_postinstall_cmds
18901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18903 # Create an old-style archive from a shared archive.
18904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18906 # Create a temporary old-style archive to link instead of a shared archive.
18907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18909 # Commands used to build and install a shared archive.
18910 archive_cmds=$lt_archive_cmds_GCJ
18911 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18912 postinstall_cmds=$lt_postinstall_cmds
18913 postuninstall_cmds=$lt_postuninstall_cmds
18915 # Commands used to build a loadable module (assumed same as above if empty)
18916 module_cmds=$lt_module_cmds_GCJ
18917 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18919 # Commands to strip libraries.
18920 old_striplib=$lt_old_striplib
18921 striplib=$lt_striplib
18923 # Dependencies to place before the objects being linked to create a
18924 # shared library.
18925 predep_objects=$lt_predep_objects_GCJ
18927 # Dependencies to place after the objects being linked to create a
18928 # shared library.
18929 postdep_objects=$lt_postdep_objects_GCJ
18931 # Dependencies to place before the objects being linked to create a
18932 # shared library.
18933 predeps=$lt_predeps_GCJ
18935 # Dependencies to place after the objects being linked to create a
18936 # shared library.
18937 postdeps=$lt_postdeps_GCJ
18939 # The library search path used internally by the compiler when linking
18940 # a shared library.
18941 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18943 # Method to check whether dependent libraries are shared objects.
18944 deplibs_check_method=$lt_deplibs_check_method
18946 # Command to use when deplibs_check_method == file_magic.
18947 file_magic_cmd=$lt_file_magic_cmd
18949 # Flag that allows shared libraries with undefined symbols to be built.
18950 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18952 # Flag that forces no undefined symbols.
18953 no_undefined_flag=$lt_no_undefined_flag_GCJ
18955 # Commands used to finish a libtool library installation in a directory.
18956 finish_cmds=$lt_finish_cmds
18958 # Same as above, but a single script fragment to be evaled but not shown.
18959 finish_eval=$lt_finish_eval
18961 # Take the output of nm and produce a listing of raw symbols and C names.
18962 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18964 # Transform the output of nm in a proper C declaration
18965 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18967 # Transform the output of nm in a C name address pair
18968 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18970 # This is the shared library runtime path variable.
18971 runpath_var=$runpath_var
18973 # This is the shared library path variable.
18974 shlibpath_var=$shlibpath_var
18976 # Is shlibpath searched before the hard-coded library search path?
18977 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18979 # How to hardcode a shared library path into an executable.
18980 hardcode_action=$hardcode_action_GCJ
18982 # Whether we should hardcode library paths into libraries.
18983 hardcode_into_libs=$hardcode_into_libs
18985 # Flag to hardcode \$libdir into a binary during linking.
18986 # This must work even if \$libdir does not exist.
18987 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18989 # If ld is used when linking, flag to hardcode \$libdir into
18990 # a binary during linking. This must work even if \$libdir does
18991 # not exist.
18992 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18994 # Whether we need a single -rpath flag with a separated argument.
18995 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18997 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18998 # resulting binary.
18999 hardcode_direct=$hardcode_direct_GCJ
19001 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19002 # resulting binary.
19003 hardcode_minus_L=$hardcode_minus_L_GCJ
19005 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19006 # the resulting binary.
19007 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19009 # Set to yes if building a shared library automatically hardcodes DIR into the library
19010 # and all subsequent libraries and executables linked against it.
19011 hardcode_automatic=$hardcode_automatic_GCJ
19013 # Variables whose values should be saved in libtool wrapper scripts and
19014 # restored at relink time.
19015 variables_saved_for_relink="$variables_saved_for_relink"
19017 # Whether libtool must link a program against all its dependency libraries.
19018 link_all_deplibs=$link_all_deplibs_GCJ
19020 # Compile-time system search path for libraries
19021 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19023 # Run-time system search path for libraries
19024 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19026 # Fix the shell variable \$srcfile for the compiler.
19027 fix_srcfile_path="$fix_srcfile_path_GCJ"
19029 # Set to yes if exported symbols are required.
19030 always_export_symbols=$always_export_symbols_GCJ
19032 # The commands to list exported symbols.
19033 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19035 # The commands to extract the exported symbol list from a shared archive.
19036 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19038 # Symbols that should not be listed in the preloaded symbols.
19039 exclude_expsyms=$lt_exclude_expsyms_GCJ
19041 # Symbols that must always be exported.
19042 include_expsyms=$lt_include_expsyms_GCJ
19044 # ### END LIBTOOL TAG CONFIG: $tagname
19046 __EOF__
19049 else
19050 # If there is no Makefile yet, we rely on a make rule to execute
19051 # `config.status --recheck' to rerun these tests and create the
19052 # libtool script then.
19053 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19054 if test -f "$ltmain_in"; then
19055 test -f Makefile && make "$ltmain"
19060 ac_ext=c
19061 ac_cpp='$CPP $CPPFLAGS'
19062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19066 CC="$lt_save_CC"
19068 else
19069 tagname=""
19076 # Source file extension for RC test sources.
19077 ac_ext=rc
19079 # Object file extension for compiled RC test sources.
19080 objext=o
19081 objext_RC=$objext
19083 # Code to be used in simple compile tests
19084 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19086 # Code to be used in simple link tests
19087 lt_simple_link_test_code="$lt_simple_compile_test_code"
19089 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19091 # If no C compiler was specified, use CC.
19092 LTCC=${LTCC-"$CC"}
19094 # Allow CC to be a program name with arguments.
19095 compiler=$CC
19098 # save warnings/boilerplate of simple test code
19099 ac_outfile=conftest.$ac_objext
19100 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19101 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19102 _lt_compiler_boilerplate=`cat conftest.err`
19103 $rm conftest*
19105 ac_outfile=conftest.$ac_objext
19106 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19107 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19108 _lt_linker_boilerplate=`cat conftest.err`
19109 $rm conftest*
19112 # Allow CC to be a program name with arguments.
19113 lt_save_CC="$CC"
19114 CC=${RC-"windres"}
19115 compiler=$CC
19116 compiler_RC=$CC
19117 for cc_temp in $compiler""; do
19118 case $cc_temp in
19119 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19120 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19121 \-*) ;;
19122 *) break;;
19123 esac
19124 done
19125 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19127 lt_cv_prog_compiler_c_o_RC=yes
19129 # The else clause should only fire when bootstrapping the
19130 # libtool distribution, otherwise you forgot to ship ltmain.sh
19131 # with your package, and you will get complaints that there are
19132 # no rules to generate ltmain.sh.
19133 if test -f "$ltmain"; then
19134 # See if we are running on zsh, and set the options which allow our commands through
19135 # without removal of \ escapes.
19136 if test -n "${ZSH_VERSION+set}" ; then
19137 setopt NO_GLOB_SUBST
19139 # Now quote all the things that may contain metacharacters while being
19140 # careful not to overquote the AC_SUBSTed values. We take copies of the
19141 # variables and quote the copies for generation of the libtool script.
19142 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19143 SED SHELL STRIP \
19144 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19145 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19146 deplibs_check_method reload_flag reload_cmds need_locks \
19147 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19148 lt_cv_sys_global_symbol_to_c_name_address \
19149 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19150 old_postinstall_cmds old_postuninstall_cmds \
19151 compiler_RC \
19152 CC_RC \
19153 LD_RC \
19154 lt_prog_compiler_wl_RC \
19155 lt_prog_compiler_pic_RC \
19156 lt_prog_compiler_static_RC \
19157 lt_prog_compiler_no_builtin_flag_RC \
19158 export_dynamic_flag_spec_RC \
19159 thread_safe_flag_spec_RC \
19160 whole_archive_flag_spec_RC \
19161 enable_shared_with_static_runtimes_RC \
19162 old_archive_cmds_RC \
19163 old_archive_from_new_cmds_RC \
19164 predep_objects_RC \
19165 postdep_objects_RC \
19166 predeps_RC \
19167 postdeps_RC \
19168 compiler_lib_search_path_RC \
19169 archive_cmds_RC \
19170 archive_expsym_cmds_RC \
19171 postinstall_cmds_RC \
19172 postuninstall_cmds_RC \
19173 old_archive_from_expsyms_cmds_RC \
19174 allow_undefined_flag_RC \
19175 no_undefined_flag_RC \
19176 export_symbols_cmds_RC \
19177 hardcode_libdir_flag_spec_RC \
19178 hardcode_libdir_flag_spec_ld_RC \
19179 hardcode_libdir_separator_RC \
19180 hardcode_automatic_RC \
19181 module_cmds_RC \
19182 module_expsym_cmds_RC \
19183 lt_cv_prog_compiler_c_o_RC \
19184 exclude_expsyms_RC \
19185 include_expsyms_RC; do
19187 case $var in
19188 old_archive_cmds_RC | \
19189 old_archive_from_new_cmds_RC | \
19190 archive_cmds_RC | \
19191 archive_expsym_cmds_RC | \
19192 module_cmds_RC | \
19193 module_expsym_cmds_RC | \
19194 old_archive_from_expsyms_cmds_RC | \
19195 export_symbols_cmds_RC | \
19196 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19197 postinstall_cmds | postuninstall_cmds | \
19198 old_postinstall_cmds | old_postuninstall_cmds | \
19199 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19200 # Double-quote double-evaled strings.
19201 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19204 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19206 esac
19207 done
19209 case $lt_echo in
19210 *'\$0 --fallback-echo"')
19211 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19213 esac
19215 cfgfile="$ofile"
19217 cat <<__EOF__ >> "$cfgfile"
19218 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19220 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19222 # Shell to use when invoking shell scripts.
19223 SHELL=$lt_SHELL
19225 # Whether or not to build shared libraries.
19226 build_libtool_libs=$enable_shared
19228 # Whether or not to build static libraries.
19229 build_old_libs=$enable_static
19231 # Whether or not to add -lc for building shared libraries.
19232 build_libtool_need_lc=$archive_cmds_need_lc_RC
19234 # Whether or not to disallow shared libs when runtime libs are static
19235 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19237 # Whether or not to optimize for fast installation.
19238 fast_install=$enable_fast_install
19240 # The host system.
19241 host_alias=$host_alias
19242 host=$host
19243 host_os=$host_os
19245 # The build system.
19246 build_alias=$build_alias
19247 build=$build
19248 build_os=$build_os
19250 # An echo program that does not interpret backslashes.
19251 echo=$lt_echo
19253 # The archiver.
19254 AR=$lt_AR
19255 AR_FLAGS=$lt_AR_FLAGS
19257 # A C compiler.
19258 LTCC=$lt_LTCC
19260 # A language-specific compiler.
19261 CC=$lt_compiler_RC
19263 # Is the compiler the GNU C compiler?
19264 with_gcc=$GCC_RC
19266 # An ERE matcher.
19267 EGREP=$lt_EGREP
19269 # The linker used to build libraries.
19270 LD=$lt_LD_RC
19272 # Whether we need hard or soft links.
19273 LN_S=$lt_LN_S
19275 # A BSD-compatible nm program.
19276 NM=$lt_NM
19278 # A symbol stripping program
19279 STRIP=$lt_STRIP
19281 # Used to examine libraries when file_magic_cmd begins "file"
19282 MAGIC_CMD=$MAGIC_CMD
19284 # Used on cygwin: DLL creation program.
19285 DLLTOOL="$DLLTOOL"
19287 # Used on cygwin: object dumper.
19288 OBJDUMP="$OBJDUMP"
19290 # Used on cygwin: assembler.
19291 AS="$AS"
19293 # The name of the directory that contains temporary libtool files.
19294 objdir=$objdir
19296 # How to create reloadable object files.
19297 reload_flag=$lt_reload_flag
19298 reload_cmds=$lt_reload_cmds
19300 # How to pass a linker flag through the compiler.
19301 wl=$lt_lt_prog_compiler_wl_RC
19303 # Object file suffix (normally "o").
19304 objext="$ac_objext"
19306 # Old archive suffix (normally "a").
19307 libext="$libext"
19309 # Shared library suffix (normally ".so").
19310 shrext_cmds='$shrext_cmds'
19312 # Executable file suffix (normally "").
19313 exeext="$exeext"
19315 # Additional compiler flags for building library objects.
19316 pic_flag=$lt_lt_prog_compiler_pic_RC
19317 pic_mode=$pic_mode
19319 # What is the maximum length of a command?
19320 max_cmd_len=$lt_cv_sys_max_cmd_len
19322 # Does compiler simultaneously support -c and -o options?
19323 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19325 # Must we lock files when doing compilation?
19326 need_locks=$lt_need_locks
19328 # Do we need the lib prefix for modules?
19329 need_lib_prefix=$need_lib_prefix
19331 # Do we need a version for libraries?
19332 need_version=$need_version
19334 # Whether dlopen is supported.
19335 dlopen_support=$enable_dlopen
19337 # Whether dlopen of programs is supported.
19338 dlopen_self=$enable_dlopen_self
19340 # Whether dlopen of statically linked programs is supported.
19341 dlopen_self_static=$enable_dlopen_self_static
19343 # Compiler flag to prevent dynamic linking.
19344 link_static_flag=$lt_lt_prog_compiler_static_RC
19346 # Compiler flag to turn off builtin functions.
19347 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19349 # Compiler flag to allow reflexive dlopens.
19350 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19352 # Compiler flag to generate shared objects directly from archives.
19353 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19355 # Compiler flag to generate thread-safe objects.
19356 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19358 # Library versioning type.
19359 version_type=$version_type
19361 # Format of library name prefix.
19362 libname_spec=$lt_libname_spec
19364 # List of archive names. First name is the real one, the rest are links.
19365 # The last name is the one that the linker finds with -lNAME.
19366 library_names_spec=$lt_library_names_spec
19368 # The coded name of the library, if different from the real name.
19369 soname_spec=$lt_soname_spec
19371 # Commands used to build and install an old-style archive.
19372 RANLIB=$lt_RANLIB
19373 old_archive_cmds=$lt_old_archive_cmds_RC
19374 old_postinstall_cmds=$lt_old_postinstall_cmds
19375 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19377 # Create an old-style archive from a shared archive.
19378 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19380 # Create a temporary old-style archive to link instead of a shared archive.
19381 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19383 # Commands used to build and install a shared archive.
19384 archive_cmds=$lt_archive_cmds_RC
19385 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19386 postinstall_cmds=$lt_postinstall_cmds
19387 postuninstall_cmds=$lt_postuninstall_cmds
19389 # Commands used to build a loadable module (assumed same as above if empty)
19390 module_cmds=$lt_module_cmds_RC
19391 module_expsym_cmds=$lt_module_expsym_cmds_RC
19393 # Commands to strip libraries.
19394 old_striplib=$lt_old_striplib
19395 striplib=$lt_striplib
19397 # Dependencies to place before the objects being linked to create a
19398 # shared library.
19399 predep_objects=$lt_predep_objects_RC
19401 # Dependencies to place after the objects being linked to create a
19402 # shared library.
19403 postdep_objects=$lt_postdep_objects_RC
19405 # Dependencies to place before the objects being linked to create a
19406 # shared library.
19407 predeps=$lt_predeps_RC
19409 # Dependencies to place after the objects being linked to create a
19410 # shared library.
19411 postdeps=$lt_postdeps_RC
19413 # The library search path used internally by the compiler when linking
19414 # a shared library.
19415 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19417 # Method to check whether dependent libraries are shared objects.
19418 deplibs_check_method=$lt_deplibs_check_method
19420 # Command to use when deplibs_check_method == file_magic.
19421 file_magic_cmd=$lt_file_magic_cmd
19423 # Flag that allows shared libraries with undefined symbols to be built.
19424 allow_undefined_flag=$lt_allow_undefined_flag_RC
19426 # Flag that forces no undefined symbols.
19427 no_undefined_flag=$lt_no_undefined_flag_RC
19429 # Commands used to finish a libtool library installation in a directory.
19430 finish_cmds=$lt_finish_cmds
19432 # Same as above, but a single script fragment to be evaled but not shown.
19433 finish_eval=$lt_finish_eval
19435 # Take the output of nm and produce a listing of raw symbols and C names.
19436 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19438 # Transform the output of nm in a proper C declaration
19439 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19441 # Transform the output of nm in a C name address pair
19442 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19444 # This is the shared library runtime path variable.
19445 runpath_var=$runpath_var
19447 # This is the shared library path variable.
19448 shlibpath_var=$shlibpath_var
19450 # Is shlibpath searched before the hard-coded library search path?
19451 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19453 # How to hardcode a shared library path into an executable.
19454 hardcode_action=$hardcode_action_RC
19456 # Whether we should hardcode library paths into libraries.
19457 hardcode_into_libs=$hardcode_into_libs
19459 # Flag to hardcode \$libdir into a binary during linking.
19460 # This must work even if \$libdir does not exist.
19461 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19463 # If ld is used when linking, flag to hardcode \$libdir into
19464 # a binary during linking. This must work even if \$libdir does
19465 # not exist.
19466 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19468 # Whether we need a single -rpath flag with a separated argument.
19469 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19471 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19472 # resulting binary.
19473 hardcode_direct=$hardcode_direct_RC
19475 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19476 # resulting binary.
19477 hardcode_minus_L=$hardcode_minus_L_RC
19479 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19480 # the resulting binary.
19481 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19483 # Set to yes if building a shared library automatically hardcodes DIR into the library
19484 # and all subsequent libraries and executables linked against it.
19485 hardcode_automatic=$hardcode_automatic_RC
19487 # Variables whose values should be saved in libtool wrapper scripts and
19488 # restored at relink time.
19489 variables_saved_for_relink="$variables_saved_for_relink"
19491 # Whether libtool must link a program against all its dependency libraries.
19492 link_all_deplibs=$link_all_deplibs_RC
19494 # Compile-time system search path for libraries
19495 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19497 # Run-time system search path for libraries
19498 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19500 # Fix the shell variable \$srcfile for the compiler.
19501 fix_srcfile_path="$fix_srcfile_path_RC"
19503 # Set to yes if exported symbols are required.
19504 always_export_symbols=$always_export_symbols_RC
19506 # The commands to list exported symbols.
19507 export_symbols_cmds=$lt_export_symbols_cmds_RC
19509 # The commands to extract the exported symbol list from a shared archive.
19510 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19512 # Symbols that should not be listed in the preloaded symbols.
19513 exclude_expsyms=$lt_exclude_expsyms_RC
19515 # Symbols that must always be exported.
19516 include_expsyms=$lt_include_expsyms_RC
19518 # ### END LIBTOOL TAG CONFIG: $tagname
19520 __EOF__
19523 else
19524 # If there is no Makefile yet, we rely on a make rule to execute
19525 # `config.status --recheck' to rerun these tests and create the
19526 # libtool script then.
19527 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19528 if test -f "$ltmain_in"; then
19529 test -f Makefile && make "$ltmain"
19534 ac_ext=c
19535 ac_cpp='$CPP $CPPFLAGS'
19536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19540 CC="$lt_save_CC"
19545 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
19547 esac
19549 # Append the new tag name to the list of available tags.
19550 if test -n "$tagname" ; then
19551 available_tags="$available_tags $tagname"
19554 done
19555 IFS="$lt_save_ifs"
19557 # Now substitute the updated list of available tags.
19558 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19559 mv "${ofile}T" "$ofile"
19560 chmod +x "$ofile"
19561 else
19562 rm -f "${ofile}T"
19563 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
19569 # This can be used to rebuild libtool when needed
19570 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19572 # Always use our own libtool.
19573 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19575 # Prevent multiple expansion
19598 ac_header_dirent=no
19599 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19600 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19602 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
19604 $as_echo_n "(cached) " >&6
19605 else
19606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607 /* end confdefs.h. */
19608 #include <sys/types.h>
19609 #include <$ac_hdr>
19612 main ()
19614 if ((DIR *) 0)
19615 return 0;
19617 return 0;
19619 _ACEOF
19620 if ac_fn_c_try_compile "$LINENO"; then :
19621 eval "$as_ac_Header=yes"
19622 else
19623 eval "$as_ac_Header=no"
19625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19627 eval ac_res=\$$as_ac_Header
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19629 $as_echo "$ac_res" >&6; }
19630 eval as_val=\$$as_ac_Header
19631 if test "x$as_val" = x""yes; then :
19632 cat >>confdefs.h <<_ACEOF
19633 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19634 _ACEOF
19636 ac_header_dirent=$ac_hdr; break
19639 done
19640 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19641 if test $ac_header_dirent = dirent.h; then
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19643 $as_echo_n "checking for library containing opendir... " >&6; }
19644 if test "${ac_cv_search_opendir+set}" = set; then :
19645 $as_echo_n "(cached) " >&6
19646 else
19647 ac_func_search_save_LIBS=$LIBS
19648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h. */
19651 /* Override any GCC internal prototype to avoid an error.
19652 Use char because int might match the return type of a GCC
19653 builtin and then its argument prototype would still apply. */
19654 #ifdef __cplusplus
19655 extern "C"
19656 #endif
19657 char opendir ();
19659 main ()
19661 return opendir ();
19663 return 0;
19665 _ACEOF
19666 for ac_lib in '' dir; do
19667 if test -z "$ac_lib"; then
19668 ac_res="none required"
19669 else
19670 ac_res=-l$ac_lib
19671 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19673 if ac_fn_c_try_link "$LINENO"; then :
19674 ac_cv_search_opendir=$ac_res
19676 rm -f core conftest.err conftest.$ac_objext \
19677 conftest$ac_exeext
19678 if test "${ac_cv_search_opendir+set}" = set; then :
19679 break
19681 done
19682 if test "${ac_cv_search_opendir+set}" = set; then :
19684 else
19685 ac_cv_search_opendir=no
19687 rm conftest.$ac_ext
19688 LIBS=$ac_func_search_save_LIBS
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19691 $as_echo "$ac_cv_search_opendir" >&6; }
19692 ac_res=$ac_cv_search_opendir
19693 if test "$ac_res" != no; then :
19694 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19698 else
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19700 $as_echo_n "checking for library containing opendir... " >&6; }
19701 if test "${ac_cv_search_opendir+set}" = set; then :
19702 $as_echo_n "(cached) " >&6
19703 else
19704 ac_func_search_save_LIBS=$LIBS
19705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19706 /* end confdefs.h. */
19708 /* Override any GCC internal prototype to avoid an error.
19709 Use char because int might match the return type of a GCC
19710 builtin and then its argument prototype would still apply. */
19711 #ifdef __cplusplus
19712 extern "C"
19713 #endif
19714 char opendir ();
19716 main ()
19718 return opendir ();
19720 return 0;
19722 _ACEOF
19723 for ac_lib in '' x; do
19724 if test -z "$ac_lib"; then
19725 ac_res="none required"
19726 else
19727 ac_res=-l$ac_lib
19728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19730 if ac_fn_c_try_link "$LINENO"; then :
19731 ac_cv_search_opendir=$ac_res
19733 rm -f core conftest.err conftest.$ac_objext \
19734 conftest$ac_exeext
19735 if test "${ac_cv_search_opendir+set}" = set; then :
19736 break
19738 done
19739 if test "${ac_cv_search_opendir+set}" = set; then :
19741 else
19742 ac_cv_search_opendir=no
19744 rm conftest.$ac_ext
19745 LIBS=$ac_func_search_save_LIBS
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19748 $as_echo "$ac_cv_search_opendir" >&6; }
19749 ac_res=$ac_cv_search_opendir
19750 if test "$ac_res" != no; then :
19751 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19757 # Check whether --enable-ltdl-install was given.
19758 if test "${enable_ltdl_install+set}" = set; then :
19759 enableval=$enable_ltdl_install;
19763 if test x"${enable_ltdl_install-no}" != xno; then
19764 INSTALL_LTDL_TRUE=
19765 INSTALL_LTDL_FALSE='#'
19766 else
19767 INSTALL_LTDL_TRUE='#'
19768 INSTALL_LTDL_FALSE=
19771 if test x"${enable_ltdl_convenience-no}" != xno; then
19772 CONVENIENCE_LTDL_TRUE=
19773 CONVENIENCE_LTDL_FALSE='#'
19774 else
19775 CONVENIENCE_LTDL_TRUE='#'
19776 CONVENIENCE_LTDL_FALSE=
19781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for loadable modules" >&5
19782 $as_echo_n "checking which extension is used for loadable modules... " >&6; }
19783 if test "${libltdl_cv_shlibext+set}" = set; then :
19784 $as_echo_n "(cached) " >&6
19785 else
19787 ## GCJ LOCAL: gcj specific stuff. Please keep it.
19788 # Here in libltdl for libgcj we don't build modules for darwin.
19789 # So we say no. Then the extension gets .dylib which is the right
19790 # thing for shared libraries on darwin. Please keep me next time you
19791 # import libltdl.
19792 case "$host_os" in
19793 darwin*)
19794 module=no
19797 module=yes
19799 esac
19800 eval libltdl_cv_shlibext=$shrext_cmds
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19804 $as_echo "$libltdl_cv_shlibext" >&6; }
19805 if test -n "$libltdl_cv_shlibext"; then
19807 cat >>confdefs.h <<_ACEOF
19808 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
19809 _ACEOF
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
19815 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
19816 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
19817 $as_echo_n "(cached) " >&6
19818 else
19819 libltdl_cv_shlibpath_var="$shlibpath_var"
19821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
19822 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
19823 if test -n "$libltdl_cv_shlibpath_var"; then
19825 cat >>confdefs.h <<_ACEOF
19826 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
19827 _ACEOF
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19833 $as_echo_n "checking for the default library search path... " >&6; }
19834 if test "${libltdl_cv_sys_search_path+set}" = set; then :
19835 $as_echo_n "(cached) " >&6
19836 else
19837 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_search_path" >&5
19840 $as_echo "$libltdl_cv_sys_search_path" >&6; }
19841 if test -n "$libltdl_cv_sys_search_path"; then
19842 sys_search_path=
19843 for dir in $libltdl_cv_sys_search_path; do
19844 if test -z "$sys_search_path"; then
19845 sys_search_path="$dir"
19846 else
19847 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
19849 done
19851 cat >>confdefs.h <<_ACEOF
19852 #define LTDL_SYSSEARCHPATH "$sys_search_path"
19853 _ACEOF
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
19858 $as_echo_n "checking for objdir... " >&6; }
19859 if test "${libltdl_cv_objdir+set}" = set; then :
19860 $as_echo_n "(cached) " >&6
19861 else
19862 libltdl_cv_objdir="$objdir"
19863 if test -n "$objdir"; then
19865 else
19866 rm -f .libs 2>/dev/null
19867 mkdir .libs 2>/dev/null
19868 if test -d .libs; then
19869 libltdl_cv_objdir=.libs
19870 else
19871 # MS-DOS does not allow filenames that begin with a dot.
19872 libltdl_cv_objdir=_libs
19874 rmdir .libs 2>/dev/null
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_objdir" >&5
19879 $as_echo "$libltdl_cv_objdir" >&6; }
19881 cat >>confdefs.h <<_ACEOF
19882 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
19883 _ACEOF
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19888 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19889 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19890 $as_echo_n "(cached) " >&6
19891 else
19892 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19893 libltdl_cv_preloaded_symbols=yes
19894 else
19895 libltdl_cv_preloaded_symbols=no
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19900 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19901 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19903 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19907 LIBADD_DL=
19909 ac_ext=c
19910 ac_cpp='$CPP $CPPFLAGS'
19911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19916 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19917 if test "x$ac_cv_func_shl_load" = x""yes; then :
19919 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19921 else
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19923 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19924 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19925 $as_echo_n "(cached) " >&6
19926 else
19927 ac_check_lib_save_LIBS=$LIBS
19928 LIBS="-ldld $LIBS"
19929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19930 /* end confdefs.h. */
19932 /* Override any GCC internal prototype to avoid an error.
19933 Use char because int might match the return type of a GCC
19934 builtin and then its argument prototype would still apply. */
19935 #ifdef __cplusplus
19936 extern "C"
19937 #endif
19938 char shl_load ();
19940 main ()
19942 return shl_load ();
19944 return 0;
19946 _ACEOF
19947 if ac_fn_c_try_link "$LINENO"; then :
19948 ac_cv_lib_dld_shl_load=yes
19949 else
19950 ac_cv_lib_dld_shl_load=no
19952 rm -f core conftest.err conftest.$ac_objext \
19953 conftest$ac_exeext conftest.$ac_ext
19954 LIBS=$ac_check_lib_save_LIBS
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19957 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19958 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19960 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19962 LIBADD_DL="$LIBADD_DL -ldld"
19963 else
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19965 $as_echo_n "checking for dlopen in -ldl... " >&6; }
19966 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
19967 $as_echo_n "(cached) " >&6
19968 else
19969 ac_check_lib_save_LIBS=$LIBS
19970 LIBS="-ldl $LIBS"
19971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19972 /* end confdefs.h. */
19974 /* Override any GCC internal prototype to avoid an error.
19975 Use char because int might match the return type of a GCC
19976 builtin and then its argument prototype would still apply. */
19977 #ifdef __cplusplus
19978 extern "C"
19979 #endif
19980 char dlopen ();
19982 main ()
19984 return dlopen ();
19986 return 0;
19988 _ACEOF
19989 if ac_fn_c_try_link "$LINENO"; then :
19990 ac_cv_lib_dl_dlopen=yes
19991 else
19992 ac_cv_lib_dl_dlopen=no
19994 rm -f core conftest.err conftest.$ac_objext \
19995 conftest$ac_exeext conftest.$ac_ext
19996 LIBS=$ac_check_lib_save_LIBS
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19999 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20000 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
20002 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20004 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
20005 else
20006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20007 /* end confdefs.h. */
20008 #if HAVE_DLFCN_H
20009 # include <dlfcn.h>
20010 #endif
20013 main ()
20015 dlopen(0, 0);
20017 return 0;
20019 _ACEOF
20020 if ac_fn_c_try_link "$LINENO"; then :
20022 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20023 libltdl_cv_func_dlopen="yes"
20024 else
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20026 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
20027 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
20028 $as_echo_n "(cached) " >&6
20029 else
20030 ac_check_lib_save_LIBS=$LIBS
20031 LIBS="-lsvld $LIBS"
20032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20033 /* end confdefs.h. */
20035 /* Override any GCC internal prototype to avoid an error.
20036 Use char because int might match the return type of a GCC
20037 builtin and then its argument prototype would still apply. */
20038 #ifdef __cplusplus
20039 extern "C"
20040 #endif
20041 char dlopen ();
20043 main ()
20045 return dlopen ();
20047 return 0;
20049 _ACEOF
20050 if ac_fn_c_try_link "$LINENO"; then :
20051 ac_cv_lib_svld_dlopen=yes
20052 else
20053 ac_cv_lib_svld_dlopen=no
20055 rm -f core conftest.err conftest.$ac_objext \
20056 conftest$ac_exeext conftest.$ac_ext
20057 LIBS=$ac_check_lib_save_LIBS
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20060 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
20061 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
20063 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20065 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
20066 else
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20068 $as_echo_n "checking for dld_link in -ldld... " >&6; }
20069 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
20070 $as_echo_n "(cached) " >&6
20071 else
20072 ac_check_lib_save_LIBS=$LIBS
20073 LIBS="-ldld $LIBS"
20074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20075 /* end confdefs.h. */
20077 /* Override any GCC internal prototype to avoid an error.
20078 Use char because int might match the return type of a GCC
20079 builtin and then its argument prototype would still apply. */
20080 #ifdef __cplusplus
20081 extern "C"
20082 #endif
20083 char dld_link ();
20085 main ()
20087 return dld_link ();
20089 return 0;
20091 _ACEOF
20092 if ac_fn_c_try_link "$LINENO"; then :
20093 ac_cv_lib_dld_dld_link=yes
20094 else
20095 ac_cv_lib_dld_dld_link=no
20097 rm -f core conftest.err conftest.$ac_objext \
20098 conftest$ac_exeext conftest.$ac_ext
20099 LIBS=$ac_check_lib_save_LIBS
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20102 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20103 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
20105 $as_echo "#define HAVE_DLD 1" >>confdefs.h
20107 LIBADD_DL="$LIBADD_DL -ldld"
20108 else
20109 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
20110 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
20112 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
20124 rm -f core conftest.err conftest.$ac_objext \
20125 conftest$ac_exeext conftest.$ac_ext
20136 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20137 then
20138 lt_save_LIBS="$LIBS"
20139 LIBS="$LIBS $LIBADD_DL"
20140 for ac_func in dlerror
20141 do :
20142 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
20143 if test "x$ac_cv_func_dlerror" = x""yes; then :
20144 cat >>confdefs.h <<_ACEOF
20145 #define HAVE_DLERROR 1
20146 _ACEOF
20149 done
20151 LIBS="$lt_save_LIBS"
20153 ac_ext=c
20154 ac_cpp='$CPP $CPPFLAGS'
20155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20162 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20163 if test "${ac_cv_sys_symbol_underscore+set}" = set; then :
20164 $as_echo_n "(cached) " >&6
20165 else
20166 ac_cv_sys_symbol_underscore=no
20167 cat > conftest.$ac_ext <<EOF
20168 void nm_test_func(){}
20169 int main(){nm_test_func;return 0;}
20171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20172 (eval $ac_compile) 2>&5
20173 ac_status=$?
20174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20175 test $ac_status = 0; }; then
20176 # Now try to grab the symbols.
20177 ac_nlist=conftest.nm
20178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20179 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20180 ac_status=$?
20181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20182 test $ac_status = 0; } && test -s "$ac_nlist"; then
20183 # See whether the symbols have a leading underscore.
20184 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20185 ac_cv_sys_symbol_underscore=yes
20186 else
20187 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20189 else
20190 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20193 else
20194 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20196 else
20197 echo "configure: failed program was:" >&5
20198 cat conftest.c >&5
20200 rm -rf conftest*
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
20204 $as_echo "$ac_cv_sys_symbol_underscore" >&6; }
20207 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
20208 if test x"$libltdl_cv_func_dlopen" = xyes ||
20209 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20211 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20212 if test "${libltdl_cv_need_uscore+set}" = set; then :
20213 $as_echo_n "(cached) " >&6
20214 else
20215 libltdl_cv_need_uscore=unknown
20216 save_LIBS="$LIBS"
20217 LIBS="$LIBS $LIBADD_DL"
20218 if test "$cross_compiling" = yes; then :
20219 libltdl_cv_need_uscore=cross
20220 else
20221 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20222 lt_status=$lt_dlunknown
20223 cat > conftest.$ac_ext <<EOF
20224 #line 20224 "configure"
20225 #include "confdefs.h"
20227 #if HAVE_DLFCN_H
20228 #include <dlfcn.h>
20229 #endif
20231 #include <stdio.h>
20233 #ifdef RTLD_GLOBAL
20234 # define LT_DLGLOBAL RTLD_GLOBAL
20235 #else
20236 # ifdef DL_GLOBAL
20237 # define LT_DLGLOBAL DL_GLOBAL
20238 # else
20239 # define LT_DLGLOBAL 0
20240 # endif
20241 #endif
20243 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20244 find out it does not work in some platform. */
20245 #ifndef LT_DLLAZY_OR_NOW
20246 # ifdef RTLD_LAZY
20247 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20248 # else
20249 # ifdef DL_LAZY
20250 # define LT_DLLAZY_OR_NOW DL_LAZY
20251 # else
20252 # ifdef RTLD_NOW
20253 # define LT_DLLAZY_OR_NOW RTLD_NOW
20254 # else
20255 # ifdef DL_NOW
20256 # define LT_DLLAZY_OR_NOW DL_NOW
20257 # else
20258 # define LT_DLLAZY_OR_NOW 0
20259 # endif
20260 # endif
20261 # endif
20262 # endif
20263 #endif
20265 #ifdef __cplusplus
20266 extern "C" void exit (int);
20267 #endif
20269 void fnord() { int i=42;}
20270 int main ()
20272 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20273 int status = $lt_dlunknown;
20275 if (self)
20277 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20278 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20279 /* dlclose (self); */
20282 exit (status);
20285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20286 (eval $ac_link) 2>&5
20287 ac_status=$?
20288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20289 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20290 (./conftest; exit; ) 2>/dev/null
20291 lt_status=$?
20292 case x$lt_status in
20293 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20294 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20295 x$lt_unknown|x*) ;;
20296 esac
20297 else :
20298 # compilation failed
20302 rm -fr conftest*
20304 LIBS="$save_LIBS"
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20308 $as_echo "$libltdl_cv_need_uscore" >&6; }
20312 if test x"$libltdl_cv_need_uscore" = xyes; then
20314 $as_echo "#define NEED_USCORE 1" >>confdefs.h
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20320 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20321 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then :
20322 $as_echo_n "(cached) " >&6
20323 else
20324 # PORTME does your system automatically load deplibs for dlopen?
20325 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20326 # For now, we just catch OSes we know something about -- in the
20327 # future, we'll try test this programmatically.
20328 libltdl_cv_sys_dlopen_deplibs=unknown
20329 case "$host_os" in
20330 aix3*|aix4.1.*|aix4.2.*)
20331 # Unknown whether this is true for these versions of AIX, but
20332 # we want this `case' here to explicitly catch those versions.
20333 libltdl_cv_sys_dlopen_deplibs=unknown
20335 aix[45]*)
20336 libltdl_cv_sys_dlopen_deplibs=yes
20338 darwin*)
20339 # Assuming the user has installed a libdl from somewhere, this is true
20340 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20341 libltdl_cv_sys_dlopen_deplibs=yes
20343 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
20344 # GNU and its variants, using gnu ld.so (Glibc)
20345 libltdl_cv_sys_dlopen_deplibs=yes
20347 hpux10*|hpux11*)
20348 libltdl_cv_sys_dlopen_deplibs=yes
20350 irix[12345]*|irix6.[01]*)
20351 # Catch all versions of IRIX before 6.2, and indicate that we don't
20352 # know how it worked for any of those versions.
20353 libltdl_cv_sys_dlopen_deplibs=unknown
20355 irix*)
20356 # The case above catches anything before 6.2, and it's known that
20357 # at 6.2 and later dlopen does load deplibs.
20358 libltdl_cv_sys_dlopen_deplibs=yes
20360 netbsd*)
20361 libltdl_cv_sys_dlopen_deplibs=yes
20363 openbsd*)
20364 libltdl_cv_sys_dlopen_deplibs=yes
20366 osf[1234]*)
20367 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20368 # it did *not* use an RPATH in a shared library to find objects the
20369 # library depends on, so we explictly say `no'.
20370 libltdl_cv_sys_dlopen_deplibs=no
20372 osf5.0|osf5.0a|osf5.1)
20373 # dlopen *does* load deplibs and with the right loader patch applied
20374 # it even uses RPATH in a shared library to search for shared objects
20375 # that the library depends on, but there's no easy way to know if that
20376 # patch is installed. Since this is the case, all we can really
20377 # say is unknown -- it depends on the patch being installed. If
20378 # it is, this changes to `yes'. Without it, it would be `no'.
20379 libltdl_cv_sys_dlopen_deplibs=unknown
20381 osf*)
20382 # the two cases above should catch all versions of osf <= 5.1. Read
20383 # the comments above for what we know about them.
20384 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20385 # is used to find them so we can finally say `yes'.
20386 libltdl_cv_sys_dlopen_deplibs=yes
20388 solaris*)
20389 libltdl_cv_sys_dlopen_deplibs=yes
20391 esac
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_dlopen_deplibs" >&5
20395 $as_echo "$libltdl_cv_sys_dlopen_deplibs" >&6; }
20396 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
20398 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20402 for ac_header in argz.h
20403 do :
20404 ac_fn_c_check_header_mongrel "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
20405 if test "x$ac_cv_header_argz_h" = x""yes; then :
20406 cat >>confdefs.h <<_ACEOF
20407 #define HAVE_ARGZ_H 1
20408 _ACEOF
20412 done
20415 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if HAVE_ARGZ_H
20416 # include <argz.h>
20417 #endif
20419 if test "x$ac_cv_type_error_t" = x""yes; then :
20421 cat >>confdefs.h <<_ACEOF
20422 #define HAVE_ERROR_T 1
20423 _ACEOF
20426 else
20428 $as_echo "#define error_t int" >>confdefs.h
20433 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
20434 do :
20435 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20436 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20437 eval as_val=\$$as_ac_var
20438 if test "x$as_val" = x""yes; then :
20439 cat >>confdefs.h <<_ACEOF
20440 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20441 _ACEOF
20444 done
20465 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
20466 stdio.h unistd.h
20467 do :
20468 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20469 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20470 eval as_val=\$$as_ac_Header
20471 if test "x$as_val" = x""yes; then :
20472 cat >>confdefs.h <<_ACEOF
20473 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20474 _ACEOF
20478 done
20480 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
20481 do :
20482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20483 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20484 eval as_val=\$$as_ac_Header
20485 if test "x$as_val" = x""yes; then :
20486 cat >>confdefs.h <<_ACEOF
20487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20488 _ACEOF
20492 done
20494 for ac_header in string.h strings.h
20495 do :
20496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20497 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20498 eval as_val=\$$as_ac_Header
20499 if test "x$as_val" = x""yes; then :
20500 cat >>confdefs.h <<_ACEOF
20501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20502 _ACEOF
20503 break
20506 done
20509 for ac_func in strchr index
20510 do :
20511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20512 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20513 eval as_val=\$$as_ac_var
20514 if test "x$as_val" = x""yes; then :
20515 cat >>confdefs.h <<_ACEOF
20516 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20517 _ACEOF
20518 break
20520 done
20522 for ac_func in strrchr rindex
20523 do :
20524 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20525 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20526 eval as_val=\$$as_ac_var
20527 if test "x$as_val" = x""yes; then :
20528 cat >>confdefs.h <<_ACEOF
20529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20530 _ACEOF
20531 break
20533 done
20535 for ac_func in memcpy bcopy
20536 do :
20537 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20538 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20539 eval as_val=\$$as_ac_var
20540 if test "x$as_val" = x""yes; then :
20541 cat >>confdefs.h <<_ACEOF
20542 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20543 _ACEOF
20544 break
20546 done
20548 for ac_func in memmove strcmp
20549 do :
20550 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20551 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20552 eval as_val=\$$as_ac_var
20553 if test "x$as_val" = x""yes; then :
20554 cat >>confdefs.h <<_ACEOF
20555 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20556 _ACEOF
20559 done
20561 for ac_func in closedir opendir readdir
20562 do :
20563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20564 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20565 eval as_val=\$$as_ac_var
20566 if test "x$as_val" = x""yes; then :
20567 cat >>confdefs.h <<_ACEOF
20568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20569 _ACEOF
20572 done
20577 ## -------- ##
20578 ## Outputs. ##
20579 ## -------- ##
20580 ac_config_files="$ac_config_files Makefile"
20582 cat >confcache <<\_ACEOF
20583 # This file is a shell script that caches the results of configure
20584 # tests run on this system so they can be shared between configure
20585 # scripts and configure runs, see configure's option --config-cache.
20586 # It is not useful on other systems. If it contains results you don't
20587 # want to keep, you may remove or edit it.
20589 # config.status only pays attention to the cache file if you give it
20590 # the --recheck option to rerun configure.
20592 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20593 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20594 # following values.
20596 _ACEOF
20598 # The following way of writing the cache mishandles newlines in values,
20599 # but we know of no workaround that is simple, portable, and efficient.
20600 # So, we kill variables containing newlines.
20601 # Ultrix sh set writes to stderr and can't be redirected directly,
20602 # and sets the high bit in the cache file unless we assign to the vars.
20604 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20605 eval ac_val=\$$ac_var
20606 case $ac_val in #(
20607 *${as_nl}*)
20608 case $ac_var in #(
20609 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20610 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20611 esac
20612 case $ac_var in #(
20613 _ | IFS | as_nl) ;; #(
20614 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20615 *) { eval $ac_var=; unset $ac_var;} ;;
20616 esac ;;
20617 esac
20618 done
20620 (set) 2>&1 |
20621 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20622 *${as_nl}ac_space=\ *)
20623 # `set' does not quote correctly, so add quotes: double-quote
20624 # substitution turns \\\\ into \\, and sed turns \\ into \.
20625 sed -n \
20626 "s/'/'\\\\''/g;
20627 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20628 ;; #(
20630 # `set' quotes correctly as required by POSIX, so do not add quotes.
20631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20633 esac |
20634 sort
20636 sed '
20637 /^ac_cv_env_/b end
20638 t clear
20639 :clear
20640 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20641 t end
20642 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20643 :end' >>confcache
20644 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20645 if test -w "$cache_file"; then
20646 test "x$cache_file" != "x/dev/null" &&
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20648 $as_echo "$as_me: updating cache $cache_file" >&6;}
20649 cat confcache >$cache_file
20650 else
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20652 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20655 rm -f confcache
20657 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20658 # Let make expand exec_prefix.
20659 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20661 DEFS=-DHAVE_CONFIG_H
20663 ac_libobjs=
20664 ac_ltlibobjs=
20665 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20666 # 1. Remove the extension, and $U if already installed.
20667 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20668 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20669 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20670 # will be set to the directory where LIBOBJS objects are built.
20671 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20672 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20673 done
20674 LIBOBJS=$ac_libobjs
20676 LTLIBOBJS=$ac_ltlibobjs
20679 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20680 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
20681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20683 if test -n "$EXEEXT"; then
20684 am__EXEEXT_TRUE=
20685 am__EXEEXT_FALSE='#'
20686 else
20687 am__EXEEXT_TRUE='#'
20688 am__EXEEXT_FALSE=
20691 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20692 as_fn_error "conditional \"AMDEP\" was never defined.
20693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20695 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20696 as_fn_error "conditional \"am__fastdepCC\" was never defined.
20697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20699 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20700 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
20701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20703 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20704 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
20705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20707 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20708 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
20709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20712 : ${CONFIG_STATUS=./config.status}
20713 ac_write_fail=0
20714 ac_clean_files_save=$ac_clean_files
20715 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20717 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20718 as_write_fail=0
20719 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20720 #! $SHELL
20721 # Generated by $as_me.
20722 # Run this file to recreate the current configuration.
20723 # Compiler output produced by configure, useful for debugging
20724 # configure, is in config.log if it exists.
20726 debug=false
20727 ac_cs_recheck=false
20728 ac_cs_silent=false
20730 SHELL=\${CONFIG_SHELL-$SHELL}
20731 export SHELL
20732 _ASEOF
20733 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20734 ## -------------------- ##
20735 ## M4sh Initialization. ##
20736 ## -------------------- ##
20738 # Be more Bourne compatible
20739 DUALCASE=1; export DUALCASE # for MKS sh
20740 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20741 emulate sh
20742 NULLCMD=:
20743 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20744 # is contrary to our usage. Disable this feature.
20745 alias -g '${1+"$@"}'='"$@"'
20746 setopt NO_GLOB_SUBST
20747 else
20748 case `(set -o) 2>/dev/null` in #(
20749 *posix*) :
20750 set -o posix ;; #(
20751 *) :
20753 esac
20757 as_nl='
20759 export as_nl
20760 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20761 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20762 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20764 # Prefer a ksh shell builtin over an external printf program on Solaris,
20765 # but without wasting forks for bash or zsh.
20766 if test -z "$BASH_VERSION$ZSH_VERSION" \
20767 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20768 as_echo='print -r --'
20769 as_echo_n='print -rn --'
20770 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20771 as_echo='printf %s\n'
20772 as_echo_n='printf %s'
20773 else
20774 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20775 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20776 as_echo_n='/usr/ucb/echo -n'
20777 else
20778 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20779 as_echo_n_body='eval
20780 arg=$1;
20781 case $arg in #(
20782 *"$as_nl"*)
20783 expr "X$arg" : "X\\(.*\\)$as_nl";
20784 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20785 esac;
20786 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20788 export as_echo_n_body
20789 as_echo_n='sh -c $as_echo_n_body as_echo'
20791 export as_echo_body
20792 as_echo='sh -c $as_echo_body as_echo'
20795 # The user is always right.
20796 if test "${PATH_SEPARATOR+set}" != set; then
20797 PATH_SEPARATOR=:
20798 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20799 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20800 PATH_SEPARATOR=';'
20805 # IFS
20806 # We need space, tab and new line, in precisely that order. Quoting is
20807 # there to prevent editors from complaining about space-tab.
20808 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20809 # splitting by setting IFS to empty value.)
20810 IFS=" "" $as_nl"
20812 # Find who we are. Look in the path if we contain no directory separator.
20813 case $0 in #((
20814 *[\\/]* ) as_myself=$0 ;;
20815 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20816 for as_dir in $PATH
20818 IFS=$as_save_IFS
20819 test -z "$as_dir" && as_dir=.
20820 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20821 done
20822 IFS=$as_save_IFS
20825 esac
20826 # We did not find ourselves, most probably we were run as `sh COMMAND'
20827 # in which case we are not to be found in the path.
20828 if test "x$as_myself" = x; then
20829 as_myself=$0
20831 if test ! -f "$as_myself"; then
20832 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20833 exit 1
20836 # Unset variables that we do not need and which cause bugs (e.g. in
20837 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20838 # suppresses any "Segmentation fault" message there. '((' could
20839 # trigger a bug in pdksh 5.2.14.
20840 for as_var in BASH_ENV ENV MAIL MAILPATH
20841 do eval test x\${$as_var+set} = xset \
20842 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20843 done
20844 PS1='$ '
20845 PS2='> '
20846 PS4='+ '
20848 # NLS nuisances.
20849 LC_ALL=C
20850 export LC_ALL
20851 LANGUAGE=C
20852 export LANGUAGE
20854 # CDPATH.
20855 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20858 # as_fn_error ERROR [LINENO LOG_FD]
20859 # ---------------------------------
20860 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20861 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20862 # script with status $?, using 1 if that was 0.
20863 as_fn_error ()
20865 as_status=$?; test $as_status -eq 0 && as_status=1
20866 if test "$3"; then
20867 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20868 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20870 $as_echo "$as_me: error: $1" >&2
20871 as_fn_exit $as_status
20872 } # as_fn_error
20875 # as_fn_set_status STATUS
20876 # -----------------------
20877 # Set $? to STATUS, without forking.
20878 as_fn_set_status ()
20880 return $1
20881 } # as_fn_set_status
20883 # as_fn_exit STATUS
20884 # -----------------
20885 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20886 as_fn_exit ()
20888 set +e
20889 as_fn_set_status $1
20890 exit $1
20891 } # as_fn_exit
20893 # as_fn_unset VAR
20894 # ---------------
20895 # Portably unset VAR.
20896 as_fn_unset ()
20898 { eval $1=; unset $1;}
20900 as_unset=as_fn_unset
20901 # as_fn_append VAR VALUE
20902 # ----------------------
20903 # Append the text in VALUE to the end of the definition contained in VAR. Take
20904 # advantage of any shell optimizations that allow amortized linear growth over
20905 # repeated appends, instead of the typical quadratic growth present in naive
20906 # implementations.
20907 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20908 eval 'as_fn_append ()
20910 eval $1+=\$2
20912 else
20913 as_fn_append ()
20915 eval $1=\$$1\$2
20917 fi # as_fn_append
20919 # as_fn_arith ARG...
20920 # ------------------
20921 # Perform arithmetic evaluation on the ARGs, and store the result in the
20922 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20923 # must be portable across $(()) and expr.
20924 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20925 eval 'as_fn_arith ()
20927 as_val=$(( $* ))
20929 else
20930 as_fn_arith ()
20932 as_val=`expr "$@" || test $? -eq 1`
20934 fi # as_fn_arith
20937 if expr a : '\(a\)' >/dev/null 2>&1 &&
20938 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20939 as_expr=expr
20940 else
20941 as_expr=false
20944 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20945 as_basename=basename
20946 else
20947 as_basename=false
20950 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20951 as_dirname=dirname
20952 else
20953 as_dirname=false
20956 as_me=`$as_basename -- "$0" ||
20957 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20958 X"$0" : 'X\(//\)$' \| \
20959 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20960 $as_echo X/"$0" |
20961 sed '/^.*\/\([^/][^/]*\)\/*$/{
20962 s//\1/
20965 /^X\/\(\/\/\)$/{
20966 s//\1/
20969 /^X\/\(\/\).*/{
20970 s//\1/
20973 s/.*/./; q'`
20975 # Avoid depending upon Character Ranges.
20976 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20977 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20978 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20979 as_cr_digits='0123456789'
20980 as_cr_alnum=$as_cr_Letters$as_cr_digits
20982 ECHO_C= ECHO_N= ECHO_T=
20983 case `echo -n x` in #(((((
20984 -n*)
20985 case `echo 'xy\c'` in
20986 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20987 xy) ECHO_C='\c';;
20988 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20989 ECHO_T=' ';;
20990 esac;;
20992 ECHO_N='-n';;
20993 esac
20995 rm -f conf$$ conf$$.exe conf$$.file
20996 if test -d conf$$.dir; then
20997 rm -f conf$$.dir/conf$$.file
20998 else
20999 rm -f conf$$.dir
21000 mkdir conf$$.dir 2>/dev/null
21002 if (echo >conf$$.file) 2>/dev/null; then
21003 if ln -s conf$$.file conf$$ 2>/dev/null; then
21004 as_ln_s='ln -s'
21005 # ... but there are two gotchas:
21006 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21007 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21008 # In both cases, we have to default to `cp -p'.
21009 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21010 as_ln_s='cp -p'
21011 elif ln conf$$.file conf$$ 2>/dev/null; then
21012 as_ln_s=ln
21013 else
21014 as_ln_s='cp -p'
21016 else
21017 as_ln_s='cp -p'
21019 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21020 rmdir conf$$.dir 2>/dev/null
21023 # as_fn_mkdir_p
21024 # -------------
21025 # Create "$as_dir" as a directory, including parents if necessary.
21026 as_fn_mkdir_p ()
21029 case $as_dir in #(
21030 -*) as_dir=./$as_dir;;
21031 esac
21032 test -d "$as_dir" || eval $as_mkdir_p || {
21033 as_dirs=
21034 while :; do
21035 case $as_dir in #(
21036 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21037 *) as_qdir=$as_dir;;
21038 esac
21039 as_dirs="'$as_qdir' $as_dirs"
21040 as_dir=`$as_dirname -- "$as_dir" ||
21041 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21042 X"$as_dir" : 'X\(//\)[^/]' \| \
21043 X"$as_dir" : 'X\(//\)$' \| \
21044 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21045 $as_echo X"$as_dir" |
21046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21047 s//\1/
21050 /^X\(\/\/\)[^/].*/{
21051 s//\1/
21054 /^X\(\/\/\)$/{
21055 s//\1/
21058 /^X\(\/\).*/{
21059 s//\1/
21062 s/.*/./; q'`
21063 test -d "$as_dir" && break
21064 done
21065 test -z "$as_dirs" || eval "mkdir $as_dirs"
21066 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
21069 } # as_fn_mkdir_p
21070 if mkdir -p . 2>/dev/null; then
21071 as_mkdir_p='mkdir -p "$as_dir"'
21072 else
21073 test -d ./-p && rmdir ./-p
21074 as_mkdir_p=false
21077 if test -x / >/dev/null 2>&1; then
21078 as_test_x='test -x'
21079 else
21080 if ls -dL / >/dev/null 2>&1; then
21081 as_ls_L_option=L
21082 else
21083 as_ls_L_option=
21085 as_test_x='
21086 eval sh -c '\''
21087 if test -d "$1"; then
21088 test -d "$1/.";
21089 else
21090 case $1 in #(
21091 -*)set "./$1";;
21092 esac;
21093 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21094 ???[sx]*):;;*)false;;esac;fi
21095 '\'' sh
21098 as_executable_p=$as_test_x
21100 # Sed expression to map a string onto a valid CPP name.
21101 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21103 # Sed expression to map a string onto a valid variable name.
21104 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21107 exec 6>&1
21108 ## ----------------------------------- ##
21109 ## Main body of $CONFIG_STATUS script. ##
21110 ## ----------------------------------- ##
21111 _ASEOF
21112 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21115 # Save the log message, to keep $0 and so on meaningful, and to
21116 # report actual input values of CONFIG_FILES etc. instead of their
21117 # values after options handling.
21118 ac_log="
21119 This file was extended by libltdl $as_me 1.2, which was
21120 generated by GNU Autoconf 2.64. Invocation command line was
21122 CONFIG_FILES = $CONFIG_FILES
21123 CONFIG_HEADERS = $CONFIG_HEADERS
21124 CONFIG_LINKS = $CONFIG_LINKS
21125 CONFIG_COMMANDS = $CONFIG_COMMANDS
21126 $ $0 $@
21128 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21131 _ACEOF
21133 case $ac_config_files in *"
21134 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21135 esac
21137 case $ac_config_headers in *"
21138 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21139 esac
21142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21143 # Files that config.status was made for.
21144 config_files="$ac_config_files"
21145 config_headers="$ac_config_headers"
21146 config_commands="$ac_config_commands"
21148 _ACEOF
21150 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21151 ac_cs_usage="\
21152 \`$as_me' instantiates files and other configuration actions
21153 from templates according to the current configuration. Unless the files
21154 and actions are specified as TAGs, all are instantiated by default.
21156 Usage: $0 [OPTION]... [TAG]...
21158 -h, --help print this help, then exit
21159 -V, --version print version number and configuration settings, then exit
21160 -q, --quiet, --silent
21161 do not print progress messages
21162 -d, --debug don't remove temporary files
21163 --recheck update $as_me by reconfiguring in the same conditions
21164 --file=FILE[:TEMPLATE]
21165 instantiate the configuration file FILE
21166 --header=FILE[:TEMPLATE]
21167 instantiate the configuration header FILE
21169 Configuration files:
21170 $config_files
21172 Configuration headers:
21173 $config_headers
21175 Configuration commands:
21176 $config_commands
21178 Report bugs to <bug-libtool@gnu.org>."
21180 _ACEOF
21181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21182 ac_cs_version="\\
21183 libltdl config.status 1.2
21184 configured by $0, generated by GNU Autoconf 2.64,
21185 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21187 Copyright (C) 2009 Free Software Foundation, Inc.
21188 This config.status script is free software; the Free Software Foundation
21189 gives unlimited permission to copy, distribute and modify it."
21191 ac_pwd='$ac_pwd'
21192 srcdir='$srcdir'
21193 INSTALL='$INSTALL'
21194 MKDIR_P='$MKDIR_P'
21195 AWK='$AWK'
21196 test -n "\$AWK" || AWK=awk
21197 _ACEOF
21199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21200 # The default lists apply if the user does not specify any file.
21201 ac_need_defaults=:
21202 while test $# != 0
21204 case $1 in
21205 --*=*)
21206 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21207 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21208 ac_shift=:
21211 ac_option=$1
21212 ac_optarg=$2
21213 ac_shift=shift
21215 esac
21217 case $ac_option in
21218 # Handling of the options.
21219 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21220 ac_cs_recheck=: ;;
21221 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21222 $as_echo "$ac_cs_version"; exit ;;
21223 --debug | --debu | --deb | --de | --d | -d )
21224 debug=: ;;
21225 --file | --fil | --fi | --f )
21226 $ac_shift
21227 case $ac_optarg in
21228 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21229 esac
21230 as_fn_append CONFIG_FILES " '$ac_optarg'"
21231 ac_need_defaults=false;;
21232 --header | --heade | --head | --hea )
21233 $ac_shift
21234 case $ac_optarg in
21235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21236 esac
21237 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21238 ac_need_defaults=false;;
21239 --he | --h)
21240 # Conflict between --help and --header
21241 as_fn_error "ambiguous option: \`$1'
21242 Try \`$0 --help' for more information.";;
21243 --help | --hel | -h )
21244 $as_echo "$ac_cs_usage"; exit ;;
21245 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21246 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21247 ac_cs_silent=: ;;
21249 # This is an error.
21250 -*) as_fn_error "unrecognized option: \`$1'
21251 Try \`$0 --help' for more information." ;;
21253 *) as_fn_append ac_config_targets " $1"
21254 ac_need_defaults=false ;;
21256 esac
21257 shift
21258 done
21260 ac_configure_extra_args=
21262 if $ac_cs_silent; then
21263 exec 6>/dev/null
21264 ac_configure_extra_args="$ac_configure_extra_args --silent"
21267 _ACEOF
21268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21269 if \$ac_cs_recheck; then
21270 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21271 shift
21272 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21273 CONFIG_SHELL='$SHELL'
21274 export CONFIG_SHELL
21275 exec "\$@"
21278 _ACEOF
21279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21280 exec 5>>config.log
21282 echo
21283 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21284 ## Running $as_me. ##
21285 _ASBOX
21286 $as_echo "$ac_log"
21287 } >&5
21289 _ACEOF
21290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21292 # INIT-COMMANDS
21295 srcdir="$srcdir"
21296 host="$host"
21297 target="$target"
21298 with_multisubdir="$with_multisubdir"
21299 with_multisrctop="$with_multisrctop"
21300 with_target_subdir="$with_target_subdir"
21301 ac_configure_args="${multilib_arg} ${ac_configure_args}"
21302 multi_basedir="$multi_basedir"
21303 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
21304 CC="$CC"
21305 CXX="$CXX"
21306 GFORTRAN="$GFORTRAN"
21307 GCJ="$GCJ"
21308 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21310 _ACEOF
21312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21314 # Handling of arguments.
21315 for ac_config_target in $ac_config_targets
21317 case $ac_config_target in
21318 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21319 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;;
21320 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21321 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21323 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21324 esac
21325 done
21328 # If the user did not use the arguments to specify the items to instantiate,
21329 # then the envvar interface is used. Set only those that are not.
21330 # We use the long form for the default assignment because of an extremely
21331 # bizarre bug on SunOS 4.1.3.
21332 if $ac_need_defaults; then
21333 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21334 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21335 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21338 # Have a temporary directory for convenience. Make it in the build tree
21339 # simply because there is no reason against having it here, and in addition,
21340 # creating and moving files from /tmp can sometimes cause problems.
21341 # Hook for its removal unless debugging.
21342 # Note that there is a small window in which the directory will not be cleaned:
21343 # after its creation but before its name has been assigned to `$tmp'.
21344 $debug ||
21346 tmp=
21347 trap 'exit_status=$?
21348 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21350 trap 'as_fn_exit 1' 1 2 13 15
21352 # Create a (secure) tmp directory for tmp files.
21355 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21356 test -n "$tmp" && test -d "$tmp"
21357 } ||
21359 tmp=./conf$$-$RANDOM
21360 (umask 077 && mkdir "$tmp")
21361 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
21363 # Set up the scripts for CONFIG_FILES section.
21364 # No need to generate them if there are no CONFIG_FILES.
21365 # This happens for instance with `./config.status config.h'.
21366 if test -n "$CONFIG_FILES"; then
21369 ac_cr=`echo X | tr X '\015'`
21370 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21371 # But we know of no other shell where ac_cr would be empty at this
21372 # point, so we can use a bashism as a fallback.
21373 if test "x$ac_cr" = x; then
21374 eval ac_cr=\$\'\\r\'
21376 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21377 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21378 ac_cs_awk_cr='\r'
21379 else
21380 ac_cs_awk_cr=$ac_cr
21383 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21384 _ACEOF
21388 echo "cat >conf$$subs.awk <<_ACEOF" &&
21389 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21390 echo "_ACEOF"
21391 } >conf$$subs.sh ||
21392 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21393 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21394 ac_delim='%!_!# '
21395 for ac_last_try in false false false false false :; do
21396 . ./conf$$subs.sh ||
21397 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21399 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21400 if test $ac_delim_n = $ac_delim_num; then
21401 break
21402 elif $ac_last_try; then
21403 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21404 else
21405 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21407 done
21408 rm -f conf$$subs.sh
21410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21411 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21412 _ACEOF
21413 sed -n '
21415 s/^/S["/; s/!.*/"]=/
21418 s/^[^!]*!//
21419 :repl
21420 t repl
21421 s/'"$ac_delim"'$//
21422 t delim
21425 s/\(.\{148\}\).*/\1/
21426 t more1
21427 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21430 b repl
21431 :more1
21432 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21435 s/.\{148\}//
21436 t nl
21437 :delim
21439 s/\(.\{148\}\).*/\1/
21440 t more2
21441 s/["\\]/\\&/g; s/^/"/; s/$/"/
21444 :more2
21445 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21448 s/.\{148\}//
21449 t delim
21450 ' <conf$$subs.awk | sed '
21451 /^[^""]/{
21453 s/\n//
21455 ' >>$CONFIG_STATUS || ac_write_fail=1
21456 rm -f conf$$subs.awk
21457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21458 _ACAWK
21459 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21460 for (key in S) S_is_set[key] = 1
21461 FS = "\a"
21465 line = $ 0
21466 nfields = split(line, field, "@")
21467 substed = 0
21468 len = length(field[1])
21469 for (i = 2; i < nfields; i++) {
21470 key = field[i]
21471 keylen = length(key)
21472 if (S_is_set[key]) {
21473 value = S[key]
21474 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21475 len += length(value) + length(field[++i])
21476 substed = 1
21477 } else
21478 len += 1 + keylen
21481 print line
21484 _ACAWK
21485 _ACEOF
21486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21487 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21488 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21489 else
21491 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21492 || as_fn_error "could not setup config files machinery" "$LINENO" 5
21493 _ACEOF
21495 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21496 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21497 # trailing colons and then remove the whole line if VPATH becomes empty
21498 # (actually we leave an empty line to preserve line numbers).
21499 if test "x$srcdir" = x.; then
21500 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21501 s/:*\$(srcdir):*/:/
21502 s/:*\${srcdir}:*/:/
21503 s/:*@srcdir@:*/:/
21504 s/^\([^=]*=[ ]*\):*/\1/
21505 s/:*$//
21506 s/^[^=]*=[ ]*$//
21510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21511 fi # test -n "$CONFIG_FILES"
21513 # Set up the scripts for CONFIG_HEADERS section.
21514 # No need to generate them if there are no CONFIG_HEADERS.
21515 # This happens for instance with `./config.status Makefile'.
21516 if test -n "$CONFIG_HEADERS"; then
21517 cat >"$tmp/defines.awk" <<\_ACAWK ||
21518 BEGIN {
21519 _ACEOF
21521 # Transform confdefs.h into an awk script `defines.awk', embedded as
21522 # here-document in config.status, that substitutes the proper values into
21523 # config.h.in to produce config.h.
21525 # Create a delimiter string that does not exist in confdefs.h, to ease
21526 # handling of long lines.
21527 ac_delim='%!_!# '
21528 for ac_last_try in false false :; do
21529 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21530 if test -z "$ac_t"; then
21531 break
21532 elif $ac_last_try; then
21533 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21534 else
21535 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21537 done
21539 # For the awk script, D is an array of macro values keyed by name,
21540 # likewise P contains macro parameters if any. Preserve backslash
21541 # newline sequences.
21543 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21544 sed -n '
21545 s/.\{148\}/&'"$ac_delim"'/g
21546 t rset
21547 :rset
21548 s/^[ ]*#[ ]*define[ ][ ]*/ /
21549 t def
21551 :def
21552 s/\\$//
21553 t bsnl
21554 s/["\\]/\\&/g
21555 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21556 D["\1"]=" \3"/p
21557 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21559 :bsnl
21560 s/["\\]/\\&/g
21561 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21562 D["\1"]=" \3\\\\\\n"\\/p
21563 t cont
21564 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21565 t cont
21567 :cont
21569 s/.\{148\}/&'"$ac_delim"'/g
21570 t clear
21571 :clear
21572 s/\\$//
21573 t bsnlc
21574 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21576 :bsnlc
21577 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21578 b cont
21579 ' <confdefs.h | sed '
21580 s/'"$ac_delim"'/"\\\
21581 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21584 for (key in D) D_is_set[key] = 1
21585 FS = "\a"
21587 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21588 line = \$ 0
21589 split(line, arg, " ")
21590 if (arg[1] == "#") {
21591 defundef = arg[2]
21592 mac1 = arg[3]
21593 } else {
21594 defundef = substr(arg[1], 2)
21595 mac1 = arg[2]
21597 split(mac1, mac2, "(") #)
21598 macro = mac2[1]
21599 prefix = substr(line, 1, index(line, defundef) - 1)
21600 if (D_is_set[macro]) {
21601 # Preserve the white space surrounding the "#".
21602 print prefix "define", macro P[macro] D[macro]
21603 next
21604 } else {
21605 # Replace #undef with comments. This is necessary, for example,
21606 # in the case of _POSIX_SOURCE, which is predefined and required
21607 # on some systems where configure will not decide to define it.
21608 if (defundef == "undef") {
21609 print "/*", prefix defundef, macro, "*/"
21610 next
21614 { print }
21615 _ACAWK
21616 _ACEOF
21617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21618 as_fn_error "could not setup config headers machinery" "$LINENO" 5
21619 fi # test -n "$CONFIG_HEADERS"
21622 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21623 shift
21624 for ac_tag
21626 case $ac_tag in
21627 :[FHLC]) ac_mode=$ac_tag; continue;;
21628 esac
21629 case $ac_mode$ac_tag in
21630 :[FHL]*:*);;
21631 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
21632 :[FH]-) ac_tag=-:-;;
21633 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21634 esac
21635 ac_save_IFS=$IFS
21636 IFS=:
21637 set x $ac_tag
21638 IFS=$ac_save_IFS
21639 shift
21640 ac_file=$1
21641 shift
21643 case $ac_mode in
21644 :L) ac_source=$1;;
21645 :[FH])
21646 ac_file_inputs=
21647 for ac_f
21649 case $ac_f in
21650 -) ac_f="$tmp/stdin";;
21651 *) # Look for the file first in the build tree, then in the source tree
21652 # (if the path is not absolute). The absolute path cannot be DOS-style,
21653 # because $ac_f cannot contain `:'.
21654 test -f "$ac_f" ||
21655 case $ac_f in
21656 [\\/$]*) false;;
21657 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21658 esac ||
21659 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21660 esac
21661 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21662 as_fn_append ac_file_inputs " '$ac_f'"
21663 done
21665 # Let's still pretend it is `configure' which instantiates (i.e., don't
21666 # use $as_me), people would be surprised to read:
21667 # /* config.h. Generated by config.status. */
21668 configure_input='Generated from '`
21669 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21670 `' by configure.'
21671 if test x"$ac_file" != x-; then
21672 configure_input="$ac_file. $configure_input"
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21674 $as_echo "$as_me: creating $ac_file" >&6;}
21676 # Neutralize special characters interpreted by sed in replacement strings.
21677 case $configure_input in #(
21678 *\&* | *\|* | *\\* )
21679 ac_sed_conf_input=`$as_echo "$configure_input" |
21680 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21681 *) ac_sed_conf_input=$configure_input;;
21682 esac
21684 case $ac_tag in
21685 *:-:* | *:-) cat >"$tmp/stdin" \
21686 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
21687 esac
21689 esac
21691 ac_dir=`$as_dirname -- "$ac_file" ||
21692 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21693 X"$ac_file" : 'X\(//\)[^/]' \| \
21694 X"$ac_file" : 'X\(//\)$' \| \
21695 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21696 $as_echo X"$ac_file" |
21697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21698 s//\1/
21701 /^X\(\/\/\)[^/].*/{
21702 s//\1/
21705 /^X\(\/\/\)$/{
21706 s//\1/
21709 /^X\(\/\).*/{
21710 s//\1/
21713 s/.*/./; q'`
21714 as_dir="$ac_dir"; as_fn_mkdir_p
21715 ac_builddir=.
21717 case "$ac_dir" in
21718 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21720 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21721 # A ".." for each directory in $ac_dir_suffix.
21722 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21723 case $ac_top_builddir_sub in
21724 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21725 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21726 esac ;;
21727 esac
21728 ac_abs_top_builddir=$ac_pwd
21729 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21730 # for backward compatibility:
21731 ac_top_builddir=$ac_top_build_prefix
21733 case $srcdir in
21734 .) # We are building in place.
21735 ac_srcdir=.
21736 ac_top_srcdir=$ac_top_builddir_sub
21737 ac_abs_top_srcdir=$ac_pwd ;;
21738 [\\/]* | ?:[\\/]* ) # Absolute name.
21739 ac_srcdir=$srcdir$ac_dir_suffix;
21740 ac_top_srcdir=$srcdir
21741 ac_abs_top_srcdir=$srcdir ;;
21742 *) # Relative name.
21743 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21744 ac_top_srcdir=$ac_top_build_prefix$srcdir
21745 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21746 esac
21747 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21750 case $ac_mode in
21753 # CONFIG_FILE
21756 case $INSTALL in
21757 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21758 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21759 esac
21760 ac_MKDIR_P=$MKDIR_P
21761 case $MKDIR_P in
21762 [\\/$]* | ?:[\\/]* ) ;;
21763 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21764 esac
21765 _ACEOF
21767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21768 # If the template does not know about datarootdir, expand it.
21769 # FIXME: This hack should be removed a few years after 2.60.
21770 ac_datarootdir_hack=; ac_datarootdir_seen=
21771 ac_sed_dataroot='
21772 /datarootdir/ {
21776 /@datadir@/p
21777 /@docdir@/p
21778 /@infodir@/p
21779 /@localedir@/p
21780 /@mandir@/p'
21781 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21782 *datarootdir*) ac_datarootdir_seen=yes;;
21783 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21785 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21786 _ACEOF
21787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21788 ac_datarootdir_hack='
21789 s&@datadir@&$datadir&g
21790 s&@docdir@&$docdir&g
21791 s&@infodir@&$infodir&g
21792 s&@localedir@&$localedir&g
21793 s&@mandir@&$mandir&g
21794 s&\\\${datarootdir}&$datarootdir&g' ;;
21795 esac
21796 _ACEOF
21798 # Neutralize VPATH when `$srcdir' = `.'.
21799 # Shell code in configure.ac might set extrasub.
21800 # FIXME: do we really want to maintain this feature?
21801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21802 ac_sed_extra="$ac_vpsub
21803 $extrasub
21804 _ACEOF
21805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21807 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21808 s|@configure_input@|$ac_sed_conf_input|;t t
21809 s&@top_builddir@&$ac_top_builddir_sub&;t t
21810 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21811 s&@srcdir@&$ac_srcdir&;t t
21812 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21813 s&@top_srcdir@&$ac_top_srcdir&;t t
21814 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21815 s&@builddir@&$ac_builddir&;t t
21816 s&@abs_builddir@&$ac_abs_builddir&;t t
21817 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21818 s&@INSTALL@&$ac_INSTALL&;t t
21819 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21820 $ac_datarootdir_hack
21822 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21823 || as_fn_error "could not create $ac_file" "$LINENO" 5
21825 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21826 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21827 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21829 which seems to be undefined. Please make sure it is defined." >&5
21830 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21831 which seems to be undefined. Please make sure it is defined." >&2;}
21833 rm -f "$tmp/stdin"
21834 case $ac_file in
21835 -) cat "$tmp/out" && rm -f "$tmp/out";;
21836 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21837 esac \
21838 || as_fn_error "could not create $ac_file" "$LINENO" 5
21842 # CONFIG_HEADER
21844 if test x"$ac_file" != x-; then
21846 $as_echo "/* $configure_input */" \
21847 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21848 } >"$tmp/config.h" \
21849 || as_fn_error "could not create $ac_file" "$LINENO" 5
21850 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21851 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21852 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21853 else
21854 rm -f "$ac_file"
21855 mv "$tmp/config.h" "$ac_file" \
21856 || as_fn_error "could not create $ac_file" "$LINENO" 5
21858 else
21859 $as_echo "/* $configure_input */" \
21860 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21861 || as_fn_error "could not create -" "$LINENO" 5
21863 # Compute "$ac_file"'s index in $config_headers.
21864 _am_arg="$ac_file"
21865 _am_stamp_count=1
21866 for _am_header in $config_headers :; do
21867 case $_am_header in
21868 $_am_arg | $_am_arg:* )
21869 break ;;
21871 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21872 esac
21873 done
21874 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21875 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21876 X"$_am_arg" : 'X\(//\)[^/]' \| \
21877 X"$_am_arg" : 'X\(//\)$' \| \
21878 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21879 $as_echo X"$_am_arg" |
21880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21881 s//\1/
21884 /^X\(\/\/\)[^/].*/{
21885 s//\1/
21888 /^X\(\/\/\)$/{
21889 s//\1/
21892 /^X\(\/\).*/{
21893 s//\1/
21896 s/.*/./; q'`/stamp-h$_am_stamp_count
21899 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21900 $as_echo "$as_me: executing $ac_file commands" >&6;}
21902 esac
21905 case $ac_file$ac_mode in
21906 "default-1":C)
21907 # Only add multilib support code if we just rebuilt the top-level
21908 # Makefile.
21909 case " $CONFIG_FILES " in
21910 *" Makefile "*)
21911 ac_file=Makefile . ${multi_basedir}/config-ml.in
21913 esac ;;
21914 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21915 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21916 # are listed without --file. Let's play safe and only enable the eval
21917 # if we detect the quoting.
21918 case $CONFIG_FILES in
21919 *\'*) eval set x "$CONFIG_FILES" ;;
21920 *) set x $CONFIG_FILES ;;
21921 esac
21922 shift
21923 for mf
21925 # Strip MF so we end up with the name of the file.
21926 mf=`echo "$mf" | sed -e 's/:.*$//'`
21927 # Check whether this is an Automake generated Makefile or not.
21928 # We used to match only the files named `Makefile.in', but
21929 # some people rename them; so instead we look at the file content.
21930 # Grep'ing the first line is not enough: some people post-process
21931 # each Makefile.in and add a new line on top of each file to say so.
21932 # Grep'ing the whole file is not good either: AIX grep has a line
21933 # limit of 2048, but all sed's we know have understand at least 4000.
21934 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21935 dirpart=`$as_dirname -- "$mf" ||
21936 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21937 X"$mf" : 'X\(//\)[^/]' \| \
21938 X"$mf" : 'X\(//\)$' \| \
21939 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21940 $as_echo X"$mf" |
21941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21942 s//\1/
21945 /^X\(\/\/\)[^/].*/{
21946 s//\1/
21949 /^X\(\/\/\)$/{
21950 s//\1/
21953 /^X\(\/\).*/{
21954 s//\1/
21957 s/.*/./; q'`
21958 else
21959 continue
21961 # Extract the definition of DEPDIR, am__include, and am__quote
21962 # from the Makefile without running `make'.
21963 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21964 test -z "$DEPDIR" && continue
21965 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21966 test -z "am__include" && continue
21967 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21968 # When using ansi2knr, U may be empty or an underscore; expand it
21969 U=`sed -n 's/^U = //p' < "$mf"`
21970 # Find all dependency output files, they are included files with
21971 # $(DEPDIR) in their names. We invoke sed twice because it is the
21972 # simplest approach to changing $(DEPDIR) to its actual value in the
21973 # expansion.
21974 for file in `sed -n "
21975 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21976 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21977 # Make sure the directory exists.
21978 test -f "$dirpart/$file" && continue
21979 fdir=`$as_dirname -- "$file" ||
21980 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21981 X"$file" : 'X\(//\)[^/]' \| \
21982 X"$file" : 'X\(//\)$' \| \
21983 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21984 $as_echo X"$file" |
21985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21986 s//\1/
21989 /^X\(\/\/\)[^/].*/{
21990 s//\1/
21993 /^X\(\/\/\)$/{
21994 s//\1/
21997 /^X\(\/\).*/{
21998 s//\1/
22001 s/.*/./; q'`
22002 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22003 # echo "creating $dirpart/$file"
22004 echo '# dummy' > "$dirpart/$file"
22005 done
22006 done
22010 esac
22011 done # for ac_tag
22014 as_fn_exit 0
22015 _ACEOF
22016 ac_clean_files=$ac_clean_files_save
22018 test $ac_write_fail = 0 ||
22019 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
22022 # configure is writing to config.log, and then calls config.status.
22023 # config.status does its own redirection, appending to config.log.
22024 # Unfortunately, on DOS this fails, as config.log is still kept open
22025 # by configure, so config.status won't be able to write to it; its
22026 # output is simply discarded. So we exec the FD to /dev/null,
22027 # effectively closing config.log, so it can be properly (re)opened and
22028 # appended to by config.status. When coming back to configure, we
22029 # need to make the FD available again.
22030 if test "$no_create" != yes; then
22031 ac_cs_success=:
22032 ac_config_status_args=
22033 test "$silent" = yes &&
22034 ac_config_status_args="$ac_config_status_args --quiet"
22035 exec 5>/dev/null
22036 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22037 exec 5>>config.log
22038 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22039 # would make configure fail if this is the last instruction.
22040 $ac_cs_success || as_fn_exit $?
22042 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22044 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}