Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / third_party / tcmalloc / vendor / configure
blob1b446374c7fbd22aec5863c3df604b384204b0b2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for gperftools 2.0.
5 # Report bugs to <google-perftools@googlegroups.com>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
152 esac
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179 else
180 as_have_required=no
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 as_found=false
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
204 done;;
205 esac
206 as_found=false
207 done
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211 fi; }
212 IFS=$as_save_IFS
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: google-perftools@googlegroups.com about your system,
235 $0: including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
239 exit 1
243 SHELL=${CONFIG_SHELL-/bin/sh}
244 export SHELL
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
252 # as_fn_unset VAR
253 # ---------------
254 # Portably unset VAR.
255 as_fn_unset ()
257 { eval $1=; unset $1;}
259 as_unset=as_fn_unset
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
264 as_fn_set_status ()
266 return $1
267 } # as_fn_set_status
269 # as_fn_exit STATUS
270 # -----------------
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272 as_fn_exit ()
274 set +e
275 as_fn_set_status $1
276 exit $1
277 } # as_fn_exit
279 # as_fn_mkdir_p
280 # -------------
281 # Create "$as_dir" as a directory, including parents if necessary.
282 as_fn_mkdir_p ()
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
310 /^X\(\/\/\)$/{
311 s//\1/
314 /^X\(\/\).*/{
315 s//\1/
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
325 } # as_fn_mkdir_p
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
331 # implementations.
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
335 eval $1+=\$2
337 else
338 as_fn_append ()
340 eval $1=\$$1\$2
342 fi # as_fn_append
344 # as_fn_arith ARG...
345 # ------------------
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
352 as_val=$(( $* ))
354 else
355 as_fn_arith ()
357 as_val=`expr "$@" || test $? -eq 1`
359 fi # as_fn_arith
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
367 as_fn_error ()
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
376 } # as_fn_error
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381 else
382 as_expr=false
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387 else
388 as_basename=false
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393 else
394 as_dirname=false
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 $as_echo X/"$0" |
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
406 /^X\/\(\/\/\)$/{
407 s//\1/
410 /^X\/\(\/\).*/{
411 s//\1/
414 s/.*/./; q'`
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429 sed -n '
431 /[$]LINENO/=
432 ' <$as_myself |
433 sed '
434 s/[$]LINENO.*/&-/
435 t lineno
437 :lineno
439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 t loop
442 s/-\n.*//
443 ' >$as_me.lineno &&
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
451 # Exit status is that of the last command.
452 exit
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
457 -n*)
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
463 esac;;
465 ECHO_N='-n';;
466 esac
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471 else
472 rm -f conf$$.dir
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
487 as_ln_s='cp -p'
489 else
490 as_ln_s='cp -p'
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
497 else
498 test -d ./-p && rmdir ./-p
499 as_mkdir_p=false
502 if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
504 else
505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
513 test -d "$1/.";
514 else
515 case $1 in #(
516 -*)set "./$1";;
517 esac;
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
536 case X$lt_ECHO in
537 X*--fallback-echo)
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 esac
543 ECHO=${lt_ECHO-echo}
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
546 shift
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
553 else
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
560 shift
561 cat <<_LT_EOF
563 _LT_EOF
564 exit 0
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
568 # if CDPATH is set.
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578 then
579 break
581 done
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
588 else
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
597 IFS="$lt_save_ifs"
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
602 ECHO="$dir/echo"
603 break
605 done
606 IFS="$lt_save_ifs"
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
614 ECHO='print -r'
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
621 export CONFIG_SHELL
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 else
624 # Try using printf.
625 ECHO='printf %s\n'
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
629 # Cool, printf works
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636 export CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
638 export SHELL
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
645 else
646 # maybe with a smaller string...
647 prev=:
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651 then
652 break
654 prev="$cmd"
655 done
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661 else
662 # Oops. We lost completely, so just stick with echo.
663 ECHO=echo
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
673 lt_ECHO=$ECHO
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 test -n "$DJDIR" || exec 7<&0 </dev/null
682 exec 6>&1
684 # Name of the host.
685 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686 # so uname gets run too.
687 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
690 # Initializations.
692 ac_default_prefix=/usr/local
693 ac_clean_files=
694 ac_config_libobj_dir=.
695 LIBOBJS=
696 cross_compiling=no
697 subdirs=
698 MFLAGS=
699 MAKEFLAGS=
701 # Identity of this package.
702 PACKAGE_NAME='gperftools'
703 PACKAGE_TARNAME='gperftools'
704 PACKAGE_VERSION='2.0'
705 PACKAGE_STRING='gperftools 2.0'
706 PACKAGE_BUGREPORT='google-perftools@googlegroups.com'
707 PACKAGE_URL=''
709 ac_unique_file="README"
710 # Factoring default headers for most tests.
711 ac_includes_default="\
712 #include <stdio.h>
713 #ifdef HAVE_SYS_TYPES_H
714 # include <sys/types.h>
715 #endif
716 #ifdef HAVE_SYS_STAT_H
717 # include <sys/stat.h>
718 #endif
719 #ifdef STDC_HEADERS
720 # include <stdlib.h>
721 # include <stddef.h>
722 #else
723 # ifdef HAVE_STDLIB_H
724 # include <stdlib.h>
725 # endif
726 #endif
727 #ifdef HAVE_STRING_H
728 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 # include <memory.h>
730 # endif
731 # include <string.h>
732 #endif
733 #ifdef HAVE_STRINGS_H
734 # include <strings.h>
735 #endif
736 #ifdef HAVE_INTTYPES_H
737 # include <inttypes.h>
738 #endif
739 #ifdef HAVE_STDINT_H
740 # include <stdint.h>
741 #endif
742 #ifdef HAVE_UNISTD_H
743 # include <unistd.h>
744 #endif"
746 ac_header_list=
747 ac_subst_vars='LTLIBOBJS
748 LIBOBJS
749 WITH_STACK_TRACE_FALSE
750 WITH_STACK_TRACE_TRUE
751 WITH_HEAP_PROFILER_OR_CHECKER_FALSE
752 WITH_HEAP_PROFILER_OR_CHECKER_TRUE
753 WITH_DEBUGALLOC_FALSE
754 WITH_DEBUGALLOC_TRUE
755 WITH_HEAP_CHECKER_FALSE
756 WITH_HEAP_CHECKER_TRUE
757 WITH_HEAP_PROFILER_FALSE
758 WITH_HEAP_PROFILER_TRUE
759 WITH_CPU_PROFILER_FALSE
760 WITH_CPU_PROFILER_TRUE
761 OSX_FALSE
762 OSX_TRUE
763 MINGW_FALSE
764 MINGW_TRUE
765 PTHREAD_CFLAGS
766 PTHREAD_LIBS
767 PTHREAD_CC
768 acx_pthread_config
769 LIBSTDCXX_LA_LINKER_FLAG
770 NANOSLEEP_LIBS
771 HAVE_W_NO_UNUSED_RESULT_FALSE
772 HAVE_W_NO_UNUSED_RESULT_TRUE
773 I386_FALSE
774 I386_TRUE
775 X86_64_AND_NO_FP_BY_DEFAULT_FALSE
776 X86_64_AND_NO_FP_BY_DEFAULT_TRUE
777 ENABLE_FRAME_POINTERS_FALSE
778 ENABLE_FRAME_POINTERS_TRUE
779 UNWIND_LIBS
780 ENABLE_STATIC_FALSE
781 ENABLE_STATIC_TRUE
782 ac_cv_have_struct_mallinfo
783 USE_LIBTOOL_FALSE
784 USE_LIBTOOL_TRUE
785 LIBTOOL_DEPS
786 CXXCPP
787 OTOOL64
788 OTOOL
789 LIPO
790 NMEDIT
791 DSYMUTIL
792 lt_ECHO
793 RANLIB
795 OBJDUMP
796 LN_S
798 ac_ct_DUMPBIN
799 DUMPBIN
801 FGREP
802 EGREP
803 GREP
805 LIBTOOL
806 HAVE_OBJCOPY_WEAKEN_FALSE
807 HAVE_OBJCOPY_WEAKEN_TRUE
808 OBJCOPY
809 GCC_FALSE
810 GCC_TRUE
812 am__fastdepCC_FALSE
813 am__fastdepCC_TRUE
814 CCDEPMODE
815 ac_ct_CC
816 CFLAGS
818 am__fastdepCXX_FALSE
819 am__fastdepCXX_TRUE
820 CXXDEPMODE
821 AMDEPBACKSLASH
822 AMDEP_FALSE
823 AMDEP_TRUE
824 am__quote
825 am__include
826 DEPDIR
827 OBJEXT
828 EXEEXT
829 ac_ct_CXX
830 CPPFLAGS
831 LDFLAGS
832 CXXFLAGS
834 TC_VERSION_PATCH
835 TC_VERSION_MINOR
836 TC_VERSION_MAJOR
837 am__untar
838 am__tar
839 AMTAR
840 am__leading_dot
841 SET_MAKE
843 mkdir_p
844 MKDIR_P
845 INSTALL_STRIP_PROGRAM
846 STRIP
847 install_sh
848 MAKEINFO
849 AUTOHEADER
850 AUTOMAKE
851 AUTOCONF
852 ACLOCAL
853 VERSION
854 PACKAGE
855 CYGPATH_W
856 am__isrc
857 INSTALL_DATA
858 INSTALL_SCRIPT
859 INSTALL_PROGRAM
860 host_os
861 host_vendor
862 host_cpu
863 host
864 build_os
865 build_vendor
866 build_cpu
867 build
868 PROFILER_SO_VERSION
869 TCMALLOC_SO_VERSION
870 target_alias
871 host_alias
872 build_alias
873 LIBS
874 ECHO_T
875 ECHO_N
876 ECHO_C
877 DEFS
878 mandir
879 localedir
880 libdir
881 psdir
882 pdfdir
883 dvidir
884 htmldir
885 infodir
886 docdir
887 oldincludedir
888 includedir
889 localstatedir
890 sharedstatedir
891 sysconfdir
892 datadir
893 datarootdir
894 libexecdir
895 sbindir
896 bindir
897 program_transform_name
898 prefix
899 exec_prefix
900 PACKAGE_URL
901 PACKAGE_BUGREPORT
902 PACKAGE_STRING
903 PACKAGE_VERSION
904 PACKAGE_TARNAME
905 PACKAGE_NAME
906 PATH_SEPARATOR
907 SHELL'
908 ac_subst_files=''
909 ac_user_opts='
910 enable_option_checking
911 enable_cpu_profiler
912 enable_heap_profiler
913 enable_heap_checker
914 enable_debugalloc
915 enable_minimal
916 enable_dependency_tracking
917 enable_fast_install
918 enable_shared
919 enable_static
920 with_pic
921 with_gnu_ld
922 enable_libtool_lock
923 enable_frame_pointers
925 ac_precious_vars='build_alias
926 host_alias
927 target_alias
929 CXXFLAGS
930 LDFLAGS
931 LIBS
932 CPPFLAGS
935 CFLAGS
937 CXXCPP'
940 # Initialize some variables set by options.
941 ac_init_help=
942 ac_init_version=false
943 ac_unrecognized_opts=
944 ac_unrecognized_sep=
945 # The variables have the same names as the options, with
946 # dashes changed to underlines.
947 cache_file=/dev/null
948 exec_prefix=NONE
949 no_create=
950 no_recursion=
951 prefix=NONE
952 program_prefix=NONE
953 program_suffix=NONE
954 program_transform_name=s,x,x,
955 silent=
956 site=
957 srcdir=
958 verbose=
959 x_includes=NONE
960 x_libraries=NONE
962 # Installation directory options.
963 # These are left unexpanded so users can "make install exec_prefix=/foo"
964 # and all the variables that are supposed to be based on exec_prefix
965 # by default will actually change.
966 # Use braces instead of parens because sh, perl, etc. also accept them.
967 # (The list follows the same order as the GNU Coding Standards.)
968 bindir='${exec_prefix}/bin'
969 sbindir='${exec_prefix}/sbin'
970 libexecdir='${exec_prefix}/libexec'
971 datarootdir='${prefix}/share'
972 datadir='${datarootdir}'
973 sysconfdir='${prefix}/etc'
974 sharedstatedir='${prefix}/com'
975 localstatedir='${prefix}/var'
976 includedir='${prefix}/include'
977 oldincludedir='/usr/include'
978 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
979 infodir='${datarootdir}/info'
980 htmldir='${docdir}'
981 dvidir='${docdir}'
982 pdfdir='${docdir}'
983 psdir='${docdir}'
984 libdir='${exec_prefix}/lib'
985 localedir='${datarootdir}/locale'
986 mandir='${datarootdir}/man'
988 ac_prev=
989 ac_dashdash=
990 for ac_option
992 # If the previous option needs an argument, assign it.
993 if test -n "$ac_prev"; then
994 eval $ac_prev=\$ac_option
995 ac_prev=
996 continue
999 case $ac_option in
1000 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 *) ac_optarg=yes ;;
1002 esac
1004 # Accept the important Cygnus configure options, so we can diagnose typos.
1006 case $ac_dashdash$ac_option in
1008 ac_dashdash=yes ;;
1010 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1011 ac_prev=bindir ;;
1012 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1013 bindir=$ac_optarg ;;
1015 -build | --build | --buil | --bui | --bu)
1016 ac_prev=build_alias ;;
1017 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1018 build_alias=$ac_optarg ;;
1020 -cache-file | --cache-file | --cache-fil | --cache-fi \
1021 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1022 ac_prev=cache_file ;;
1023 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1024 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1025 cache_file=$ac_optarg ;;
1027 --config-cache | -C)
1028 cache_file=config.cache ;;
1030 -datadir | --datadir | --datadi | --datad)
1031 ac_prev=datadir ;;
1032 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1033 datadir=$ac_optarg ;;
1035 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1036 | --dataroo | --dataro | --datar)
1037 ac_prev=datarootdir ;;
1038 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1039 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1040 datarootdir=$ac_optarg ;;
1042 -disable-* | --disable-*)
1043 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1046 as_fn_error "invalid feature name: $ac_useropt"
1047 ac_useropt_orig=$ac_useropt
1048 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1049 case $ac_user_opts in
1051 "enable_$ac_useropt"
1052 "*) ;;
1053 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1054 ac_unrecognized_sep=', ';;
1055 esac
1056 eval enable_$ac_useropt=no ;;
1058 -docdir | --docdir | --docdi | --doc | --do)
1059 ac_prev=docdir ;;
1060 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061 docdir=$ac_optarg ;;
1063 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064 ac_prev=dvidir ;;
1065 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066 dvidir=$ac_optarg ;;
1068 -enable-* | --enable-*)
1069 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 as_fn_error "invalid feature name: $ac_useropt"
1073 ac_useropt_orig=$ac_useropt
1074 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1075 case $ac_user_opts in
1077 "enable_$ac_useropt"
1078 "*) ;;
1079 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1080 ac_unrecognized_sep=', ';;
1081 esac
1082 eval enable_$ac_useropt=\$ac_optarg ;;
1084 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1085 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1086 | --exec | --exe | --ex)
1087 ac_prev=exec_prefix ;;
1088 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1089 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1090 | --exec=* | --exe=* | --ex=*)
1091 exec_prefix=$ac_optarg ;;
1093 -gas | --gas | --ga | --g)
1094 # Obsolete; use --with-gas.
1095 with_gas=yes ;;
1097 -help | --help | --hel | --he | -h)
1098 ac_init_help=long ;;
1099 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1100 ac_init_help=recursive ;;
1101 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1102 ac_init_help=short ;;
1104 -host | --host | --hos | --ho)
1105 ac_prev=host_alias ;;
1106 -host=* | --host=* | --hos=* | --ho=*)
1107 host_alias=$ac_optarg ;;
1109 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1110 ac_prev=htmldir ;;
1111 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1112 | --ht=*)
1113 htmldir=$ac_optarg ;;
1115 -includedir | --includedir | --includedi | --included | --include \
1116 | --includ | --inclu | --incl | --inc)
1117 ac_prev=includedir ;;
1118 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1119 | --includ=* | --inclu=* | --incl=* | --inc=*)
1120 includedir=$ac_optarg ;;
1122 -infodir | --infodir | --infodi | --infod | --info | --inf)
1123 ac_prev=infodir ;;
1124 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1125 infodir=$ac_optarg ;;
1127 -libdir | --libdir | --libdi | --libd)
1128 ac_prev=libdir ;;
1129 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1130 libdir=$ac_optarg ;;
1132 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1133 | --libexe | --libex | --libe)
1134 ac_prev=libexecdir ;;
1135 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1136 | --libexe=* | --libex=* | --libe=*)
1137 libexecdir=$ac_optarg ;;
1139 -localedir | --localedir | --localedi | --localed | --locale)
1140 ac_prev=localedir ;;
1141 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1142 localedir=$ac_optarg ;;
1144 -localstatedir | --localstatedir | --localstatedi | --localstated \
1145 | --localstate | --localstat | --localsta | --localst | --locals)
1146 ac_prev=localstatedir ;;
1147 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1148 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1149 localstatedir=$ac_optarg ;;
1151 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1152 ac_prev=mandir ;;
1153 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1154 mandir=$ac_optarg ;;
1156 -nfp | --nfp | --nf)
1157 # Obsolete; use --without-fp.
1158 with_fp=no ;;
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n)
1162 no_create=yes ;;
1164 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1165 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1166 no_recursion=yes ;;
1168 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1169 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1170 | --oldin | --oldi | --old | --ol | --o)
1171 ac_prev=oldincludedir ;;
1172 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1173 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1174 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1175 oldincludedir=$ac_optarg ;;
1177 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1178 ac_prev=prefix ;;
1179 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1180 prefix=$ac_optarg ;;
1182 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1183 | --program-pre | --program-pr | --program-p)
1184 ac_prev=program_prefix ;;
1185 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1186 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1187 program_prefix=$ac_optarg ;;
1189 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1190 | --program-suf | --program-su | --program-s)
1191 ac_prev=program_suffix ;;
1192 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1193 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1194 program_suffix=$ac_optarg ;;
1196 -program-transform-name | --program-transform-name \
1197 | --program-transform-nam | --program-transform-na \
1198 | --program-transform-n | --program-transform- \
1199 | --program-transform | --program-transfor \
1200 | --program-transfo | --program-transf \
1201 | --program-trans | --program-tran \
1202 | --progr-tra | --program-tr | --program-t)
1203 ac_prev=program_transform_name ;;
1204 -program-transform-name=* | --program-transform-name=* \
1205 | --program-transform-nam=* | --program-transform-na=* \
1206 | --program-transform-n=* | --program-transform-=* \
1207 | --program-transform=* | --program-transfor=* \
1208 | --program-transfo=* | --program-transf=* \
1209 | --program-trans=* | --program-tran=* \
1210 | --progr-tra=* | --program-tr=* | --program-t=*)
1211 program_transform_name=$ac_optarg ;;
1213 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1214 ac_prev=pdfdir ;;
1215 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1216 pdfdir=$ac_optarg ;;
1218 -psdir | --psdir | --psdi | --psd | --ps)
1219 ac_prev=psdir ;;
1220 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1221 psdir=$ac_optarg ;;
1223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1224 | -silent | --silent | --silen | --sile | --sil)
1225 silent=yes ;;
1227 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1228 ac_prev=sbindir ;;
1229 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1230 | --sbi=* | --sb=*)
1231 sbindir=$ac_optarg ;;
1233 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1234 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1235 | --sharedst | --shareds | --shared | --share | --shar \
1236 | --sha | --sh)
1237 ac_prev=sharedstatedir ;;
1238 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1239 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1240 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1241 | --sha=* | --sh=*)
1242 sharedstatedir=$ac_optarg ;;
1244 -site | --site | --sit)
1245 ac_prev=site ;;
1246 -site=* | --site=* | --sit=*)
1247 site=$ac_optarg ;;
1249 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1250 ac_prev=srcdir ;;
1251 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1252 srcdir=$ac_optarg ;;
1254 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1255 | --syscon | --sysco | --sysc | --sys | --sy)
1256 ac_prev=sysconfdir ;;
1257 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1258 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1259 sysconfdir=$ac_optarg ;;
1261 -target | --target | --targe | --targ | --tar | --ta | --t)
1262 ac_prev=target_alias ;;
1263 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1264 target_alias=$ac_optarg ;;
1266 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1267 verbose=yes ;;
1269 -version | --version | --versio | --versi | --vers | -V)
1270 ac_init_version=: ;;
1272 -with-* | --with-*)
1273 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1276 as_fn_error "invalid package name: $ac_useropt"
1277 ac_useropt_orig=$ac_useropt
1278 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1279 case $ac_user_opts in
1281 "with_$ac_useropt"
1282 "*) ;;
1283 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1284 ac_unrecognized_sep=', ';;
1285 esac
1286 eval with_$ac_useropt=\$ac_optarg ;;
1288 -without-* | --without-*)
1289 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1292 as_fn_error "invalid package name: $ac_useropt"
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1297 "with_$ac_useropt"
1298 "*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=no ;;
1304 --x)
1305 # Obsolete; use --with-x.
1306 with_x=yes ;;
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313 x_includes=$ac_optarg ;;
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320 x_libraries=$ac_optarg ;;
1322 -*) as_fn_error "unrecognized option: \`$ac_option'
1323 Try \`$0 --help' for more information."
1326 *=*)
1327 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1328 # Reject names that are not valid shell variable names.
1329 case $ac_envvar in #(
1330 '' | [0-9]* | *[!_$as_cr_alnum]* )
1331 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1332 esac
1333 eval $ac_envvar=\$ac_optarg
1334 export $ac_envvar ;;
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344 esac
1345 done
1347 if test -n "$ac_prev"; then
1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349 as_fn_error "missing argument to $ac_option"
1352 if test -n "$ac_unrecognized_opts"; then
1353 case $enable_option_checking in
1354 no) ;;
1355 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1356 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357 esac
1360 # Check all directory arguments for consistency.
1361 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
1366 eval ac_val=\$$ac_var
1367 # Remove trailing slashes.
1368 case $ac_val in
1369 */ )
1370 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371 eval $ac_var=\$ac_val;;
1372 esac
1373 # Be sure to have absolute directory names.
1374 case $ac_val in
1375 [\\/$]* | ?:[\\/]* ) continue;;
1376 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1377 esac
1378 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1379 done
1381 # There might be people who depend on the old broken behavior: `$host'
1382 # used to hold the argument of --host etc.
1383 # FIXME: To remove some day.
1384 build=$build_alias
1385 host=$host_alias
1386 target=$target_alias
1388 # FIXME: To remove some day.
1389 if test "x$host_alias" != x; then
1390 if test "x$build_alias" = x; then
1391 cross_compiling=maybe
1392 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1393 If a cross compiler is detected then cross compile mode will be used." >&2
1394 elif test "x$build_alias" != "x$host_alias"; then
1395 cross_compiling=yes
1399 ac_tool_prefix=
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402 test "$silent" = yes && exec 6>/dev/null
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 as_fn_error "working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 as_fn_error "pwd does not report name of working directory"
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415 ac_srcdir_defaulted=yes
1416 # Try the directory containing this script, then the parent directory.
1417 ac_confdir=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419 X"$as_myself" : 'X\(//\)[^/]' \| \
1420 X"$as_myself" : 'X\(//\)$' \| \
1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424 s//\1/
1427 /^X\(\/\/\)[^/].*/{
1428 s//\1/
1431 /^X\(\/\/\)$/{
1432 s//\1/
1435 /^X\(\/\).*/{
1436 s//\1/
1439 s/.*/./; q'`
1440 srcdir=$ac_confdir
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442 srcdir=..
1444 else
1445 ac_srcdir_defaulted=no
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 ac_abs_confdir=`(
1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1454 pwd)`
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457 srcdir=.
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1462 case $srcdir in
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 esac
1465 for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 done
1473 # Report the --help message.
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1478 cat <<_ACEOF
1479 \`configure' configures gperftools 2.0 to adapt to many kinds of systems.
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1486 Defaults for the options are specified in brackets.
1488 Configuration:
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1503 [PREFIX]
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1510 For better control, use the options below.
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --libdir=DIR object code libraries [EPREFIX/lib]
1520 --includedir=DIR C header files [PREFIX/include]
1521 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1522 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1523 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1524 --infodir=DIR info documentation [DATAROOTDIR/info]
1525 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1526 --mandir=DIR man documentation [DATAROOTDIR/man]
1527 --docdir=DIR documentation root [DATAROOTDIR/doc/gperftools]
1528 --htmldir=DIR html documentation [DOCDIR]
1529 --dvidir=DIR dvi documentation [DOCDIR]
1530 --pdfdir=DIR pdf documentation [DOCDIR]
1531 --psdir=DIR ps documentation [DOCDIR]
1532 _ACEOF
1534 cat <<\_ACEOF
1536 Program names:
1537 --program-prefix=PREFIX prepend PREFIX to installed program names
1538 --program-suffix=SUFFIX append SUFFIX to installed program names
1539 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1541 System types:
1542 --build=BUILD configure for building on BUILD [guessed]
1543 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1544 _ACEOF
1547 if test -n "$ac_init_help"; then
1548 case $ac_init_help in
1549 short | recursive ) echo "Configuration of gperftools 2.0:";;
1550 esac
1551 cat <<\_ACEOF
1553 Optional Features:
1554 --disable-option-checking ignore unrecognized --enable/--with options
1555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1557 --disable-cpu-profiler do not build the cpu profiler
1558 --disable-heap-profiler do not build the heap profiler
1559 --disable-heap-checker do not build the heap checker
1560 --disable-debugalloc do not build versions of libs with debugalloc
1561 --enable-minimal build only tcmalloc-minimal (and maybe
1562 tcmalloc-minimal-debug)
1563 --disable-dependency-tracking speeds up one-time build
1564 --enable-dependency-tracking do not reject slow dependency extractors
1565 --enable-fast-install[=PKGS]
1566 optimize for fast installation [default=no]
1567 --enable-shared[=PKGS] build shared libraries [default=yes]
1568 --enable-static[=PKGS] build static libraries [default=yes]
1569 --disable-libtool-lock avoid locking (might break parallel builds)
1570 --enable-frame-pointers On x86_64 systems, compile with
1571 -fno-omit-frame-pointer (see INSTALL)
1573 Optional Packages:
1574 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1575 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
1578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1580 Some influential environment variables:
1581 CXX C++ compiler command
1582 CXXFLAGS C++ compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1588 CC C compiler command
1589 CFLAGS C compiler flags
1590 CPP C preprocessor
1591 CXXCPP C++ preprocessor
1593 Use these variables to override the choices made by `configure' or to help
1594 it to find libraries and programs with nonstandard names/locations.
1596 Report bugs to <google-perftools@googlegroups.com>.
1597 _ACEOF
1598 ac_status=$?
1601 if test "$ac_init_help" = "recursive"; then
1602 # If there are subdirs, report their specific --help.
1603 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1604 test -d "$ac_dir" ||
1605 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1606 continue
1607 ac_builddir=.
1609 case "$ac_dir" in
1610 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1613 # A ".." for each directory in $ac_dir_suffix.
1614 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1615 case $ac_top_builddir_sub in
1616 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1618 esac ;;
1619 esac
1620 ac_abs_top_builddir=$ac_pwd
1621 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1622 # for backward compatibility:
1623 ac_top_builddir=$ac_top_build_prefix
1625 case $srcdir in
1626 .) # We are building in place.
1627 ac_srcdir=.
1628 ac_top_srcdir=$ac_top_builddir_sub
1629 ac_abs_top_srcdir=$ac_pwd ;;
1630 [\\/]* | ?:[\\/]* ) # Absolute name.
1631 ac_srcdir=$srcdir$ac_dir_suffix;
1632 ac_top_srcdir=$srcdir
1633 ac_abs_top_srcdir=$srcdir ;;
1634 *) # Relative name.
1635 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1636 ac_top_srcdir=$ac_top_build_prefix$srcdir
1637 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1638 esac
1639 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641 cd "$ac_dir" || { ac_status=$?; continue; }
1642 # Check for guested configure.
1643 if test -f "$ac_srcdir/configure.gnu"; then
1644 echo &&
1645 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1646 elif test -f "$ac_srcdir/configure"; then
1647 echo &&
1648 $SHELL "$ac_srcdir/configure" --help=recursive
1649 else
1650 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1651 fi || ac_status=$?
1652 cd "$ac_pwd" || { ac_status=$?; break; }
1653 done
1656 test -n "$ac_init_help" && exit $ac_status
1657 if $ac_init_version; then
1658 cat <<\_ACEOF
1659 gperftools configure 2.0
1660 generated by GNU Autoconf 2.65
1662 Copyright (C) 2009 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1665 _ACEOF
1666 exit
1669 ## ------------------------ ##
1670 ## Autoconf initialization. ##
1671 ## ------------------------ ##
1673 # ac_fn_cxx_try_compile LINENO
1674 # ----------------------------
1675 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_cxx_try_compile ()
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext
1680 if { { ac_try="$ac_compile"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_cxx_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext; 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 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 as_fn_set_status $ac_retval
1709 } # ac_fn_cxx_try_compile
1711 # ac_fn_c_try_compile LINENO
1712 # --------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_compile ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext; then :
1737 ac_retval=0
1738 else
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.$ac_ext >&5
1742 ac_retval=1
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 as_fn_set_status $ac_retval
1747 } # ac_fn_c_try_compile
1749 # ac_fn_c_try_cpp LINENO
1750 # ----------------------
1751 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1752 ac_fn_c_try_cpp ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 if { { ac_try="$ac_cpp conftest.$ac_ext"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } >/dev/null && {
1771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1772 test ! -s conftest.err
1773 }; then :
1774 ac_retval=0
1775 else
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1779 ac_retval=1
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782 as_fn_set_status $ac_retval
1784 } # ac_fn_c_try_cpp
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 ac_fn_c_try_link ()
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1794 case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797 esac
1798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 $as_test_x conftest$ac_exeext
1814 }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=1
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1828 as_fn_set_status $ac_retval
1830 } # ac_fn_c_try_link
1832 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1833 # -------------------------------------------------------
1834 # Tests whether HEADER exists and can be compiled using the include files in
1835 # INCLUDES, setting the cache variable VAR accordingly.
1836 ac_fn_c_check_header_compile ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1842 $as_echo_n "(cached) " >&6
1843 else
1844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845 /* end confdefs.h. */
1847 #include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850 eval "$3=yes"
1851 else
1852 eval "$3=no"
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 eval ac_res=\$$3
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 } # ac_fn_c_check_header_compile
1863 # ac_fn_c_try_run LINENO
1864 # ----------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1866 # that executables *can* be run.
1867 ac_fn_c_try_run ()
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 if { { ac_try="$ac_link"
1871 case "(($ac_try" in
1872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873 *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_link") 2>&5
1878 ac_status=$?
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1881 { { case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_try") 2>&5
1888 ac_status=$?
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; }; }; then :
1891 ac_retval=0
1892 else
1893 $as_echo "$as_me: program exited with status $ac_status" >&5
1894 $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1897 ac_retval=$ac_status
1899 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901 as_fn_set_status $ac_retval
1903 } # ac_fn_c_try_run
1905 # ac_fn_c_check_func LINENO FUNC VAR
1906 # ----------------------------------
1907 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1908 ac_fn_c_check_func ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914 $as_echo_n "(cached) " >&6
1915 else
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1920 #define $2 innocuous_$2
1922 /* System header to define __stub macros and hopefully few prototypes,
1923 which can conflict with char $2 (); below.
1924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1925 <limits.h> exists even on freestanding compilers. */
1927 #ifdef __STDC__
1928 # include <limits.h>
1929 #else
1930 # include <assert.h>
1931 #endif
1933 #undef $2
1935 /* Override any GCC internal prototype to avoid an error.
1936 Use char because int might match the return type of a GCC
1937 builtin and then its argument prototype would still apply. */
1938 #ifdef __cplusplus
1939 extern "C"
1940 #endif
1941 char $2 ();
1942 /* The GNU C library defines this for functions which it implements
1943 to always fail with ENOSYS. Some functions are actually named
1944 something starting with __ and the normal name is an alias. */
1945 #if defined __stub_$2 || defined __stub___$2
1946 choke me
1947 #endif
1950 main ()
1952 return $2 ();
1954 return 0;
1956 _ACEOF
1957 if ac_fn_c_try_link "$LINENO"; then :
1958 eval "$3=yes"
1959 else
1960 eval "$3=no"
1962 rm -f core conftest.err conftest.$ac_objext \
1963 conftest$ac_exeext conftest.$ac_ext
1965 eval ac_res=\$$3
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967 $as_echo "$ac_res" >&6; }
1968 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 } # ac_fn_c_check_func
1972 # ac_fn_cxx_try_cpp LINENO
1973 # ------------------------
1974 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1975 ac_fn_cxx_try_cpp ()
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 if { { ac_try="$ac_cpp conftest.$ac_ext"
1979 case "(($ac_try" in
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1982 esac
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1986 ac_status=$?
1987 if test -s conftest.err; then
1988 grep -v '^ *+' conftest.err >conftest.er1
1989 cat conftest.er1 >&5
1990 mv -f conftest.er1 conftest.err
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } >/dev/null && {
1994 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1995 test ! -s conftest.err
1996 }; then :
1997 ac_retval=0
1998 else
1999 $as_echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2002 ac_retval=1
2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2005 as_fn_set_status $ac_retval
2007 } # ac_fn_cxx_try_cpp
2009 # ac_fn_cxx_try_link LINENO
2010 # -------------------------
2011 # Try to link conftest.$ac_ext, and return whether this succeeded.
2012 ac_fn_cxx_try_link ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 rm -f conftest.$ac_objext conftest$ac_exeext
2016 if { { ac_try="$ac_link"
2017 case "(($ac_try" in
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2020 esac
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_link") 2>conftest.err
2024 ac_status=$?
2025 if test -s conftest.err; then
2026 grep -v '^ *+' conftest.err >conftest.er1
2027 cat conftest.er1 >&5
2028 mv -f conftest.er1 conftest.err
2030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2031 test $ac_status = 0; } && {
2032 test -z "$ac_cxx_werror_flag" ||
2033 test ! -s conftest.err
2034 } && test -s conftest$ac_exeext && {
2035 test "$cross_compiling" = yes ||
2036 $as_test_x conftest$ac_exeext
2037 }; then :
2038 ac_retval=0
2039 else
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2043 ac_retval=1
2045 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2046 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2047 # interfere with the next link command; also delete a directory that is
2048 # left behind by Apple's compiler. We do this before executing the actions.
2049 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051 as_fn_set_status $ac_retval
2053 } # ac_fn_cxx_try_link
2055 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2056 # -------------------------------------------
2057 # Tests whether TYPE exists after having included INCLUDES, setting cache
2058 # variable VAR accordingly.
2059 ac_fn_c_check_type ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2065 $as_echo_n "(cached) " >&6
2066 else
2067 eval "$3=no"
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2072 main ()
2074 if (sizeof ($2))
2075 return 0;
2077 return 0;
2079 _ACEOF
2080 if ac_fn_c_try_compile "$LINENO"; then :
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2085 main ()
2087 if (sizeof (($2)))
2088 return 0;
2090 return 0;
2092 _ACEOF
2093 if ac_fn_c_try_compile "$LINENO"; then :
2095 else
2096 eval "$3=yes"
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 eval ac_res=\$$3
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2104 $as_echo "$ac_res" >&6; }
2105 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107 } # ac_fn_c_check_type
2109 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2110 # -------------------------------------------------------
2111 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2112 # the include files in INCLUDES and setting the cache variable VAR
2113 # accordingly.
2114 ac_fn_c_check_header_mongrel ()
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2119 $as_echo_n "checking for $2... " >&6; }
2120 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2121 $as_echo_n "(cached) " >&6
2123 eval ac_res=\$$3
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 else
2127 # Is the header compilable?
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2129 $as_echo_n "checking $2 usability... " >&6; }
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2133 #include <$2>
2134 _ACEOF
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136 ac_header_compiler=yes
2137 else
2138 ac_header_compiler=no
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2142 $as_echo "$ac_header_compiler" >&6; }
2144 # Is the header present?
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2146 $as_echo_n "checking $2 presence... " >&6; }
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2149 #include <$2>
2150 _ACEOF
2151 if ac_fn_c_try_cpp "$LINENO"; then :
2152 ac_header_preproc=yes
2153 else
2154 ac_header_preproc=no
2156 rm -f conftest.err conftest.$ac_ext
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2158 $as_echo "$ac_header_preproc" >&6; }
2160 # So? What about this header?
2161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2162 yes:no: )
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2164 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2166 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2168 no:yes:* )
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2170 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2172 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2174 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2176 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2178 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2179 ( cat <<\_ASBOX
2180 ## ------------------------------------------------ ##
2181 ## Report this to google-perftools@googlegroups.com ##
2182 ## ------------------------------------------------ ##
2183 _ASBOX
2184 ) | sed "s/^/$as_me: WARNING: /" >&2
2186 esac
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188 $as_echo_n "checking for $2... " >&6; }
2189 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2190 $as_echo_n "(cached) " >&6
2191 else
2192 eval "$3=\$ac_header_compiler"
2194 eval ac_res=\$$3
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2198 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2200 } # ac_fn_c_check_header_mongrel
2202 # ac_fn_c_check_decl LINENO SYMBOL VAR
2203 # ------------------------------------
2204 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2205 ac_fn_c_check_decl ()
2207 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2209 $as_echo_n "checking whether $2 is declared... " >&6; }
2210 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2211 $as_echo_n "(cached) " >&6
2212 else
2213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h. */
2217 main ()
2219 #ifndef $2
2220 (void) $2;
2221 #endif
2224 return 0;
2226 _ACEOF
2227 if ac_fn_c_try_compile "$LINENO"; then :
2228 eval "$3=yes"
2229 else
2230 eval "$3=no"
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 eval ac_res=\$$3
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2236 $as_echo "$ac_res" >&6; }
2237 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2239 } # ac_fn_c_check_decl
2240 cat >config.log <<_ACEOF
2241 This file contains any messages produced by compilers while
2242 running configure, to aid debugging if configure makes a mistake.
2244 It was created by gperftools $as_me 2.0, which was
2245 generated by GNU Autoconf 2.65. Invocation command line was
2247 $ $0 $@
2249 _ACEOF
2250 exec 5>>config.log
2252 cat <<_ASUNAME
2253 ## --------- ##
2254 ## Platform. ##
2255 ## --------- ##
2257 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2258 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2259 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2260 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2261 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2263 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2264 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2266 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2267 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2268 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2269 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2270 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2271 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2272 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2274 _ASUNAME
2276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 for as_dir in $PATH
2279 IFS=$as_save_IFS
2280 test -z "$as_dir" && as_dir=.
2281 $as_echo "PATH: $as_dir"
2282 done
2283 IFS=$as_save_IFS
2285 } >&5
2287 cat >&5 <<_ACEOF
2290 ## ----------- ##
2291 ## Core tests. ##
2292 ## ----------- ##
2294 _ACEOF
2297 # Keep a trace of the command line.
2298 # Strip out --no-create and --no-recursion so they do not pile up.
2299 # Strip out --silent because we don't want to record it for future runs.
2300 # Also quote any args containing shell meta-characters.
2301 # Make two passes to allow for proper duplicate-argument suppression.
2302 ac_configure_args=
2303 ac_configure_args0=
2304 ac_configure_args1=
2305 ac_must_keep_next=false
2306 for ac_pass in 1 2
2308 for ac_arg
2310 case $ac_arg in
2311 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2312 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2313 | -silent | --silent | --silen | --sile | --sil)
2314 continue ;;
2315 *\'*)
2316 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2317 esac
2318 case $ac_pass in
2319 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2321 as_fn_append ac_configure_args1 " '$ac_arg'"
2322 if test $ac_must_keep_next = true; then
2323 ac_must_keep_next=false # Got value, back to normal.
2324 else
2325 case $ac_arg in
2326 *=* | --config-cache | -C | -disable-* | --disable-* \
2327 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2328 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2329 | -with-* | --with-* | -without-* | --without-* | --x)
2330 case "$ac_configure_args0 " in
2331 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2332 esac
2334 -* ) ac_must_keep_next=true ;;
2335 esac
2337 as_fn_append ac_configure_args " '$ac_arg'"
2339 esac
2340 done
2341 done
2342 { ac_configure_args0=; unset ac_configure_args0;}
2343 { ac_configure_args1=; unset ac_configure_args1;}
2345 # When interrupted or exit'd, cleanup temporary files, and complete
2346 # config.log. We remove comments because anyway the quotes in there
2347 # would cause problems or look ugly.
2348 # WARNING: Use '\'' to represent an apostrophe within the trap.
2349 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2350 trap 'exit_status=$?
2351 # Save into config.log some information that might help in debugging.
2353 echo
2355 cat <<\_ASBOX
2356 ## ---------------- ##
2357 ## Cache variables. ##
2358 ## ---------------- ##
2359 _ASBOX
2360 echo
2361 # The following way of writing the cache mishandles newlines in values,
2363 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2364 eval ac_val=\$$ac_var
2365 case $ac_val in #(
2366 *${as_nl}*)
2367 case $ac_var in #(
2368 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2369 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2370 esac
2371 case $ac_var in #(
2372 _ | IFS | as_nl) ;; #(
2373 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2374 *) { eval $ac_var=; unset $ac_var;} ;;
2375 esac ;;
2376 esac
2377 done
2378 (set) 2>&1 |
2379 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2380 *${as_nl}ac_space=\ *)
2381 sed -n \
2382 "s/'\''/'\''\\\\'\'''\''/g;
2383 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2384 ;; #(
2386 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2388 esac |
2389 sort
2391 echo
2393 cat <<\_ASBOX
2394 ## ----------------- ##
2395 ## Output variables. ##
2396 ## ----------------- ##
2397 _ASBOX
2398 echo
2399 for ac_var in $ac_subst_vars
2401 eval ac_val=\$$ac_var
2402 case $ac_val in
2403 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2404 esac
2405 $as_echo "$ac_var='\''$ac_val'\''"
2406 done | sort
2407 echo
2409 if test -n "$ac_subst_files"; then
2410 cat <<\_ASBOX
2411 ## ------------------- ##
2412 ## File substitutions. ##
2413 ## ------------------- ##
2414 _ASBOX
2415 echo
2416 for ac_var in $ac_subst_files
2418 eval ac_val=\$$ac_var
2419 case $ac_val in
2420 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2421 esac
2422 $as_echo "$ac_var='\''$ac_val'\''"
2423 done | sort
2424 echo
2427 if test -s confdefs.h; then
2428 cat <<\_ASBOX
2429 ## ----------- ##
2430 ## confdefs.h. ##
2431 ## ----------- ##
2432 _ASBOX
2433 echo
2434 cat confdefs.h
2435 echo
2437 test "$ac_signal" != 0 &&
2438 $as_echo "$as_me: caught signal $ac_signal"
2439 $as_echo "$as_me: exit $exit_status"
2440 } >&5
2441 rm -f core *.core core.conftest.* &&
2442 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2443 exit $exit_status
2445 for ac_signal in 1 2 13 15; do
2446 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2447 done
2448 ac_signal=0
2450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2451 rm -f -r conftest* confdefs.h
2453 $as_echo "/* confdefs.h */" > confdefs.h
2455 # Predefined preprocessor variables.
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_NAME "$PACKAGE_NAME"
2459 _ACEOF
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2463 _ACEOF
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2467 _ACEOF
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_STRING "$PACKAGE_STRING"
2471 _ACEOF
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2475 _ACEOF
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_URL "$PACKAGE_URL"
2479 _ACEOF
2482 # Let the site file select an alternate cache file if it wants to.
2483 # Prefer an explicitly selected file to automatically selected ones.
2484 ac_site_file1=NONE
2485 ac_site_file2=NONE
2486 if test -n "$CONFIG_SITE"; then
2487 ac_site_file1=$CONFIG_SITE
2488 elif test "x$prefix" != xNONE; then
2489 ac_site_file1=$prefix/share/config.site
2490 ac_site_file2=$prefix/etc/config.site
2491 else
2492 ac_site_file1=$ac_default_prefix/share/config.site
2493 ac_site_file2=$ac_default_prefix/etc/config.site
2495 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2497 test "x$ac_site_file" = xNONE && continue
2498 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2500 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2501 sed 's/^/| /' "$ac_site_file" >&5
2502 . "$ac_site_file"
2504 done
2506 if test -r "$cache_file"; then
2507 # Some versions of bash will fail to source /dev/null (special files
2508 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2509 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2511 $as_echo "$as_me: loading cache $cache_file" >&6;}
2512 case $cache_file in
2513 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2514 *) . "./$cache_file";;
2515 esac
2517 else
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2519 $as_echo "$as_me: creating cache $cache_file" >&6;}
2520 >$cache_file
2523 as_fn_append ac_header_list " stdlib.h"
2524 as_fn_append ac_header_list " unistd.h"
2525 as_fn_append ac_header_list " sys/param.h"
2526 # Check that the precious variables saved in the cache have kept the same
2527 # value.
2528 ac_cache_corrupted=false
2529 for ac_var in $ac_precious_vars; do
2530 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2531 eval ac_new_set=\$ac_env_${ac_var}_set
2532 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2533 eval ac_new_val=\$ac_env_${ac_var}_value
2534 case $ac_old_set,$ac_new_set in
2535 set,)
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2537 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2538 ac_cache_corrupted=: ;;
2539 ,set)
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2541 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2542 ac_cache_corrupted=: ;;
2543 ,);;
2545 if test "x$ac_old_val" != "x$ac_new_val"; then
2546 # differences in whitespace do not lead to failure.
2547 ac_old_val_w=`echo x $ac_old_val`
2548 ac_new_val_w=`echo x $ac_new_val`
2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2551 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2552 ac_cache_corrupted=:
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2555 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2556 eval $ac_var=\$ac_old_val
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2559 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2561 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2562 fi;;
2563 esac
2564 # Pass precious variables to config.status.
2565 if test "$ac_new_set" = set; then
2566 case $ac_new_val in
2567 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2568 *) ac_arg=$ac_var=$ac_new_val ;;
2569 esac
2570 case " $ac_configure_args " in
2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2572 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2573 esac
2575 done
2576 if $ac_cache_corrupted; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2581 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2583 ## -------------------- ##
2584 ## Main body of script. ##
2585 ## -------------------- ##
2587 ac_ext=c
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594 # Update this value for every release! (A:B:C will map to foo.so.(A-C).C.B)
2595 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
2596 TCMALLOC_SO_VERSION=5:0:1
2597 PROFILER_SO_VERSION=3:0:3
2602 # The argument here is just something that should be in the current directory
2603 # (for sanity checking)
2606 ac_aux_dir=
2607 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2608 for ac_t in install-sh install.sh shtool; do
2609 if test -f "$ac_dir/$ac_t"; then
2610 ac_aux_dir=$ac_dir
2611 ac_install_sh="$ac_aux_dir/$ac_t -c"
2612 break 2
2614 done
2615 done
2616 if test -z "$ac_aux_dir"; then
2617 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2620 # These three variables are undocumented and unsupported,
2621 # and are intended to be withdrawn in a future Autoconf release.
2622 # They can cause serious problems if a builder's source tree is in a directory
2623 # whose full name contains unusual characters.
2624 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2625 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2626 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2629 # Make sure we can run config.sub.
2630 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2631 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2634 $as_echo_n "checking build system type... " >&6; }
2635 if test "${ac_cv_build+set}" = set; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 ac_build_alias=$build_alias
2639 test "x$ac_build_alias" = x &&
2640 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2641 test "x$ac_build_alias" = x &&
2642 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2643 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2644 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2648 $as_echo "$ac_cv_build" >&6; }
2649 case $ac_cv_build in
2650 *-*-*) ;;
2651 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2652 esac
2653 build=$ac_cv_build
2654 ac_save_IFS=$IFS; IFS='-'
2655 set x $ac_cv_build
2656 shift
2657 build_cpu=$1
2658 build_vendor=$2
2659 shift; shift
2660 # Remember, the first character of IFS is used to create $*,
2661 # except with old shells:
2662 build_os=$*
2663 IFS=$ac_save_IFS
2664 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2668 $as_echo_n "checking host system type... " >&6; }
2669 if test "${ac_cv_host+set}" = set; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 if test "x$host_alias" = x; then
2673 ac_cv_host=$ac_cv_build
2674 else
2675 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2676 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2681 $as_echo "$ac_cv_host" >&6; }
2682 case $ac_cv_host in
2683 *-*-*) ;;
2684 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2685 esac
2686 host=$ac_cv_host
2687 ac_save_IFS=$IFS; IFS='-'
2688 set x $ac_cv_host
2689 shift
2690 host_cpu=$1
2691 host_vendor=$2
2692 shift; shift
2693 # Remember, the first character of IFS is used to create $*,
2694 # except with old shells:
2695 host_os=$*
2696 IFS=$ac_save_IFS
2697 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2700 am__api_version='1.10'
2702 # Find a good install program. We prefer a C program (faster),
2703 # so one script is as good as another. But avoid the broken or
2704 # incompatible versions:
2705 # SysV /etc/install, /usr/sbin/install
2706 # SunOS /usr/etc/install
2707 # IRIX /sbin/install
2708 # AIX /bin/install
2709 # AmigaOS /C/install, which installs bootblocks on floppy discs
2710 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2711 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2712 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2713 # OS/2's system install, which has a completely different semantic
2714 # ./install, which can be erroneously created by make from ./install.sh.
2715 # Reject install programs that cannot install multiple files.
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2717 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2718 if test -z "$INSTALL"; then
2719 if test "${ac_cv_path_install+set}" = set; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 # Account for people who put trailing slashes in PATH elements.
2728 case $as_dir/ in #((
2729 ./ | .// | /[cC]/* | \
2730 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2731 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2732 /usr/ucb/* ) ;;
2734 # OSF1 and SCO ODT 3.0 have their own names for install.
2735 # Don't use installbsd from OSF since it installs stuff as root
2736 # by default.
2737 for ac_prog in ginstall scoinst install; do
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2740 if test $ac_prog = install &&
2741 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2742 # AIX install. It has an incompatible calling convention.
2744 elif test $ac_prog = install &&
2745 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2746 # program-specific install script used by HP pwplus--don't use.
2748 else
2749 rm -rf conftest.one conftest.two conftest.dir
2750 echo one > conftest.one
2751 echo two > conftest.two
2752 mkdir conftest.dir
2753 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2754 test -s conftest.one && test -s conftest.two &&
2755 test -s conftest.dir/conftest.one &&
2756 test -s conftest.dir/conftest.two
2757 then
2758 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2759 break 3
2763 done
2764 done
2766 esac
2768 done
2769 IFS=$as_save_IFS
2771 rm -rf conftest.one conftest.two conftest.dir
2774 if test "${ac_cv_path_install+set}" = set; then
2775 INSTALL=$ac_cv_path_install
2776 else
2777 # As a last resort, use the slow shell script. Don't cache a
2778 # value for INSTALL within a source directory, because that will
2779 # break other packages using the cache if that directory is
2780 # removed, or if the value is a relative name.
2781 INSTALL=$ac_install_sh
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2785 $as_echo "$INSTALL" >&6; }
2787 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2788 # It thinks the first close brace ends the variable substitution.
2789 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2791 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2793 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2796 $as_echo_n "checking whether build environment is sane... " >&6; }
2797 # Just in case
2798 sleep 1
2799 echo timestamp > conftest.file
2800 # Do `set' in a subshell so we don't clobber the current shell's
2801 # arguments. Must try -L first in case configure is actually a
2802 # symlink; some systems play weird games with the mod time of symlinks
2803 # (eg FreeBSD returns the mod time of the symlink's containing
2804 # directory).
2805 if (
2806 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2807 if test "$*" = "X"; then
2808 # -L didn't work.
2809 set X `ls -t $srcdir/configure conftest.file`
2811 rm -f conftest.file
2812 if test "$*" != "X $srcdir/configure conftest.file" \
2813 && test "$*" != "X conftest.file $srcdir/configure"; then
2815 # If neither matched, then we have a broken ls. This can happen
2816 # if, for instance, CONFIG_SHELL is bash and it inherits a
2817 # broken ls alias from the environment. This has actually
2818 # happened. Such a system could not be considered "sane".
2819 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2820 alias in your environment" "$LINENO" 5
2823 test "$2" = conftest.file
2825 then
2826 # Ok.
2828 else
2829 as_fn_error "newly created file is older than distributed files!
2830 Check your system clock" "$LINENO" 5
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2833 $as_echo "yes" >&6; }
2834 test "$program_prefix" != NONE &&
2835 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2836 # Use a double $ so make ignores it.
2837 test "$program_suffix" != NONE &&
2838 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2839 # Double any \ or $.
2840 # By default was `s,x,x', remove it if useless.
2841 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2842 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2844 # expand $ac_aux_dir to an absolute path
2845 am_aux_dir=`cd $ac_aux_dir && pwd`
2847 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2848 # Use eval to expand $SHELL
2849 if eval "$MISSING --run true"; then
2850 am_missing_run="$MISSING --run "
2851 else
2852 am_missing_run=
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2854 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2858 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2859 if test -z "$MKDIR_P"; then
2860 if test "${ac_cv_path_mkdir+set}" = set; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_prog in mkdir gmkdir; do
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2871 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2872 'mkdir (GNU coreutils) '* | \
2873 'mkdir (coreutils) '* | \
2874 'mkdir (fileutils) '4.1*)
2875 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2876 break 3;;
2877 esac
2878 done
2879 done
2880 done
2881 IFS=$as_save_IFS
2885 test -d ./--version && rmdir ./--version
2886 if test "${ac_cv_path_mkdir+set}" = set; then
2887 MKDIR_P="$ac_cv_path_mkdir -p"
2888 else
2889 # As a last resort, use the slow shell script. Don't cache a
2890 # value for MKDIR_P within a source directory, because that will
2891 # break other packages using the cache if that directory is
2892 # removed, or if the value is a relative name.
2893 MKDIR_P="$ac_install_sh -d"
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2897 $as_echo "$MKDIR_P" >&6; }
2899 mkdir_p="$MKDIR_P"
2900 case $mkdir_p in
2901 [\\/$]* | ?:[\\/]*) ;;
2902 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2903 esac
2905 for ac_prog in gawk mawk nawk awk
2907 # Extract the first word of "$ac_prog", so it can be a program name with args.
2908 set dummy $ac_prog; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if test "${ac_cv_prog_AWK+set}" = set; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if test -n "$AWK"; then
2915 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_AWK="$ac_prog"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2928 done
2929 done
2930 IFS=$as_save_IFS
2934 AWK=$ac_cv_prog_AWK
2935 if test -n "$AWK"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2937 $as_echo "$AWK" >&6; }
2938 else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2944 test -n "$AWK" && break
2945 done
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2948 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2949 set x ${MAKE-make}
2950 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2951 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 cat >conftest.make <<\_ACEOF
2955 SHELL = /bin/sh
2956 all:
2957 @echo '@@@%%%=$(MAKE)=@@@%%%'
2958 _ACEOF
2959 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2960 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2961 *@@@%%%=?*=@@@%%%*)
2962 eval ac_cv_prog_make_${ac_make}_set=yes;;
2964 eval ac_cv_prog_make_${ac_make}_set=no;;
2965 esac
2966 rm -f conftest.make
2968 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2970 $as_echo "yes" >&6; }
2971 SET_MAKE=
2972 else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2975 SET_MAKE="MAKE=${MAKE-make}"
2978 rm -rf .tst 2>/dev/null
2979 mkdir .tst 2>/dev/null
2980 if test -d .tst; then
2981 am__leading_dot=.
2982 else
2983 am__leading_dot=_
2985 rmdir .tst 2>/dev/null
2987 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2988 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2989 # is not polluted with repeated "-I."
2990 am__isrc=' -I$(srcdir)'
2991 # test to see if srcdir already configured
2992 if test -f $srcdir/config.status; then
2993 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2997 # test whether we have cygpath
2998 if test -z "$CYGPATH_W"; then
2999 if (cygpath --version) >/dev/null 2>/dev/null; then
3000 CYGPATH_W='cygpath -w'
3001 else
3002 CYGPATH_W=echo
3007 # Define the identity of the package.
3008 PACKAGE='gperftools'
3009 VERSION='2.0'
3012 cat >>confdefs.h <<_ACEOF
3013 #define PACKAGE "$PACKAGE"
3014 _ACEOF
3017 cat >>confdefs.h <<_ACEOF
3018 #define VERSION "$VERSION"
3019 _ACEOF
3021 # Some tools Automake needs.
3023 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3026 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3029 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3032 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3035 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3037 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
3039 # Installed binaries are usually stripped using `strip' when the user
3040 # run `make install-strip'. However `strip' might not be the right
3041 # tool to use in cross-compilation environments, therefore Automake
3042 # will honor the `STRIP' environment variable to overrule this program.
3043 if test "$cross_compiling" != no; then
3044 if test -n "$ac_tool_prefix"; then
3045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3046 set dummy ${ac_tool_prefix}strip; ac_word=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_STRIP+set}" = set; then :
3050 $as_echo_n "(cached) " >&6
3051 else
3052 if test -n "$STRIP"; then
3053 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3054 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2
3066 done
3067 done
3068 IFS=$as_save_IFS
3072 STRIP=$ac_cv_prog_STRIP
3073 if test -n "$STRIP"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3075 $as_echo "$STRIP" >&6; }
3076 else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3083 if test -z "$ac_cv_prog_STRIP"; then
3084 ac_ct_STRIP=$STRIP
3085 # Extract the first word of "strip", so it can be a program name with args.
3086 set dummy strip; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3090 $as_echo_n "(cached) " >&6
3091 else
3092 if test -n "$ac_ct_STRIP"; then
3093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3102 ac_cv_prog_ac_ct_STRIP="strip"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3106 done
3107 done
3108 IFS=$as_save_IFS
3112 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3113 if test -n "$ac_ct_STRIP"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3115 $as_echo "$ac_ct_STRIP" >&6; }
3116 else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3121 if test "x$ac_ct_STRIP" = x; then
3122 STRIP=":"
3123 else
3124 case $cross_compiling:$ac_tool_warned in
3125 yes:)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3129 esac
3130 STRIP=$ac_ct_STRIP
3132 else
3133 STRIP="$ac_cv_prog_STRIP"
3137 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3139 # We need awk for the "check" target. The system "awk" is bad on
3140 # some platforms.
3141 # Always define AMTAR for backward compatibility.
3143 AMTAR=${AMTAR-"${am_missing_run}tar"}
3145 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3151 ac_config_headers="$ac_config_headers src/config.h"
3154 # Export the version information (for tc_version and friends)
3155 TC_VERSION_MAJOR=`expr "$PACKAGE_VERSION" : '\([0-9]*\)'`
3156 TC_VERSION_MINOR=`expr "$PACKAGE_VERSION" : '[0-9]*\.\([0-9]*\)'`
3157 TC_VERSION_PATCH=`expr "$PACKAGE_VERSION" : '[0-9]*\.[0-9]*\(.*\)$'`
3163 # The user can choose not to compile in the heap-profiler, the
3164 # heap-checker, or the cpu-profiler. There's also the possibility
3165 # for a 'fully minimal' compile, which leaves out the stacktrace
3166 # code as well. By default, we include all of these that the
3167 # target system supports.
3168 default_enable_cpu_profiler=yes
3169 default_enable_heap_profiler=yes
3170 default_enable_heap_checker=yes
3171 default_enable_debugalloc=yes
3172 default_enable_minimal=no
3173 need_nanosleep=yes # Used later, to decide if to run ACX_NANOSLEEP
3174 case "$host" in
3175 *-mingw*) default_enable_minimal=yes; default_enable_debugalloc=no;
3176 need_nanosleep=no;;
3177 *-cygwin*) default_enable_heap_checker=no; default_enable_cpu_profiler=no;;
3178 *-freebsd*) default_enable_heap_checker=no;;
3179 *-darwin*) default_enable_heap_checker=no;;
3180 esac
3182 # Check whether --enable-cpu-profiler was given.
3183 if test "${enable_cpu_profiler+set}" = set; then :
3184 enableval=$enable_cpu_profiler;
3185 else
3186 enable_cpu_profiler="$default_enable_cpu_profiler"
3189 # Check whether --enable-heap-profiler was given.
3190 if test "${enable_heap_profiler+set}" = set; then :
3191 enableval=$enable_heap_profiler;
3192 else
3193 enable_heap_profiler="$default_enable_heap_profiler"
3196 # Check whether --enable-heap-checker was given.
3197 if test "${enable_heap_checker+set}" = set; then :
3198 enableval=$enable_heap_checker;
3199 else
3200 enable_heap_checker="$default_enable_heap_checker"
3203 # Check whether --enable-debugalloc was given.
3204 if test "${enable_debugalloc+set}" = set; then :
3205 enableval=$enable_debugalloc;
3206 else
3207 enable_debugalloc="$default_enable_debugalloc"
3210 # Check whether --enable-minimal was given.
3211 if test "${enable_minimal+set}" = set; then :
3212 enableval=$enable_minimal;
3213 else
3214 enable_minimal="$default_enable_minimal"
3217 if test "$enable_minimal" = yes; then
3218 enable_cpu_profiler=no
3219 enable_heap_profiler=no
3220 enable_heap_checker=no
3224 # Checks for programs.
3225 ac_ext=cpp
3226 ac_cpp='$CXXCPP $CPPFLAGS'
3227 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3230 if test -z "$CXX"; then
3231 if test -n "$CCC"; then
3232 CXX=$CCC
3233 else
3234 if test -n "$ac_tool_prefix"; then
3235 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240 $as_echo_n "checking for $ac_word... " >&6; }
3241 if test "${ac_cv_prog_CXX+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 if test -n "$CXX"; then
3245 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3246 else
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3258 done
3259 done
3260 IFS=$as_save_IFS
3264 CXX=$ac_cv_prog_CXX
3265 if test -n "$CXX"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3267 $as_echo "$CXX" >&6; }
3268 else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3274 test -n "$CXX" && break
3275 done
3277 if test -z "$CXX"; then
3278 ac_ct_CXX=$CXX
3279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3281 # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$ac_ct_CXX"; then
3289 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_ac_ct_CXX="$ac_prog"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3302 done
3303 done
3304 IFS=$as_save_IFS
3308 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3309 if test -n "$ac_ct_CXX"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3311 $as_echo "$ac_ct_CXX" >&6; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3318 test -n "$ac_ct_CXX" && break
3319 done
3321 if test "x$ac_ct_CXX" = x; then
3322 CXX="g++"
3323 else
3324 case $cross_compiling:$ac_tool_warned in
3325 yes:)
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3328 ac_tool_warned=yes ;;
3329 esac
3330 CXX=$ac_ct_CXX
3336 # Provide some information about the compiler.
3337 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3338 set X $ac_compile
3339 ac_compiler=$2
3340 for ac_option in --version -v -V -qversion; do
3341 { { ac_try="$ac_compiler $ac_option >&5"
3342 case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345 esac
3346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347 $as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3349 ac_status=$?
3350 if test -s conftest.err; then
3351 sed '10a\
3352 ... rest of stderr output deleted ...
3353 10q' conftest.err >conftest.er1
3354 cat conftest.er1 >&5
3356 rm -f conftest.er1 conftest.err
3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358 test $ac_status = 0; }
3359 done
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3365 main ()
3369 return 0;
3371 _ACEOF
3372 ac_clean_files_save=$ac_clean_files
3373 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3374 # Try to create an executable without -o first, disregard a.out.
3375 # It will help us diagnose broken compilers, and finding out an intuition
3376 # of exeext.
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3378 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3379 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3381 # The possible output files:
3382 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3384 ac_rmfiles=
3385 for ac_file in $ac_files
3387 case $ac_file in
3388 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3389 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3390 esac
3391 done
3392 rm -f $ac_rmfiles
3394 if { { ac_try="$ac_link_default"
3395 case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398 esac
3399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400 $as_echo "$ac_try_echo"; } >&5
3401 (eval "$ac_link_default") 2>&5
3402 ac_status=$?
3403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3404 test $ac_status = 0; }; then :
3405 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3406 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3407 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3408 # so that the user can short-circuit this test for compilers unknown to
3409 # Autoconf.
3410 for ac_file in $ac_files ''
3412 test -f "$ac_file" || continue
3413 case $ac_file in
3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3416 [ab].out )
3417 # We found the default executable, but exeext='' is most
3418 # certainly right.
3419 break;;
3420 *.* )
3421 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3422 then :; else
3423 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3425 # We set ac_cv_exeext here because the later test for it is not
3426 # safe: cross compilers may not add the suffix if given an `-o'
3427 # argument, so we may need to know it at that point already.
3428 # Even if this section looks crufty: it has the advantage of
3429 # actually working.
3430 break;;
3432 break;;
3433 esac
3434 done
3435 test "$ac_cv_exeext" = no && ac_cv_exeext=
3437 else
3438 ac_file=''
3440 if test -z "$ac_file"; then :
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3443 $as_echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 { as_fn_set_status 77
3449 as_fn_error "C++ compiler cannot create executables
3450 See \`config.log' for more details." "$LINENO" 5; }; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3453 $as_echo "yes" >&6; }
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3456 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3458 $as_echo "$ac_file" >&6; }
3459 ac_exeext=$ac_cv_exeext
3461 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3462 ac_clean_files=$ac_clean_files_save
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3464 $as_echo_n "checking for suffix of executables... " >&6; }
3465 if { { ac_try="$ac_link"
3466 case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_link") 2>&5
3473 ac_status=$?
3474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3475 test $ac_status = 0; }; then :
3476 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3477 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3478 # work properly (i.e., refer to `conftest.exe'), while it won't with
3479 # `rm'.
3480 for ac_file in conftest.exe conftest conftest.*; do
3481 test -f "$ac_file" || continue
3482 case $ac_file in
3483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3484 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3485 break;;
3486 * ) break;;
3487 esac
3488 done
3489 else
3490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492 as_fn_error "cannot compute suffix of executables: cannot compile and link
3493 See \`config.log' for more details." "$LINENO" 5; }
3495 rm -f conftest conftest$ac_cv_exeext
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3497 $as_echo "$ac_cv_exeext" >&6; }
3499 rm -f conftest.$ac_ext
3500 EXEEXT=$ac_cv_exeext
3501 ac_exeext=$EXEEXT
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504 #include <stdio.h>
3506 main ()
3508 FILE *f = fopen ("conftest.out", "w");
3509 return ferror (f) || fclose (f) != 0;
3512 return 0;
3514 _ACEOF
3515 ac_clean_files="$ac_clean_files conftest.out"
3516 # Check that the compiler produces executables we can run. If not, either
3517 # the compiler is broken, or we cross compile.
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3519 $as_echo_n "checking whether we are cross compiling... " >&6; }
3520 if test "$cross_compiling" != yes; then
3521 { { ac_try="$ac_link"
3522 case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525 esac
3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 $as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_link") 2>&5
3529 ac_status=$?
3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531 test $ac_status = 0; }
3532 if { ac_try='./conftest$ac_cv_exeext'
3533 { { case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536 esac
3537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3538 $as_echo "$ac_try_echo"; } >&5
3539 (eval "$ac_try") 2>&5
3540 ac_status=$?
3541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3542 test $ac_status = 0; }; }; then
3543 cross_compiling=no
3544 else
3545 if test "$cross_compiling" = maybe; then
3546 cross_compiling=yes
3547 else
3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 as_fn_error "cannot run C++ compiled programs.
3551 If you meant to cross compile, use \`--host'.
3552 See \`config.log' for more details." "$LINENO" 5; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3557 $as_echo "$cross_compiling" >&6; }
3559 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3560 ac_clean_files=$ac_clean_files_save
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3562 $as_echo_n "checking for suffix of object files... " >&6; }
3563 if test "${ac_cv_objext+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3570 main ()
3574 return 0;
3576 _ACEOF
3577 rm -f conftest.o conftest.obj
3578 if { { ac_try="$ac_compile"
3579 case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582 esac
3583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3584 $as_echo "$ac_try_echo"; } >&5
3585 (eval "$ac_compile") 2>&5
3586 ac_status=$?
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }; then :
3589 for ac_file in conftest.o conftest.obj conftest.*; do
3590 test -f "$ac_file" || continue;
3591 case $ac_file in
3592 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3593 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3594 break;;
3595 esac
3596 done
3597 else
3598 $as_echo "$as_me: failed program was:" >&5
3599 sed 's/^/| /' conftest.$ac_ext >&5
3601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error "cannot compute suffix of object files: cannot compile
3604 See \`config.log' for more details." "$LINENO" 5; }
3606 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3609 $as_echo "$ac_cv_objext" >&6; }
3610 OBJEXT=$ac_cv_objext
3611 ac_objext=$OBJEXT
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3613 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3614 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3615 $as_echo_n "(cached) " >&6
3616 else
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3621 main ()
3623 #ifndef __GNUC__
3624 choke me
3625 #endif
3628 return 0;
3630 _ACEOF
3631 if ac_fn_cxx_try_compile "$LINENO"; then :
3632 ac_compiler_gnu=yes
3633 else
3634 ac_compiler_gnu=no
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3641 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3642 if test $ac_compiler_gnu = yes; then
3643 GXX=yes
3644 else
3645 GXX=
3647 ac_test_CXXFLAGS=${CXXFLAGS+set}
3648 ac_save_CXXFLAGS=$CXXFLAGS
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3650 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3651 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3655 ac_cxx_werror_flag=yes
3656 ac_cv_prog_cxx_g=no
3657 CXXFLAGS="-g"
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3662 main ()
3666 return 0;
3668 _ACEOF
3669 if ac_fn_cxx_try_compile "$LINENO"; then :
3670 ac_cv_prog_cxx_g=yes
3671 else
3672 CXXFLAGS=""
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3677 main ()
3681 return 0;
3683 _ACEOF
3684 if ac_fn_cxx_try_compile "$LINENO"; then :
3686 else
3687 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3688 CXXFLAGS="-g"
3689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3690 /* end confdefs.h. */
3693 main ()
3697 return 0;
3699 _ACEOF
3700 if ac_fn_cxx_try_compile "$LINENO"; then :
3701 ac_cv_prog_cxx_g=yes
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3708 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3711 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3712 if test "$ac_test_CXXFLAGS" = set; then
3713 CXXFLAGS=$ac_save_CXXFLAGS
3714 elif test $ac_cv_prog_cxx_g = yes; then
3715 if test "$GXX" = yes; then
3716 CXXFLAGS="-g -O2"
3717 else
3718 CXXFLAGS="-g"
3720 else
3721 if test "$GXX" = yes; then
3722 CXXFLAGS="-O2"
3723 else
3724 CXXFLAGS=
3727 ac_ext=c
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732 DEPDIR="${am__leading_dot}deps"
3734 ac_config_commands="$ac_config_commands depfiles"
3737 am_make=${MAKE-make}
3738 cat > confinc << 'END'
3739 am__doit:
3740 @echo done
3741 .PHONY: am__doit
3743 # If we don't find an include directive, just comment out the code.
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3745 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3746 am__include="#"
3747 am__quote=
3748 _am_result=none
3749 # First try GNU make style include.
3750 echo "include confinc" > confmf
3751 # We grep out `Entering directory' and `Leaving directory'
3752 # messages which can occur if `w' ends up in MAKEFLAGS.
3753 # In particular we don't look at `^make:' because GNU make might
3754 # be invoked under some other name (usually "gmake"), in which
3755 # case it prints its new name instead of `make'.
3756 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3757 am__include=include
3758 am__quote=
3759 _am_result=GNU
3761 # Now try BSD make style include.
3762 if test "$am__include" = "#"; then
3763 echo '.include "confinc"' > confmf
3764 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3765 am__include=.include
3766 am__quote="\""
3767 _am_result=BSD
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3773 $as_echo "$_am_result" >&6; }
3774 rm -f confinc confmf
3776 # Check whether --enable-dependency-tracking was given.
3777 if test "${enable_dependency_tracking+set}" = set; then :
3778 enableval=$enable_dependency_tracking;
3781 if test "x$enable_dependency_tracking" != xno; then
3782 am_depcomp="$ac_aux_dir/depcomp"
3783 AMDEPBACKSLASH='\'
3785 if test "x$enable_dependency_tracking" != xno; then
3786 AMDEP_TRUE=
3787 AMDEP_FALSE='#'
3788 else
3789 AMDEP_TRUE='#'
3790 AMDEP_FALSE=
3795 depcc="$CXX" am_compiler_list=
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3798 $as_echo_n "checking dependency style of $depcc... " >&6; }
3799 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3800 $as_echo_n "(cached) " >&6
3801 else
3802 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3803 # We make a subdir and do the tests there. Otherwise we can end up
3804 # making bogus files that we don't know about and never remove. For
3805 # instance it was reported that on HP-UX the gcc test will end up
3806 # making a dummy file named `D' -- because `-MD' means `put the output
3807 # in D'.
3808 mkdir conftest.dir
3809 # Copy depcomp to subdir because otherwise we won't find it if we're
3810 # using a relative directory.
3811 cp "$am_depcomp" conftest.dir
3812 cd conftest.dir
3813 # We will build objects and dependencies in a subdirectory because
3814 # it helps to detect inapplicable dependency modes. For instance
3815 # both Tru64's cc and ICC support -MD to output dependencies as a
3816 # side effect of compilation, but ICC will put the dependencies in
3817 # the current directory while Tru64 will put them in the object
3818 # directory.
3819 mkdir sub
3821 am_cv_CXX_dependencies_compiler_type=none
3822 if test "$am_compiler_list" = ""; then
3823 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3825 for depmode in $am_compiler_list; do
3826 # Setup a source with many dependencies, because some compilers
3827 # like to wrap large dependency lists on column 80 (with \), and
3828 # we should not choose a depcomp mode which is confused by this.
3830 # We need to recreate these files for each test, as the compiler may
3831 # overwrite some of them when testing with obscure command lines.
3832 # This happens at least with the AIX C compiler.
3833 : > sub/conftest.c
3834 for i in 1 2 3 4 5 6; do
3835 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3836 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3837 # Solaris 8's {/usr,}/bin/sh.
3838 touch sub/conftst$i.h
3839 done
3840 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3842 case $depmode in
3843 nosideeffect)
3844 # after this tag, mechanisms are not by side-effect, so they'll
3845 # only be used when explicitly requested
3846 if test "x$enable_dependency_tracking" = xyes; then
3847 continue
3848 else
3849 break
3852 none) break ;;
3853 esac
3854 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3855 # mode. It turns out that the SunPro C++ compiler does not properly
3856 # handle `-M -o', and we need to detect this.
3857 if depmode=$depmode \
3858 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3859 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3860 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3861 >/dev/null 2>conftest.err &&
3862 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3863 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3864 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3865 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3866 # icc doesn't choke on unknown options, it will just issue warnings
3867 # or remarks (even with -Werror). So we grep stderr for any message
3868 # that says an option was ignored or not supported.
3869 # When given -MP, icc 7.0 and 7.1 complain thusly:
3870 # icc: Command line warning: ignoring option '-M'; no argument required
3871 # The diagnosis changed in icc 8.0:
3872 # icc: Command line remark: option '-MP' not supported
3873 if (grep 'ignoring option' conftest.err ||
3874 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3875 am_cv_CXX_dependencies_compiler_type=$depmode
3876 break
3879 done
3881 cd ..
3882 rm -rf conftest.dir
3883 else
3884 am_cv_CXX_dependencies_compiler_type=none
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3889 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3890 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3893 test "x$enable_dependency_tracking" != xno \
3894 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3895 am__fastdepCXX_TRUE=
3896 am__fastdepCXX_FALSE='#'
3897 else
3898 am__fastdepCXX_TRUE='#'
3899 am__fastdepCXX_FALSE=
3903 ac_ext=c
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908 if test -n "$ac_tool_prefix"; then
3909 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3910 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if test "${ac_cv_prog_CC+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 if test -n "$CC"; then
3917 ac_cv_prog_CC="$CC" # Let the user override the test.
3918 else
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3926 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 break 2
3930 done
3931 done
3932 IFS=$as_save_IFS
3936 CC=$ac_cv_prog_CC
3937 if test -n "$CC"; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939 $as_echo "$CC" >&6; }
3940 else
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942 $as_echo "no" >&6; }
3947 if test -z "$ac_cv_prog_CC"; then
3948 ac_ct_CC=$CC
3949 # Extract the first word of "gcc", so it can be a program name with args.
3950 set dummy gcc; ac_word=$2
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 $as_echo_n "checking for $ac_word... " >&6; }
3953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3954 $as_echo_n "(cached) " >&6
3955 else
3956 if test -n "$ac_ct_CC"; then
3957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3958 else
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3966 ac_cv_prog_ac_ct_CC="gcc"
3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 break 2
3970 done
3971 done
3972 IFS=$as_save_IFS
3976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3977 if test -n "$ac_ct_CC"; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3979 $as_echo "$ac_ct_CC" >&6; }
3980 else
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 $as_echo "no" >&6; }
3985 if test "x$ac_ct_CC" = x; then
3986 CC=""
3987 else
3988 case $cross_compiling:$ac_tool_warned in
3989 yes:)
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3992 ac_tool_warned=yes ;;
3993 esac
3994 CC=$ac_ct_CC
3996 else
3997 CC="$ac_cv_prog_CC"
4000 if test -z "$CC"; then
4001 if test -n "$ac_tool_prefix"; then
4002 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4003 set dummy ${ac_tool_prefix}cc; ac_word=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if test "${ac_cv_prog_CC+set}" = set; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 if test -n "$CC"; then
4010 ac_cv_prog_CC="$CC" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4015 IFS=$as_save_IFS
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4019 ac_cv_prog_CC="${ac_tool_prefix}cc"
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021 break 2
4023 done
4024 done
4025 IFS=$as_save_IFS
4029 CC=$ac_cv_prog_CC
4030 if test -n "$CC"; then
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4032 $as_echo "$CC" >&6; }
4033 else
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4035 $as_echo "no" >&6; }
4041 if test -z "$CC"; then
4042 # Extract the first word of "cc", so it can be a program name with args.
4043 set dummy cc; ac_word=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if test "${ac_cv_prog_CC+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049 if test -n "$CC"; then
4050 ac_cv_prog_CC="$CC" # Let the user override the test.
4051 else
4052 ac_prog_rejected=no
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4061 ac_prog_rejected=yes
4062 continue
4064 ac_cv_prog_CC="cc"
4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4066 break 2
4068 done
4069 done
4070 IFS=$as_save_IFS
4072 if test $ac_prog_rejected = yes; then
4073 # We found a bogon in the path, so make sure we never use it.
4074 set dummy $ac_cv_prog_CC
4075 shift
4076 if test $# != 0; then
4077 # We chose a different compiler from the bogus one.
4078 # However, it has the same basename, so the bogon will be chosen
4079 # first if we set CC to just the basename; use the full file name.
4080 shift
4081 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4086 CC=$ac_cv_prog_CC
4087 if test -n "$CC"; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4089 $as_echo "$CC" >&6; }
4090 else
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092 $as_echo "no" >&6; }
4097 if test -z "$CC"; then
4098 if test -n "$ac_tool_prefix"; then
4099 for ac_prog in cl.exe
4101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104 $as_echo_n "checking for $ac_word... " >&6; }
4105 if test "${ac_cv_prog_CC+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 if test -n "$CC"; then
4109 ac_cv_prog_CC="$CC" # Let the user override the test.
4110 else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 break 2
4122 done
4123 done
4124 IFS=$as_save_IFS
4128 CC=$ac_cv_prog_CC
4129 if test -n "$CC"; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4131 $as_echo "$CC" >&6; }
4132 else
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134 $as_echo "no" >&6; }
4138 test -n "$CC" && break
4139 done
4141 if test -z "$CC"; then
4142 ac_ct_CC=$CC
4143 for ac_prog in cl.exe
4145 # Extract the first word of "$ac_prog", so it can be a program name with args.
4146 set dummy $ac_prog; ac_word=$2
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -n "$ac_ct_CC"; then
4153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_ac_ct_CC="$ac_prog"
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4166 done
4167 done
4168 IFS=$as_save_IFS
4172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4173 if test -n "$ac_ct_CC"; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4175 $as_echo "$ac_ct_CC" >&6; }
4176 else
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4182 test -n "$ac_ct_CC" && break
4183 done
4185 if test "x$ac_ct_CC" = x; then
4186 CC=""
4187 else
4188 case $cross_compiling:$ac_tool_warned in
4189 yes:)
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4192 ac_tool_warned=yes ;;
4193 esac
4194 CC=$ac_ct_CC
4201 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4203 as_fn_error "no acceptable C compiler found in \$PATH
4204 See \`config.log' for more details." "$LINENO" 5; }
4206 # Provide some information about the compiler.
4207 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4208 set X $ac_compile
4209 ac_compiler=$2
4210 for ac_option in --version -v -V -qversion; do
4211 { { ac_try="$ac_compiler $ac_option >&5"
4212 case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215 esac
4216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4217 $as_echo "$ac_try_echo"; } >&5
4218 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4219 ac_status=$?
4220 if test -s conftest.err; then
4221 sed '10a\
4222 ... rest of stderr output deleted ...
4223 10q' conftest.err >conftest.er1
4224 cat conftest.er1 >&5
4226 rm -f conftest.er1 conftest.err
4227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4228 test $ac_status = 0; }
4229 done
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4232 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4233 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4240 main ()
4242 #ifndef __GNUC__
4243 choke me
4244 #endif
4247 return 0;
4249 _ACEOF
4250 if ac_fn_c_try_compile "$LINENO"; then :
4251 ac_compiler_gnu=yes
4252 else
4253 ac_compiler_gnu=no
4255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4260 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4261 if test $ac_compiler_gnu = yes; then
4262 GCC=yes
4263 else
4264 GCC=
4266 ac_test_CFLAGS=${CFLAGS+set}
4267 ac_save_CFLAGS=$CFLAGS
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4269 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4270 if test "${ac_cv_prog_cc_g+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 ac_save_c_werror_flag=$ac_c_werror_flag
4274 ac_c_werror_flag=yes
4275 ac_cv_prog_cc_g=no
4276 CFLAGS="-g"
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4281 main ()
4285 return 0;
4287 _ACEOF
4288 if ac_fn_c_try_compile "$LINENO"; then :
4289 ac_cv_prog_cc_g=yes
4290 else
4291 CFLAGS=""
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4296 main ()
4300 return 0;
4302 _ACEOF
4303 if ac_fn_c_try_compile "$LINENO"; then :
4305 else
4306 ac_c_werror_flag=$ac_save_c_werror_flag
4307 CFLAGS="-g"
4308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h. */
4312 main ()
4316 return 0;
4318 _ACEOF
4319 if ac_fn_c_try_compile "$LINENO"; then :
4320 ac_cv_prog_cc_g=yes
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4327 ac_c_werror_flag=$ac_save_c_werror_flag
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4330 $as_echo "$ac_cv_prog_cc_g" >&6; }
4331 if test "$ac_test_CFLAGS" = set; then
4332 CFLAGS=$ac_save_CFLAGS
4333 elif test $ac_cv_prog_cc_g = yes; then
4334 if test "$GCC" = yes; then
4335 CFLAGS="-g -O2"
4336 else
4337 CFLAGS="-g"
4339 else
4340 if test "$GCC" = yes; then
4341 CFLAGS="-O2"
4342 else
4343 CFLAGS=
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4347 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4348 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 ac_cv_prog_cc_c89=no
4352 ac_save_CC=$CC
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4355 #include <stdarg.h>
4356 #include <stdio.h>
4357 #include <sys/types.h>
4358 #include <sys/stat.h>
4359 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4360 struct buf { int x; };
4361 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4362 static char *e (p, i)
4363 char **p;
4364 int i;
4366 return p[i];
4368 static char *f (char * (*g) (char **, int), char **p, ...)
4370 char *s;
4371 va_list v;
4372 va_start (v,p);
4373 s = g (p, va_arg (v,int));
4374 va_end (v);
4375 return s;
4378 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4379 function prototypes and stuff, but not '\xHH' hex character constants.
4380 These don't provoke an error unfortunately, instead are silently treated
4381 as 'x'. The following induces an error, until -std is added to get
4382 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4383 array size at least. It's necessary to write '\x00'==0 to get something
4384 that's true only with -std. */
4385 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4387 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4388 inside strings and character constants. */
4389 #define FOO(x) 'x'
4390 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4392 int test (int i, double x);
4393 struct s1 {int (*f) (int a);};
4394 struct s2 {int (*f) (double a);};
4395 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4396 int argc;
4397 char **argv;
4399 main ()
4401 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4403 return 0;
4405 _ACEOF
4406 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4407 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4409 CC="$ac_save_CC $ac_arg"
4410 if ac_fn_c_try_compile "$LINENO"; then :
4411 ac_cv_prog_cc_c89=$ac_arg
4413 rm -f core conftest.err conftest.$ac_objext
4414 test "x$ac_cv_prog_cc_c89" != "xno" && break
4415 done
4416 rm -f conftest.$ac_ext
4417 CC=$ac_save_CC
4420 # AC_CACHE_VAL
4421 case "x$ac_cv_prog_cc_c89" in
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4424 $as_echo "none needed" >&6; } ;;
4425 xno)
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4427 $as_echo "unsupported" >&6; } ;;
4429 CC="$CC $ac_cv_prog_cc_c89"
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4431 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4432 esac
4433 if test "x$ac_cv_prog_cc_c89" != xno; then :
4437 ac_ext=c
4438 ac_cpp='$CPP $CPPFLAGS'
4439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 depcc="$CC" am_compiler_list=
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4446 $as_echo_n "checking dependency style of $depcc... " >&6; }
4447 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4451 # We make a subdir and do the tests there. Otherwise we can end up
4452 # making bogus files that we don't know about and never remove. For
4453 # instance it was reported that on HP-UX the gcc test will end up
4454 # making a dummy file named `D' -- because `-MD' means `put the output
4455 # in D'.
4456 mkdir conftest.dir
4457 # Copy depcomp to subdir because otherwise we won't find it if we're
4458 # using a relative directory.
4459 cp "$am_depcomp" conftest.dir
4460 cd conftest.dir
4461 # We will build objects and dependencies in a subdirectory because
4462 # it helps to detect inapplicable dependency modes. For instance
4463 # both Tru64's cc and ICC support -MD to output dependencies as a
4464 # side effect of compilation, but ICC will put the dependencies in
4465 # the current directory while Tru64 will put them in the object
4466 # directory.
4467 mkdir sub
4469 am_cv_CC_dependencies_compiler_type=none
4470 if test "$am_compiler_list" = ""; then
4471 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4473 for depmode in $am_compiler_list; do
4474 # Setup a source with many dependencies, because some compilers
4475 # like to wrap large dependency lists on column 80 (with \), and
4476 # we should not choose a depcomp mode which is confused by this.
4478 # We need to recreate these files for each test, as the compiler may
4479 # overwrite some of them when testing with obscure command lines.
4480 # This happens at least with the AIX C compiler.
4481 : > sub/conftest.c
4482 for i in 1 2 3 4 5 6; do
4483 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4484 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4485 # Solaris 8's {/usr,}/bin/sh.
4486 touch sub/conftst$i.h
4487 done
4488 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4490 case $depmode in
4491 nosideeffect)
4492 # after this tag, mechanisms are not by side-effect, so they'll
4493 # only be used when explicitly requested
4494 if test "x$enable_dependency_tracking" = xyes; then
4495 continue
4496 else
4497 break
4500 none) break ;;
4501 esac
4502 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4503 # mode. It turns out that the SunPro C++ compiler does not properly
4504 # handle `-M -o', and we need to detect this.
4505 if depmode=$depmode \
4506 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4507 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4508 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4509 >/dev/null 2>conftest.err &&
4510 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4511 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4512 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4513 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4514 # icc doesn't choke on unknown options, it will just issue warnings
4515 # or remarks (even with -Werror). So we grep stderr for any message
4516 # that says an option was ignored or not supported.
4517 # When given -MP, icc 7.0 and 7.1 complain thusly:
4518 # icc: Command line warning: ignoring option '-M'; no argument required
4519 # The diagnosis changed in icc 8.0:
4520 # icc: Command line remark: option '-MP' not supported
4521 if (grep 'ignoring option' conftest.err ||
4522 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4523 am_cv_CC_dependencies_compiler_type=$depmode
4524 break
4527 done
4529 cd ..
4530 rm -rf conftest.dir
4531 else
4532 am_cv_CC_dependencies_compiler_type=none
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4537 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4538 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4541 test "x$enable_dependency_tracking" != xno \
4542 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4543 am__fastdepCC_TRUE=
4544 am__fastdepCC_FALSE='#'
4545 else
4546 am__fastdepCC_TRUE='#'
4547 am__fastdepCC_FALSE=
4551 ac_ext=c
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4557 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4558 # On Suns, sometimes $CPP names a directory.
4559 if test -n "$CPP" && test -d "$CPP"; then
4560 CPP=
4562 if test -z "$CPP"; then
4563 if test "${ac_cv_prog_CPP+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 # Double quotes because CPP needs to be expanded
4567 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4569 ac_preproc_ok=false
4570 for ac_c_preproc_warn_flag in '' yes
4572 # Use a header file that comes with gcc, so configuring glibc
4573 # with a fresh cross-compiler works.
4574 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4575 # <limits.h> exists even on freestanding compilers.
4576 # On the NeXT, cc -E runs the code through the compiler's parser,
4577 # not just through cpp. "Syntax error" is here to catch this case.
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4580 #ifdef __STDC__
4581 # include <limits.h>
4582 #else
4583 # include <assert.h>
4584 #endif
4585 Syntax error
4586 _ACEOF
4587 if ac_fn_c_try_cpp "$LINENO"; then :
4589 else
4590 # Broken: fails on valid input.
4591 continue
4593 rm -f conftest.err conftest.$ac_ext
4595 # OK, works on sane cases. Now check whether nonexistent headers
4596 # can be detected and how.
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4599 #include <ac_nonexistent.h>
4600 _ACEOF
4601 if ac_fn_c_try_cpp "$LINENO"; then :
4602 # Broken: success on invalid input.
4603 continue
4604 else
4605 # Passes both tests.
4606 ac_preproc_ok=:
4607 break
4609 rm -f conftest.err conftest.$ac_ext
4611 done
4612 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4613 rm -f conftest.err conftest.$ac_ext
4614 if $ac_preproc_ok; then :
4615 break
4618 done
4619 ac_cv_prog_CPP=$CPP
4622 CPP=$ac_cv_prog_CPP
4623 else
4624 ac_cv_prog_CPP=$CPP
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4627 $as_echo "$CPP" >&6; }
4628 ac_preproc_ok=false
4629 for ac_c_preproc_warn_flag in '' yes
4631 # Use a header file that comes with gcc, so configuring glibc
4632 # with a fresh cross-compiler works.
4633 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4634 # <limits.h> exists even on freestanding compilers.
4635 # On the NeXT, cc -E runs the code through the compiler's parser,
4636 # not just through cpp. "Syntax error" is here to catch this case.
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639 #ifdef __STDC__
4640 # include <limits.h>
4641 #else
4642 # include <assert.h>
4643 #endif
4644 Syntax error
4645 _ACEOF
4646 if ac_fn_c_try_cpp "$LINENO"; then :
4648 else
4649 # Broken: fails on valid input.
4650 continue
4652 rm -f conftest.err conftest.$ac_ext
4654 # OK, works on sane cases. Now check whether nonexistent headers
4655 # can be detected and how.
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658 #include <ac_nonexistent.h>
4659 _ACEOF
4660 if ac_fn_c_try_cpp "$LINENO"; then :
4661 # Broken: success on invalid input.
4662 continue
4663 else
4664 # Passes both tests.
4665 ac_preproc_ok=:
4666 break
4668 rm -f conftest.err conftest.$ac_ext
4670 done
4671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4672 rm -f conftest.err conftest.$ac_ext
4673 if $ac_preproc_ok; then :
4675 else
4676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4678 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4679 See \`config.log' for more details." "$LINENO" 5; }
4682 ac_ext=c
4683 ac_cpp='$CPP $CPPFLAGS'
4684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4688 if test "$GCC" = yes; then
4689 GCC_TRUE=
4690 GCC_FALSE='#'
4691 else
4692 GCC_TRUE='#'
4693 GCC_FALSE=
4695 # let the Makefile know if we're gcc
4696 if test "x$CC" != xcc; then
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4698 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4699 else
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4701 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4703 set dummy $CC; ac_cc=`$as_echo "$2" |
4704 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4705 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4712 main ()
4716 return 0;
4718 _ACEOF
4719 # Make sure it works both with $CC and with simple cc.
4720 # We do the test twice because some compilers refuse to overwrite an
4721 # existing .o file with -o, though they will create one.
4722 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4723 rm -f conftest2.*
4724 if { { case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4727 esac
4728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4729 $as_echo "$ac_try_echo"; } >&5
4730 (eval "$ac_try") 2>&5
4731 ac_status=$?
4732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4733 test $ac_status = 0; } &&
4734 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4737 esac
4738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4739 $as_echo "$ac_try_echo"; } >&5
4740 (eval "$ac_try") 2>&5
4741 ac_status=$?
4742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4743 test $ac_status = 0; };
4744 then
4745 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4746 if test "x$CC" != xcc; then
4747 # Test first that cc exists at all.
4748 if { ac_try='cc -c conftest.$ac_ext >&5'
4749 { { case "(($ac_try" in
4750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751 *) ac_try_echo=$ac_try;;
4752 esac
4753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4754 $as_echo "$ac_try_echo"; } >&5
4755 (eval "$ac_try") 2>&5
4756 ac_status=$?
4757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4758 test $ac_status = 0; }; }; then
4759 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4760 rm -f conftest2.*
4761 if { { case "(($ac_try" in
4762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763 *) ac_try_echo=$ac_try;;
4764 esac
4765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4766 $as_echo "$ac_try_echo"; } >&5
4767 (eval "$ac_try") 2>&5
4768 ac_status=$?
4769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4770 test $ac_status = 0; } &&
4771 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4773 *) ac_try_echo=$ac_try;;
4774 esac
4775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4776 $as_echo "$ac_try_echo"; } >&5
4777 (eval "$ac_try") 2>&5
4778 ac_status=$?
4779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4780 test $ac_status = 0; };
4781 then
4782 # cc works too.
4784 else
4785 # cc exists but doesn't like -o.
4786 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4790 else
4791 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4793 rm -f core conftest*
4796 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4798 $as_echo "yes" >&6; }
4799 else
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4803 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4807 # FIXME: we rely on the cache variable name because
4808 # there is no other way.
4809 set dummy $CC
4810 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4811 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4812 # Losing compiler, so override with the script.
4813 # FIXME: It is wrong to rewrite CC.
4814 # But if we don't then we get into trouble of one sort or another.
4815 # A longer-term fix would be to have automake use am__CC in this case,
4816 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4817 CC="$am_aux_dir/compile $CC"
4820 # shrug: autogen.sh suddenly needs this for some reason
4822 # Check if we have an objcopy installed that supports -W
4823 if test -n "$ac_tool_prefix"; then
4824 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4825 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 if test -n "$OBJCOPY"; then
4832 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4845 done
4846 done
4847 IFS=$as_save_IFS
4851 OBJCOPY=$ac_cv_prog_OBJCOPY
4852 if test -n "$OBJCOPY"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4854 $as_echo "$OBJCOPY" >&6; }
4855 else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4862 if test -z "$ac_cv_prog_OBJCOPY"; then
4863 ac_ct_OBJCOPY=$OBJCOPY
4864 # Extract the first word of "objcopy", so it can be a program name with args.
4865 set dummy objcopy; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 if test -n "$ac_ct_OBJCOPY"; then
4872 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4885 done
4886 done
4887 IFS=$as_save_IFS
4891 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4892 if test -n "$ac_ct_OBJCOPY"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4894 $as_echo "$ac_ct_OBJCOPY" >&6; }
4895 else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4900 if test "x$ac_ct_OBJCOPY" = x; then
4901 OBJCOPY=""
4902 else
4903 case $cross_compiling:$ac_tool_warned in
4904 yes:)
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4907 ac_tool_warned=yes ;;
4908 esac
4909 OBJCOPY=$ac_ct_OBJCOPY
4911 else
4912 OBJCOPY="$ac_cv_prog_OBJCOPY"
4916 if test -n "$OBJCOPY"; then :
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $OBJCOPY supports -W" >&5
4918 $as_echo_n "checking if $OBJCOPY supports -W... " >&6; }
4919 if test "${gpt_cv_objcopy_weaken+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4923 /* end confdefs.h. */
4924 void foo() {} int main() {return 0;}
4925 _ACEOF
4926 if ac_fn_c_try_link "$LINENO"; then :
4927 if "$OBJCOPY" -W foo conftest$ac_exeext /dev/null; then :
4928 gpt_cv_objcopy_weaken=yes
4929 else
4930 gpt_cv_objcopy_weaken=no
4932 else
4933 gpt_cv_objcopy_weaken=no
4935 rm -f core conftest.err conftest.$ac_objext \
4936 conftest$ac_exeext conftest.$ac_ext
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gpt_cv_objcopy_weaken" >&5
4939 $as_echo "$gpt_cv_objcopy_weaken" >&6; }
4940 else
4941 gpt_cv_objcopy_weaken=no
4943 if test $gpt_cv_objcopy_weaken = yes; then
4944 HAVE_OBJCOPY_WEAKEN_TRUE=
4945 HAVE_OBJCOPY_WEAKEN_FALSE='#'
4946 else
4947 HAVE_OBJCOPY_WEAKEN_TRUE='#'
4948 HAVE_OBJCOPY_WEAKEN_FALSE=
4952 case $host_os in
4953 *mingw*)
4954 # Disabling fast install keeps libtool from creating wrapper scripts
4955 # around the executables it builds. Such scripts have caused failures on
4956 # MinGW. Using this option means an extra link step is executed during
4957 # "make install".
4958 # Check whether --enable-fast-install was given.
4959 if test "${enable_fast_install+set}" = set; then :
4960 enableval=$enable_fast_install; p=${PACKAGE-default}
4961 case $enableval in
4962 yes) enable_fast_install=yes ;;
4963 no) enable_fast_install=no ;;
4965 enable_fast_install=no
4966 # Look at the argument we got. We use all the common list separators.
4967 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4968 for pkg in $enableval; do
4969 IFS="$lt_save_ifs"
4970 if test "X$pkg" = "X$p"; then
4971 enable_fast_install=yes
4973 done
4974 IFS="$lt_save_ifs"
4976 esac
4977 else
4978 enable_fast_install=no
4991 # Check whether --enable-fast-install was given.
4992 if test "${enable_fast_install+set}" = set; then :
4993 enableval=$enable_fast_install; p=${PACKAGE-default}
4994 case $enableval in
4995 yes) enable_fast_install=yes ;;
4996 no) enable_fast_install=no ;;
4998 enable_fast_install=no
4999 # Look at the argument we got. We use all the common list separators.
5000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5001 for pkg in $enableval; do
5002 IFS="$lt_save_ifs"
5003 if test "X$pkg" = "X$p"; then
5004 enable_fast_install=yes
5006 done
5007 IFS="$lt_save_ifs"
5009 esac
5010 else
5011 enable_fast_install=yes
5020 esac
5022 case `pwd` in
5023 *\ * | *\ *)
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5025 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5026 esac
5030 macro_version='2.2.6b'
5031 macro_revision='1.3017'
5045 ltmain="$ac_aux_dir/ltmain.sh"
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5048 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5049 if test "${ac_cv_path_SED+set}" = set; then :
5050 $as_echo_n "(cached) " >&6
5051 else
5052 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5053 for ac_i in 1 2 3 4 5 6 7; do
5054 ac_script="$ac_script$as_nl$ac_script"
5055 done
5056 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5057 { ac_script=; unset ac_script;}
5058 if test -z "$SED"; then
5059 ac_path_SED_found=false
5060 # Loop through the user's path and test for each of PROGNAME-LIST
5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062 for as_dir in $PATH
5064 IFS=$as_save_IFS
5065 test -z "$as_dir" && as_dir=.
5066 for ac_prog in sed gsed; do
5067 for ac_exec_ext in '' $ac_executable_extensions; do
5068 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5069 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5070 # Check for GNU ac_path_SED and select it if it is found.
5071 # Check for GNU $ac_path_SED
5072 case `"$ac_path_SED" --version 2>&1` in
5073 *GNU*)
5074 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5076 ac_count=0
5077 $as_echo_n 0123456789 >"conftest.in"
5078 while :
5080 cat "conftest.in" "conftest.in" >"conftest.tmp"
5081 mv "conftest.tmp" "conftest.in"
5082 cp "conftest.in" "conftest.nl"
5083 $as_echo '' >> "conftest.nl"
5084 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5085 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5086 as_fn_arith $ac_count + 1 && ac_count=$as_val
5087 if test $ac_count -gt ${ac_path_SED_max-0}; then
5088 # Best one so far, save it but keep looking for a better one
5089 ac_cv_path_SED="$ac_path_SED"
5090 ac_path_SED_max=$ac_count
5092 # 10*(2^10) chars as input seems more than enough
5093 test $ac_count -gt 10 && break
5094 done
5095 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5096 esac
5098 $ac_path_SED_found && break 3
5099 done
5100 done
5101 done
5102 IFS=$as_save_IFS
5103 if test -z "$ac_cv_path_SED"; then
5104 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5106 else
5107 ac_cv_path_SED=$SED
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5112 $as_echo "$ac_cv_path_SED" >&6; }
5113 SED="$ac_cv_path_SED"
5114 rm -f conftest.sed
5116 test -z "$SED" && SED=sed
5117 Xsed="$SED -e 1s/^X//"
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5130 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5131 if test "${ac_cv_path_GREP+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 if test -z "$GREP"; then
5135 ac_path_GREP_found=false
5136 # Loop through the user's path and test for each of PROGNAME-LIST
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_prog in grep ggrep; do
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5145 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5146 # Check for GNU ac_path_GREP and select it if it is found.
5147 # Check for GNU $ac_path_GREP
5148 case `"$ac_path_GREP" --version 2>&1` in
5149 *GNU*)
5150 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5152 ac_count=0
5153 $as_echo_n 0123456789 >"conftest.in"
5154 while :
5156 cat "conftest.in" "conftest.in" >"conftest.tmp"
5157 mv "conftest.tmp" "conftest.in"
5158 cp "conftest.in" "conftest.nl"
5159 $as_echo 'GREP' >> "conftest.nl"
5160 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5162 as_fn_arith $ac_count + 1 && ac_count=$as_val
5163 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5164 # Best one so far, save it but keep looking for a better one
5165 ac_cv_path_GREP="$ac_path_GREP"
5166 ac_path_GREP_max=$ac_count
5168 # 10*(2^10) chars as input seems more than enough
5169 test $ac_count -gt 10 && break
5170 done
5171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5172 esac
5174 $ac_path_GREP_found && break 3
5175 done
5176 done
5177 done
5178 IFS=$as_save_IFS
5179 if test -z "$ac_cv_path_GREP"; then
5180 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5182 else
5183 ac_cv_path_GREP=$GREP
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5188 $as_echo "$ac_cv_path_GREP" >&6; }
5189 GREP="$ac_cv_path_GREP"
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5193 $as_echo_n "checking for egrep... " >&6; }
5194 if test "${ac_cv_path_EGREP+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5198 then ac_cv_path_EGREP="$GREP -E"
5199 else
5200 if test -z "$EGREP"; then
5201 ac_path_EGREP_found=false
5202 # Loop through the user's path and test for each of PROGNAME-LIST
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_prog in egrep; do
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5211 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5212 # Check for GNU ac_path_EGREP and select it if it is found.
5213 # Check for GNU $ac_path_EGREP
5214 case `"$ac_path_EGREP" --version 2>&1` in
5215 *GNU*)
5216 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5218 ac_count=0
5219 $as_echo_n 0123456789 >"conftest.in"
5220 while :
5222 cat "conftest.in" "conftest.in" >"conftest.tmp"
5223 mv "conftest.tmp" "conftest.in"
5224 cp "conftest.in" "conftest.nl"
5225 $as_echo 'EGREP' >> "conftest.nl"
5226 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5228 as_fn_arith $ac_count + 1 && ac_count=$as_val
5229 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5230 # Best one so far, save it but keep looking for a better one
5231 ac_cv_path_EGREP="$ac_path_EGREP"
5232 ac_path_EGREP_max=$ac_count
5234 # 10*(2^10) chars as input seems more than enough
5235 test $ac_count -gt 10 && break
5236 done
5237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5238 esac
5240 $ac_path_EGREP_found && break 3
5241 done
5242 done
5243 done
5244 IFS=$as_save_IFS
5245 if test -z "$ac_cv_path_EGREP"; then
5246 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5248 else
5249 ac_cv_path_EGREP=$EGREP
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5255 $as_echo "$ac_cv_path_EGREP" >&6; }
5256 EGREP="$ac_cv_path_EGREP"
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5260 $as_echo_n "checking for fgrep... " >&6; }
5261 if test "${ac_cv_path_FGREP+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5265 then ac_cv_path_FGREP="$GREP -F"
5266 else
5267 if test -z "$FGREP"; then
5268 ac_path_FGREP_found=false
5269 # Loop through the user's path and test for each of PROGNAME-LIST
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_prog in fgrep; do
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5278 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5279 # Check for GNU ac_path_FGREP and select it if it is found.
5280 # Check for GNU $ac_path_FGREP
5281 case `"$ac_path_FGREP" --version 2>&1` in
5282 *GNU*)
5283 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5285 ac_count=0
5286 $as_echo_n 0123456789 >"conftest.in"
5287 while :
5289 cat "conftest.in" "conftest.in" >"conftest.tmp"
5290 mv "conftest.tmp" "conftest.in"
5291 cp "conftest.in" "conftest.nl"
5292 $as_echo 'FGREP' >> "conftest.nl"
5293 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5295 as_fn_arith $ac_count + 1 && ac_count=$as_val
5296 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5297 # Best one so far, save it but keep looking for a better one
5298 ac_cv_path_FGREP="$ac_path_FGREP"
5299 ac_path_FGREP_max=$ac_count
5301 # 10*(2^10) chars as input seems more than enough
5302 test $ac_count -gt 10 && break
5303 done
5304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5305 esac
5307 $ac_path_FGREP_found && break 3
5308 done
5309 done
5310 done
5311 IFS=$as_save_IFS
5312 if test -z "$ac_cv_path_FGREP"; then
5313 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5315 else
5316 ac_cv_path_FGREP=$FGREP
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5322 $as_echo "$ac_cv_path_FGREP" >&6; }
5323 FGREP="$ac_cv_path_FGREP"
5326 test -z "$GREP" && GREP=grep
5346 # Check whether --with-gnu-ld was given.
5347 if test "${with_gnu_ld+set}" = set; then :
5348 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5349 else
5350 with_gnu_ld=no
5353 ac_prog=ld
5354 if test "$GCC" = yes; then
5355 # Check if gcc -print-prog-name=ld gives a path.
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5357 $as_echo_n "checking for ld used by $CC... " >&6; }
5358 case $host in
5359 *-*-mingw*)
5360 # gcc leaves a trailing carriage return which upsets mingw
5361 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5363 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5364 esac
5365 case $ac_prog in
5366 # Accept absolute paths.
5367 [\\/]* | ?:[\\/]*)
5368 re_direlt='/[^/][^/]*/\.\./'
5369 # Canonicalize the pathname of ld
5370 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5371 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5372 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5373 done
5374 test -z "$LD" && LD="$ac_prog"
5377 # If it fails, then pretend we aren't using GCC.
5378 ac_prog=ld
5381 # If it is relative, then search for the first ld in PATH.
5382 with_gnu_ld=unknown
5384 esac
5385 elif test "$with_gnu_ld" = yes; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5387 $as_echo_n "checking for GNU ld... " >&6; }
5388 else
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5390 $as_echo_n "checking for non-GNU ld... " >&6; }
5392 if test "${lt_cv_path_LD+set}" = set; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 if test -z "$LD"; then
5396 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5397 for ac_dir in $PATH; do
5398 IFS="$lt_save_ifs"
5399 test -z "$ac_dir" && ac_dir=.
5400 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5401 lt_cv_path_LD="$ac_dir/$ac_prog"
5402 # Check to see if the program is GNU ld. I'd rather use --version,
5403 # but apparently some variants of GNU ld only accept -v.
5404 # Break only if it was the GNU/non-GNU ld that we prefer.
5405 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5406 *GNU* | *'with BFD'*)
5407 test "$with_gnu_ld" != no && break
5410 test "$with_gnu_ld" != yes && break
5412 esac
5414 done
5415 IFS="$lt_save_ifs"
5416 else
5417 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5421 LD="$lt_cv_path_LD"
5422 if test -n "$LD"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5424 $as_echo "$LD" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5429 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5431 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5432 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5436 case `$LD -v 2>&1 </dev/null` in
5437 *GNU* | *'with BFD'*)
5438 lt_cv_prog_gnu_ld=yes
5441 lt_cv_prog_gnu_ld=no
5443 esac
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5446 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5447 with_gnu_ld=$lt_cv_prog_gnu_ld
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5458 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5459 if test "${lt_cv_path_NM+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5461 else
5462 if test -n "$NM"; then
5463 # Let the user override the test.
5464 lt_cv_path_NM="$NM"
5465 else
5466 lt_nm_to_check="${ac_tool_prefix}nm"
5467 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5468 lt_nm_to_check="$lt_nm_to_check nm"
5470 for lt_tmp_nm in $lt_nm_to_check; do
5471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5472 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5473 IFS="$lt_save_ifs"
5474 test -z "$ac_dir" && ac_dir=.
5475 tmp_nm="$ac_dir/$lt_tmp_nm"
5476 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5477 # Check to see if the nm accepts a BSD-compat flag.
5478 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5479 # nm: unknown option "B" ignored
5480 # Tru64's nm complains that /dev/null is an invalid object file
5481 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5482 */dev/null* | *'Invalid file or object type'*)
5483 lt_cv_path_NM="$tmp_nm -B"
5484 break
5487 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5488 */dev/null*)
5489 lt_cv_path_NM="$tmp_nm -p"
5490 break
5493 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5494 continue # so that we can try to find one that supports BSD flags
5496 esac
5498 esac
5500 done
5501 IFS="$lt_save_ifs"
5502 done
5503 : ${lt_cv_path_NM=no}
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5507 $as_echo "$lt_cv_path_NM" >&6; }
5508 if test "$lt_cv_path_NM" != "no"; then
5509 NM="$lt_cv_path_NM"
5510 else
5511 # Didn't find any BSD compatible name lister, look for dumpbin.
5512 if test -n "$ac_tool_prefix"; then
5513 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -n "$DUMPBIN"; then
5523 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5536 done
5537 done
5538 IFS=$as_save_IFS
5542 DUMPBIN=$ac_cv_prog_DUMPBIN
5543 if test -n "$DUMPBIN"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5545 $as_echo "$DUMPBIN" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5552 test -n "$DUMPBIN" && break
5553 done
5555 if test -z "$DUMPBIN"; then
5556 ac_ct_DUMPBIN=$DUMPBIN
5557 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5559 # Extract the first word of "$ac_prog", so it can be a program name with args.
5560 set dummy $ac_prog; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 if test -n "$ac_ct_DUMPBIN"; then
5567 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5580 done
5581 done
5582 IFS=$as_save_IFS
5586 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5587 if test -n "$ac_ct_DUMPBIN"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5589 $as_echo "$ac_ct_DUMPBIN" >&6; }
5590 else
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5596 test -n "$ac_ct_DUMPBIN" && break
5597 done
5599 if test "x$ac_ct_DUMPBIN" = x; then
5600 DUMPBIN=":"
5601 else
5602 case $cross_compiling:$ac_tool_warned in
5603 yes:)
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5606 ac_tool_warned=yes ;;
5607 esac
5608 DUMPBIN=$ac_ct_DUMPBIN
5613 if test "$DUMPBIN" != ":"; then
5614 NM="$DUMPBIN"
5617 test -z "$NM" && NM=nm
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5625 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5626 if test "${lt_cv_nm_interface+set}" = set; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 lt_cv_nm_interface="BSD nm"
5630 echo "int some_variable = 0;" > conftest.$ac_ext
5631 (eval echo "\"\$as_me:5631: $ac_compile\"" >&5)
5632 (eval "$ac_compile" 2>conftest.err)
5633 cat conftest.err >&5
5634 (eval echo "\"\$as_me:5634: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5635 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5636 cat conftest.err >&5
5637 (eval echo "\"\$as_me:5637: output\"" >&5)
5638 cat conftest.out >&5
5639 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5640 lt_cv_nm_interface="MS dumpbin"
5642 rm -f conftest*
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5645 $as_echo "$lt_cv_nm_interface" >&6; }
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5648 $as_echo_n "checking whether ln -s works... " >&6; }
5649 LN_S=$as_ln_s
5650 if test "$LN_S" = "ln -s"; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5652 $as_echo "yes" >&6; }
5653 else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5655 $as_echo "no, using $LN_S" >&6; }
5658 # find the maximum length of command line arguments
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5660 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5661 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5662 $as_echo_n "(cached) " >&6
5663 else
5665 teststring="ABCD"
5667 case $build_os in
5668 msdosdjgpp*)
5669 # On DJGPP, this test can blow up pretty badly due to problems in libc
5670 # (any single argument exceeding 2000 bytes causes a buffer overrun
5671 # during glob expansion). Even if it were fixed, the result of this
5672 # check would be larger than it should be.
5673 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5676 gnu*)
5677 # Under GNU Hurd, this test is not required because there is
5678 # no limit to the length of command line arguments.
5679 # Libtool will interpret -1 as no limit whatsoever
5680 lt_cv_sys_max_cmd_len=-1;
5683 cygwin* | mingw* | cegcc*)
5684 # On Win9x/ME, this test blows up -- it succeeds, but takes
5685 # about 5 minutes as the teststring grows exponentially.
5686 # Worse, since 9x/ME are not pre-emptively multitasking,
5687 # you end up with a "frozen" computer, even though with patience
5688 # the test eventually succeeds (with a max line length of 256k).
5689 # Instead, let's just punt: use the minimum linelength reported by
5690 # all of the supported platforms: 8192 (on NT/2K/XP).
5691 lt_cv_sys_max_cmd_len=8192;
5694 amigaos*)
5695 # On AmigaOS with pdksh, this test takes hours, literally.
5696 # So we just punt and use a minimum line length of 8192.
5697 lt_cv_sys_max_cmd_len=8192;
5700 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5701 # This has been around since 386BSD, at least. Likely further.
5702 if test -x /sbin/sysctl; then
5703 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5704 elif test -x /usr/sbin/sysctl; then
5705 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5706 else
5707 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5709 # And add a safety zone
5710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5714 interix*)
5715 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5716 lt_cv_sys_max_cmd_len=196608
5719 osf*)
5720 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5721 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5722 # nice to cause kernel panics so lets avoid the loop below.
5723 # First set a reasonable default.
5724 lt_cv_sys_max_cmd_len=16384
5726 if test -x /sbin/sysconfig; then
5727 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5728 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5729 esac
5732 sco3.2v5*)
5733 lt_cv_sys_max_cmd_len=102400
5735 sysv5* | sco5v6* | sysv4.2uw2*)
5736 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5737 if test -n "$kargmax"; then
5738 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5739 else
5740 lt_cv_sys_max_cmd_len=32768
5744 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5745 if test -n "$lt_cv_sys_max_cmd_len"; then
5746 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5748 else
5749 # Make teststring a little bigger before we do anything with it.
5750 # a 1K string should be a reasonable start.
5751 for i in 1 2 3 4 5 6 7 8 ; do
5752 teststring=$teststring$teststring
5753 done
5754 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5755 # If test is not a shell built-in, we'll probably end up computing a
5756 # maximum length that is only half of the actual maximum length, but
5757 # we can't tell.
5758 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5759 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5760 test $i != 17 # 1/2 MB should be enough
5762 i=`expr $i + 1`
5763 teststring=$teststring$teststring
5764 done
5765 # Only check the string length outside the loop.
5766 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5767 teststring=
5768 # Add a significant safety factor because C++ compilers can tack on
5769 # massive amounts of additional arguments before passing them to the
5770 # linker. It appears as though 1/2 is a usable value.
5771 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5774 esac
5778 if test -n $lt_cv_sys_max_cmd_len ; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5780 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5783 $as_echo "none" >&6; }
5785 max_cmd_len=$lt_cv_sys_max_cmd_len
5792 : ${CP="cp -f"}
5793 : ${MV="mv -f"}
5794 : ${RM="rm -f"}
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5797 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5798 # Try some XSI features
5799 xsi_shell=no
5800 ( _lt_dummy="a/b/c"
5801 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5802 = c,a/b,, \
5803 && eval 'test $(( 1 + 1 )) -eq 2 \
5804 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5805 && xsi_shell=yes
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5807 $as_echo "$xsi_shell" >&6; }
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5811 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5812 lt_shell_append=no
5813 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5814 >/dev/null 2>&1 \
5815 && lt_shell_append=yes
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5817 $as_echo "$lt_shell_append" >&6; }
5820 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5821 lt_unset=unset
5822 else
5823 lt_unset=false
5830 # test EBCDIC or ASCII
5831 case `echo X|tr X '\101'` in
5832 A) # ASCII based system
5833 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5834 lt_SP2NL='tr \040 \012'
5835 lt_NL2SP='tr \015\012 \040\040'
5837 *) # EBCDIC based system
5838 lt_SP2NL='tr \100 \n'
5839 lt_NL2SP='tr \r\n \100\100'
5841 esac
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5852 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5853 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 lt_cv_ld_reload_flag='-r'
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5859 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5860 reload_flag=$lt_cv_ld_reload_flag
5861 case $reload_flag in
5862 "" | " "*) ;;
5863 *) reload_flag=" $reload_flag" ;;
5864 esac
5865 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5866 case $host_os in
5867 darwin*)
5868 if test "$GCC" = yes; then
5869 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5870 else
5871 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5874 esac
5884 if test -n "$ac_tool_prefix"; then
5885 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5886 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5888 $as_echo_n "checking for $ac_word... " >&6; }
5889 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5890 $as_echo_n "(cached) " >&6
5891 else
5892 if test -n "$OBJDUMP"; then
5893 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5894 else
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896 for as_dir in $PATH
5898 IFS=$as_save_IFS
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 break 2
5906 done
5907 done
5908 IFS=$as_save_IFS
5912 OBJDUMP=$ac_cv_prog_OBJDUMP
5913 if test -n "$OBJDUMP"; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5915 $as_echo "$OBJDUMP" >&6; }
5916 else
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5918 $as_echo "no" >&6; }
5923 if test -z "$ac_cv_prog_OBJDUMP"; then
5924 ac_ct_OBJDUMP=$OBJDUMP
5925 # Extract the first word of "objdump", so it can be a program name with args.
5926 set dummy objdump; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5930 $as_echo_n "(cached) " >&6
5931 else
5932 if test -n "$ac_ct_OBJDUMP"; then
5933 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5946 done
5947 done
5948 IFS=$as_save_IFS
5952 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5953 if test -n "$ac_ct_OBJDUMP"; then
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5955 $as_echo "$ac_ct_OBJDUMP" >&6; }
5956 else
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5961 if test "x$ac_ct_OBJDUMP" = x; then
5962 OBJDUMP="false"
5963 else
5964 case $cross_compiling:$ac_tool_warned in
5965 yes:)
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5967 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5968 ac_tool_warned=yes ;;
5969 esac
5970 OBJDUMP=$ac_ct_OBJDUMP
5972 else
5973 OBJDUMP="$ac_cv_prog_OBJDUMP"
5976 test -z "$OBJDUMP" && OBJDUMP=objdump
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5987 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5988 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 lt_cv_file_magic_cmd='$MAGIC_CMD'
5992 lt_cv_file_magic_test_file=
5993 lt_cv_deplibs_check_method='unknown'
5994 # Need to set the preceding variable on all platforms that support
5995 # interlibrary dependencies.
5996 # 'none' -- dependencies not supported.
5997 # `unknown' -- same as none, but documents that we really don't know.
5998 # 'pass_all' -- all dependencies passed with no checks.
5999 # 'test_compile' -- check by making test program.
6000 # 'file_magic [[regex]]' -- check by looking for files in library path
6001 # which responds to the $file_magic_cmd with a given extended regex.
6002 # If you have `file' or equivalent on your system and you're not sure
6003 # whether `pass_all' will *always* work, you probably want this one.
6005 case $host_os in
6006 aix[4-9]*)
6007 lt_cv_deplibs_check_method=pass_all
6010 beos*)
6011 lt_cv_deplibs_check_method=pass_all
6014 bsdi[45]*)
6015 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6016 lt_cv_file_magic_cmd='/usr/bin/file -L'
6017 lt_cv_file_magic_test_file=/shlib/libc.so
6020 cygwin*)
6021 # func_win32_libid is a shell function defined in ltmain.sh
6022 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6023 lt_cv_file_magic_cmd='func_win32_libid'
6026 mingw* | pw32*)
6027 # Base MSYS/MinGW do not provide the 'file' command needed by
6028 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6029 # unless we find 'file', for example because we are cross-compiling.
6030 if ( file / ) >/dev/null 2>&1; then
6031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6032 lt_cv_file_magic_cmd='func_win32_libid'
6033 else
6034 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6035 lt_cv_file_magic_cmd='$OBJDUMP -f'
6039 cegcc)
6040 # use the weaker test based on 'objdump'. See mingw*.
6041 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6042 lt_cv_file_magic_cmd='$OBJDUMP -f'
6045 darwin* | rhapsody*)
6046 lt_cv_deplibs_check_method=pass_all
6049 freebsd* | dragonfly*)
6050 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6051 case $host_cpu in
6052 i*86 )
6053 # Not sure whether the presence of OpenBSD here was a mistake.
6054 # Let's accept both of them until this is cleared up.
6055 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6056 lt_cv_file_magic_cmd=/usr/bin/file
6057 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6059 esac
6060 else
6061 lt_cv_deplibs_check_method=pass_all
6065 gnu*)
6066 lt_cv_deplibs_check_method=pass_all
6069 hpux10.20* | hpux11*)
6070 lt_cv_file_magic_cmd=/usr/bin/file
6071 case $host_cpu in
6072 ia64*)
6073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6074 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6076 hppa*64*)
6077 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]'
6078 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6081 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6082 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6084 esac
6087 interix[3-9]*)
6088 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6092 irix5* | irix6* | nonstopux*)
6093 case $LD in
6094 *-32|*"-32 ") libmagic=32-bit;;
6095 *-n32|*"-n32 ") libmagic=N32;;
6096 *-64|*"-64 ") libmagic=64-bit;;
6097 *) libmagic=never-match;;
6098 esac
6099 lt_cv_deplibs_check_method=pass_all
6102 # This must be Linux ELF.
6103 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6104 lt_cv_deplibs_check_method=pass_all
6107 netbsd* | netbsdelf*-gnu)
6108 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6110 else
6111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6115 newos6*)
6116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6117 lt_cv_file_magic_cmd=/usr/bin/file
6118 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6121 *nto* | *qnx*)
6122 lt_cv_deplibs_check_method=pass_all
6125 openbsd*)
6126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6127 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6128 else
6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6133 osf3* | osf4* | osf5*)
6134 lt_cv_deplibs_check_method=pass_all
6137 rdos*)
6138 lt_cv_deplibs_check_method=pass_all
6141 solaris*)
6142 lt_cv_deplibs_check_method=pass_all
6145 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6146 lt_cv_deplibs_check_method=pass_all
6149 sysv4 | sysv4.3*)
6150 case $host_vendor in
6151 motorola)
6152 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]'
6153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6155 ncr)
6156 lt_cv_deplibs_check_method=pass_all
6158 sequent)
6159 lt_cv_file_magic_cmd='/bin/file'
6160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6162 sni)
6163 lt_cv_file_magic_cmd='/bin/file'
6164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6165 lt_cv_file_magic_test_file=/lib/libc.so
6167 siemens)
6168 lt_cv_deplibs_check_method=pass_all
6171 lt_cv_deplibs_check_method=pass_all
6173 esac
6176 tpf*)
6177 lt_cv_deplibs_check_method=pass_all
6179 esac
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6183 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6184 file_magic_cmd=$lt_cv_file_magic_cmd
6185 deplibs_check_method=$lt_cv_deplibs_check_method
6186 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6199 if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6201 set dummy ${ac_tool_prefix}ar; ac_word=$2
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6203 $as_echo_n "checking for $ac_word... " >&6; }
6204 if test "${ac_cv_prog_AR+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
6206 else
6207 if test -n "$AR"; then
6208 ac_cv_prog_AR="$AR" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_exec_ext in '' $ac_executable_extensions; do
6216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217 ac_cv_prog_AR="${ac_tool_prefix}ar"
6218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 break 2
6221 done
6222 done
6223 IFS=$as_save_IFS
6227 AR=$ac_cv_prog_AR
6228 if test -n "$AR"; then
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6230 $as_echo "$AR" >&6; }
6231 else
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6233 $as_echo "no" >&6; }
6238 if test -z "$ac_cv_prog_AR"; then
6239 ac_ct_AR=$AR
6240 # Extract the first word of "ar", so it can be a program name with args.
6241 set dummy ar; ac_word=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6245 $as_echo_n "(cached) " >&6
6246 else
6247 if test -n "$ac_ct_AR"; then
6248 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6253 IFS=$as_save_IFS
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_prog_ac_ct_AR="ar"
6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 break 2
6261 done
6262 done
6263 IFS=$as_save_IFS
6267 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6268 if test -n "$ac_ct_AR"; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6270 $as_echo "$ac_ct_AR" >&6; }
6271 else
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6276 if test "x$ac_ct_AR" = x; then
6277 AR="false"
6278 else
6279 case $cross_compiling:$ac_tool_warned in
6280 yes:)
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6283 ac_tool_warned=yes ;;
6284 esac
6285 AR=$ac_ct_AR
6287 else
6288 AR="$ac_cv_prog_AR"
6291 test -z "$AR" && AR=ar
6292 test -z "$AR_FLAGS" && AR_FLAGS=cru
6304 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6306 set dummy ${ac_tool_prefix}strip; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if test "${ac_cv_prog_STRIP+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312 if test -n "$STRIP"; then
6313 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6314 else
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6316 for as_dir in $PATH
6318 IFS=$as_save_IFS
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6322 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 break 2
6326 done
6327 done
6328 IFS=$as_save_IFS
6332 STRIP=$ac_cv_prog_STRIP
6333 if test -n "$STRIP"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6335 $as_echo "$STRIP" >&6; }
6336 else
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6343 if test -z "$ac_cv_prog_STRIP"; then
6344 ac_ct_STRIP=$STRIP
6345 # Extract the first word of "strip", so it can be a program name with args.
6346 set dummy strip; ac_word=$2
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348 $as_echo_n "checking for $ac_word... " >&6; }
6349 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 if test -n "$ac_ct_STRIP"; then
6353 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6354 else
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_exec_ext in '' $ac_executable_extensions; do
6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362 ac_cv_prog_ac_ct_STRIP="strip"
6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364 break 2
6366 done
6367 done
6368 IFS=$as_save_IFS
6372 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6373 if test -n "$ac_ct_STRIP"; then
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6375 $as_echo "$ac_ct_STRIP" >&6; }
6376 else
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6378 $as_echo "no" >&6; }
6381 if test "x$ac_ct_STRIP" = x; then
6382 STRIP=":"
6383 else
6384 case $cross_compiling:$ac_tool_warned in
6385 yes:)
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6388 ac_tool_warned=yes ;;
6389 esac
6390 STRIP=$ac_ct_STRIP
6392 else
6393 STRIP="$ac_cv_prog_STRIP"
6396 test -z "$STRIP" && STRIP=:
6403 if test -n "$ac_tool_prefix"; then
6404 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6405 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407 $as_echo_n "checking for $ac_word... " >&6; }
6408 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 if test -n "$RANLIB"; then
6412 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6413 else
6414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415 for as_dir in $PATH
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
6419 for ac_exec_ext in '' $ac_executable_extensions; do
6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6423 break 2
6425 done
6426 done
6427 IFS=$as_save_IFS
6431 RANLIB=$ac_cv_prog_RANLIB
6432 if test -n "$RANLIB"; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6434 $as_echo "$RANLIB" >&6; }
6435 else
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437 $as_echo "no" >&6; }
6442 if test -z "$ac_cv_prog_RANLIB"; then
6443 ac_ct_RANLIB=$RANLIB
6444 # Extract the first word of "ranlib", so it can be a program name with args.
6445 set dummy ranlib; ac_word=$2
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6447 $as_echo_n "checking for $ac_word... " >&6; }
6448 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6449 $as_echo_n "(cached) " >&6
6450 else
6451 if test -n "$ac_ct_RANLIB"; then
6452 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_prog_ac_ct_RANLIB="ranlib"
6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6465 done
6466 done
6467 IFS=$as_save_IFS
6471 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6472 if test -n "$ac_ct_RANLIB"; then
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6474 $as_echo "$ac_ct_RANLIB" >&6; }
6475 else
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6477 $as_echo "no" >&6; }
6480 if test "x$ac_ct_RANLIB" = x; then
6481 RANLIB=":"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484 yes:)
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned=yes ;;
6488 esac
6489 RANLIB=$ac_ct_RANLIB
6491 else
6492 RANLIB="$ac_cv_prog_RANLIB"
6495 test -z "$RANLIB" && RANLIB=:
6502 # Determine commands to create old-style static archives.
6503 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6504 old_postinstall_cmds='chmod 644 $oldlib'
6505 old_postuninstall_cmds=
6507 if test -n "$RANLIB"; then
6508 case $host_os in
6509 openbsd*)
6510 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6513 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6515 esac
6516 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6552 # If no C compiler was specified, use CC.
6553 LTCC=${LTCC-"$CC"}
6555 # If no C compiler flags were specified, use CFLAGS.
6556 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6558 # Allow CC to be a program name with arguments.
6559 compiler=$CC
6562 # Check for command to grab the raw symbol name followed by C symbol from nm.
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6564 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6565 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6569 # These are sane defaults that work on at least a few old systems.
6570 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6572 # Character class describing NM global symbol codes.
6573 symcode='[BCDEGRST]'
6575 # Regexp to match symbols that can be accessed directly from C.
6576 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6578 # Define system-specific variables.
6579 case $host_os in
6580 aix*)
6581 symcode='[BCDT]'
6583 cygwin* | mingw* | pw32* | cegcc*)
6584 symcode='[ABCDGISTW]'
6586 hpux*)
6587 if test "$host_cpu" = ia64; then
6588 symcode='[ABCDEGRST]'
6591 irix* | nonstopux*)
6592 symcode='[BCDEGRST]'
6594 osf*)
6595 symcode='[BCDEGQRST]'
6597 solaris*)
6598 symcode='[BDRT]'
6600 sco3.2v5*)
6601 symcode='[DT]'
6603 sysv4.2uw2*)
6604 symcode='[DT]'
6606 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6607 symcode='[ABDT]'
6609 sysv4)
6610 symcode='[DFNSTU]'
6612 esac
6614 # If we're using GNU nm, then use its standard symbol codes.
6615 case `$NM -V 2>&1` in
6616 *GNU* | *'with BFD'*)
6617 symcode='[ABCDGIRSTW]' ;;
6618 esac
6620 # Transform an extracted symbol line into a proper C declaration.
6621 # Some systems (esp. on ia64) link data and code symbols differently,
6622 # so use this general approach.
6623 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \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\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6627 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6629 # Handle CRLF in mingw tool chain
6630 opt_cr=
6631 case $build_os in
6632 mingw*)
6633 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6635 esac
6637 # Try without a prefix underscore, then with it.
6638 for ac_symprfx in "" "_"; do
6640 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6641 symxfrm="\\1 $ac_symprfx\\2 \\2"
6643 # Write the raw and C identifiers.
6644 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6645 # Fake it for dumpbin and say T for any non-static function
6646 # and D for any global variable.
6647 # Also find C++ and __fastcall symbols from MSVC++,
6648 # which start with @ or ?.
6649 lt_cv_sys_global_symbol_pipe="$AWK '"\
6650 " {last_section=section; section=\$ 3};"\
6651 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6652 " \$ 0!~/External *\|/{next};"\
6653 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6654 " {if(hide[section]) next};"\
6655 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6656 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6657 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6658 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6659 " ' prfx=^$ac_symprfx"
6660 else
6661 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6664 # Check to see that the pipe works correctly.
6665 pipe_works=no
6667 rm -f conftest*
6668 cat > conftest.$ac_ext <<_LT_EOF
6669 #ifdef __cplusplus
6670 extern "C" {
6671 #endif
6672 char nm_test_var;
6673 void nm_test_func(void);
6674 void nm_test_func(void){}
6675 #ifdef __cplusplus
6677 #endif
6678 int main(){nm_test_var='a';nm_test_func();return(0);}
6679 _LT_EOF
6681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6682 (eval $ac_compile) 2>&5
6683 ac_status=$?
6684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685 test $ac_status = 0; }; then
6686 # Now try to grab the symbols.
6687 nlist=conftest.nm
6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6689 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6690 ac_status=$?
6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692 test $ac_status = 0; } && test -s "$nlist"; then
6693 # Try sorting and uniquifying the output.
6694 if sort "$nlist" | uniq > "$nlist"T; then
6695 mv -f "$nlist"T "$nlist"
6696 else
6697 rm -f "$nlist"T
6700 # Make sure that we snagged all the symbols we need.
6701 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6702 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6703 cat <<_LT_EOF > conftest.$ac_ext
6704 #ifdef __cplusplus
6705 extern "C" {
6706 #endif
6708 _LT_EOF
6709 # Now generate the symbol file.
6710 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6712 cat <<_LT_EOF >> conftest.$ac_ext
6714 /* The mapping between symbol names and symbols. */
6715 const struct {
6716 const char *name;
6717 void *address;
6719 lt__PROGRAM__LTX_preloaded_symbols[] =
6721 { "@PROGRAM@", (void *) 0 },
6722 _LT_EOF
6723 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6724 cat <<\_LT_EOF >> conftest.$ac_ext
6725 {0, (void *) 0}
6728 /* This works around a problem in FreeBSD linker */
6729 #ifdef FREEBSD_WORKAROUND
6730 static const void *lt_preloaded_setup() {
6731 return lt__PROGRAM__LTX_preloaded_symbols;
6733 #endif
6735 #ifdef __cplusplus
6737 #endif
6738 _LT_EOF
6739 # Now try linking the two files.
6740 mv conftest.$ac_objext conftstm.$ac_objext
6741 lt_save_LIBS="$LIBS"
6742 lt_save_CFLAGS="$CFLAGS"
6743 LIBS="conftstm.$ac_objext"
6744 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6746 (eval $ac_link) 2>&5
6747 ac_status=$?
6748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6750 pipe_works=yes
6752 LIBS="$lt_save_LIBS"
6753 CFLAGS="$lt_save_CFLAGS"
6754 else
6755 echo "cannot find nm_test_func in $nlist" >&5
6757 else
6758 echo "cannot find nm_test_var in $nlist" >&5
6760 else
6761 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6763 else
6764 echo "$progname: failed program was:" >&5
6765 cat conftest.$ac_ext >&5
6767 rm -rf conftest* conftst*
6769 # Do not use the global_symbol_pipe unless it works.
6770 if test "$pipe_works" = yes; then
6771 break
6772 else
6773 lt_cv_sys_global_symbol_pipe=
6775 done
6779 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6780 lt_cv_sys_global_symbol_to_cdecl=
6782 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6784 $as_echo "failed" >&6; }
6785 else
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6787 $as_echo "ok" >&6; }
6811 # Check whether --enable-libtool-lock was given.
6812 if test "${enable_libtool_lock+set}" = set; then :
6813 enableval=$enable_libtool_lock;
6816 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6818 # Some flags need to be propagated to the compiler or linker for good
6819 # libtool support.
6820 case $host in
6821 ia64-*-hpux*)
6822 # Find out which ABI we are using.
6823 echo 'int i;' > conftest.$ac_ext
6824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6825 (eval $ac_compile) 2>&5
6826 ac_status=$?
6827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6828 test $ac_status = 0; }; then
6829 case `/usr/bin/file conftest.$ac_objext` in
6830 *ELF-32*)
6831 HPUX_IA64_MODE="32"
6833 *ELF-64*)
6834 HPUX_IA64_MODE="64"
6836 esac
6838 rm -rf conftest*
6840 *-*-irix6*)
6841 # Find out which ABI we are using.
6842 echo '#line 6842 "configure"' > conftest.$ac_ext
6843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6844 (eval $ac_compile) 2>&5
6845 ac_status=$?
6846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6847 test $ac_status = 0; }; then
6848 if test "$lt_cv_prog_gnu_ld" = yes; then
6849 case `/usr/bin/file conftest.$ac_objext` in
6850 *32-bit*)
6851 LD="${LD-ld} -melf32bsmip"
6853 *N32*)
6854 LD="${LD-ld} -melf32bmipn32"
6856 *64-bit*)
6857 LD="${LD-ld} -melf64bmip"
6859 esac
6860 else
6861 case `/usr/bin/file conftest.$ac_objext` in
6862 *32-bit*)
6863 LD="${LD-ld} -32"
6865 *N32*)
6866 LD="${LD-ld} -n32"
6868 *64-bit*)
6869 LD="${LD-ld} -64"
6871 esac
6874 rm -rf conftest*
6877 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6878 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6879 # Find out which ABI we are using.
6880 echo 'int i;' > conftest.$ac_ext
6881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6882 (eval $ac_compile) 2>&5
6883 ac_status=$?
6884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6885 test $ac_status = 0; }; then
6886 case `/usr/bin/file conftest.o` in
6887 *32-bit*)
6888 case $host in
6889 x86_64-*kfreebsd*-gnu)
6890 LD="${LD-ld} -m elf_i386_fbsd"
6892 x86_64-*linux*)
6893 LD="${LD-ld} -m elf_i386"
6895 ppc64-*linux*|powerpc64-*linux*)
6896 LD="${LD-ld} -m elf32ppclinux"
6898 s390x-*linux*)
6899 LD="${LD-ld} -m elf_s390"
6901 sparc64-*linux*)
6902 LD="${LD-ld} -m elf32_sparc"
6904 esac
6906 *64-bit*)
6907 case $host in
6908 x86_64-*kfreebsd*-gnu)
6909 LD="${LD-ld} -m elf_x86_64_fbsd"
6911 x86_64-*linux*)
6912 LD="${LD-ld} -m elf_x86_64"
6914 ppc*-*linux*|powerpc*-*linux*)
6915 LD="${LD-ld} -m elf64ppc"
6917 s390*-*linux*|s390*-*tpf*)
6918 LD="${LD-ld} -m elf64_s390"
6920 sparc*-*linux*)
6921 LD="${LD-ld} -m elf64_sparc"
6923 esac
6925 esac
6927 rm -rf conftest*
6930 *-*-sco3.2v5*)
6931 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6932 SAVE_CFLAGS="$CFLAGS"
6933 CFLAGS="$CFLAGS -belf"
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6935 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6936 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 ac_ext=c
6940 ac_cpp='$CPP $CPPFLAGS'
6941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6949 main ()
6953 return 0;
6955 _ACEOF
6956 if ac_fn_c_try_link "$LINENO"; then :
6957 lt_cv_cc_needs_belf=yes
6958 else
6959 lt_cv_cc_needs_belf=no
6961 rm -f core conftest.err conftest.$ac_objext \
6962 conftest$ac_exeext conftest.$ac_ext
6963 ac_ext=c
6964 ac_cpp='$CPP $CPPFLAGS'
6965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6971 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6972 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6973 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6974 CFLAGS="$SAVE_CFLAGS"
6977 sparc*-*solaris*)
6978 # Find out which ABI we are using.
6979 echo 'int i;' > conftest.$ac_ext
6980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6981 (eval $ac_compile) 2>&5
6982 ac_status=$?
6983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6984 test $ac_status = 0; }; then
6985 case `/usr/bin/file conftest.o` in
6986 *64-bit*)
6987 case $lt_cv_prog_gnu_ld in
6988 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6990 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6991 LD="${LD-ld} -64"
6994 esac
6996 esac
6998 rm -rf conftest*
7000 esac
7002 need_locks="$enable_libtool_lock"
7005 case $host_os in
7006 rhapsody* | darwin*)
7007 if test -n "$ac_tool_prefix"; then
7008 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7009 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 if test -n "$DSYMUTIL"; then
7016 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7017 else
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7029 done
7030 done
7031 IFS=$as_save_IFS
7035 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7036 if test -n "$DSYMUTIL"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7038 $as_echo "$DSYMUTIL" >&6; }
7039 else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7046 if test -z "$ac_cv_prog_DSYMUTIL"; then
7047 ac_ct_DSYMUTIL=$DSYMUTIL
7048 # Extract the first word of "dsymutil", so it can be a program name with args.
7049 set dummy dsymutil; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$ac_ct_DSYMUTIL"; then
7056 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7065 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7069 done
7070 done
7071 IFS=$as_save_IFS
7075 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7076 if test -n "$ac_ct_DSYMUTIL"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7078 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7079 else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7084 if test "x$ac_ct_DSYMUTIL" = x; then
7085 DSYMUTIL=":"
7086 else
7087 case $cross_compiling:$ac_tool_warned in
7088 yes:)
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7091 ac_tool_warned=yes ;;
7092 esac
7093 DSYMUTIL=$ac_ct_DSYMUTIL
7095 else
7096 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7099 if test -n "$ac_tool_prefix"; then
7100 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7101 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103 $as_echo_n "checking for $ac_word... " >&6; }
7104 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7105 $as_echo_n "(cached) " >&6
7106 else
7107 if test -n "$NMEDIT"; then
7108 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7109 else
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 for as_dir in $PATH
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7117 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7121 done
7122 done
7123 IFS=$as_save_IFS
7127 NMEDIT=$ac_cv_prog_NMEDIT
7128 if test -n "$NMEDIT"; then
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7130 $as_echo "$NMEDIT" >&6; }
7131 else
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133 $as_echo "no" >&6; }
7138 if test -z "$ac_cv_prog_NMEDIT"; then
7139 ac_ct_NMEDIT=$NMEDIT
7140 # Extract the first word of "nmedit", so it can be a program name with args.
7141 set dummy nmedit; ac_word=$2
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143 $as_echo_n "checking for $ac_word... " >&6; }
7144 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 if test -n "$ac_ct_NMEDIT"; then
7148 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7161 done
7162 done
7163 IFS=$as_save_IFS
7167 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7168 if test -n "$ac_ct_NMEDIT"; then
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7170 $as_echo "$ac_ct_NMEDIT" >&6; }
7171 else
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7176 if test "x$ac_ct_NMEDIT" = x; then
7177 NMEDIT=":"
7178 else
7179 case $cross_compiling:$ac_tool_warned in
7180 yes:)
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7183 ac_tool_warned=yes ;;
7184 esac
7185 NMEDIT=$ac_ct_NMEDIT
7187 else
7188 NMEDIT="$ac_cv_prog_NMEDIT"
7191 if test -n "$ac_tool_prefix"; then
7192 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7193 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if test "${ac_cv_prog_LIPO+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 if test -n "$LIPO"; then
7200 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7201 else
7202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203 for as_dir in $PATH
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
7208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7209 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7213 done
7214 done
7215 IFS=$as_save_IFS
7219 LIPO=$ac_cv_prog_LIPO
7220 if test -n "$LIPO"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7222 $as_echo "$LIPO" >&6; }
7223 else
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7230 if test -z "$ac_cv_prog_LIPO"; then
7231 ac_ct_LIPO=$LIPO
7232 # Extract the first word of "lipo", so it can be a program name with args.
7233 set dummy lipo; ac_word=$2
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7235 $as_echo_n "checking for $ac_word... " >&6; }
7236 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7237 $as_echo_n "(cached) " >&6
7238 else
7239 if test -n "$ac_ct_LIPO"; then
7240 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7241 else
7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7243 for as_dir in $PATH
7245 IFS=$as_save_IFS
7246 test -z "$as_dir" && as_dir=.
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7249 ac_cv_prog_ac_ct_LIPO="lipo"
7250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 break 2
7253 done
7254 done
7255 IFS=$as_save_IFS
7259 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7260 if test -n "$ac_ct_LIPO"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7262 $as_echo "$ac_ct_LIPO" >&6; }
7263 else
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 $as_echo "no" >&6; }
7268 if test "x$ac_ct_LIPO" = x; then
7269 LIPO=":"
7270 else
7271 case $cross_compiling:$ac_tool_warned in
7272 yes:)
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7275 ac_tool_warned=yes ;;
7276 esac
7277 LIPO=$ac_ct_LIPO
7279 else
7280 LIPO="$ac_cv_prog_LIPO"
7283 if test -n "$ac_tool_prefix"; then
7284 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7285 set dummy ${ac_tool_prefix}otool; ac_word=$2
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287 $as_echo_n "checking for $ac_word... " >&6; }
7288 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7289 $as_echo_n "(cached) " >&6
7290 else
7291 if test -n "$OTOOL"; then
7292 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7293 else
7294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7297 IFS=$as_save_IFS
7298 test -z "$as_dir" && as_dir=.
7299 for ac_exec_ext in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303 break 2
7305 done
7306 done
7307 IFS=$as_save_IFS
7311 OTOOL=$ac_cv_prog_OTOOL
7312 if test -n "$OTOOL"; then
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7314 $as_echo "$OTOOL" >&6; }
7315 else
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317 $as_echo "no" >&6; }
7322 if test -z "$ac_cv_prog_OTOOL"; then
7323 ac_ct_OTOOL=$OTOOL
7324 # Extract the first word of "otool", so it can be a program name with args.
7325 set dummy otool; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 if test -n "$ac_ct_OTOOL"; then
7332 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_ac_ct_OTOOL="otool"
7342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7345 done
7346 done
7347 IFS=$as_save_IFS
7351 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7352 if test -n "$ac_ct_OTOOL"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7354 $as_echo "$ac_ct_OTOOL" >&6; }
7355 else
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7360 if test "x$ac_ct_OTOOL" = x; then
7361 OTOOL=":"
7362 else
7363 case $cross_compiling:$ac_tool_warned in
7364 yes:)
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7367 ac_tool_warned=yes ;;
7368 esac
7369 OTOOL=$ac_ct_OTOOL
7371 else
7372 OTOOL="$ac_cv_prog_OTOOL"
7375 if test -n "$ac_tool_prefix"; then
7376 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7377 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7379 $as_echo_n "checking for $ac_word... " >&6; }
7380 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383 if test -n "$OTOOL64"; then
7384 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7385 else
7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7387 for as_dir in $PATH
7389 IFS=$as_save_IFS
7390 test -z "$as_dir" && as_dir=.
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7393 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 break 2
7397 done
7398 done
7399 IFS=$as_save_IFS
7403 OTOOL64=$ac_cv_prog_OTOOL64
7404 if test -n "$OTOOL64"; then
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7406 $as_echo "$OTOOL64" >&6; }
7407 else
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 $as_echo "no" >&6; }
7414 if test -z "$ac_cv_prog_OTOOL64"; then
7415 ac_ct_OTOOL64=$OTOOL64
7416 # Extract the first word of "otool64", so it can be a program name with args.
7417 set dummy otool64; ac_word=$2
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7419 $as_echo_n "checking for $ac_word... " >&6; }
7420 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7421 $as_echo_n "(cached) " >&6
7422 else
7423 if test -n "$ac_ct_OTOOL64"; then
7424 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7425 else
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7427 for as_dir in $PATH
7429 IFS=$as_save_IFS
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433 ac_cv_prog_ac_ct_OTOOL64="otool64"
7434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 break 2
7437 done
7438 done
7439 IFS=$as_save_IFS
7443 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7444 if test -n "$ac_ct_OTOOL64"; then
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7446 $as_echo "$ac_ct_OTOOL64" >&6; }
7447 else
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7452 if test "x$ac_ct_OTOOL64" = x; then
7453 OTOOL64=":"
7454 else
7455 case $cross_compiling:$ac_tool_warned in
7456 yes:)
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7459 ac_tool_warned=yes ;;
7460 esac
7461 OTOOL64=$ac_ct_OTOOL64
7463 else
7464 OTOOL64="$ac_cv_prog_OTOOL64"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7494 $as_echo_n "checking for -single_module linker flag... " >&6; }
7495 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498 lt_cv_apple_cc_single_mod=no
7499 if test -z "${LT_MULTI_MODULE}"; then
7500 # By default we will add the -single_module flag. You can override
7501 # by either setting the environment variable LT_MULTI_MODULE
7502 # non-empty at configure time, or by adding -multi_module to the
7503 # link flags.
7504 rm -rf libconftest.dylib*
7505 echo "int foo(void){return 1;}" > conftest.c
7506 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7507 -dynamiclib -Wl,-single_module conftest.c" >&5
7508 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7509 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7510 _lt_result=$?
7511 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7512 lt_cv_apple_cc_single_mod=yes
7513 else
7514 cat conftest.err >&5
7516 rm -rf libconftest.dylib*
7517 rm -f conftest.*
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7521 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7523 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7524 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 lt_cv_ld_exported_symbols_list=no
7528 save_LDFLAGS=$LDFLAGS
7529 echo "_main" > conftest.sym
7530 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7535 main ()
7539 return 0;
7541 _ACEOF
7542 if ac_fn_c_try_link "$LINENO"; then :
7543 lt_cv_ld_exported_symbols_list=yes
7544 else
7545 lt_cv_ld_exported_symbols_list=no
7547 rm -f core conftest.err conftest.$ac_objext \
7548 conftest$ac_exeext conftest.$ac_ext
7549 LDFLAGS="$save_LDFLAGS"
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7553 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7554 case $host_os in
7555 rhapsody* | darwin1.[012])
7556 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7557 darwin1.*)
7558 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7559 darwin*) # darwin 5.x on
7560 # if running on 10.5 or later, the deployment target defaults
7561 # to the OS version, if on x86, and 10.4, the deployment
7562 # target defaults to 10.4. Don't you love it?
7563 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7564 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7565 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7566 10.[012]*)
7567 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7568 10.*)
7569 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7570 esac
7572 esac
7573 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7574 _lt_dar_single_mod='$single_module'
7576 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7577 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7578 else
7579 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7581 if test "$DSYMUTIL" != ":"; then
7582 _lt_dsymutil='~$DSYMUTIL $lib || :'
7583 else
7584 _lt_dsymutil=
7587 esac
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7591 $as_echo_n "checking for ANSI C header files... " >&6; }
7592 if test "${ac_cv_header_stdc+set}" = set; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597 #include <stdlib.h>
7598 #include <stdarg.h>
7599 #include <string.h>
7600 #include <float.h>
7603 main ()
7607 return 0;
7609 _ACEOF
7610 if ac_fn_c_try_compile "$LINENO"; then :
7611 ac_cv_header_stdc=yes
7612 else
7613 ac_cv_header_stdc=no
7615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 if test $ac_cv_header_stdc = yes; then
7618 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7621 #include <string.h>
7623 _ACEOF
7624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7625 $EGREP "memchr" >/dev/null 2>&1; then :
7627 else
7628 ac_cv_header_stdc=no
7630 rm -f conftest*
7634 if test $ac_cv_header_stdc = yes; then
7635 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7638 #include <stdlib.h>
7640 _ACEOF
7641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7642 $EGREP "free" >/dev/null 2>&1; then :
7644 else
7645 ac_cv_header_stdc=no
7647 rm -f conftest*
7651 if test $ac_cv_header_stdc = yes; then
7652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7653 if test "$cross_compiling" = yes; then :
7655 else
7656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657 /* end confdefs.h. */
7658 #include <ctype.h>
7659 #include <stdlib.h>
7660 #if ((' ' & 0x0FF) == 0x020)
7661 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7662 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7663 #else
7664 # define ISLOWER(c) \
7665 (('a' <= (c) && (c) <= 'i') \
7666 || ('j' <= (c) && (c) <= 'r') \
7667 || ('s' <= (c) && (c) <= 'z'))
7668 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7669 #endif
7671 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7673 main ()
7675 int i;
7676 for (i = 0; i < 256; i++)
7677 if (XOR (islower (i), ISLOWER (i))
7678 || toupper (i) != TOUPPER (i))
7679 return 2;
7680 return 0;
7682 _ACEOF
7683 if ac_fn_c_try_run "$LINENO"; then :
7685 else
7686 ac_cv_header_stdc=no
7688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7689 conftest.$ac_objext conftest.beam conftest.$ac_ext
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7695 $as_echo "$ac_cv_header_stdc" >&6; }
7696 if test $ac_cv_header_stdc = yes; then
7698 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7702 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7703 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7704 inttypes.h stdint.h unistd.h
7705 do :
7706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7707 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7709 eval as_val=\$$as_ac_Header
7710 if test "x$as_val" = x""yes; then :
7711 cat >>confdefs.h <<_ACEOF
7712 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7713 _ACEOF
7717 done
7720 for ac_header in dlfcn.h
7721 do :
7722 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7724 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7725 cat >>confdefs.h <<_ACEOF
7726 #define HAVE_DLFCN_H 1
7727 _ACEOF
7731 done
7735 ac_ext=cpp
7736 ac_cpp='$CXXCPP $CPPFLAGS'
7737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7740 if test -z "$CXX"; then
7741 if test -n "$CCC"; then
7742 CXX=$CCC
7743 else
7744 if test -n "$ac_tool_prefix"; then
7745 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750 $as_echo_n "checking for $ac_word... " >&6; }
7751 if test "${ac_cv_prog_CXX+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 if test -n "$CXX"; then
7755 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7756 else
7757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 for as_dir in $PATH
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7764 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7766 break 2
7768 done
7769 done
7770 IFS=$as_save_IFS
7774 CXX=$ac_cv_prog_CXX
7775 if test -n "$CXX"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7777 $as_echo "$CXX" >&6; }
7778 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7784 test -n "$CXX" && break
7785 done
7787 if test -z "$CXX"; then
7788 ac_ct_CXX=$CXX
7789 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7791 # Extract the first word of "$ac_prog", so it can be a program name with args.
7792 set dummy $ac_prog; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7797 else
7798 if test -n "$ac_ct_CXX"; then
7799 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7800 else
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802 for as_dir in $PATH
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_ac_ct_CXX="$ac_prog"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7812 done
7813 done
7814 IFS=$as_save_IFS
7818 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7819 if test -n "$ac_ct_CXX"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7821 $as_echo "$ac_ct_CXX" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7828 test -n "$ac_ct_CXX" && break
7829 done
7831 if test "x$ac_ct_CXX" = x; then
7832 CXX="g++"
7833 else
7834 case $cross_compiling:$ac_tool_warned in
7835 yes:)
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7838 ac_tool_warned=yes ;;
7839 esac
7840 CXX=$ac_ct_CXX
7846 # Provide some information about the compiler.
7847 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7848 set X $ac_compile
7849 ac_compiler=$2
7850 for ac_option in --version -v -V -qversion; do
7851 { { ac_try="$ac_compiler $ac_option >&5"
7852 case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855 esac
7856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7857 $as_echo "$ac_try_echo"; } >&5
7858 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7859 ac_status=$?
7860 if test -s conftest.err; then
7861 sed '10a\
7862 ... rest of stderr output deleted ...
7863 10q' conftest.err >conftest.er1
7864 cat conftest.er1 >&5
7866 rm -f conftest.er1 conftest.err
7867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7868 test $ac_status = 0; }
7869 done
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7872 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7873 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7874 $as_echo_n "(cached) " >&6
7875 else
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7880 main ()
7882 #ifndef __GNUC__
7883 choke me
7884 #endif
7887 return 0;
7889 _ACEOF
7890 if ac_fn_cxx_try_compile "$LINENO"; then :
7891 ac_compiler_gnu=yes
7892 else
7893 ac_compiler_gnu=no
7895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7900 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7901 if test $ac_compiler_gnu = yes; then
7902 GXX=yes
7903 else
7904 GXX=
7906 ac_test_CXXFLAGS=${CXXFLAGS+set}
7907 ac_save_CXXFLAGS=$CXXFLAGS
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7909 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7910 if test "${ac_cv_prog_cxx_g+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7914 ac_cxx_werror_flag=yes
7915 ac_cv_prog_cxx_g=no
7916 CXXFLAGS="-g"
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7921 main ()
7925 return 0;
7927 _ACEOF
7928 if ac_fn_cxx_try_compile "$LINENO"; then :
7929 ac_cv_prog_cxx_g=yes
7930 else
7931 CXXFLAGS=""
7932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7936 main ()
7940 return 0;
7942 _ACEOF
7943 if ac_fn_cxx_try_compile "$LINENO"; then :
7945 else
7946 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7947 CXXFLAGS="-g"
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7952 main ()
7956 return 0;
7958 _ACEOF
7959 if ac_fn_cxx_try_compile "$LINENO"; then :
7960 ac_cv_prog_cxx_g=yes
7962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7970 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7971 if test "$ac_test_CXXFLAGS" = set; then
7972 CXXFLAGS=$ac_save_CXXFLAGS
7973 elif test $ac_cv_prog_cxx_g = yes; then
7974 if test "$GXX" = yes; then
7975 CXXFLAGS="-g -O2"
7976 else
7977 CXXFLAGS="-g"
7979 else
7980 if test "$GXX" = yes; then
7981 CXXFLAGS="-O2"
7982 else
7983 CXXFLAGS=
7986 ac_ext=c
7987 ac_cpp='$CPP $CPPFLAGS'
7988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7992 depcc="$CXX" am_compiler_list=
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7995 $as_echo_n "checking dependency style of $depcc... " >&6; }
7996 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8000 # We make a subdir and do the tests there. Otherwise we can end up
8001 # making bogus files that we don't know about and never remove. For
8002 # instance it was reported that on HP-UX the gcc test will end up
8003 # making a dummy file named `D' -- because `-MD' means `put the output
8004 # in D'.
8005 mkdir conftest.dir
8006 # Copy depcomp to subdir because otherwise we won't find it if we're
8007 # using a relative directory.
8008 cp "$am_depcomp" conftest.dir
8009 cd conftest.dir
8010 # We will build objects and dependencies in a subdirectory because
8011 # it helps to detect inapplicable dependency modes. For instance
8012 # both Tru64's cc and ICC support -MD to output dependencies as a
8013 # side effect of compilation, but ICC will put the dependencies in
8014 # the current directory while Tru64 will put them in the object
8015 # directory.
8016 mkdir sub
8018 am_cv_CXX_dependencies_compiler_type=none
8019 if test "$am_compiler_list" = ""; then
8020 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8022 for depmode in $am_compiler_list; do
8023 # Setup a source with many dependencies, because some compilers
8024 # like to wrap large dependency lists on column 80 (with \), and
8025 # we should not choose a depcomp mode which is confused by this.
8027 # We need to recreate these files for each test, as the compiler may
8028 # overwrite some of them when testing with obscure command lines.
8029 # This happens at least with the AIX C compiler.
8030 : > sub/conftest.c
8031 for i in 1 2 3 4 5 6; do
8032 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8033 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8034 # Solaris 8's {/usr,}/bin/sh.
8035 touch sub/conftst$i.h
8036 done
8037 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8039 case $depmode in
8040 nosideeffect)
8041 # after this tag, mechanisms are not by side-effect, so they'll
8042 # only be used when explicitly requested
8043 if test "x$enable_dependency_tracking" = xyes; then
8044 continue
8045 else
8046 break
8049 none) break ;;
8050 esac
8051 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8052 # mode. It turns out that the SunPro C++ compiler does not properly
8053 # handle `-M -o', and we need to detect this.
8054 if depmode=$depmode \
8055 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8057 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8058 >/dev/null 2>conftest.err &&
8059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8060 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8061 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8062 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8063 # icc doesn't choke on unknown options, it will just issue warnings
8064 # or remarks (even with -Werror). So we grep stderr for any message
8065 # that says an option was ignored or not supported.
8066 # When given -MP, icc 7.0 and 7.1 complain thusly:
8067 # icc: Command line warning: ignoring option '-M'; no argument required
8068 # The diagnosis changed in icc 8.0:
8069 # icc: Command line remark: option '-MP' not supported
8070 if (grep 'ignoring option' conftest.err ||
8071 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8072 am_cv_CXX_dependencies_compiler_type=$depmode
8073 break
8076 done
8078 cd ..
8079 rm -rf conftest.dir
8080 else
8081 am_cv_CXX_dependencies_compiler_type=none
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8086 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8087 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8090 test "x$enable_dependency_tracking" != xno \
8091 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8092 am__fastdepCXX_TRUE=
8093 am__fastdepCXX_FALSE='#'
8094 else
8095 am__fastdepCXX_TRUE='#'
8096 am__fastdepCXX_FALSE=
8100 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8101 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8102 (test "X$CXX" != "Xg++"))) ; then
8103 ac_ext=cpp
8104 ac_cpp='$CXXCPP $CPPFLAGS'
8105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8109 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8110 if test -z "$CXXCPP"; then
8111 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 # Double quotes because CXXCPP needs to be expanded
8115 for CXXCPP in "$CXX -E" "/lib/cpp"
8117 ac_preproc_ok=false
8118 for ac_cxx_preproc_warn_flag in '' yes
8120 # Use a header file that comes with gcc, so configuring glibc
8121 # with a fresh cross-compiler works.
8122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8123 # <limits.h> exists even on freestanding compilers.
8124 # On the NeXT, cc -E runs the code through the compiler's parser,
8125 # not just through cpp. "Syntax error" is here to catch this case.
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8128 #ifdef __STDC__
8129 # include <limits.h>
8130 #else
8131 # include <assert.h>
8132 #endif
8133 Syntax error
8134 _ACEOF
8135 if ac_fn_cxx_try_cpp "$LINENO"; then :
8137 else
8138 # Broken: fails on valid input.
8139 continue
8141 rm -f conftest.err conftest.$ac_ext
8143 # OK, works on sane cases. Now check whether nonexistent headers
8144 # can be detected and how.
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 #include <ac_nonexistent.h>
8148 _ACEOF
8149 if ac_fn_cxx_try_cpp "$LINENO"; then :
8150 # Broken: success on invalid input.
8151 continue
8152 else
8153 # Passes both tests.
8154 ac_preproc_ok=:
8155 break
8157 rm -f conftest.err conftest.$ac_ext
8159 done
8160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8161 rm -f conftest.err conftest.$ac_ext
8162 if $ac_preproc_ok; then :
8163 break
8166 done
8167 ac_cv_prog_CXXCPP=$CXXCPP
8170 CXXCPP=$ac_cv_prog_CXXCPP
8171 else
8172 ac_cv_prog_CXXCPP=$CXXCPP
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8175 $as_echo "$CXXCPP" >&6; }
8176 ac_preproc_ok=false
8177 for ac_cxx_preproc_warn_flag in '' yes
8179 # Use a header file that comes with gcc, so configuring glibc
8180 # with a fresh cross-compiler works.
8181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8182 # <limits.h> exists even on freestanding compilers.
8183 # On the NeXT, cc -E runs the code through the compiler's parser,
8184 # not just through cpp. "Syntax error" is here to catch this case.
8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8186 /* end confdefs.h. */
8187 #ifdef __STDC__
8188 # include <limits.h>
8189 #else
8190 # include <assert.h>
8191 #endif
8192 Syntax error
8193 _ACEOF
8194 if ac_fn_cxx_try_cpp "$LINENO"; then :
8196 else
8197 # Broken: fails on valid input.
8198 continue
8200 rm -f conftest.err conftest.$ac_ext
8202 # OK, works on sane cases. Now check whether nonexistent headers
8203 # can be detected and how.
8204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8206 #include <ac_nonexistent.h>
8207 _ACEOF
8208 if ac_fn_cxx_try_cpp "$LINENO"; then :
8209 # Broken: success on invalid input.
8210 continue
8211 else
8212 # Passes both tests.
8213 ac_preproc_ok=:
8214 break
8216 rm -f conftest.err conftest.$ac_ext
8218 done
8219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8220 rm -f conftest.err conftest.$ac_ext
8221 if $ac_preproc_ok; then :
8223 else
8224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8226 _lt_caught_CXX_error=yes; }
8229 ac_ext=c
8230 ac_cpp='$CPP $CPPFLAGS'
8231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8235 else
8236 _lt_caught_CXX_error=yes
8243 # Set options
8247 enable_dlopen=no
8250 enable_win32_dll=no
8253 # Check whether --enable-shared was given.
8254 if test "${enable_shared+set}" = set; then :
8255 enableval=$enable_shared; p=${PACKAGE-default}
8256 case $enableval in
8257 yes) enable_shared=yes ;;
8258 no) enable_shared=no ;;
8260 enable_shared=no
8261 # Look at the argument we got. We use all the common list separators.
8262 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8263 for pkg in $enableval; do
8264 IFS="$lt_save_ifs"
8265 if test "X$pkg" = "X$p"; then
8266 enable_shared=yes
8268 done
8269 IFS="$lt_save_ifs"
8271 esac
8272 else
8273 enable_shared=yes
8284 # Check whether --enable-static was given.
8285 if test "${enable_static+set}" = set; then :
8286 enableval=$enable_static; p=${PACKAGE-default}
8287 case $enableval in
8288 yes) enable_static=yes ;;
8289 no) enable_static=no ;;
8291 enable_static=no
8292 # Look at the argument we got. We use all the common list separators.
8293 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8294 for pkg in $enableval; do
8295 IFS="$lt_save_ifs"
8296 if test "X$pkg" = "X$p"; then
8297 enable_static=yes
8299 done
8300 IFS="$lt_save_ifs"
8302 esac
8303 else
8304 enable_static=yes
8316 # Check whether --with-pic was given.
8317 if test "${with_pic+set}" = set; then :
8318 withval=$with_pic; pic_mode="$withval"
8319 else
8320 pic_mode=default
8324 test -z "$pic_mode" && pic_mode=default
8336 # This can be used to rebuild libtool when needed
8337 LIBTOOL_DEPS="$ltmain"
8339 # Always use our own libtool.
8340 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8366 test -z "$LN_S" && LN_S="ln -s"
8381 if test -n "${ZSH_VERSION+set}" ; then
8382 setopt NO_GLOB_SUBST
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8386 $as_echo_n "checking for objdir... " >&6; }
8387 if test "${lt_cv_objdir+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 rm -f .libs 2>/dev/null
8391 mkdir .libs 2>/dev/null
8392 if test -d .libs; then
8393 lt_cv_objdir=.libs
8394 else
8395 # MS-DOS does not allow filenames that begin with a dot.
8396 lt_cv_objdir=_libs
8398 rmdir .libs 2>/dev/null
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8401 $as_echo "$lt_cv_objdir" >&6; }
8402 objdir=$lt_cv_objdir
8408 cat >>confdefs.h <<_ACEOF
8409 #define LT_OBJDIR "$lt_cv_objdir/"
8410 _ACEOF
8428 case $host_os in
8429 aix3*)
8430 # AIX sometimes has problems with the GCC collect2 program. For some
8431 # reason, if we set the COLLECT_NAMES environment variable, the problems
8432 # vanish in a puff of smoke.
8433 if test "X${COLLECT_NAMES+set}" != Xset; then
8434 COLLECT_NAMES=
8435 export COLLECT_NAMES
8438 esac
8440 # Sed substitution that helps us do robust quoting. It backslashifies
8441 # metacharacters that are still active within double-quoted strings.
8442 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8444 # Same as above, but do not quote variable references.
8445 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8447 # Sed substitution to delay expansion of an escaped shell variable in a
8448 # double_quote_subst'ed string.
8449 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8451 # Sed substitution to delay expansion of an escaped single quote.
8452 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8454 # Sed substitution to avoid accidental globbing in evaled expressions
8455 no_glob_subst='s/\*/\\\*/g'
8457 # Global variables:
8458 ofile=libtool
8459 can_build_shared=yes
8461 # All known linkers require a `.a' archive for static linking (except MSVC,
8462 # which needs '.lib').
8463 libext=a
8465 with_gnu_ld="$lt_cv_prog_gnu_ld"
8467 old_CC="$CC"
8468 old_CFLAGS="$CFLAGS"
8470 # Set sane defaults for various variables
8471 test -z "$CC" && CC=cc
8472 test -z "$LTCC" && LTCC=$CC
8473 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8474 test -z "$LD" && LD=ld
8475 test -z "$ac_objext" && ac_objext=o
8477 for cc_temp in $compiler""; do
8478 case $cc_temp in
8479 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8480 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8481 \-*) ;;
8482 *) break;;
8483 esac
8484 done
8485 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8488 # Only perform the check for file, if the check method requires it
8489 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8490 case $deplibs_check_method in
8491 file_magic*)
8492 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8494 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8495 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8496 $as_echo_n "(cached) " >&6
8497 else
8498 case $MAGIC_CMD in
8499 [\\/*] | ?:[\\/]*)
8500 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8503 lt_save_MAGIC_CMD="$MAGIC_CMD"
8504 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8505 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8506 for ac_dir in $ac_dummy; do
8507 IFS="$lt_save_ifs"
8508 test -z "$ac_dir" && ac_dir=.
8509 if test -f $ac_dir/${ac_tool_prefix}file; then
8510 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8511 if test -n "$file_magic_test_file"; then
8512 case $deplibs_check_method in
8513 "file_magic "*)
8514 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8515 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8516 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8517 $EGREP "$file_magic_regex" > /dev/null; then
8519 else
8520 cat <<_LT_EOF 1>&2
8522 *** Warning: the command libtool uses to detect shared libraries,
8523 *** $file_magic_cmd, produces output that libtool cannot recognize.
8524 *** The result is that libtool may fail to recognize shared libraries
8525 *** as such. This will affect the creation of libtool libraries that
8526 *** depend on shared libraries, but programs linked with such libtool
8527 *** libraries will work regardless of this problem. Nevertheless, you
8528 *** may want to report the problem to your system manager and/or to
8529 *** bug-libtool@gnu.org
8531 _LT_EOF
8532 fi ;;
8533 esac
8535 break
8537 done
8538 IFS="$lt_save_ifs"
8539 MAGIC_CMD="$lt_save_MAGIC_CMD"
8541 esac
8544 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8545 if test -n "$MAGIC_CMD"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8547 $as_echo "$MAGIC_CMD" >&6; }
8548 else
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8557 if test -z "$lt_cv_path_MAGIC_CMD"; then
8558 if test -n "$ac_tool_prefix"; then
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8560 $as_echo_n "checking for file... " >&6; }
8561 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 case $MAGIC_CMD in
8565 [\\/*] | ?:[\\/]*)
8566 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8569 lt_save_MAGIC_CMD="$MAGIC_CMD"
8570 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8571 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8572 for ac_dir in $ac_dummy; do
8573 IFS="$lt_save_ifs"
8574 test -z "$ac_dir" && ac_dir=.
8575 if test -f $ac_dir/file; then
8576 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8577 if test -n "$file_magic_test_file"; then
8578 case $deplibs_check_method in
8579 "file_magic "*)
8580 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8581 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8582 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8583 $EGREP "$file_magic_regex" > /dev/null; then
8585 else
8586 cat <<_LT_EOF 1>&2
8588 *** Warning: the command libtool uses to detect shared libraries,
8589 *** $file_magic_cmd, produces output that libtool cannot recognize.
8590 *** The result is that libtool may fail to recognize shared libraries
8591 *** as such. This will affect the creation of libtool libraries that
8592 *** depend on shared libraries, but programs linked with such libtool
8593 *** libraries will work regardless of this problem. Nevertheless, you
8594 *** may want to report the problem to your system manager and/or to
8595 *** bug-libtool@gnu.org
8597 _LT_EOF
8598 fi ;;
8599 esac
8601 break
8603 done
8604 IFS="$lt_save_ifs"
8605 MAGIC_CMD="$lt_save_MAGIC_CMD"
8607 esac
8610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8611 if test -n "$MAGIC_CMD"; then
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8613 $as_echo "$MAGIC_CMD" >&6; }
8614 else
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8616 $as_echo "no" >&6; }
8620 else
8621 MAGIC_CMD=:
8627 esac
8629 # Use C for the default configuration in the libtool script
8631 lt_save_CC="$CC"
8632 ac_ext=c
8633 ac_cpp='$CPP $CPPFLAGS'
8634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8639 # Source file extension for C test sources.
8640 ac_ext=c
8642 # Object file extension for compiled C test sources.
8643 objext=o
8644 objext=$objext
8646 # Code to be used in simple compile tests
8647 lt_simple_compile_test_code="int some_variable = 0;"
8649 # Code to be used in simple link tests
8650 lt_simple_link_test_code='int main(){return(0);}'
8658 # If no C compiler was specified, use CC.
8659 LTCC=${LTCC-"$CC"}
8661 # If no C compiler flags were specified, use CFLAGS.
8662 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8664 # Allow CC to be a program name with arguments.
8665 compiler=$CC
8667 # Save the default compiler, since it gets overwritten when the other
8668 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8669 compiler_DEFAULT=$CC
8671 # save warnings/boilerplate of simple test code
8672 ac_outfile=conftest.$ac_objext
8673 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8674 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8675 _lt_compiler_boilerplate=`cat conftest.err`
8676 $RM conftest*
8678 ac_outfile=conftest.$ac_objext
8679 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8680 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8681 _lt_linker_boilerplate=`cat conftest.err`
8682 $RM -r conftest*
8685 ## CAVEAT EMPTOR:
8686 ## There is no encapsulation within the following macros, do not change
8687 ## the running order or otherwise move them around unless you know exactly
8688 ## what you are doing...
8689 if test -n "$compiler"; then
8691 lt_prog_compiler_no_builtin_flag=
8693 if test "$GCC" = yes; then
8694 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8697 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8698 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 lt_cv_prog_compiler_rtti_exceptions=no
8702 ac_outfile=conftest.$ac_objext
8703 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8704 lt_compiler_flag="-fno-rtti -fno-exceptions"
8705 # Insert the option either (1) after the last *FLAGS variable, or
8706 # (2) before a word containing "conftest.", or (3) at the end.
8707 # Note that $ac_compile itself does not contain backslashes and begins
8708 # with a dollar sign (not a hyphen), so the echo should work correctly.
8709 # The option is referenced via a variable to avoid confusing sed.
8710 lt_compile=`echo "$ac_compile" | $SED \
8711 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8713 -e 's:$: $lt_compiler_flag:'`
8714 (eval echo "\"\$as_me:8714: $lt_compile\"" >&5)
8715 (eval "$lt_compile" 2>conftest.err)
8716 ac_status=$?
8717 cat conftest.err >&5
8718 echo "$as_me:8718: \$? = $ac_status" >&5
8719 if (exit $ac_status) && test -s "$ac_outfile"; then
8720 # The compiler can only warn and ignore the option if not recognized
8721 # So say no if there are warnings other than the usual output.
8722 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8724 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8725 lt_cv_prog_compiler_rtti_exceptions=yes
8728 $RM conftest*
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8732 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8734 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8735 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8736 else
8747 lt_prog_compiler_wl=
8748 lt_prog_compiler_pic=
8749 lt_prog_compiler_static=
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8752 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8754 if test "$GCC" = yes; then
8755 lt_prog_compiler_wl='-Wl,'
8756 lt_prog_compiler_static='-static'
8758 case $host_os in
8759 aix*)
8760 # All AIX code is PIC.
8761 if test "$host_cpu" = ia64; then
8762 # AIX 5 now supports IA64 processor
8763 lt_prog_compiler_static='-Bstatic'
8767 amigaos*)
8768 case $host_cpu in
8769 powerpc)
8770 # see comment about AmigaOS4 .so support
8771 lt_prog_compiler_pic='-fPIC'
8773 m68k)
8774 # FIXME: we need at least 68020 code to build shared libraries, but
8775 # adding the `-m68020' flag to GCC prevents building anything better,
8776 # like `-m68040'.
8777 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8779 esac
8782 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8783 # PIC is the default for these OSes.
8786 mingw* | cygwin* | pw32* | os2* | cegcc*)
8787 # This hack is so that the source file can tell whether it is being
8788 # built for inclusion in a dll (and should export symbols for example).
8789 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8790 # (--disable-auto-import) libraries
8791 lt_prog_compiler_pic='-DDLL_EXPORT'
8794 darwin* | rhapsody*)
8795 # PIC is the default on this platform
8796 # Common symbols not allowed in MH_DYLIB files
8797 lt_prog_compiler_pic='-fno-common'
8800 hpux*)
8801 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8802 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8803 # sets the default TLS model and affects inlining.
8804 case $host_cpu in
8805 hppa*64*)
8806 # +Z the default
8809 lt_prog_compiler_pic='-fPIC'
8811 esac
8814 interix[3-9]*)
8815 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8816 # Instead, we relocate shared libraries at runtime.
8819 msdosdjgpp*)
8820 # Just because we use GCC doesn't mean we suddenly get shared libraries
8821 # on systems that don't support them.
8822 lt_prog_compiler_can_build_shared=no
8823 enable_shared=no
8826 *nto* | *qnx*)
8827 # QNX uses GNU C++, but need to define -shared option too, otherwise
8828 # it will coredump.
8829 lt_prog_compiler_pic='-fPIC -shared'
8832 sysv4*MP*)
8833 if test -d /usr/nec; then
8834 lt_prog_compiler_pic=-Kconform_pic
8839 lt_prog_compiler_pic='-fPIC'
8841 esac
8842 else
8843 # PORTME Check for flag to pass linker flags through the system compiler.
8844 case $host_os in
8845 aix*)
8846 lt_prog_compiler_wl='-Wl,'
8847 if test "$host_cpu" = ia64; then
8848 # AIX 5 now supports IA64 processor
8849 lt_prog_compiler_static='-Bstatic'
8850 else
8851 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8855 mingw* | cygwin* | pw32* | os2* | cegcc*)
8856 # This hack is so that the source file can tell whether it is being
8857 # built for inclusion in a dll (and should export symbols for example).
8858 lt_prog_compiler_pic='-DDLL_EXPORT'
8861 hpux9* | hpux10* | hpux11*)
8862 lt_prog_compiler_wl='-Wl,'
8863 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8864 # not for PA HP-UX.
8865 case $host_cpu in
8866 hppa*64*|ia64*)
8867 # +Z the default
8870 lt_prog_compiler_pic='+Z'
8872 esac
8873 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8874 lt_prog_compiler_static='${wl}-a ${wl}archive'
8877 irix5* | irix6* | nonstopux*)
8878 lt_prog_compiler_wl='-Wl,'
8879 # PIC (with -KPIC) is the default.
8880 lt_prog_compiler_static='-non_shared'
8883 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8884 case $cc_basename in
8885 # old Intel for x86_64 which still supported -KPIC.
8886 ecc*)
8887 lt_prog_compiler_wl='-Wl,'
8888 lt_prog_compiler_pic='-KPIC'
8889 lt_prog_compiler_static='-static'
8891 # icc used to be incompatible with GCC.
8892 # ICC 10 doesn't accept -KPIC any more.
8893 icc* | ifort*)
8894 lt_prog_compiler_wl='-Wl,'
8895 lt_prog_compiler_pic='-fPIC'
8896 lt_prog_compiler_static='-static'
8898 # Lahey Fortran 8.1.
8899 lf95*)
8900 lt_prog_compiler_wl='-Wl,'
8901 lt_prog_compiler_pic='--shared'
8902 lt_prog_compiler_static='--static'
8904 pgcc* | pgf77* | pgf90* | pgf95*)
8905 # Portland Group compilers (*not* the Pentium gcc compiler,
8906 # which looks to be a dead project)
8907 lt_prog_compiler_wl='-Wl,'
8908 lt_prog_compiler_pic='-fpic'
8909 lt_prog_compiler_static='-Bstatic'
8911 ccc*)
8912 lt_prog_compiler_wl='-Wl,'
8913 # All Alpha code is PIC.
8914 lt_prog_compiler_static='-non_shared'
8916 xl*)
8917 # IBM XL C 8.0/Fortran 10.1 on PPC
8918 lt_prog_compiler_wl='-Wl,'
8919 lt_prog_compiler_pic='-qpic'
8920 lt_prog_compiler_static='-qstaticlink'
8923 case `$CC -V 2>&1 | sed 5q` in
8924 *Sun\ C*)
8925 # Sun C 5.9
8926 lt_prog_compiler_pic='-KPIC'
8927 lt_prog_compiler_static='-Bstatic'
8928 lt_prog_compiler_wl='-Wl,'
8930 *Sun\ F*)
8931 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8932 lt_prog_compiler_pic='-KPIC'
8933 lt_prog_compiler_static='-Bstatic'
8934 lt_prog_compiler_wl=''
8936 esac
8938 esac
8941 newsos6)
8942 lt_prog_compiler_pic='-KPIC'
8943 lt_prog_compiler_static='-Bstatic'
8946 *nto* | *qnx*)
8947 # QNX uses GNU C++, but need to define -shared option too, otherwise
8948 # it will coredump.
8949 lt_prog_compiler_pic='-fPIC -shared'
8952 osf3* | osf4* | osf5*)
8953 lt_prog_compiler_wl='-Wl,'
8954 # All OSF/1 code is PIC.
8955 lt_prog_compiler_static='-non_shared'
8958 rdos*)
8959 lt_prog_compiler_static='-non_shared'
8962 solaris*)
8963 lt_prog_compiler_pic='-KPIC'
8964 lt_prog_compiler_static='-Bstatic'
8965 case $cc_basename in
8966 f77* | f90* | f95*)
8967 lt_prog_compiler_wl='-Qoption ld ';;
8969 lt_prog_compiler_wl='-Wl,';;
8970 esac
8973 sunos4*)
8974 lt_prog_compiler_wl='-Qoption ld '
8975 lt_prog_compiler_pic='-PIC'
8976 lt_prog_compiler_static='-Bstatic'
8979 sysv4 | sysv4.2uw2* | sysv4.3*)
8980 lt_prog_compiler_wl='-Wl,'
8981 lt_prog_compiler_pic='-KPIC'
8982 lt_prog_compiler_static='-Bstatic'
8985 sysv4*MP*)
8986 if test -d /usr/nec ;then
8987 lt_prog_compiler_pic='-Kconform_pic'
8988 lt_prog_compiler_static='-Bstatic'
8992 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8993 lt_prog_compiler_wl='-Wl,'
8994 lt_prog_compiler_pic='-KPIC'
8995 lt_prog_compiler_static='-Bstatic'
8998 unicos*)
8999 lt_prog_compiler_wl='-Wl,'
9000 lt_prog_compiler_can_build_shared=no
9003 uts4*)
9004 lt_prog_compiler_pic='-pic'
9005 lt_prog_compiler_static='-Bstatic'
9009 lt_prog_compiler_can_build_shared=no
9011 esac
9014 case $host_os in
9015 # For platforms which do not support PIC, -DPIC is meaningless:
9016 *djgpp*)
9017 lt_prog_compiler_pic=
9020 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9022 esac
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9024 $as_echo "$lt_prog_compiler_pic" >&6; }
9032 # Check to make sure the PIC flag actually works.
9034 if test -n "$lt_prog_compiler_pic"; then
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9036 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9037 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9038 $as_echo_n "(cached) " >&6
9039 else
9040 lt_cv_prog_compiler_pic_works=no
9041 ac_outfile=conftest.$ac_objext
9042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9043 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9044 # Insert the option either (1) after the last *FLAGS variable, or
9045 # (2) before a word containing "conftest.", or (3) at the end.
9046 # Note that $ac_compile itself does not contain backslashes and begins
9047 # with a dollar sign (not a hyphen), so the echo should work correctly.
9048 # The option is referenced via a variable to avoid confusing sed.
9049 lt_compile=`echo "$ac_compile" | $SED \
9050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9052 -e 's:$: $lt_compiler_flag:'`
9053 (eval echo "\"\$as_me:9053: $lt_compile\"" >&5)
9054 (eval "$lt_compile" 2>conftest.err)
9055 ac_status=$?
9056 cat conftest.err >&5
9057 echo "$as_me:9057: \$? = $ac_status" >&5
9058 if (exit $ac_status) && test -s "$ac_outfile"; then
9059 # The compiler can only warn and ignore the option if not recognized
9060 # So say no if there are warnings other than the usual output.
9061 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9062 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9063 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9064 lt_cv_prog_compiler_pic_works=yes
9067 $RM conftest*
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9071 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9073 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9074 case $lt_prog_compiler_pic in
9075 "" | " "*) ;;
9076 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9077 esac
9078 else
9079 lt_prog_compiler_pic=
9080 lt_prog_compiler_can_build_shared=no
9091 # Check to make sure the static flag actually works.
9093 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9095 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9096 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 lt_cv_prog_compiler_static_works=no
9100 save_LDFLAGS="$LDFLAGS"
9101 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9102 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9104 # The linker can only warn and ignore the option if not recognized
9105 # So say no if there are warnings
9106 if test -s conftest.err; then
9107 # Append any errors to the config.log.
9108 cat conftest.err 1>&5
9109 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9111 if diff conftest.exp conftest.er2 >/dev/null; then
9112 lt_cv_prog_compiler_static_works=yes
9114 else
9115 lt_cv_prog_compiler_static_works=yes
9118 $RM -r conftest*
9119 LDFLAGS="$save_LDFLAGS"
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9123 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9125 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9127 else
9128 lt_prog_compiler_static=
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9138 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9139 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 lt_cv_prog_compiler_c_o=no
9143 $RM -r conftest 2>/dev/null
9144 mkdir conftest
9145 cd conftest
9146 mkdir out
9147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9149 lt_compiler_flag="-o out/conftest2.$ac_objext"
9150 # Insert the option either (1) after the last *FLAGS variable, or
9151 # (2) before a word containing "conftest.", or (3) at the end.
9152 # Note that $ac_compile itself does not contain backslashes and begins
9153 # with a dollar sign (not a hyphen), so the echo should work correctly.
9154 lt_compile=`echo "$ac_compile" | $SED \
9155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9157 -e 's:$: $lt_compiler_flag:'`
9158 (eval echo "\"\$as_me:9158: $lt_compile\"" >&5)
9159 (eval "$lt_compile" 2>out/conftest.err)
9160 ac_status=$?
9161 cat out/conftest.err >&5
9162 echo "$as_me:9162: \$? = $ac_status" >&5
9163 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9164 then
9165 # The compiler can only warn and ignore the option if not recognized
9166 # So say no if there are warnings
9167 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9170 lt_cv_prog_compiler_c_o=yes
9173 chmod u+w . 2>&5
9174 $RM conftest*
9175 # SGI C++ compiler will create directory out/ii_files/ for
9176 # template instantiation
9177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9178 $RM out/* && rmdir out
9179 cd ..
9180 $RM -r conftest
9181 $RM conftest*
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9185 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9193 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9194 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 lt_cv_prog_compiler_c_o=no
9198 $RM -r conftest 2>/dev/null
9199 mkdir conftest
9200 cd conftest
9201 mkdir out
9202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9204 lt_compiler_flag="-o out/conftest2.$ac_objext"
9205 # Insert the option either (1) after the last *FLAGS variable, or
9206 # (2) before a word containing "conftest.", or (3) at the end.
9207 # Note that $ac_compile itself does not contain backslashes and begins
9208 # with a dollar sign (not a hyphen), so the echo should work correctly.
9209 lt_compile=`echo "$ac_compile" | $SED \
9210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9212 -e 's:$: $lt_compiler_flag:'`
9213 (eval echo "\"\$as_me:9213: $lt_compile\"" >&5)
9214 (eval "$lt_compile" 2>out/conftest.err)
9215 ac_status=$?
9216 cat out/conftest.err >&5
9217 echo "$as_me:9217: \$? = $ac_status" >&5
9218 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9219 then
9220 # The compiler can only warn and ignore the option if not recognized
9221 # So say no if there are warnings
9222 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9225 lt_cv_prog_compiler_c_o=yes
9228 chmod u+w . 2>&5
9229 $RM conftest*
9230 # SGI C++ compiler will create directory out/ii_files/ for
9231 # template instantiation
9232 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9233 $RM out/* && rmdir out
9234 cd ..
9235 $RM -r conftest
9236 $RM conftest*
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9240 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9245 hard_links="nottested"
9246 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9247 # do not overwrite the value of need_locks provided by the user
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9249 $as_echo_n "checking if we can lock with hard links... " >&6; }
9250 hard_links=yes
9251 $RM conftest*
9252 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9253 touch conftest.a
9254 ln conftest.a conftest.b 2>&5 || hard_links=no
9255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9257 $as_echo "$hard_links" >&6; }
9258 if test "$hard_links" = no; then
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9260 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9261 need_locks=warn
9263 else
9264 need_locks=no
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9273 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9275 runpath_var=
9276 allow_undefined_flag=
9277 always_export_symbols=no
9278 archive_cmds=
9279 archive_expsym_cmds=
9280 compiler_needs_object=no
9281 enable_shared_with_static_runtimes=no
9282 export_dynamic_flag_spec=
9283 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9284 hardcode_automatic=no
9285 hardcode_direct=no
9286 hardcode_direct_absolute=no
9287 hardcode_libdir_flag_spec=
9288 hardcode_libdir_flag_spec_ld=
9289 hardcode_libdir_separator=
9290 hardcode_minus_L=no
9291 hardcode_shlibpath_var=unsupported
9292 inherit_rpath=no
9293 link_all_deplibs=unknown
9294 module_cmds=
9295 module_expsym_cmds=
9296 old_archive_from_new_cmds=
9297 old_archive_from_expsyms_cmds=
9298 thread_safe_flag_spec=
9299 whole_archive_flag_spec=
9300 # include_expsyms should be a list of space-separated symbols to be *always*
9301 # included in the symbol list
9302 include_expsyms=
9303 # exclude_expsyms can be an extended regexp of symbols to exclude
9304 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9305 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9306 # as well as any symbol that contains `d'.
9307 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9308 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9309 # platforms (ab)use it in PIC code, but their linkers get confused if
9310 # the symbol is explicitly referenced. Since portable code cannot
9311 # rely on this symbol name, it's probably fine to never include it in
9312 # preloaded symbol tables.
9313 # Exclude shared library initialization/finalization symbols.
9314 extract_expsyms_cmds=
9316 case $host_os in
9317 cygwin* | mingw* | pw32* | cegcc*)
9318 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9319 # When not using gcc, we currently assume that we are using
9320 # Microsoft Visual C++.
9321 if test "$GCC" != yes; then
9322 with_gnu_ld=no
9325 interix*)
9326 # we just hope/assume this is gcc and not c89 (= MSVC++)
9327 with_gnu_ld=yes
9329 openbsd*)
9330 with_gnu_ld=no
9332 linux* | k*bsd*-gnu)
9333 link_all_deplibs=no
9335 esac
9337 ld_shlibs=yes
9338 if test "$with_gnu_ld" = yes; then
9339 # If archive_cmds runs LD, not CC, wlarc should be empty
9340 wlarc='${wl}'
9342 # Set some defaults for GNU ld with shared library support. These
9343 # are reset later if shared libraries are not supported. Putting them
9344 # here allows them to be overridden if necessary.
9345 runpath_var=LD_RUN_PATH
9346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9347 export_dynamic_flag_spec='${wl}--export-dynamic'
9348 # ancient GNU ld didn't support --whole-archive et. al.
9349 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9350 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9351 else
9352 whole_archive_flag_spec=
9354 supports_anon_versioning=no
9355 case `$LD -v 2>&1` in
9356 *GNU\ gold*) supports_anon_versioning=yes ;;
9357 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9358 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9359 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9360 *\ 2.11.*) ;; # other 2.11 versions
9361 *) supports_anon_versioning=yes ;;
9362 esac
9364 # See if GNU ld supports shared libraries.
9365 case $host_os in
9366 aix[3-9]*)
9367 # On AIX/PPC, the GNU linker is very broken
9368 if test "$host_cpu" != ia64; then
9369 ld_shlibs=no
9370 cat <<_LT_EOF 1>&2
9372 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9373 *** to be unable to reliably create shared libraries on AIX.
9374 *** Therefore, libtool is disabling shared libraries support. If you
9375 *** really care for shared libraries, you may want to modify your PATH
9376 *** so that a non-GNU linker is found, and then restart.
9378 _LT_EOF
9382 amigaos*)
9383 case $host_cpu in
9384 powerpc)
9385 # see comment about AmigaOS4 .so support
9386 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9387 archive_expsym_cmds=''
9389 m68k)
9390 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)'
9391 hardcode_libdir_flag_spec='-L$libdir'
9392 hardcode_minus_L=yes
9394 esac
9397 beos*)
9398 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9399 allow_undefined_flag=unsupported
9400 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9401 # support --undefined. This deserves some investigation. FIXME
9402 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9403 else
9404 ld_shlibs=no
9408 cygwin* | mingw* | pw32* | cegcc*)
9409 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9410 # as there is no search path for DLLs.
9411 hardcode_libdir_flag_spec='-L$libdir'
9412 allow_undefined_flag=unsupported
9413 always_export_symbols=no
9414 enable_shared_with_static_runtimes=yes
9415 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9417 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9418 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9419 # If the export-symbols file already is a .def file (1st line
9420 # is EXPORTS), use it as is; otherwise, prepend...
9421 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9422 cp $export_symbols $output_objdir/$soname.def;
9423 else
9424 echo EXPORTS > $output_objdir/$soname.def;
9425 cat $export_symbols >> $output_objdir/$soname.def;
9427 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9428 else
9429 ld_shlibs=no
9433 interix[3-9]*)
9434 hardcode_direct=no
9435 hardcode_shlibpath_var=no
9436 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9437 export_dynamic_flag_spec='${wl}-E'
9438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9439 # Instead, shared libraries are loaded at an image base (0x10000000 by
9440 # default) and relocated if they conflict, which is a slow very memory
9441 # consuming and fragmenting process. To avoid this, we pick a random,
9442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9443 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9444 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9445 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9448 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9449 tmp_diet=no
9450 if test "$host_os" = linux-dietlibc; then
9451 case $cc_basename in
9452 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9453 esac
9455 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9456 && test "$tmp_diet" = no
9457 then
9458 tmp_addflag=
9459 tmp_sharedflag='-shared'
9460 case $cc_basename,$host_cpu in
9461 pgcc*) # Portland Group C compiler
9462 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9463 tmp_addflag=' $pic_flag'
9465 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9466 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9467 tmp_addflag=' $pic_flag -Mnomain' ;;
9468 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9469 tmp_addflag=' -i_dynamic' ;;
9470 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9471 tmp_addflag=' -i_dynamic -nofor_main' ;;
9472 ifc* | ifort*) # Intel Fortran compiler
9473 tmp_addflag=' -nofor_main' ;;
9474 lf95*) # Lahey Fortran 8.1
9475 whole_archive_flag_spec=
9476 tmp_sharedflag='--shared' ;;
9477 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9478 tmp_sharedflag='-qmkshrobj'
9479 tmp_addflag= ;;
9480 esac
9481 case `$CC -V 2>&1 | sed 5q` in
9482 *Sun\ C*) # Sun C 5.9
9483 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9484 compiler_needs_object=yes
9485 tmp_sharedflag='-G' ;;
9486 *Sun\ F*) # Sun Fortran 8.3
9487 tmp_sharedflag='-G' ;;
9488 esac
9489 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9491 if test "x$supports_anon_versioning" = xyes; then
9492 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9493 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9494 echo "local: *; };" >> $output_objdir/$libname.ver~
9495 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9498 case $cc_basename in
9499 xlf*)
9500 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9501 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9502 hardcode_libdir_flag_spec=
9503 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9504 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9505 if test "x$supports_anon_versioning" = xyes; then
9506 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9508 echo "local: *; };" >> $output_objdir/$libname.ver~
9509 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9512 esac
9513 else
9514 ld_shlibs=no
9518 netbsd* | netbsdelf*-gnu)
9519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9520 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9521 wlarc=
9522 else
9523 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9524 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9528 solaris*)
9529 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9530 ld_shlibs=no
9531 cat <<_LT_EOF 1>&2
9533 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9534 *** create shared libraries on Solaris systems. Therefore, libtool
9535 *** is disabling shared libraries support. We urge you to upgrade GNU
9536 *** binutils to release 2.9.1 or newer. Another option is to modify
9537 *** your PATH or compiler configuration so that the native linker is
9538 *** used, and then restart.
9540 _LT_EOF
9541 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9542 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9543 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9544 else
9545 ld_shlibs=no
9549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9550 case `$LD -v 2>&1` in
9551 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9552 ld_shlibs=no
9553 cat <<_LT_EOF 1>&2
9555 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9556 *** reliably create shared libraries on SCO systems. Therefore, libtool
9557 *** is disabling shared libraries support. We urge you to upgrade GNU
9558 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9559 *** your PATH or compiler configuration so that the native linker is
9560 *** used, and then restart.
9562 _LT_EOF
9565 # For security reasons, it is highly recommended that you always
9566 # use absolute paths for naming shared libraries, and exclude the
9567 # DT_RUNPATH tag from executables and libraries. But doing so
9568 # requires that you compile everything twice, which is a pain.
9569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9572 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9573 else
9574 ld_shlibs=no
9577 esac
9580 sunos4*)
9581 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9582 wlarc=
9583 hardcode_direct=yes
9584 hardcode_shlibpath_var=no
9588 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9590 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9591 else
9592 ld_shlibs=no
9595 esac
9597 if test "$ld_shlibs" = no; then
9598 runpath_var=
9599 hardcode_libdir_flag_spec=
9600 export_dynamic_flag_spec=
9601 whole_archive_flag_spec=
9603 else
9604 # PORTME fill in a description of your system's linker (not GNU ld)
9605 case $host_os in
9606 aix3*)
9607 allow_undefined_flag=unsupported
9608 always_export_symbols=yes
9609 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'
9610 # Note: this linker hardcodes the directories in LIBPATH if there
9611 # are no directories specified by -L.
9612 hardcode_minus_L=yes
9613 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9614 # Neither direct hardcoding nor static linking is supported with a
9615 # broken collect2.
9616 hardcode_direct=unsupported
9620 aix[4-9]*)
9621 if test "$host_cpu" = ia64; then
9622 # On IA64, the linker does run time linking by default, so we don't
9623 # have to do anything special.
9624 aix_use_runtimelinking=no
9625 exp_sym_flag='-Bexport'
9626 no_entry_flag=""
9627 else
9628 # If we're using GNU nm, then we don't want the "-C" option.
9629 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9630 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9631 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'
9632 else
9633 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'
9635 aix_use_runtimelinking=no
9637 # Test if we are trying to use run time linking or normal
9638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9639 # need to do runtime linking.
9640 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9641 for ld_flag in $LDFLAGS; do
9642 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9643 aix_use_runtimelinking=yes
9644 break
9646 done
9648 esac
9650 exp_sym_flag='-bexport'
9651 no_entry_flag='-bnoentry'
9654 # When large executables or shared objects are built, AIX ld can
9655 # have problems creating the table of contents. If linking a library
9656 # or program results in "error TOC overflow" add -mminimal-toc to
9657 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9658 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9660 archive_cmds=''
9661 hardcode_direct=yes
9662 hardcode_direct_absolute=yes
9663 hardcode_libdir_separator=':'
9664 link_all_deplibs=yes
9665 file_list_spec='${wl}-f,'
9667 if test "$GCC" = yes; then
9668 case $host_os in aix4.[012]|aix4.[012].*)
9669 # We only want to do this on AIX 4.2 and lower, the check
9670 # below for broken collect2 doesn't work under 4.3+
9671 collect2name=`${CC} -print-prog-name=collect2`
9672 if test -f "$collect2name" &&
9673 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9674 then
9675 # We have reworked collect2
9677 else
9678 # We have old collect2
9679 hardcode_direct=unsupported
9680 # It fails to find uninstalled libraries when the uninstalled
9681 # path is not listed in the libpath. Setting hardcode_minus_L
9682 # to unsupported forces relinking
9683 hardcode_minus_L=yes
9684 hardcode_libdir_flag_spec='-L$libdir'
9685 hardcode_libdir_separator=
9688 esac
9689 shared_flag='-shared'
9690 if test "$aix_use_runtimelinking" = yes; then
9691 shared_flag="$shared_flag "'${wl}-G'
9693 link_all_deplibs=no
9694 else
9695 # not using gcc
9696 if test "$host_cpu" = ia64; then
9697 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9698 # chokes on -Wl,-G. The following line is correct:
9699 shared_flag='-G'
9700 else
9701 if test "$aix_use_runtimelinking" = yes; then
9702 shared_flag='${wl}-G'
9703 else
9704 shared_flag='${wl}-bM:SRE'
9709 export_dynamic_flag_spec='${wl}-bexpall'
9710 # It seems that -bexpall does not export symbols beginning with
9711 # underscore (_), so it is better to generate a list of symbols to export.
9712 always_export_symbols=yes
9713 if test "$aix_use_runtimelinking" = yes; then
9714 # Warning - without using the other runtime loading flags (-brtl),
9715 # -berok will link without error, but may produce a broken library.
9716 allow_undefined_flag='-berok'
9717 # Determine the default libpath from the value encoded in an
9718 # empty executable.
9719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9720 /* end confdefs.h. */
9723 main ()
9727 return 0;
9729 _ACEOF
9730 if ac_fn_c_try_link "$LINENO"; then :
9732 lt_aix_libpath_sed='
9733 /Import File Strings/,/^$/ {
9734 /^0/ {
9735 s/^0 *\(.*\)$/\1/
9739 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9740 # Check for a 64-bit object if we didn't find anything.
9741 if test -z "$aix_libpath"; then
9742 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9745 rm -f core conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9749 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9750 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9751 else
9752 if test "$host_cpu" = ia64; then
9753 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9754 allow_undefined_flag="-z nodefs"
9755 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9756 else
9757 # Determine the default libpath from the value encoded in an
9758 # empty executable.
9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9763 main ()
9767 return 0;
9769 _ACEOF
9770 if ac_fn_c_try_link "$LINENO"; then :
9772 lt_aix_libpath_sed='
9773 /Import File Strings/,/^$/ {
9774 /^0/ {
9775 s/^0 *\(.*\)$/\1/
9779 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9780 # Check for a 64-bit object if we didn't find anything.
9781 if test -z "$aix_libpath"; then
9782 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9785 rm -f core conftest.err conftest.$ac_objext \
9786 conftest$ac_exeext conftest.$ac_ext
9787 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9789 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9790 # Warning - without using the other run time loading flags,
9791 # -berok will link without error, but may produce a broken library.
9792 no_undefined_flag=' ${wl}-bernotok'
9793 allow_undefined_flag=' ${wl}-berok'
9794 # Exported symbols can be pulled into shared objects from archives
9795 whole_archive_flag_spec='$convenience'
9796 archive_cmds_need_lc=yes
9797 # This is similar to how AIX traditionally builds its shared libraries.
9798 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9803 amigaos*)
9804 case $host_cpu in
9805 powerpc)
9806 # see comment about AmigaOS4 .so support
9807 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9808 archive_expsym_cmds=''
9810 m68k)
9811 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)'
9812 hardcode_libdir_flag_spec='-L$libdir'
9813 hardcode_minus_L=yes
9815 esac
9818 bsdi[45]*)
9819 export_dynamic_flag_spec=-rdynamic
9822 cygwin* | mingw* | pw32* | cegcc*)
9823 # When not using gcc, we currently assume that we are using
9824 # Microsoft Visual C++.
9825 # hardcode_libdir_flag_spec is actually meaningless, as there is
9826 # no search path for DLLs.
9827 hardcode_libdir_flag_spec=' '
9828 allow_undefined_flag=unsupported
9829 # Tell ltmain to make .lib files, not .a files.
9830 libext=lib
9831 # Tell ltmain to make .dll files, not .so files.
9832 shrext_cmds=".dll"
9833 # FIXME: Setting linknames here is a bad hack.
9834 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9835 # The linker will automatically build a .lib file if we build a DLL.
9836 old_archive_from_new_cmds='true'
9837 # FIXME: Should let the user specify the lib program.
9838 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9839 fix_srcfile_path='`cygpath -w "$srcfile"`'
9840 enable_shared_with_static_runtimes=yes
9843 darwin* | rhapsody*)
9846 archive_cmds_need_lc=no
9847 hardcode_direct=no
9848 hardcode_automatic=yes
9849 hardcode_shlibpath_var=unsupported
9850 whole_archive_flag_spec=''
9851 link_all_deplibs=yes
9852 allow_undefined_flag="$_lt_dar_allow_undefined"
9853 case $cc_basename in
9854 ifort*) _lt_dar_can_shared=yes ;;
9855 *) _lt_dar_can_shared=$GCC ;;
9856 esac
9857 if test "$_lt_dar_can_shared" = "yes"; then
9858 output_verbose_link_cmd=echo
9859 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9860 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9861 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9862 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9864 else
9865 ld_shlibs=no
9870 dgux*)
9871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9872 hardcode_libdir_flag_spec='-L$libdir'
9873 hardcode_shlibpath_var=no
9876 freebsd1*)
9877 ld_shlibs=no
9880 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9881 # support. Future versions do this automatically, but an explicit c++rt0.o
9882 # does not break anything, and helps significantly (at the cost of a little
9883 # extra space).
9884 freebsd2.2*)
9885 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9886 hardcode_libdir_flag_spec='-R$libdir'
9887 hardcode_direct=yes
9888 hardcode_shlibpath_var=no
9891 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9892 freebsd2*)
9893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9894 hardcode_direct=yes
9895 hardcode_minus_L=yes
9896 hardcode_shlibpath_var=no
9899 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9900 freebsd* | dragonfly*)
9901 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9902 hardcode_libdir_flag_spec='-R$libdir'
9903 hardcode_direct=yes
9904 hardcode_shlibpath_var=no
9907 hpux9*)
9908 if test "$GCC" = yes; then
9909 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'
9910 else
9911 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'
9913 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9914 hardcode_libdir_separator=:
9915 hardcode_direct=yes
9917 # hardcode_minus_L: Not really in the search PATH,
9918 # but as the default location of the library.
9919 hardcode_minus_L=yes
9920 export_dynamic_flag_spec='${wl}-E'
9923 hpux10*)
9924 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9925 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9926 else
9927 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9929 if test "$with_gnu_ld" = no; then
9930 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9931 hardcode_libdir_flag_spec_ld='+b $libdir'
9932 hardcode_libdir_separator=:
9933 hardcode_direct=yes
9934 hardcode_direct_absolute=yes
9935 export_dynamic_flag_spec='${wl}-E'
9936 # hardcode_minus_L: Not really in the search PATH,
9937 # but as the default location of the library.
9938 hardcode_minus_L=yes
9942 hpux11*)
9943 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9944 case $host_cpu in
9945 hppa*64*)
9946 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9948 ia64*)
9949 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9952 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9954 esac
9955 else
9956 case $host_cpu in
9957 hppa*64*)
9958 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9960 ia64*)
9961 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9964 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9966 esac
9968 if test "$with_gnu_ld" = no; then
9969 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9970 hardcode_libdir_separator=:
9972 case $host_cpu in
9973 hppa*64*|ia64*)
9974 hardcode_direct=no
9975 hardcode_shlibpath_var=no
9978 hardcode_direct=yes
9979 hardcode_direct_absolute=yes
9980 export_dynamic_flag_spec='${wl}-E'
9982 # hardcode_minus_L: Not really in the search PATH,
9983 # but as the default location of the library.
9984 hardcode_minus_L=yes
9986 esac
9990 irix5* | irix6* | nonstopux*)
9991 if test "$GCC" = yes; then
9992 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9993 # Try to use the -exported_symbol ld option, if it does not
9994 # work, assume that -exports_file does not work either and
9995 # implicitly export all symbols.
9996 save_LDFLAGS="$LDFLAGS"
9997 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999 /* end confdefs.h. */
10000 int foo(void) {}
10001 _ACEOF
10002 if ac_fn_c_try_link "$LINENO"; then :
10003 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10006 rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008 LDFLAGS="$save_LDFLAGS"
10009 else
10010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10013 archive_cmds_need_lc='no'
10014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10015 hardcode_libdir_separator=:
10016 inherit_rpath=yes
10017 link_all_deplibs=yes
10020 netbsd* | netbsdelf*-gnu)
10021 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10023 else
10024 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10026 hardcode_libdir_flag_spec='-R$libdir'
10027 hardcode_direct=yes
10028 hardcode_shlibpath_var=no
10031 newsos6)
10032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10033 hardcode_direct=yes
10034 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10035 hardcode_libdir_separator=:
10036 hardcode_shlibpath_var=no
10039 *nto* | *qnx*)
10042 openbsd*)
10043 if test -f /usr/libexec/ld.so; then
10044 hardcode_direct=yes
10045 hardcode_shlibpath_var=no
10046 hardcode_direct_absolute=yes
10047 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10048 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10049 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10050 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10051 export_dynamic_flag_spec='${wl}-E'
10052 else
10053 case $host_os in
10054 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10056 hardcode_libdir_flag_spec='-R$libdir'
10059 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10060 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10062 esac
10064 else
10065 ld_shlibs=no
10069 os2*)
10070 hardcode_libdir_flag_spec='-L$libdir'
10071 hardcode_minus_L=yes
10072 allow_undefined_flag=unsupported
10073 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'
10074 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10077 osf3*)
10078 if test "$GCC" = yes; then
10079 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10080 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10081 else
10082 allow_undefined_flag=' -expect_unresolved \*'
10083 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10085 archive_cmds_need_lc='no'
10086 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10087 hardcode_libdir_separator=:
10090 osf4* | osf5*) # as osf3* with the addition of -msym flag
10091 if test "$GCC" = yes; then
10092 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10093 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10094 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10095 else
10096 allow_undefined_flag=' -expect_unresolved \*'
10097 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10098 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10099 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10101 # Both c and cxx compiler support -rpath directly
10102 hardcode_libdir_flag_spec='-rpath $libdir'
10104 archive_cmds_need_lc='no'
10105 hardcode_libdir_separator=:
10108 solaris*)
10109 no_undefined_flag=' -z defs'
10110 if test "$GCC" = yes; then
10111 wlarc='${wl}'
10112 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10113 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10114 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10115 else
10116 case `$CC -V 2>&1` in
10117 *"Compilers 5.0"*)
10118 wlarc=''
10119 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10120 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10121 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10124 wlarc='${wl}'
10125 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10126 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10127 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10129 esac
10131 hardcode_libdir_flag_spec='-R$libdir'
10132 hardcode_shlibpath_var=no
10133 case $host_os in
10134 solaris2.[0-5] | solaris2.[0-5].*) ;;
10136 # The compiler driver will combine and reorder linker options,
10137 # but understands `-z linker_flag'. GCC discards it without `$wl',
10138 # but is careful enough not to reorder.
10139 # Supported since Solaris 2.6 (maybe 2.5.1?)
10140 if test "$GCC" = yes; then
10141 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10142 else
10143 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10146 esac
10147 link_all_deplibs=yes
10150 sunos4*)
10151 if test "x$host_vendor" = xsequent; then
10152 # Use $CC to link under sequent, because it throws in some extra .o
10153 # files that make .init and .fini sections work.
10154 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10155 else
10156 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10158 hardcode_libdir_flag_spec='-L$libdir'
10159 hardcode_direct=yes
10160 hardcode_minus_L=yes
10161 hardcode_shlibpath_var=no
10164 sysv4)
10165 case $host_vendor in
10166 sni)
10167 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10168 hardcode_direct=yes # is this really true???
10170 siemens)
10171 ## LD is ld it makes a PLAMLIB
10172 ## CC just makes a GrossModule.
10173 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10174 reload_cmds='$CC -r -o $output$reload_objs'
10175 hardcode_direct=no
10177 motorola)
10178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10179 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10181 esac
10182 runpath_var='LD_RUN_PATH'
10183 hardcode_shlibpath_var=no
10186 sysv4.3*)
10187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10188 hardcode_shlibpath_var=no
10189 export_dynamic_flag_spec='-Bexport'
10192 sysv4*MP*)
10193 if test -d /usr/nec; then
10194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195 hardcode_shlibpath_var=no
10196 runpath_var=LD_RUN_PATH
10197 hardcode_runpath_var=yes
10198 ld_shlibs=yes
10202 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10203 no_undefined_flag='${wl}-z,text'
10204 archive_cmds_need_lc=no
10205 hardcode_shlibpath_var=no
10206 runpath_var='LD_RUN_PATH'
10208 if test "$GCC" = yes; then
10209 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10210 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10211 else
10212 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10213 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10217 sysv5* | sco3.2v5* | sco5v6*)
10218 # Note: We can NOT use -z defs as we might desire, because we do not
10219 # link with -lc, and that would cause any symbols used from libc to
10220 # always be unresolved, which means just about no library would
10221 # ever link correctly. If we're not using GNU ld we use -z text
10222 # though, which does catch some bad symbols but isn't as heavy-handed
10223 # as -z defs.
10224 no_undefined_flag='${wl}-z,text'
10225 allow_undefined_flag='${wl}-z,nodefs'
10226 archive_cmds_need_lc=no
10227 hardcode_shlibpath_var=no
10228 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10229 hardcode_libdir_separator=':'
10230 link_all_deplibs=yes
10231 export_dynamic_flag_spec='${wl}-Bexport'
10232 runpath_var='LD_RUN_PATH'
10234 if test "$GCC" = yes; then
10235 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10236 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237 else
10238 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10239 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10243 uts4*)
10244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10245 hardcode_libdir_flag_spec='-L$libdir'
10246 hardcode_shlibpath_var=no
10250 ld_shlibs=no
10252 esac
10254 if test x$host_vendor = xsni; then
10255 case $host in
10256 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10257 export_dynamic_flag_spec='${wl}-Blargedynsym'
10259 esac
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10264 $as_echo "$ld_shlibs" >&6; }
10265 test "$ld_shlibs" = no && can_build_shared=no
10267 with_gnu_ld=$with_gnu_ld
10284 # Do we need to explicitly link libc?
10286 case "x$archive_cmds_need_lc" in
10287 x|xyes)
10288 # Assume -lc should be added
10289 archive_cmds_need_lc=yes
10291 if test "$enable_shared" = yes && test "$GCC" = yes; then
10292 case $archive_cmds in
10293 *'~'*)
10294 # FIXME: we may have to deal with multi-command sequences.
10296 '$CC '*)
10297 # Test whether the compiler implicitly links with -lc since on some
10298 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10299 # to ld, don't add -lc before -lgcc.
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10301 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10302 $RM conftest*
10303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10306 (eval $ac_compile) 2>&5
10307 ac_status=$?
10308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10309 test $ac_status = 0; } 2>conftest.err; then
10310 soname=conftest
10311 lib=conftest
10312 libobjs=conftest.$ac_objext
10313 deplibs=
10314 wl=$lt_prog_compiler_wl
10315 pic_flag=$lt_prog_compiler_pic
10316 compiler_flags=-v
10317 linker_flags=-v
10318 verstring=
10319 output_objdir=.
10320 libname=conftest
10321 lt_save_allow_undefined_flag=$allow_undefined_flag
10322 allow_undefined_flag=
10323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10324 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10325 ac_status=$?
10326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10327 test $ac_status = 0; }
10328 then
10329 archive_cmds_need_lc=no
10330 else
10331 archive_cmds_need_lc=yes
10333 allow_undefined_flag=$lt_save_allow_undefined_flag
10334 else
10335 cat conftest.err 1>&5
10337 $RM conftest*
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10339 $as_echo "$archive_cmds_need_lc" >&6; }
10341 esac
10344 esac
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10503 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10505 if test "$GCC" = yes; then
10506 case $host_os in
10507 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10508 *) lt_awk_arg="/^libraries:/" ;;
10509 esac
10510 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10511 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10512 # if the path contains ";" then we assume it to be the separator
10513 # otherwise default to the standard path separator (i.e. ":") - it is
10514 # assumed that no part of a normal pathname contains ";" but that should
10515 # okay in the real world where ";" in dirpaths is itself problematic.
10516 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10517 else
10518 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10520 # Ok, now we have the path, separated by spaces, we can step through it
10521 # and add multilib dir if necessary.
10522 lt_tmp_lt_search_path_spec=
10523 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10524 for lt_sys_path in $lt_search_path_spec; do
10525 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10526 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10527 else
10528 test -d "$lt_sys_path" && \
10529 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10531 done
10532 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10533 BEGIN {RS=" "; FS="/|\n";} {
10534 lt_foo="";
10535 lt_count=0;
10536 for (lt_i = NF; lt_i > 0; lt_i--) {
10537 if ($lt_i != "" && $lt_i != ".") {
10538 if ($lt_i == "..") {
10539 lt_count++;
10540 } else {
10541 if (lt_count == 0) {
10542 lt_foo="/" $lt_i lt_foo;
10543 } else {
10544 lt_count--;
10549 if (lt_foo != "") { lt_freq[lt_foo]++; }
10550 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10552 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10553 else
10554 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10556 library_names_spec=
10557 libname_spec='lib$name'
10558 soname_spec=
10559 shrext_cmds=".so"
10560 postinstall_cmds=
10561 postuninstall_cmds=
10562 finish_cmds=
10563 finish_eval=
10564 shlibpath_var=
10565 shlibpath_overrides_runpath=unknown
10566 version_type=none
10567 dynamic_linker="$host_os ld.so"
10568 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10569 need_lib_prefix=unknown
10570 hardcode_into_libs=no
10572 # when you set need_version to no, make sure it does not cause -set_version
10573 # flags to be left without arguments
10574 need_version=unknown
10576 case $host_os in
10577 aix3*)
10578 version_type=linux
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10580 shlibpath_var=LIBPATH
10582 # AIX 3 has no versioning support, so we append a major version to the name.
10583 soname_spec='${libname}${release}${shared_ext}$major'
10586 aix[4-9]*)
10587 version_type=linux
10588 need_lib_prefix=no
10589 need_version=no
10590 hardcode_into_libs=yes
10591 if test "$host_cpu" = ia64; then
10592 # AIX 5 supports IA64
10593 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 else
10596 # With GCC up to 2.95.x, collect2 would create an import file
10597 # for dependence libraries. The import file would start with
10598 # the line `#! .'. This would cause the generated library to
10599 # depend on `.', always an invalid library. This was fixed in
10600 # development snapshots of GCC prior to 3.0.
10601 case $host_os in
10602 aix4 | aix4.[01] | aix4.[01].*)
10603 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10604 echo ' yes '
10605 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10607 else
10608 can_build_shared=no
10611 esac
10612 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10613 # soname into executable. Probably we can add versioning support to
10614 # collect2, so additional links can be useful in future.
10615 if test "$aix_use_runtimelinking" = yes; then
10616 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10617 # instead of lib<name>.a to let people know that these are not
10618 # typical AIX shared libraries.
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10620 else
10621 # We preserve .a as extension for shared libraries through AIX4.2
10622 # and later when we are not doing run time linking.
10623 library_names_spec='${libname}${release}.a $libname.a'
10624 soname_spec='${libname}${release}${shared_ext}$major'
10626 shlibpath_var=LIBPATH
10630 amigaos*)
10631 case $host_cpu in
10632 powerpc)
10633 # Since July 2007 AmigaOS4 officially supports .so libraries.
10634 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10637 m68k)
10638 library_names_spec='$libname.ixlibrary $libname.a'
10639 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10640 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'
10642 esac
10645 beos*)
10646 library_names_spec='${libname}${shared_ext}'
10647 dynamic_linker="$host_os ld.so"
10648 shlibpath_var=LIBRARY_PATH
10651 bsdi[45]*)
10652 version_type=linux
10653 need_version=no
10654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655 soname_spec='${libname}${release}${shared_ext}$major'
10656 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10657 shlibpath_var=LD_LIBRARY_PATH
10658 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10659 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10660 # the default ld.so.conf also contains /usr/contrib/lib and
10661 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10662 # libtool to hard-code these into programs
10665 cygwin* | mingw* | pw32* | cegcc*)
10666 version_type=windows
10667 shrext_cmds=".dll"
10668 need_version=no
10669 need_lib_prefix=no
10671 case $GCC,$host_os in
10672 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10673 library_names_spec='$libname.dll.a'
10674 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10675 postinstall_cmds='base_file=`basename \${file}`~
10676 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10677 dldir=$destdir/`dirname \$dlpath`~
10678 test -d \$dldir || mkdir -p \$dldir~
10679 $install_prog $dir/$dlname \$dldir/$dlname~
10680 chmod a+x \$dldir/$dlname~
10681 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10682 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10684 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10685 dlpath=$dir/\$dldll~
10686 $RM \$dlpath'
10687 shlibpath_overrides_runpath=yes
10689 case $host_os in
10690 cygwin*)
10691 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10692 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10693 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10695 mingw* | cegcc*)
10696 # MinGW DLLs use traditional 'lib' prefix
10697 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10698 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10699 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10700 # It is most probably a Windows format PATH printed by
10701 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10702 # path with ; separators, and with drive letters. We can handle the
10703 # drive letters (cygwin fileutils understands them), so leave them,
10704 # especially as we might pass files found there to a mingw objdump,
10705 # which wouldn't understand a cygwinified path. Ahh.
10706 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10707 else
10708 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10711 pw32*)
10712 # pw32 DLLs use 'pw' prefix rather than 'lib'
10713 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10715 esac
10719 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10721 esac
10722 dynamic_linker='Win32 ld.exe'
10723 # FIXME: first we should search . and the directory the executable is in
10724 shlibpath_var=PATH
10727 darwin* | rhapsody*)
10728 dynamic_linker="$host_os dyld"
10729 version_type=darwin
10730 need_lib_prefix=no
10731 need_version=no
10732 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10733 soname_spec='${libname}${release}${major}$shared_ext'
10734 shlibpath_overrides_runpath=yes
10735 shlibpath_var=DYLD_LIBRARY_PATH
10736 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10738 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10739 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10742 dgux*)
10743 version_type=linux
10744 need_lib_prefix=no
10745 need_version=no
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10747 soname_spec='${libname}${release}${shared_ext}$major'
10748 shlibpath_var=LD_LIBRARY_PATH
10751 freebsd1*)
10752 dynamic_linker=no
10755 freebsd* | dragonfly*)
10756 # DragonFly does not have aout. When/if they implement a new
10757 # versioning mechanism, adjust this.
10758 if test -x /usr/bin/objformat; then
10759 objformat=`/usr/bin/objformat`
10760 else
10761 case $host_os in
10762 freebsd[123]*) objformat=aout ;;
10763 *) objformat=elf ;;
10764 esac
10766 version_type=freebsd-$objformat
10767 case $version_type in
10768 freebsd-elf*)
10769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10770 need_version=no
10771 need_lib_prefix=no
10773 freebsd-*)
10774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10775 need_version=yes
10777 esac
10778 shlibpath_var=LD_LIBRARY_PATH
10779 case $host_os in
10780 freebsd2*)
10781 shlibpath_overrides_runpath=yes
10783 freebsd3.[01]* | freebsdelf3.[01]*)
10784 shlibpath_overrides_runpath=yes
10785 hardcode_into_libs=yes
10787 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10788 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10789 shlibpath_overrides_runpath=no
10790 hardcode_into_libs=yes
10792 *) # from 4.6 on, and DragonFly
10793 shlibpath_overrides_runpath=yes
10794 hardcode_into_libs=yes
10796 esac
10799 gnu*)
10800 version_type=linux
10801 need_lib_prefix=no
10802 need_version=no
10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10804 soname_spec='${libname}${release}${shared_ext}$major'
10805 shlibpath_var=LD_LIBRARY_PATH
10806 hardcode_into_libs=yes
10809 hpux9* | hpux10* | hpux11*)
10810 # Give a soname corresponding to the major version so that dld.sl refuses to
10811 # link against other versions.
10812 version_type=sunos
10813 need_lib_prefix=no
10814 need_version=no
10815 case $host_cpu in
10816 ia64*)
10817 shrext_cmds='.so'
10818 hardcode_into_libs=yes
10819 dynamic_linker="$host_os dld.so"
10820 shlibpath_var=LD_LIBRARY_PATH
10821 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10823 soname_spec='${libname}${release}${shared_ext}$major'
10824 if test "X$HPUX_IA64_MODE" = X32; then
10825 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10826 else
10827 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10831 hppa*64*)
10832 shrext_cmds='.sl'
10833 hardcode_into_libs=yes
10834 dynamic_linker="$host_os dld.sl"
10835 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10836 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10840 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10843 shrext_cmds='.sl'
10844 dynamic_linker="$host_os dld.sl"
10845 shlibpath_var=SHLIB_PATH
10846 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10850 esac
10851 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10852 postinstall_cmds='chmod 555 $lib'
10855 interix[3-9]*)
10856 version_type=linux
10857 need_lib_prefix=no
10858 need_version=no
10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10860 soname_spec='${libname}${release}${shared_ext}$major'
10861 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 shlibpath_overrides_runpath=no
10864 hardcode_into_libs=yes
10867 irix5* | irix6* | nonstopux*)
10868 case $host_os in
10869 nonstopux*) version_type=nonstopux ;;
10871 if test "$lt_cv_prog_gnu_ld" = yes; then
10872 version_type=linux
10873 else
10874 version_type=irix
10875 fi ;;
10876 esac
10877 need_lib_prefix=no
10878 need_version=no
10879 soname_spec='${libname}${release}${shared_ext}$major'
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10881 case $host_os in
10882 irix5* | nonstopux*)
10883 libsuff= shlibsuff=
10886 case $LD in # libtool.m4 will add one of these switches to LD
10887 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10888 libsuff= shlibsuff= libmagic=32-bit;;
10889 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10890 libsuff=32 shlibsuff=N32 libmagic=N32;;
10891 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10892 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10893 *) libsuff= shlibsuff= libmagic=never-match;;
10894 esac
10896 esac
10897 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10898 shlibpath_overrides_runpath=no
10899 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10900 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10901 hardcode_into_libs=yes
10904 # No shared lib support for Linux oldld, aout, or coff.
10905 linux*oldld* | linux*aout* | linux*coff*)
10906 dynamic_linker=no
10909 # This must be Linux ELF.
10910 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10911 version_type=linux
10912 need_lib_prefix=no
10913 need_version=no
10914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10915 soname_spec='${libname}${release}${shared_ext}$major'
10916 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10917 shlibpath_var=LD_LIBRARY_PATH
10918 shlibpath_overrides_runpath=no
10919 # Some binutils ld are patched to set DT_RUNPATH
10920 save_LDFLAGS=$LDFLAGS
10921 save_libdir=$libdir
10922 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10923 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10928 main ()
10932 return 0;
10934 _ACEOF
10935 if ac_fn_c_try_link "$LINENO"; then :
10936 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10937 shlibpath_overrides_runpath=yes
10940 rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10942 LDFLAGS=$save_LDFLAGS
10943 libdir=$save_libdir
10945 # This implies no fast_install, which is unacceptable.
10946 # Some rework will be needed to allow for fast_install
10947 # before this can be enabled.
10948 hardcode_into_libs=yes
10950 # Append ld.so.conf contents to the search path
10951 if test -f /etc/ld.so.conf; then
10952 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10953 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10956 # We used to test for /lib/ld.so.1 and disable shared libraries on
10957 # powerpc, because MkLinux only supported shared libraries with the
10958 # GNU dynamic linker. Since this was broken with cross compilers,
10959 # most powerpc-linux boxes support dynamic linking these days and
10960 # people can always --disable-shared, the test was removed, and we
10961 # assume the GNU/Linux dynamic linker is in use.
10962 dynamic_linker='GNU/Linux ld.so'
10965 netbsdelf*-gnu)
10966 version_type=linux
10967 need_lib_prefix=no
10968 need_version=no
10969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10970 soname_spec='${libname}${release}${shared_ext}$major'
10971 shlibpath_var=LD_LIBRARY_PATH
10972 shlibpath_overrides_runpath=no
10973 hardcode_into_libs=yes
10974 dynamic_linker='NetBSD ld.elf_so'
10977 netbsd*)
10978 version_type=sunos
10979 need_lib_prefix=no
10980 need_version=no
10981 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10984 dynamic_linker='NetBSD (a.out) ld.so'
10985 else
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 dynamic_linker='NetBSD ld.elf_so'
10990 shlibpath_var=LD_LIBRARY_PATH
10991 shlibpath_overrides_runpath=yes
10992 hardcode_into_libs=yes
10995 newsos6)
10996 version_type=linux
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998 shlibpath_var=LD_LIBRARY_PATH
10999 shlibpath_overrides_runpath=yes
11002 *nto* | *qnx*)
11003 version_type=qnx
11004 need_lib_prefix=no
11005 need_version=no
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath=no
11010 hardcode_into_libs=yes
11011 dynamic_linker='ldqnx.so'
11014 openbsd*)
11015 version_type=sunos
11016 sys_lib_dlsearch_path_spec="/usr/lib"
11017 need_lib_prefix=no
11018 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11019 case $host_os in
11020 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11021 *) need_version=no ;;
11022 esac
11023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11025 shlibpath_var=LD_LIBRARY_PATH
11026 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11027 case $host_os in
11028 openbsd2.[89] | openbsd2.[89].*)
11029 shlibpath_overrides_runpath=no
11032 shlibpath_overrides_runpath=yes
11034 esac
11035 else
11036 shlibpath_overrides_runpath=yes
11040 os2*)
11041 libname_spec='$name'
11042 shrext_cmds=".dll"
11043 need_lib_prefix=no
11044 library_names_spec='$libname${shared_ext} $libname.a'
11045 dynamic_linker='OS/2 ld.exe'
11046 shlibpath_var=LIBPATH
11049 osf3* | osf4* | osf5*)
11050 version_type=osf
11051 need_lib_prefix=no
11052 need_version=no
11053 soname_spec='${libname}${release}${shared_ext}$major'
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11057 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11060 rdos*)
11061 dynamic_linker=no
11064 solaris*)
11065 version_type=linux
11066 need_lib_prefix=no
11067 need_version=no
11068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11069 soname_spec='${libname}${release}${shared_ext}$major'
11070 shlibpath_var=LD_LIBRARY_PATH
11071 shlibpath_overrides_runpath=yes
11072 hardcode_into_libs=yes
11073 # ldd complains unless libraries are executable
11074 postinstall_cmds='chmod +x $lib'
11077 sunos4*)
11078 version_type=sunos
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11080 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11081 shlibpath_var=LD_LIBRARY_PATH
11082 shlibpath_overrides_runpath=yes
11083 if test "$with_gnu_ld" = yes; then
11084 need_lib_prefix=no
11086 need_version=yes
11089 sysv4 | sysv4.3*)
11090 version_type=linux
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 soname_spec='${libname}${release}${shared_ext}$major'
11093 shlibpath_var=LD_LIBRARY_PATH
11094 case $host_vendor in
11095 sni)
11096 shlibpath_overrides_runpath=no
11097 need_lib_prefix=no
11098 runpath_var=LD_RUN_PATH
11100 siemens)
11101 need_lib_prefix=no
11103 motorola)
11104 need_lib_prefix=no
11105 need_version=no
11106 shlibpath_overrides_runpath=no
11107 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11109 esac
11112 sysv4*MP*)
11113 if test -d /usr/nec ;then
11114 version_type=linux
11115 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11116 soname_spec='$libname${shared_ext}.$major'
11117 shlibpath_var=LD_LIBRARY_PATH
11121 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11122 version_type=freebsd-elf
11123 need_lib_prefix=no
11124 need_version=no
11125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11126 soname_spec='${libname}${release}${shared_ext}$major'
11127 shlibpath_var=LD_LIBRARY_PATH
11128 shlibpath_overrides_runpath=yes
11129 hardcode_into_libs=yes
11130 if test "$with_gnu_ld" = yes; then
11131 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11132 else
11133 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11134 case $host_os in
11135 sco3.2v5*)
11136 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11138 esac
11140 sys_lib_dlsearch_path_spec='/usr/lib'
11143 tpf*)
11144 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11145 version_type=linux
11146 need_lib_prefix=no
11147 need_version=no
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11149 shlibpath_var=LD_LIBRARY_PATH
11150 shlibpath_overrides_runpath=no
11151 hardcode_into_libs=yes
11154 uts4*)
11155 version_type=linux
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157 soname_spec='${libname}${release}${shared_ext}$major'
11158 shlibpath_var=LD_LIBRARY_PATH
11162 dynamic_linker=no
11164 esac
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11166 $as_echo "$dynamic_linker" >&6; }
11167 test "$dynamic_linker" = no && can_build_shared=no
11169 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11170 if test "$GCC" = yes; then
11171 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11174 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11175 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11177 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11178 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11268 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11269 hardcode_action=
11270 if test -n "$hardcode_libdir_flag_spec" ||
11271 test -n "$runpath_var" ||
11272 test "X$hardcode_automatic" = "Xyes" ; then
11274 # We can hardcode non-existent directories.
11275 if test "$hardcode_direct" != no &&
11276 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11277 # have to relink, otherwise we might link with an installed library
11278 # when we should be linking with a yet-to-be-installed one
11279 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11280 test "$hardcode_minus_L" != no; then
11281 # Linking always hardcodes the temporary library directory.
11282 hardcode_action=relink
11283 else
11284 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11285 hardcode_action=immediate
11287 else
11288 # We cannot hardcode anything, or else we can only hardcode existing
11289 # directories.
11290 hardcode_action=unsupported
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11293 $as_echo "$hardcode_action" >&6; }
11295 if test "$hardcode_action" = relink ||
11296 test "$inherit_rpath" = yes; then
11297 # Fast installation is not supported
11298 enable_fast_install=no
11299 elif test "$shlibpath_overrides_runpath" = yes ||
11300 test "$enable_shared" = no; then
11301 # Fast installation is not necessary
11302 enable_fast_install=needless
11310 if test "x$enable_dlopen" != xyes; then
11311 enable_dlopen=unknown
11312 enable_dlopen_self=unknown
11313 enable_dlopen_self_static=unknown
11314 else
11315 lt_cv_dlopen=no
11316 lt_cv_dlopen_libs=
11318 case $host_os in
11319 beos*)
11320 lt_cv_dlopen="load_add_on"
11321 lt_cv_dlopen_libs=
11322 lt_cv_dlopen_self=yes
11325 mingw* | pw32* | cegcc*)
11326 lt_cv_dlopen="LoadLibrary"
11327 lt_cv_dlopen_libs=
11330 cygwin*)
11331 lt_cv_dlopen="dlopen"
11332 lt_cv_dlopen_libs=
11335 darwin*)
11336 # if libdl is installed we need to link against it
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11338 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 ac_check_lib_save_LIBS=$LIBS
11343 LIBS="-ldl $LIBS"
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345 /* end confdefs.h. */
11347 /* Override any GCC internal prototype to avoid an error.
11348 Use char because int might match the return type of a GCC
11349 builtin and then its argument prototype would still apply. */
11350 #ifdef __cplusplus
11351 extern "C"
11352 #endif
11353 char dlopen ();
11355 main ()
11357 return dlopen ();
11359 return 0;
11361 _ACEOF
11362 if ac_fn_c_try_link "$LINENO"; then :
11363 ac_cv_lib_dl_dlopen=yes
11364 else
11365 ac_cv_lib_dl_dlopen=no
11367 rm -f core conftest.err conftest.$ac_objext \
11368 conftest$ac_exeext conftest.$ac_ext
11369 LIBS=$ac_check_lib_save_LIBS
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11372 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11373 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11375 else
11377 lt_cv_dlopen="dyld"
11378 lt_cv_dlopen_libs=
11379 lt_cv_dlopen_self=yes
11386 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11387 if test "x$ac_cv_func_shl_load" = x""yes; then :
11388 lt_cv_dlopen="shl_load"
11389 else
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11391 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11392 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11395 ac_check_lib_save_LIBS=$LIBS
11396 LIBS="-ldld $LIBS"
11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11400 /* Override any GCC internal prototype to avoid an error.
11401 Use char because int might match the return type of a GCC
11402 builtin and then its argument prototype would still apply. */
11403 #ifdef __cplusplus
11404 extern "C"
11405 #endif
11406 char shl_load ();
11408 main ()
11410 return shl_load ();
11412 return 0;
11414 _ACEOF
11415 if ac_fn_c_try_link "$LINENO"; then :
11416 ac_cv_lib_dld_shl_load=yes
11417 else
11418 ac_cv_lib_dld_shl_load=no
11420 rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
11422 LIBS=$ac_check_lib_save_LIBS
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11425 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11426 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11427 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11428 else
11429 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11430 if test "x$ac_cv_func_dlopen" = x""yes; then :
11431 lt_cv_dlopen="dlopen"
11432 else
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11434 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11435 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11436 $as_echo_n "(cached) " >&6
11437 else
11438 ac_check_lib_save_LIBS=$LIBS
11439 LIBS="-ldl $LIBS"
11440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h. */
11443 /* Override any GCC internal prototype to avoid an error.
11444 Use char because int might match the return type of a GCC
11445 builtin and then its argument prototype would still apply. */
11446 #ifdef __cplusplus
11447 extern "C"
11448 #endif
11449 char dlopen ();
11451 main ()
11453 return dlopen ();
11455 return 0;
11457 _ACEOF
11458 if ac_fn_c_try_link "$LINENO"; then :
11459 ac_cv_lib_dl_dlopen=yes
11460 else
11461 ac_cv_lib_dl_dlopen=no
11463 rm -f core conftest.err conftest.$ac_objext \
11464 conftest$ac_exeext conftest.$ac_ext
11465 LIBS=$ac_check_lib_save_LIBS
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11468 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11469 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11470 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11471 else
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11473 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11474 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11475 $as_echo_n "(cached) " >&6
11476 else
11477 ac_check_lib_save_LIBS=$LIBS
11478 LIBS="-lsvld $LIBS"
11479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480 /* end confdefs.h. */
11482 /* Override any GCC internal prototype to avoid an error.
11483 Use char because int might match the return type of a GCC
11484 builtin and then its argument prototype would still apply. */
11485 #ifdef __cplusplus
11486 extern "C"
11487 #endif
11488 char dlopen ();
11490 main ()
11492 return dlopen ();
11494 return 0;
11496 _ACEOF
11497 if ac_fn_c_try_link "$LINENO"; then :
11498 ac_cv_lib_svld_dlopen=yes
11499 else
11500 ac_cv_lib_svld_dlopen=no
11502 rm -f core conftest.err conftest.$ac_objext \
11503 conftest$ac_exeext conftest.$ac_ext
11504 LIBS=$ac_check_lib_save_LIBS
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11507 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11508 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11509 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11510 else
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11512 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11513 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 ac_check_lib_save_LIBS=$LIBS
11517 LIBS="-ldld $LIBS"
11518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11521 /* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11524 #ifdef __cplusplus
11525 extern "C"
11526 #endif
11527 char dld_link ();
11529 main ()
11531 return dld_link ();
11533 return 0;
11535 _ACEOF
11536 if ac_fn_c_try_link "$LINENO"; then :
11537 ac_cv_lib_dld_dld_link=yes
11538 else
11539 ac_cv_lib_dld_dld_link=no
11541 rm -f core conftest.err conftest.$ac_objext \
11542 conftest$ac_exeext conftest.$ac_ext
11543 LIBS=$ac_check_lib_save_LIBS
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11546 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11547 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11548 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11567 esac
11569 if test "x$lt_cv_dlopen" != xno; then
11570 enable_dlopen=yes
11571 else
11572 enable_dlopen=no
11575 case $lt_cv_dlopen in
11576 dlopen)
11577 save_CPPFLAGS="$CPPFLAGS"
11578 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11580 save_LDFLAGS="$LDFLAGS"
11581 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11583 save_LIBS="$LIBS"
11584 LIBS="$lt_cv_dlopen_libs $LIBS"
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11587 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11588 if test "${lt_cv_dlopen_self+set}" = set; then :
11589 $as_echo_n "(cached) " >&6
11590 else
11591 if test "$cross_compiling" = yes; then :
11592 lt_cv_dlopen_self=cross
11593 else
11594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11595 lt_status=$lt_dlunknown
11596 cat > conftest.$ac_ext <<_LT_EOF
11597 #line 11597 "configure"
11598 #include "confdefs.h"
11600 #if HAVE_DLFCN_H
11601 #include <dlfcn.h>
11602 #endif
11604 #include <stdio.h>
11606 #ifdef RTLD_GLOBAL
11607 # define LT_DLGLOBAL RTLD_GLOBAL
11608 #else
11609 # ifdef DL_GLOBAL
11610 # define LT_DLGLOBAL DL_GLOBAL
11611 # else
11612 # define LT_DLGLOBAL 0
11613 # endif
11614 #endif
11616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11617 find out it does not work in some platform. */
11618 #ifndef LT_DLLAZY_OR_NOW
11619 # ifdef RTLD_LAZY
11620 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11621 # else
11622 # ifdef DL_LAZY
11623 # define LT_DLLAZY_OR_NOW DL_LAZY
11624 # else
11625 # ifdef RTLD_NOW
11626 # define LT_DLLAZY_OR_NOW RTLD_NOW
11627 # else
11628 # ifdef DL_NOW
11629 # define LT_DLLAZY_OR_NOW DL_NOW
11630 # else
11631 # define LT_DLLAZY_OR_NOW 0
11632 # endif
11633 # endif
11634 # endif
11635 # endif
11636 #endif
11638 void fnord() { int i=42;}
11639 int main ()
11641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11642 int status = $lt_dlunknown;
11644 if (self)
11646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11648 /* dlclose (self); */
11650 else
11651 puts (dlerror ());
11653 return status;
11655 _LT_EOF
11656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11657 (eval $ac_link) 2>&5
11658 ac_status=$?
11659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11660 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11661 (./conftest; exit; ) >&5 2>/dev/null
11662 lt_status=$?
11663 case x$lt_status in
11664 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11665 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11666 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11667 esac
11668 else :
11669 # compilation failed
11670 lt_cv_dlopen_self=no
11673 rm -fr conftest*
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11678 $as_echo "$lt_cv_dlopen_self" >&6; }
11680 if test "x$lt_cv_dlopen_self" = xyes; then
11681 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11683 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11684 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
11686 else
11687 if test "$cross_compiling" = yes; then :
11688 lt_cv_dlopen_self_static=cross
11689 else
11690 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11691 lt_status=$lt_dlunknown
11692 cat > conftest.$ac_ext <<_LT_EOF
11693 #line 11693 "configure"
11694 #include "confdefs.h"
11696 #if HAVE_DLFCN_H
11697 #include <dlfcn.h>
11698 #endif
11700 #include <stdio.h>
11702 #ifdef RTLD_GLOBAL
11703 # define LT_DLGLOBAL RTLD_GLOBAL
11704 #else
11705 # ifdef DL_GLOBAL
11706 # define LT_DLGLOBAL DL_GLOBAL
11707 # else
11708 # define LT_DLGLOBAL 0
11709 # endif
11710 #endif
11712 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11713 find out it does not work in some platform. */
11714 #ifndef LT_DLLAZY_OR_NOW
11715 # ifdef RTLD_LAZY
11716 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11717 # else
11718 # ifdef DL_LAZY
11719 # define LT_DLLAZY_OR_NOW DL_LAZY
11720 # else
11721 # ifdef RTLD_NOW
11722 # define LT_DLLAZY_OR_NOW RTLD_NOW
11723 # else
11724 # ifdef DL_NOW
11725 # define LT_DLLAZY_OR_NOW DL_NOW
11726 # else
11727 # define LT_DLLAZY_OR_NOW 0
11728 # endif
11729 # endif
11730 # endif
11731 # endif
11732 #endif
11734 void fnord() { int i=42;}
11735 int main ()
11737 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11738 int status = $lt_dlunknown;
11740 if (self)
11742 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11743 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11744 /* dlclose (self); */
11746 else
11747 puts (dlerror ());
11749 return status;
11751 _LT_EOF
11752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11753 (eval $ac_link) 2>&5
11754 ac_status=$?
11755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11756 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11757 (./conftest; exit; ) >&5 2>/dev/null
11758 lt_status=$?
11759 case x$lt_status in
11760 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11761 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11762 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11763 esac
11764 else :
11765 # compilation failed
11766 lt_cv_dlopen_self_static=no
11769 rm -fr conftest*
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11774 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11777 CPPFLAGS="$save_CPPFLAGS"
11778 LDFLAGS="$save_LDFLAGS"
11779 LIBS="$save_LIBS"
11781 esac
11783 case $lt_cv_dlopen_self in
11784 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11785 *) enable_dlopen_self=unknown ;;
11786 esac
11788 case $lt_cv_dlopen_self_static in
11789 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11790 *) enable_dlopen_self_static=unknown ;;
11791 esac
11810 striplib=
11811 old_striplib=
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11813 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11814 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11815 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11816 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11818 $as_echo "yes" >&6; }
11819 else
11820 # FIXME - insert some real tests, host_os isn't really good enough
11821 case $host_os in
11822 darwin*)
11823 if test -n "$STRIP" ; then
11824 striplib="$STRIP -x"
11825 old_striplib="$STRIP -S"
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11827 $as_echo "yes" >&6; }
11828 else
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830 $as_echo "no" >&6; }
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835 $as_echo "no" >&6; }
11837 esac
11851 # Report which library types will actually be built
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11853 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11855 $as_echo "$can_build_shared" >&6; }
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11858 $as_echo_n "checking whether to build shared libraries... " >&6; }
11859 test "$can_build_shared" = "no" && enable_shared=no
11861 # On AIX, shared libraries and static libraries use the same namespace, and
11862 # are all built from PIC.
11863 case $host_os in
11864 aix3*)
11865 test "$enable_shared" = yes && enable_static=no
11866 if test -n "$RANLIB"; then
11867 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11868 postinstall_cmds='$RANLIB $lib'
11872 aix[4-9]*)
11873 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11874 test "$enable_shared" = yes && enable_static=no
11877 esac
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11879 $as_echo "$enable_shared" >&6; }
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11882 $as_echo_n "checking whether to build static libraries... " >&6; }
11883 # Make sure either enable_shared or enable_static is yes.
11884 test "$enable_shared" = yes || enable_static=yes
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11886 $as_echo "$enable_static" >&6; }
11892 ac_ext=c
11893 ac_cpp='$CPP $CPPFLAGS'
11894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11898 CC="$lt_save_CC"
11901 ac_ext=cpp
11902 ac_cpp='$CXXCPP $CPPFLAGS'
11903 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11904 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11905 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11907 archive_cmds_need_lc_CXX=no
11908 allow_undefined_flag_CXX=
11909 always_export_symbols_CXX=no
11910 archive_expsym_cmds_CXX=
11911 compiler_needs_object_CXX=no
11912 export_dynamic_flag_spec_CXX=
11913 hardcode_direct_CXX=no
11914 hardcode_direct_absolute_CXX=no
11915 hardcode_libdir_flag_spec_CXX=
11916 hardcode_libdir_flag_spec_ld_CXX=
11917 hardcode_libdir_separator_CXX=
11918 hardcode_minus_L_CXX=no
11919 hardcode_shlibpath_var_CXX=unsupported
11920 hardcode_automatic_CXX=no
11921 inherit_rpath_CXX=no
11922 module_cmds_CXX=
11923 module_expsym_cmds_CXX=
11924 link_all_deplibs_CXX=unknown
11925 old_archive_cmds_CXX=$old_archive_cmds
11926 no_undefined_flag_CXX=
11927 whole_archive_flag_spec_CXX=
11928 enable_shared_with_static_runtimes_CXX=no
11930 # Source file extension for C++ test sources.
11931 ac_ext=cpp
11933 # Object file extension for compiled C++ test sources.
11934 objext=o
11935 objext_CXX=$objext
11937 # No sense in running all these tests if we already determined that
11938 # the CXX compiler isn't working. Some variables (like enable_shared)
11939 # are currently assumed to apply to all compilers on this platform,
11940 # and will be corrupted by setting them based on a non-working compiler.
11941 if test "$_lt_caught_CXX_error" != yes; then
11942 # Code to be used in simple compile tests
11943 lt_simple_compile_test_code="int some_variable = 0;"
11945 # Code to be used in simple link tests
11946 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11948 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11955 # If no C compiler was specified, use CC.
11956 LTCC=${LTCC-"$CC"}
11958 # If no C compiler flags were specified, use CFLAGS.
11959 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11961 # Allow CC to be a program name with arguments.
11962 compiler=$CC
11965 # save warnings/boilerplate of simple test code
11966 ac_outfile=conftest.$ac_objext
11967 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11968 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11969 _lt_compiler_boilerplate=`cat conftest.err`
11970 $RM conftest*
11972 ac_outfile=conftest.$ac_objext
11973 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11974 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11975 _lt_linker_boilerplate=`cat conftest.err`
11976 $RM -r conftest*
11979 # Allow CC to be a program name with arguments.
11980 lt_save_CC=$CC
11981 lt_save_LD=$LD
11982 lt_save_GCC=$GCC
11983 GCC=$GXX
11984 lt_save_with_gnu_ld=$with_gnu_ld
11985 lt_save_path_LD=$lt_cv_path_LD
11986 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11987 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11988 else
11989 $as_unset lt_cv_prog_gnu_ld
11991 if test -n "${lt_cv_path_LDCXX+set}"; then
11992 lt_cv_path_LD=$lt_cv_path_LDCXX
11993 else
11994 $as_unset lt_cv_path_LD
11996 test -z "${LDCXX+set}" || LD=$LDCXX
11997 CC=${CXX-"c++"}
11998 compiler=$CC
11999 compiler_CXX=$CC
12000 for cc_temp in $compiler""; do
12001 case $cc_temp in
12002 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12003 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12004 \-*) ;;
12005 *) break;;
12006 esac
12007 done
12008 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12011 if test -n "$compiler"; then
12012 # We don't want -fno-exception when compiling C++ code, so set the
12013 # no_builtin_flag separately
12014 if test "$GXX" = yes; then
12015 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12016 else
12017 lt_prog_compiler_no_builtin_flag_CXX=
12020 if test "$GXX" = yes; then
12021 # Set up default GNU C++ configuration
12025 # Check whether --with-gnu-ld was given.
12026 if test "${with_gnu_ld+set}" = set; then :
12027 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12028 else
12029 with_gnu_ld=no
12032 ac_prog=ld
12033 if test "$GCC" = yes; then
12034 # Check if gcc -print-prog-name=ld gives a path.
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12036 $as_echo_n "checking for ld used by $CC... " >&6; }
12037 case $host in
12038 *-*-mingw*)
12039 # gcc leaves a trailing carriage return which upsets mingw
12040 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12042 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12043 esac
12044 case $ac_prog in
12045 # Accept absolute paths.
12046 [\\/]* | ?:[\\/]*)
12047 re_direlt='/[^/][^/]*/\.\./'
12048 # Canonicalize the pathname of ld
12049 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12050 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12051 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12052 done
12053 test -z "$LD" && LD="$ac_prog"
12056 # If it fails, then pretend we aren't using GCC.
12057 ac_prog=ld
12060 # If it is relative, then search for the first ld in PATH.
12061 with_gnu_ld=unknown
12063 esac
12064 elif test "$with_gnu_ld" = yes; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12066 $as_echo_n "checking for GNU ld... " >&6; }
12067 else
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12069 $as_echo_n "checking for non-GNU ld... " >&6; }
12071 if test "${lt_cv_path_LD+set}" = set; then :
12072 $as_echo_n "(cached) " >&6
12073 else
12074 if test -z "$LD"; then
12075 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12076 for ac_dir in $PATH; do
12077 IFS="$lt_save_ifs"
12078 test -z "$ac_dir" && ac_dir=.
12079 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12080 lt_cv_path_LD="$ac_dir/$ac_prog"
12081 # Check to see if the program is GNU ld. I'd rather use --version,
12082 # but apparently some variants of GNU ld only accept -v.
12083 # Break only if it was the GNU/non-GNU ld that we prefer.
12084 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12085 *GNU* | *'with BFD'*)
12086 test "$with_gnu_ld" != no && break
12089 test "$with_gnu_ld" != yes && break
12091 esac
12093 done
12094 IFS="$lt_save_ifs"
12095 else
12096 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12100 LD="$lt_cv_path_LD"
12101 if test -n "$LD"; then
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12103 $as_echo "$LD" >&6; }
12104 else
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106 $as_echo "no" >&6; }
12108 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12110 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12111 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12112 $as_echo_n "(cached) " >&6
12113 else
12114 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12115 case `$LD -v 2>&1 </dev/null` in
12116 *GNU* | *'with BFD'*)
12117 lt_cv_prog_gnu_ld=yes
12120 lt_cv_prog_gnu_ld=no
12122 esac
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12125 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12126 with_gnu_ld=$lt_cv_prog_gnu_ld
12134 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12135 # archiving commands below assume that GNU ld is being used.
12136 if test "$with_gnu_ld" = yes; then
12137 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12138 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'
12140 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12141 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12143 # If archive_cmds runs LD, not CC, wlarc should be empty
12144 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12145 # investigate it a little bit more. (MM)
12146 wlarc='${wl}'
12148 # ancient GNU ld didn't support --whole-archive et. al.
12149 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12150 $GREP 'no-whole-archive' > /dev/null; then
12151 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12152 else
12153 whole_archive_flag_spec_CXX=
12155 else
12156 with_gnu_ld=no
12157 wlarc=
12159 # A generic and very simple default shared library creation
12160 # command for GNU C++ for the case where it uses the native
12161 # linker, instead of GNU ld. If possible, this setting should
12162 # overridden to take advantage of the native linker features on
12163 # the platform it is being used on.
12164 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12167 # Commands to make compiler produce verbose output that lists
12168 # what "hidden" libraries, object files and flags are used when
12169 # linking a shared library.
12170 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12172 else
12173 GXX=no
12174 with_gnu_ld=no
12175 wlarc=
12178 # PORTME: fill in a description of your system's C++ link characteristics
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12180 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12181 ld_shlibs_CXX=yes
12182 case $host_os in
12183 aix3*)
12184 # FIXME: insert proper C++ library support
12185 ld_shlibs_CXX=no
12187 aix[4-9]*)
12188 if test "$host_cpu" = ia64; then
12189 # On IA64, the linker does run time linking by default, so we don't
12190 # have to do anything special.
12191 aix_use_runtimelinking=no
12192 exp_sym_flag='-Bexport'
12193 no_entry_flag=""
12194 else
12195 aix_use_runtimelinking=no
12197 # Test if we are trying to use run time linking or normal
12198 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12199 # need to do runtime linking.
12200 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12201 for ld_flag in $LDFLAGS; do
12202 case $ld_flag in
12203 *-brtl*)
12204 aix_use_runtimelinking=yes
12205 break
12207 esac
12208 done
12210 esac
12212 exp_sym_flag='-bexport'
12213 no_entry_flag='-bnoentry'
12216 # When large executables or shared objects are built, AIX ld can
12217 # have problems creating the table of contents. If linking a library
12218 # or program results in "error TOC overflow" add -mminimal-toc to
12219 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12220 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12222 archive_cmds_CXX=''
12223 hardcode_direct_CXX=yes
12224 hardcode_direct_absolute_CXX=yes
12225 hardcode_libdir_separator_CXX=':'
12226 link_all_deplibs_CXX=yes
12227 file_list_spec_CXX='${wl}-f,'
12229 if test "$GXX" = yes; then
12230 case $host_os in aix4.[012]|aix4.[012].*)
12231 # We only want to do this on AIX 4.2 and lower, the check
12232 # below for broken collect2 doesn't work under 4.3+
12233 collect2name=`${CC} -print-prog-name=collect2`
12234 if test -f "$collect2name" &&
12235 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12236 then
12237 # We have reworked collect2
12239 else
12240 # We have old collect2
12241 hardcode_direct_CXX=unsupported
12242 # It fails to find uninstalled libraries when the uninstalled
12243 # path is not listed in the libpath. Setting hardcode_minus_L
12244 # to unsupported forces relinking
12245 hardcode_minus_L_CXX=yes
12246 hardcode_libdir_flag_spec_CXX='-L$libdir'
12247 hardcode_libdir_separator_CXX=
12249 esac
12250 shared_flag='-shared'
12251 if test "$aix_use_runtimelinking" = yes; then
12252 shared_flag="$shared_flag "'${wl}-G'
12254 else
12255 # not using gcc
12256 if test "$host_cpu" = ia64; then
12257 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12258 # chokes on -Wl,-G. The following line is correct:
12259 shared_flag='-G'
12260 else
12261 if test "$aix_use_runtimelinking" = yes; then
12262 shared_flag='${wl}-G'
12263 else
12264 shared_flag='${wl}-bM:SRE'
12269 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12270 # It seems that -bexpall does not export symbols beginning with
12271 # underscore (_), so it is better to generate a list of symbols to
12272 # export.
12273 always_export_symbols_CXX=yes
12274 if test "$aix_use_runtimelinking" = yes; then
12275 # Warning - without using the other runtime loading flags (-brtl),
12276 # -berok will link without error, but may produce a broken library.
12277 allow_undefined_flag_CXX='-berok'
12278 # Determine the default libpath from the value encoded in an empty
12279 # executable.
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h. */
12284 main ()
12288 return 0;
12290 _ACEOF
12291 if ac_fn_cxx_try_link "$LINENO"; then :
12293 lt_aix_libpath_sed='
12294 /Import File Strings/,/^$/ {
12295 /^0/ {
12296 s/^0 *\(.*\)$/\1/
12300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12301 # Check for a 64-bit object if we didn't find anything.
12302 if test -z "$aix_libpath"; then
12303 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12306 rm -f core conftest.err conftest.$ac_objext \
12307 conftest$ac_exeext conftest.$ac_ext
12308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12310 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12312 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12313 else
12314 if test "$host_cpu" = ia64; then
12315 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12316 allow_undefined_flag_CXX="-z nodefs"
12317 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12318 else
12319 # Determine the default libpath from the value encoded in an
12320 # empty executable.
12321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12322 /* end confdefs.h. */
12325 main ()
12329 return 0;
12331 _ACEOF
12332 if ac_fn_cxx_try_link "$LINENO"; then :
12334 lt_aix_libpath_sed='
12335 /Import File Strings/,/^$/ {
12336 /^0/ {
12337 s/^0 *\(.*\)$/\1/
12341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12342 # Check for a 64-bit object if we didn't find anything.
12343 if test -z "$aix_libpath"; then
12344 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12347 rm -f core conftest.err conftest.$ac_objext \
12348 conftest$ac_exeext conftest.$ac_ext
12349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12351 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12352 # Warning - without using the other run time loading flags,
12353 # -berok will link without error, but may produce a broken library.
12354 no_undefined_flag_CXX=' ${wl}-bernotok'
12355 allow_undefined_flag_CXX=' ${wl}-berok'
12356 # Exported symbols can be pulled into shared objects from archives
12357 whole_archive_flag_spec_CXX='$convenience'
12358 archive_cmds_need_lc_CXX=yes
12359 # This is similar to how AIX traditionally builds its shared
12360 # libraries.
12361 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12366 beos*)
12367 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12368 allow_undefined_flag_CXX=unsupported
12369 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12370 # support --undefined. This deserves some investigation. FIXME
12371 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12372 else
12373 ld_shlibs_CXX=no
12377 chorus*)
12378 case $cc_basename in
12380 # FIXME: insert proper C++ library support
12381 ld_shlibs_CXX=no
12383 esac
12386 cygwin* | mingw* | pw32* | cegcc*)
12387 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12388 # as there is no search path for DLLs.
12389 hardcode_libdir_flag_spec_CXX='-L$libdir'
12390 allow_undefined_flag_CXX=unsupported
12391 always_export_symbols_CXX=no
12392 enable_shared_with_static_runtimes_CXX=yes
12394 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12395 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12396 # If the export-symbols file already is a .def file (1st line
12397 # is EXPORTS), use it as is; otherwise, prepend...
12398 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12399 cp $export_symbols $output_objdir/$soname.def;
12400 else
12401 echo EXPORTS > $output_objdir/$soname.def;
12402 cat $export_symbols >> $output_objdir/$soname.def;
12404 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12405 else
12406 ld_shlibs_CXX=no
12409 darwin* | rhapsody*)
12412 archive_cmds_need_lc_CXX=no
12413 hardcode_direct_CXX=no
12414 hardcode_automatic_CXX=yes
12415 hardcode_shlibpath_var_CXX=unsupported
12416 whole_archive_flag_spec_CXX=''
12417 link_all_deplibs_CXX=yes
12418 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12419 case $cc_basename in
12420 ifort*) _lt_dar_can_shared=yes ;;
12421 *) _lt_dar_can_shared=$GCC ;;
12422 esac
12423 if test "$_lt_dar_can_shared" = "yes"; then
12424 output_verbose_link_cmd=echo
12425 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12426 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12427 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12428 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12429 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12430 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${_lt_dsymutil}"
12431 archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
12434 else
12435 ld_shlibs_CXX=no
12440 dgux*)
12441 case $cc_basename in
12442 ec++*)
12443 # FIXME: insert proper C++ library support
12444 ld_shlibs_CXX=no
12446 ghcx*)
12447 # Green Hills C++ Compiler
12448 # FIXME: insert proper C++ library support
12449 ld_shlibs_CXX=no
12452 # FIXME: insert proper C++ library support
12453 ld_shlibs_CXX=no
12455 esac
12458 freebsd[12]*)
12459 # C++ shared libraries reported to be fairly broken before
12460 # switch to ELF
12461 ld_shlibs_CXX=no
12464 freebsd-elf*)
12465 archive_cmds_need_lc_CXX=no
12468 freebsd* | dragonfly*)
12469 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12470 # conventions
12471 ld_shlibs_CXX=yes
12474 gnu*)
12477 hpux9*)
12478 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12479 hardcode_libdir_separator_CXX=:
12480 export_dynamic_flag_spec_CXX='${wl}-E'
12481 hardcode_direct_CXX=yes
12482 hardcode_minus_L_CXX=yes # Not in the search PATH,
12483 # but as the default
12484 # location of the library.
12486 case $cc_basename in
12487 CC*)
12488 # FIXME: insert proper C++ library support
12489 ld_shlibs_CXX=no
12491 aCC*)
12492 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'
12493 # Commands to make compiler produce verbose output that lists
12494 # what "hidden" libraries, object files and flags are used when
12495 # linking a shared library.
12497 # There doesn't appear to be a way to prevent this compiler from
12498 # explicitly linking system object files so we need to strip them
12499 # from the output so that they don't get included in the library
12500 # dependencies.
12501 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12504 if test "$GXX" = yes; then
12505 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'
12506 else
12507 # FIXME: insert proper C++ library support
12508 ld_shlibs_CXX=no
12511 esac
12514 hpux10*|hpux11*)
12515 if test $with_gnu_ld = no; then
12516 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12517 hardcode_libdir_separator_CXX=:
12519 case $host_cpu in
12520 hppa*64*|ia64*)
12523 export_dynamic_flag_spec_CXX='${wl}-E'
12525 esac
12527 case $host_cpu in
12528 hppa*64*|ia64*)
12529 hardcode_direct_CXX=no
12530 hardcode_shlibpath_var_CXX=no
12533 hardcode_direct_CXX=yes
12534 hardcode_direct_absolute_CXX=yes
12535 hardcode_minus_L_CXX=yes # Not in the search PATH,
12536 # but as the default
12537 # location of the library.
12539 esac
12541 case $cc_basename in
12542 CC*)
12543 # FIXME: insert proper C++ library support
12544 ld_shlibs_CXX=no
12546 aCC*)
12547 case $host_cpu in
12548 hppa*64*)
12549 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12551 ia64*)
12552 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12555 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12557 esac
12558 # Commands to make compiler produce verbose output that lists
12559 # what "hidden" libraries, object files and flags are used when
12560 # linking a shared library.
12562 # There doesn't appear to be a way to prevent this compiler from
12563 # explicitly linking system object files so we need to strip them
12564 # from the output so that they don't get included in the library
12565 # dependencies.
12566 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 "X$list" | $Xsed'
12569 if test "$GXX" = yes; then
12570 if test $with_gnu_ld = no; then
12571 case $host_cpu in
12572 hppa*64*)
12573 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12575 ia64*)
12576 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12579 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'
12581 esac
12583 else
12584 # FIXME: insert proper C++ library support
12585 ld_shlibs_CXX=no
12588 esac
12591 interix[3-9]*)
12592 hardcode_direct_CXX=no
12593 hardcode_shlibpath_var_CXX=no
12594 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12595 export_dynamic_flag_spec_CXX='${wl}-E'
12596 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12597 # Instead, shared libraries are loaded at an image base (0x10000000 by
12598 # default) and relocated if they conflict, which is a slow very memory
12599 # consuming and fragmenting process. To avoid this, we pick a random,
12600 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12601 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12602 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12603 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12605 irix5* | irix6*)
12606 case $cc_basename in
12607 CC*)
12608 # SGI C++
12609 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12611 # Archives containing C++ object files must be created using
12612 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12613 # necessary to make sure instantiated templates are included
12614 # in the archive.
12615 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12618 if test "$GXX" = yes; then
12619 if test "$with_gnu_ld" = no; then
12620 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12621 else
12622 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12625 link_all_deplibs_CXX=yes
12627 esac
12628 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12629 hardcode_libdir_separator_CXX=:
12630 inherit_rpath_CXX=yes
12633 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12634 case $cc_basename in
12635 KCC*)
12636 # Kuck and Associates, Inc. (KAI) C++ Compiler
12638 # KCC will only create a shared library if the output file
12639 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12640 # to its proper name (with version) after linking.
12641 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'
12642 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'
12643 # Commands to make compiler produce verbose output that lists
12644 # what "hidden" libraries, object files and flags are used when
12645 # linking a shared library.
12647 # There doesn't appear to be a way to prevent this compiler from
12648 # explicitly linking system object files so we need to strip them
12649 # from the output so that they don't get included in the library
12650 # dependencies.
12651 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 "X$list" | $Xsed'
12653 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12654 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12656 # Archives containing C++ object files must be created using
12657 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12658 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12660 icpc* | ecpc* )
12661 # Intel C++
12662 with_gnu_ld=yes
12663 # version 8.0 and above of icpc choke on multiply defined symbols
12664 # if we add $predep_objects and $postdep_objects, however 7.1 and
12665 # earlier do not add the objects themselves.
12666 case `$CC -V 2>&1` in
12667 *"Version 7."*)
12668 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12669 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'
12671 *) # Version 8.0 or newer
12672 tmp_idyn=
12673 case $host_cpu in
12674 ia64*) tmp_idyn=' -i_dynamic';;
12675 esac
12676 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12677 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'
12679 esac
12680 archive_cmds_need_lc_CXX=no
12681 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12682 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12683 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12685 pgCC* | pgcpp*)
12686 # Portland Group C++ compiler
12687 case `$CC -V` in
12688 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12689 prelink_cmds_CXX='tpldir=Template.dir~
12690 rm -rf $tpldir~
12691 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12692 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12693 old_archive_cmds_CXX='tpldir=Template.dir~
12694 rm -rf $tpldir~
12695 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12696 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12697 $RANLIB $oldlib'
12698 archive_cmds_CXX='tpldir=Template.dir~
12699 rm -rf $tpldir~
12700 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12701 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12702 archive_expsym_cmds_CXX='tpldir=Template.dir~
12703 rm -rf $tpldir~
12704 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12705 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12707 *) # Version 6 will use weak symbols
12708 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12709 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12711 esac
12713 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12714 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12715 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12717 cxx*)
12718 # Compaq C++
12719 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12720 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'
12722 runpath_var=LD_RUN_PATH
12723 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12724 hardcode_libdir_separator_CXX=:
12726 # Commands to make compiler produce verbose output that lists
12727 # what "hidden" libraries, object files and flags are used when
12728 # linking a shared library.
12730 # There doesn't appear to be a way to prevent this compiler from
12731 # explicitly linking system object files so we need to strip them
12732 # from the output so that they don't get included in the library
12733 # dependencies.
12734 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12736 xl*)
12737 # IBM XL 8.0 on PPC, with GNU ld
12738 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12739 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12740 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12741 if test "x$supports_anon_versioning" = xyes; then
12742 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12743 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12744 echo "local: *; };" >> $output_objdir/$libname.ver~
12745 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12749 case `$CC -V 2>&1 | sed 5q` in
12750 *Sun\ C*)
12751 # Sun C++ 5.9
12752 no_undefined_flag_CXX=' -zdefs'
12753 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12754 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12755 hardcode_libdir_flag_spec_CXX='-R$libdir'
12756 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12757 compiler_needs_object_CXX=yes
12759 # Not sure whether something based on
12760 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12761 # would be better.
12762 output_verbose_link_cmd='echo'
12764 # Archives containing C++ object files must be created using
12765 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12766 # necessary to make sure instantiated templates are included
12767 # in the archive.
12768 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12770 esac
12772 esac
12775 lynxos*)
12776 # FIXME: insert proper C++ library support
12777 ld_shlibs_CXX=no
12780 m88k*)
12781 # FIXME: insert proper C++ library support
12782 ld_shlibs_CXX=no
12785 mvs*)
12786 case $cc_basename in
12787 cxx*)
12788 # FIXME: insert proper C++ library support
12789 ld_shlibs_CXX=no
12792 # FIXME: insert proper C++ library support
12793 ld_shlibs_CXX=no
12795 esac
12798 netbsd*)
12799 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12800 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12801 wlarc=
12802 hardcode_libdir_flag_spec_CXX='-R$libdir'
12803 hardcode_direct_CXX=yes
12804 hardcode_shlibpath_var_CXX=no
12806 # Workaround some broken pre-1.5 toolchains
12807 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12810 *nto* | *qnx*)
12811 ld_shlibs_CXX=yes
12814 openbsd2*)
12815 # C++ shared libraries are fairly broken
12816 ld_shlibs_CXX=no
12819 openbsd*)
12820 if test -f /usr/libexec/ld.so; then
12821 hardcode_direct_CXX=yes
12822 hardcode_shlibpath_var_CXX=no
12823 hardcode_direct_absolute_CXX=yes
12824 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12825 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12826 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12827 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12828 export_dynamic_flag_spec_CXX='${wl}-E'
12829 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12831 output_verbose_link_cmd=echo
12832 else
12833 ld_shlibs_CXX=no
12837 osf3* | osf4* | osf5*)
12838 case $cc_basename in
12839 KCC*)
12840 # Kuck and Associates, Inc. (KAI) C++ Compiler
12842 # KCC will only create a shared library if the output file
12843 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12844 # to its proper name (with version) after linking.
12845 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'
12847 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12848 hardcode_libdir_separator_CXX=:
12850 # Archives containing C++ object files must be created using
12851 # the KAI C++ compiler.
12852 case $host in
12853 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12854 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12855 esac
12857 RCC*)
12858 # Rational C++ 2.4.1
12859 # FIXME: insert proper C++ library support
12860 ld_shlibs_CXX=no
12862 cxx*)
12863 case $host in
12864 osf3*)
12865 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12866 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12870 allow_undefined_flag_CXX=' -expect_unresolved \*'
12871 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12872 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12873 echo "-hidden">> $lib.exp~
12874 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
12875 $RM $lib.exp'
12876 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12878 esac
12880 hardcode_libdir_separator_CXX=:
12882 # Commands to make compiler produce verbose output that lists
12883 # what "hidden" libraries, object files and flags are used when
12884 # linking a shared library.
12886 # There doesn't appear to be a way to prevent this compiler from
12887 # explicitly linking system object files so we need to strip them
12888 # from the output so that they don't get included in the library
12889 # dependencies.
12890 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
12893 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12894 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12895 case $host in
12896 osf3*)
12897 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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12900 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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12902 esac
12904 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12905 hardcode_libdir_separator_CXX=:
12907 # Commands to make compiler produce verbose output that lists
12908 # what "hidden" libraries, object files and flags are used when
12909 # linking a shared library.
12910 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12912 else
12913 # FIXME: insert proper C++ library support
12914 ld_shlibs_CXX=no
12917 esac
12920 psos*)
12921 # FIXME: insert proper C++ library support
12922 ld_shlibs_CXX=no
12925 sunos4*)
12926 case $cc_basename in
12927 CC*)
12928 # Sun C++ 4.x
12929 # FIXME: insert proper C++ library support
12930 ld_shlibs_CXX=no
12932 lcc*)
12933 # Lucid
12934 # FIXME: insert proper C++ library support
12935 ld_shlibs_CXX=no
12938 # FIXME: insert proper C++ library support
12939 ld_shlibs_CXX=no
12941 esac
12944 solaris*)
12945 case $cc_basename in
12946 CC*)
12947 # Sun C++ 4.2, 5.x and Centerline C++
12948 archive_cmds_need_lc_CXX=yes
12949 no_undefined_flag_CXX=' -zdefs'
12950 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12951 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12952 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12954 hardcode_libdir_flag_spec_CXX='-R$libdir'
12955 hardcode_shlibpath_var_CXX=no
12956 case $host_os in
12957 solaris2.[0-5] | solaris2.[0-5].*) ;;
12959 # The compiler driver will combine and reorder linker options,
12960 # but understands `-z linker_flag'.
12961 # Supported since Solaris 2.6 (maybe 2.5.1?)
12962 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12964 esac
12965 link_all_deplibs_CXX=yes
12967 output_verbose_link_cmd='echo'
12969 # Archives containing C++ object files must be created using
12970 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12971 # necessary to make sure instantiated templates are included
12972 # in the archive.
12973 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12975 gcx*)
12976 # Green Hills C++ Compiler
12977 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12979 # The C++ compiler must be used to create the archive.
12980 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12983 # GNU C++ compiler with Solaris linker
12984 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12985 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12986 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12987 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12988 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12989 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12991 # Commands to make compiler produce verbose output that lists
12992 # what "hidden" libraries, object files and flags are used when
12993 # linking a shared library.
12994 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12995 else
12996 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12997 # platform.
12998 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12999 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13000 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13002 # Commands to make compiler produce verbose output that lists
13003 # what "hidden" libraries, object files and flags are used when
13004 # linking a shared library.
13005 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13008 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13009 case $host_os in
13010 solaris2.[0-5] | solaris2.[0-5].*) ;;
13012 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13014 esac
13017 esac
13020 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13021 no_undefined_flag_CXX='${wl}-z,text'
13022 archive_cmds_need_lc_CXX=no
13023 hardcode_shlibpath_var_CXX=no
13024 runpath_var='LD_RUN_PATH'
13026 case $cc_basename in
13027 CC*)
13028 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13029 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13032 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13033 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13035 esac
13038 sysv5* | sco3.2v5* | sco5v6*)
13039 # Note: We can NOT use -z defs as we might desire, because we do not
13040 # link with -lc, and that would cause any symbols used from libc to
13041 # always be unresolved, which means just about no library would
13042 # ever link correctly. If we're not using GNU ld we use -z text
13043 # though, which does catch some bad symbols but isn't as heavy-handed
13044 # as -z defs.
13045 no_undefined_flag_CXX='${wl}-z,text'
13046 allow_undefined_flag_CXX='${wl}-z,nodefs'
13047 archive_cmds_need_lc_CXX=no
13048 hardcode_shlibpath_var_CXX=no
13049 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13050 hardcode_libdir_separator_CXX=':'
13051 link_all_deplibs_CXX=yes
13052 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13053 runpath_var='LD_RUN_PATH'
13055 case $cc_basename in
13056 CC*)
13057 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13058 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13061 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13062 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13064 esac
13067 tandem*)
13068 case $cc_basename in
13069 NCC*)
13070 # NonStop-UX NCC 3.20
13071 # FIXME: insert proper C++ library support
13072 ld_shlibs_CXX=no
13075 # FIXME: insert proper C++ library support
13076 ld_shlibs_CXX=no
13078 esac
13081 vxworks*)
13082 # FIXME: insert proper C++ library support
13083 ld_shlibs_CXX=no
13087 # FIXME: insert proper C++ library support
13088 ld_shlibs_CXX=no
13090 esac
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13093 $as_echo "$ld_shlibs_CXX" >&6; }
13094 test "$ld_shlibs_CXX" = no && can_build_shared=no
13096 GCC_CXX="$GXX"
13097 LD_CXX="$LD"
13099 ## CAVEAT EMPTOR:
13100 ## There is no encapsulation within the following macros, do not change
13101 ## the running order or otherwise move them around unless you know exactly
13102 ## what you are doing...
13103 # Dependencies to place before and after the object being linked:
13104 predep_objects_CXX=
13105 postdep_objects_CXX=
13106 predeps_CXX=
13107 postdeps_CXX=
13108 compiler_lib_search_path_CXX=
13110 cat > conftest.$ac_ext <<_LT_EOF
13111 class Foo
13113 public:
13114 Foo (void) { a = 0; }
13115 private:
13116 int a;
13118 _LT_EOF
13120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13121 (eval $ac_compile) 2>&5
13122 ac_status=$?
13123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13124 test $ac_status = 0; }; then
13125 # Parse the compiler output and extract the necessary
13126 # objects, libraries and library flags.
13128 # Sentinel used to keep track of whether or not we are before
13129 # the conftest object file.
13130 pre_test_object_deps_done=no
13132 for p in `eval "$output_verbose_link_cmd"`; do
13133 case $p in
13135 -L* | -R* | -l*)
13136 # Some compilers place space between "-{L,R}" and the path.
13137 # Remove the space.
13138 if test $p = "-L" ||
13139 test $p = "-R"; then
13140 prev=$p
13141 continue
13142 else
13143 prev=
13146 if test "$pre_test_object_deps_done" = no; then
13147 case $p in
13148 -L* | -R*)
13149 # Internal compiler library paths should come after those
13150 # provided the user. The postdeps already come after the
13151 # user supplied libs so there is no need to process them.
13152 if test -z "$compiler_lib_search_path_CXX"; then
13153 compiler_lib_search_path_CXX="${prev}${p}"
13154 else
13155 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13158 # The "-l" case would never come before the object being
13159 # linked, so don't bother handling this case.
13160 esac
13161 else
13162 if test -z "$postdeps_CXX"; then
13163 postdeps_CXX="${prev}${p}"
13164 else
13165 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13170 *.$objext)
13171 # This assumes that the test object file only shows up
13172 # once in the compiler output.
13173 if test "$p" = "conftest.$objext"; then
13174 pre_test_object_deps_done=yes
13175 continue
13178 if test "$pre_test_object_deps_done" = no; then
13179 if test -z "$predep_objects_CXX"; then
13180 predep_objects_CXX="$p"
13181 else
13182 predep_objects_CXX="$predep_objects_CXX $p"
13184 else
13185 if test -z "$postdep_objects_CXX"; then
13186 postdep_objects_CXX="$p"
13187 else
13188 postdep_objects_CXX="$postdep_objects_CXX $p"
13193 *) ;; # Ignore the rest.
13195 esac
13196 done
13198 # Clean up.
13199 rm -f a.out a.exe
13200 else
13201 echo "libtool.m4: error: problem compiling CXX test program"
13204 $RM -f confest.$objext
13206 # PORTME: override above test on systems where it is broken
13207 case $host_os in
13208 interix[3-9]*)
13209 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13210 # hack all around it, let's just trust "g++" to DTRT.
13211 predep_objects_CXX=
13212 postdep_objects_CXX=
13213 postdeps_CXX=
13216 linux*)
13217 case `$CC -V 2>&1 | sed 5q` in
13218 *Sun\ C*)
13219 # Sun C++ 5.9
13221 # The more standards-conforming stlport4 library is
13222 # incompatible with the Cstd library. Avoid specifying
13223 # it if it's in CXXFLAGS. Ignore libCrun as
13224 # -library=stlport4 depends on it.
13225 case " $CXX $CXXFLAGS " in
13226 *" -library=stlport4 "*)
13227 solaris_use_stlport4=yes
13229 esac
13231 if test "$solaris_use_stlport4" != yes; then
13232 postdeps_CXX='-library=Cstd -library=Crun'
13235 esac
13238 solaris*)
13239 case $cc_basename in
13240 CC*)
13241 # The more standards-conforming stlport4 library is
13242 # incompatible with the Cstd library. Avoid specifying
13243 # it if it's in CXXFLAGS. Ignore libCrun as
13244 # -library=stlport4 depends on it.
13245 case " $CXX $CXXFLAGS " in
13246 *" -library=stlport4 "*)
13247 solaris_use_stlport4=yes
13249 esac
13251 # Adding this requires a known-good setup of shared libraries for
13252 # Sun compiler versions before 5.6, else PIC objects from an old
13253 # archive will be linked into the output, leading to subtle bugs.
13254 if test "$solaris_use_stlport4" != yes; then
13255 postdeps_CXX='-library=Cstd -library=Crun'
13258 esac
13260 esac
13263 case " $postdeps_CXX " in
13264 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13265 esac
13266 compiler_lib_search_dirs_CXX=
13267 if test -n "${compiler_lib_search_path_CXX}"; then
13268 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13301 lt_prog_compiler_wl_CXX=
13302 lt_prog_compiler_pic_CXX=
13303 lt_prog_compiler_static_CXX=
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13306 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13308 # C++ specific cases for pic, static, wl, etc.
13309 if test "$GXX" = yes; then
13310 lt_prog_compiler_wl_CXX='-Wl,'
13311 lt_prog_compiler_static_CXX='-static'
13313 case $host_os in
13314 aix*)
13315 # All AIX code is PIC.
13316 if test "$host_cpu" = ia64; then
13317 # AIX 5 now supports IA64 processor
13318 lt_prog_compiler_static_CXX='-Bstatic'
13322 amigaos*)
13323 case $host_cpu in
13324 powerpc)
13325 # see comment about AmigaOS4 .so support
13326 lt_prog_compiler_pic_CXX='-fPIC'
13328 m68k)
13329 # FIXME: we need at least 68020 code to build shared libraries, but
13330 # adding the `-m68020' flag to GCC prevents building anything better,
13331 # like `-m68040'.
13332 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13334 esac
13337 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13338 # PIC is the default for these OSes.
13340 mingw* | cygwin* | os2* | pw32* | cegcc*)
13341 # This hack is so that the source file can tell whether it is being
13342 # built for inclusion in a dll (and should export symbols for example).
13343 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13344 # (--disable-auto-import) libraries
13345 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13347 darwin* | rhapsody*)
13348 # PIC is the default on this platform
13349 # Common symbols not allowed in MH_DYLIB files
13350 lt_prog_compiler_pic_CXX='-fno-common'
13352 *djgpp*)
13353 # DJGPP does not support shared libraries at all
13354 lt_prog_compiler_pic_CXX=
13356 interix[3-9]*)
13357 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13358 # Instead, we relocate shared libraries at runtime.
13360 sysv4*MP*)
13361 if test -d /usr/nec; then
13362 lt_prog_compiler_pic_CXX=-Kconform_pic
13365 hpux*)
13366 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13367 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13368 # sets the default TLS model and affects inlining.
13369 case $host_cpu in
13370 hppa*64*)
13373 lt_prog_compiler_pic_CXX='-fPIC'
13375 esac
13377 *qnx* | *nto*)
13378 # QNX uses GNU C++, but need to define -shared option too, otherwise
13379 # it will coredump.
13380 lt_prog_compiler_pic_CXX='-fPIC -shared'
13383 lt_prog_compiler_pic_CXX='-fPIC'
13385 esac
13386 else
13387 case $host_os in
13388 aix[4-9]*)
13389 # All AIX code is PIC.
13390 if test "$host_cpu" = ia64; then
13391 # AIX 5 now supports IA64 processor
13392 lt_prog_compiler_static_CXX='-Bstatic'
13393 else
13394 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13397 chorus*)
13398 case $cc_basename in
13399 cxch68*)
13400 # Green Hills C++ Compiler
13401 # _LT_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"
13403 esac
13405 dgux*)
13406 case $cc_basename in
13407 ec++*)
13408 lt_prog_compiler_pic_CXX='-KPIC'
13410 ghcx*)
13411 # Green Hills C++ Compiler
13412 lt_prog_compiler_pic_CXX='-pic'
13416 esac
13418 freebsd* | dragonfly*)
13419 # FreeBSD uses GNU C++
13421 hpux9* | hpux10* | hpux11*)
13422 case $cc_basename in
13423 CC*)
13424 lt_prog_compiler_wl_CXX='-Wl,'
13425 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13426 if test "$host_cpu" != ia64; then
13427 lt_prog_compiler_pic_CXX='+Z'
13430 aCC*)
13431 lt_prog_compiler_wl_CXX='-Wl,'
13432 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13433 case $host_cpu in
13434 hppa*64*|ia64*)
13435 # +Z the default
13438 lt_prog_compiler_pic_CXX='+Z'
13440 esac
13444 esac
13446 interix*)
13447 # This is c89, which is MS Visual C++ (no shared libs)
13448 # Anyone wants to do a port?
13450 irix5* | irix6* | nonstopux*)
13451 case $cc_basename in
13452 CC*)
13453 lt_prog_compiler_wl_CXX='-Wl,'
13454 lt_prog_compiler_static_CXX='-non_shared'
13455 # CC pic flag -KPIC is the default.
13459 esac
13461 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13462 case $cc_basename in
13463 KCC*)
13464 # KAI C++ Compiler
13465 lt_prog_compiler_wl_CXX='--backend -Wl,'
13466 lt_prog_compiler_pic_CXX='-fPIC'
13468 ecpc* )
13469 # old Intel C++ for x86_64 which still supported -KPIC.
13470 lt_prog_compiler_wl_CXX='-Wl,'
13471 lt_prog_compiler_pic_CXX='-KPIC'
13472 lt_prog_compiler_static_CXX='-static'
13474 icpc* )
13475 # Intel C++, used to be incompatible with GCC.
13476 # ICC 10 doesn't accept -KPIC any more.
13477 lt_prog_compiler_wl_CXX='-Wl,'
13478 lt_prog_compiler_pic_CXX='-fPIC'
13479 lt_prog_compiler_static_CXX='-static'
13481 pgCC* | pgcpp*)
13482 # Portland Group C++ compiler
13483 lt_prog_compiler_wl_CXX='-Wl,'
13484 lt_prog_compiler_pic_CXX='-fpic'
13485 lt_prog_compiler_static_CXX='-Bstatic'
13487 cxx*)
13488 # Compaq C++
13489 # Make sure the PIC flag is empty. It appears that all Alpha
13490 # Linux and Compaq Tru64 Unix objects are PIC.
13491 lt_prog_compiler_pic_CXX=
13492 lt_prog_compiler_static_CXX='-non_shared'
13494 xlc* | xlC*)
13495 # IBM XL 8.0 on PPC
13496 lt_prog_compiler_wl_CXX='-Wl,'
13497 lt_prog_compiler_pic_CXX='-qpic'
13498 lt_prog_compiler_static_CXX='-qstaticlink'
13501 case `$CC -V 2>&1 | sed 5q` in
13502 *Sun\ C*)
13503 # Sun C++ 5.9
13504 lt_prog_compiler_pic_CXX='-KPIC'
13505 lt_prog_compiler_static_CXX='-Bstatic'
13506 lt_prog_compiler_wl_CXX='-Qoption ld '
13508 esac
13510 esac
13512 lynxos*)
13514 m88k*)
13516 mvs*)
13517 case $cc_basename in
13518 cxx*)
13519 lt_prog_compiler_pic_CXX='-W c,exportall'
13523 esac
13525 netbsd* | netbsdelf*-gnu)
13527 *qnx* | *nto*)
13528 # QNX uses GNU C++, but need to define -shared option too, otherwise
13529 # it will coredump.
13530 lt_prog_compiler_pic_CXX='-fPIC -shared'
13532 osf3* | osf4* | osf5*)
13533 case $cc_basename in
13534 KCC*)
13535 lt_prog_compiler_wl_CXX='--backend -Wl,'
13537 RCC*)
13538 # Rational C++ 2.4.1
13539 lt_prog_compiler_pic_CXX='-pic'
13541 cxx*)
13542 # Digital/Compaq C++
13543 lt_prog_compiler_wl_CXX='-Wl,'
13544 # Make sure the PIC flag is empty. It appears that all Alpha
13545 # Linux and Compaq Tru64 Unix objects are PIC.
13546 lt_prog_compiler_pic_CXX=
13547 lt_prog_compiler_static_CXX='-non_shared'
13551 esac
13553 psos*)
13555 solaris*)
13556 case $cc_basename in
13557 CC*)
13558 # Sun C++ 4.2, 5.x and Centerline C++
13559 lt_prog_compiler_pic_CXX='-KPIC'
13560 lt_prog_compiler_static_CXX='-Bstatic'
13561 lt_prog_compiler_wl_CXX='-Qoption ld '
13563 gcx*)
13564 # Green Hills C++ Compiler
13565 lt_prog_compiler_pic_CXX='-PIC'
13569 esac
13571 sunos4*)
13572 case $cc_basename in
13573 CC*)
13574 # Sun C++ 4.x
13575 lt_prog_compiler_pic_CXX='-pic'
13576 lt_prog_compiler_static_CXX='-Bstatic'
13578 lcc*)
13579 # Lucid
13580 lt_prog_compiler_pic_CXX='-pic'
13584 esac
13586 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13587 case $cc_basename in
13588 CC*)
13589 lt_prog_compiler_wl_CXX='-Wl,'
13590 lt_prog_compiler_pic_CXX='-KPIC'
13591 lt_prog_compiler_static_CXX='-Bstatic'
13593 esac
13595 tandem*)
13596 case $cc_basename in
13597 NCC*)
13598 # NonStop-UX NCC 3.20
13599 lt_prog_compiler_pic_CXX='-KPIC'
13603 esac
13605 vxworks*)
13608 lt_prog_compiler_can_build_shared_CXX=no
13610 esac
13613 case $host_os in
13614 # For platforms which do not support PIC, -DPIC is meaningless:
13615 *djgpp*)
13616 lt_prog_compiler_pic_CXX=
13619 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13621 esac
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13623 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13628 # Check to make sure the PIC flag actually works.
13630 if test -n "$lt_prog_compiler_pic_CXX"; then
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13632 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13633 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13634 $as_echo_n "(cached) " >&6
13635 else
13636 lt_cv_prog_compiler_pic_works_CXX=no
13637 ac_outfile=conftest.$ac_objext
13638 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13639 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13640 # Insert the option either (1) after the last *FLAGS variable, or
13641 # (2) before a word containing "conftest.", or (3) at the end.
13642 # Note that $ac_compile itself does not contain backslashes and begins
13643 # with a dollar sign (not a hyphen), so the echo should work correctly.
13644 # The option is referenced via a variable to avoid confusing sed.
13645 lt_compile=`echo "$ac_compile" | $SED \
13646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13648 -e 's:$: $lt_compiler_flag:'`
13649 (eval echo "\"\$as_me:13649: $lt_compile\"" >&5)
13650 (eval "$lt_compile" 2>conftest.err)
13651 ac_status=$?
13652 cat conftest.err >&5
13653 echo "$as_me:13653: \$? = $ac_status" >&5
13654 if (exit $ac_status) && test -s "$ac_outfile"; then
13655 # The compiler can only warn and ignore the option if not recognized
13656 # So say no if there are warnings other than the usual output.
13657 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13658 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13659 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13660 lt_cv_prog_compiler_pic_works_CXX=yes
13663 $RM conftest*
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13667 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13669 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13670 case $lt_prog_compiler_pic_CXX in
13671 "" | " "*) ;;
13672 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13673 esac
13674 else
13675 lt_prog_compiler_pic_CXX=
13676 lt_prog_compiler_can_build_shared_CXX=no
13684 # Check to make sure the static flag actually works.
13686 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13688 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13689 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13690 $as_echo_n "(cached) " >&6
13691 else
13692 lt_cv_prog_compiler_static_works_CXX=no
13693 save_LDFLAGS="$LDFLAGS"
13694 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13695 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13696 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13697 # The linker can only warn and ignore the option if not recognized
13698 # So say no if there are warnings
13699 if test -s conftest.err; then
13700 # Append any errors to the config.log.
13701 cat conftest.err 1>&5
13702 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13704 if diff conftest.exp conftest.er2 >/dev/null; then
13705 lt_cv_prog_compiler_static_works_CXX=yes
13707 else
13708 lt_cv_prog_compiler_static_works_CXX=yes
13711 $RM -r conftest*
13712 LDFLAGS="$save_LDFLAGS"
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13716 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13718 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13720 else
13721 lt_prog_compiler_static_CXX=
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13728 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13729 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13730 $as_echo_n "(cached) " >&6
13731 else
13732 lt_cv_prog_compiler_c_o_CXX=no
13733 $RM -r conftest 2>/dev/null
13734 mkdir conftest
13735 cd conftest
13736 mkdir out
13737 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13739 lt_compiler_flag="-o out/conftest2.$ac_objext"
13740 # Insert the option either (1) after the last *FLAGS variable, or
13741 # (2) before a word containing "conftest.", or (3) at the end.
13742 # Note that $ac_compile itself does not contain backslashes and begins
13743 # with a dollar sign (not a hyphen), so the echo should work correctly.
13744 lt_compile=`echo "$ac_compile" | $SED \
13745 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13746 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13747 -e 's:$: $lt_compiler_flag:'`
13748 (eval echo "\"\$as_me:13748: $lt_compile\"" >&5)
13749 (eval "$lt_compile" 2>out/conftest.err)
13750 ac_status=$?
13751 cat out/conftest.err >&5
13752 echo "$as_me:13752: \$? = $ac_status" >&5
13753 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13754 then
13755 # The compiler can only warn and ignore the option if not recognized
13756 # So say no if there are warnings
13757 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13758 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13759 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13760 lt_cv_prog_compiler_c_o_CXX=yes
13763 chmod u+w . 2>&5
13764 $RM conftest*
13765 # SGI C++ compiler will create directory out/ii_files/ for
13766 # template instantiation
13767 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13768 $RM out/* && rmdir out
13769 cd ..
13770 $RM -r conftest
13771 $RM conftest*
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13775 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13780 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13781 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13782 $as_echo_n "(cached) " >&6
13783 else
13784 lt_cv_prog_compiler_c_o_CXX=no
13785 $RM -r conftest 2>/dev/null
13786 mkdir conftest
13787 cd conftest
13788 mkdir out
13789 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13791 lt_compiler_flag="-o out/conftest2.$ac_objext"
13792 # Insert the option either (1) after the last *FLAGS variable, or
13793 # (2) before a word containing "conftest.", or (3) at the end.
13794 # Note that $ac_compile itself does not contain backslashes and begins
13795 # with a dollar sign (not a hyphen), so the echo should work correctly.
13796 lt_compile=`echo "$ac_compile" | $SED \
13797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13799 -e 's:$: $lt_compiler_flag:'`
13800 (eval echo "\"\$as_me:13800: $lt_compile\"" >&5)
13801 (eval "$lt_compile" 2>out/conftest.err)
13802 ac_status=$?
13803 cat out/conftest.err >&5
13804 echo "$as_me:13804: \$? = $ac_status" >&5
13805 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13806 then
13807 # The compiler can only warn and ignore the option if not recognized
13808 # So say no if there are warnings
13809 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13810 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13811 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13812 lt_cv_prog_compiler_c_o_CXX=yes
13815 chmod u+w . 2>&5
13816 $RM conftest*
13817 # SGI C++ compiler will create directory out/ii_files/ for
13818 # template instantiation
13819 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13820 $RM out/* && rmdir out
13821 cd ..
13822 $RM -r conftest
13823 $RM conftest*
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13827 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13832 hard_links="nottested"
13833 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13834 # do not overwrite the value of need_locks provided by the user
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13836 $as_echo_n "checking if we can lock with hard links... " >&6; }
13837 hard_links=yes
13838 $RM conftest*
13839 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13840 touch conftest.a
13841 ln conftest.a conftest.b 2>&5 || hard_links=no
13842 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13844 $as_echo "$hard_links" >&6; }
13845 if test "$hard_links" = no; then
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13847 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13848 need_locks=warn
13850 else
13851 need_locks=no
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13857 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13859 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13860 case $host_os in
13861 aix[4-9]*)
13862 # If we're using GNU nm, then we don't want the "-C" option.
13863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13864 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13865 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'
13866 else
13867 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'
13870 pw32*)
13871 export_symbols_cmds_CXX="$ltdll_cmds"
13873 cygwin* | mingw* | cegcc*)
13874 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'
13876 linux* | k*bsd*-gnu)
13877 link_all_deplibs_CXX=no
13880 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13882 esac
13883 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13886 $as_echo "$ld_shlibs_CXX" >&6; }
13887 test "$ld_shlibs_CXX" = no && can_build_shared=no
13889 with_gnu_ld_CXX=$with_gnu_ld
13897 # Do we need to explicitly link libc?
13899 case "x$archive_cmds_need_lc_CXX" in
13900 x|xyes)
13901 # Assume -lc should be added
13902 archive_cmds_need_lc_CXX=yes
13904 if test "$enable_shared" = yes && test "$GCC" = yes; then
13905 case $archive_cmds_CXX in
13906 *'~'*)
13907 # FIXME: we may have to deal with multi-command sequences.
13909 '$CC '*)
13910 # Test whether the compiler implicitly links with -lc since on some
13911 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13912 # to ld, don't add -lc before -lgcc.
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13914 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13915 $RM conftest*
13916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13918 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13919 (eval $ac_compile) 2>&5
13920 ac_status=$?
13921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13922 test $ac_status = 0; } 2>conftest.err; then
13923 soname=conftest
13924 lib=conftest
13925 libobjs=conftest.$ac_objext
13926 deplibs=
13927 wl=$lt_prog_compiler_wl_CXX
13928 pic_flag=$lt_prog_compiler_pic_CXX
13929 compiler_flags=-v
13930 linker_flags=-v
13931 verstring=
13932 output_objdir=.
13933 libname=conftest
13934 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13935 allow_undefined_flag_CXX=
13936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13937 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13938 ac_status=$?
13939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13940 test $ac_status = 0; }
13941 then
13942 archive_cmds_need_lc_CXX=no
13943 else
13944 archive_cmds_need_lc_CXX=yes
13946 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13947 else
13948 cat conftest.err 1>&5
13950 $RM conftest*
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
13952 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13954 esac
13957 esac
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14023 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14025 library_names_spec=
14026 libname_spec='lib$name'
14027 soname_spec=
14028 shrext_cmds=".so"
14029 postinstall_cmds=
14030 postuninstall_cmds=
14031 finish_cmds=
14032 finish_eval=
14033 shlibpath_var=
14034 shlibpath_overrides_runpath=unknown
14035 version_type=none
14036 dynamic_linker="$host_os ld.so"
14037 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14038 need_lib_prefix=unknown
14039 hardcode_into_libs=no
14041 # when you set need_version to no, make sure it does not cause -set_version
14042 # flags to be left without arguments
14043 need_version=unknown
14045 case $host_os in
14046 aix3*)
14047 version_type=linux
14048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14049 shlibpath_var=LIBPATH
14051 # AIX 3 has no versioning support, so we append a major version to the name.
14052 soname_spec='${libname}${release}${shared_ext}$major'
14055 aix[4-9]*)
14056 version_type=linux
14057 need_lib_prefix=no
14058 need_version=no
14059 hardcode_into_libs=yes
14060 if test "$host_cpu" = ia64; then
14061 # AIX 5 supports IA64
14062 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14063 shlibpath_var=LD_LIBRARY_PATH
14064 else
14065 # With GCC up to 2.95.x, collect2 would create an import file
14066 # for dependence libraries. The import file would start with
14067 # the line `#! .'. This would cause the generated library to
14068 # depend on `.', always an invalid library. This was fixed in
14069 # development snapshots of GCC prior to 3.0.
14070 case $host_os in
14071 aix4 | aix4.[01] | aix4.[01].*)
14072 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14073 echo ' yes '
14074 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14076 else
14077 can_build_shared=no
14080 esac
14081 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14082 # soname into executable. Probably we can add versioning support to
14083 # collect2, so additional links can be useful in future.
14084 if test "$aix_use_runtimelinking" = yes; then
14085 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14086 # instead of lib<name>.a to let people know that these are not
14087 # typical AIX shared libraries.
14088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14089 else
14090 # We preserve .a as extension for shared libraries through AIX4.2
14091 # and later when we are not doing run time linking.
14092 library_names_spec='${libname}${release}.a $libname.a'
14093 soname_spec='${libname}${release}${shared_ext}$major'
14095 shlibpath_var=LIBPATH
14099 amigaos*)
14100 case $host_cpu in
14101 powerpc)
14102 # Since July 2007 AmigaOS4 officially supports .so libraries.
14103 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14106 m68k)
14107 library_names_spec='$libname.ixlibrary $libname.a'
14108 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14109 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'
14111 esac
14114 beos*)
14115 library_names_spec='${libname}${shared_ext}'
14116 dynamic_linker="$host_os ld.so"
14117 shlibpath_var=LIBRARY_PATH
14120 bsdi[45]*)
14121 version_type=linux
14122 need_version=no
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124 soname_spec='${libname}${release}${shared_ext}$major'
14125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14126 shlibpath_var=LD_LIBRARY_PATH
14127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14129 # the default ld.so.conf also contains /usr/contrib/lib and
14130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14131 # libtool to hard-code these into programs
14134 cygwin* | mingw* | pw32* | cegcc*)
14135 version_type=windows
14136 shrext_cmds=".dll"
14137 need_version=no
14138 need_lib_prefix=no
14140 case $GCC,$host_os in
14141 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14142 library_names_spec='$libname.dll.a'
14143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14144 postinstall_cmds='base_file=`basename \${file}`~
14145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14146 dldir=$destdir/`dirname \$dlpath`~
14147 test -d \$dldir || mkdir -p \$dldir~
14148 $install_prog $dir/$dlname \$dldir/$dlname~
14149 chmod a+x \$dldir/$dlname~
14150 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14151 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14154 dlpath=$dir/\$dldll~
14155 $RM \$dlpath'
14156 shlibpath_overrides_runpath=yes
14158 case $host_os in
14159 cygwin*)
14160 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14162 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14164 mingw* | cegcc*)
14165 # MinGW DLLs use traditional 'lib' prefix
14166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14167 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14168 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14169 # It is most probably a Windows format PATH printed by
14170 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14171 # path with ; separators, and with drive letters. We can handle the
14172 # drive letters (cygwin fileutils understands them), so leave them,
14173 # especially as we might pass files found there to a mingw objdump,
14174 # which wouldn't understand a cygwinified path. Ahh.
14175 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14176 else
14177 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14180 pw32*)
14181 # pw32 DLLs use 'pw' prefix rather than 'lib'
14182 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14184 esac
14188 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14190 esac
14191 dynamic_linker='Win32 ld.exe'
14192 # FIXME: first we should search . and the directory the executable is in
14193 shlibpath_var=PATH
14196 darwin* | rhapsody*)
14197 dynamic_linker="$host_os dyld"
14198 version_type=darwin
14199 need_lib_prefix=no
14200 need_version=no
14201 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14202 soname_spec='${libname}${release}${major}$shared_ext'
14203 shlibpath_overrides_runpath=yes
14204 shlibpath_var=DYLD_LIBRARY_PATH
14205 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14207 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14210 dgux*)
14211 version_type=linux
14212 need_lib_prefix=no
14213 need_version=no
14214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14215 soname_spec='${libname}${release}${shared_ext}$major'
14216 shlibpath_var=LD_LIBRARY_PATH
14219 freebsd1*)
14220 dynamic_linker=no
14223 freebsd* | dragonfly*)
14224 # DragonFly does not have aout. When/if they implement a new
14225 # versioning mechanism, adjust this.
14226 if test -x /usr/bin/objformat; then
14227 objformat=`/usr/bin/objformat`
14228 else
14229 case $host_os in
14230 freebsd[123]*) objformat=aout ;;
14231 *) objformat=elf ;;
14232 esac
14234 version_type=freebsd-$objformat
14235 case $version_type in
14236 freebsd-elf*)
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14238 need_version=no
14239 need_lib_prefix=no
14241 freebsd-*)
14242 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14243 need_version=yes
14245 esac
14246 shlibpath_var=LD_LIBRARY_PATH
14247 case $host_os in
14248 freebsd2*)
14249 shlibpath_overrides_runpath=yes
14251 freebsd3.[01]* | freebsdelf3.[01]*)
14252 shlibpath_overrides_runpath=yes
14253 hardcode_into_libs=yes
14255 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14256 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14257 shlibpath_overrides_runpath=no
14258 hardcode_into_libs=yes
14260 *) # from 4.6 on, and DragonFly
14261 shlibpath_overrides_runpath=yes
14262 hardcode_into_libs=yes
14264 esac
14267 gnu*)
14268 version_type=linux
14269 need_lib_prefix=no
14270 need_version=no
14271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14272 soname_spec='${libname}${release}${shared_ext}$major'
14273 shlibpath_var=LD_LIBRARY_PATH
14274 hardcode_into_libs=yes
14277 hpux9* | hpux10* | hpux11*)
14278 # Give a soname corresponding to the major version so that dld.sl refuses to
14279 # link against other versions.
14280 version_type=sunos
14281 need_lib_prefix=no
14282 need_version=no
14283 case $host_cpu in
14284 ia64*)
14285 shrext_cmds='.so'
14286 hardcode_into_libs=yes
14287 dynamic_linker="$host_os dld.so"
14288 shlibpath_var=LD_LIBRARY_PATH
14289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14291 soname_spec='${libname}${release}${shared_ext}$major'
14292 if test "X$HPUX_IA64_MODE" = X32; then
14293 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14294 else
14295 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14299 hppa*64*)
14300 shrext_cmds='.sl'
14301 hardcode_into_libs=yes
14302 dynamic_linker="$host_os dld.sl"
14303 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14306 soname_spec='${libname}${release}${shared_ext}$major'
14307 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14311 shrext_cmds='.sl'
14312 dynamic_linker="$host_os dld.sl"
14313 shlibpath_var=SHLIB_PATH
14314 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14316 soname_spec='${libname}${release}${shared_ext}$major'
14318 esac
14319 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14320 postinstall_cmds='chmod 555 $lib'
14323 interix[3-9]*)
14324 version_type=linux
14325 need_lib_prefix=no
14326 need_version=no
14327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14328 soname_spec='${libname}${release}${shared_ext}$major'
14329 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14330 shlibpath_var=LD_LIBRARY_PATH
14331 shlibpath_overrides_runpath=no
14332 hardcode_into_libs=yes
14335 irix5* | irix6* | nonstopux*)
14336 case $host_os in
14337 nonstopux*) version_type=nonstopux ;;
14339 if test "$lt_cv_prog_gnu_ld" = yes; then
14340 version_type=linux
14341 else
14342 version_type=irix
14343 fi ;;
14344 esac
14345 need_lib_prefix=no
14346 need_version=no
14347 soname_spec='${libname}${release}${shared_ext}$major'
14348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14349 case $host_os in
14350 irix5* | nonstopux*)
14351 libsuff= shlibsuff=
14354 case $LD in # libtool.m4 will add one of these switches to LD
14355 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14356 libsuff= shlibsuff= libmagic=32-bit;;
14357 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14358 libsuff=32 shlibsuff=N32 libmagic=N32;;
14359 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14360 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14361 *) libsuff= shlibsuff= libmagic=never-match;;
14362 esac
14364 esac
14365 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14366 shlibpath_overrides_runpath=no
14367 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14368 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14369 hardcode_into_libs=yes
14372 # No shared lib support for Linux oldld, aout, or coff.
14373 linux*oldld* | linux*aout* | linux*coff*)
14374 dynamic_linker=no
14377 # This must be Linux ELF.
14378 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14379 version_type=linux
14380 need_lib_prefix=no
14381 need_version=no
14382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14383 soname_spec='${libname}${release}${shared_ext}$major'
14384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14385 shlibpath_var=LD_LIBRARY_PATH
14386 shlibpath_overrides_runpath=no
14387 # Some binutils ld are patched to set DT_RUNPATH
14388 save_LDFLAGS=$LDFLAGS
14389 save_libdir=$libdir
14390 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14391 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h. */
14396 main ()
14400 return 0;
14402 _ACEOF
14403 if ac_fn_cxx_try_link "$LINENO"; then :
14404 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14405 shlibpath_overrides_runpath=yes
14408 rm -f core conftest.err conftest.$ac_objext \
14409 conftest$ac_exeext conftest.$ac_ext
14410 LDFLAGS=$save_LDFLAGS
14411 libdir=$save_libdir
14413 # This implies no fast_install, which is unacceptable.
14414 # Some rework will be needed to allow for fast_install
14415 # before this can be enabled.
14416 hardcode_into_libs=yes
14418 # Append ld.so.conf contents to the search path
14419 if test -f /etc/ld.so.conf; then
14420 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14421 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14424 # We used to test for /lib/ld.so.1 and disable shared libraries on
14425 # powerpc, because MkLinux only supported shared libraries with the
14426 # GNU dynamic linker. Since this was broken with cross compilers,
14427 # most powerpc-linux boxes support dynamic linking these days and
14428 # people can always --disable-shared, the test was removed, and we
14429 # assume the GNU/Linux dynamic linker is in use.
14430 dynamic_linker='GNU/Linux ld.so'
14433 netbsdelf*-gnu)
14434 version_type=linux
14435 need_lib_prefix=no
14436 need_version=no
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 shlibpath_var=LD_LIBRARY_PATH
14440 shlibpath_overrides_runpath=no
14441 hardcode_into_libs=yes
14442 dynamic_linker='NetBSD ld.elf_so'
14445 netbsd*)
14446 version_type=sunos
14447 need_lib_prefix=no
14448 need_version=no
14449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14452 dynamic_linker='NetBSD (a.out) ld.so'
14453 else
14454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14455 soname_spec='${libname}${release}${shared_ext}$major'
14456 dynamic_linker='NetBSD ld.elf_so'
14458 shlibpath_var=LD_LIBRARY_PATH
14459 shlibpath_overrides_runpath=yes
14460 hardcode_into_libs=yes
14463 newsos6)
14464 version_type=linux
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14466 shlibpath_var=LD_LIBRARY_PATH
14467 shlibpath_overrides_runpath=yes
14470 *nto* | *qnx*)
14471 version_type=qnx
14472 need_lib_prefix=no
14473 need_version=no
14474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14475 soname_spec='${libname}${release}${shared_ext}$major'
14476 shlibpath_var=LD_LIBRARY_PATH
14477 shlibpath_overrides_runpath=no
14478 hardcode_into_libs=yes
14479 dynamic_linker='ldqnx.so'
14482 openbsd*)
14483 version_type=sunos
14484 sys_lib_dlsearch_path_spec="/usr/lib"
14485 need_lib_prefix=no
14486 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14487 case $host_os in
14488 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14489 *) need_version=no ;;
14490 esac
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14493 shlibpath_var=LD_LIBRARY_PATH
14494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14495 case $host_os in
14496 openbsd2.[89] | openbsd2.[89].*)
14497 shlibpath_overrides_runpath=no
14500 shlibpath_overrides_runpath=yes
14502 esac
14503 else
14504 shlibpath_overrides_runpath=yes
14508 os2*)
14509 libname_spec='$name'
14510 shrext_cmds=".dll"
14511 need_lib_prefix=no
14512 library_names_spec='$libname${shared_ext} $libname.a'
14513 dynamic_linker='OS/2 ld.exe'
14514 shlibpath_var=LIBPATH
14517 osf3* | osf4* | osf5*)
14518 version_type=osf
14519 need_lib_prefix=no
14520 need_version=no
14521 soname_spec='${libname}${release}${shared_ext}$major'
14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14523 shlibpath_var=LD_LIBRARY_PATH
14524 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14525 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14528 rdos*)
14529 dynamic_linker=no
14532 solaris*)
14533 version_type=linux
14534 need_lib_prefix=no
14535 need_version=no
14536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14537 soname_spec='${libname}${release}${shared_ext}$major'
14538 shlibpath_var=LD_LIBRARY_PATH
14539 shlibpath_overrides_runpath=yes
14540 hardcode_into_libs=yes
14541 # ldd complains unless libraries are executable
14542 postinstall_cmds='chmod +x $lib'
14545 sunos4*)
14546 version_type=sunos
14547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14548 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14549 shlibpath_var=LD_LIBRARY_PATH
14550 shlibpath_overrides_runpath=yes
14551 if test "$with_gnu_ld" = yes; then
14552 need_lib_prefix=no
14554 need_version=yes
14557 sysv4 | sysv4.3*)
14558 version_type=linux
14559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14560 soname_spec='${libname}${release}${shared_ext}$major'
14561 shlibpath_var=LD_LIBRARY_PATH
14562 case $host_vendor in
14563 sni)
14564 shlibpath_overrides_runpath=no
14565 need_lib_prefix=no
14566 runpath_var=LD_RUN_PATH
14568 siemens)
14569 need_lib_prefix=no
14571 motorola)
14572 need_lib_prefix=no
14573 need_version=no
14574 shlibpath_overrides_runpath=no
14575 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14577 esac
14580 sysv4*MP*)
14581 if test -d /usr/nec ;then
14582 version_type=linux
14583 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14584 soname_spec='$libname${shared_ext}.$major'
14585 shlibpath_var=LD_LIBRARY_PATH
14589 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14590 version_type=freebsd-elf
14591 need_lib_prefix=no
14592 need_version=no
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14594 soname_spec='${libname}${release}${shared_ext}$major'
14595 shlibpath_var=LD_LIBRARY_PATH
14596 shlibpath_overrides_runpath=yes
14597 hardcode_into_libs=yes
14598 if test "$with_gnu_ld" = yes; then
14599 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14600 else
14601 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14602 case $host_os in
14603 sco3.2v5*)
14604 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14606 esac
14608 sys_lib_dlsearch_path_spec='/usr/lib'
14611 tpf*)
14612 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14613 version_type=linux
14614 need_lib_prefix=no
14615 need_version=no
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14617 shlibpath_var=LD_LIBRARY_PATH
14618 shlibpath_overrides_runpath=no
14619 hardcode_into_libs=yes
14622 uts4*)
14623 version_type=linux
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14625 soname_spec='${libname}${release}${shared_ext}$major'
14626 shlibpath_var=LD_LIBRARY_PATH
14630 dynamic_linker=no
14632 esac
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14634 $as_echo "$dynamic_linker" >&6; }
14635 test "$dynamic_linker" = no && can_build_shared=no
14637 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14638 if test "$GCC" = yes; then
14639 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14642 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14643 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14645 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14646 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14685 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14686 hardcode_action_CXX=
14687 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14688 test -n "$runpath_var_CXX" ||
14689 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14691 # We can hardcode non-existent directories.
14692 if test "$hardcode_direct_CXX" != no &&
14693 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14694 # have to relink, otherwise we might link with an installed library
14695 # when we should be linking with a yet-to-be-installed one
14696 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14697 test "$hardcode_minus_L_CXX" != no; then
14698 # Linking always hardcodes the temporary library directory.
14699 hardcode_action_CXX=relink
14700 else
14701 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14702 hardcode_action_CXX=immediate
14704 else
14705 # We cannot hardcode anything, or else we can only hardcode existing
14706 # directories.
14707 hardcode_action_CXX=unsupported
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14710 $as_echo "$hardcode_action_CXX" >&6; }
14712 if test "$hardcode_action_CXX" = relink ||
14713 test "$inherit_rpath_CXX" = yes; then
14714 # Fast installation is not supported
14715 enable_fast_install=no
14716 elif test "$shlibpath_overrides_runpath" = yes ||
14717 test "$enable_shared" = no; then
14718 # Fast installation is not necessary
14719 enable_fast_install=needless
14728 fi # test -n "$compiler"
14730 CC=$lt_save_CC
14731 LDCXX=$LD
14732 LD=$lt_save_LD
14733 GCC=$lt_save_GCC
14734 with_gnu_ld=$lt_save_with_gnu_ld
14735 lt_cv_path_LDCXX=$lt_cv_path_LD
14736 lt_cv_path_LD=$lt_save_path_LD
14737 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14738 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14739 fi # test "$_lt_caught_CXX_error" != yes
14741 ac_ext=c
14742 ac_cpp='$CPP $CPPFLAGS'
14743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14759 ac_config_commands="$ac_config_commands libtool"
14764 # Only expand once:
14768 if test "x$LIBTOOL" != "x"; then
14769 USE_LIBTOOL_TRUE=
14770 USE_LIBTOOL_FALSE='#'
14771 else
14772 USE_LIBTOOL_TRUE='#'
14773 USE_LIBTOOL_FALSE=
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14778 $as_echo_n "checking for inline... " >&6; }
14779 if test "${ac_cv_c_inline+set}" = set; then :
14780 $as_echo_n "(cached) " >&6
14781 else
14782 ac_cv_c_inline=no
14783 for ac_kw in inline __inline__ __inline; do
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14786 #ifndef __cplusplus
14787 typedef int foo_t;
14788 static $ac_kw foo_t static_foo () {return 0; }
14789 $ac_kw foo_t foo () {return 0; }
14790 #endif
14792 _ACEOF
14793 if ac_fn_c_try_compile "$LINENO"; then :
14794 ac_cv_c_inline=$ac_kw
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797 test "$ac_cv_c_inline" != no && break
14798 done
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14802 $as_echo "$ac_cv_c_inline" >&6; }
14804 case $ac_cv_c_inline in
14805 inline | yes) ;;
14807 case $ac_cv_c_inline in
14808 no) ac_val=;;
14809 *) ac_val=$ac_cv_c_inline;;
14810 esac
14811 cat >>confdefs.h <<_ACEOF
14812 #ifndef __cplusplus
14813 #define inline $ac_val
14814 #endif
14815 _ACEOF
14817 esac
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
14821 $as_echo_n "checking for __attribute__... " >&6; }
14822 if test "${ac_cv___attribute__+set}" = set; then :
14823 $as_echo_n "(cached) " >&6
14824 else
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h. */
14828 #include <stdlib.h>
14829 static void foo(void) __attribute__ ((unused));
14830 void foo(void) { exit(1); }
14832 main ()
14836 return 0;
14838 _ACEOF
14839 if ac_fn_c_try_compile "$LINENO"; then :
14840 ac_cv___attribute__=yes
14841 else
14842 ac_cv___attribute__=no
14845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14848 if test "$ac_cv___attribute__" = "yes"; then
14850 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
14854 $as_echo "$ac_cv___attribute__" >&6; }
14857 # Check whether some low-level functions/files are available
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14859 $as_echo_n "checking for ANSI C header files... " >&6; }
14860 if test "${ac_cv_header_stdc+set}" = set; then :
14861 $as_echo_n "(cached) " >&6
14862 else
14863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14864 /* end confdefs.h. */
14865 #include <stdlib.h>
14866 #include <stdarg.h>
14867 #include <string.h>
14868 #include <float.h>
14871 main ()
14875 return 0;
14877 _ACEOF
14878 if ac_fn_c_try_compile "$LINENO"; then :
14879 ac_cv_header_stdc=yes
14880 else
14881 ac_cv_header_stdc=no
14883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885 if test $ac_cv_header_stdc = yes; then
14886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888 /* end confdefs.h. */
14889 #include <string.h>
14891 _ACEOF
14892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14893 $EGREP "memchr" >/dev/null 2>&1; then :
14895 else
14896 ac_cv_header_stdc=no
14898 rm -f conftest*
14902 if test $ac_cv_header_stdc = yes; then
14903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14906 #include <stdlib.h>
14908 _ACEOF
14909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14910 $EGREP "free" >/dev/null 2>&1; then :
14912 else
14913 ac_cv_header_stdc=no
14915 rm -f conftest*
14919 if test $ac_cv_header_stdc = yes; then
14920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14921 if test "$cross_compiling" = yes; then :
14923 else
14924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14925 /* end confdefs.h. */
14926 #include <ctype.h>
14927 #include <stdlib.h>
14928 #if ((' ' & 0x0FF) == 0x020)
14929 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14930 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14931 #else
14932 # define ISLOWER(c) \
14933 (('a' <= (c) && (c) <= 'i') \
14934 || ('j' <= (c) && (c) <= 'r') \
14935 || ('s' <= (c) && (c) <= 'z'))
14936 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14937 #endif
14939 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14941 main ()
14943 int i;
14944 for (i = 0; i < 256; i++)
14945 if (XOR (islower (i), ISLOWER (i))
14946 || toupper (i) != TOUPPER (i))
14947 return 2;
14948 return 0;
14950 _ACEOF
14951 if ac_fn_c_try_run "$LINENO"; then :
14953 else
14954 ac_cv_header_stdc=no
14956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14957 conftest.$ac_objext conftest.beam conftest.$ac_ext
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14963 $as_echo "$ac_cv_header_stdc" >&6; }
14964 if test $ac_cv_header_stdc = yes; then
14966 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14971 # TODO(csilvers): we could remove a lot when WITH_CPU_PROFILER etc is "no".
14972 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
14973 if test "x$ac_cv_type___int64" = x""yes; then :
14975 cat >>confdefs.h <<_ACEOF
14976 #define HAVE___INT64 1
14977 _ACEOF
14981 # defined in some windows platforms
14982 ac_fn_c_check_type "$LINENO" "struct mallinfo" "ac_cv_type_struct_mallinfo" "#include <malloc.h>
14984 if test "x$ac_cv_type_struct_mallinfo" = x""yes; then :
14986 cat >>confdefs.h <<_ACEOF
14987 #define HAVE_STRUCT_MALLINFO 1
14988 _ACEOF
14993 ac_fn_c_check_type "$LINENO" "Elf32_Versym" "ac_cv_type_Elf32_Versym" "#include <elf.h>
14995 if test "x$ac_cv_type_Elf32_Versym" = x""yes; then :
14997 cat >>confdefs.h <<_ACEOF
14998 #define HAVE_ELF32_VERSYM 1
14999 _ACEOF
15003 # for vdso_support.h
15004 for ac_func in sbrk
15005 do :
15006 ac_fn_c_check_func "$LINENO" "sbrk" "ac_cv_func_sbrk"
15007 if test "x$ac_cv_func_sbrk" = x""yes; then :
15008 cat >>confdefs.h <<_ACEOF
15009 #define HAVE_SBRK 1
15010 _ACEOF
15013 done
15014 # for tcmalloc to get memory
15015 for ac_func in geteuid
15016 do :
15017 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
15018 if test "x$ac_cv_func_geteuid" = x""yes; then :
15019 cat >>confdefs.h <<_ACEOF
15020 #define HAVE_GETEUID 1
15021 _ACEOF
15024 done
15025 # for turning off services when run as root
15026 for ac_header in features.h
15027 do :
15028 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
15029 if test "x$ac_cv_header_features_h" = x""yes; then :
15030 cat >>confdefs.h <<_ACEOF
15031 #define HAVE_FEATURES_H 1
15032 _ACEOF
15036 done
15037 # for vdso_support.h
15038 for ac_header in malloc.h
15039 do :
15040 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
15041 if test "x$ac_cv_header_malloc_h" = x""yes; then :
15042 cat >>confdefs.h <<_ACEOF
15043 #define HAVE_MALLOC_H 1
15044 _ACEOF
15048 done
15049 # some systems define stuff there, others not
15050 for ac_header in sys/malloc.h
15051 do :
15052 ac_fn_c_check_header_mongrel "$LINENO" "sys/malloc.h" "ac_cv_header_sys_malloc_h" "$ac_includes_default"
15053 if test "x$ac_cv_header_sys_malloc_h" = x""yes; then :
15054 cat >>confdefs.h <<_ACEOF
15055 #define HAVE_SYS_MALLOC_H 1
15056 _ACEOF
15060 done
15061 # where some versions of OS X put malloc.h
15062 for ac_header in malloc/malloc.h
15063 do :
15064 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
15065 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
15066 cat >>confdefs.h <<_ACEOF
15067 #define HAVE_MALLOC_MALLOC_H 1
15068 _ACEOF
15072 done
15073 # another place OS X puts malloc.h (?)
15074 for ac_header in glob.h
15075 do :
15076 ac_fn_c_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
15077 if test "x$ac_cv_header_glob_h" = x""yes; then :
15078 cat >>confdefs.h <<_ACEOF
15079 #define HAVE_GLOB_H 1
15080 _ACEOF
15084 done
15085 # for heap-profile-table (cleaning up profiles)
15086 for ac_header in execinfo.h
15087 do :
15088 ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
15089 if test "x$ac_cv_header_execinfo_h" = x""yes; then :
15090 cat >>confdefs.h <<_ACEOF
15091 #define HAVE_EXECINFO_H 1
15092 _ACEOF
15096 done
15097 # for stacktrace? and heapchecker_unittest
15098 for ac_header in libunwind.h
15099 do :
15100 ac_fn_c_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
15101 if test "x$ac_cv_header_libunwind_h" = x""yes; then :
15102 cat >>confdefs.h <<_ACEOF
15103 #define HAVE_LIBUNWIND_H 1
15104 _ACEOF
15108 done
15109 # for stacktrace
15110 for ac_header in unwind.h
15111 do :
15112 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
15113 if test "x$ac_cv_header_unwind_h" = x""yes; then :
15114 cat >>confdefs.h <<_ACEOF
15115 #define HAVE_UNWIND_H 1
15116 _ACEOF
15120 done
15121 # for stacktrace
15122 for ac_header in sched.h
15123 do :
15124 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
15125 if test "x$ac_cv_header_sched_h" = x""yes; then :
15126 cat >>confdefs.h <<_ACEOF
15127 #define HAVE_SCHED_H 1
15128 _ACEOF
15132 done
15133 # for being nice in our spinlock code
15134 for ac_header in conflict-signal.h
15135 do :
15136 ac_fn_c_check_header_mongrel "$LINENO" "conflict-signal.h" "ac_cv_header_conflict_signal_h" "$ac_includes_default"
15137 if test "x$ac_cv_header_conflict_signal_h" = x""yes; then :
15138 cat >>confdefs.h <<_ACEOF
15139 #define HAVE_CONFLICT_SIGNAL_H 1
15140 _ACEOF
15144 done
15145 # defined on some windows platforms?
15146 for ac_header in sys/prctl.h
15147 do :
15148 ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
15149 if test "x$ac_cv_header_sys_prctl_h" = x""yes; then :
15150 cat >>confdefs.h <<_ACEOF
15151 #define HAVE_SYS_PRCTL_H 1
15152 _ACEOF
15156 done
15157 # for thread_lister (needed by leak-checker)
15158 for ac_header in linux/ptrace.h
15159 do :
15160 ac_fn_c_check_header_mongrel "$LINENO" "linux/ptrace.h" "ac_cv_header_linux_ptrace_h" "$ac_includes_default"
15161 if test "x$ac_cv_header_linux_ptrace_h" = x""yes; then :
15162 cat >>confdefs.h <<_ACEOF
15163 #define HAVE_LINUX_PTRACE_H 1
15164 _ACEOF
15168 done
15169 # also needed by leak-checker
15170 for ac_header in sys/syscall.h
15171 do :
15172 ac_fn_c_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
15173 if test "x$ac_cv_header_sys_syscall_h" = x""yes; then :
15174 cat >>confdefs.h <<_ACEOF
15175 #define HAVE_SYS_SYSCALL_H 1
15176 _ACEOF
15180 done
15182 for ac_header in sys/socket.h
15183 do :
15184 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
15185 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
15186 cat >>confdefs.h <<_ACEOF
15187 #define HAVE_SYS_SOCKET_H 1
15188 _ACEOF
15192 done
15193 # optional; for forking out to symbolizer
15194 for ac_header in sys/wait.h
15195 do :
15196 ac_fn_c_check_header_mongrel "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
15197 if test "x$ac_cv_header_sys_wait_h" = x""yes; then :
15198 cat >>confdefs.h <<_ACEOF
15199 #define HAVE_SYS_WAIT_H 1
15200 _ACEOF
15204 done
15205 # optional; for forking out to symbolizer
15206 for ac_header in poll.h
15207 do :
15208 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
15209 if test "x$ac_cv_header_poll_h" = x""yes; then :
15210 cat >>confdefs.h <<_ACEOF
15211 #define HAVE_POLL_H 1
15212 _ACEOF
15216 done
15217 # optional; for forking out to symbolizer
15218 for ac_header in fcntl.h
15219 do :
15220 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
15221 if test "x$ac_cv_header_fcntl_h" = x""yes; then :
15222 cat >>confdefs.h <<_ACEOF
15223 #define HAVE_FCNTL_H 1
15224 _ACEOF
15228 done
15229 # for tcmalloc_unittest
15230 for ac_header in grp.h
15231 do :
15232 ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
15233 if test "x$ac_cv_header_grp_h" = x""yes; then :
15234 cat >>confdefs.h <<_ACEOF
15235 #define HAVE_GRP_H 1
15236 _ACEOF
15240 done
15241 # for heapchecker_unittest
15242 for ac_header in pwd.h
15243 do :
15244 ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
15245 if test "x$ac_cv_header_pwd_h" = x""yes; then :
15246 cat >>confdefs.h <<_ACEOF
15247 #define HAVE_PWD_H 1
15248 _ACEOF
15252 done
15253 # for heapchecker_unittest
15254 for ac_header in sys/resource.h
15255 do :
15256 ac_fn_c_check_header_mongrel "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
15257 if test "x$ac_cv_header_sys_resource_h" = x""yes; then :
15258 cat >>confdefs.h <<_ACEOF
15259 #define HAVE_SYS_RESOURCE_H 1
15260 _ACEOF
15264 done
15265 # for memalign_unittest.cc
15266 for ac_header in valgrind.h
15267 do :
15268 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
15269 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
15270 cat >>confdefs.h <<_ACEOF
15271 #define HAVE_VALGRIND_H 1
15272 _ACEOF
15276 done
15277 # we have a local copy if this isn't found
15278 for ac_header in sys/cdefs.h
15279 do :
15280 ac_fn_c_check_header_mongrel "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
15281 if test "x$ac_cv_header_sys_cdefs_h" = x""yes; then :
15282 cat >>confdefs.h <<_ACEOF
15283 #define HAVE_SYS_CDEFS_H 1
15284 _ACEOF
15288 done
15289 # Where glibc defines __THROW
15290 for ac_header in features.h
15291 do :
15292 ac_fn_c_check_header_mongrel "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default"
15293 if test "x$ac_cv_header_features_h" = x""yes; then :
15294 cat >>confdefs.h <<_ACEOF
15295 #define HAVE_FEATURES_H 1
15296 _ACEOF
15300 done
15301 # Where __GLIBC__ is defined
15302 # We also need <ucontext.h>/<sys/ucontext.h>, but we get those from
15303 # AC_PC_FROM_UCONTEXT, below.
15305 # We override a lot of memory allocation routines, not all of which are
15306 # standard. For those the system doesn't declare, we'll declare ourselves.
15307 ac_fn_c_check_decl "$LINENO" "cfree" "ac_cv_have_decl_cfree" "#define _XOPEN_SOURCE 600
15308 #include <stdlib.h>
15309 #include <malloc.h>
15311 if test "x$ac_cv_have_decl_cfree" = x""yes; then :
15312 ac_have_decl=1
15313 else
15314 ac_have_decl=0
15317 cat >>confdefs.h <<_ACEOF
15318 #define HAVE_DECL_CFREE $ac_have_decl
15319 _ACEOF
15320 ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "#define _XOPEN_SOURCE 600
15321 #include <stdlib.h>
15322 #include <malloc.h>
15324 if test "x$ac_cv_have_decl_posix_memalign" = x""yes; then :
15325 ac_have_decl=1
15326 else
15327 ac_have_decl=0
15330 cat >>confdefs.h <<_ACEOF
15331 #define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl
15332 _ACEOF
15333 ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" "#define _XOPEN_SOURCE 600
15334 #include <stdlib.h>
15335 #include <malloc.h>
15337 if test "x$ac_cv_have_decl_memalign" = x""yes; then :
15338 ac_have_decl=1
15339 else
15340 ac_have_decl=0
15343 cat >>confdefs.h <<_ACEOF
15344 #define HAVE_DECL_MEMALIGN $ac_have_decl
15345 _ACEOF
15346 ac_fn_c_check_decl "$LINENO" "valloc" "ac_cv_have_decl_valloc" "#define _XOPEN_SOURCE 600
15347 #include <stdlib.h>
15348 #include <malloc.h>
15350 if test "x$ac_cv_have_decl_valloc" = x""yes; then :
15351 ac_have_decl=1
15352 else
15353 ac_have_decl=0
15356 cat >>confdefs.h <<_ACEOF
15357 #define HAVE_DECL_VALLOC $ac_have_decl
15358 _ACEOF
15359 ac_fn_c_check_decl "$LINENO" "pvalloc" "ac_cv_have_decl_pvalloc" "#define _XOPEN_SOURCE 600
15360 #include <stdlib.h>
15361 #include <malloc.h>
15363 if test "x$ac_cv_have_decl_pvalloc" = x""yes; then :
15364 ac_have_decl=1
15365 else
15366 ac_have_decl=0
15369 cat >>confdefs.h <<_ACEOF
15370 #define HAVE_DECL_PVALLOC $ac_have_decl
15371 _ACEOF
15374 if test "$ac_cv_type_struct_mallinfo" = yes; then
15375 ac_cv_have_struct_mallinfo=1
15376 # gperftools/tcmalloc.h needs this
15377 else
15378 ac_cv_have_struct_mallinfo=0
15382 # We need to check for mmap. cygwin supports mmap, but the autoconf
15383 # test doesn't work on cygwin:
15384 # http://www.cygwin.com/ml/cygwin/2002-04/msg00412.html
15385 # This workaround comes from
15386 # http://cygwin.com/ml/cygwin/2004-11/msg00138.html
15387 case "$host" in
15388 *-*-cygwin*)
15389 ac_cv_func_mmap_fixed_mapped=yes
15391 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15397 for ac_header in $ac_header_list
15398 do :
15399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15400 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15402 eval as_val=\$$as_ac_Header
15403 if test "x$as_val" = x""yes; then :
15404 cat >>confdefs.h <<_ACEOF
15405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15406 _ACEOF
15410 done
15419 for ac_func in getpagesize
15420 do :
15421 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15422 if test "x$ac_cv_func_getpagesize" = x""yes; then :
15423 cat >>confdefs.h <<_ACEOF
15424 #define HAVE_GETPAGESIZE 1
15425 _ACEOF
15428 done
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15431 $as_echo_n "checking for working mmap... " >&6; }
15432 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15433 $as_echo_n "(cached) " >&6
15434 else
15435 if test "$cross_compiling" = yes; then :
15436 ac_cv_func_mmap_fixed_mapped=no
15437 else
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15440 $ac_includes_default
15441 /* malloc might have been renamed as rpl_malloc. */
15442 #undef malloc
15444 /* Thanks to Mike Haertel and Jim Avera for this test.
15445 Here is a matrix of mmap possibilities:
15446 mmap private not fixed
15447 mmap private fixed at somewhere currently unmapped
15448 mmap private fixed at somewhere already mapped
15449 mmap shared not fixed
15450 mmap shared fixed at somewhere currently unmapped
15451 mmap shared fixed at somewhere already mapped
15452 For private mappings, we should verify that changes cannot be read()
15453 back from the file, nor mmap's back from the file at a different
15454 address. (There have been systems where private was not correctly
15455 implemented like the infamous i386 svr4.0, and systems where the
15456 VM page cache was not coherent with the file system buffer cache
15457 like early versions of FreeBSD and possibly contemporary NetBSD.)
15458 For shared mappings, we should conversely verify that changes get
15459 propagated back to all the places they're supposed to be.
15461 Grep wants private fixed already mapped.
15462 The main things grep needs to know about mmap are:
15463 * does it exist and is it safe to write into the mmap'd area
15464 * how to use it (BSD variants) */
15466 #include <fcntl.h>
15467 #include <sys/mman.h>
15469 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15470 char *malloc ();
15471 #endif
15473 /* This mess was copied from the GNU getpagesize.h. */
15474 #ifndef HAVE_GETPAGESIZE
15475 # ifdef _SC_PAGESIZE
15476 # define getpagesize() sysconf(_SC_PAGESIZE)
15477 # else /* no _SC_PAGESIZE */
15478 # ifdef HAVE_SYS_PARAM_H
15479 # include <sys/param.h>
15480 # ifdef EXEC_PAGESIZE
15481 # define getpagesize() EXEC_PAGESIZE
15482 # else /* no EXEC_PAGESIZE */
15483 # ifdef NBPG
15484 # define getpagesize() NBPG * CLSIZE
15485 # ifndef CLSIZE
15486 # define CLSIZE 1
15487 # endif /* no CLSIZE */
15488 # else /* no NBPG */
15489 # ifdef NBPC
15490 # define getpagesize() NBPC
15491 # else /* no NBPC */
15492 # ifdef PAGESIZE
15493 # define getpagesize() PAGESIZE
15494 # endif /* PAGESIZE */
15495 # endif /* no NBPC */
15496 # endif /* no NBPG */
15497 # endif /* no EXEC_PAGESIZE */
15498 # else /* no HAVE_SYS_PARAM_H */
15499 # define getpagesize() 8192 /* punt totally */
15500 # endif /* no HAVE_SYS_PARAM_H */
15501 # endif /* no _SC_PAGESIZE */
15503 #endif /* no HAVE_GETPAGESIZE */
15506 main ()
15508 char *data, *data2, *data3;
15509 const char *cdata2;
15510 int i, pagesize;
15511 int fd, fd2;
15513 pagesize = getpagesize ();
15515 /* First, make a file with some known garbage in it. */
15516 data = (char *) malloc (pagesize);
15517 if (!data)
15518 return 1;
15519 for (i = 0; i < pagesize; ++i)
15520 *(data + i) = rand ();
15521 umask (0);
15522 fd = creat ("conftest.mmap", 0600);
15523 if (fd < 0)
15524 return 2;
15525 if (write (fd, data, pagesize) != pagesize)
15526 return 3;
15527 close (fd);
15529 /* Next, check that the tail of a page is zero-filled. File must have
15530 non-zero length, otherwise we risk SIGBUS for entire page. */
15531 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15532 if (fd2 < 0)
15533 return 4;
15534 cdata2 = "";
15535 if (write (fd2, cdata2, 1) != 1)
15536 return 5;
15537 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15538 if (data2 == MAP_FAILED)
15539 return 6;
15540 for (i = 0; i < pagesize; ++i)
15541 if (*(data2 + i))
15542 return 7;
15543 close (fd2);
15544 if (munmap (data2, pagesize))
15545 return 8;
15547 /* Next, try to mmap the file at a fixed address which already has
15548 something else allocated at it. If we can, also make sure that
15549 we see the same garbage. */
15550 fd = open ("conftest.mmap", O_RDWR);
15551 if (fd < 0)
15552 return 9;
15553 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15554 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15555 return 10;
15556 for (i = 0; i < pagesize; ++i)
15557 if (*(data + i) != *(data2 + i))
15558 return 11;
15560 /* Finally, make sure that changes to the mapped area do not
15561 percolate back to the file as seen by read(). (This is a bug on
15562 some variants of i386 svr4.0.) */
15563 for (i = 0; i < pagesize; ++i)
15564 *(data2 + i) = *(data2 + i) + 1;
15565 data3 = (char *) malloc (pagesize);
15566 if (!data3)
15567 return 12;
15568 if (read (fd, data3, pagesize) != pagesize)
15569 return 13;
15570 for (i = 0; i < pagesize; ++i)
15571 if (*(data + i) != *(data3 + i))
15572 return 14;
15573 close (fd);
15574 return 0;
15576 _ACEOF
15577 if ac_fn_c_try_run "$LINENO"; then :
15578 ac_cv_func_mmap_fixed_mapped=yes
15579 else
15580 ac_cv_func_mmap_fixed_mapped=no
15582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15583 conftest.$ac_objext conftest.beam conftest.$ac_ext
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15588 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15589 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15591 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15594 rm -f conftest.mmap conftest.txt
15597 esac
15599 # If AtomicWord != Atomic32, we need to define two versions of all the
15600 # atomicops functions. If they're the same, we want to define only one.
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if int32_t is the same type as intptr_t" >&5
15602 $as_echo_n "checking if int32_t is the same type as intptr_t... " >&6; }
15603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15604 /* end confdefs.h. */
15605 #include <stdint.h>
15607 main ()
15609 int32_t v1 = 0; intptr_t v2 = 0; return (&v1 - &v2)
15611 return 0;
15613 _ACEOF
15614 if ac_fn_c_try_compile "$LINENO"; then :
15616 $as_echo "#define INT32_EQUALS_INTPTR 1" >>confdefs.h
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15619 $as_echo "yes" >&6; }
15620 else
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15622 $as_echo "no" >&6; }
15624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626 # We want to access the "PC" (Program Counter) register from a struct
15627 # ucontext. Every system has its own way of doing that. We try all the
15628 # possibilities we know about. Note REG_PC should come first (REG_RIP
15629 # is also defined on solaris, but does the wrong thing). But don't
15630 # bother if we're not doing cpu-profiling.
15631 # [*] means that we've not actually tested one of these systems
15632 if test "$enable_cpu_profiler" = yes; then
15633 for ac_header in ucontext.h
15634 do :
15635 ac_fn_c_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
15636 if test "x$ac_cv_header_ucontext_h" = x""yes; then :
15637 cat >>confdefs.h <<_ACEOF
15638 #define HAVE_UCONTEXT_H 1
15639 _ACEOF
15643 done
15645 # Redhat 7 has <sys/ucontext.h>, but it barfs if we #include it directly
15646 # (this was fixed in later redhats). <ucontext.h> works fine, so use that.
15647 if grep "Red Hat Linux release 7" /etc/redhat-release >/dev/null 2>&1; then
15649 $as_echo "#define HAVE_SYS_UCONTEXT_H 0" >>confdefs.h
15651 ac_cv_header_sys_ucontext_h=no
15652 else
15653 for ac_header in sys/ucontext.h
15654 do :
15655 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
15656 if test "x$ac_cv_header_sys_ucontext_h" = x""yes; then :
15657 cat >>confdefs.h <<_ACEOF
15658 #define HAVE_SYS_UCONTEXT_H 1
15659 _ACEOF
15663 done
15664 # ucontext on OS X 10.6 (at least)
15666 for ac_header in cygwin/signal.h
15667 do :
15668 ac_fn_c_check_header_mongrel "$LINENO" "cygwin/signal.h" "ac_cv_header_cygwin_signal_h" "$ac_includes_default"
15669 if test "x$ac_cv_header_cygwin_signal_h" = x""yes; then :
15670 cat >>confdefs.h <<_ACEOF
15671 #define HAVE_CYGWIN_SIGNAL_H 1
15672 _ACEOF
15676 done
15677 # ucontext on cywgin
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
15679 $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
15680 pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
15681 pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
15682 pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
15683 pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
15684 pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
15685 pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
15686 pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm arch 5)
15687 pc_fields="$pc_fields uc_mcontext.gp_regs[PT_NIP]" # Suse SLES 11 (ppc64)
15688 pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
15689 pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
15690 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
15691 pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
15692 pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
15693 pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
15694 pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
15695 pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
15696 pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
15697 pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
15698 pc_field_found=false
15699 for pc_field in $pc_fields; do
15700 if ! $pc_field_found; then
15701 # Prefer sys/ucontext.h to ucontext.h, for OS X's sake.
15702 if test "x$ac_cv_header_cygwin_signal_h" = xyes; then
15703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15704 /* end confdefs.h. */
15705 #define _GNU_SOURCE 1
15706 #include <cygwin/signal.h>
15708 main ()
15710 ucontext_t u; return u.$pc_field == 0;
15712 return 0;
15714 _ACEOF
15715 if ac_fn_c_try_compile "$LINENO"; then :
15717 cat >>confdefs.h <<_ACEOF
15718 #define PC_FROM_UCONTEXT $pc_field
15719 _ACEOF
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
15722 $as_echo "$pc_field" >&6; }
15723 pc_field_found=true
15725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15726 elif test "x$ac_cv_header_sys_ucontext_h" = xyes; then
15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h. */
15729 #define _GNU_SOURCE 1
15730 #include <sys/ucontext.h>
15732 main ()
15734 ucontext_t u; return u.$pc_field == 0;
15736 return 0;
15738 _ACEOF
15739 if ac_fn_c_try_compile "$LINENO"; then :
15741 cat >>confdefs.h <<_ACEOF
15742 #define PC_FROM_UCONTEXT $pc_field
15743 _ACEOF
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
15746 $as_echo "$pc_field" >&6; }
15747 pc_field_found=true
15749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15750 elif test "x$ac_cv_header_ucontext_h" = xyes; then
15751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h. */
15753 #define _GNU_SOURCE 1
15754 #include <ucontext.h>
15756 main ()
15758 ucontext_t u; return u.$pc_field == 0;
15760 return 0;
15762 _ACEOF
15763 if ac_fn_c_try_compile "$LINENO"; then :
15765 cat >>confdefs.h <<_ACEOF
15766 #define PC_FROM_UCONTEXT $pc_field
15767 _ACEOF
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
15770 $as_echo "$pc_field" >&6; }
15771 pc_field_found=true
15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774 else # hope some standard header gives it to us
15775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776 /* end confdefs.h. */
15779 main ()
15781 ucontext_t u; return u.$pc_field == 0;
15783 return 0;
15785 _ACEOF
15786 if ac_fn_c_try_compile "$LINENO"; then :
15788 cat >>confdefs.h <<_ACEOF
15789 #define PC_FROM_UCONTEXT $pc_field
15790 _ACEOF
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
15793 $as_echo "$pc_field" >&6; }
15794 pc_field_found=true
15796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15799 done
15800 if ! $pc_field_found; then
15801 pc_fields=" sc_eip" # OpenBSD (i386)
15802 pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
15803 for pc_field in $pc_fields; do
15804 if ! $pc_field_found; then
15805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15806 /* end confdefs.h. */
15807 #include <signal.h>
15809 main ()
15811 ucontext_t u; return u.$pc_field == 0;
15813 return 0;
15815 _ACEOF
15816 if ac_fn_c_try_compile "$LINENO"; then :
15818 cat >>confdefs.h <<_ACEOF
15819 #define PC_FROM_UCONTEXT $pc_field
15820 _ACEOF
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
15823 $as_echo "$pc_field" >&6; }
15824 pc_field_found=true
15826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15828 done
15830 if ! $pc_field_found; then
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not try to compile libprofiler..." >&5
15832 $as_echo "$as_me: WARNING: Could not find the PC. Will not try to compile libprofiler..." >&2;};
15833 enable_cpu_profiler=no
15837 # Some tests test the behavior of .so files, and only make sense for dynamic.
15838 if test "$enable_static" = yes; then
15839 ENABLE_STATIC_TRUE=
15840 ENABLE_STATIC_FALSE='#'
15841 else
15842 ENABLE_STATIC_TRUE='#'
15843 ENABLE_STATIC_FALSE=
15847 # We want to link in libunwind if it exists
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
15849 $as_echo_n "checking for backtrace in -lunwind... " >&6; }
15850 if test "${ac_cv_lib_unwind_backtrace+set}" = set; then :
15851 $as_echo_n "(cached) " >&6
15852 else
15853 ac_check_lib_save_LIBS=$LIBS
15854 LIBS="-lunwind $LIBS"
15855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h. */
15858 /* Override any GCC internal prototype to avoid an error.
15859 Use char because int might match the return type of a GCC
15860 builtin and then its argument prototype would still apply. */
15861 #ifdef __cplusplus
15862 extern "C"
15863 #endif
15864 char backtrace ();
15866 main ()
15868 return backtrace ();
15870 return 0;
15872 _ACEOF
15873 if ac_fn_c_try_link "$LINENO"; then :
15874 ac_cv_lib_unwind_backtrace=yes
15875 else
15876 ac_cv_lib_unwind_backtrace=no
15878 rm -f core conftest.err conftest.$ac_objext \
15879 conftest$ac_exeext conftest.$ac_ext
15880 LIBS=$ac_check_lib_save_LIBS
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
15883 $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
15884 if test "x$ac_cv_lib_unwind_backtrace" = x""yes; then :
15885 UNWIND_LIBS=-lunwind
15886 else
15887 UNWIND_LIBS=
15892 # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
15893 # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
15894 # Check whether --enable-frame_pointers was given.
15895 if test "${enable_frame_pointers+set}" = set; then :
15896 enableval=$enable_frame_pointers;
15897 else
15898 enable_frame_pointers=no
15901 if test "$enable_frame_pointers" = yes; then
15902 ENABLE_FRAME_POINTERS_TRUE=
15903 ENABLE_FRAME_POINTERS_FALSE='#'
15904 else
15905 ENABLE_FRAME_POINTERS_TRUE='#'
15906 ENABLE_FRAME_POINTERS_FALSE=
15910 # Some x86_64 systems do not insert frame pointers by default (all
15911 # i386 systems that I know of, do. I don't know about non-x86 chips).
15912 # We want to see if the current system is one of those.
15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15917 main ()
15919 return __x86_64__ == 1 ? 0 : 1
15921 return 0;
15923 _ACEOF
15924 if ac_fn_c_try_compile "$LINENO"; then :
15925 is_x86_64=yes
15926 else
15927 is_x86_64=no
15929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930 OLD_CFLAGS="$CFLAGS"
15931 CFLAGS="$CFLAGS -S -O2 -o fp.s"
15932 # This test will always fail because we don't name our output file properly.
15933 # We do our own determination of success/failure in the grep, below.
15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15935 /* end confdefs.h. */
15936 int f(int x) {return x;}
15938 main ()
15940 return f(0);
15942 return 0;
15944 _ACEOF
15945 if ac_fn_c_try_compile "$LINENO"; then :
15947 else
15950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15951 if test "$is_x86_64" = yes && ! grep 'mov.*rsp.*rbp' fp.s >/dev/null 2>&1; then
15952 X86_64_AND_NO_FP_BY_DEFAULT_TRUE=
15953 X86_64_AND_NO_FP_BY_DEFAULT_FALSE='#'
15954 else
15955 X86_64_AND_NO_FP_BY_DEFAULT_TRUE='#'
15956 X86_64_AND_NO_FP_BY_DEFAULT_FALSE=
15959 rm fp.s
15960 CFLAGS="$OLD_CFLAGS"
15962 # We need to know if we're i386 so we can turn on -mmms, which is not
15963 # on by default for i386 (it is for x86_64).
15964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15965 /* end confdefs.h. */
15968 main ()
15970 return __i386__ == 1 ? 0 : 1
15972 return 0;
15974 _ACEOF
15975 if ac_fn_c_try_compile "$LINENO"; then :
15976 is_i386=yes
15977 else
15978 is_i386=no
15980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15981 if test "$is_i386" = yes; then
15982 I386_TRUE=
15983 I386_FALSE='#'
15984 else
15985 I386_TRUE='#'
15986 I386_FALSE=
15990 # See if the compiler supports -Wno-unused-result.
15991 # Newer ubuntu's turn on -D_FORTIFY_SOURCE=2, enabling
15992 # __attribute__((warn_unused_result)) for things like write(),
15993 # which we don't care about.
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler supports -Wno-unused-result" >&5
15995 $as_echo_n "checking if the compiler supports -Wno-unused-result... " >&6; }
15996 if test "${perftools_cv_w_no_unused_result+set}" = set; then :
15997 $as_echo_n "(cached) " >&6
15998 else
15999 OLD_CFLAGS="$CFLAGS"
16000 CFLAGS="$CFLAGS -Wno-error -Wno-unused-result"
16001 # gcc doesn't warn about unknown flags unless it's
16002 # also warning for some other purpose, hence the
16003 # divide-by-0. (We use -Wno-error to make sure the
16004 # divide-by-0 doesn't cause this test to fail!)
16005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16006 /* end confdefs.h. */
16009 main ()
16011 return 1/0
16013 return 0;
16015 _ACEOF
16016 if ac_fn_c_try_compile "$LINENO"; then :
16017 perftools_cv_w_no_unused_result=yes
16018 else
16019 perftools_cv_w_no_unused_result=no
16021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16022 CFLAGS="$OLD_CFLAGS"
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perftools_cv_w_no_unused_result" >&5
16025 $as_echo "$perftools_cv_w_no_unused_result" >&6; }
16026 if test "$perftools_cv_w_no_unused_result" = yes; then
16027 HAVE_W_NO_UNUSED_RESULT_TRUE=
16028 HAVE_W_NO_UNUSED_RESULT_FALSE='#'
16029 else
16030 HAVE_W_NO_UNUSED_RESULT_TRUE='#'
16031 HAVE_W_NO_UNUSED_RESULT_FALSE=
16035 # Defines PRIuS
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf format code for printing a size_t and ssize_t" >&5
16037 $as_echo_n "checking printf format code for printing a size_t and ssize_t... " >&6; }
16038 if test "${ac_cv_formatting_prius_prefix+set}" = set; then :
16039 $as_echo_n "(cached) " >&6
16040 else
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16043 #include <stddef.h>
16045 main ()
16047 unsigned int v1 = 0; size_t v2 = 0; return (&v1 - &v2)
16049 return 0;
16051 _ACEOF
16052 if ac_fn_c_try_compile "$LINENO"; then :
16053 ac_cv_formatting_prius_prefix=; ac_cv_prius_defined=1
16055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16058 #include <stddef.h>
16060 main ()
16062 unsigned long v1 = 0; size_t v2 = 0; return (&v1 - &v2)
16064 return 0;
16066 _ACEOF
16067 if ac_fn_c_try_compile "$LINENO"; then :
16068 ac_cv_formatting_prius_prefix=l; ac_cv_prius_defined=1
16070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h. */
16073 #include <stddef.h>
16075 main ()
16077 unsigned long long v1 = 0; size_t v2 = 0; return (&v1 - &v2)
16079 return 0;
16081 _ACEOF
16082 if ac_fn_c_try_compile "$LINENO"; then :
16083 ac_cv_formatting_prius_prefix=ll; ac_cv_prius_defined=1
16086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_formatting_prius_prefix" >&5
16089 $as_echo "$ac_cv_formatting_prius_prefix" >&6; }
16090 if test -z "$ac_cv_prius_defined"; then
16091 ac_cv_formatting_prius_prefix=z;
16094 cat >>confdefs.h <<_ACEOF
16095 #define PRIuS "${ac_cv_formatting_prius_prefix}u"
16096 _ACEOF
16099 cat >>confdefs.h <<_ACEOF
16100 #define PRIxS "${ac_cv_formatting_prius_prefix}x"
16101 _ACEOF
16104 cat >>confdefs.h <<_ACEOF
16105 #define PRIdS "${ac_cv_formatting_prius_prefix}d"
16106 _ACEOF
16110 # Also make sure we get standard PRI... definitions, even with glibc.
16111 # We have to use AH_VERBATIM because we need the #ifdef guard (gcc buglet)
16114 # Check if __builtin_stack_pointer() is available (for elfcore.h)
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_stack_pointer()" >&5
16116 $as_echo_n "checking for __builtin_stack_pointer()... " >&6; }
16117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16118 /* end confdefs.h. */
16121 main ()
16123 void *sp = __builtin_stack_pointer()
16125 return 0;
16127 _ACEOF
16128 if ac_fn_c_try_link "$LINENO"; then :
16130 $as_echo "#define HAVE_BUILTIN_STACK_POINTER 1" >>confdefs.h
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16133 $as_echo "yes" >&6; }
16134 else
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16136 $as_echo "no" >&6; }
16138 rm -f core conftest.err conftest.$ac_objext \
16139 conftest$ac_exeext conftest.$ac_ext
16141 # Check if __environ is available (for GetenvBeforeMain)
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __environ" >&5
16143 $as_echo_n "checking for __environ... " >&6; }
16144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16145 /* end confdefs.h. */
16146 #include <unistd.h>
16148 main ()
16150 char **env = __environ
16152 return 0;
16154 _ACEOF
16155 if ac_fn_c_try_link "$LINENO"; then :
16157 $as_echo "#define HAVE___ENVIRON 1" >>confdefs.h
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16160 $as_echo "yes" >&6; }
16161 else
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16163 $as_echo "no" >&6; }
16165 rm -f core conftest.err conftest.$ac_objext \
16166 conftest$ac_exeext conftest.$ac_ext
16168 # If we support __thread, that can speed up tcmalloc a bit.
16169 # Note, however, that our code tickles a bug in gcc < 4.1.2
16170 # involving TLS and -fPIC (which our libraries will use) on x86:
16171 # http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
16173 $as_echo_n "checking for __thread... " >&6; }
16174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175 /* end confdefs.h. */
16176 #if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) && ((__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 1) || (__GNUC__ == 4 && __GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ < 2))
16177 #error gcc has this bug: http://gcc.gnu.org/ml/gcc-bugs/2006-09/msg02275.html
16178 #endif
16180 main ()
16182 static __thread int p = 0
16184 return 0;
16186 _ACEOF
16187 if ac_fn_c_try_link "$LINENO"; then :
16189 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16192 $as_echo "yes" >&6; }
16193 else
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16195 $as_echo "no" >&6; }
16197 rm -f core conftest.err conftest.$ac_objext \
16198 conftest$ac_exeext conftest.$ac_ext
16200 # glibc's __malloc_hook/etc were declared volatile starting in glibc 2.14
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __malloc_hook is declared volatile" >&5
16202 $as_echo_n "checking if __malloc_hook is declared volatile... " >&6; }
16203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16204 /* end confdefs.h. */
16205 #include <malloc.h>
16206 void* (* volatile __malloc_hook)(size_t, const void*) = 0;
16208 main ()
16212 return 0;
16214 _ACEOF
16215 if ac_fn_c_try_compile "$LINENO"; then :
16217 $as_echo "#define MALLOC_HOOK_MAYBE_VOLATILE volatile" >>confdefs.h
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16220 $as_echo "yes" >&6; }
16221 else
16222 $as_echo "#define MALLOC_HOOK_MAYBE_VOLATILE /**/" >>confdefs.h
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16225 $as_echo "no" >&6; }
16227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229 # Nanosleep requires extra libraries on some architectures (solaris).
16230 # This sets NANOSLEEP_LIBS. nanosleep doesn't exist on mingw, which
16231 # is fine for us because we don't compile libspinlock, which uses it.
16232 if test "$need_nanosleep" = yes; then
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nanosleep requires any libraries" >&5
16234 $as_echo_n "checking if nanosleep requires any libraries... " >&6; }
16236 ac_ext=c
16237 ac_cpp='$CPP $CPPFLAGS'
16238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16242 acx_nanosleep_ok="no"
16243 NANOSLEEP_LIBS=
16244 # For most folks, this should just work
16245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16246 /* end confdefs.h. */
16247 #include <time.h>
16249 main ()
16251 static struct timespec ts; nanosleep(&ts, NULL);
16253 return 0;
16255 _ACEOF
16256 if ac_fn_c_try_link "$LINENO"; then :
16257 acx_nanosleep_ok=yes
16259 rm -f core conftest.err conftest.$ac_objext \
16260 conftest$ac_exeext conftest.$ac_ext
16261 # For solaris, we may need -lrt
16262 if test "x$acx_nanosleep_ok" != "xyes"; then
16263 OLD_LIBS="$LIBS"
16264 LIBS="-lrt $LIBS"
16265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 /* end confdefs.h. */
16267 #include <time.h>
16269 main ()
16271 static struct timespec ts; nanosleep(&ts, NULL);
16273 return 0;
16275 _ACEOF
16276 if ac_fn_c_try_link "$LINENO"; then :
16277 acx_nanosleep_ok=yes
16279 rm -f core conftest.err conftest.$ac_objext \
16280 conftest$ac_exeext conftest.$ac_ext
16281 if test "x$acx_nanosleep_ok" = "xyes"; then
16282 NANOSLEEP_LIBS="-lrt"
16284 LIBS="$OLD_LIBS"
16286 if test "x$acx_nanosleep_ok" != "xyes"; then
16287 as_fn_error "cannot find the nanosleep function" "$LINENO" 5
16288 else
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${NANOSLEEP_LIBS:-no}" >&5
16290 $as_echo "${NANOSLEEP_LIBS:-no}" >&6; }
16292 ac_ext=c
16293 ac_cpp='$CPP $CPPFLAGS'
16294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16302 # Solaris 10 6/06 has a bug where /usr/sfw/lib/libstdc++.la is empty.
16303 # If so, we replace it with our own version.
16304 LIBSTDCXX_LA_LINKER_FLAG=
16305 if test -f /usr/sfw/lib/libstdc++.la && ! test -s /usr/sfw/lib/libstdc++.la
16306 then
16307 LIBSTDCXX_LA_LINKER_FLAG='-L$(top_srcdir)/src/solaris'
16311 # We also need to check if the kernel supports __thread, which requires uname()
16312 ac_fn_c_check_decl "$LINENO" "uname" "ac_cv_have_decl_uname" "#include <sys/utsname.h>
16314 if test "x$ac_cv_have_decl_uname" = x""yes; then :
16315 ac_have_decl=1
16316 else
16317 ac_have_decl=0
16320 cat >>confdefs.h <<_ACEOF
16321 #define HAVE_DECL_UNAME $ac_have_decl
16322 _ACEOF
16325 # In fact, a lot of the code in this directory depends on pthreads
16329 ac_ext=c
16330 ac_cpp='$CPP $CPPFLAGS'
16331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16335 acx_pthread_ok=no
16337 # We used to check for pthread.h first, but this fails if pthread.h
16338 # requires special compiler flags (e.g. on True64 or Sequent).
16339 # It gets checked for in the link test anyway.
16341 # First of all, check if the user has set any of the PTHREAD_LIBS,
16342 # etcetera environment variables, and if threads linking works using
16343 # them:
16344 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16345 save_CFLAGS="$CFLAGS"
16346 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16347 save_LIBS="$LIBS"
16348 LIBS="$PTHREAD_LIBS $LIBS"
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16350 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16352 /* end confdefs.h. */
16354 /* Override any GCC internal prototype to avoid an error.
16355 Use char because int might match the return type of a GCC
16356 builtin and then its argument prototype would still apply. */
16357 #ifdef __cplusplus
16358 extern "C"
16359 #endif
16360 char pthread_join ();
16362 main ()
16364 return pthread_join ();
16366 return 0;
16368 _ACEOF
16369 if ac_fn_c_try_link "$LINENO"; then :
16370 acx_pthread_ok=yes
16372 rm -f core conftest.err conftest.$ac_objext \
16373 conftest$ac_exeext conftest.$ac_ext
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16375 $as_echo "$acx_pthread_ok" >&6; }
16376 if test x"$acx_pthread_ok" = xno; then
16377 PTHREAD_LIBS=""
16378 PTHREAD_CFLAGS=""
16380 LIBS="$save_LIBS"
16381 CFLAGS="$save_CFLAGS"
16384 # We must check for the threads library under a number of different
16385 # names; the ordering is very important because some systems
16386 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16387 # libraries is broken (non-POSIX).
16389 # Create a list of thread flags to try. Items starting with a "-" are
16390 # C compiler flags, and other items are library names, except for "none"
16391 # which indicates that we try without any flags at all, and "pthread-config"
16392 # which is a program returning the flags for the Pth emulation library.
16394 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16396 # The ordering *is* (sometimes) important. Some notes on the
16397 # individual items follow:
16399 # pthreads: AIX (must check this before -lpthread)
16400 # none: in case threads are in libc; should be tried before -Kthread and
16401 # other compiler flags to prevent continual compiler warnings
16402 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16403 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16404 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16405 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16406 # -pthreads: Solaris/gcc
16407 # -mthreads: Mingw32/gcc, Lynx/gcc
16408 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16409 # doesn't hurt to check since this sometimes defines pthreads too;
16410 # also defines -D_REENTRANT)
16411 # ... -mt is also the pthreads flag for HP/aCC
16412 # pthread: Linux, etcetera
16413 # --thread-safe: KAI C++
16414 # pthread-config: use pthread-config program (for GNU Pth library)
16416 case "${host_cpu}-${host_os}" in
16417 *solaris*)
16419 # On Solaris (at least, for some versions), libc contains stubbed
16420 # (non-functional) versions of the pthreads routines, so link-based
16421 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16422 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16423 # a function called by this macro, so we could check for that, but
16424 # who knows whether they'll stub that too in a future libc.) So,
16425 # we'll just look for -pthreads and -lpthread first:
16427 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16429 esac
16431 if test x"$acx_pthread_ok" = xno; then
16432 for flag in $acx_pthread_flags; do
16434 case $flag in
16435 none)
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16437 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16442 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16443 PTHREAD_CFLAGS="$flag"
16446 pthread-config)
16447 # Extract the first word of "pthread-config", so it can be a program name with args.
16448 set dummy pthread-config; ac_word=$2
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16450 $as_echo_n "checking for $ac_word... " >&6; }
16451 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
16452 $as_echo_n "(cached) " >&6
16453 else
16454 if test -n "$acx_pthread_config"; then
16455 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16456 else
16457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16458 for as_dir in $PATH
16460 IFS=$as_save_IFS
16461 test -z "$as_dir" && as_dir=.
16462 for ac_exec_ext in '' $ac_executable_extensions; do
16463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16464 ac_cv_prog_acx_pthread_config="yes"
16465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16466 break 2
16468 done
16469 done
16470 IFS=$as_save_IFS
16472 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16475 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16476 if test -n "$acx_pthread_config"; then
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
16478 $as_echo "$acx_pthread_config" >&6; }
16479 else
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16481 $as_echo "no" >&6; }
16485 if test x"$acx_pthread_config" = xno; then continue; fi
16486 PTHREAD_CFLAGS="`pthread-config --cflags`"
16487 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16492 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16493 PTHREAD_LIBS="-l$flag"
16495 esac
16497 save_LIBS="$LIBS"
16498 save_CFLAGS="$CFLAGS"
16499 LIBS="$PTHREAD_LIBS $LIBS"
16500 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16502 # Check for various functions. We must include pthread.h,
16503 # since some functions may be macros. (On the Sequent, we
16504 # need a special flag -Kthread to make this header compile.)
16505 # We check for pthread_join because it is in -lpthread on IRIX
16506 # while pthread_create is in libc. We check for pthread_attr_init
16507 # due to DEC craziness with -lpthreads. We check for
16508 # pthread_cleanup_push because it is one of the few pthread
16509 # functions on Solaris that doesn't have a non-functional libc stub.
16510 # We try pthread_create on general principles.
16511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513 #include <pthread.h>
16515 main ()
16517 pthread_t th; pthread_join(th, 0);
16518 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16519 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16521 return 0;
16523 _ACEOF
16524 if ac_fn_c_try_link "$LINENO"; then :
16525 acx_pthread_ok=yes
16527 rm -f core conftest.err conftest.$ac_objext \
16528 conftest$ac_exeext conftest.$ac_ext
16530 LIBS="$save_LIBS"
16531 CFLAGS="$save_CFLAGS"
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
16534 $as_echo "$acx_pthread_ok" >&6; }
16535 if test "x$acx_pthread_ok" = xyes; then
16536 break;
16539 PTHREAD_LIBS=""
16540 PTHREAD_CFLAGS=""
16541 done
16544 # Various other checks:
16545 if test "x$acx_pthread_ok" = xyes; then
16546 save_LIBS="$LIBS"
16547 LIBS="$PTHREAD_LIBS $LIBS"
16548 save_CFLAGS="$CFLAGS"
16549 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16551 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16553 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16554 attr_name=unknown
16555 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16557 /* end confdefs.h. */
16558 #include <pthread.h>
16560 main ()
16562 int attr=$attr; return attr;
16564 return 0;
16566 _ACEOF
16567 if ac_fn_c_try_link "$LINENO"; then :
16568 attr_name=$attr; break
16570 rm -f core conftest.err conftest.$ac_objext \
16571 conftest$ac_exeext conftest.$ac_ext
16572 done
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16574 $as_echo "$attr_name" >&6; }
16575 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16577 cat >>confdefs.h <<_ACEOF
16578 #define PTHREAD_CREATE_JOINABLE $attr_name
16579 _ACEOF
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16584 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16585 flag=no
16586 case "${host_cpu}-${host_os}" in
16587 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16588 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16589 esac
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
16591 $as_echo "${flag}" >&6; }
16592 if test "x$flag" != xno; then
16593 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16596 LIBS="$save_LIBS"
16597 CFLAGS="$save_CFLAGS"
16598 # More AIX lossage: must compile with xlc_r or cc_r
16599 if test x"$GCC" != xyes; then
16600 for ac_prog in xlc_r cc_r
16602 # Extract the first word of "$ac_prog", so it can be a program name with args.
16603 set dummy $ac_prog; ac_word=$2
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16605 $as_echo_n "checking for $ac_word... " >&6; }
16606 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
16607 $as_echo_n "(cached) " >&6
16608 else
16609 if test -n "$PTHREAD_CC"; then
16610 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16611 else
16612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16613 for as_dir in $PATH
16615 IFS=$as_save_IFS
16616 test -z "$as_dir" && as_dir=.
16617 for ac_exec_ext in '' $ac_executable_extensions; do
16618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16619 ac_cv_prog_PTHREAD_CC="$ac_prog"
16620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16621 break 2
16623 done
16624 done
16625 IFS=$as_save_IFS
16629 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16630 if test -n "$PTHREAD_CC"; then
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16632 $as_echo "$PTHREAD_CC" >&6; }
16633 else
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16635 $as_echo "no" >&6; }
16639 test -n "$PTHREAD_CC" && break
16640 done
16641 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16643 else
16644 PTHREAD_CC=$CC
16647 # The next part tries to detect GCC inconsistency with -shared on some
16648 # architectures and systems. The problem is that in certain
16649 # configurations, when -shared is specified, GCC "forgets" to
16650 # internally use various flags which are still necessary.
16653 # Prepare the flags
16655 save_CFLAGS="$CFLAGS"
16656 save_LIBS="$LIBS"
16657 save_CC="$CC"
16659 # Try with the flags determined by the earlier checks.
16661 # -Wl,-z,defs forces link-time symbol resolution, so that the
16662 # linking checks with -shared actually have any value
16664 # FIXME: -fPIC is required for -shared on many architectures,
16665 # so we specify it here, but the right way would probably be to
16666 # properly detect whether it is actually required.
16667 CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
16668 LIBS="$PTHREAD_LIBS $LIBS"
16669 CC="$PTHREAD_CC"
16671 # In order not to create several levels of indentation, we test
16672 # the value of "$done" until we find the cure or run out of ideas.
16673 done="no"
16675 # First, make sure the CFLAGS we added are actually accepted by our
16676 # compiler. If not (and OS X's ld, for instance, does not accept -z),
16677 # then we can't do this test.
16678 if test x"$done" = xno; then
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
16680 $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682 /* end confdefs.h. */
16685 main ()
16689 return 0;
16691 _ACEOF
16692 if ac_fn_c_try_link "$LINENO"; then :
16694 else
16695 done=yes
16697 rm -f core conftest.err conftest.$ac_objext \
16698 conftest$ac_exeext conftest.$ac_ext
16700 if test "x$done" = xyes ; then
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16702 $as_echo "no" >&6; }
16703 else
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16705 $as_echo "yes" >&6; }
16709 if test x"$done" = xno; then
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
16711 $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16713 /* end confdefs.h. */
16714 #include <pthread.h>
16716 main ()
16718 pthread_t th; pthread_join(th, 0);
16719 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16720 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16722 return 0;
16724 _ACEOF
16725 if ac_fn_c_try_link "$LINENO"; then :
16726 done=yes
16728 rm -f core conftest.err conftest.$ac_objext \
16729 conftest$ac_exeext conftest.$ac_ext
16731 if test "x$done" = xyes; then
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16733 $as_echo "yes" >&6; }
16734 else
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16736 $as_echo "no" >&6; }
16741 # Linux gcc on some architectures such as mips/mipsel forgets
16742 # about -lpthread
16744 if test x"$done" = xno; then
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
16746 $as_echo_n "checking whether -lpthread fixes that... " >&6; }
16747 LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749 /* end confdefs.h. */
16750 #include <pthread.h>
16752 main ()
16754 pthread_t th; pthread_join(th, 0);
16755 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16756 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16758 return 0;
16760 _ACEOF
16761 if ac_fn_c_try_link "$LINENO"; then :
16762 done=yes
16764 rm -f core conftest.err conftest.$ac_objext \
16765 conftest$ac_exeext conftest.$ac_ext
16767 if test "x$done" = xyes; then
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16769 $as_echo "yes" >&6; }
16770 PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
16771 else
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16773 $as_echo "no" >&6; }
16777 # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
16779 if test x"$done" = xno; then
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
16781 $as_echo_n "checking whether -lc_r fixes that... " >&6; }
16782 LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
16783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16784 /* end confdefs.h. */
16785 #include <pthread.h>
16787 main ()
16789 pthread_t th; pthread_join(th, 0);
16790 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16791 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16793 return 0;
16795 _ACEOF
16796 if ac_fn_c_try_link "$LINENO"; then :
16797 done=yes
16799 rm -f core conftest.err conftest.$ac_objext \
16800 conftest$ac_exeext conftest.$ac_ext
16802 if test "x$done" = xyes; then
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16804 $as_echo "yes" >&6; }
16805 PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
16806 else
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16808 $as_echo "no" >&6; }
16811 if test x"$done" = xno; then
16812 # OK, we have run out of ideas
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
16814 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
16816 # so it's not safe to assume that we may use pthreads
16817 acx_pthread_ok=no
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether what we have so far is sufficient with -nostdlib" >&5
16821 $as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; }
16822 CFLAGS="-nostdlib $CFLAGS"
16823 # we need c with nostdlib
16824 LIBS="$LIBS -lc"
16825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16826 /* end confdefs.h. */
16827 #include <pthread.h>
16829 main ()
16831 pthread_t th; pthread_join(th, 0);
16832 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16833 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16835 return 0;
16837 _ACEOF
16838 if ac_fn_c_try_link "$LINENO"; then :
16839 done=yes
16840 else
16841 done=no
16843 rm -f core conftest.err conftest.$ac_objext \
16844 conftest$ac_exeext conftest.$ac_ext
16846 if test "x$done" = xyes; then
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16848 $as_echo "yes" >&6; }
16849 else
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16851 $as_echo "no" >&6; }
16854 if test x"$done" = xno; then
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread saves the day" >&5
16856 $as_echo_n "checking whether -lpthread saves the day... " >&6; }
16857 LIBS="-lpthread $LIBS"
16858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16859 /* end confdefs.h. */
16860 #include <pthread.h>
16862 main ()
16864 pthread_t th; pthread_join(th, 0);
16865 pthread_attr_init(0); pthread_cleanup_push(0, 0);
16866 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16868 return 0;
16870 _ACEOF
16871 if ac_fn_c_try_link "$LINENO"; then :
16872 done=yes
16873 else
16874 done=no
16876 rm -f core conftest.err conftest.$ac_objext \
16877 conftest$ac_exeext conftest.$ac_ext
16879 if test "x$done" = xyes; then
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16881 $as_echo "yes" >&6; }
16882 PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
16883 else
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16885 $as_echo "no" >&6; }
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5
16887 $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;}
16891 CFLAGS="$save_CFLAGS"
16892 LIBS="$save_LIBS"
16893 CC="$save_CC"
16894 else
16895 PTHREAD_CC="$CC"
16902 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16903 if test x"$acx_pthread_ok" = xyes; then
16905 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16908 else
16909 acx_pthread_ok=no
16912 ac_ext=c
16913 ac_cpp='$CPP $CPPFLAGS'
16914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16920 # Find out what namespace 'normal' STL code lives in
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
16922 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
16923 if test "${ac_cv_cxx_namespaces+set}" = set; then :
16924 $as_echo_n "(cached) " >&6
16925 else
16927 ac_ext=cpp
16928 ac_cpp='$CXXCPP $CPPFLAGS'
16929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16934 /* end confdefs.h. */
16935 namespace Outer {
16936 namespace Inner { int i = 0; }}
16938 main ()
16940 using namespace Outer::Inner; return i;
16942 return 0;
16944 _ACEOF
16945 if ac_fn_cxx_try_compile "$LINENO"; then :
16946 ac_cv_cxx_namespaces=yes
16947 else
16948 ac_cv_cxx_namespaces=no
16950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16951 ac_ext=c
16952 ac_cpp='$CPP $CPPFLAGS'
16953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
16959 $as_echo "$ac_cv_cxx_namespaces" >&6; }
16960 if test "$ac_cv_cxx_namespaces" = yes; then
16962 $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
16966 $as_echo_n "checking what namespace STL code is in... " >&6; }
16967 if test "${ac_cv_cxx_stl_namespace+set}" = set; then :
16968 $as_echo_n "(cached) " >&6
16969 else
16972 ac_ext=cpp
16973 ac_cpp='$CXXCPP $CPPFLAGS'
16974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16979 /* end confdefs.h. */
16980 #include <vector>
16982 main ()
16984 vector<int> t; return 0;
16986 return 0;
16988 _ACEOF
16989 if ac_fn_cxx_try_compile "$LINENO"; then :
16990 ac_cv_cxx_stl_namespace=none
16992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16995 #include <vector>
16997 main ()
16999 std::vector<int> t; return 0;
17001 return 0;
17003 _ACEOF
17004 if ac_fn_cxx_try_compile "$LINENO"; then :
17005 ac_cv_cxx_stl_namespace=std
17007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17008 ac_ext=c
17009 ac_cpp='$CPP $CPPFLAGS'
17010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
17016 $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
17017 if test "$ac_cv_cxx_stl_namespace" = none; then
17019 $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
17022 if test "$ac_cv_cxx_stl_namespace" = std; then
17024 $as_echo "#define STL_NAMESPACE std" >>confdefs.h
17029 # Figure out where libc has program_invocation_name
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program_invocation_name" >&5
17031 $as_echo_n "checking for program_invocation_name... " >&6; }
17032 if test "${ac_cv_have_program_invocation_name+set}" = set; then :
17033 $as_echo_n "(cached) " >&6
17034 else
17035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h. */
17037 extern char* program_invocation_name;
17039 main ()
17041 return *program_invocation_name;
17043 return 0;
17045 _ACEOF
17046 if ac_fn_c_try_link "$LINENO"; then :
17047 ac_cv_have_program_invocation_name=yes
17048 else
17049 ac_cv_have_program_invocation_name=no
17051 rm -f core conftest.err conftest.$ac_objext \
17052 conftest$ac_exeext conftest.$ac_ext
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_program_invocation_name" >&5
17056 $as_echo "$ac_cv_have_program_invocation_name" >&6; }
17057 if test "$ac_cv_have_program_invocation_name" = "yes"; then
17059 $as_echo "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
17064 # Make the install prefix available, to figure out where to look for pprof
17065 ac_cv_install_prefix="$prefix";
17066 if test x"$ac_cv_install_prefix" = x"NONE" ; then
17067 ac_cv_install_prefix="$ac_default_prefix";
17070 cat >>confdefs.h <<_ACEOF
17071 #define INSTALL_PREFIX "$ac_cv_install_prefix"
17072 _ACEOF
17076 # For windows, this has a non-trivial value (__declspec(export)), but any
17077 # system that uses configure wants this to be the empty string.
17079 $as_echo "#define PERFTOOLS_DLL_DECL /**/" >>confdefs.h
17082 # In theory, config.h files shouldn't need a header guard, but we do,
17083 # because we (maybe) #include windows/mingw.h from within config.h,
17084 # and it #includes other .h files. These all have header guards, so
17085 # the end result is if config.h is #included twice, its #undefs get
17086 # evaluated twice, but all the ones in mingw.h/etc only get evaluated
17087 # once, potentially causing trouble. c.f.
17088 # http://code.google.com/p/gperftools/issues/detail?id=246
17093 # MinGW uses autoconf, but also needs the windows shim routines
17094 # (since it doesn't have its own support for, say, pthreads).
17095 # This requires us to #include a special header file, and also to
17096 # link in some windows versions of .o's instead of the unix versions.
17098 # Also, manually mark systems where we have to be careful how early
17099 # we run pthreads. TODO(csilvers): turn this into an autoconf check.
17101 if expr $host : '.*-mingw' >/dev/null 2>&1; then
17102 MINGW_TRUE=
17103 MINGW_FALSE='#'
17104 else
17105 MINGW_TRUE='#'
17106 MINGW_FALSE=
17109 if expr $host : '.*-apple-darwin.*' >/dev/null 2>&1; then
17110 OSX_TRUE=
17111 OSX_FALSE='#'
17112 else
17113 OSX_TRUE='#'
17114 OSX_FALSE=
17118 # Redhat 7 (and below?) has sys/ucontext.h, but if you try to #include
17119 # it directly, the compiler gets upset. So we pretend we don't have
17120 # it.
17121 if cat /etc/redhat-release 2>/dev/null | grep "Red Hat Linux release 7" >/dev/null 2>&1; then
17123 $as_echo "#define HAVE_SYS_UCONTEXT_H 0" >>confdefs.h
17127 # Export the --enable flags we set above. We do this at the end so
17128 # other configure rules can enable or disable targets based on what
17129 # they find.
17130 if test "$enable_cpu_profiler" = yes; then
17131 WITH_CPU_PROFILER_TRUE=
17132 WITH_CPU_PROFILER_FALSE='#'
17133 else
17134 WITH_CPU_PROFILER_TRUE='#'
17135 WITH_CPU_PROFILER_FALSE=
17138 if test "$enable_heap_profiler" = yes; then
17139 WITH_HEAP_PROFILER_TRUE=
17140 WITH_HEAP_PROFILER_FALSE='#'
17141 else
17142 WITH_HEAP_PROFILER_TRUE='#'
17143 WITH_HEAP_PROFILER_FALSE=
17146 if test "$enable_heap_checker" = yes; then
17147 WITH_HEAP_CHECKER_TRUE=
17148 WITH_HEAP_CHECKER_FALSE='#'
17149 else
17150 WITH_HEAP_CHECKER_TRUE='#'
17151 WITH_HEAP_CHECKER_FALSE=
17154 if test "$enable_debugalloc" = yes; then
17155 WITH_DEBUGALLOC_TRUE=
17156 WITH_DEBUGALLOC_FALSE='#'
17157 else
17158 WITH_DEBUGALLOC_TRUE='#'
17159 WITH_DEBUGALLOC_FALSE=
17162 # We make tcmalloc.so if either heap-profiler or heap-checker is asked for.
17163 if test "$enable_heap_profiler" = yes -o \
17164 "$enable_heap_checker" = yes; then
17165 WITH_HEAP_PROFILER_OR_CHECKER_TRUE=
17166 WITH_HEAP_PROFILER_OR_CHECKER_FALSE='#'
17167 else
17168 WITH_HEAP_PROFILER_OR_CHECKER_TRUE='#'
17169 WITH_HEAP_PROFILER_OR_CHECKER_FALSE=
17172 # If we don't use any profilers, we don't need stack traces (or pprof)
17173 if test "$enable_cpu_profiler" = yes -o \
17174 "$enable_heap_profiler" = yes -o \
17175 "$enable_heap_checker" = yes; then
17176 WITH_STACK_TRACE_TRUE=
17177 WITH_STACK_TRACE_FALSE='#'
17178 else
17179 WITH_STACK_TRACE_TRUE='#'
17180 WITH_STACK_TRACE_FALSE=
17184 # Write generated configuration file
17185 ac_config_files="$ac_config_files Makefile src/gperftools/tcmalloc.h src/windows/gperftools/tcmalloc.h"
17187 cat >confcache <<\_ACEOF
17188 # This file is a shell script that caches the results of configure
17189 # tests run on this system so they can be shared between configure
17190 # scripts and configure runs, see configure's option --config-cache.
17191 # It is not useful on other systems. If it contains results you don't
17192 # want to keep, you may remove or edit it.
17194 # config.status only pays attention to the cache file if you give it
17195 # the --recheck option to rerun configure.
17197 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17198 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17199 # following values.
17201 _ACEOF
17203 # The following way of writing the cache mishandles newlines in values,
17204 # but we know of no workaround that is simple, portable, and efficient.
17205 # So, we kill variables containing newlines.
17206 # Ultrix sh set writes to stderr and can't be redirected directly,
17207 # and sets the high bit in the cache file unless we assign to the vars.
17209 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17210 eval ac_val=\$$ac_var
17211 case $ac_val in #(
17212 *${as_nl}*)
17213 case $ac_var in #(
17214 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17215 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17216 esac
17217 case $ac_var in #(
17218 _ | IFS | as_nl) ;; #(
17219 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17220 *) { eval $ac_var=; unset $ac_var;} ;;
17221 esac ;;
17222 esac
17223 done
17225 (set) 2>&1 |
17226 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17227 *${as_nl}ac_space=\ *)
17228 # `set' does not quote correctly, so add quotes: double-quote
17229 # substitution turns \\\\ into \\, and sed turns \\ into \.
17230 sed -n \
17231 "s/'/'\\\\''/g;
17232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17233 ;; #(
17235 # `set' quotes correctly as required by POSIX, so do not add quotes.
17236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17238 esac |
17239 sort
17241 sed '
17242 /^ac_cv_env_/b end
17243 t clear
17244 :clear
17245 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17246 t end
17247 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17248 :end' >>confcache
17249 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17250 if test -w "$cache_file"; then
17251 test "x$cache_file" != "x/dev/null" &&
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17253 $as_echo "$as_me: updating cache $cache_file" >&6;}
17254 cat confcache >$cache_file
17255 else
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17257 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17260 rm -f confcache
17262 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17263 # Let make expand exec_prefix.
17264 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17266 DEFS=-DHAVE_CONFIG_H
17268 ac_libobjs=
17269 ac_ltlibobjs=
17270 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17271 # 1. Remove the extension, and $U if already installed.
17272 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17273 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17274 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17275 # will be set to the directory where LIBOBJS objects are built.
17276 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17277 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17278 done
17279 LIBOBJS=$ac_libobjs
17281 LTLIBOBJS=$ac_ltlibobjs
17284 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17285 as_fn_error "conditional \"AMDEP\" was never defined.
17286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17288 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17289 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17292 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17293 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17296 if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
17297 as_fn_error "conditional \"GCC\" was never defined.
17298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17300 if test -z "${HAVE_OBJCOPY_WEAKEN_TRUE}" && test -z "${HAVE_OBJCOPY_WEAKEN_FALSE}"; then
17301 as_fn_error "conditional \"HAVE_OBJCOPY_WEAKEN\" was never defined.
17302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17304 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17305 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17308 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
17309 as_fn_error "conditional \"USE_LIBTOOL\" was never defined.
17310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17312 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
17313 as_fn_error "conditional \"ENABLE_STATIC\" was never defined.
17314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17316 if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
17317 as_fn_error "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
17318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17320 if test -z "${X86_64_AND_NO_FP_BY_DEFAULT_TRUE}" && test -z "${X86_64_AND_NO_FP_BY_DEFAULT_FALSE}"; then
17321 as_fn_error "conditional \"X86_64_AND_NO_FP_BY_DEFAULT\" was never defined.
17322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17324 if test -z "${I386_TRUE}" && test -z "${I386_FALSE}"; then
17325 as_fn_error "conditional \"I386\" was never defined.
17326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17328 if test -z "${HAVE_W_NO_UNUSED_RESULT_TRUE}" && test -z "${HAVE_W_NO_UNUSED_RESULT_FALSE}"; then
17329 as_fn_error "conditional \"HAVE_W_NO_UNUSED_RESULT\" was never defined.
17330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17332 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
17333 as_fn_error "conditional \"MINGW\" was never defined.
17334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17336 if test -z "${OSX_TRUE}" && test -z "${OSX_FALSE}"; then
17337 as_fn_error "conditional \"OSX\" was never defined.
17338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17340 if test -z "${WITH_CPU_PROFILER_TRUE}" && test -z "${WITH_CPU_PROFILER_FALSE}"; then
17341 as_fn_error "conditional \"WITH_CPU_PROFILER\" was never defined.
17342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17344 if test -z "${WITH_HEAP_PROFILER_TRUE}" && test -z "${WITH_HEAP_PROFILER_FALSE}"; then
17345 as_fn_error "conditional \"WITH_HEAP_PROFILER\" was never defined.
17346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17348 if test -z "${WITH_HEAP_CHECKER_TRUE}" && test -z "${WITH_HEAP_CHECKER_FALSE}"; then
17349 as_fn_error "conditional \"WITH_HEAP_CHECKER\" was never defined.
17350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17352 if test -z "${WITH_DEBUGALLOC_TRUE}" && test -z "${WITH_DEBUGALLOC_FALSE}"; then
17353 as_fn_error "conditional \"WITH_DEBUGALLOC\" was never defined.
17354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17356 if test -z "${WITH_HEAP_PROFILER_OR_CHECKER_TRUE}" && test -z "${WITH_HEAP_PROFILER_OR_CHECKER_FALSE}"; then
17357 as_fn_error "conditional \"WITH_HEAP_PROFILER_OR_CHECKER\" was never defined.
17358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17360 if test -z "${WITH_STACK_TRACE_TRUE}" && test -z "${WITH_STACK_TRACE_FALSE}"; then
17361 as_fn_error "conditional \"WITH_STACK_TRACE\" was never defined.
17362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17365 : ${CONFIG_STATUS=./config.status}
17366 ac_write_fail=0
17367 ac_clean_files_save=$ac_clean_files
17368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17370 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17371 as_write_fail=0
17372 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17373 #! $SHELL
17374 # Generated by $as_me.
17375 # Run this file to recreate the current configuration.
17376 # Compiler output produced by configure, useful for debugging
17377 # configure, is in config.log if it exists.
17379 debug=false
17380 ac_cs_recheck=false
17381 ac_cs_silent=false
17383 SHELL=\${CONFIG_SHELL-$SHELL}
17384 export SHELL
17385 _ASEOF
17386 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17387 ## -------------------- ##
17388 ## M4sh Initialization. ##
17389 ## -------------------- ##
17391 # Be more Bourne compatible
17392 DUALCASE=1; export DUALCASE # for MKS sh
17393 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17394 emulate sh
17395 NULLCMD=:
17396 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17397 # is contrary to our usage. Disable this feature.
17398 alias -g '${1+"$@"}'='"$@"'
17399 setopt NO_GLOB_SUBST
17400 else
17401 case `(set -o) 2>/dev/null` in #(
17402 *posix*) :
17403 set -o posix ;; #(
17404 *) :
17406 esac
17410 as_nl='
17412 export as_nl
17413 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17414 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17415 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17416 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17417 # Prefer a ksh shell builtin over an external printf program on Solaris,
17418 # but without wasting forks for bash or zsh.
17419 if test -z "$BASH_VERSION$ZSH_VERSION" \
17420 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17421 as_echo='print -r --'
17422 as_echo_n='print -rn --'
17423 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17424 as_echo='printf %s\n'
17425 as_echo_n='printf %s'
17426 else
17427 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17428 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17429 as_echo_n='/usr/ucb/echo -n'
17430 else
17431 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17432 as_echo_n_body='eval
17433 arg=$1;
17434 case $arg in #(
17435 *"$as_nl"*)
17436 expr "X$arg" : "X\\(.*\\)$as_nl";
17437 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17438 esac;
17439 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17441 export as_echo_n_body
17442 as_echo_n='sh -c $as_echo_n_body as_echo'
17444 export as_echo_body
17445 as_echo='sh -c $as_echo_body as_echo'
17448 # The user is always right.
17449 if test "${PATH_SEPARATOR+set}" != set; then
17450 PATH_SEPARATOR=:
17451 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17452 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17453 PATH_SEPARATOR=';'
17458 # IFS
17459 # We need space, tab and new line, in precisely that order. Quoting is
17460 # there to prevent editors from complaining about space-tab.
17461 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17462 # splitting by setting IFS to empty value.)
17463 IFS=" "" $as_nl"
17465 # Find who we are. Look in the path if we contain no directory separator.
17466 case $0 in #((
17467 *[\\/]* ) as_myself=$0 ;;
17468 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17469 for as_dir in $PATH
17471 IFS=$as_save_IFS
17472 test -z "$as_dir" && as_dir=.
17473 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17474 done
17475 IFS=$as_save_IFS
17478 esac
17479 # We did not find ourselves, most probably we were run as `sh COMMAND'
17480 # in which case we are not to be found in the path.
17481 if test "x$as_myself" = x; then
17482 as_myself=$0
17484 if test ! -f "$as_myself"; then
17485 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17486 exit 1
17489 # Unset variables that we do not need and which cause bugs (e.g. in
17490 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17491 # suppresses any "Segmentation fault" message there. '((' could
17492 # trigger a bug in pdksh 5.2.14.
17493 for as_var in BASH_ENV ENV MAIL MAILPATH
17494 do eval test x\${$as_var+set} = xset \
17495 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17496 done
17497 PS1='$ '
17498 PS2='> '
17499 PS4='+ '
17501 # NLS nuisances.
17502 LC_ALL=C
17503 export LC_ALL
17504 LANGUAGE=C
17505 export LANGUAGE
17507 # CDPATH.
17508 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17511 # as_fn_error ERROR [LINENO LOG_FD]
17512 # ---------------------------------
17513 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17514 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17515 # script with status $?, using 1 if that was 0.
17516 as_fn_error ()
17518 as_status=$?; test $as_status -eq 0 && as_status=1
17519 if test "$3"; then
17520 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17521 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17523 $as_echo "$as_me: error: $1" >&2
17524 as_fn_exit $as_status
17525 } # as_fn_error
17528 # as_fn_set_status STATUS
17529 # -----------------------
17530 # Set $? to STATUS, without forking.
17531 as_fn_set_status ()
17533 return $1
17534 } # as_fn_set_status
17536 # as_fn_exit STATUS
17537 # -----------------
17538 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17539 as_fn_exit ()
17541 set +e
17542 as_fn_set_status $1
17543 exit $1
17544 } # as_fn_exit
17546 # as_fn_unset VAR
17547 # ---------------
17548 # Portably unset VAR.
17549 as_fn_unset ()
17551 { eval $1=; unset $1;}
17553 as_unset=as_fn_unset
17554 # as_fn_append VAR VALUE
17555 # ----------------------
17556 # Append the text in VALUE to the end of the definition contained in VAR. Take
17557 # advantage of any shell optimizations that allow amortized linear growth over
17558 # repeated appends, instead of the typical quadratic growth present in naive
17559 # implementations.
17560 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17561 eval 'as_fn_append ()
17563 eval $1+=\$2
17565 else
17566 as_fn_append ()
17568 eval $1=\$$1\$2
17570 fi # as_fn_append
17572 # as_fn_arith ARG...
17573 # ------------------
17574 # Perform arithmetic evaluation on the ARGs, and store the result in the
17575 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17576 # must be portable across $(()) and expr.
17577 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17578 eval 'as_fn_arith ()
17580 as_val=$(( $* ))
17582 else
17583 as_fn_arith ()
17585 as_val=`expr "$@" || test $? -eq 1`
17587 fi # as_fn_arith
17590 if expr a : '\(a\)' >/dev/null 2>&1 &&
17591 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17592 as_expr=expr
17593 else
17594 as_expr=false
17597 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17598 as_basename=basename
17599 else
17600 as_basename=false
17603 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17604 as_dirname=dirname
17605 else
17606 as_dirname=false
17609 as_me=`$as_basename -- "$0" ||
17610 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17611 X"$0" : 'X\(//\)$' \| \
17612 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17613 $as_echo X/"$0" |
17614 sed '/^.*\/\([^/][^/]*\)\/*$/{
17615 s//\1/
17618 /^X\/\(\/\/\)$/{
17619 s//\1/
17622 /^X\/\(\/\).*/{
17623 s//\1/
17626 s/.*/./; q'`
17628 # Avoid depending upon Character Ranges.
17629 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17630 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17631 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17632 as_cr_digits='0123456789'
17633 as_cr_alnum=$as_cr_Letters$as_cr_digits
17635 ECHO_C= ECHO_N= ECHO_T=
17636 case `echo -n x` in #(((((
17637 -n*)
17638 case `echo 'xy\c'` in
17639 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17640 xy) ECHO_C='\c';;
17641 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17642 ECHO_T=' ';;
17643 esac;;
17645 ECHO_N='-n';;
17646 esac
17648 rm -f conf$$ conf$$.exe conf$$.file
17649 if test -d conf$$.dir; then
17650 rm -f conf$$.dir/conf$$.file
17651 else
17652 rm -f conf$$.dir
17653 mkdir conf$$.dir 2>/dev/null
17655 if (echo >conf$$.file) 2>/dev/null; then
17656 if ln -s conf$$.file conf$$ 2>/dev/null; then
17657 as_ln_s='ln -s'
17658 # ... but there are two gotchas:
17659 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17660 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17661 # In both cases, we have to default to `cp -p'.
17662 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17663 as_ln_s='cp -p'
17664 elif ln conf$$.file conf$$ 2>/dev/null; then
17665 as_ln_s=ln
17666 else
17667 as_ln_s='cp -p'
17669 else
17670 as_ln_s='cp -p'
17672 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17673 rmdir conf$$.dir 2>/dev/null
17676 # as_fn_mkdir_p
17677 # -------------
17678 # Create "$as_dir" as a directory, including parents if necessary.
17679 as_fn_mkdir_p ()
17682 case $as_dir in #(
17683 -*) as_dir=./$as_dir;;
17684 esac
17685 test -d "$as_dir" || eval $as_mkdir_p || {
17686 as_dirs=
17687 while :; do
17688 case $as_dir in #(
17689 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17690 *) as_qdir=$as_dir;;
17691 esac
17692 as_dirs="'$as_qdir' $as_dirs"
17693 as_dir=`$as_dirname -- "$as_dir" ||
17694 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17695 X"$as_dir" : 'X\(//\)[^/]' \| \
17696 X"$as_dir" : 'X\(//\)$' \| \
17697 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17698 $as_echo X"$as_dir" |
17699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17700 s//\1/
17703 /^X\(\/\/\)[^/].*/{
17704 s//\1/
17707 /^X\(\/\/\)$/{
17708 s//\1/
17711 /^X\(\/\).*/{
17712 s//\1/
17715 s/.*/./; q'`
17716 test -d "$as_dir" && break
17717 done
17718 test -z "$as_dirs" || eval "mkdir $as_dirs"
17719 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17722 } # as_fn_mkdir_p
17723 if mkdir -p . 2>/dev/null; then
17724 as_mkdir_p='mkdir -p "$as_dir"'
17725 else
17726 test -d ./-p && rmdir ./-p
17727 as_mkdir_p=false
17730 if test -x / >/dev/null 2>&1; then
17731 as_test_x='test -x'
17732 else
17733 if ls -dL / >/dev/null 2>&1; then
17734 as_ls_L_option=L
17735 else
17736 as_ls_L_option=
17738 as_test_x='
17739 eval sh -c '\''
17740 if test -d "$1"; then
17741 test -d "$1/.";
17742 else
17743 case $1 in #(
17744 -*)set "./$1";;
17745 esac;
17746 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17747 ???[sx]*):;;*)false;;esac;fi
17748 '\'' sh
17751 as_executable_p=$as_test_x
17753 # Sed expression to map a string onto a valid CPP name.
17754 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17756 # Sed expression to map a string onto a valid variable name.
17757 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17760 exec 6>&1
17761 ## ----------------------------------- ##
17762 ## Main body of $CONFIG_STATUS script. ##
17763 ## ----------------------------------- ##
17764 _ASEOF
17765 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17768 # Save the log message, to keep $0 and so on meaningful, and to
17769 # report actual input values of CONFIG_FILES etc. instead of their
17770 # values after options handling.
17771 ac_log="
17772 This file was extended by gperftools $as_me 2.0, which was
17773 generated by GNU Autoconf 2.65. Invocation command line was
17775 CONFIG_FILES = $CONFIG_FILES
17776 CONFIG_HEADERS = $CONFIG_HEADERS
17777 CONFIG_LINKS = $CONFIG_LINKS
17778 CONFIG_COMMANDS = $CONFIG_COMMANDS
17779 $ $0 $@
17781 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17784 _ACEOF
17786 case $ac_config_files in *"
17787 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17788 esac
17790 case $ac_config_headers in *"
17791 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17792 esac
17795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17796 # Files that config.status was made for.
17797 config_files="$ac_config_files"
17798 config_headers="$ac_config_headers"
17799 config_commands="$ac_config_commands"
17801 _ACEOF
17803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17804 ac_cs_usage="\
17805 \`$as_me' instantiates files and other configuration actions
17806 from templates according to the current configuration. Unless the files
17807 and actions are specified as TAGs, all are instantiated by default.
17809 Usage: $0 [OPTION]... [TAG]...
17811 -h, --help print this help, then exit
17812 -V, --version print version number and configuration settings, then exit
17813 --config print configuration, then exit
17814 -q, --quiet, --silent
17815 do not print progress messages
17816 -d, --debug don't remove temporary files
17817 --recheck update $as_me by reconfiguring in the same conditions
17818 --file=FILE[:TEMPLATE]
17819 instantiate the configuration file FILE
17820 --header=FILE[:TEMPLATE]
17821 instantiate the configuration header FILE
17823 Configuration files:
17824 $config_files
17826 Configuration headers:
17827 $config_headers
17829 Configuration commands:
17830 $config_commands
17832 Report bugs to <google-perftools@googlegroups.com>."
17834 _ACEOF
17835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17836 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17837 ac_cs_version="\\
17838 gperftools config.status 2.0
17839 configured by $0, generated by GNU Autoconf 2.65,
17840 with options \\"\$ac_cs_config\\"
17842 Copyright (C) 2009 Free Software Foundation, Inc.
17843 This config.status script is free software; the Free Software Foundation
17844 gives unlimited permission to copy, distribute and modify it."
17846 ac_pwd='$ac_pwd'
17847 srcdir='$srcdir'
17848 INSTALL='$INSTALL'
17849 MKDIR_P='$MKDIR_P'
17850 AWK='$AWK'
17851 test -n "\$AWK" || AWK=awk
17852 _ACEOF
17854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17855 # The default lists apply if the user does not specify any file.
17856 ac_need_defaults=:
17857 while test $# != 0
17859 case $1 in
17860 --*=*)
17861 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17862 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17863 ac_shift=:
17866 ac_option=$1
17867 ac_optarg=$2
17868 ac_shift=shift
17870 esac
17872 case $ac_option in
17873 # Handling of the options.
17874 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17875 ac_cs_recheck=: ;;
17876 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17877 $as_echo "$ac_cs_version"; exit ;;
17878 --config | --confi | --conf | --con | --co | --c )
17879 $as_echo "$ac_cs_config"; exit ;;
17880 --debug | --debu | --deb | --de | --d | -d )
17881 debug=: ;;
17882 --file | --fil | --fi | --f )
17883 $ac_shift
17884 case $ac_optarg in
17885 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17886 esac
17887 as_fn_append CONFIG_FILES " '$ac_optarg'"
17888 ac_need_defaults=false;;
17889 --header | --heade | --head | --hea )
17890 $ac_shift
17891 case $ac_optarg in
17892 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17893 esac
17894 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17895 ac_need_defaults=false;;
17896 --he | --h)
17897 # Conflict between --help and --header
17898 as_fn_error "ambiguous option: \`$1'
17899 Try \`$0 --help' for more information.";;
17900 --help | --hel | -h )
17901 $as_echo "$ac_cs_usage"; exit ;;
17902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17903 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17904 ac_cs_silent=: ;;
17906 # This is an error.
17907 -*) as_fn_error "unrecognized option: \`$1'
17908 Try \`$0 --help' for more information." ;;
17910 *) as_fn_append ac_config_targets " $1"
17911 ac_need_defaults=false ;;
17913 esac
17914 shift
17915 done
17917 ac_configure_extra_args=
17919 if $ac_cs_silent; then
17920 exec 6>/dev/null
17921 ac_configure_extra_args="$ac_configure_extra_args --silent"
17924 _ACEOF
17925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17926 if \$ac_cs_recheck; then
17927 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17928 shift
17929 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17930 CONFIG_SHELL='$SHELL'
17931 export CONFIG_SHELL
17932 exec "\$@"
17935 _ACEOF
17936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17937 exec 5>>config.log
17939 echo
17940 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17941 ## Running $as_me. ##
17942 _ASBOX
17943 $as_echo "$ac_log"
17944 } >&5
17946 _ACEOF
17947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17949 # INIT-COMMANDS
17951 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17954 # The HP-UX ksh and POSIX shell print the target directory to stdout
17955 # if CDPATH is set.
17956 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17958 sed_quote_subst='$sed_quote_subst'
17959 double_quote_subst='$double_quote_subst'
17960 delay_variable_subst='$delay_variable_subst'
17961 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17962 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17963 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17964 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17965 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17966 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17967 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17968 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17969 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17970 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17971 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17972 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17973 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17974 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17975 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17976 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17977 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17978 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17979 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17980 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17981 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17982 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17983 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17984 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17985 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17986 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17987 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17988 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17989 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17990 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17991 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17992 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17993 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17994 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17995 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17996 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17997 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17998 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17999 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18000 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18001 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18002 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18003 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18004 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18005 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
18006 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18007 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18008 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18009 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18010 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18011 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18012 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18013 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18014 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18015 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18016 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18017 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18018 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18019 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18020 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18021 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18022 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18023 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18024 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18025 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18026 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18027 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18028 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18029 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18030 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18031 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18032 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18033 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18034 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18035 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18036 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18037 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18038 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18039 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18040 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18041 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18042 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18043 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18044 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18045 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18046 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18047 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18048 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18049 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18050 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18051 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18052 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18053 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18054 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18055 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18056 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18057 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18058 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18059 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18060 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18061 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18062 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18063 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18064 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18065 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18066 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18067 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18068 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18069 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18070 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18071 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18072 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18073 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18074 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18075 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18076 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18077 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18078 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18079 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18080 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18081 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18082 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18083 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18084 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18085 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18086 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18087 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18088 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18089 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18090 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18091 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18092 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18093 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18094 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18095 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18096 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18097 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18098 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18099 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18100 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18101 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18102 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18103 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18104 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18105 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18106 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18107 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18108 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18109 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18110 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18111 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18112 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18113 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18114 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18115 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18116 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18117 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18118 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18119 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18120 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18121 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18122 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18123 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18124 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18125 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18126 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18127 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18128 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18129 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18130 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18131 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18133 LTCC='$LTCC'
18134 LTCFLAGS='$LTCFLAGS'
18135 compiler='$compiler_DEFAULT'
18137 # Quote evaled strings.
18138 for var in SED \
18139 GREP \
18140 EGREP \
18141 FGREP \
18142 LD \
18143 NM \
18144 LN_S \
18145 lt_SP2NL \
18146 lt_NL2SP \
18147 reload_flag \
18148 OBJDUMP \
18149 deplibs_check_method \
18150 file_magic_cmd \
18151 AR \
18152 AR_FLAGS \
18153 STRIP \
18154 RANLIB \
18155 CC \
18156 CFLAGS \
18157 compiler \
18158 lt_cv_sys_global_symbol_pipe \
18159 lt_cv_sys_global_symbol_to_cdecl \
18160 lt_cv_sys_global_symbol_to_c_name_address \
18161 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18162 SHELL \
18163 ECHO \
18164 lt_prog_compiler_no_builtin_flag \
18165 lt_prog_compiler_wl \
18166 lt_prog_compiler_pic \
18167 lt_prog_compiler_static \
18168 lt_cv_prog_compiler_c_o \
18169 need_locks \
18170 DSYMUTIL \
18171 NMEDIT \
18172 LIPO \
18173 OTOOL \
18174 OTOOL64 \
18175 shrext_cmds \
18176 export_dynamic_flag_spec \
18177 whole_archive_flag_spec \
18178 compiler_needs_object \
18179 with_gnu_ld \
18180 allow_undefined_flag \
18181 no_undefined_flag \
18182 hardcode_libdir_flag_spec \
18183 hardcode_libdir_flag_spec_ld \
18184 hardcode_libdir_separator \
18185 fix_srcfile_path \
18186 exclude_expsyms \
18187 include_expsyms \
18188 file_list_spec \
18189 variables_saved_for_relink \
18190 libname_spec \
18191 library_names_spec \
18192 soname_spec \
18193 finish_eval \
18194 old_striplib \
18195 striplib \
18196 compiler_lib_search_dirs \
18197 predep_objects \
18198 postdep_objects \
18199 predeps \
18200 postdeps \
18201 compiler_lib_search_path \
18202 LD_CXX \
18203 compiler_CXX \
18204 lt_prog_compiler_no_builtin_flag_CXX \
18205 lt_prog_compiler_wl_CXX \
18206 lt_prog_compiler_pic_CXX \
18207 lt_prog_compiler_static_CXX \
18208 lt_cv_prog_compiler_c_o_CXX \
18209 export_dynamic_flag_spec_CXX \
18210 whole_archive_flag_spec_CXX \
18211 compiler_needs_object_CXX \
18212 with_gnu_ld_CXX \
18213 allow_undefined_flag_CXX \
18214 no_undefined_flag_CXX \
18215 hardcode_libdir_flag_spec_CXX \
18216 hardcode_libdir_flag_spec_ld_CXX \
18217 hardcode_libdir_separator_CXX \
18218 fix_srcfile_path_CXX \
18219 exclude_expsyms_CXX \
18220 include_expsyms_CXX \
18221 file_list_spec_CXX \
18222 compiler_lib_search_dirs_CXX \
18223 predep_objects_CXX \
18224 postdep_objects_CXX \
18225 predeps_CXX \
18226 postdeps_CXX \
18227 compiler_lib_search_path_CXX; do
18228 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18229 *[\\\\\\\`\\"\\\$]*)
18230 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18233 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18235 esac
18236 done
18238 # Double-quote double-evaled strings.
18239 for var in reload_cmds \
18240 old_postinstall_cmds \
18241 old_postuninstall_cmds \
18242 old_archive_cmds \
18243 extract_expsyms_cmds \
18244 old_archive_from_new_cmds \
18245 old_archive_from_expsyms_cmds \
18246 archive_cmds \
18247 archive_expsym_cmds \
18248 module_cmds \
18249 module_expsym_cmds \
18250 export_symbols_cmds \
18251 prelink_cmds \
18252 postinstall_cmds \
18253 postuninstall_cmds \
18254 finish_cmds \
18255 sys_lib_search_path_spec \
18256 sys_lib_dlsearch_path_spec \
18257 old_archive_cmds_CXX \
18258 old_archive_from_new_cmds_CXX \
18259 old_archive_from_expsyms_cmds_CXX \
18260 archive_cmds_CXX \
18261 archive_expsym_cmds_CXX \
18262 module_cmds_CXX \
18263 module_expsym_cmds_CXX \
18264 export_symbols_cmds_CXX \
18265 prelink_cmds_CXX; do
18266 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18267 *[\\\\\\\`\\"\\\$]*)
18268 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18271 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18273 esac
18274 done
18276 # Fix-up fallback echo if it was mangled by the above quoting rules.
18277 case \$lt_ECHO in
18278 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18280 esac
18282 ac_aux_dir='$ac_aux_dir'
18283 xsi_shell='$xsi_shell'
18284 lt_shell_append='$lt_shell_append'
18286 # See if we are running on zsh, and set the options which allow our
18287 # commands through without removal of \ escapes INIT.
18288 if test -n "\${ZSH_VERSION+set}" ; then
18289 setopt NO_GLOB_SUBST
18293 PACKAGE='$PACKAGE'
18294 VERSION='$VERSION'
18295 TIMESTAMP='$TIMESTAMP'
18296 RM='$RM'
18297 ofile='$ofile'
18304 _ACEOF
18306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18308 # Handling of arguments.
18309 for ac_config_target in $ac_config_targets
18311 case $ac_config_target in
18312 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
18313 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18314 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18315 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18316 "src/gperftools/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/gperftools/tcmalloc.h" ;;
18317 "src/windows/gperftools/tcmalloc.h") CONFIG_FILES="$CONFIG_FILES src/windows/gperftools/tcmalloc.h" ;;
18319 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18320 esac
18321 done
18324 # If the user did not use the arguments to specify the items to instantiate,
18325 # then the envvar interface is used. Set only those that are not.
18326 # We use the long form for the default assignment because of an extremely
18327 # bizarre bug on SunOS 4.1.3.
18328 if $ac_need_defaults; then
18329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18331 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18334 # Have a temporary directory for convenience. Make it in the build tree
18335 # simply because there is no reason against having it here, and in addition,
18336 # creating and moving files from /tmp can sometimes cause problems.
18337 # Hook for its removal unless debugging.
18338 # Note that there is a small window in which the directory will not be cleaned:
18339 # after its creation but before its name has been assigned to `$tmp'.
18340 $debug ||
18342 tmp=
18343 trap 'exit_status=$?
18344 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18346 trap 'as_fn_exit 1' 1 2 13 15
18348 # Create a (secure) tmp directory for tmp files.
18351 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18352 test -n "$tmp" && test -d "$tmp"
18353 } ||
18355 tmp=./conf$$-$RANDOM
18356 (umask 077 && mkdir "$tmp")
18357 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18359 # Set up the scripts for CONFIG_FILES section.
18360 # No need to generate them if there are no CONFIG_FILES.
18361 # This happens for instance with `./config.status config.h'.
18362 if test -n "$CONFIG_FILES"; then
18365 ac_cr=`echo X | tr X '\015'`
18366 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18367 # But we know of no other shell where ac_cr would be empty at this
18368 # point, so we can use a bashism as a fallback.
18369 if test "x$ac_cr" = x; then
18370 eval ac_cr=\$\'\\r\'
18372 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18373 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18374 ac_cs_awk_cr='\r'
18375 else
18376 ac_cs_awk_cr=$ac_cr
18379 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18380 _ACEOF
18384 echo "cat >conf$$subs.awk <<_ACEOF" &&
18385 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18386 echo "_ACEOF"
18387 } >conf$$subs.sh ||
18388 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18389 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18390 ac_delim='%!_!# '
18391 for ac_last_try in false false false false false :; do
18392 . ./conf$$subs.sh ||
18393 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18395 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18396 if test $ac_delim_n = $ac_delim_num; then
18397 break
18398 elif $ac_last_try; then
18399 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18400 else
18401 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18403 done
18404 rm -f conf$$subs.sh
18406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18407 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18408 _ACEOF
18409 sed -n '
18411 s/^/S["/; s/!.*/"]=/
18414 s/^[^!]*!//
18415 :repl
18416 t repl
18417 s/'"$ac_delim"'$//
18418 t delim
18421 s/\(.\{148\}\)..*/\1/
18422 t more1
18423 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18426 b repl
18427 :more1
18428 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18431 s/.\{148\}//
18432 t nl
18433 :delim
18435 s/\(.\{148\}\)..*/\1/
18436 t more2
18437 s/["\\]/\\&/g; s/^/"/; s/$/"/
18440 :more2
18441 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18444 s/.\{148\}//
18445 t delim
18446 ' <conf$$subs.awk | sed '
18447 /^[^""]/{
18449 s/\n//
18451 ' >>$CONFIG_STATUS || ac_write_fail=1
18452 rm -f conf$$subs.awk
18453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18454 _ACAWK
18455 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18456 for (key in S) S_is_set[key] = 1
18457 FS = "\a"
18461 line = $ 0
18462 nfields = split(line, field, "@")
18463 substed = 0
18464 len = length(field[1])
18465 for (i = 2; i < nfields; i++) {
18466 key = field[i]
18467 keylen = length(key)
18468 if (S_is_set[key]) {
18469 value = S[key]
18470 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18471 len += length(value) + length(field[++i])
18472 substed = 1
18473 } else
18474 len += 1 + keylen
18477 print line
18480 _ACAWK
18481 _ACEOF
18482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18483 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18484 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18485 else
18487 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18488 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18489 _ACEOF
18491 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18492 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18493 # trailing colons and then remove the whole line if VPATH becomes empty
18494 # (actually we leave an empty line to preserve line numbers).
18495 if test "x$srcdir" = x.; then
18496 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18497 s/:*\$(srcdir):*/:/
18498 s/:*\${srcdir}:*/:/
18499 s/:*@srcdir@:*/:/
18500 s/^\([^=]*=[ ]*\):*/\1/
18501 s/:*$//
18502 s/^[^=]*=[ ]*$//
18506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18507 fi # test -n "$CONFIG_FILES"
18509 # Set up the scripts for CONFIG_HEADERS section.
18510 # No need to generate them if there are no CONFIG_HEADERS.
18511 # This happens for instance with `./config.status Makefile'.
18512 if test -n "$CONFIG_HEADERS"; then
18513 cat >"$tmp/defines.awk" <<\_ACAWK ||
18514 BEGIN {
18515 _ACEOF
18517 # Transform confdefs.h into an awk script `defines.awk', embedded as
18518 # here-document in config.status, that substitutes the proper values into
18519 # config.h.in to produce config.h.
18521 # Create a delimiter string that does not exist in confdefs.h, to ease
18522 # handling of long lines.
18523 ac_delim='%!_!# '
18524 for ac_last_try in false false :; do
18525 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18526 if test -z "$ac_t"; then
18527 break
18528 elif $ac_last_try; then
18529 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18530 else
18531 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18533 done
18535 # For the awk script, D is an array of macro values keyed by name,
18536 # likewise P contains macro parameters if any. Preserve backslash
18537 # newline sequences.
18539 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18540 sed -n '
18541 s/.\{148\}/&'"$ac_delim"'/g
18542 t rset
18543 :rset
18544 s/^[ ]*#[ ]*define[ ][ ]*/ /
18545 t def
18547 :def
18548 s/\\$//
18549 t bsnl
18550 s/["\\]/\\&/g
18551 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18552 D["\1"]=" \3"/p
18553 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18555 :bsnl
18556 s/["\\]/\\&/g
18557 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18558 D["\1"]=" \3\\\\\\n"\\/p
18559 t cont
18560 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18561 t cont
18563 :cont
18565 s/.\{148\}/&'"$ac_delim"'/g
18566 t clear
18567 :clear
18568 s/\\$//
18569 t bsnlc
18570 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18572 :bsnlc
18573 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18574 b cont
18575 ' <confdefs.h | sed '
18576 s/'"$ac_delim"'/"\\\
18577 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18580 for (key in D) D_is_set[key] = 1
18581 FS = "\a"
18583 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18584 line = \$ 0
18585 split(line, arg, " ")
18586 if (arg[1] == "#") {
18587 defundef = arg[2]
18588 mac1 = arg[3]
18589 } else {
18590 defundef = substr(arg[1], 2)
18591 mac1 = arg[2]
18593 split(mac1, mac2, "(") #)
18594 macro = mac2[1]
18595 prefix = substr(line, 1, index(line, defundef) - 1)
18596 if (D_is_set[macro]) {
18597 # Preserve the white space surrounding the "#".
18598 print prefix "define", macro P[macro] D[macro]
18599 next
18600 } else {
18601 # Replace #undef with comments. This is necessary, for example,
18602 # in the case of _POSIX_SOURCE, which is predefined and required
18603 # on some systems where configure will not decide to define it.
18604 if (defundef == "undef") {
18605 print "/*", prefix defundef, macro, "*/"
18606 next
18610 { print }
18611 _ACAWK
18612 _ACEOF
18613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18614 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18615 fi # test -n "$CONFIG_HEADERS"
18618 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18619 shift
18620 for ac_tag
18622 case $ac_tag in
18623 :[FHLC]) ac_mode=$ac_tag; continue;;
18624 esac
18625 case $ac_mode$ac_tag in
18626 :[FHL]*:*);;
18627 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18628 :[FH]-) ac_tag=-:-;;
18629 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18630 esac
18631 ac_save_IFS=$IFS
18632 IFS=:
18633 set x $ac_tag
18634 IFS=$ac_save_IFS
18635 shift
18636 ac_file=$1
18637 shift
18639 case $ac_mode in
18640 :L) ac_source=$1;;
18641 :[FH])
18642 ac_file_inputs=
18643 for ac_f
18645 case $ac_f in
18646 -) ac_f="$tmp/stdin";;
18647 *) # Look for the file first in the build tree, then in the source tree
18648 # (if the path is not absolute). The absolute path cannot be DOS-style,
18649 # because $ac_f cannot contain `:'.
18650 test -f "$ac_f" ||
18651 case $ac_f in
18652 [\\/$]*) false;;
18653 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18654 esac ||
18655 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18656 esac
18657 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18658 as_fn_append ac_file_inputs " '$ac_f'"
18659 done
18661 # Let's still pretend it is `configure' which instantiates (i.e., don't
18662 # use $as_me), people would be surprised to read:
18663 # /* config.h. Generated by config.status. */
18664 configure_input='Generated from '`
18665 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18666 `' by configure.'
18667 if test x"$ac_file" != x-; then
18668 configure_input="$ac_file. $configure_input"
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18670 $as_echo "$as_me: creating $ac_file" >&6;}
18672 # Neutralize special characters interpreted by sed in replacement strings.
18673 case $configure_input in #(
18674 *\&* | *\|* | *\\* )
18675 ac_sed_conf_input=`$as_echo "$configure_input" |
18676 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18677 *) ac_sed_conf_input=$configure_input;;
18678 esac
18680 case $ac_tag in
18681 *:-:* | *:-) cat >"$tmp/stdin" \
18682 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18683 esac
18685 esac
18687 ac_dir=`$as_dirname -- "$ac_file" ||
18688 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18689 X"$ac_file" : 'X\(//\)[^/]' \| \
18690 X"$ac_file" : 'X\(//\)$' \| \
18691 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18692 $as_echo X"$ac_file" |
18693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18694 s//\1/
18697 /^X\(\/\/\)[^/].*/{
18698 s//\1/
18701 /^X\(\/\/\)$/{
18702 s//\1/
18705 /^X\(\/\).*/{
18706 s//\1/
18709 s/.*/./; q'`
18710 as_dir="$ac_dir"; as_fn_mkdir_p
18711 ac_builddir=.
18713 case "$ac_dir" in
18714 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18716 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18717 # A ".." for each directory in $ac_dir_suffix.
18718 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18719 case $ac_top_builddir_sub in
18720 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18721 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18722 esac ;;
18723 esac
18724 ac_abs_top_builddir=$ac_pwd
18725 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18726 # for backward compatibility:
18727 ac_top_builddir=$ac_top_build_prefix
18729 case $srcdir in
18730 .) # We are building in place.
18731 ac_srcdir=.
18732 ac_top_srcdir=$ac_top_builddir_sub
18733 ac_abs_top_srcdir=$ac_pwd ;;
18734 [\\/]* | ?:[\\/]* ) # Absolute name.
18735 ac_srcdir=$srcdir$ac_dir_suffix;
18736 ac_top_srcdir=$srcdir
18737 ac_abs_top_srcdir=$srcdir ;;
18738 *) # Relative name.
18739 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18740 ac_top_srcdir=$ac_top_build_prefix$srcdir
18741 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18742 esac
18743 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18746 case $ac_mode in
18749 # CONFIG_FILE
18752 case $INSTALL in
18753 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18754 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18755 esac
18756 ac_MKDIR_P=$MKDIR_P
18757 case $MKDIR_P in
18758 [\\/$]* | ?:[\\/]* ) ;;
18759 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18760 esac
18761 _ACEOF
18763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18764 # If the template does not know about datarootdir, expand it.
18765 # FIXME: This hack should be removed a few years after 2.60.
18766 ac_datarootdir_hack=; ac_datarootdir_seen=
18767 ac_sed_dataroot='
18768 /datarootdir/ {
18772 /@datadir@/p
18773 /@docdir@/p
18774 /@infodir@/p
18775 /@localedir@/p
18776 /@mandir@/p'
18777 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18778 *datarootdir*) ac_datarootdir_seen=yes;;
18779 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18781 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18782 _ACEOF
18783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18784 ac_datarootdir_hack='
18785 s&@datadir@&$datadir&g
18786 s&@docdir@&$docdir&g
18787 s&@infodir@&$infodir&g
18788 s&@localedir@&$localedir&g
18789 s&@mandir@&$mandir&g
18790 s&\\\${datarootdir}&$datarootdir&g' ;;
18791 esac
18792 _ACEOF
18794 # Neutralize VPATH when `$srcdir' = `.'.
18795 # Shell code in configure.ac might set extrasub.
18796 # FIXME: do we really want to maintain this feature?
18797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18798 ac_sed_extra="$ac_vpsub
18799 $extrasub
18800 _ACEOF
18801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18804 s|@configure_input@|$ac_sed_conf_input|;t t
18805 s&@top_builddir@&$ac_top_builddir_sub&;t t
18806 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18807 s&@srcdir@&$ac_srcdir&;t t
18808 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18809 s&@top_srcdir@&$ac_top_srcdir&;t t
18810 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18811 s&@builddir@&$ac_builddir&;t t
18812 s&@abs_builddir@&$ac_abs_builddir&;t t
18813 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18814 s&@INSTALL@&$ac_INSTALL&;t t
18815 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18816 $ac_datarootdir_hack
18818 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18819 || as_fn_error "could not create $ac_file" "$LINENO" 5
18821 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18822 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18823 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18825 which seems to be undefined. Please make sure it is defined." >&5
18826 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18827 which seems to be undefined. Please make sure it is defined." >&2;}
18829 rm -f "$tmp/stdin"
18830 case $ac_file in
18831 -) cat "$tmp/out" && rm -f "$tmp/out";;
18832 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18833 esac \
18834 || as_fn_error "could not create $ac_file" "$LINENO" 5
18838 # CONFIG_HEADER
18840 if test x"$ac_file" != x-; then
18842 $as_echo "/* $configure_input */" \
18843 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18844 } >"$tmp/config.h" \
18845 || as_fn_error "could not create $ac_file" "$LINENO" 5
18846 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18848 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18849 else
18850 rm -f "$ac_file"
18851 mv "$tmp/config.h" "$ac_file" \
18852 || as_fn_error "could not create $ac_file" "$LINENO" 5
18854 else
18855 $as_echo "/* $configure_input */" \
18856 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18857 || as_fn_error "could not create -" "$LINENO" 5
18859 # Compute "$ac_file"'s index in $config_headers.
18860 _am_arg="$ac_file"
18861 _am_stamp_count=1
18862 for _am_header in $config_headers :; do
18863 case $_am_header in
18864 $_am_arg | $_am_arg:* )
18865 break ;;
18867 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18868 esac
18869 done
18870 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18871 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18872 X"$_am_arg" : 'X\(//\)[^/]' \| \
18873 X"$_am_arg" : 'X\(//\)$' \| \
18874 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18875 $as_echo X"$_am_arg" |
18876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18877 s//\1/
18880 /^X\(\/\/\)[^/].*/{
18881 s//\1/
18884 /^X\(\/\/\)$/{
18885 s//\1/
18888 /^X\(\/\).*/{
18889 s//\1/
18892 s/.*/./; q'`/stamp-h$_am_stamp_count
18895 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18896 $as_echo "$as_me: executing $ac_file commands" >&6;}
18898 esac
18901 case $ac_file$ac_mode in
18902 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18903 # Strip MF so we end up with the name of the file.
18904 mf=`echo "$mf" | sed -e 's/:.*$//'`
18905 # Check whether this is an Automake generated Makefile or not.
18906 # We used to match only the files named `Makefile.in', but
18907 # some people rename them; so instead we look at the file content.
18908 # Grep'ing the first line is not enough: some people post-process
18909 # each Makefile.in and add a new line on top of each file to say so.
18910 # Grep'ing the whole file is not good either: AIX grep has a line
18911 # limit of 2048, but all sed's we know have understand at least 4000.
18912 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18913 dirpart=`$as_dirname -- "$mf" ||
18914 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18915 X"$mf" : 'X\(//\)[^/]' \| \
18916 X"$mf" : 'X\(//\)$' \| \
18917 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18918 $as_echo X"$mf" |
18919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18920 s//\1/
18923 /^X\(\/\/\)[^/].*/{
18924 s//\1/
18927 /^X\(\/\/\)$/{
18928 s//\1/
18931 /^X\(\/\).*/{
18932 s//\1/
18935 s/.*/./; q'`
18936 else
18937 continue
18939 # Extract the definition of DEPDIR, am__include, and am__quote
18940 # from the Makefile without running `make'.
18941 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18942 test -z "$DEPDIR" && continue
18943 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18944 test -z "am__include" && continue
18945 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18946 # When using ansi2knr, U may be empty or an underscore; expand it
18947 U=`sed -n 's/^U = //p' < "$mf"`
18948 # Find all dependency output files, they are included files with
18949 # $(DEPDIR) in their names. We invoke sed twice because it is the
18950 # simplest approach to changing $(DEPDIR) to its actual value in the
18951 # expansion.
18952 for file in `sed -n "
18953 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18954 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18955 # Make sure the directory exists.
18956 test -f "$dirpart/$file" && continue
18957 fdir=`$as_dirname -- "$file" ||
18958 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18959 X"$file" : 'X\(//\)[^/]' \| \
18960 X"$file" : 'X\(//\)$' \| \
18961 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18962 $as_echo X"$file" |
18963 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18964 s//\1/
18967 /^X\(\/\/\)[^/].*/{
18968 s//\1/
18971 /^X\(\/\/\)$/{
18972 s//\1/
18975 /^X\(\/\).*/{
18976 s//\1/
18979 s/.*/./; q'`
18980 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18981 # echo "creating $dirpart/$file"
18982 echo '# dummy' > "$dirpart/$file"
18983 done
18984 done
18986 "libtool":C)
18988 # See if we are running on zsh, and set the options which allow our
18989 # commands through without removal of \ escapes.
18990 if test -n "${ZSH_VERSION+set}" ; then
18991 setopt NO_GLOB_SUBST
18994 cfgfile="${ofile}T"
18995 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18996 $RM "$cfgfile"
18998 cat <<_LT_EOF >> "$cfgfile"
18999 #! $SHELL
19001 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19002 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19003 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19004 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19006 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19007 # 2006, 2007, 2008 Free Software Foundation, Inc.
19008 # Written by Gordon Matzigkeit, 1996
19010 # This file is part of GNU Libtool.
19012 # GNU Libtool is free software; you can redistribute it and/or
19013 # modify it under the terms of the GNU General Public License as
19014 # published by the Free Software Foundation; either version 2 of
19015 # the License, or (at your option) any later version.
19017 # As a special exception to the GNU General Public License,
19018 # if you distribute this file as part of a program or library that
19019 # is built using GNU Libtool, you may include this file under the
19020 # same distribution terms that you use for the rest of that program.
19022 # GNU Libtool is distributed in the hope that it will be useful,
19023 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19024 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19025 # GNU General Public License for more details.
19027 # You should have received a copy of the GNU General Public License
19028 # along with GNU Libtool; see the file COPYING. If not, a copy
19029 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19030 # obtained by writing to the Free Software Foundation, Inc.,
19031 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19034 # The names of the tagged configurations supported by this script.
19035 available_tags="CXX "
19037 # ### BEGIN LIBTOOL CONFIG
19039 # Whether or not to optimize for fast installation.
19040 fast_install=$enable_fast_install
19042 # Which release of libtool.m4 was used?
19043 macro_version=$macro_version
19044 macro_revision=$macro_revision
19046 # Whether or not to build shared libraries.
19047 build_libtool_libs=$enable_shared
19049 # Whether or not to build static libraries.
19050 build_old_libs=$enable_static
19052 # What type of objects to build.
19053 pic_mode=$pic_mode
19055 # The host system.
19056 host_alias=$host_alias
19057 host=$host
19058 host_os=$host_os
19060 # The build system.
19061 build_alias=$build_alias
19062 build=$build
19063 build_os=$build_os
19065 # A sed program that does not truncate output.
19066 SED=$lt_SED
19068 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19069 Xsed="\$SED -e 1s/^X//"
19071 # A grep program that handles long lines.
19072 GREP=$lt_GREP
19074 # An ERE matcher.
19075 EGREP=$lt_EGREP
19077 # A literal string matcher.
19078 FGREP=$lt_FGREP
19080 # A BSD- or MS-compatible name lister.
19081 NM=$lt_NM
19083 # Whether we need soft or hard links.
19084 LN_S=$lt_LN_S
19086 # What is the maximum length of a command?
19087 max_cmd_len=$max_cmd_len
19089 # Object file suffix (normally "o").
19090 objext=$ac_objext
19092 # Executable file suffix (normally "").
19093 exeext=$exeext
19095 # whether the shell understands "unset".
19096 lt_unset=$lt_unset
19098 # turn spaces into newlines.
19099 SP2NL=$lt_lt_SP2NL
19101 # turn newlines into spaces.
19102 NL2SP=$lt_lt_NL2SP
19104 # How to create reloadable object files.
19105 reload_flag=$lt_reload_flag
19106 reload_cmds=$lt_reload_cmds
19108 # An object symbol dumper.
19109 OBJDUMP=$lt_OBJDUMP
19111 # Method to check whether dependent libraries are shared objects.
19112 deplibs_check_method=$lt_deplibs_check_method
19114 # Command to use when deplibs_check_method == "file_magic".
19115 file_magic_cmd=$lt_file_magic_cmd
19117 # The archiver.
19118 AR=$lt_AR
19119 AR_FLAGS=$lt_AR_FLAGS
19121 # A symbol stripping program.
19122 STRIP=$lt_STRIP
19124 # Commands used to install an old-style archive.
19125 RANLIB=$lt_RANLIB
19126 old_postinstall_cmds=$lt_old_postinstall_cmds
19127 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19129 # A C compiler.
19130 LTCC=$lt_CC
19132 # LTCC compiler flags.
19133 LTCFLAGS=$lt_CFLAGS
19135 # Take the output of nm and produce a listing of raw symbols and C names.
19136 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19138 # Transform the output of nm in a proper C declaration.
19139 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19141 # Transform the output of nm in a C name address pair.
19142 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19144 # Transform the output of nm in a C name address pair when lib prefix is needed.
19145 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19147 # The name of the directory that contains temporary libtool files.
19148 objdir=$objdir
19150 # Shell to use when invoking shell scripts.
19151 SHELL=$lt_SHELL
19153 # An echo program that does not interpret backslashes.
19154 ECHO=$lt_ECHO
19156 # Used to examine libraries when file_magic_cmd begins with "file".
19157 MAGIC_CMD=$MAGIC_CMD
19159 # Must we lock files when doing compilation?
19160 need_locks=$lt_need_locks
19162 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19163 DSYMUTIL=$lt_DSYMUTIL
19165 # Tool to change global to local symbols on Mac OS X.
19166 NMEDIT=$lt_NMEDIT
19168 # Tool to manipulate fat objects and archives on Mac OS X.
19169 LIPO=$lt_LIPO
19171 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19172 OTOOL=$lt_OTOOL
19174 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19175 OTOOL64=$lt_OTOOL64
19177 # Old archive suffix (normally "a").
19178 libext=$libext
19180 # Shared library suffix (normally ".so").
19181 shrext_cmds=$lt_shrext_cmds
19183 # The commands to extract the exported symbol list from a shared archive.
19184 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19186 # Variables whose values should be saved in libtool wrapper scripts and
19187 # restored at link time.
19188 variables_saved_for_relink=$lt_variables_saved_for_relink
19190 # Do we need the "lib" prefix for modules?
19191 need_lib_prefix=$need_lib_prefix
19193 # Do we need a version for libraries?
19194 need_version=$need_version
19196 # Library versioning type.
19197 version_type=$version_type
19199 # Shared library runtime path variable.
19200 runpath_var=$runpath_var
19202 # Shared library path variable.
19203 shlibpath_var=$shlibpath_var
19205 # Is shlibpath searched before the hard-coded library search path?
19206 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19208 # Format of library name prefix.
19209 libname_spec=$lt_libname_spec
19211 # List of archive names. First name is the real one, the rest are links.
19212 # The last name is the one that the linker finds with -lNAME
19213 library_names_spec=$lt_library_names_spec
19215 # The coded name of the library, if different from the real name.
19216 soname_spec=$lt_soname_spec
19218 # Command to use after installation of a shared archive.
19219 postinstall_cmds=$lt_postinstall_cmds
19221 # Command to use after uninstallation of a shared archive.
19222 postuninstall_cmds=$lt_postuninstall_cmds
19224 # Commands used to finish a libtool library installation in a directory.
19225 finish_cmds=$lt_finish_cmds
19227 # As "finish_cmds", except a single script fragment to be evaled but
19228 # not shown.
19229 finish_eval=$lt_finish_eval
19231 # Whether we should hardcode library paths into libraries.
19232 hardcode_into_libs=$hardcode_into_libs
19234 # Compile-time system search path for libraries.
19235 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19237 # Run-time system search path for libraries.
19238 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19240 # Whether dlopen is supported.
19241 dlopen_support=$enable_dlopen
19243 # Whether dlopen of programs is supported.
19244 dlopen_self=$enable_dlopen_self
19246 # Whether dlopen of statically linked programs is supported.
19247 dlopen_self_static=$enable_dlopen_self_static
19249 # Commands to strip libraries.
19250 old_striplib=$lt_old_striplib
19251 striplib=$lt_striplib
19254 # The linker used to build libraries.
19255 LD=$lt_LD
19257 # Commands used to build an old-style archive.
19258 old_archive_cmds=$lt_old_archive_cmds
19260 # A language specific compiler.
19261 CC=$lt_compiler
19263 # Is the compiler the GNU compiler?
19264 with_gcc=$GCC
19266 # Compiler flag to turn off builtin functions.
19267 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19269 # How to pass a linker flag through the compiler.
19270 wl=$lt_lt_prog_compiler_wl
19272 # Additional compiler flags for building library objects.
19273 pic_flag=$lt_lt_prog_compiler_pic
19275 # Compiler flag to prevent dynamic linking.
19276 link_static_flag=$lt_lt_prog_compiler_static
19278 # Does compiler simultaneously support -c and -o options?
19279 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19281 # Whether or not to add -lc for building shared libraries.
19282 build_libtool_need_lc=$archive_cmds_need_lc
19284 # Whether or not to disallow shared libs when runtime libs are static.
19285 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19287 # Compiler flag to allow reflexive dlopens.
19288 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19290 # Compiler flag to generate shared objects directly from archives.
19291 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19293 # Whether the compiler copes with passing no objects directly.
19294 compiler_needs_object=$lt_compiler_needs_object
19296 # Create an old-style archive from a shared archive.
19297 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19299 # Create a temporary old-style archive to link instead of a shared archive.
19300 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19302 # Commands used to build a shared archive.
19303 archive_cmds=$lt_archive_cmds
19304 archive_expsym_cmds=$lt_archive_expsym_cmds
19306 # Commands used to build a loadable module if different from building
19307 # a shared archive.
19308 module_cmds=$lt_module_cmds
19309 module_expsym_cmds=$lt_module_expsym_cmds
19311 # Whether we are building with GNU ld or not.
19312 with_gnu_ld=$lt_with_gnu_ld
19314 # Flag that allows shared libraries with undefined symbols to be built.
19315 allow_undefined_flag=$lt_allow_undefined_flag
19317 # Flag that enforces no undefined symbols.
19318 no_undefined_flag=$lt_no_undefined_flag
19320 # Flag to hardcode \$libdir into a binary during linking.
19321 # This must work even if \$libdir does not exist
19322 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19324 # If ld is used when linking, flag to hardcode \$libdir into a binary
19325 # during linking. This must work even if \$libdir does not exist.
19326 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19328 # Whether we need a single "-rpath" flag with a separated argument.
19329 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19331 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19332 # DIR into the resulting binary.
19333 hardcode_direct=$hardcode_direct
19335 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19336 # DIR into the resulting binary and the resulting library dependency is
19337 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19338 # library is relocated.
19339 hardcode_direct_absolute=$hardcode_direct_absolute
19341 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19342 # into the resulting binary.
19343 hardcode_minus_L=$hardcode_minus_L
19345 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19346 # into the resulting binary.
19347 hardcode_shlibpath_var=$hardcode_shlibpath_var
19349 # Set to "yes" if building a shared library automatically hardcodes DIR
19350 # into the library and all subsequent libraries and executables linked
19351 # against it.
19352 hardcode_automatic=$hardcode_automatic
19354 # Set to yes if linker adds runtime paths of dependent libraries
19355 # to runtime path list.
19356 inherit_rpath=$inherit_rpath
19358 # Whether libtool must link a program against all its dependency libraries.
19359 link_all_deplibs=$link_all_deplibs
19361 # Fix the shell variable \$srcfile for the compiler.
19362 fix_srcfile_path=$lt_fix_srcfile_path
19364 # Set to "yes" if exported symbols are required.
19365 always_export_symbols=$always_export_symbols
19367 # The commands to list exported symbols.
19368 export_symbols_cmds=$lt_export_symbols_cmds
19370 # Symbols that should not be listed in the preloaded symbols.
19371 exclude_expsyms=$lt_exclude_expsyms
19373 # Symbols that must always be exported.
19374 include_expsyms=$lt_include_expsyms
19376 # Commands necessary for linking programs (against libraries) with templates.
19377 prelink_cmds=$lt_prelink_cmds
19379 # Specify filename containing input files.
19380 file_list_spec=$lt_file_list_spec
19382 # How to hardcode a shared library path into an executable.
19383 hardcode_action=$hardcode_action
19385 # The directories searched by this compiler when creating a shared library.
19386 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19388 # Dependencies to place before and after the objects being linked to
19389 # create a shared library.
19390 predep_objects=$lt_predep_objects
19391 postdep_objects=$lt_postdep_objects
19392 predeps=$lt_predeps
19393 postdeps=$lt_postdeps
19395 # The library search path used internally by the compiler when linking
19396 # a shared library.
19397 compiler_lib_search_path=$lt_compiler_lib_search_path
19399 # ### END LIBTOOL CONFIG
19401 _LT_EOF
19403 case $host_os in
19404 aix3*)
19405 cat <<\_LT_EOF >> "$cfgfile"
19406 # AIX sometimes has problems with the GCC collect2 program. For some
19407 # reason, if we set the COLLECT_NAMES environment variable, the problems
19408 # vanish in a puff of smoke.
19409 if test "X${COLLECT_NAMES+set}" != Xset; then
19410 COLLECT_NAMES=
19411 export COLLECT_NAMES
19413 _LT_EOF
19415 esac
19418 ltmain="$ac_aux_dir/ltmain.sh"
19421 # We use sed instead of cat because bash on DJGPP gets confused if
19422 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19423 # text mode, it properly converts lines to CR/LF. This bash problem
19424 # is reportedly fixed, but why not run on old versions too?
19425 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19426 || (rm -f "$cfgfile"; exit 1)
19428 case $xsi_shell in
19429 yes)
19430 cat << \_LT_EOF >> "$cfgfile"
19432 # func_dirname file append nondir_replacement
19433 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19434 # otherwise set result to NONDIR_REPLACEMENT.
19435 func_dirname ()
19437 case ${1} in
19438 */*) func_dirname_result="${1%/*}${2}" ;;
19439 * ) func_dirname_result="${3}" ;;
19440 esac
19443 # func_basename file
19444 func_basename ()
19446 func_basename_result="${1##*/}"
19449 # func_dirname_and_basename file append nondir_replacement
19450 # perform func_basename and func_dirname in a single function
19451 # call:
19452 # dirname: Compute the dirname of FILE. If nonempty,
19453 # add APPEND to the result, otherwise set result
19454 # to NONDIR_REPLACEMENT.
19455 # value returned in "$func_dirname_result"
19456 # basename: Compute filename of FILE.
19457 # value retuned in "$func_basename_result"
19458 # Implementation must be kept synchronized with func_dirname
19459 # and func_basename. For efficiency, we do not delegate to
19460 # those functions but instead duplicate the functionality here.
19461 func_dirname_and_basename ()
19463 case ${1} in
19464 */*) func_dirname_result="${1%/*}${2}" ;;
19465 * ) func_dirname_result="${3}" ;;
19466 esac
19467 func_basename_result="${1##*/}"
19470 # func_stripname prefix suffix name
19471 # strip PREFIX and SUFFIX off of NAME.
19472 # PREFIX and SUFFIX must not contain globbing or regex special
19473 # characters, hashes, percent signs, but SUFFIX may contain a leading
19474 # dot (in which case that matches only a dot).
19475 func_stripname ()
19477 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19478 # positional parameters, so assign one to ordinary parameter first.
19479 func_stripname_result=${3}
19480 func_stripname_result=${func_stripname_result#"${1}"}
19481 func_stripname_result=${func_stripname_result%"${2}"}
19484 # func_opt_split
19485 func_opt_split ()
19487 func_opt_split_opt=${1%%=*}
19488 func_opt_split_arg=${1#*=}
19491 # func_lo2o object
19492 func_lo2o ()
19494 case ${1} in
19495 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19496 *) func_lo2o_result=${1} ;;
19497 esac
19500 # func_xform libobj-or-source
19501 func_xform ()
19503 func_xform_result=${1%.*}.lo
19506 # func_arith arithmetic-term...
19507 func_arith ()
19509 func_arith_result=$(( $* ))
19512 # func_len string
19513 # STRING may not start with a hyphen.
19514 func_len ()
19516 func_len_result=${#1}
19519 _LT_EOF
19521 *) # Bourne compatible functions.
19522 cat << \_LT_EOF >> "$cfgfile"
19524 # func_dirname file append nondir_replacement
19525 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19526 # otherwise set result to NONDIR_REPLACEMENT.
19527 func_dirname ()
19529 # Extract subdirectory from the argument.
19530 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19531 if test "X$func_dirname_result" = "X${1}"; then
19532 func_dirname_result="${3}"
19533 else
19534 func_dirname_result="$func_dirname_result${2}"
19538 # func_basename file
19539 func_basename ()
19541 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19545 # func_stripname prefix suffix name
19546 # strip PREFIX and SUFFIX off of NAME.
19547 # PREFIX and SUFFIX must not contain globbing or regex special
19548 # characters, hashes, percent signs, but SUFFIX may contain a leading
19549 # dot (in which case that matches only a dot).
19550 # func_strip_suffix prefix name
19551 func_stripname ()
19553 case ${2} in
19554 .*) func_stripname_result=`$ECHO "X${3}" \
19555 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19556 *) func_stripname_result=`$ECHO "X${3}" \
19557 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19558 esac
19561 # sed scripts:
19562 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19563 my_sed_long_arg='1s/^-[^=]*=//'
19565 # func_opt_split
19566 func_opt_split ()
19568 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19569 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19572 # func_lo2o object
19573 func_lo2o ()
19575 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19578 # func_xform libobj-or-source
19579 func_xform ()
19581 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19584 # func_arith arithmetic-term...
19585 func_arith ()
19587 func_arith_result=`expr "$@"`
19590 # func_len string
19591 # STRING may not start with a hyphen.
19592 func_len ()
19594 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19597 _LT_EOF
19598 esac
19600 case $lt_shell_append in
19601 yes)
19602 cat << \_LT_EOF >> "$cfgfile"
19604 # func_append var value
19605 # Append VALUE to the end of shell variable VAR.
19606 func_append ()
19608 eval "$1+=\$2"
19610 _LT_EOF
19613 cat << \_LT_EOF >> "$cfgfile"
19615 # func_append var value
19616 # Append VALUE to the end of shell variable VAR.
19617 func_append ()
19619 eval "$1=\$$1\$2"
19622 _LT_EOF
19624 esac
19627 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19628 || (rm -f "$cfgfile"; exit 1)
19630 mv -f "$cfgfile" "$ofile" ||
19631 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19632 chmod +x "$ofile"
19635 cat <<_LT_EOF >> "$ofile"
19637 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19639 # The linker used to build libraries.
19640 LD=$lt_LD_CXX
19642 # Commands used to build an old-style archive.
19643 old_archive_cmds=$lt_old_archive_cmds_CXX
19645 # A language specific compiler.
19646 CC=$lt_compiler_CXX
19648 # Is the compiler the GNU compiler?
19649 with_gcc=$GCC_CXX
19651 # Compiler flag to turn off builtin functions.
19652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19654 # How to pass a linker flag through the compiler.
19655 wl=$lt_lt_prog_compiler_wl_CXX
19657 # Additional compiler flags for building library objects.
19658 pic_flag=$lt_lt_prog_compiler_pic_CXX
19660 # Compiler flag to prevent dynamic linking.
19661 link_static_flag=$lt_lt_prog_compiler_static_CXX
19663 # Does compiler simultaneously support -c and -o options?
19664 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19666 # Whether or not to add -lc for building shared libraries.
19667 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19669 # Whether or not to disallow shared libs when runtime libs are static.
19670 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19672 # Compiler flag to allow reflexive dlopens.
19673 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19675 # Compiler flag to generate shared objects directly from archives.
19676 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19678 # Whether the compiler copes with passing no objects directly.
19679 compiler_needs_object=$lt_compiler_needs_object_CXX
19681 # Create an old-style archive from a shared archive.
19682 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19684 # Create a temporary old-style archive to link instead of a shared archive.
19685 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19687 # Commands used to build a shared archive.
19688 archive_cmds=$lt_archive_cmds_CXX
19689 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19691 # Commands used to build a loadable module if different from building
19692 # a shared archive.
19693 module_cmds=$lt_module_cmds_CXX
19694 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19696 # Whether we are building with GNU ld or not.
19697 with_gnu_ld=$lt_with_gnu_ld_CXX
19699 # Flag that allows shared libraries with undefined symbols to be built.
19700 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19702 # Flag that enforces no undefined symbols.
19703 no_undefined_flag=$lt_no_undefined_flag_CXX
19705 # Flag to hardcode \$libdir into a binary during linking.
19706 # This must work even if \$libdir does not exist
19707 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19709 # If ld is used when linking, flag to hardcode \$libdir into a binary
19710 # during linking. This must work even if \$libdir does not exist.
19711 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19713 # Whether we need a single "-rpath" flag with a separated argument.
19714 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19716 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19717 # DIR into the resulting binary.
19718 hardcode_direct=$hardcode_direct_CXX
19720 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19721 # DIR into the resulting binary and the resulting library dependency is
19722 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19723 # library is relocated.
19724 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19726 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19727 # into the resulting binary.
19728 hardcode_minus_L=$hardcode_minus_L_CXX
19730 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19731 # into the resulting binary.
19732 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19734 # Set to "yes" if building a shared library automatically hardcodes DIR
19735 # into the library and all subsequent libraries and executables linked
19736 # against it.
19737 hardcode_automatic=$hardcode_automatic_CXX
19739 # Set to yes if linker adds runtime paths of dependent libraries
19740 # to runtime path list.
19741 inherit_rpath=$inherit_rpath_CXX
19743 # Whether libtool must link a program against all its dependency libraries.
19744 link_all_deplibs=$link_all_deplibs_CXX
19746 # Fix the shell variable \$srcfile for the compiler.
19747 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19749 # Set to "yes" if exported symbols are required.
19750 always_export_symbols=$always_export_symbols_CXX
19752 # The commands to list exported symbols.
19753 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19755 # Symbols that should not be listed in the preloaded symbols.
19756 exclude_expsyms=$lt_exclude_expsyms_CXX
19758 # Symbols that must always be exported.
19759 include_expsyms=$lt_include_expsyms_CXX
19761 # Commands necessary for linking programs (against libraries) with templates.
19762 prelink_cmds=$lt_prelink_cmds_CXX
19764 # Specify filename containing input files.
19765 file_list_spec=$lt_file_list_spec_CXX
19767 # How to hardcode a shared library path into an executable.
19768 hardcode_action=$hardcode_action_CXX
19770 # The directories searched by this compiler when creating a shared library.
19771 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19773 # Dependencies to place before and after the objects being linked to
19774 # create a shared library.
19775 predep_objects=$lt_predep_objects_CXX
19776 postdep_objects=$lt_postdep_objects_CXX
19777 predeps=$lt_predeps_CXX
19778 postdeps=$lt_postdeps_CXX
19780 # The library search path used internally by the compiler when linking
19781 # a shared library.
19782 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19784 # ### END LIBTOOL TAG CONFIG: CXX
19785 _LT_EOF
19789 esac
19790 done # for ac_tag
19793 as_fn_exit 0
19794 _ACEOF
19795 ac_clean_files=$ac_clean_files_save
19797 test $ac_write_fail = 0 ||
19798 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19801 # configure is writing to config.log, and then calls config.status.
19802 # config.status does its own redirection, appending to config.log.
19803 # Unfortunately, on DOS this fails, as config.log is still kept open
19804 # by configure, so config.status won't be able to write to it; its
19805 # output is simply discarded. So we exec the FD to /dev/null,
19806 # effectively closing config.log, so it can be properly (re)opened and
19807 # appended to by config.status. When coming back to configure, we
19808 # need to make the FD available again.
19809 if test "$no_create" != yes; then
19810 ac_cs_success=:
19811 ac_config_status_args=
19812 test "$silent" = yes &&
19813 ac_config_status_args="$ac_config_status_args --quiet"
19814 exec 5>/dev/null
19815 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19816 exec 5>>config.log
19817 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19818 # would make configure fail if this is the last instruction.
19819 $ac_cs_success || as_fn_exit $?
19821 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19823 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}