* dse.c (get_stored_val, get_call_args): Use gen_int_mode.
[official-gcc.git] / libitm / configure
blob9b06359411192e2474a2469347cc7a784cc3c8c2
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU TM Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GNU TM Runtime Library'
558 PACKAGE_TARNAME='libitm'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU TM Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libitm/'
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 ARCH_FUTEX_FALSE
605 ARCH_FUTEX_TRUE
606 ARCH_X86_AVX_FALSE
607 ARCH_X86_AVX_TRUE
608 ARCH_X86_FALSE
609 ARCH_X86_TRUE
610 link_itm
611 XLDFLAGS
612 XCFLAGS
613 config_path
614 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
615 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
616 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
617 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
618 LIBITM_BUILD_VERSIONED_SHLIB_FALSE
619 LIBITM_BUILD_VERSIONED_SHLIB_TRUE
620 OPT_LDFLAGS
621 SECTION_LDFLAGS
622 libtool_VERSION
623 MAINT
624 MAINTAINER_MODE_FALSE
625 MAINTAINER_MODE_TRUE
626 enable_static
627 enable_shared
628 CXXCPP
630 OTOOL64
631 OTOOL
632 LIPO
633 NMEDIT
634 DSYMUTIL
635 OBJDUMP
636 LN_S
637 ac_ct_DUMPBIN
638 DUMPBIN
640 FGREP
641 EGREP
642 GREP
644 LIBTOOL
645 BUILD_INFO_FALSE
646 BUILD_INFO_TRUE
647 PERL
648 RANLIB
651 am__fastdepCCAS_FALSE
652 am__fastdepCCAS_TRUE
653 CCASDEPMODE
654 CCASFLAGS
655 CCAS
656 am__fastdepCXX_FALSE
657 am__fastdepCXX_TRUE
658 CXXDEPMODE
659 ac_ct_CXX
660 CXXFLAGS
662 am__fastdepCC_FALSE
663 am__fastdepCC_TRUE
664 CCDEPMODE
665 AMDEPBACKSLASH
666 AMDEP_FALSE
667 AMDEP_TRUE
668 am__quote
669 am__include
670 DEPDIR
671 OBJEXT
672 EXEEXT
673 ac_ct_CC
674 CPPFLAGS
675 LDFLAGS
676 CFLAGS
678 toolexeclibdir
679 toolexecdir
680 multi_basedir
681 am__untar
682 am__tar
683 AMTAR
684 am__leading_dot
685 SET_MAKE
687 mkdir_p
688 MKDIR_P
689 INSTALL_STRIP_PROGRAM
690 STRIP
691 install_sh
692 MAKEINFO
693 AUTOHEADER
694 AUTOMAKE
695 AUTOCONF
696 ACLOCAL
697 VERSION
698 PACKAGE
699 CYGPATH_W
700 am__isrc
701 INSTALL_DATA
702 INSTALL_SCRIPT
703 INSTALL_PROGRAM
704 target_os
705 target_vendor
706 target_cpu
707 target
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 GENINSRC_FALSE
717 GENINSRC_TRUE
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 ECHO_T
723 ECHO_N
724 ECHO_C
725 DEFS
726 mandir
727 localedir
728 libdir
729 psdir
730 pdfdir
731 dvidir
732 htmldir
733 infodir
734 docdir
735 oldincludedir
736 includedir
737 localstatedir
738 sharedstatedir
739 sysconfdir
740 datadir
741 datarootdir
742 libexecdir
743 sbindir
744 bindir
745 program_transform_name
746 prefix
747 exec_prefix
748 PACKAGE_URL
749 PACKAGE_BUGREPORT
750 PACKAGE_STRING
751 PACKAGE_VERSION
752 PACKAGE_TARNAME
753 PACKAGE_NAME
754 PATH_SEPARATOR
755 SHELL'
756 ac_subst_files=''
757 ac_user_opts='
758 enable_option_checking
759 enable_version_specific_runtime_libs
760 enable_generated_files_in_srcdir
761 enable_multilib
762 enable_dependency_tracking
763 enable_shared
764 enable_static
765 with_pic
766 enable_fast_install
767 with_gnu_ld
768 enable_libtool_lock
769 enable_maintainer_mode
770 enable_linux_futex
771 enable_tls
772 enable_symvers
774 ac_precious_vars='build_alias
775 host_alias
776 target_alias
778 CPPFLAGS
779 CXXCPP'
782 # Initialize some variables set by options.
783 ac_init_help=
784 ac_init_version=false
785 ac_unrecognized_opts=
786 ac_unrecognized_sep=
787 # The variables have the same names as the options, with
788 # dashes changed to underlines.
789 cache_file=/dev/null
790 exec_prefix=NONE
791 no_create=
792 no_recursion=
793 prefix=NONE
794 program_prefix=NONE
795 program_suffix=NONE
796 program_transform_name=s,x,x,
797 silent=
798 site=
799 srcdir=
800 verbose=
801 x_includes=NONE
802 x_libraries=NONE
804 # Installation directory options.
805 # These are left unexpanded so users can "make install exec_prefix=/foo"
806 # and all the variables that are supposed to be based on exec_prefix
807 # by default will actually change.
808 # Use braces instead of parens because sh, perl, etc. also accept them.
809 # (The list follows the same order as the GNU Coding Standards.)
810 bindir='${exec_prefix}/bin'
811 sbindir='${exec_prefix}/sbin'
812 libexecdir='${exec_prefix}/libexec'
813 datarootdir='${prefix}/share'
814 datadir='${datarootdir}'
815 sysconfdir='${prefix}/etc'
816 sharedstatedir='${prefix}/com'
817 localstatedir='${prefix}/var'
818 includedir='${prefix}/include'
819 oldincludedir='/usr/include'
820 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821 infodir='${datarootdir}/info'
822 htmldir='${docdir}'
823 dvidir='${docdir}'
824 pdfdir='${docdir}'
825 psdir='${docdir}'
826 libdir='${exec_prefix}/lib'
827 localedir='${datarootdir}/locale'
828 mandir='${datarootdir}/man'
830 ac_prev=
831 ac_dashdash=
832 for ac_option
834 # If the previous option needs an argument, assign it.
835 if test -n "$ac_prev"; then
836 eval $ac_prev=\$ac_option
837 ac_prev=
838 continue
841 case $ac_option in
842 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
843 *) ac_optarg=yes ;;
844 esac
846 # Accept the important Cygnus configure options, so we can diagnose typos.
848 case $ac_dashdash$ac_option in
850 ac_dashdash=yes ;;
852 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 ac_prev=bindir ;;
854 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 bindir=$ac_optarg ;;
857 -build | --build | --buil | --bui | --bu)
858 ac_prev=build_alias ;;
859 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
860 build_alias=$ac_optarg ;;
862 -cache-file | --cache-file | --cache-fil | --cache-fi \
863 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
864 ac_prev=cache_file ;;
865 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
866 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
867 cache_file=$ac_optarg ;;
869 --config-cache | -C)
870 cache_file=config.cache ;;
872 -datadir | --datadir | --datadi | --datad)
873 ac_prev=datadir ;;
874 -datadir=* | --datadir=* | --datadi=* | --datad=*)
875 datadir=$ac_optarg ;;
877 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
878 | --dataroo | --dataro | --datar)
879 ac_prev=datarootdir ;;
880 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
881 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
882 datarootdir=$ac_optarg ;;
884 -disable-* | --disable-*)
885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
886 # Reject names that are not valid shell variable names.
887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888 as_fn_error "invalid feature name: $ac_useropt"
889 ac_useropt_orig=$ac_useropt
890 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
891 case $ac_user_opts in
893 "enable_$ac_useropt"
894 "*) ;;
895 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
896 ac_unrecognized_sep=', ';;
897 esac
898 eval enable_$ac_useropt=no ;;
900 -docdir | --docdir | --docdi | --doc | --do)
901 ac_prev=docdir ;;
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 docdir=$ac_optarg ;;
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 ac_prev=dvidir ;;
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 dvidir=$ac_optarg ;;
910 -enable-* | --enable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=\$ac_optarg ;;
926 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
927 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
928 | --exec | --exe | --ex)
929 ac_prev=exec_prefix ;;
930 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
931 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
932 | --exec=* | --exe=* | --ex=*)
933 exec_prefix=$ac_optarg ;;
935 -gas | --gas | --ga | --g)
936 # Obsolete; use --with-gas.
937 with_gas=yes ;;
939 -help | --help | --hel | --he | -h)
940 ac_init_help=long ;;
941 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
942 ac_init_help=recursive ;;
943 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
944 ac_init_help=short ;;
946 -host | --host | --hos | --ho)
947 ac_prev=host_alias ;;
948 -host=* | --host=* | --hos=* | --ho=*)
949 host_alias=$ac_optarg ;;
951 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 ac_prev=htmldir ;;
953 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 | --ht=*)
955 htmldir=$ac_optarg ;;
957 -includedir | --includedir | --includedi | --included | --include \
958 | --includ | --inclu | --incl | --inc)
959 ac_prev=includedir ;;
960 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
961 | --includ=* | --inclu=* | --incl=* | --inc=*)
962 includedir=$ac_optarg ;;
964 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 ac_prev=infodir ;;
966 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
967 infodir=$ac_optarg ;;
969 -libdir | --libdir | --libdi | --libd)
970 ac_prev=libdir ;;
971 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 libdir=$ac_optarg ;;
974 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
975 | --libexe | --libex | --libe)
976 ac_prev=libexecdir ;;
977 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
978 | --libexe=* | --libex=* | --libe=*)
979 libexecdir=$ac_optarg ;;
981 -localedir | --localedir | --localedi | --localed | --locale)
982 ac_prev=localedir ;;
983 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
984 localedir=$ac_optarg ;;
986 -localstatedir | --localstatedir | --localstatedi | --localstated \
987 | --localstate | --localstat | --localsta | --localst | --locals)
988 ac_prev=localstatedir ;;
989 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
990 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
991 localstatedir=$ac_optarg ;;
993 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 ac_prev=mandir ;;
995 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
996 mandir=$ac_optarg ;;
998 -nfp | --nfp | --nf)
999 # Obsolete; use --without-fp.
1000 with_fp=no ;;
1002 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1003 | --no-cr | --no-c | -n)
1004 no_create=yes ;;
1006 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1007 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 no_recursion=yes ;;
1010 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1011 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1012 | --oldin | --oldi | --old | --ol | --o)
1013 ac_prev=oldincludedir ;;
1014 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1015 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1016 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1017 oldincludedir=$ac_optarg ;;
1019 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 ac_prev=prefix ;;
1021 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1022 prefix=$ac_optarg ;;
1024 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1025 | --program-pre | --program-pr | --program-p)
1026 ac_prev=program_prefix ;;
1027 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1028 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1029 program_prefix=$ac_optarg ;;
1031 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1032 | --program-suf | --program-su | --program-s)
1033 ac_prev=program_suffix ;;
1034 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1035 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1036 program_suffix=$ac_optarg ;;
1038 -program-transform-name | --program-transform-name \
1039 | --program-transform-nam | --program-transform-na \
1040 | --program-transform-n | --program-transform- \
1041 | --program-transform | --program-transfor \
1042 | --program-transfo | --program-transf \
1043 | --program-trans | --program-tran \
1044 | --progr-tra | --program-tr | --program-t)
1045 ac_prev=program_transform_name ;;
1046 -program-transform-name=* | --program-transform-name=* \
1047 | --program-transform-nam=* | --program-transform-na=* \
1048 | --program-transform-n=* | --program-transform-=* \
1049 | --program-transform=* | --program-transfor=* \
1050 | --program-transfo=* | --program-transf=* \
1051 | --program-trans=* | --program-tran=* \
1052 | --progr-tra=* | --program-tr=* | --program-t=*)
1053 program_transform_name=$ac_optarg ;;
1055 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 ac_prev=pdfdir ;;
1057 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1058 pdfdir=$ac_optarg ;;
1060 -psdir | --psdir | --psdi | --psd | --ps)
1061 ac_prev=psdir ;;
1062 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 psdir=$ac_optarg ;;
1065 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1066 | -silent | --silent | --silen | --sile | --sil)
1067 silent=yes ;;
1069 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 ac_prev=sbindir ;;
1071 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 | --sbi=* | --sb=*)
1073 sbindir=$ac_optarg ;;
1075 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1076 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1077 | --sharedst | --shareds | --shared | --share | --shar \
1078 | --sha | --sh)
1079 ac_prev=sharedstatedir ;;
1080 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1081 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1082 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 | --sha=* | --sh=*)
1084 sharedstatedir=$ac_optarg ;;
1086 -site | --site | --sit)
1087 ac_prev=site ;;
1088 -site=* | --site=* | --sit=*)
1089 site=$ac_optarg ;;
1091 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 ac_prev=srcdir ;;
1093 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1094 srcdir=$ac_optarg ;;
1096 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1097 | --syscon | --sysco | --sysc | --sys | --sy)
1098 ac_prev=sysconfdir ;;
1099 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1100 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1101 sysconfdir=$ac_optarg ;;
1103 -target | --target | --targe | --targ | --tar | --ta | --t)
1104 ac_prev=target_alias ;;
1105 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1106 target_alias=$ac_optarg ;;
1108 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 verbose=yes ;;
1111 -version | --version | --versio | --versi | --vers | -V)
1112 ac_init_version=: ;;
1114 -with-* | --with-*)
1115 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118 as_fn_error "invalid package name: $ac_useropt"
1119 ac_useropt_orig=$ac_useropt
1120 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1123 "with_$ac_useropt"
1124 "*) ;;
1125 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1126 ac_unrecognized_sep=', ';;
1127 esac
1128 eval with_$ac_useropt=\$ac_optarg ;;
1130 -without-* | --without-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=no ;;
1146 --x)
1147 # Obsolete; use --with-x.
1148 with_x=yes ;;
1150 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1151 | --x-incl | --x-inc | --x-in | --x-i)
1152 ac_prev=x_includes ;;
1153 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1154 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1155 x_includes=$ac_optarg ;;
1157 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1158 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1159 ac_prev=x_libraries ;;
1160 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1161 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1162 x_libraries=$ac_optarg ;;
1164 -*) as_fn_error "unrecognized option: \`$ac_option'
1165 Try \`$0 --help' for more information."
1168 *=*)
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 case $ac_envvar in #(
1172 '' | [0-9]* | *[!_$as_cr_alnum]* )
1173 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1174 esac
1175 eval $ac_envvar=\$ac_optarg
1176 export $ac_envvar ;;
1179 # FIXME: should be removed in autoconf 3.0.
1180 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1181 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1183 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1186 esac
1187 done
1189 if test -n "$ac_prev"; then
1190 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1191 as_fn_error "missing argument to $ac_option"
1194 if test -n "$ac_unrecognized_opts"; then
1195 case $enable_option_checking in
1196 no) ;;
1197 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1198 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1199 esac
1202 # Check all directory arguments for consistency.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1210 case $ac_val in
1211 */ )
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1214 esac
1215 # Be sure to have absolute directory names.
1216 case $ac_val in
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1219 esac
1220 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1221 done
1223 # There might be people who depend on the old broken behavior: `$host'
1224 # used to hold the argument of --host etc.
1225 # FIXME: To remove some day.
1226 build=$build_alias
1227 host=$host_alias
1228 target=$target_alias
1230 # FIXME: To remove some day.
1231 if test "x$host_alias" != x; then
1232 if test "x$build_alias" = x; then
1233 cross_compiling=maybe
1234 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1235 If a cross compiler is detected then cross compile mode will be used." >&2
1236 elif test "x$build_alias" != "x$host_alias"; then
1237 cross_compiling=yes
1241 ac_tool_prefix=
1242 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1244 test "$silent" = yes && exec 6>/dev/null
1247 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1248 ac_ls_di=`ls -di .` &&
1249 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1250 as_fn_error "working directory cannot be determined"
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 as_fn_error "pwd does not report name of working directory"
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$as_myself" ||
1260 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$as_myself" : 'X\(//\)[^/]' \| \
1262 X"$as_myself" : 'X\(//\)$' \| \
1263 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1264 $as_echo X"$as_myself" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1273 /^X\(\/\/\)$/{
1274 s//\1/
1277 /^X\(\/\).*/{
1278 s//\1/
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1286 else
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1296 pwd)`
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 srcdir=.
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1304 case $srcdir in
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 esac
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1312 done
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1320 cat <<_ACEOF
1321 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1330 Configuration:
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 [PREFIX]
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1374 _ACEOF
1376 cat <<\_ACEOF
1378 Program names:
1379 --program-prefix=PREFIX prepend PREFIX to installed program names
1380 --program-suffix=SUFFIX append SUFFIX to installed program names
1381 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1383 System types:
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 --target=TARGET configure for building compilers for TARGET [HOST]
1387 _ACEOF
1390 if test -n "$ac_init_help"; then
1391 case $ac_init_help in
1392 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1393 esac
1394 cat <<\_ACEOF
1396 Optional Features:
1397 --disable-option-checking ignore unrecognized --enable/--with options
1398 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1399 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1400 --enable-version-specific-runtime-libs
1401 Specify that runtime libraries should be installed
1402 in a compiler-specific directory [default=no]
1403 --enable-generated-files-in-srcdir
1404 put copies of generated files in source dir intended
1405 for creating source tarballs for users without
1406 texinfo bison or flex. [default=no]
1407 --enable-multilib build many library versions (default)
1408 --disable-dependency-tracking speeds up one-time build
1409 --enable-dependency-tracking do not reject slow dependency extractors
1410 --enable-shared[=PKGS] build shared libraries [default=yes]
1411 --enable-static[=PKGS] build static libraries [default=yes]
1412 --enable-fast-install[=PKGS]
1413 optimize for fast installation [default=yes]
1414 --disable-libtool-lock avoid locking (might break parallel builds)
1415 --enable-maintainer-mode enable make rules and dependencies not useful
1416 (and sometimes confusing) to the casual installer
1417 --enable-linux-futex use the Linux futex system call [default=default]
1418 --enable-tls Use thread-local storage [default=yes]
1419 --enable-symvers=STYLE enables symbol versioning of the shared library
1420 [default=yes]
1422 Optional Packages:
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1425 --with-pic try to use only PIC/non-PIC objects [default=use
1426 both]
1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1429 Some influential environment variables:
1430 CC C compiler command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1433 nonstandard directory <lib dir>
1434 LIBS libraries to pass to the linker, e.g. -l<library>
1435 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1436 you have headers in a nonstandard directory <include dir>
1437 CXX C++ compiler command
1438 CXXFLAGS C++ compiler flags
1439 CCAS assembler compiler command (defaults to CC)
1440 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1441 CPP C preprocessor
1442 CXXCPP C++ preprocessor
1444 Use these variables to override the choices made by `configure' or to help
1445 it to find libraries and programs with nonstandard names/locations.
1447 Report bugs to the package provider.
1448 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1449 General help using GNU software: <http://www.gnu.org/gethelp/>.
1450 _ACEOF
1451 ac_status=$?
1454 if test "$ac_init_help" = "recursive"; then
1455 # If there are subdirs, report their specific --help.
1456 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1457 test -d "$ac_dir" ||
1458 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1459 continue
1460 ac_builddir=.
1462 case "$ac_dir" in
1463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1466 # A ".." for each directory in $ac_dir_suffix.
1467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1468 case $ac_top_builddir_sub in
1469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1471 esac ;;
1472 esac
1473 ac_abs_top_builddir=$ac_pwd
1474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1475 # for backward compatibility:
1476 ac_top_builddir=$ac_top_build_prefix
1478 case $srcdir in
1479 .) # We are building in place.
1480 ac_srcdir=.
1481 ac_top_srcdir=$ac_top_builddir_sub
1482 ac_abs_top_srcdir=$ac_pwd ;;
1483 [\\/]* | ?:[\\/]* ) # Absolute name.
1484 ac_srcdir=$srcdir$ac_dir_suffix;
1485 ac_top_srcdir=$srcdir
1486 ac_abs_top_srcdir=$srcdir ;;
1487 *) # Relative name.
1488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1489 ac_top_srcdir=$ac_top_build_prefix$srcdir
1490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1491 esac
1492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1494 cd "$ac_dir" || { ac_status=$?; continue; }
1495 # Check for guested configure.
1496 if test -f "$ac_srcdir/configure.gnu"; then
1497 echo &&
1498 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1499 elif test -f "$ac_srcdir/configure"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure" --help=recursive
1502 else
1503 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1504 fi || ac_status=$?
1505 cd "$ac_pwd" || { ac_status=$?; break; }
1506 done
1509 test -n "$ac_init_help" && exit $ac_status
1510 if $ac_init_version; then
1511 cat <<\_ACEOF
1512 GNU TM Runtime Library configure 1.0
1513 generated by GNU Autoconf 2.64
1515 Copyright (C) 2009 Free Software Foundation, Inc.
1516 This configure script is free software; the Free Software Foundation
1517 gives unlimited permission to copy, distribute and modify it.
1518 _ACEOF
1519 exit
1522 ## ------------------------ ##
1523 ## Autoconf initialization. ##
1524 ## ------------------------ ##
1526 # ac_fn_c_try_compile LINENO
1527 # --------------------------
1528 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1529 ac_fn_c_try_compile ()
1531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1532 rm -f conftest.$ac_objext
1533 if { { ac_try="$ac_compile"
1534 case "(($ac_try" in
1535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1536 *) ac_try_echo=$ac_try;;
1537 esac
1538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_compile") 2>conftest.err
1541 ac_status=$?
1542 if test -s conftest.err; then
1543 grep -v '^ *+' conftest.err >conftest.er1
1544 cat conftest.er1 >&5
1545 mv -f conftest.er1 conftest.err
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } && {
1549 test -z "$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1551 } && test -s conftest.$ac_objext; then :
1552 ac_retval=0
1553 else
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.$ac_ext >&5
1557 ac_retval=1
1559 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1560 return $ac_retval
1562 } # ac_fn_c_try_compile
1564 # ac_fn_cxx_try_compile LINENO
1565 # ----------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_cxx_try_compile ()
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext
1571 if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_cxx_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.$ac_objext; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1595 ac_retval=1
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 return $ac_retval
1600 } # ac_fn_cxx_try_compile
1602 # ac_fn_c_try_link LINENO
1603 # -----------------------
1604 # Try to link conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_link ()
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext conftest$ac_exeext
1609 if { { ac_try="$ac_link"
1610 case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_link") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest$ac_exeext && {
1628 test "$cross_compiling" = yes ||
1629 $as_test_x conftest$ac_exeext
1630 }; then :
1631 ac_retval=0
1632 else
1633 $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1636 ac_retval=1
1638 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1639 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1640 # interfere with the next link command; also delete a directory that is
1641 # left behind by Apple's compiler. We do this before executing the actions.
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644 return $ac_retval
1646 } # ac_fn_c_try_link
1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists and can be compiled using the include files in
1651 # INCLUDES, setting the cache variable VAR accordingly.
1652 ac_fn_c_check_header_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 $as_echo_n "(cached) " >&6
1659 else
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666 eval "$3=yes"
1667 else
1668 eval "$3=no"
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1672 eval ac_res=\$$3
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 } # ac_fn_c_check_header_compile
1679 # ac_fn_c_try_cpp LINENO
1680 # ----------------------
1681 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_cpp ()
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 if { { ac_try="$ac_cpp conftest.$ac_ext"
1686 case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } >/dev/null && {
1701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 }; then :
1704 ac_retval=0
1705 else
1706 $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1709 ac_retval=1
1711 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712 return $ac_retval
1714 } # ac_fn_c_try_cpp
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1720 ac_fn_c_try_run ()
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734 { { case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_try") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: program exited with status $ac_status" >&5
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1750 ac_retval=$ac_status
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 return $ac_retval
1756 } # ac_fn_c_try_run
1758 # ac_fn_c_check_func LINENO FUNC VAR
1759 # ----------------------------------
1760 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1761 ac_fn_c_check_func ()
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1767 $as_echo_n "(cached) " >&6
1768 else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h. */
1771 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1773 #define $2 innocuous_$2
1775 /* System header to define __stub macros and hopefully few prototypes,
1776 which can conflict with char $2 (); below.
1777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1778 <limits.h> exists even on freestanding compilers. */
1780 #ifdef __STDC__
1781 # include <limits.h>
1782 #else
1783 # include <assert.h>
1784 #endif
1786 #undef $2
1788 /* Override any GCC internal prototype to avoid an error.
1789 Use char because int might match the return type of a GCC
1790 builtin and then its argument prototype would still apply. */
1791 #ifdef __cplusplus
1792 extern "C"
1793 #endif
1794 char $2 ();
1795 /* The GNU C library defines this for functions which it implements
1796 to always fail with ENOSYS. Some functions are actually named
1797 something starting with __ and the normal name is an alias. */
1798 #if defined __stub_$2 || defined __stub___$2
1799 choke me
1800 #endif
1803 main ()
1805 return $2 ();
1807 return 0;
1809 _ACEOF
1810 if ac_fn_c_try_link "$LINENO"; then :
1811 eval "$3=yes"
1812 else
1813 eval "$3=no"
1815 rm -f core conftest.err conftest.$ac_objext \
1816 conftest$ac_exeext conftest.$ac_ext
1818 eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823 } # ac_fn_c_check_func
1825 # ac_fn_cxx_try_cpp LINENO
1826 # ------------------------
1827 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_cpp ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { { ac_try="$ac_cpp conftest.$ac_ext"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1839 ac_status=$?
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } >/dev/null && {
1847 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1848 test ! -s conftest.err
1849 }; then :
1850 ac_retval=0
1851 else
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 ac_retval=1
1857 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858 return $ac_retval
1860 } # ac_fn_cxx_try_cpp
1862 # ac_fn_cxx_try_link LINENO
1863 # -------------------------
1864 # Try to link conftest.$ac_ext, and return whether this succeeded.
1865 ac_fn_cxx_try_link ()
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 rm -f conftest.$ac_objext conftest$ac_exeext
1869 if { { ac_try="$ac_link"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_link") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } && {
1885 test -z "$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 } && test -s conftest$ac_exeext && {
1888 test "$cross_compiling" = yes ||
1889 $as_test_x conftest$ac_exeext
1890 }; then :
1891 ac_retval=0
1892 else
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1896 ac_retval=1
1898 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1899 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1900 # interfere with the next link command; also delete a directory that is
1901 # left behind by Apple's compiler. We do this before executing the actions.
1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1903 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1904 return $ac_retval
1906 } # ac_fn_cxx_try_link
1908 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1909 # -------------------------------------------------------
1910 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1911 # the include files in INCLUDES and setting the cache variable VAR
1912 # accordingly.
1913 ac_fn_c_check_header_mongrel ()
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918 $as_echo_n "checking for $2... " >&6; }
1919 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920 $as_echo_n "(cached) " >&6
1922 eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 else
1926 # Is the header compilable?
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1928 $as_echo_n "checking $2 usability... " >&6; }
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1932 #include <$2>
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935 ac_header_compiler=yes
1936 else
1937 ac_header_compiler=no
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1941 $as_echo "$ac_header_compiler" >&6; }
1943 # Is the header present?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1945 $as_echo_n "checking $2 presence... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1948 #include <$2>
1949 _ACEOF
1950 if ac_fn_c_try_cpp "$LINENO"; then :
1951 ac_header_preproc=yes
1952 else
1953 ac_header_preproc=no
1955 rm -f conftest.err conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1957 $as_echo "$ac_header_preproc" >&6; }
1959 # So? What about this header?
1960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1961 yes:no: )
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1963 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967 no:yes:* )
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1969 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1971 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1973 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1975 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1977 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 esac
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983 $as_echo_n "(cached) " >&6
1984 else
1985 eval "$3=\$ac_header_compiler"
1987 eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993 } # ac_fn_c_check_header_mongrel
1995 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1996 # -------------------------------------------
1997 # Tests whether TYPE exists after having included INCLUDES, setting cache
1998 # variable VAR accordingly.
1999 ac_fn_c_check_type ()
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 eval "$3=no"
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2012 main ()
2014 if (sizeof ($2))
2015 return 0;
2017 return 0;
2019 _ACEOF
2020 if ac_fn_c_try_compile "$LINENO"; then :
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2025 main ()
2027 if (sizeof (($2)))
2028 return 0;
2030 return 0;
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2035 else
2036 eval "$3=yes"
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 eval ac_res=\$$3
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2047 } # ac_fn_c_check_type
2049 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2050 # --------------------------------------------
2051 # Tries to find the compile-time value of EXPR in a program that includes
2052 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2053 # computed
2054 ac_fn_c_compute_int ()
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 if test "$cross_compiling" = yes; then
2058 # Depending upon the size, compute the lo and hi bounds.
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2063 main ()
2065 static int test_array [1 - 2 * !(($2) >= 0)];
2066 test_array [0] = 0
2069 return 0;
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 ac_lo=0 ac_mid=0
2074 while :; do
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2079 main ()
2081 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2082 test_array [0] = 0
2085 return 0;
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_hi=$ac_mid; break
2090 else
2091 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2092 if test $ac_lo -le $ac_mid; then
2093 ac_lo= ac_hi=
2094 break
2096 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 done
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2105 main ()
2107 static int test_array [1 - 2 * !(($2) < 0)];
2108 test_array [0] = 0
2111 return 0;
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 ac_hi=-1 ac_mid=-1
2116 while :; do
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2121 main ()
2123 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2124 test_array [0] = 0
2127 return 0;
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131 ac_lo=$ac_mid; break
2132 else
2133 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2134 if test $ac_mid -le $ac_hi; then
2135 ac_lo= ac_hi=
2136 break
2138 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 done
2142 else
2143 ac_lo= ac_hi=
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 # Binary search between lo and hi bounds.
2149 while test "x$ac_lo" != "x$ac_hi"; do
2150 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2155 main ()
2157 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2158 test_array [0] = 0
2161 return 0;
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 ac_hi=$ac_mid
2166 else
2167 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 done
2171 case $ac_lo in #((
2172 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2173 '') ac_retval=1 ;;
2174 esac
2175 else
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2179 static long int longval () { return $2; }
2180 static unsigned long int ulongval () { return $2; }
2181 #include <stdio.h>
2182 #include <stdlib.h>
2184 main ()
2187 FILE *f = fopen ("conftest.val", "w");
2188 if (! f)
2189 return 1;
2190 if (($2) < 0)
2192 long int i = longval ();
2193 if (i != ($2))
2194 return 1;
2195 fprintf (f, "%ld", i);
2197 else
2199 unsigned long int i = ulongval ();
2200 if (i != ($2))
2201 return 1;
2202 fprintf (f, "%lu", i);
2204 /* Do not output a trailing newline, as this causes \r\n confusion
2205 on some platforms. */
2206 return ferror (f) || fclose (f) != 0;
2209 return 0;
2211 _ACEOF
2212 if ac_fn_c_try_run "$LINENO"; then :
2213 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2214 else
2215 ac_retval=1
2217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2218 conftest.$ac_objext conftest.beam conftest.$ac_ext
2219 rm -f conftest.val
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2223 return $ac_retval
2225 } # ac_fn_c_compute_int
2226 cat >config.log <<_ACEOF
2227 This file contains any messages produced by compilers while
2228 running configure, to aid debugging if configure makes a mistake.
2230 It was created by GNU TM Runtime Library $as_me 1.0, which was
2231 generated by GNU Autoconf 2.64. Invocation command line was
2233 $ $0 $@
2235 _ACEOF
2236 exec 5>>config.log
2238 cat <<_ASUNAME
2239 ## --------- ##
2240 ## Platform. ##
2241 ## --------- ##
2243 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2244 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2245 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2246 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2247 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2249 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2250 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2252 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2253 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2254 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2255 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2256 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2257 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2258 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2260 _ASUNAME
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2265 IFS=$as_save_IFS
2266 test -z "$as_dir" && as_dir=.
2267 $as_echo "PATH: $as_dir"
2268 done
2269 IFS=$as_save_IFS
2271 } >&5
2273 cat >&5 <<_ACEOF
2276 ## ----------- ##
2277 ## Core tests. ##
2278 ## ----------- ##
2280 _ACEOF
2283 # Keep a trace of the command line.
2284 # Strip out --no-create and --no-recursion so they do not pile up.
2285 # Strip out --silent because we don't want to record it for future runs.
2286 # Also quote any args containing shell meta-characters.
2287 # Make two passes to allow for proper duplicate-argument suppression.
2288 ac_configure_args=
2289 ac_configure_args0=
2290 ac_configure_args1=
2291 ac_must_keep_next=false
2292 for ac_pass in 1 2
2294 for ac_arg
2296 case $ac_arg in
2297 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2299 | -silent | --silent | --silen | --sile | --sil)
2300 continue ;;
2301 *\'*)
2302 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2303 esac
2304 case $ac_pass in
2305 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2307 as_fn_append ac_configure_args1 " '$ac_arg'"
2308 if test $ac_must_keep_next = true; then
2309 ac_must_keep_next=false # Got value, back to normal.
2310 else
2311 case $ac_arg in
2312 *=* | --config-cache | -C | -disable-* | --disable-* \
2313 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2314 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2315 | -with-* | --with-* | -without-* | --without-* | --x)
2316 case "$ac_configure_args0 " in
2317 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2318 esac
2320 -* ) ac_must_keep_next=true ;;
2321 esac
2323 as_fn_append ac_configure_args " '$ac_arg'"
2325 esac
2326 done
2327 done
2328 { ac_configure_args0=; unset ac_configure_args0;}
2329 { ac_configure_args1=; unset ac_configure_args1;}
2331 # When interrupted or exit'd, cleanup temporary files, and complete
2332 # config.log. We remove comments because anyway the quotes in there
2333 # would cause problems or look ugly.
2334 # WARNING: Use '\'' to represent an apostrophe within the trap.
2335 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2336 trap 'exit_status=$?
2337 # Save into config.log some information that might help in debugging.
2339 echo
2341 cat <<\_ASBOX
2342 ## ---------------- ##
2343 ## Cache variables. ##
2344 ## ---------------- ##
2345 _ASBOX
2346 echo
2347 # The following way of writing the cache mishandles newlines in values,
2349 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2350 eval ac_val=\$$ac_var
2351 case $ac_val in #(
2352 *${as_nl}*)
2353 case $ac_var in #(
2354 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2355 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2356 esac
2357 case $ac_var in #(
2358 _ | IFS | as_nl) ;; #(
2359 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2360 *) { eval $ac_var=; unset $ac_var;} ;;
2361 esac ;;
2362 esac
2363 done
2364 (set) 2>&1 |
2365 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2366 *${as_nl}ac_space=\ *)
2367 sed -n \
2368 "s/'\''/'\''\\\\'\'''\''/g;
2369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2370 ;; #(
2372 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2374 esac |
2375 sort
2377 echo
2379 cat <<\_ASBOX
2380 ## ----------------- ##
2381 ## Output variables. ##
2382 ## ----------------- ##
2383 _ASBOX
2384 echo
2385 for ac_var in $ac_subst_vars
2387 eval ac_val=\$$ac_var
2388 case $ac_val in
2389 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2390 esac
2391 $as_echo "$ac_var='\''$ac_val'\''"
2392 done | sort
2393 echo
2395 if test -n "$ac_subst_files"; then
2396 cat <<\_ASBOX
2397 ## ------------------- ##
2398 ## File substitutions. ##
2399 ## ------------------- ##
2400 _ASBOX
2401 echo
2402 for ac_var in $ac_subst_files
2404 eval ac_val=\$$ac_var
2405 case $ac_val in
2406 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407 esac
2408 $as_echo "$ac_var='\''$ac_val'\''"
2409 done | sort
2410 echo
2413 if test -s confdefs.h; then
2414 cat <<\_ASBOX
2415 ## ----------- ##
2416 ## confdefs.h. ##
2417 ## ----------- ##
2418 _ASBOX
2419 echo
2420 cat confdefs.h
2421 echo
2423 test "$ac_signal" != 0 &&
2424 $as_echo "$as_me: caught signal $ac_signal"
2425 $as_echo "$as_me: exit $exit_status"
2426 } >&5
2427 rm -f core *.core core.conftest.* &&
2428 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2429 exit $exit_status
2431 for ac_signal in 1 2 13 15; do
2432 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2433 done
2434 ac_signal=0
2436 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2437 rm -f -r conftest* confdefs.h
2439 $as_echo "/* confdefs.h */" > confdefs.h
2441 # Predefined preprocessor variables.
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_NAME "$PACKAGE_NAME"
2445 _ACEOF
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2449 _ACEOF
2451 cat >>confdefs.h <<_ACEOF
2452 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2453 _ACEOF
2455 cat >>confdefs.h <<_ACEOF
2456 #define PACKAGE_STRING "$PACKAGE_STRING"
2457 _ACEOF
2459 cat >>confdefs.h <<_ACEOF
2460 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2461 _ACEOF
2463 cat >>confdefs.h <<_ACEOF
2464 #define PACKAGE_URL "$PACKAGE_URL"
2465 _ACEOF
2468 # Let the site file select an alternate cache file if it wants to.
2469 # Prefer an explicitly selected file to automatically selected ones.
2470 ac_site_file1=NONE
2471 ac_site_file2=NONE
2472 if test -n "$CONFIG_SITE"; then
2473 ac_site_file1=$CONFIG_SITE
2474 elif test "x$prefix" != xNONE; then
2475 ac_site_file1=$prefix/share/config.site
2476 ac_site_file2=$prefix/etc/config.site
2477 else
2478 ac_site_file1=$ac_default_prefix/share/config.site
2479 ac_site_file2=$ac_default_prefix/etc/config.site
2481 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2483 test "x$ac_site_file" = xNONE && continue
2484 if test -r "$ac_site_file"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2486 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2487 sed 's/^/| /' "$ac_site_file" >&5
2488 . "$ac_site_file"
2490 done
2492 if test -r "$cache_file"; then
2493 # Some versions of bash will fail to source /dev/null (special
2494 # files actually), so we avoid doing that.
2495 if test -f "$cache_file"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2497 $as_echo "$as_me: loading cache $cache_file" >&6;}
2498 case $cache_file in
2499 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2500 *) . "./$cache_file";;
2501 esac
2503 else
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2505 $as_echo "$as_me: creating cache $cache_file" >&6;}
2506 >$cache_file
2509 # Check that the precious variables saved in the cache have kept the same
2510 # value.
2511 ac_cache_corrupted=false
2512 for ac_var in $ac_precious_vars; do
2513 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2514 eval ac_new_set=\$ac_env_${ac_var}_set
2515 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2516 eval ac_new_val=\$ac_env_${ac_var}_value
2517 case $ac_old_set,$ac_new_set in
2518 set,)
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2520 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2521 ac_cache_corrupted=: ;;
2522 ,set)
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2524 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2525 ac_cache_corrupted=: ;;
2526 ,);;
2528 if test "x$ac_old_val" != "x$ac_new_val"; then
2529 # differences in whitespace do not lead to failure.
2530 ac_old_val_w=`echo x $ac_old_val`
2531 ac_new_val_w=`echo x $ac_new_val`
2532 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2534 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2535 ac_cache_corrupted=:
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2538 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2539 eval $ac_var=\$ac_old_val
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2542 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2544 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2545 fi;;
2546 esac
2547 # Pass precious variables to config.status.
2548 if test "$ac_new_set" = set; then
2549 case $ac_new_val in
2550 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2551 *) ac_arg=$ac_var=$ac_new_val ;;
2552 esac
2553 case " $ac_configure_args " in
2554 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2555 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2556 esac
2558 done
2559 if $ac_cache_corrupted; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2563 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2564 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2566 ## -------------------- ##
2567 ## Main body of script. ##
2568 ## -------------------- ##
2570 ac_ext=c
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580 ac_config_headers="$ac_config_headers config.h"
2583 # -------
2584 # Options
2585 # -------
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2588 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2589 # Check whether --enable-version-specific-runtime-libs was given.
2590 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2591 enableval=$enable_version_specific_runtime_libs;
2592 case "$enableval" in
2593 yes|no) ;;
2594 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2595 esac
2597 else
2598 enable_version_specific_runtime_libs=no
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2603 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2605 # We would like our source tree to be readonly. However when releases or
2606 # pre-releases are generated, the flex/bison generated files as well as the
2607 # various formats of manuals need to be included along with the rest of the
2608 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2609 # just that.
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2611 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2612 # Check whether --enable-generated-files-in-srcdir was given.
2613 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2614 enableval=$enable_generated_files_in_srcdir;
2615 case "$enableval" in
2616 yes|no) ;;
2617 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2618 esac
2620 else
2621 enable_generated_files_in_srcdir=no
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2626 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2627 if test "$enable_generated_files_in_srcdir" = yes; then
2628 GENINSRC_TRUE=
2629 GENINSRC_FALSE='#'
2630 else
2631 GENINSRC_TRUE='#'
2632 GENINSRC_FALSE=
2637 # -------
2638 # -------
2640 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2642 # You will slowly go insane if you do not grok the following fact: when
2643 # building this library, the top-level /target/ becomes the library's /host/.
2645 # configure then causes --target to default to --host, exactly like any
2646 # other package using autoconf. Therefore, 'target' and 'host' will
2647 # always be the same. This makes sense both for native and cross compilers
2648 # just think about it for a little while. :-)
2650 # Also, if this library is being configured as part of a cross compiler, the
2651 # top-level configure script will pass the "real" host as $with_cross_host.
2653 # Do not delete or change the following two lines. For why, see
2654 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2655 ac_aux_dir=
2656 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2657 for ac_t in install-sh install.sh shtool; do
2658 if test -f "$ac_dir/$ac_t"; then
2659 ac_aux_dir=$ac_dir
2660 ac_install_sh="$ac_aux_dir/$ac_t -c"
2661 break 2
2663 done
2664 done
2665 if test -z "$ac_aux_dir"; then
2666 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2669 # These three variables are undocumented and unsupported,
2670 # and are intended to be withdrawn in a future Autoconf release.
2671 # They can cause serious problems if a builder's source tree is in a directory
2672 # whose full name contains unusual characters.
2673 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2674 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2675 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2678 # Make sure we can run config.sub.
2679 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2680 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2683 $as_echo_n "checking build system type... " >&6; }
2684 if test "${ac_cv_build+set}" = set; then :
2685 $as_echo_n "(cached) " >&6
2686 else
2687 ac_build_alias=$build_alias
2688 test "x$ac_build_alias" = x &&
2689 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2690 test "x$ac_build_alias" = x &&
2691 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2692 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2693 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2697 $as_echo "$ac_cv_build" >&6; }
2698 case $ac_cv_build in
2699 *-*-*) ;;
2700 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2701 esac
2702 build=$ac_cv_build
2703 ac_save_IFS=$IFS; IFS='-'
2704 set x $ac_cv_build
2705 shift
2706 build_cpu=$1
2707 build_vendor=$2
2708 shift; shift
2709 # Remember, the first character of IFS is used to create $*,
2710 # except with old shells:
2711 build_os=$*
2712 IFS=$ac_save_IFS
2713 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2717 $as_echo_n "checking host system type... " >&6; }
2718 if test "${ac_cv_host+set}" = set; then :
2719 $as_echo_n "(cached) " >&6
2720 else
2721 if test "x$host_alias" = x; then
2722 ac_cv_host=$ac_cv_build
2723 else
2724 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2725 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2730 $as_echo "$ac_cv_host" >&6; }
2731 case $ac_cv_host in
2732 *-*-*) ;;
2733 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2734 esac
2735 host=$ac_cv_host
2736 ac_save_IFS=$IFS; IFS='-'
2737 set x $ac_cv_host
2738 shift
2739 host_cpu=$1
2740 host_vendor=$2
2741 shift; shift
2742 # Remember, the first character of IFS is used to create $*,
2743 # except with old shells:
2744 host_os=$*
2745 IFS=$ac_save_IFS
2746 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2750 $as_echo_n "checking target system type... " >&6; }
2751 if test "${ac_cv_target+set}" = set; then :
2752 $as_echo_n "(cached) " >&6
2753 else
2754 if test "x$target_alias" = x; then
2755 ac_cv_target=$ac_cv_host
2756 else
2757 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2758 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2763 $as_echo "$ac_cv_target" >&6; }
2764 case $ac_cv_target in
2765 *-*-*) ;;
2766 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2767 esac
2768 target=$ac_cv_target
2769 ac_save_IFS=$IFS; IFS='-'
2770 set x $ac_cv_target
2771 shift
2772 target_cpu=$1
2773 target_vendor=$2
2774 shift; shift
2775 # Remember, the first character of IFS is used to create $*,
2776 # except with old shells:
2777 target_os=$*
2778 IFS=$ac_save_IFS
2779 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2782 # The aliases save the names the user supplied, while $host etc.
2783 # will get canonicalized.
2784 test -n "$target_alias" &&
2785 test "$program_prefix$program_suffix$program_transform_name" = \
2786 NONENONEs,x,x, &&
2787 program_prefix=${target_alias}-
2789 target_alias=${target_alias-$host_alias}
2791 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2792 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2793 # 1.9.0: minimum required version
2794 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2795 # of other PACKAGE_* variables will, however, and there's nothing
2796 # we can do about that; they come from AC_INIT).
2797 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2798 # file in the top srcdir, etc, etc), so stop complaining.
2799 # -Wall: turns on all automake warnings...
2800 # -Wno-portability: ...except this one, since GNU make is required.
2801 # -Wno-override: ... and this one, since we do want this in testsuite.
2802 am__api_version='1.11'
2804 # Find a good install program. We prefer a C program (faster),
2805 # so one script is as good as another. But avoid the broken or
2806 # incompatible versions:
2807 # SysV /etc/install, /usr/sbin/install
2808 # SunOS /usr/etc/install
2809 # IRIX /sbin/install
2810 # AIX /bin/install
2811 # AmigaOS /C/install, which installs bootblocks on floppy discs
2812 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2815 # OS/2's system install, which has a completely different semantic
2816 # ./install, which can be erroneously created by make from ./install.sh.
2817 # Reject install programs that cannot install multiple files.
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2819 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2820 if test -z "$INSTALL"; then
2821 if test "${ac_cv_path_install+set}" = set; then :
2822 $as_echo_n "(cached) " >&6
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2827 IFS=$as_save_IFS
2828 test -z "$as_dir" && as_dir=.
2829 # Account for people who put trailing slashes in PATH elements.
2830 case $as_dir/ in #((
2831 ./ | .// | /[cC]/* | \
2832 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2833 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2834 /usr/ucb/* ) ;;
2836 # OSF1 and SCO ODT 3.0 have their own names for install.
2837 # Don't use installbsd from OSF since it installs stuff as root
2838 # by default.
2839 for ac_prog in ginstall scoinst install; do
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2842 if test $ac_prog = install &&
2843 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2844 # AIX install. It has an incompatible calling convention.
2846 elif test $ac_prog = install &&
2847 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2848 # program-specific install script used by HP pwplus--don't use.
2850 else
2851 rm -rf conftest.one conftest.two conftest.dir
2852 echo one > conftest.one
2853 echo two > conftest.two
2854 mkdir conftest.dir
2855 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2856 test -s conftest.one && test -s conftest.two &&
2857 test -s conftest.dir/conftest.one &&
2858 test -s conftest.dir/conftest.two
2859 then
2860 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2861 break 3
2865 done
2866 done
2868 esac
2870 done
2871 IFS=$as_save_IFS
2873 rm -rf conftest.one conftest.two conftest.dir
2876 if test "${ac_cv_path_install+set}" = set; then
2877 INSTALL=$ac_cv_path_install
2878 else
2879 # As a last resort, use the slow shell script. Don't cache a
2880 # value for INSTALL within a source directory, because that will
2881 # break other packages using the cache if that directory is
2882 # removed, or if the value is a relative name.
2883 INSTALL=$ac_install_sh
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2887 $as_echo "$INSTALL" >&6; }
2889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2890 # It thinks the first close brace ends the variable substitution.
2891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2898 $as_echo_n "checking whether build environment is sane... " >&6; }
2899 # Just in case
2900 sleep 1
2901 echo timestamp > conftest.file
2902 # Reject unsafe characters in $srcdir or the absolute working directory
2903 # name. Accept space and tab only in the latter.
2904 am_lf='
2906 case `pwd` in
2907 *[\\\"\#\$\&\'\`$am_lf]*)
2908 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2909 esac
2910 case $srcdir in
2911 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2912 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2913 esac
2915 # Do `set' in a subshell so we don't clobber the current shell's
2916 # arguments. Must try -L first in case configure is actually a
2917 # symlink; some systems play weird games with the mod time of symlinks
2918 # (eg FreeBSD returns the mod time of the symlink's containing
2919 # directory).
2920 if (
2921 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2922 if test "$*" = "X"; then
2923 # -L didn't work.
2924 set X `ls -t "$srcdir/configure" conftest.file`
2926 rm -f conftest.file
2927 if test "$*" != "X $srcdir/configure conftest.file" \
2928 && test "$*" != "X conftest.file $srcdir/configure"; then
2930 # If neither matched, then we have a broken ls. This can happen
2931 # if, for instance, CONFIG_SHELL is bash and it inherits a
2932 # broken ls alias from the environment. This has actually
2933 # happened. Such a system could not be considered "sane".
2934 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2935 alias in your environment" "$LINENO" 5
2938 test "$2" = conftest.file
2940 then
2941 # Ok.
2943 else
2944 as_fn_error "newly created file is older than distributed files!
2945 Check your system clock" "$LINENO" 5
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2948 $as_echo "yes" >&6; }
2949 test "$program_prefix" != NONE &&
2950 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2951 # Use a double $ so make ignores it.
2952 test "$program_suffix" != NONE &&
2953 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2954 # Double any \ or $.
2955 # By default was `s,x,x', remove it if useless.
2956 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2957 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2959 # expand $ac_aux_dir to an absolute path
2960 am_aux_dir=`cd $ac_aux_dir && pwd`
2962 if test x"${MISSING+set}" != xset; then
2963 case $am_aux_dir in
2964 *\ * | *\ *)
2965 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2967 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2968 esac
2970 # Use eval to expand $SHELL
2971 if eval "$MISSING --run true"; then
2972 am_missing_run="$MISSING --run "
2973 else
2974 am_missing_run=
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2976 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2979 if test x"${install_sh}" != xset; then
2980 case $am_aux_dir in
2981 *\ * | *\ *)
2982 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2984 install_sh="\${SHELL} $am_aux_dir/install-sh"
2985 esac
2988 # Installed binaries are usually stripped using `strip' when the user
2989 # run `make install-strip'. However `strip' might not be the right
2990 # tool to use in cross-compilation environments, therefore Automake
2991 # will honor the `STRIP' environment variable to overrule this program.
2992 if test "$cross_compiling" != no; then
2993 if test -n "$ac_tool_prefix"; then
2994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2995 set dummy ${ac_tool_prefix}strip; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if test "${ac_cv_prog_STRIP+set}" = set; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if test -n "$STRIP"; then
3002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3015 done
3016 done
3017 IFS=$as_save_IFS
3021 STRIP=$ac_cv_prog_STRIP
3022 if test -n "$STRIP"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3024 $as_echo "$STRIP" >&6; }
3025 else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3032 if test -z "$ac_cv_prog_STRIP"; then
3033 ac_ct_STRIP=$STRIP
3034 # Extract the first word of "strip", so it can be a program name with args.
3035 set dummy strip; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3039 $as_echo_n "(cached) " >&6
3040 else
3041 if test -n "$ac_ct_STRIP"; then
3042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3047 IFS=$as_save_IFS
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051 ac_cv_prog_ac_ct_STRIP="strip"
3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 break 2
3055 done
3056 done
3057 IFS=$as_save_IFS
3061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3062 if test -n "$ac_ct_STRIP"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3064 $as_echo "$ac_ct_STRIP" >&6; }
3065 else
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3070 if test "x$ac_ct_STRIP" = x; then
3071 STRIP=":"
3072 else
3073 case $cross_compiling:$ac_tool_warned in
3074 yes:)
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3077 ac_tool_warned=yes ;;
3078 esac
3079 STRIP=$ac_ct_STRIP
3081 else
3082 STRIP="$ac_cv_prog_STRIP"
3086 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3089 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3090 if test -z "$MKDIR_P"; then
3091 if test "${ac_cv_path_mkdir+set}" = set; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_prog in mkdir gmkdir; do
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3102 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3103 'mkdir (GNU coreutils) '* | \
3104 'mkdir (coreutils) '* | \
3105 'mkdir (fileutils) '4.1*)
3106 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3107 break 3;;
3108 esac
3109 done
3110 done
3111 done
3112 IFS=$as_save_IFS
3116 if test "${ac_cv_path_mkdir+set}" = set; then
3117 MKDIR_P="$ac_cv_path_mkdir -p"
3118 else
3119 # As a last resort, use the slow shell script. Don't cache a
3120 # value for MKDIR_P within a source directory, because that will
3121 # break other packages using the cache if that directory is
3122 # removed, or if the value is a relative name.
3123 test -d ./--version && rmdir ./--version
3124 MKDIR_P="$ac_install_sh -d"
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3128 $as_echo "$MKDIR_P" >&6; }
3130 mkdir_p="$MKDIR_P"
3131 case $mkdir_p in
3132 [\\/$]* | ?:[\\/]*) ;;
3133 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3134 esac
3136 for ac_prog in gawk mawk nawk awk
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_prog_AWK+set}" = set; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$AWK"; then
3146 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155 ac_cv_prog_AWK="$ac_prog"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3159 done
3160 done
3161 IFS=$as_save_IFS
3165 AWK=$ac_cv_prog_AWK
3166 if test -n "$AWK"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3168 $as_echo "$AWK" >&6; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3175 test -n "$AWK" && break
3176 done
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3179 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3180 set x ${MAKE-make}
3181 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3182 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3183 $as_echo_n "(cached) " >&6
3184 else
3185 cat >conftest.make <<\_ACEOF
3186 SHELL = /bin/sh
3187 all:
3188 @echo '@@@%%%=$(MAKE)=@@@%%%'
3189 _ACEOF
3190 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3191 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3192 *@@@%%%=?*=@@@%%%*)
3193 eval ac_cv_prog_make_${ac_make}_set=yes;;
3195 eval ac_cv_prog_make_${ac_make}_set=no;;
3196 esac
3197 rm -f conftest.make
3199 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201 $as_echo "yes" >&6; }
3202 SET_MAKE=
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 SET_MAKE="MAKE=${MAKE-make}"
3209 rm -rf .tst 2>/dev/null
3210 mkdir .tst 2>/dev/null
3211 if test -d .tst; then
3212 am__leading_dot=.
3213 else
3214 am__leading_dot=_
3216 rmdir .tst 2>/dev/null
3218 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3219 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3220 # is not polluted with repeated "-I."
3221 am__isrc=' -I$(srcdir)'
3222 # test to see if srcdir already configured
3223 if test -f $srcdir/config.status; then
3224 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3228 # test whether we have cygpath
3229 if test -z "$CYGPATH_W"; then
3230 if (cygpath --version) >/dev/null 2>/dev/null; then
3231 CYGPATH_W='cygpath -w'
3232 else
3233 CYGPATH_W=echo
3238 # Define the identity of the package.
3239 PACKAGE='libitm'
3240 VERSION='1.0'
3243 cat >>confdefs.h <<_ACEOF
3244 #define PACKAGE "$PACKAGE"
3245 _ACEOF
3248 cat >>confdefs.h <<_ACEOF
3249 #define VERSION "$VERSION"
3250 _ACEOF
3252 # Some tools Automake needs.
3254 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3257 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3260 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3263 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3266 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3268 # We need awk for the "check" target. The system "awk" is bad on
3269 # some platforms.
3270 # Always define AMTAR for backward compatibility.
3272 AMTAR=${AMTAR-"${am_missing_run}tar"}
3274 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3280 # Default to --enable-multilib
3281 # Check whether --enable-multilib was given.
3282 if test "${enable_multilib+set}" = set; then :
3283 enableval=$enable_multilib; case "$enableval" in
3284 yes) multilib=yes ;;
3285 no) multilib=no ;;
3286 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3287 esac
3288 else
3289 multilib=yes
3293 # We may get other options which we leave undocumented:
3294 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3295 # See config-ml.in if you want the gory details.
3297 if test "$srcdir" = "."; then
3298 if test "$with_target_subdir" != "."; then
3299 multi_basedir="$srcdir/$with_multisrctop../.."
3300 else
3301 multi_basedir="$srcdir/$with_multisrctop.."
3303 else
3304 multi_basedir="$srcdir/.."
3308 # Even if the default multilib is not a cross compilation,
3309 # it may be that some of the other multilibs are.
3310 if test $cross_compiling = no && test $multilib = yes \
3311 && test "x${with_multisubdir}" != x ; then
3312 cross_compiling=maybe
3315 ac_config_commands="$ac_config_commands default-1"
3318 # Calculate toolexeclibdir
3319 # Also toolexecdir, though it's only used in toolexeclibdir
3320 case ${enable_version_specific_runtime_libs} in
3321 yes)
3322 # Need the gcc compiler version to know where to install libraries
3323 # and header files if --enable-version-specific-runtime-libs option
3324 # is selected.
3325 toolexecdir='$(libdir)/gcc/$(target_alias)'
3326 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3329 if test -n "$with_cross_host" &&
3330 test x"$with_cross_host" != x"no"; then
3331 # Install a library built with a cross compiler in tooldir, not libdir.
3332 toolexecdir='$(exec_prefix)/$(target_alias)'
3333 toolexeclibdir='$(toolexecdir)/lib'
3334 else
3335 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3336 toolexeclibdir='$(libdir)'
3338 multi_os_directory=`$CC -print-multi-os-directory`
3339 case $multi_os_directory in
3340 .) ;; # Avoid trailing /.
3341 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3342 esac
3344 esac
3348 # Check the compiler.
3349 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3350 # We must force CC to /not/ be precious variables; otherwise
3351 # the wrong, non-multilib-adjusted value will be used in multilibs.
3352 # As a side effect, we have to subst CFLAGS ourselves.
3356 ac_ext=c
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361 if test -n "$ac_tool_prefix"; then
3362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3363 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if test "${ac_cv_prog_CC+set}" = set; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3383 done
3384 done
3385 IFS=$as_save_IFS
3389 CC=$ac_cv_prog_CC
3390 if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3393 else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3400 if test -z "$ac_cv_prog_CC"; then
3401 ac_ct_CC=$CC
3402 # Extract the first word of "gcc", so it can be a program name with args.
3403 set dummy gcc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 if test -n "$ac_ct_CC"; then
3410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3415 IFS=$as_save_IFS
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3419 ac_cv_prog_ac_ct_CC="gcc"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 break 2
3423 done
3424 done
3425 IFS=$as_save_IFS
3429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3430 if test -n "$ac_ct_CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3432 $as_echo "$ac_ct_CC" >&6; }
3433 else
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3438 if test "x$ac_ct_CC" = x; then
3439 CC=""
3440 else
3441 case $cross_compiling:$ac_tool_warned in
3442 yes:)
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3445 ac_tool_warned=yes ;;
3446 esac
3447 CC=$ac_ct_CC
3449 else
3450 CC="$ac_cv_prog_CC"
3453 if test -z "$CC"; then
3454 if test -n "$ac_tool_prefix"; then
3455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3456 set dummy ${ac_tool_prefix}cc; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if test "${ac_cv_prog_CC+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 if test -n "$CC"; then
3463 ac_cv_prog_CC="$CC" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472 ac_cv_prog_CC="${ac_tool_prefix}cc"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3476 done
3477 done
3478 IFS=$as_save_IFS
3482 CC=$ac_cv_prog_CC
3483 if test -n "$CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485 $as_echo "$CC" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3494 if test -z "$CC"; then
3495 # Extract the first word of "cc", so it can be a program name with args.
3496 set dummy cc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 ac_prog_rejected=no
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3514 ac_prog_rejected=yes
3515 continue
3517 ac_cv_prog_CC="cc"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3521 done
3522 done
3523 IFS=$as_save_IFS
3525 if test $ac_prog_rejected = yes; then
3526 # We found a bogon in the path, so make sure we never use it.
3527 set dummy $ac_cv_prog_CC
3528 shift
3529 if test $# != 0; then
3530 # We chose a different compiler from the bogus one.
3531 # However, it has the same basename, so the bogon will be chosen
3532 # first if we set CC to just the basename; use the full file name.
3533 shift
3534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3550 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 for ac_prog in cl.exe
3554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if test "${ac_cv_prog_CC+set}" = set; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3575 done
3576 done
3577 IFS=$as_save_IFS
3581 CC=$ac_cv_prog_CC
3582 if test -n "$CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584 $as_echo "$CC" >&6; }
3585 else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3591 test -n "$CC" && break
3592 done
3594 if test -z "$CC"; then
3595 ac_ct_CC=$CC
3596 for ac_prog in cl.exe
3598 # Extract the first word of "$ac_prog", so it can be a program name with args.
3599 set dummy $ac_prog; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if test -n "$ac_ct_CC"; then
3606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3615 ac_cv_prog_ac_ct_CC="$ac_prog"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3619 done
3620 done
3621 IFS=$as_save_IFS
3625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3626 if test -n "$ac_ct_CC"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3628 $as_echo "$ac_ct_CC" >&6; }
3629 else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3635 test -n "$ac_ct_CC" && break
3636 done
3638 if test "x$ac_ct_CC" = x; then
3639 CC=""
3640 else
3641 case $cross_compiling:$ac_tool_warned in
3642 yes:)
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3645 ac_tool_warned=yes ;;
3646 esac
3647 CC=$ac_ct_CC
3654 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error "no acceptable C compiler found in \$PATH
3657 See \`config.log' for more details." "$LINENO" 5; }
3659 # Provide some information about the compiler.
3660 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3661 set X $ac_compile
3662 ac_compiler=$2
3663 for ac_option in --version -v -V -qversion; do
3664 { { ac_try="$ac_compiler $ac_option >&5"
3665 case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3672 ac_status=$?
3673 if test -s conftest.err; then
3674 sed '10a\
3675 ... rest of stderr output deleted ...
3676 10q' conftest.err >conftest.er1
3677 cat conftest.er1 >&5
3678 rm -f conftest.er1 conftest.err
3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681 test $ac_status = 0; }
3682 done
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3688 main ()
3692 return 0;
3694 _ACEOF
3695 ac_clean_files_save=$ac_clean_files
3696 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3697 # Try to create an executable without -o first, disregard a.out.
3698 # It will help us diagnose broken compilers, and finding out an intuition
3699 # of exeext.
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3701 $as_echo_n "checking for C compiler default output file name... " >&6; }
3702 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3704 # The possible output files:
3705 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3707 ac_rmfiles=
3708 for ac_file in $ac_files
3710 case $ac_file in
3711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3712 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3713 esac
3714 done
3715 rm -f $ac_rmfiles
3717 if { { ac_try="$ac_link_default"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3723 $as_echo "$ac_try_echo"; } >&5
3724 (eval "$ac_link_default") 2>&5
3725 ac_status=$?
3726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3727 test $ac_status = 0; }; then :
3728 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3729 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3730 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3731 # so that the user can short-circuit this test for compilers unknown to
3732 # Autoconf.
3733 for ac_file in $ac_files ''
3735 test -f "$ac_file" || continue
3736 case $ac_file in
3737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3739 [ab].out )
3740 # We found the default executable, but exeext='' is most
3741 # certainly right.
3742 break;;
3743 *.* )
3744 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3745 then :; else
3746 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3748 # We set ac_cv_exeext here because the later test for it is not
3749 # safe: cross compilers may not add the suffix if given an `-o'
3750 # argument, so we may need to know it at that point already.
3751 # Even if this section looks crufty: it has the advantage of
3752 # actually working.
3753 break;;
3755 break;;
3756 esac
3757 done
3758 test "$ac_cv_exeext" = no && ac_cv_exeext=
3760 else
3761 ac_file=''
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3764 $as_echo "$ac_file" >&6; }
3765 if test -z "$ac_file"; then :
3766 $as_echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3771 { as_fn_set_status 77
3772 as_fn_error "C compiler cannot create executables
3773 See \`config.log' for more details." "$LINENO" 5; }; }
3775 ac_exeext=$ac_cv_exeext
3777 # Check that the compiler produces executables we can run. If not, either
3778 # the compiler is broken, or we cross compile.
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3780 $as_echo_n "checking whether the C compiler works... " >&6; }
3781 # If not cross compiling, check that we can run a simple program.
3782 if test "$cross_compiling" != yes; then
3783 if { ac_try='./$ac_file'
3784 { { case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787 esac
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_try") 2>&5
3791 ac_status=$?
3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }; }; then
3794 cross_compiling=no
3795 else
3796 if test "$cross_compiling" = maybe; then
3797 cross_compiling=yes
3798 else
3799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error "cannot run C compiled programs.
3802 If you meant to cross compile, use \`--host'.
3803 See \`config.log' for more details." "$LINENO" 5; }
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3808 $as_echo "yes" >&6; }
3810 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3811 ac_clean_files=$ac_clean_files_save
3812 # Check that the compiler produces executables we can run. If not, either
3813 # the compiler is broken, or we cross compile.
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3815 $as_echo_n "checking whether we are cross compiling... " >&6; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3817 $as_echo "$cross_compiling" >&6; }
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3820 $as_echo_n "checking for suffix of executables... " >&6; }
3821 if { { ac_try="$ac_link"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 $as_echo "$ac_try_echo"; } >&5
3828 (eval "$ac_link") 2>&5
3829 ac_status=$?
3830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831 test $ac_status = 0; }; then :
3832 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3833 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3834 # work properly (i.e., refer to `conftest.exe'), while it won't with
3835 # `rm'.
3836 for ac_file in conftest.exe conftest conftest.*; do
3837 test -f "$ac_file" || continue
3838 case $ac_file in
3839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3840 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3841 break;;
3842 * ) break;;
3843 esac
3844 done
3845 else
3846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error "cannot compute suffix of executables: cannot compile and link
3849 See \`config.log' for more details." "$LINENO" 5; }
3851 rm -f conftest$ac_cv_exeext
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3853 $as_echo "$ac_cv_exeext" >&6; }
3855 rm -f conftest.$ac_ext
3856 EXEEXT=$ac_cv_exeext
3857 ac_exeext=$EXEEXT
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3859 $as_echo_n "checking for suffix of object files... " >&6; }
3860 if test "${ac_cv_objext+set}" = set; then :
3861 $as_echo_n "(cached) " >&6
3862 else
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3867 main ()
3871 return 0;
3873 _ACEOF
3874 rm -f conftest.o conftest.obj
3875 if { { ac_try="$ac_compile"
3876 case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879 esac
3880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881 $as_echo "$ac_try_echo"; } >&5
3882 (eval "$ac_compile") 2>&5
3883 ac_status=$?
3884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885 test $ac_status = 0; }; then :
3886 for ac_file in conftest.o conftest.obj conftest.*; do
3887 test -f "$ac_file" || continue;
3888 case $ac_file in
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3890 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3891 break;;
3892 esac
3893 done
3894 else
3895 $as_echo "$as_me: failed program was:" >&5
3896 sed 's/^/| /' conftest.$ac_ext >&5
3898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 as_fn_error "cannot compute suffix of object files: cannot compile
3901 See \`config.log' for more details." "$LINENO" 5; }
3903 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3906 $as_echo "$ac_cv_objext" >&6; }
3907 OBJEXT=$ac_cv_objext
3908 ac_objext=$OBJEXT
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3910 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3911 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3912 $as_echo_n "(cached) " >&6
3913 else
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3918 main ()
3920 #ifndef __GNUC__
3921 choke me
3922 #endif
3925 return 0;
3927 _ACEOF
3928 if ac_fn_c_try_compile "$LINENO"; then :
3929 ac_compiler_gnu=yes
3930 else
3931 ac_compiler_gnu=no
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3938 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3939 if test $ac_compiler_gnu = yes; then
3940 GCC=yes
3941 else
3942 GCC=
3944 ac_test_CFLAGS=${CFLAGS+set}
3945 ac_save_CFLAGS=$CFLAGS
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3947 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3948 if test "${ac_cv_prog_cc_g+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 ac_save_c_werror_flag=$ac_c_werror_flag
3952 ac_c_werror_flag=yes
3953 ac_cv_prog_cc_g=no
3954 CFLAGS="-g"
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3959 main ()
3963 return 0;
3965 _ACEOF
3966 if ac_fn_c_try_compile "$LINENO"; then :
3967 ac_cv_prog_cc_g=yes
3968 else
3969 CFLAGS=""
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3974 main ()
3978 return 0;
3980 _ACEOF
3981 if ac_fn_c_try_compile "$LINENO"; then :
3983 else
3984 ac_c_werror_flag=$ac_save_c_werror_flag
3985 CFLAGS="-g"
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
3990 main ()
3994 return 0;
3996 _ACEOF
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998 ac_cv_prog_cc_g=yes
4000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005 ac_c_werror_flag=$ac_save_c_werror_flag
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4008 $as_echo "$ac_cv_prog_cc_g" >&6; }
4009 if test "$ac_test_CFLAGS" = set; then
4010 CFLAGS=$ac_save_CFLAGS
4011 elif test $ac_cv_prog_cc_g = yes; then
4012 if test "$GCC" = yes; then
4013 CFLAGS="-g -O2"
4014 else
4015 CFLAGS="-g"
4017 else
4018 if test "$GCC" = yes; then
4019 CFLAGS="-O2"
4020 else
4021 CFLAGS=
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4025 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4026 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 ac_cv_prog_cc_c89=no
4030 ac_save_CC=$CC
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4033 #include <stdarg.h>
4034 #include <stdio.h>
4035 #include <sys/types.h>
4036 #include <sys/stat.h>
4037 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4038 struct buf { int x; };
4039 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4040 static char *e (p, i)
4041 char **p;
4042 int i;
4044 return p[i];
4046 static char *f (char * (*g) (char **, int), char **p, ...)
4048 char *s;
4049 va_list v;
4050 va_start (v,p);
4051 s = g (p, va_arg (v,int));
4052 va_end (v);
4053 return s;
4056 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4057 function prototypes and stuff, but not '\xHH' hex character constants.
4058 These don't provoke an error unfortunately, instead are silently treated
4059 as 'x'. The following induces an error, until -std is added to get
4060 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4061 array size at least. It's necessary to write '\x00'==0 to get something
4062 that's true only with -std. */
4063 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4065 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4066 inside strings and character constants. */
4067 #define FOO(x) 'x'
4068 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4070 int test (int i, double x);
4071 struct s1 {int (*f) (int a);};
4072 struct s2 {int (*f) (double a);};
4073 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4074 int argc;
4075 char **argv;
4077 main ()
4079 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4081 return 0;
4083 _ACEOF
4084 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4085 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4087 CC="$ac_save_CC $ac_arg"
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089 ac_cv_prog_cc_c89=$ac_arg
4091 rm -f core conftest.err conftest.$ac_objext
4092 test "x$ac_cv_prog_cc_c89" != "xno" && break
4093 done
4094 rm -f conftest.$ac_ext
4095 CC=$ac_save_CC
4098 # AC_CACHE_VAL
4099 case "x$ac_cv_prog_cc_c89" in
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4102 $as_echo "none needed" >&6; } ;;
4103 xno)
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4105 $as_echo "unsupported" >&6; } ;;
4107 CC="$CC $ac_cv_prog_cc_c89"
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4109 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4110 esac
4111 if test "x$ac_cv_prog_cc_c89" != xno; then :
4115 ac_ext=c
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120 DEPDIR="${am__leading_dot}deps"
4122 ac_config_commands="$ac_config_commands depfiles"
4125 am_make=${MAKE-make}
4126 cat > confinc << 'END'
4127 am__doit:
4128 @echo this is the am__doit target
4129 .PHONY: am__doit
4131 # If we don't find an include directive, just comment out the code.
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4133 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4134 am__include="#"
4135 am__quote=
4136 _am_result=none
4137 # First try GNU make style include.
4138 echo "include confinc" > confmf
4139 # Ignore all kinds of additional output from `make'.
4140 case `$am_make -s -f confmf 2> /dev/null` in #(
4141 *the\ am__doit\ target*)
4142 am__include=include
4143 am__quote=
4144 _am_result=GNU
4146 esac
4147 # Now try BSD make style include.
4148 if test "$am__include" = "#"; then
4149 echo '.include "confinc"' > confmf
4150 case `$am_make -s -f confmf 2> /dev/null` in #(
4151 *the\ am__doit\ target*)
4152 am__include=.include
4153 am__quote="\""
4154 _am_result=BSD
4156 esac
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4161 $as_echo "$_am_result" >&6; }
4162 rm -f confinc confmf
4164 # Check whether --enable-dependency-tracking was given.
4165 if test "${enable_dependency_tracking+set}" = set; then :
4166 enableval=$enable_dependency_tracking;
4169 if test "x$enable_dependency_tracking" != xno; then
4170 am_depcomp="$ac_aux_dir/depcomp"
4171 AMDEPBACKSLASH='\'
4173 if test "x$enable_dependency_tracking" != xno; then
4174 AMDEP_TRUE=
4175 AMDEP_FALSE='#'
4176 else
4177 AMDEP_TRUE='#'
4178 AMDEP_FALSE=
4183 depcc="$CC" am_compiler_list=
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4186 $as_echo_n "checking dependency style of $depcc... " >&6; }
4187 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4191 # We make a subdir and do the tests there. Otherwise we can end up
4192 # making bogus files that we don't know about and never remove. For
4193 # instance it was reported that on HP-UX the gcc test will end up
4194 # making a dummy file named `D' -- because `-MD' means `put the output
4195 # in D'.
4196 mkdir conftest.dir
4197 # Copy depcomp to subdir because otherwise we won't find it if we're
4198 # using a relative directory.
4199 cp "$am_depcomp" conftest.dir
4200 cd conftest.dir
4201 # We will build objects and dependencies in a subdirectory because
4202 # it helps to detect inapplicable dependency modes. For instance
4203 # both Tru64's cc and ICC support -MD to output dependencies as a
4204 # side effect of compilation, but ICC will put the dependencies in
4205 # the current directory while Tru64 will put them in the object
4206 # directory.
4207 mkdir sub
4209 am_cv_CC_dependencies_compiler_type=none
4210 if test "$am_compiler_list" = ""; then
4211 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4213 am__universal=false
4214 case " $depcc " in #(
4215 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4216 esac
4218 for depmode in $am_compiler_list; do
4219 # Setup a source with many dependencies, because some compilers
4220 # like to wrap large dependency lists on column 80 (with \), and
4221 # we should not choose a depcomp mode which is confused by this.
4223 # We need to recreate these files for each test, as the compiler may
4224 # overwrite some of them when testing with obscure command lines.
4225 # This happens at least with the AIX C compiler.
4226 : > sub/conftest.c
4227 for i in 1 2 3 4 5 6; do
4228 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4229 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4230 # Solaris 8's {/usr,}/bin/sh.
4231 touch sub/conftst$i.h
4232 done
4233 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4235 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4236 # mode. It turns out that the SunPro C++ compiler does not properly
4237 # handle `-M -o', and we need to detect this. Also, some Intel
4238 # versions had trouble with output in subdirs
4239 am__obj=sub/conftest.${OBJEXT-o}
4240 am__minus_obj="-o $am__obj"
4241 case $depmode in
4242 gcc)
4243 # This depmode causes a compiler race in universal mode.
4244 test "$am__universal" = false || continue
4246 nosideeffect)
4247 # after this tag, mechanisms are not by side-effect, so they'll
4248 # only be used when explicitly requested
4249 if test "x$enable_dependency_tracking" = xyes; then
4250 continue
4251 else
4252 break
4255 msvisualcpp | msvcmsys)
4256 # This compiler won't grok `-c -o', but also, the minuso test has
4257 # not run yet. These depmodes are late enough in the game, and
4258 # so weak that their functioning should not be impacted.
4259 am__obj=conftest.${OBJEXT-o}
4260 am__minus_obj=
4262 none) break ;;
4263 esac
4264 if depmode=$depmode \
4265 source=sub/conftest.c object=$am__obj \
4266 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4267 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4268 >/dev/null 2>conftest.err &&
4269 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4270 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4271 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4272 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4273 # icc doesn't choke on unknown options, it will just issue warnings
4274 # or remarks (even with -Werror). So we grep stderr for any message
4275 # that says an option was ignored or not supported.
4276 # When given -MP, icc 7.0 and 7.1 complain thusly:
4277 # icc: Command line warning: ignoring option '-M'; no argument required
4278 # The diagnosis changed in icc 8.0:
4279 # icc: Command line remark: option '-MP' not supported
4280 if (grep 'ignoring option' conftest.err ||
4281 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4282 am_cv_CC_dependencies_compiler_type=$depmode
4283 break
4286 done
4288 cd ..
4289 rm -rf conftest.dir
4290 else
4291 am_cv_CC_dependencies_compiler_type=none
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4296 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4297 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4300 test "x$enable_dependency_tracking" != xno \
4301 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4302 am__fastdepCC_TRUE=
4303 am__fastdepCC_FALSE='#'
4304 else
4305 am__fastdepCC_TRUE='#'
4306 am__fastdepCC_FALSE=
4310 ac_ext=cpp
4311 ac_cpp='$CXXCPP $CPPFLAGS'
4312 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4315 if test -z "$CXX"; then
4316 if test -n "$CCC"; then
4317 CXX=$CCC
4318 else
4319 if test -n "$ac_tool_prefix"; then
4320 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4323 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if test "${ac_cv_prog_CXX+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 if test -n "$CXX"; then
4330 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4343 done
4344 done
4345 IFS=$as_save_IFS
4349 CXX=$ac_cv_prog_CXX
4350 if test -n "$CXX"; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4352 $as_echo "$CXX" >&6; }
4353 else
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4359 test -n "$CXX" && break
4360 done
4362 if test -z "$CXX"; then
4363 ac_ct_CXX=$CXX
4364 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4366 # Extract the first word of "$ac_prog", so it can be a program name with args.
4367 set dummy $ac_prog; ac_word=$2
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369 $as_echo_n "checking for $ac_word... " >&6; }
4370 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 if test -n "$ac_ct_CXX"; then
4374 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_prog_ac_ct_CXX="$ac_prog"
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4387 done
4388 done
4389 IFS=$as_save_IFS
4393 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4394 if test -n "$ac_ct_CXX"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4396 $as_echo "$ac_ct_CXX" >&6; }
4397 else
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4403 test -n "$ac_ct_CXX" && break
4404 done
4406 if test "x$ac_ct_CXX" = x; then
4407 CXX="g++"
4408 else
4409 case $cross_compiling:$ac_tool_warned in
4410 yes:)
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4413 ac_tool_warned=yes ;;
4414 esac
4415 CXX=$ac_ct_CXX
4421 # Provide some information about the compiler.
4422 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4423 set X $ac_compile
4424 ac_compiler=$2
4425 for ac_option in --version -v -V -qversion; do
4426 { { ac_try="$ac_compiler $ac_option >&5"
4427 case "(($ac_try" in
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4430 esac
4431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 $as_echo "$ac_try_echo"; } >&5
4433 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4434 ac_status=$?
4435 if test -s conftest.err; then
4436 sed '10a\
4437 ... rest of stderr output deleted ...
4438 10q' conftest.err >conftest.er1
4439 cat conftest.er1 >&5
4440 rm -f conftest.er1 conftest.err
4442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4443 test $ac_status = 0; }
4444 done
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4447 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4448 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4455 main ()
4457 #ifndef __GNUC__
4458 choke me
4459 #endif
4462 return 0;
4464 _ACEOF
4465 if ac_fn_cxx_try_compile "$LINENO"; then :
4466 ac_compiler_gnu=yes
4467 else
4468 ac_compiler_gnu=no
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4475 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4476 if test $ac_compiler_gnu = yes; then
4477 GXX=yes
4478 else
4479 GXX=
4481 ac_test_CXXFLAGS=${CXXFLAGS+set}
4482 ac_save_CXXFLAGS=$CXXFLAGS
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4484 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4485 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4489 ac_cxx_werror_flag=yes
4490 ac_cv_prog_cxx_g=no
4491 CXXFLAGS="-g"
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4496 main ()
4500 return 0;
4502 _ACEOF
4503 if ac_fn_cxx_try_compile "$LINENO"; then :
4504 ac_cv_prog_cxx_g=yes
4505 else
4506 CXXFLAGS=""
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4511 main ()
4515 return 0;
4517 _ACEOF
4518 if ac_fn_cxx_try_compile "$LINENO"; then :
4520 else
4521 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4522 CXXFLAGS="-g"
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4527 main ()
4531 return 0;
4533 _ACEOF
4534 if ac_fn_cxx_try_compile "$LINENO"; then :
4535 ac_cv_prog_cxx_g=yes
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4542 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4545 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4546 if test "$ac_test_CXXFLAGS" = set; then
4547 CXXFLAGS=$ac_save_CXXFLAGS
4548 elif test $ac_cv_prog_cxx_g = yes; then
4549 if test "$GXX" = yes; then
4550 CXXFLAGS="-g -O2"
4551 else
4552 CXXFLAGS="-g"
4554 else
4555 if test "$GXX" = yes; then
4556 CXXFLAGS="-O2"
4557 else
4558 CXXFLAGS=
4561 ac_ext=c
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4567 depcc="$CXX" am_compiler_list=
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4570 $as_echo_n "checking dependency style of $depcc... " >&6; }
4571 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4575 # We make a subdir and do the tests there. Otherwise we can end up
4576 # making bogus files that we don't know about and never remove. For
4577 # instance it was reported that on HP-UX the gcc test will end up
4578 # making a dummy file named `D' -- because `-MD' means `put the output
4579 # in D'.
4580 mkdir conftest.dir
4581 # Copy depcomp to subdir because otherwise we won't find it if we're
4582 # using a relative directory.
4583 cp "$am_depcomp" conftest.dir
4584 cd conftest.dir
4585 # We will build objects and dependencies in a subdirectory because
4586 # it helps to detect inapplicable dependency modes. For instance
4587 # both Tru64's cc and ICC support -MD to output dependencies as a
4588 # side effect of compilation, but ICC will put the dependencies in
4589 # the current directory while Tru64 will put them in the object
4590 # directory.
4591 mkdir sub
4593 am_cv_CXX_dependencies_compiler_type=none
4594 if test "$am_compiler_list" = ""; then
4595 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4597 am__universal=false
4598 case " $depcc " in #(
4599 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4600 esac
4602 for depmode in $am_compiler_list; do
4603 # Setup a source with many dependencies, because some compilers
4604 # like to wrap large dependency lists on column 80 (with \), and
4605 # we should not choose a depcomp mode which is confused by this.
4607 # We need to recreate these files for each test, as the compiler may
4608 # overwrite some of them when testing with obscure command lines.
4609 # This happens at least with the AIX C compiler.
4610 : > sub/conftest.c
4611 for i in 1 2 3 4 5 6; do
4612 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4613 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4614 # Solaris 8's {/usr,}/bin/sh.
4615 touch sub/conftst$i.h
4616 done
4617 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4619 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4620 # mode. It turns out that the SunPro C++ compiler does not properly
4621 # handle `-M -o', and we need to detect this. Also, some Intel
4622 # versions had trouble with output in subdirs
4623 am__obj=sub/conftest.${OBJEXT-o}
4624 am__minus_obj="-o $am__obj"
4625 case $depmode in
4626 gcc)
4627 # This depmode causes a compiler race in universal mode.
4628 test "$am__universal" = false || continue
4630 nosideeffect)
4631 # after this tag, mechanisms are not by side-effect, so they'll
4632 # only be used when explicitly requested
4633 if test "x$enable_dependency_tracking" = xyes; then
4634 continue
4635 else
4636 break
4639 msvisualcpp | msvcmsys)
4640 # This compiler won't grok `-c -o', but also, the minuso test has
4641 # not run yet. These depmodes are late enough in the game, and
4642 # so weak that their functioning should not be impacted.
4643 am__obj=conftest.${OBJEXT-o}
4644 am__minus_obj=
4646 none) break ;;
4647 esac
4648 if depmode=$depmode \
4649 source=sub/conftest.c object=$am__obj \
4650 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4651 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4652 >/dev/null 2>conftest.err &&
4653 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4654 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4655 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4656 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4657 # icc doesn't choke on unknown options, it will just issue warnings
4658 # or remarks (even with -Werror). So we grep stderr for any message
4659 # that says an option was ignored or not supported.
4660 # When given -MP, icc 7.0 and 7.1 complain thusly:
4661 # icc: Command line warning: ignoring option '-M'; no argument required
4662 # The diagnosis changed in icc 8.0:
4663 # icc: Command line remark: option '-MP' not supported
4664 if (grep 'ignoring option' conftest.err ||
4665 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4666 am_cv_CXX_dependencies_compiler_type=$depmode
4667 break
4670 done
4672 cd ..
4673 rm -rf conftest.dir
4674 else
4675 am_cv_CXX_dependencies_compiler_type=none
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4680 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4681 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4684 test "x$enable_dependency_tracking" != xno \
4685 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4686 am__fastdepCXX_TRUE=
4687 am__fastdepCXX_FALSE='#'
4688 else
4689 am__fastdepCXX_TRUE='#'
4690 am__fastdepCXX_FALSE=
4694 # By default we simply use the C compiler to build assembly code.
4696 test "${CCAS+set}" = set || CCAS=$CC
4697 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4701 depcc="$CCAS" am_compiler_list=
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4704 $as_echo_n "checking dependency style of $depcc... " >&6; }
4705 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4709 # We make a subdir and do the tests there. Otherwise we can end up
4710 # making bogus files that we don't know about and never remove. For
4711 # instance it was reported that on HP-UX the gcc test will end up
4712 # making a dummy file named `D' -- because `-MD' means `put the output
4713 # in D'.
4714 mkdir conftest.dir
4715 # Copy depcomp to subdir because otherwise we won't find it if we're
4716 # using a relative directory.
4717 cp "$am_depcomp" conftest.dir
4718 cd conftest.dir
4719 # We will build objects and dependencies in a subdirectory because
4720 # it helps to detect inapplicable dependency modes. For instance
4721 # both Tru64's cc and ICC support -MD to output dependencies as a
4722 # side effect of compilation, but ICC will put the dependencies in
4723 # the current directory while Tru64 will put them in the object
4724 # directory.
4725 mkdir sub
4727 am_cv_CCAS_dependencies_compiler_type=none
4728 if test "$am_compiler_list" = ""; then
4729 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4731 am__universal=false
4734 for depmode in $am_compiler_list; do
4735 # Setup a source with many dependencies, because some compilers
4736 # like to wrap large dependency lists on column 80 (with \), and
4737 # we should not choose a depcomp mode which is confused by this.
4739 # We need to recreate these files for each test, as the compiler may
4740 # overwrite some of them when testing with obscure command lines.
4741 # This happens at least with the AIX C compiler.
4742 : > sub/conftest.c
4743 for i in 1 2 3 4 5 6; do
4744 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4745 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4746 # Solaris 8's {/usr,}/bin/sh.
4747 touch sub/conftst$i.h
4748 done
4749 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4751 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4752 # mode. It turns out that the SunPro C++ compiler does not properly
4753 # handle `-M -o', and we need to detect this. Also, some Intel
4754 # versions had trouble with output in subdirs
4755 am__obj=sub/conftest.${OBJEXT-o}
4756 am__minus_obj="-o $am__obj"
4757 case $depmode in
4758 gcc)
4759 # This depmode causes a compiler race in universal mode.
4760 test "$am__universal" = false || continue
4762 nosideeffect)
4763 # after this tag, mechanisms are not by side-effect, so they'll
4764 # only be used when explicitly requested
4765 if test "x$enable_dependency_tracking" = xyes; then
4766 continue
4767 else
4768 break
4771 msvisualcpp | msvcmsys)
4772 # This compiler won't grok `-c -o', but also, the minuso test has
4773 # not run yet. These depmodes are late enough in the game, and
4774 # so weak that their functioning should not be impacted.
4775 am__obj=conftest.${OBJEXT-o}
4776 am__minus_obj=
4778 none) break ;;
4779 esac
4780 if depmode=$depmode \
4781 source=sub/conftest.c object=$am__obj \
4782 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4783 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4784 >/dev/null 2>conftest.err &&
4785 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4786 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4787 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4788 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4789 # icc doesn't choke on unknown options, it will just issue warnings
4790 # or remarks (even with -Werror). So we grep stderr for any message
4791 # that says an option was ignored or not supported.
4792 # When given -MP, icc 7.0 and 7.1 complain thusly:
4793 # icc: Command line warning: ignoring option '-M'; no argument required
4794 # The diagnosis changed in icc 8.0:
4795 # icc: Command line remark: option '-MP' not supported
4796 if (grep 'ignoring option' conftest.err ||
4797 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4798 am_cv_CCAS_dependencies_compiler_type=$depmode
4799 break
4802 done
4804 cd ..
4805 rm -rf conftest.dir
4806 else
4807 am_cv_CCAS_dependencies_compiler_type=none
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4812 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4813 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4816 test "x$enable_dependency_tracking" != xno \
4817 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4818 am__fastdepCCAS_TRUE=
4819 am__fastdepCCAS_FALSE='#'
4820 else
4821 am__fastdepCCAS_TRUE='#'
4822 am__fastdepCCAS_FALSE=
4830 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4831 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4832 # in both places for now and restore CFLAGS at the end of config.
4833 save_CFLAGS="$CFLAGS"
4835 # Find other programs we need.
4836 if test -n "$ac_tool_prefix"; then
4837 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4838 set dummy ${ac_tool_prefix}ar; ac_word=$2
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 $as_echo_n "checking for $ac_word... " >&6; }
4841 if test "${ac_cv_prog_AR+set}" = set; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 if test -n "$AR"; then
4845 ac_cv_prog_AR="$AR" # Let the user override the test.
4846 else
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4850 IFS=$as_save_IFS
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4854 ac_cv_prog_AR="${ac_tool_prefix}ar"
4855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856 break 2
4858 done
4859 done
4860 IFS=$as_save_IFS
4864 AR=$ac_cv_prog_AR
4865 if test -n "$AR"; then
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4867 $as_echo "$AR" >&6; }
4868 else
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4870 $as_echo "no" >&6; }
4875 if test -z "$ac_cv_prog_AR"; then
4876 ac_ct_AR=$AR
4877 # Extract the first word of "ar", so it can be a program name with args.
4878 set dummy ar; ac_word=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 if test -n "$ac_ct_AR"; then
4885 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4886 else
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894 ac_cv_prog_ac_ct_AR="ar"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 break 2
4898 done
4899 done
4900 IFS=$as_save_IFS
4904 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4905 if test -n "$ac_ct_AR"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4907 $as_echo "$ac_ct_AR" >&6; }
4908 else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4913 if test "x$ac_ct_AR" = x; then
4914 AR=""
4915 else
4916 case $cross_compiling:$ac_tool_warned in
4917 yes:)
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4920 ac_tool_warned=yes ;;
4921 esac
4922 AR=$ac_ct_AR
4924 else
4925 AR="$ac_cv_prog_AR"
4928 if test -n "$ac_tool_prefix"; then
4929 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4930 set dummy ${ac_tool_prefix}nm; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if test "${ac_cv_prog_NM+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if test -n "$NM"; then
4937 ac_cv_prog_NM="$NM" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_prog_NM="${ac_tool_prefix}nm"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4950 done
4951 done
4952 IFS=$as_save_IFS
4956 NM=$ac_cv_prog_NM
4957 if test -n "$NM"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4959 $as_echo "$NM" >&6; }
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4967 if test -z "$ac_cv_prog_NM"; then
4968 ac_ct_NM=$NM
4969 # Extract the first word of "nm", so it can be a program name with args.
4970 set dummy nm; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 if test -n "$ac_ct_NM"; then
4977 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4978 else
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 for as_dir in $PATH
4982 IFS=$as_save_IFS
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986 ac_cv_prog_ac_ct_NM="nm"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 break 2
4990 done
4991 done
4992 IFS=$as_save_IFS
4996 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4997 if test -n "$ac_ct_NM"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4999 $as_echo "$ac_ct_NM" >&6; }
5000 else
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5005 if test "x$ac_ct_NM" = x; then
5006 NM=""
5007 else
5008 case $cross_compiling:$ac_tool_warned in
5009 yes:)
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012 ac_tool_warned=yes ;;
5013 esac
5014 NM=$ac_ct_NM
5016 else
5017 NM="$ac_cv_prog_NM"
5020 if test -n "$ac_tool_prefix"; then
5021 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5022 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 if test -n "$RANLIB"; then
5029 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5042 done
5043 done
5044 IFS=$as_save_IFS
5048 RANLIB=$ac_cv_prog_RANLIB
5049 if test -n "$RANLIB"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5051 $as_echo "$RANLIB" >&6; }
5052 else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5059 if test -z "$ac_cv_prog_RANLIB"; then
5060 ac_ct_RANLIB=$RANLIB
5061 # Extract the first word of "ranlib", so it can be a program name with args.
5062 set dummy ranlib; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if test -n "$ac_ct_RANLIB"; then
5069 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_prog_ac_ct_RANLIB="ranlib"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5082 done
5083 done
5084 IFS=$as_save_IFS
5088 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5089 if test -n "$ac_ct_RANLIB"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5091 $as_echo "$ac_ct_RANLIB" >&6; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5097 if test "x$ac_ct_RANLIB" = x; then
5098 RANLIB="ranlib-not-found-in-path-error"
5099 else
5100 case $cross_compiling:$ac_tool_warned in
5101 yes:)
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5103 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5104 ac_tool_warned=yes ;;
5105 esac
5106 RANLIB=$ac_ct_RANLIB
5108 else
5109 RANLIB="$ac_cv_prog_RANLIB"
5112 # Extract the first word of "perl", so it can be a program name with args.
5113 set dummy perl; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_path_PERL+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 case $PERL in
5120 [\\/]* | ?:[\\/]*)
5121 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5135 done
5136 done
5137 IFS=$as_save_IFS
5139 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5141 esac
5143 PERL=$ac_cv_path_PERL
5144 if test -n "$PERL"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5146 $as_echo "$PERL" >&6; }
5147 else
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5154 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5155 set x ${MAKE-make}
5156 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5157 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5158 $as_echo_n "(cached) " >&6
5159 else
5160 cat >conftest.make <<\_ACEOF
5161 SHELL = /bin/sh
5162 all:
5163 @echo '@@@%%%=$(MAKE)=@@@%%%'
5164 _ACEOF
5165 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5166 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5167 *@@@%%%=?*=@@@%%%*)
5168 eval ac_cv_prog_make_${ac_make}_set=yes;;
5170 eval ac_cv_prog_make_${ac_make}_set=no;;
5171 esac
5172 rm -f conftest.make
5174 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5176 $as_echo "yes" >&6; }
5177 SET_MAKE=
5178 else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5181 SET_MAKE="MAKE=${MAKE-make}"
5186 # See if makeinfo has been installed and is modern enough
5187 # that we can use it.
5189 # Extract the first word of "makeinfo", so it can be a program name with args.
5190 set dummy makeinfo; ac_word=$2
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5192 $as_echo_n "checking for $ac_word... " >&6; }
5193 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 if test -n "$MAKEINFO"; then
5197 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5198 else
5199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 for as_dir in $PATH
5202 IFS=$as_save_IFS
5203 test -z "$as_dir" && as_dir=.
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_prog_MAKEINFO="makeinfo"
5207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 break 2
5210 done
5211 done
5212 IFS=$as_save_IFS
5216 MAKEINFO=$ac_cv_prog_MAKEINFO
5217 if test -n "$MAKEINFO"; then
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5219 $as_echo "$MAKEINFO" >&6; }
5220 else
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5226 if test -n "$MAKEINFO"; then
5227 # Found it, now check the version.
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5229 $as_echo_n "checking for modern makeinfo... " >&6; }
5230 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
5231 $as_echo_n "(cached) " >&6
5232 else
5233 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5234 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5236 case $ac_prog_version in
5237 '') gcc_cv_prog_makeinfo_modern=no;;
5238 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5239 *) gcc_cv_prog_makeinfo_modern=no;;
5240 esac
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5244 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5245 else
5246 gcc_cv_prog_makeinfo_modern=no
5248 if test $gcc_cv_prog_makeinfo_modern = no; then
5249 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5252 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5253 BUILD_INFO_TRUE=
5254 BUILD_INFO_FALSE='#'
5255 else
5256 BUILD_INFO_TRUE='#'
5257 BUILD_INFO_FALSE=
5262 # Configure libtool
5263 case `pwd` in
5264 *\ * | *\ *)
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5266 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5267 esac
5271 macro_version='2.2.7a'
5272 macro_revision='1.3134'
5286 ltmain="$ac_aux_dir/ltmain.sh"
5288 # Backslashify metacharacters that are still active within
5289 # double-quoted strings.
5290 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5292 # Same as above, but do not quote variable references.
5293 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5295 # Sed substitution to delay expansion of an escaped shell variable in a
5296 # double_quote_subst'ed string.
5297 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5299 # Sed substitution to delay expansion of an escaped single quote.
5300 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5302 # Sed substitution to avoid accidental globbing in evaled expressions
5303 no_glob_subst='s/\*/\\\*/g'
5305 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5306 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5307 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5310 $as_echo_n "checking how to print strings... " >&6; }
5311 # Test print first, because it will be a builtin if present.
5312 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5313 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5314 ECHO='print -r --'
5315 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5316 ECHO='printf %s\n'
5317 else
5318 # Use this function as a fallback that always works.
5319 func_fallback_echo ()
5321 eval 'cat <<_LTECHO_EOF
5323 _LTECHO_EOF'
5325 ECHO='func_fallback_echo'
5328 # func_echo_all arg...
5329 # Invoke $ECHO with all args, space-separated.
5330 func_echo_all ()
5332 $ECHO ""
5335 case "$ECHO" in
5336 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5337 $as_echo "printf" >&6; } ;;
5338 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5339 $as_echo "print -r" >&6; } ;;
5340 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5341 $as_echo "cat" >&6; } ;;
5342 esac
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5358 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5359 if test "${ac_cv_path_SED+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5363 for ac_i in 1 2 3 4 5 6 7; do
5364 ac_script="$ac_script$as_nl$ac_script"
5365 done
5366 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5367 { ac_script=; unset ac_script;}
5368 if test -z "$SED"; then
5369 ac_path_SED_found=false
5370 # Loop through the user's path and test for each of PROGNAME-LIST
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_prog in sed gsed; do
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5379 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5380 # Check for GNU ac_path_SED and select it if it is found.
5381 # Check for GNU $ac_path_SED
5382 case `"$ac_path_SED" --version 2>&1` in
5383 *GNU*)
5384 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5386 ac_count=0
5387 $as_echo_n 0123456789 >"conftest.in"
5388 while :
5390 cat "conftest.in" "conftest.in" >"conftest.tmp"
5391 mv "conftest.tmp" "conftest.in"
5392 cp "conftest.in" "conftest.nl"
5393 $as_echo '' >> "conftest.nl"
5394 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5395 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5396 as_fn_arith $ac_count + 1 && ac_count=$as_val
5397 if test $ac_count -gt ${ac_path_SED_max-0}; then
5398 # Best one so far, save it but keep looking for a better one
5399 ac_cv_path_SED="$ac_path_SED"
5400 ac_path_SED_max=$ac_count
5402 # 10*(2^10) chars as input seems more than enough
5403 test $ac_count -gt 10 && break
5404 done
5405 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5406 esac
5408 $ac_path_SED_found && break 3
5409 done
5410 done
5411 done
5412 IFS=$as_save_IFS
5413 if test -z "$ac_cv_path_SED"; then
5414 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5416 else
5417 ac_cv_path_SED=$SED
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5422 $as_echo "$ac_cv_path_SED" >&6; }
5423 SED="$ac_cv_path_SED"
5424 rm -f conftest.sed
5426 test -z "$SED" && SED=sed
5427 Xsed="$SED -e 1s/^X//"
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5440 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5441 if test "${ac_cv_path_GREP+set}" = set; then :
5442 $as_echo_n "(cached) " >&6
5443 else
5444 if test -z "$GREP"; then
5445 ac_path_GREP_found=false
5446 # Loop through the user's path and test for each of PROGNAME-LIST
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5450 IFS=$as_save_IFS
5451 test -z "$as_dir" && as_dir=.
5452 for ac_prog in grep ggrep; do
5453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5455 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5456 # Check for GNU ac_path_GREP and select it if it is found.
5457 # Check for GNU $ac_path_GREP
5458 case `"$ac_path_GREP" --version 2>&1` in
5459 *GNU*)
5460 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5462 ac_count=0
5463 $as_echo_n 0123456789 >"conftest.in"
5464 while :
5466 cat "conftest.in" "conftest.in" >"conftest.tmp"
5467 mv "conftest.tmp" "conftest.in"
5468 cp "conftest.in" "conftest.nl"
5469 $as_echo 'GREP' >> "conftest.nl"
5470 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5471 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5472 as_fn_arith $ac_count + 1 && ac_count=$as_val
5473 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5474 # Best one so far, save it but keep looking for a better one
5475 ac_cv_path_GREP="$ac_path_GREP"
5476 ac_path_GREP_max=$ac_count
5478 # 10*(2^10) chars as input seems more than enough
5479 test $ac_count -gt 10 && break
5480 done
5481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5482 esac
5484 $ac_path_GREP_found && break 3
5485 done
5486 done
5487 done
5488 IFS=$as_save_IFS
5489 if test -z "$ac_cv_path_GREP"; then
5490 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5492 else
5493 ac_cv_path_GREP=$GREP
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5498 $as_echo "$ac_cv_path_GREP" >&6; }
5499 GREP="$ac_cv_path_GREP"
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5503 $as_echo_n "checking for egrep... " >&6; }
5504 if test "${ac_cv_path_EGREP+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5508 then ac_cv_path_EGREP="$GREP -E"
5509 else
5510 if test -z "$EGREP"; then
5511 ac_path_EGREP_found=false
5512 # Loop through the user's path and test for each of PROGNAME-LIST
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5514 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5516 IFS=$as_save_IFS
5517 test -z "$as_dir" && as_dir=.
5518 for ac_prog in egrep; do
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5521 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5522 # Check for GNU ac_path_EGREP and select it if it is found.
5523 # Check for GNU $ac_path_EGREP
5524 case `"$ac_path_EGREP" --version 2>&1` in
5525 *GNU*)
5526 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5528 ac_count=0
5529 $as_echo_n 0123456789 >"conftest.in"
5530 while :
5532 cat "conftest.in" "conftest.in" >"conftest.tmp"
5533 mv "conftest.tmp" "conftest.in"
5534 cp "conftest.in" "conftest.nl"
5535 $as_echo 'EGREP' >> "conftest.nl"
5536 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5538 as_fn_arith $ac_count + 1 && ac_count=$as_val
5539 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5540 # Best one so far, save it but keep looking for a better one
5541 ac_cv_path_EGREP="$ac_path_EGREP"
5542 ac_path_EGREP_max=$ac_count
5544 # 10*(2^10) chars as input seems more than enough
5545 test $ac_count -gt 10 && break
5546 done
5547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5548 esac
5550 $ac_path_EGREP_found && break 3
5551 done
5552 done
5553 done
5554 IFS=$as_save_IFS
5555 if test -z "$ac_cv_path_EGREP"; then
5556 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5558 else
5559 ac_cv_path_EGREP=$EGREP
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5565 $as_echo "$ac_cv_path_EGREP" >&6; }
5566 EGREP="$ac_cv_path_EGREP"
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5570 $as_echo_n "checking for fgrep... " >&6; }
5571 if test "${ac_cv_path_FGREP+set}" = set; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5575 then ac_cv_path_FGREP="$GREP -F"
5576 else
5577 if test -z "$FGREP"; then
5578 ac_path_FGREP_found=false
5579 # Loop through the user's path and test for each of PROGNAME-LIST
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_prog in fgrep; do
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5588 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5589 # Check for GNU ac_path_FGREP and select it if it is found.
5590 # Check for GNU $ac_path_FGREP
5591 case `"$ac_path_FGREP" --version 2>&1` in
5592 *GNU*)
5593 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5595 ac_count=0
5596 $as_echo_n 0123456789 >"conftest.in"
5597 while :
5599 cat "conftest.in" "conftest.in" >"conftest.tmp"
5600 mv "conftest.tmp" "conftest.in"
5601 cp "conftest.in" "conftest.nl"
5602 $as_echo 'FGREP' >> "conftest.nl"
5603 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5605 as_fn_arith $ac_count + 1 && ac_count=$as_val
5606 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5607 # Best one so far, save it but keep looking for a better one
5608 ac_cv_path_FGREP="$ac_path_FGREP"
5609 ac_path_FGREP_max=$ac_count
5611 # 10*(2^10) chars as input seems more than enough
5612 test $ac_count -gt 10 && break
5613 done
5614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5615 esac
5617 $ac_path_FGREP_found && break 3
5618 done
5619 done
5620 done
5621 IFS=$as_save_IFS
5622 if test -z "$ac_cv_path_FGREP"; then
5623 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5625 else
5626 ac_cv_path_FGREP=$FGREP
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5632 $as_echo "$ac_cv_path_FGREP" >&6; }
5633 FGREP="$ac_cv_path_FGREP"
5636 test -z "$GREP" && GREP=grep
5656 # Check whether --with-gnu-ld was given.
5657 if test "${with_gnu_ld+set}" = set; then :
5658 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5659 else
5660 with_gnu_ld=no
5663 ac_prog=ld
5664 if test "$GCC" = yes; then
5665 # Check if gcc -print-prog-name=ld gives a path.
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5667 $as_echo_n "checking for ld used by $CC... " >&6; }
5668 case $host in
5669 *-*-mingw*)
5670 # gcc leaves a trailing carriage return which upsets mingw
5671 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5673 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5674 esac
5675 case $ac_prog in
5676 # Accept absolute paths.
5677 [\\/]* | ?:[\\/]*)
5678 re_direlt='/[^/][^/]*/\.\./'
5679 # Canonicalize the pathname of ld
5680 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5681 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5682 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5683 done
5684 test -z "$LD" && LD="$ac_prog"
5687 # If it fails, then pretend we aren't using GCC.
5688 ac_prog=ld
5691 # If it is relative, then search for the first ld in PATH.
5692 with_gnu_ld=unknown
5694 esac
5695 elif test "$with_gnu_ld" = yes; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5697 $as_echo_n "checking for GNU ld... " >&6; }
5698 else
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5700 $as_echo_n "checking for non-GNU ld... " >&6; }
5702 if test "${lt_cv_path_LD+set}" = set; then :
5703 $as_echo_n "(cached) " >&6
5704 else
5705 if test -z "$LD"; then
5706 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5707 for ac_dir in $PATH; do
5708 IFS="$lt_save_ifs"
5709 test -z "$ac_dir" && ac_dir=.
5710 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5711 lt_cv_path_LD="$ac_dir/$ac_prog"
5712 # Check to see if the program is GNU ld. I'd rather use --version,
5713 # but apparently some variants of GNU ld only accept -v.
5714 # Break only if it was the GNU/non-GNU ld that we prefer.
5715 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5716 *GNU* | *'with BFD'*)
5717 test "$with_gnu_ld" != no && break
5720 test "$with_gnu_ld" != yes && break
5722 esac
5724 done
5725 IFS="$lt_save_ifs"
5726 else
5727 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5731 LD="$lt_cv_path_LD"
5732 if test -n "$LD"; then
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5734 $as_echo "$LD" >&6; }
5735 else
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5739 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5741 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5742 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5743 $as_echo_n "(cached) " >&6
5744 else
5745 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5746 case `$LD -v 2>&1 </dev/null` in
5747 *GNU* | *'with BFD'*)
5748 lt_cv_prog_gnu_ld=yes
5751 lt_cv_prog_gnu_ld=no
5753 esac
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5756 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5757 with_gnu_ld=$lt_cv_prog_gnu_ld
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5768 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5769 if test "${lt_cv_path_NM+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5771 else
5772 if test -n "$NM"; then
5773 # Let the user override the test.
5774 lt_cv_path_NM="$NM"
5775 else
5776 lt_nm_to_check="${ac_tool_prefix}nm"
5777 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5778 lt_nm_to_check="$lt_nm_to_check nm"
5780 for lt_tmp_nm in $lt_nm_to_check; do
5781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5782 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5783 IFS="$lt_save_ifs"
5784 test -z "$ac_dir" && ac_dir=.
5785 tmp_nm="$ac_dir/$lt_tmp_nm"
5786 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5787 # Check to see if the nm accepts a BSD-compat flag.
5788 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5789 # nm: unknown option "B" ignored
5790 # Tru64's nm complains that /dev/null is an invalid object file
5791 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5792 */dev/null* | *'Invalid file or object type'*)
5793 lt_cv_path_NM="$tmp_nm -B"
5794 break
5797 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5798 */dev/null*)
5799 lt_cv_path_NM="$tmp_nm -p"
5800 break
5803 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5804 continue # so that we can try to find one that supports BSD flags
5806 esac
5808 esac
5810 done
5811 IFS="$lt_save_ifs"
5812 done
5813 : ${lt_cv_path_NM=no}
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5817 $as_echo "$lt_cv_path_NM" >&6; }
5818 if test "$lt_cv_path_NM" != "no"; then
5819 NM="$lt_cv_path_NM"
5820 else
5821 # Didn't find any BSD compatible name lister, look for dumpbin.
5822 if test -n "$DUMPBIN"; then :
5823 # Let the user override the test.
5824 else
5825 if test -n "$ac_tool_prefix"; then
5826 for ac_prog in dumpbin "link -dump"
5828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5831 $as_echo_n "checking for $ac_word... " >&6; }
5832 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 if test -n "$DUMPBIN"; then
5836 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5837 else
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839 for as_dir in $PATH
5841 IFS=$as_save_IFS
5842 test -z "$as_dir" && as_dir=.
5843 for ac_exec_ext in '' $ac_executable_extensions; do
5844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5845 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5847 break 2
5849 done
5850 done
5851 IFS=$as_save_IFS
5855 DUMPBIN=$ac_cv_prog_DUMPBIN
5856 if test -n "$DUMPBIN"; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5858 $as_echo "$DUMPBIN" >&6; }
5859 else
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5861 $as_echo "no" >&6; }
5865 test -n "$DUMPBIN" && break
5866 done
5868 if test -z "$DUMPBIN"; then
5869 ac_ct_DUMPBIN=$DUMPBIN
5870 for ac_prog in dumpbin "link -dump"
5872 # Extract the first word of "$ac_prog", so it can be a program name with args.
5873 set dummy $ac_prog; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 if test -n "$ac_ct_DUMPBIN"; then
5880 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5889 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5893 done
5894 done
5895 IFS=$as_save_IFS
5899 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5900 if test -n "$ac_ct_DUMPBIN"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5902 $as_echo "$ac_ct_DUMPBIN" >&6; }
5903 else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5909 test -n "$ac_ct_DUMPBIN" && break
5910 done
5912 if test "x$ac_ct_DUMPBIN" = x; then
5913 DUMPBIN=":"
5914 else
5915 case $cross_compiling:$ac_tool_warned in
5916 yes:)
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5919 ac_tool_warned=yes ;;
5920 esac
5921 DUMPBIN=$ac_ct_DUMPBIN
5925 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5926 *COFF*)
5927 DUMPBIN="$DUMPBIN -symbols"
5930 DUMPBIN=:
5932 esac
5935 if test "$DUMPBIN" != ":"; then
5936 NM="$DUMPBIN"
5939 test -z "$NM" && NM=nm
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5947 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5948 if test "${lt_cv_nm_interface+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 lt_cv_nm_interface="BSD nm"
5952 echo "int some_variable = 0;" > conftest.$ac_ext
5953 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5954 (eval "$ac_compile" 2>conftest.err)
5955 cat conftest.err >&5
5956 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5957 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5958 cat conftest.err >&5
5959 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5960 cat conftest.out >&5
5961 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5962 lt_cv_nm_interface="MS dumpbin"
5964 rm -f conftest*
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5967 $as_echo "$lt_cv_nm_interface" >&6; }
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5970 $as_echo_n "checking whether ln -s works... " >&6; }
5971 LN_S=$as_ln_s
5972 if test "$LN_S" = "ln -s"; then
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5974 $as_echo "yes" >&6; }
5975 else
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5977 $as_echo "no, using $LN_S" >&6; }
5980 # find the maximum length of command line arguments
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5982 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5983 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5987 teststring="ABCD"
5989 case $build_os in
5990 msdosdjgpp*)
5991 # On DJGPP, this test can blow up pretty badly due to problems in libc
5992 # (any single argument exceeding 2000 bytes causes a buffer overrun
5993 # during glob expansion). Even if it were fixed, the result of this
5994 # check would be larger than it should be.
5995 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5998 gnu*)
5999 # Under GNU Hurd, this test is not required because there is
6000 # no limit to the length of command line arguments.
6001 # Libtool will interpret -1 as no limit whatsoever
6002 lt_cv_sys_max_cmd_len=-1;
6005 cygwin* | mingw* | cegcc*)
6006 # On Win9x/ME, this test blows up -- it succeeds, but takes
6007 # about 5 minutes as the teststring grows exponentially.
6008 # Worse, since 9x/ME are not pre-emptively multitasking,
6009 # you end up with a "frozen" computer, even though with patience
6010 # the test eventually succeeds (with a max line length of 256k).
6011 # Instead, let's just punt: use the minimum linelength reported by
6012 # all of the supported platforms: 8192 (on NT/2K/XP).
6013 lt_cv_sys_max_cmd_len=8192;
6016 mint*)
6017 # On MiNT this can take a long time and run out of memory.
6018 lt_cv_sys_max_cmd_len=8192;
6021 amigaos*)
6022 # On AmigaOS with pdksh, this test takes hours, literally.
6023 # So we just punt and use a minimum line length of 8192.
6024 lt_cv_sys_max_cmd_len=8192;
6027 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6028 # This has been around since 386BSD, at least. Likely further.
6029 if test -x /sbin/sysctl; then
6030 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6031 elif test -x /usr/sbin/sysctl; then
6032 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6033 else
6034 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6036 # And add a safety zone
6037 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6038 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6041 interix*)
6042 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6043 lt_cv_sys_max_cmd_len=196608
6046 osf*)
6047 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6048 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6049 # nice to cause kernel panics so lets avoid the loop below.
6050 # First set a reasonable default.
6051 lt_cv_sys_max_cmd_len=16384
6053 if test -x /sbin/sysconfig; then
6054 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6055 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6056 esac
6059 sco3.2v5*)
6060 lt_cv_sys_max_cmd_len=102400
6062 sysv5* | sco5v6* | sysv4.2uw2*)
6063 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6064 if test -n "$kargmax"; then
6065 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6066 else
6067 lt_cv_sys_max_cmd_len=32768
6071 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6072 if test -n "$lt_cv_sys_max_cmd_len"; then
6073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6075 else
6076 # Make teststring a little bigger before we do anything with it.
6077 # a 1K string should be a reasonable start.
6078 for i in 1 2 3 4 5 6 7 8 ; do
6079 teststring=$teststring$teststring
6080 done
6081 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6082 # If test is not a shell built-in, we'll probably end up computing a
6083 # maximum length that is only half of the actual maximum length, but
6084 # we can't tell.
6085 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6086 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6087 test $i != 17 # 1/2 MB should be enough
6089 i=`expr $i + 1`
6090 teststring=$teststring$teststring
6091 done
6092 # Only check the string length outside the loop.
6093 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6094 teststring=
6095 # Add a significant safety factor because C++ compilers can tack on
6096 # massive amounts of additional arguments before passing them to the
6097 # linker. It appears as though 1/2 is a usable value.
6098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6101 esac
6105 if test -n $lt_cv_sys_max_cmd_len ; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6107 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6108 else
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6110 $as_echo "none" >&6; }
6112 max_cmd_len=$lt_cv_sys_max_cmd_len
6119 : ${CP="cp -f"}
6120 : ${MV="mv -f"}
6121 : ${RM="rm -f"}
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6124 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6125 # Try some XSI features
6126 xsi_shell=no
6127 ( _lt_dummy="a/b/c"
6128 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6129 = c,a/b,, \
6130 && eval 'test $(( 1 + 1 )) -eq 2 \
6131 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6132 && xsi_shell=yes
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6134 $as_echo "$xsi_shell" >&6; }
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6138 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6139 lt_shell_append=no
6140 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6141 >/dev/null 2>&1 \
6142 && lt_shell_append=yes
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6144 $as_echo "$lt_shell_append" >&6; }
6147 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6148 lt_unset=unset
6149 else
6150 lt_unset=false
6157 # test EBCDIC or ASCII
6158 case `echo X|tr X '\101'` in
6159 A) # ASCII based system
6160 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6161 lt_SP2NL='tr \040 \012'
6162 lt_NL2SP='tr \015\012 \040\040'
6164 *) # EBCDIC based system
6165 lt_SP2NL='tr \100 \n'
6166 lt_NL2SP='tr \r\n \100\100'
6168 esac
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6179 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6180 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183 lt_cv_ld_reload_flag='-r'
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6186 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6187 reload_flag=$lt_cv_ld_reload_flag
6188 case $reload_flag in
6189 "" | " "*) ;;
6190 *) reload_flag=" $reload_flag" ;;
6191 esac
6192 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6193 case $host_os in
6194 darwin*)
6195 if test "$GCC" = yes; then
6196 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6197 else
6198 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6201 esac
6211 if test -n "$ac_tool_prefix"; then
6212 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6213 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6215 $as_echo_n "checking for $ac_word... " >&6; }
6216 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6217 $as_echo_n "(cached) " >&6
6218 else
6219 if test -n "$OBJDUMP"; then
6220 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6221 else
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 for as_dir in $PATH
6225 IFS=$as_save_IFS
6226 test -z "$as_dir" && as_dir=.
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6229 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 break 2
6233 done
6234 done
6235 IFS=$as_save_IFS
6239 OBJDUMP=$ac_cv_prog_OBJDUMP
6240 if test -n "$OBJDUMP"; then
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6242 $as_echo "$OBJDUMP" >&6; }
6243 else
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6245 $as_echo "no" >&6; }
6250 if test -z "$ac_cv_prog_OBJDUMP"; then
6251 ac_ct_OBJDUMP=$OBJDUMP
6252 # Extract the first word of "objdump", so it can be a program name with args.
6253 set dummy objdump; ac_word=$2
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255 $as_echo_n "checking for $ac_word... " >&6; }
6256 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 if test -n "$ac_ct_OBJDUMP"; then
6260 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6261 else
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 break 2
6273 done
6274 done
6275 IFS=$as_save_IFS
6279 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6280 if test -n "$ac_ct_OBJDUMP"; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6282 $as_echo "$ac_ct_OBJDUMP" >&6; }
6283 else
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6288 if test "x$ac_ct_OBJDUMP" = x; then
6289 OBJDUMP="false"
6290 else
6291 case $cross_compiling:$ac_tool_warned in
6292 yes:)
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6295 ac_tool_warned=yes ;;
6296 esac
6297 OBJDUMP=$ac_ct_OBJDUMP
6299 else
6300 OBJDUMP="$ac_cv_prog_OBJDUMP"
6303 test -z "$OBJDUMP" && OBJDUMP=objdump
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6314 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6315 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318 lt_cv_file_magic_cmd='$MAGIC_CMD'
6319 lt_cv_file_magic_test_file=
6320 lt_cv_deplibs_check_method='unknown'
6321 # Need to set the preceding variable on all platforms that support
6322 # interlibrary dependencies.
6323 # 'none' -- dependencies not supported.
6324 # `unknown' -- same as none, but documents that we really don't know.
6325 # 'pass_all' -- all dependencies passed with no checks.
6326 # 'test_compile' -- check by making test program.
6327 # 'file_magic [[regex]]' -- check by looking for files in library path
6328 # which responds to the $file_magic_cmd with a given extended regex.
6329 # If you have `file' or equivalent on your system and you're not sure
6330 # whether `pass_all' will *always* work, you probably want this one.
6332 case $host_os in
6333 aix[4-9]*)
6334 lt_cv_deplibs_check_method=pass_all
6337 beos*)
6338 lt_cv_deplibs_check_method=pass_all
6341 bsdi[45]*)
6342 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6343 lt_cv_file_magic_cmd='/usr/bin/file -L'
6344 lt_cv_file_magic_test_file=/shlib/libc.so
6347 cygwin*)
6348 # func_win32_libid is a shell function defined in ltmain.sh
6349 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6350 lt_cv_file_magic_cmd='func_win32_libid'
6353 mingw* | pw32*)
6354 # Base MSYS/MinGW do not provide the 'file' command needed by
6355 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6356 # unless we find 'file', for example because we are cross-compiling.
6357 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6358 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6359 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6360 lt_cv_file_magic_cmd='func_win32_libid'
6361 else
6362 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6363 lt_cv_file_magic_cmd='$OBJDUMP -f'
6367 cegcc*)
6368 # use the weaker test based on 'objdump'. See mingw*.
6369 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6370 lt_cv_file_magic_cmd='$OBJDUMP -f'
6373 darwin* | rhapsody*)
6374 lt_cv_deplibs_check_method=pass_all
6377 freebsd* | dragonfly*)
6378 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6379 case $host_cpu in
6380 i*86 )
6381 # Not sure whether the presence of OpenBSD here was a mistake.
6382 # Let's accept both of them until this is cleared up.
6383 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6384 lt_cv_file_magic_cmd=/usr/bin/file
6385 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6387 esac
6388 else
6389 lt_cv_deplibs_check_method=pass_all
6393 gnu*)
6394 lt_cv_deplibs_check_method=pass_all
6397 haiku*)
6398 lt_cv_deplibs_check_method=pass_all
6401 hpux10.20* | hpux11*)
6402 lt_cv_file_magic_cmd=/usr/bin/file
6403 case $host_cpu in
6404 ia64*)
6405 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6406 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6408 hppa*64*)
6409 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6410 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6413 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6414 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6416 esac
6419 interix[3-9]*)
6420 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6421 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6424 irix5* | irix6* | nonstopux*)
6425 case $LD in
6426 *-32|*"-32 ") libmagic=32-bit;;
6427 *-n32|*"-n32 ") libmagic=N32;;
6428 *-64|*"-64 ") libmagic=64-bit;;
6429 *) libmagic=never-match;;
6430 esac
6431 lt_cv_deplibs_check_method=pass_all
6434 # This must be Linux ELF.
6435 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6436 lt_cv_deplibs_check_method=pass_all
6439 netbsd*)
6440 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6441 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6442 else
6443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6447 newos6*)
6448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6449 lt_cv_file_magic_cmd=/usr/bin/file
6450 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6453 *nto* | *qnx*)
6454 lt_cv_deplibs_check_method=pass_all
6457 openbsd*)
6458 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6460 else
6461 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6465 osf3* | osf4* | osf5*)
6466 lt_cv_deplibs_check_method=pass_all
6469 rdos*)
6470 lt_cv_deplibs_check_method=pass_all
6473 solaris*)
6474 lt_cv_deplibs_check_method=pass_all
6477 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6478 lt_cv_deplibs_check_method=pass_all
6481 sysv4 | sysv4.3*)
6482 case $host_vendor in
6483 motorola)
6484 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]'
6485 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6487 ncr)
6488 lt_cv_deplibs_check_method=pass_all
6490 sequent)
6491 lt_cv_file_magic_cmd='/bin/file'
6492 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6494 sni)
6495 lt_cv_file_magic_cmd='/bin/file'
6496 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6497 lt_cv_file_magic_test_file=/lib/libc.so
6499 siemens)
6500 lt_cv_deplibs_check_method=pass_all
6503 lt_cv_deplibs_check_method=pass_all
6505 esac
6508 tpf*)
6509 lt_cv_deplibs_check_method=pass_all
6511 esac
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6515 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6516 file_magic_cmd=$lt_cv_file_magic_cmd
6517 deplibs_check_method=$lt_cv_deplibs_check_method
6518 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6531 if test -n "$ac_tool_prefix"; then
6532 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6533 set dummy ${ac_tool_prefix}ar; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if test "${ac_cv_prog_AR+set}" = set; then :
6537 $as_echo_n "(cached) " >&6
6538 else
6539 if test -n "$AR"; then
6540 ac_cv_prog_AR="$AR" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549 ac_cv_prog_AR="${ac_tool_prefix}ar"
6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 break 2
6553 done
6554 done
6555 IFS=$as_save_IFS
6559 AR=$ac_cv_prog_AR
6560 if test -n "$AR"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6562 $as_echo "$AR" >&6; }
6563 else
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6570 if test -z "$ac_cv_prog_AR"; then
6571 ac_ct_AR=$AR
6572 # Extract the first word of "ar", so it can be a program name with args.
6573 set dummy ar; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 if test -n "$ac_ct_AR"; then
6580 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589 ac_cv_prog_ac_ct_AR="ar"
6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6593 done
6594 done
6595 IFS=$as_save_IFS
6599 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6600 if test -n "$ac_ct_AR"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6602 $as_echo "$ac_ct_AR" >&6; }
6603 else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6608 if test "x$ac_ct_AR" = x; then
6609 AR="false"
6610 else
6611 case $cross_compiling:$ac_tool_warned in
6612 yes:)
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6615 ac_tool_warned=yes ;;
6616 esac
6617 AR=$ac_ct_AR
6619 else
6620 AR="$ac_cv_prog_AR"
6623 test -z "$AR" && AR=ar
6624 test -z "$AR_FLAGS" && AR_FLAGS=cru
6636 if test -n "$ac_tool_prefix"; then
6637 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6638 set dummy ${ac_tool_prefix}strip; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if test "${ac_cv_prog_STRIP+set}" = set; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 if test -n "$STRIP"; then
6645 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6646 else
6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 for as_dir in $PATH
6650 IFS=$as_save_IFS
6651 test -z "$as_dir" && as_dir=.
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6654 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 break 2
6658 done
6659 done
6660 IFS=$as_save_IFS
6664 STRIP=$ac_cv_prog_STRIP
6665 if test -n "$STRIP"; then
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6667 $as_echo "$STRIP" >&6; }
6668 else
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6670 $as_echo "no" >&6; }
6675 if test -z "$ac_cv_prog_STRIP"; then
6676 ac_ct_STRIP=$STRIP
6677 # Extract the first word of "strip", so it can be a program name with args.
6678 set dummy strip; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 if test -n "$ac_ct_STRIP"; then
6685 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6690 IFS=$as_save_IFS
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6694 ac_cv_prog_ac_ct_STRIP="strip"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 break 2
6698 done
6699 done
6700 IFS=$as_save_IFS
6704 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6705 if test -n "$ac_ct_STRIP"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6707 $as_echo "$ac_ct_STRIP" >&6; }
6708 else
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6713 if test "x$ac_ct_STRIP" = x; then
6714 STRIP=":"
6715 else
6716 case $cross_compiling:$ac_tool_warned in
6717 yes:)
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6720 ac_tool_warned=yes ;;
6721 esac
6722 STRIP=$ac_ct_STRIP
6724 else
6725 STRIP="$ac_cv_prog_STRIP"
6728 test -z "$STRIP" && STRIP=:
6735 if test -n "$ac_tool_prefix"; then
6736 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6737 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739 $as_echo_n "checking for $ac_word... " >&6; }
6740 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 if test -n "$RANLIB"; then
6744 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6745 else
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 break 2
6757 done
6758 done
6759 IFS=$as_save_IFS
6763 RANLIB=$ac_cv_prog_RANLIB
6764 if test -n "$RANLIB"; then
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6766 $as_echo "$RANLIB" >&6; }
6767 else
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6774 if test -z "$ac_cv_prog_RANLIB"; then
6775 ac_ct_RANLIB=$RANLIB
6776 # Extract the first word of "ranlib", so it can be a program name with args.
6777 set dummy ranlib; ac_word=$2
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779 $as_echo_n "checking for $ac_word... " >&6; }
6780 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6781 $as_echo_n "(cached) " >&6
6782 else
6783 if test -n "$ac_ct_RANLIB"; then
6784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793 ac_cv_prog_ac_ct_RANLIB="ranlib"
6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6797 done
6798 done
6799 IFS=$as_save_IFS
6803 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6804 if test -n "$ac_ct_RANLIB"; then
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6806 $as_echo "$ac_ct_RANLIB" >&6; }
6807 else
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809 $as_echo "no" >&6; }
6812 if test "x$ac_ct_RANLIB" = x; then
6813 RANLIB=":"
6814 else
6815 case $cross_compiling:$ac_tool_warned in
6816 yes:)
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6819 ac_tool_warned=yes ;;
6820 esac
6821 RANLIB=$ac_ct_RANLIB
6823 else
6824 RANLIB="$ac_cv_prog_RANLIB"
6827 test -z "$RANLIB" && RANLIB=:
6834 # Determine commands to create old-style static archives.
6835 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6836 old_postinstall_cmds='chmod 644 $oldlib'
6837 old_postuninstall_cmds=
6839 if test -n "$RANLIB"; then
6840 case $host_os in
6841 openbsd*)
6842 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6845 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6847 esac
6848 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6851 case $host_os in
6852 darwin*)
6853 lock_old_archive_extraction=yes ;;
6855 lock_old_archive_extraction=no ;;
6856 esac
6896 # If no C compiler was specified, use CC.
6897 LTCC=${LTCC-"$CC"}
6899 # If no C compiler flags were specified, use CFLAGS.
6900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6902 # Allow CC to be a program name with arguments.
6903 compiler=$CC
6906 # Check for command to grab the raw symbol name followed by C symbol from nm.
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6908 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6909 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6910 $as_echo_n "(cached) " >&6
6911 else
6913 # These are sane defaults that work on at least a few old systems.
6914 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6916 # Character class describing NM global symbol codes.
6917 symcode='[BCDEGRST]'
6919 # Regexp to match symbols that can be accessed directly from C.
6920 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6922 # Define system-specific variables.
6923 case $host_os in
6924 aix*)
6925 symcode='[BCDT]'
6927 cygwin* | mingw* | pw32* | cegcc*)
6928 symcode='[ABCDGISTW]'
6930 hpux*)
6931 if test "$host_cpu" = ia64; then
6932 symcode='[ABCDEGRST]'
6935 irix* | nonstopux*)
6936 symcode='[BCDEGRST]'
6938 osf*)
6939 symcode='[BCDEGQRST]'
6941 solaris*)
6942 symcode='[BDRT]'
6944 sco3.2v5*)
6945 symcode='[DT]'
6947 sysv4.2uw2*)
6948 symcode='[DT]'
6950 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6951 symcode='[ABDT]'
6953 sysv4)
6954 symcode='[DFNSTU]'
6956 esac
6958 # If we're using GNU nm, then use its standard symbol codes.
6959 case `$NM -V 2>&1` in
6960 *GNU* | *'with BFD'*)
6961 symcode='[ABCDGIRSTW]' ;;
6962 esac
6964 # Transform an extracted symbol line into a proper C declaration.
6965 # Some systems (esp. on ia64) link data and code symbols differently,
6966 # so use this general approach.
6967 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6969 # Transform an extracted symbol line into symbol name and symbol address
6970 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6971 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'"
6973 # Handle CRLF in mingw tool chain
6974 opt_cr=
6975 case $build_os in
6976 mingw*)
6977 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6979 esac
6981 # Try without a prefix underscore, then with it.
6982 for ac_symprfx in "" "_"; do
6984 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6985 symxfrm="\\1 $ac_symprfx\\2 \\2"
6987 # Write the raw and C identifiers.
6988 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6989 # Fake it for dumpbin and say T for any non-static function
6990 # and D for any global variable.
6991 # Also find C++ and __fastcall symbols from MSVC++,
6992 # which start with @ or ?.
6993 lt_cv_sys_global_symbol_pipe="$AWK '"\
6994 " {last_section=section; section=\$ 3};"\
6995 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6996 " \$ 0!~/External *\|/{next};"\
6997 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6998 " {if(hide[section]) next};"\
6999 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7000 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7001 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7002 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7003 " ' prfx=^$ac_symprfx"
7004 else
7005 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7008 # Check to see that the pipe works correctly.
7009 pipe_works=no
7011 rm -f conftest*
7012 cat > conftest.$ac_ext <<_LT_EOF
7013 #ifdef __cplusplus
7014 extern "C" {
7015 #endif
7016 char nm_test_var;
7017 void nm_test_func(void);
7018 void nm_test_func(void){}
7019 #ifdef __cplusplus
7021 #endif
7022 int main(){nm_test_var='a';nm_test_func();return(0);}
7023 _LT_EOF
7025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7026 (eval $ac_compile) 2>&5
7027 ac_status=$?
7028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7029 test $ac_status = 0; }; then
7030 # Now try to grab the symbols.
7031 nlist=conftest.nm
7032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7033 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7034 ac_status=$?
7035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7036 test $ac_status = 0; } && test -s "$nlist"; then
7037 # Try sorting and uniquifying the output.
7038 if sort "$nlist" | uniq > "$nlist"T; then
7039 mv -f "$nlist"T "$nlist"
7040 else
7041 rm -f "$nlist"T
7044 # Make sure that we snagged all the symbols we need.
7045 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7046 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7047 cat <<_LT_EOF > conftest.$ac_ext
7048 #ifdef __cplusplus
7049 extern "C" {
7050 #endif
7052 _LT_EOF
7053 # Now generate the symbol file.
7054 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7056 cat <<_LT_EOF >> conftest.$ac_ext
7058 /* The mapping between symbol names and symbols. */
7059 const struct {
7060 const char *name;
7061 void *address;
7063 lt__PROGRAM__LTX_preloaded_symbols[] =
7065 { "@PROGRAM@", (void *) 0 },
7066 _LT_EOF
7067 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7068 cat <<\_LT_EOF >> conftest.$ac_ext
7069 {0, (void *) 0}
7072 /* This works around a problem in FreeBSD linker */
7073 #ifdef FREEBSD_WORKAROUND
7074 static const void *lt_preloaded_setup() {
7075 return lt__PROGRAM__LTX_preloaded_symbols;
7077 #endif
7079 #ifdef __cplusplus
7081 #endif
7082 _LT_EOF
7083 # Now try linking the two files.
7084 mv conftest.$ac_objext conftstm.$ac_objext
7085 lt_save_LIBS="$LIBS"
7086 lt_save_CFLAGS="$CFLAGS"
7087 LIBS="conftstm.$ac_objext"
7088 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7090 (eval $ac_link) 2>&5
7091 ac_status=$?
7092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7093 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7094 pipe_works=yes
7096 LIBS="$lt_save_LIBS"
7097 CFLAGS="$lt_save_CFLAGS"
7098 else
7099 echo "cannot find nm_test_func in $nlist" >&5
7101 else
7102 echo "cannot find nm_test_var in $nlist" >&5
7104 else
7105 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7107 else
7108 echo "$progname: failed program was:" >&5
7109 cat conftest.$ac_ext >&5
7111 rm -rf conftest* conftst*
7113 # Do not use the global_symbol_pipe unless it works.
7114 if test "$pipe_works" = yes; then
7115 break
7116 else
7117 lt_cv_sys_global_symbol_pipe=
7119 done
7123 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7124 lt_cv_sys_global_symbol_to_cdecl=
7126 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7128 $as_echo "failed" >&6; }
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7131 $as_echo "ok" >&6; }
7156 # Check whether --enable-libtool-lock was given.
7157 if test "${enable_libtool_lock+set}" = set; then :
7158 enableval=$enable_libtool_lock;
7161 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7163 # Some flags need to be propagated to the compiler or linker for good
7164 # libtool support.
7165 case $host in
7166 ia64-*-hpux*)
7167 # Find out which ABI we are using.
7168 echo 'int i;' > conftest.$ac_ext
7169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7170 (eval $ac_compile) 2>&5
7171 ac_status=$?
7172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7173 test $ac_status = 0; }; then
7174 case `/usr/bin/file conftest.$ac_objext` in
7175 *ELF-32*)
7176 HPUX_IA64_MODE="32"
7178 *ELF-64*)
7179 HPUX_IA64_MODE="64"
7181 esac
7183 rm -rf conftest*
7185 *-*-irix6*)
7186 # Find out which ABI we are using.
7187 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7189 (eval $ac_compile) 2>&5
7190 ac_status=$?
7191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192 test $ac_status = 0; }; then
7193 if test "$lt_cv_prog_gnu_ld" = yes; then
7194 case `/usr/bin/file conftest.$ac_objext` in
7195 *32-bit*)
7196 LD="${LD-ld} -melf32bsmip"
7198 *N32*)
7199 LD="${LD-ld} -melf32bmipn32"
7201 *64-bit*)
7202 LD="${LD-ld} -melf64bmip"
7204 esac
7205 else
7206 case `/usr/bin/file conftest.$ac_objext` in
7207 *32-bit*)
7208 LD="${LD-ld} -32"
7210 *N32*)
7211 LD="${LD-ld} -n32"
7213 *64-bit*)
7214 LD="${LD-ld} -64"
7216 esac
7219 rm -rf conftest*
7222 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7223 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7224 # Find out which ABI we are using.
7225 echo 'int i;' > conftest.$ac_ext
7226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7227 (eval $ac_compile) 2>&5
7228 ac_status=$?
7229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7230 test $ac_status = 0; }; then
7231 case `/usr/bin/file conftest.o` in
7232 *32-bit*)
7233 case $host in
7234 x86_64-*kfreebsd*-gnu)
7235 LD="${LD-ld} -m elf_i386_fbsd"
7237 x86_64-*linux*)
7238 LD="${LD-ld} -m elf_i386"
7240 ppc64-*linux*|powerpc64-*linux*)
7241 LD="${LD-ld} -m elf32ppclinux"
7243 s390x-*linux*)
7244 LD="${LD-ld} -m elf_s390"
7246 sparc64-*linux*)
7247 LD="${LD-ld} -m elf32_sparc"
7249 esac
7251 *64-bit*)
7252 case $host in
7253 x86_64-*kfreebsd*-gnu)
7254 LD="${LD-ld} -m elf_x86_64_fbsd"
7256 x86_64-*linux*)
7257 LD="${LD-ld} -m elf_x86_64"
7259 ppc*-*linux*|powerpc*-*linux*)
7260 LD="${LD-ld} -m elf64ppc"
7262 s390*-*linux*|s390*-*tpf*)
7263 LD="${LD-ld} -m elf64_s390"
7265 sparc*-*linux*)
7266 LD="${LD-ld} -m elf64_sparc"
7268 esac
7270 esac
7272 rm -rf conftest*
7275 *-*-sco3.2v5*)
7276 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7277 SAVE_CFLAGS="$CFLAGS"
7278 CFLAGS="$CFLAGS -belf"
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7280 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7281 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7282 $as_echo_n "(cached) " >&6
7283 else
7284 ac_ext=c
7285 ac_cpp='$CPP $CPPFLAGS'
7286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7294 main ()
7298 return 0;
7300 _ACEOF
7301 if ac_fn_c_try_link "$LINENO"; then :
7302 lt_cv_cc_needs_belf=yes
7303 else
7304 lt_cv_cc_needs_belf=no
7306 rm -f core conftest.err conftest.$ac_objext \
7307 conftest$ac_exeext conftest.$ac_ext
7308 ac_ext=c
7309 ac_cpp='$CPP $CPPFLAGS'
7310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7316 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7317 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7318 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7319 CFLAGS="$SAVE_CFLAGS"
7322 sparc*-*solaris*)
7323 # Find out which ABI we are using.
7324 echo 'int i;' > conftest.$ac_ext
7325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7326 (eval $ac_compile) 2>&5
7327 ac_status=$?
7328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7329 test $ac_status = 0; }; then
7330 case `/usr/bin/file conftest.o` in
7331 *64-bit*)
7332 case $lt_cv_prog_gnu_ld in
7333 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7335 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7336 LD="${LD-ld} -64"
7339 esac
7341 esac
7343 rm -rf conftest*
7345 esac
7347 need_locks="$enable_libtool_lock"
7350 case $host_os in
7351 rhapsody* | darwin*)
7352 if test -n "$ac_tool_prefix"; then
7353 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7354 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 if test -n "$DSYMUTIL"; then
7361 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7374 done
7375 done
7376 IFS=$as_save_IFS
7380 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7381 if test -n "$DSYMUTIL"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7383 $as_echo "$DSYMUTIL" >&6; }
7384 else
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7391 if test -z "$ac_cv_prog_DSYMUTIL"; then
7392 ac_ct_DSYMUTIL=$DSYMUTIL
7393 # Extract the first word of "dsymutil", so it can be a program name with args.
7394 set dummy dsymutil; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7398 $as_echo_n "(cached) " >&6
7399 else
7400 if test -n "$ac_ct_DSYMUTIL"; then
7401 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7402 else
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7406 IFS=$as_save_IFS
7407 test -z "$as_dir" && as_dir=.
7408 for ac_exec_ext in '' $ac_executable_extensions; do
7409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7410 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 break 2
7414 done
7415 done
7416 IFS=$as_save_IFS
7420 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7421 if test -n "$ac_ct_DSYMUTIL"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7423 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7424 else
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7429 if test "x$ac_ct_DSYMUTIL" = x; then
7430 DSYMUTIL=":"
7431 else
7432 case $cross_compiling:$ac_tool_warned in
7433 yes:)
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436 ac_tool_warned=yes ;;
7437 esac
7438 DSYMUTIL=$ac_ct_DSYMUTIL
7440 else
7441 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7444 if test -n "$ac_tool_prefix"; then
7445 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7446 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 if test -n "$NMEDIT"; then
7453 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7466 done
7467 done
7468 IFS=$as_save_IFS
7472 NMEDIT=$ac_cv_prog_NMEDIT
7473 if test -n "$NMEDIT"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7475 $as_echo "$NMEDIT" >&6; }
7476 else
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7483 if test -z "$ac_cv_prog_NMEDIT"; then
7484 ac_ct_NMEDIT=$NMEDIT
7485 # Extract the first word of "nmedit", so it can be a program name with args.
7486 set dummy nmedit; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 if test -n "$ac_ct_NMEDIT"; then
7493 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7502 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7506 done
7507 done
7508 IFS=$as_save_IFS
7512 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7513 if test -n "$ac_ct_NMEDIT"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7515 $as_echo "$ac_ct_NMEDIT" >&6; }
7516 else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7521 if test "x$ac_ct_NMEDIT" = x; then
7522 NMEDIT=":"
7523 else
7524 case $cross_compiling:$ac_tool_warned in
7525 yes:)
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528 ac_tool_warned=yes ;;
7529 esac
7530 NMEDIT=$ac_ct_NMEDIT
7532 else
7533 NMEDIT="$ac_cv_prog_NMEDIT"
7536 if test -n "$ac_tool_prefix"; then
7537 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if test "${ac_cv_prog_LIPO+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 if test -n "$LIPO"; then
7545 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7558 done
7559 done
7560 IFS=$as_save_IFS
7564 LIPO=$ac_cv_prog_LIPO
7565 if test -n "$LIPO"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7567 $as_echo "$LIPO" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7575 if test -z "$ac_cv_prog_LIPO"; then
7576 ac_ct_LIPO=$LIPO
7577 # Extract the first word of "lipo", so it can be a program name with args.
7578 set dummy lipo; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 if test -n "$ac_ct_LIPO"; then
7585 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_prog_ac_ct_LIPO="lipo"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7598 done
7599 done
7600 IFS=$as_save_IFS
7604 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7605 if test -n "$ac_ct_LIPO"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7607 $as_echo "$ac_ct_LIPO" >&6; }
7608 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7613 if test "x$ac_ct_LIPO" = x; then
7614 LIPO=":"
7615 else
7616 case $cross_compiling:$ac_tool_warned in
7617 yes:)
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7621 esac
7622 LIPO=$ac_ct_LIPO
7624 else
7625 LIPO="$ac_cv_prog_LIPO"
7628 if test -n "$ac_tool_prefix"; then
7629 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7630 set dummy ${ac_tool_prefix}otool; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636 if test -n "$OTOOL"; then
7637 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7638 else
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7642 IFS=$as_save_IFS
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7646 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 break 2
7650 done
7651 done
7652 IFS=$as_save_IFS
7656 OTOOL=$ac_cv_prog_OTOOL
7657 if test -n "$OTOOL"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7659 $as_echo "$OTOOL" >&6; }
7660 else
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7667 if test -z "$ac_cv_prog_OTOOL"; then
7668 ac_ct_OTOOL=$OTOOL
7669 # Extract the first word of "otool", so it can be a program name with args.
7670 set dummy otool; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7675 else
7676 if test -n "$ac_ct_OTOOL"; then
7677 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7686 ac_cv_prog_ac_ct_OTOOL="otool"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688 break 2
7690 done
7691 done
7692 IFS=$as_save_IFS
7696 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7697 if test -n "$ac_ct_OTOOL"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7699 $as_echo "$ac_ct_OTOOL" >&6; }
7700 else
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7705 if test "x$ac_ct_OTOOL" = x; then
7706 OTOOL=":"
7707 else
7708 case $cross_compiling:$ac_tool_warned in
7709 yes:)
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712 ac_tool_warned=yes ;;
7713 esac
7714 OTOOL=$ac_ct_OTOOL
7716 else
7717 OTOOL="$ac_cv_prog_OTOOL"
7720 if test -n "$ac_tool_prefix"; then
7721 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7722 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7726 $as_echo_n "(cached) " >&6
7727 else
7728 if test -n "$OTOOL64"; then
7729 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7730 else
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7738 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 break 2
7742 done
7743 done
7744 IFS=$as_save_IFS
7748 OTOOL64=$ac_cv_prog_OTOOL64
7749 if test -n "$OTOOL64"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7751 $as_echo "$OTOOL64" >&6; }
7752 else
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7759 if test -z "$ac_cv_prog_OTOOL64"; then
7760 ac_ct_OTOOL64=$OTOOL64
7761 # Extract the first word of "otool64", so it can be a program name with args.
7762 set dummy otool64; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$ac_ct_OTOOL64"; then
7769 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_prog_ac_ct_OTOOL64="otool64"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7782 done
7783 done
7784 IFS=$as_save_IFS
7788 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7789 if test -n "$ac_ct_OTOOL64"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7791 $as_echo "$ac_ct_OTOOL64" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7797 if test "x$ac_ct_OTOOL64" = x; then
7798 OTOOL64=":"
7799 else
7800 case $cross_compiling:$ac_tool_warned in
7801 yes:)
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7804 ac_tool_warned=yes ;;
7805 esac
7806 OTOOL64=$ac_ct_OTOOL64
7808 else
7809 OTOOL64="$ac_cv_prog_OTOOL64"
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7839 $as_echo_n "checking for -single_module linker flag... " >&6; }
7840 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7841 $as_echo_n "(cached) " >&6
7842 else
7843 lt_cv_apple_cc_single_mod=no
7844 if test -z "${LT_MULTI_MODULE}"; then
7845 # By default we will add the -single_module flag. You can override
7846 # by either setting the environment variable LT_MULTI_MODULE
7847 # non-empty at configure time, or by adding -multi_module to the
7848 # link flags.
7849 rm -rf libconftest.dylib*
7850 echo "int foo(void){return 1;}" > conftest.c
7851 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7852 -dynamiclib -Wl,-single_module conftest.c" >&5
7853 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7854 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7855 _lt_result=$?
7856 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7857 lt_cv_apple_cc_single_mod=yes
7858 else
7859 cat conftest.err >&5
7861 rm -rf libconftest.dylib*
7862 rm -f conftest.*
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7866 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7868 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7869 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7870 $as_echo_n "(cached) " >&6
7871 else
7872 lt_cv_ld_exported_symbols_list=no
7873 save_LDFLAGS=$LDFLAGS
7874 echo "_main" > conftest.sym
7875 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7880 main ()
7884 return 0;
7886 _ACEOF
7887 if ac_fn_c_try_link "$LINENO"; then :
7888 lt_cv_ld_exported_symbols_list=yes
7889 else
7890 lt_cv_ld_exported_symbols_list=no
7892 rm -f core conftest.err conftest.$ac_objext \
7893 conftest$ac_exeext conftest.$ac_ext
7894 LDFLAGS="$save_LDFLAGS"
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7898 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7900 $as_echo_n "checking for -force_load linker flag... " >&6; }
7901 if test "${lt_cv_ld_force_load+set}" = set; then :
7902 $as_echo_n "(cached) " >&6
7903 else
7904 lt_cv_ld_force_load=no
7905 cat > conftest.c << _LT_EOF
7906 int forced_loaded() { return 2;}
7907 _LT_EOF
7908 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7909 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7910 echo "$AR cru libconftest.a conftest.o" >&5
7911 $AR cru libconftest.a conftest.o 2>&5
7912 cat > conftest.c << _LT_EOF
7913 int main() { return 0;}
7914 _LT_EOF
7915 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7916 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7917 _lt_result=$?
7918 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7919 lt_cv_ld_force_load=yes
7920 else
7921 cat conftest.err >&5
7923 rm -f conftest.err libconftest.a conftest conftest.c
7924 rm -rf conftest.dSYM
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7928 $as_echo "$lt_cv_ld_force_load" >&6; }
7929 case $host_os in
7930 rhapsody* | darwin1.[012])
7931 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7932 darwin1.*)
7933 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7934 darwin*) # darwin 5.x on
7935 # if running on 10.5 or later, the deployment target defaults
7936 # to the OS version, if on x86, and 10.4, the deployment
7937 # target defaults to 10.4. Don't you love it?
7938 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7939 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7940 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7941 10.[012]*)
7942 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7943 10.*)
7944 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7945 esac
7947 esac
7948 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7949 _lt_dar_single_mod='$single_module'
7951 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7952 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7953 else
7954 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7956 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7957 _lt_dsymutil='~$DSYMUTIL $lib || :'
7958 else
7959 _lt_dsymutil=
7962 esac
7964 ac_ext=c
7965 ac_cpp='$CPP $CPPFLAGS'
7966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7970 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7971 # On Suns, sometimes $CPP names a directory.
7972 if test -n "$CPP" && test -d "$CPP"; then
7973 CPP=
7975 if test -z "$CPP"; then
7976 if test "${ac_cv_prog_CPP+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
7978 else
7979 # Double quotes because CPP needs to be expanded
7980 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7982 ac_preproc_ok=false
7983 for ac_c_preproc_warn_flag in '' yes
7985 # Use a header file that comes with gcc, so configuring glibc
7986 # with a fresh cross-compiler works.
7987 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7988 # <limits.h> exists even on freestanding compilers.
7989 # On the NeXT, cc -E runs the code through the compiler's parser,
7990 # not just through cpp. "Syntax error" is here to catch this case.
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7993 #ifdef __STDC__
7994 # include <limits.h>
7995 #else
7996 # include <assert.h>
7997 #endif
7998 Syntax error
7999 _ACEOF
8000 if ac_fn_c_try_cpp "$LINENO"; then :
8002 else
8003 # Broken: fails on valid input.
8004 continue
8006 rm -f conftest.err conftest.$ac_ext
8008 # OK, works on sane cases. Now check whether nonexistent headers
8009 # can be detected and how.
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8012 #include <ac_nonexistent.h>
8013 _ACEOF
8014 if ac_fn_c_try_cpp "$LINENO"; then :
8015 # Broken: success on invalid input.
8016 continue
8017 else
8018 # Passes both tests.
8019 ac_preproc_ok=:
8020 break
8022 rm -f conftest.err conftest.$ac_ext
8024 done
8025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8026 rm -f conftest.err conftest.$ac_ext
8027 if $ac_preproc_ok; then :
8028 break
8031 done
8032 ac_cv_prog_CPP=$CPP
8035 CPP=$ac_cv_prog_CPP
8036 else
8037 ac_cv_prog_CPP=$CPP
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8040 $as_echo "$CPP" >&6; }
8041 ac_preproc_ok=false
8042 for ac_c_preproc_warn_flag in '' yes
8044 # Use a header file that comes with gcc, so configuring glibc
8045 # with a fresh cross-compiler works.
8046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8047 # <limits.h> exists even on freestanding compilers.
8048 # On the NeXT, cc -E runs the code through the compiler's parser,
8049 # not just through cpp. "Syntax error" is here to catch this case.
8050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8051 /* end confdefs.h. */
8052 #ifdef __STDC__
8053 # include <limits.h>
8054 #else
8055 # include <assert.h>
8056 #endif
8057 Syntax error
8058 _ACEOF
8059 if ac_fn_c_try_cpp "$LINENO"; then :
8061 else
8062 # Broken: fails on valid input.
8063 continue
8065 rm -f conftest.err conftest.$ac_ext
8067 # OK, works on sane cases. Now check whether nonexistent headers
8068 # can be detected and how.
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8071 #include <ac_nonexistent.h>
8072 _ACEOF
8073 if ac_fn_c_try_cpp "$LINENO"; then :
8074 # Broken: success on invalid input.
8075 continue
8076 else
8077 # Passes both tests.
8078 ac_preproc_ok=:
8079 break
8081 rm -f conftest.err conftest.$ac_ext
8083 done
8084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8085 rm -f conftest.err conftest.$ac_ext
8086 if $ac_preproc_ok; then :
8088 else
8089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8091 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8092 See \`config.log' for more details." "$LINENO" 5; }
8095 ac_ext=c
8096 ac_cpp='$CPP $CPPFLAGS'
8097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8103 $as_echo_n "checking for ANSI C header files... " >&6; }
8104 if test "${ac_cv_header_stdc+set}" = set; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 #include <stdlib.h>
8110 #include <stdarg.h>
8111 #include <string.h>
8112 #include <float.h>
8115 main ()
8119 return 0;
8121 _ACEOF
8122 if ac_fn_c_try_compile "$LINENO"; then :
8123 ac_cv_header_stdc=yes
8124 else
8125 ac_cv_header_stdc=no
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129 if test $ac_cv_header_stdc = yes; then
8130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8132 /* end confdefs.h. */
8133 #include <string.h>
8135 _ACEOF
8136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8137 $EGREP "memchr" >/dev/null 2>&1; then :
8139 else
8140 ac_cv_header_stdc=no
8142 rm -f conftest*
8146 if test $ac_cv_header_stdc = yes; then
8147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 #include <stdlib.h>
8152 _ACEOF
8153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8154 $EGREP "free" >/dev/null 2>&1; then :
8156 else
8157 ac_cv_header_stdc=no
8159 rm -f conftest*
8163 if test $ac_cv_header_stdc = yes; then
8164 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8165 if test "$cross_compiling" = yes; then :
8167 else
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170 #include <ctype.h>
8171 #include <stdlib.h>
8172 #if ((' ' & 0x0FF) == 0x020)
8173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8175 #else
8176 # define ISLOWER(c) \
8177 (('a' <= (c) && (c) <= 'i') \
8178 || ('j' <= (c) && (c) <= 'r') \
8179 || ('s' <= (c) && (c) <= 'z'))
8180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8181 #endif
8183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8185 main ()
8187 int i;
8188 for (i = 0; i < 256; i++)
8189 if (XOR (islower (i), ISLOWER (i))
8190 || toupper (i) != TOUPPER (i))
8191 return 2;
8192 return 0;
8194 _ACEOF
8195 if ac_fn_c_try_run "$LINENO"; then :
8197 else
8198 ac_cv_header_stdc=no
8200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8201 conftest.$ac_objext conftest.beam conftest.$ac_ext
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8207 $as_echo "$ac_cv_header_stdc" >&6; }
8208 if test $ac_cv_header_stdc = yes; then
8210 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8214 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8215 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8216 inttypes.h stdint.h unistd.h
8217 do :
8218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8219 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8221 eval as_val=\$$as_ac_Header
8222 if test "x$as_val" = x""yes; then :
8223 cat >>confdefs.h <<_ACEOF
8224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8225 _ACEOF
8229 done
8232 for ac_header in dlfcn.h
8233 do :
8234 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8236 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8237 cat >>confdefs.h <<_ACEOF
8238 #define HAVE_DLFCN_H 1
8239 _ACEOF
8243 done
8250 # Set options
8254 enable_dlopen=no
8257 enable_win32_dll=no
8260 # Check whether --enable-shared was given.
8261 if test "${enable_shared+set}" = set; then :
8262 enableval=$enable_shared; p=${PACKAGE-default}
8263 case $enableval in
8264 yes) enable_shared=yes ;;
8265 no) enable_shared=no ;;
8267 enable_shared=no
8268 # Look at the argument we got. We use all the common list separators.
8269 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8270 for pkg in $enableval; do
8271 IFS="$lt_save_ifs"
8272 if test "X$pkg" = "X$p"; then
8273 enable_shared=yes
8275 done
8276 IFS="$lt_save_ifs"
8278 esac
8279 else
8280 enable_shared=yes
8291 # Check whether --enable-static was given.
8292 if test "${enable_static+set}" = set; then :
8293 enableval=$enable_static; p=${PACKAGE-default}
8294 case $enableval in
8295 yes) enable_static=yes ;;
8296 no) enable_static=no ;;
8298 enable_static=no
8299 # Look at the argument we got. We use all the common list separators.
8300 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8301 for pkg in $enableval; do
8302 IFS="$lt_save_ifs"
8303 if test "X$pkg" = "X$p"; then
8304 enable_static=yes
8306 done
8307 IFS="$lt_save_ifs"
8309 esac
8310 else
8311 enable_static=yes
8323 # Check whether --with-pic was given.
8324 if test "${with_pic+set}" = set; then :
8325 withval=$with_pic; pic_mode="$withval"
8326 else
8327 pic_mode=default
8331 test -z "$pic_mode" && pic_mode=default
8339 # Check whether --enable-fast-install was given.
8340 if test "${enable_fast_install+set}" = set; then :
8341 enableval=$enable_fast_install; p=${PACKAGE-default}
8342 case $enableval in
8343 yes) enable_fast_install=yes ;;
8344 no) enable_fast_install=no ;;
8346 enable_fast_install=no
8347 # Look at the argument we got. We use all the common list separators.
8348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8349 for pkg in $enableval; do
8350 IFS="$lt_save_ifs"
8351 if test "X$pkg" = "X$p"; then
8352 enable_fast_install=yes
8354 done
8355 IFS="$lt_save_ifs"
8357 esac
8358 else
8359 enable_fast_install=yes
8372 # This can be used to rebuild libtool when needed
8373 LIBTOOL_DEPS="$ltmain"
8375 # Always use our own libtool.
8376 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8403 test -z "$LN_S" && LN_S="ln -s"
8418 if test -n "${ZSH_VERSION+set}" ; then
8419 setopt NO_GLOB_SUBST
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8423 $as_echo_n "checking for objdir... " >&6; }
8424 if test "${lt_cv_objdir+set}" = set; then :
8425 $as_echo_n "(cached) " >&6
8426 else
8427 rm -f .libs 2>/dev/null
8428 mkdir .libs 2>/dev/null
8429 if test -d .libs; then
8430 lt_cv_objdir=.libs
8431 else
8432 # MS-DOS does not allow filenames that begin with a dot.
8433 lt_cv_objdir=_libs
8435 rmdir .libs 2>/dev/null
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8438 $as_echo "$lt_cv_objdir" >&6; }
8439 objdir=$lt_cv_objdir
8445 cat >>confdefs.h <<_ACEOF
8446 #define LT_OBJDIR "$lt_cv_objdir/"
8447 _ACEOF
8452 case $host_os in
8453 aix3*)
8454 # AIX sometimes has problems with the GCC collect2 program. For some
8455 # reason, if we set the COLLECT_NAMES environment variable, the problems
8456 # vanish in a puff of smoke.
8457 if test "X${COLLECT_NAMES+set}" != Xset; then
8458 COLLECT_NAMES=
8459 export COLLECT_NAMES
8462 esac
8464 # Global variables:
8465 ofile=libtool
8466 can_build_shared=yes
8468 # All known linkers require a `.a' archive for static linking (except MSVC,
8469 # which needs '.lib').
8470 libext=a
8472 with_gnu_ld="$lt_cv_prog_gnu_ld"
8474 old_CC="$CC"
8475 old_CFLAGS="$CFLAGS"
8477 # Set sane defaults for various variables
8478 test -z "$CC" && CC=cc
8479 test -z "$LTCC" && LTCC=$CC
8480 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8481 test -z "$LD" && LD=ld
8482 test -z "$ac_objext" && ac_objext=o
8484 for cc_temp in $compiler""; do
8485 case $cc_temp in
8486 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8487 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8488 \-*) ;;
8489 *) break;;
8490 esac
8491 done
8492 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8495 # Only perform the check for file, if the check method requires it
8496 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8497 case $deplibs_check_method in
8498 file_magic*)
8499 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8501 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8502 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 case $MAGIC_CMD in
8506 [\\/*] | ?:[\\/]*)
8507 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8510 lt_save_MAGIC_CMD="$MAGIC_CMD"
8511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8512 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8513 for ac_dir in $ac_dummy; do
8514 IFS="$lt_save_ifs"
8515 test -z "$ac_dir" && ac_dir=.
8516 if test -f $ac_dir/${ac_tool_prefix}file; then
8517 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8518 if test -n "$file_magic_test_file"; then
8519 case $deplibs_check_method in
8520 "file_magic "*)
8521 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8523 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8524 $EGREP "$file_magic_regex" > /dev/null; then
8526 else
8527 cat <<_LT_EOF 1>&2
8529 *** Warning: the command libtool uses to detect shared libraries,
8530 *** $file_magic_cmd, produces output that libtool cannot recognize.
8531 *** The result is that libtool may fail to recognize shared libraries
8532 *** as such. This will affect the creation of libtool libraries that
8533 *** depend on shared libraries, but programs linked with such libtool
8534 *** libraries will work regardless of this problem. Nevertheless, you
8535 *** may want to report the problem to your system manager and/or to
8536 *** bug-libtool@gnu.org
8538 _LT_EOF
8539 fi ;;
8540 esac
8542 break
8544 done
8545 IFS="$lt_save_ifs"
8546 MAGIC_CMD="$lt_save_MAGIC_CMD"
8548 esac
8551 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8552 if test -n "$MAGIC_CMD"; then
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8554 $as_echo "$MAGIC_CMD" >&6; }
8555 else
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557 $as_echo "no" >&6; }
8564 if test -z "$lt_cv_path_MAGIC_CMD"; then
8565 if test -n "$ac_tool_prefix"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8567 $as_echo_n "checking for file... " >&6; }
8568 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 case $MAGIC_CMD in
8572 [\\/*] | ?:[\\/]*)
8573 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8576 lt_save_MAGIC_CMD="$MAGIC_CMD"
8577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8578 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8579 for ac_dir in $ac_dummy; do
8580 IFS="$lt_save_ifs"
8581 test -z "$ac_dir" && ac_dir=.
8582 if test -f $ac_dir/file; then
8583 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8584 if test -n "$file_magic_test_file"; then
8585 case $deplibs_check_method in
8586 "file_magic "*)
8587 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8589 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8590 $EGREP "$file_magic_regex" > /dev/null; then
8592 else
8593 cat <<_LT_EOF 1>&2
8595 *** Warning: the command libtool uses to detect shared libraries,
8596 *** $file_magic_cmd, produces output that libtool cannot recognize.
8597 *** The result is that libtool may fail to recognize shared libraries
8598 *** as such. This will affect the creation of libtool libraries that
8599 *** depend on shared libraries, but programs linked with such libtool
8600 *** libraries will work regardless of this problem. Nevertheless, you
8601 *** may want to report the problem to your system manager and/or to
8602 *** bug-libtool@gnu.org
8604 _LT_EOF
8605 fi ;;
8606 esac
8608 break
8610 done
8611 IFS="$lt_save_ifs"
8612 MAGIC_CMD="$lt_save_MAGIC_CMD"
8614 esac
8617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8618 if test -n "$MAGIC_CMD"; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8620 $as_echo "$MAGIC_CMD" >&6; }
8621 else
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8627 else
8628 MAGIC_CMD=:
8634 esac
8636 # Use C for the default configuration in the libtool script
8638 lt_save_CC="$CC"
8639 ac_ext=c
8640 ac_cpp='$CPP $CPPFLAGS'
8641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8646 # Source file extension for C test sources.
8647 ac_ext=c
8649 # Object file extension for compiled C test sources.
8650 objext=o
8651 objext=$objext
8653 # Code to be used in simple compile tests
8654 lt_simple_compile_test_code="int some_variable = 0;"
8656 # Code to be used in simple link tests
8657 lt_simple_link_test_code='int main(){return(0);}'
8665 # If no C compiler was specified, use CC.
8666 LTCC=${LTCC-"$CC"}
8668 # If no C compiler flags were specified, use CFLAGS.
8669 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8671 # Allow CC to be a program name with arguments.
8672 compiler=$CC
8674 # Save the default compiler, since it gets overwritten when the other
8675 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8676 compiler_DEFAULT=$CC
8678 # save warnings/boilerplate of simple test code
8679 ac_outfile=conftest.$ac_objext
8680 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8681 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8682 _lt_compiler_boilerplate=`cat conftest.err`
8683 $RM conftest*
8685 ac_outfile=conftest.$ac_objext
8686 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8687 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8688 _lt_linker_boilerplate=`cat conftest.err`
8689 $RM -r conftest*
8692 ## CAVEAT EMPTOR:
8693 ## There is no encapsulation within the following macros, do not change
8694 ## the running order or otherwise move them around unless you know exactly
8695 ## what you are doing...
8696 if test -n "$compiler"; then
8698 lt_prog_compiler_no_builtin_flag=
8700 if test "$GCC" = yes; then
8701 case $cc_basename in
8702 nvcc*)
8703 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8705 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8706 esac
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8709 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8710 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8711 $as_echo_n "(cached) " >&6
8712 else
8713 lt_cv_prog_compiler_rtti_exceptions=no
8714 ac_outfile=conftest.$ac_objext
8715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8716 lt_compiler_flag="-fno-rtti -fno-exceptions"
8717 # Insert the option either (1) after the last *FLAGS variable, or
8718 # (2) before a word containing "conftest.", or (3) at the end.
8719 # Note that $ac_compile itself does not contain backslashes and begins
8720 # with a dollar sign (not a hyphen), so the echo should work correctly.
8721 # The option is referenced via a variable to avoid confusing sed.
8722 lt_compile=`echo "$ac_compile" | $SED \
8723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8725 -e 's:$: $lt_compiler_flag:'`
8726 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8727 (eval "$lt_compile" 2>conftest.err)
8728 ac_status=$?
8729 cat conftest.err >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 if (exit $ac_status) && test -s "$ac_outfile"; then
8732 # The compiler can only warn and ignore the option if not recognized
8733 # So say no if there are warnings other than the usual output.
8734 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8735 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8736 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8737 lt_cv_prog_compiler_rtti_exceptions=yes
8740 $RM conftest*
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8744 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8746 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8747 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8748 else
8759 lt_prog_compiler_wl=
8760 lt_prog_compiler_pic=
8761 lt_prog_compiler_static=
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8764 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8766 if test "$GCC" = yes; then
8767 lt_prog_compiler_wl='-Wl,'
8768 lt_prog_compiler_static='-static'
8770 case $host_os in
8771 aix*)
8772 # All AIX code is PIC.
8773 if test "$host_cpu" = ia64; then
8774 # AIX 5 now supports IA64 processor
8775 lt_prog_compiler_static='-Bstatic'
8779 amigaos*)
8780 case $host_cpu in
8781 powerpc)
8782 # see comment about AmigaOS4 .so support
8783 lt_prog_compiler_pic='-fPIC'
8785 m68k)
8786 # FIXME: we need at least 68020 code to build shared libraries, but
8787 # adding the `-m68020' flag to GCC prevents building anything better,
8788 # like `-m68040'.
8789 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8791 esac
8794 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8795 # PIC is the default for these OSes.
8798 mingw* | cygwin* | pw32* | os2* | cegcc*)
8799 # This hack is so that the source file can tell whether it is being
8800 # built for inclusion in a dll (and should export symbols for example).
8801 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8802 # (--disable-auto-import) libraries
8803 lt_prog_compiler_pic='-DDLL_EXPORT'
8806 darwin* | rhapsody*)
8807 # PIC is the default on this platform
8808 # Common symbols not allowed in MH_DYLIB files
8809 lt_prog_compiler_pic='-fno-common'
8812 haiku*)
8813 # PIC is the default for Haiku.
8814 # The "-static" flag exists, but is broken.
8815 lt_prog_compiler_static=
8818 hpux*)
8819 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8820 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8821 # sets the default TLS model and affects inlining.
8822 case $host_cpu in
8823 hppa*64*)
8824 # +Z the default
8827 lt_prog_compiler_pic='-fPIC'
8829 esac
8832 interix[3-9]*)
8833 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8834 # Instead, we relocate shared libraries at runtime.
8837 msdosdjgpp*)
8838 # Just because we use GCC doesn't mean we suddenly get shared libraries
8839 # on systems that don't support them.
8840 lt_prog_compiler_can_build_shared=no
8841 enable_shared=no
8844 *nto* | *qnx*)
8845 # QNX uses GNU C++, but need to define -shared option too, otherwise
8846 # it will coredump.
8847 lt_prog_compiler_pic='-fPIC -shared'
8850 sysv4*MP*)
8851 if test -d /usr/nec; then
8852 lt_prog_compiler_pic=-Kconform_pic
8857 lt_prog_compiler_pic='-fPIC'
8859 esac
8861 case $cc_basename in
8862 nvcc*) # Cuda Compiler Driver 2.2
8863 lt_prog_compiler_wl='-Xlinker '
8864 lt_prog_compiler_pic='-Xcompiler -fPIC'
8866 esac
8867 else
8868 # PORTME Check for flag to pass linker flags through the system compiler.
8869 case $host_os in
8870 aix*)
8871 lt_prog_compiler_wl='-Wl,'
8872 if test "$host_cpu" = ia64; then
8873 # AIX 5 now supports IA64 processor
8874 lt_prog_compiler_static='-Bstatic'
8875 else
8876 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8880 mingw* | cygwin* | pw32* | os2* | cegcc*)
8881 # This hack is so that the source file can tell whether it is being
8882 # built for inclusion in a dll (and should export symbols for example).
8883 lt_prog_compiler_pic='-DDLL_EXPORT'
8886 hpux9* | hpux10* | hpux11*)
8887 lt_prog_compiler_wl='-Wl,'
8888 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8889 # not for PA HP-UX.
8890 case $host_cpu in
8891 hppa*64*|ia64*)
8892 # +Z the default
8895 lt_prog_compiler_pic='+Z'
8897 esac
8898 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8899 lt_prog_compiler_static='${wl}-a ${wl}archive'
8902 irix5* | irix6* | nonstopux*)
8903 lt_prog_compiler_wl='-Wl,'
8904 # PIC (with -KPIC) is the default.
8905 lt_prog_compiler_static='-non_shared'
8908 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8909 case $cc_basename in
8910 # old Intel for x86_64 which still supported -KPIC.
8911 ecc*)
8912 lt_prog_compiler_wl='-Wl,'
8913 lt_prog_compiler_pic='-KPIC'
8914 lt_prog_compiler_static='-static'
8916 # icc used to be incompatible with GCC.
8917 # ICC 10 doesn't accept -KPIC any more.
8918 icc* | ifort*)
8919 lt_prog_compiler_wl='-Wl,'
8920 lt_prog_compiler_pic='-fPIC'
8921 lt_prog_compiler_static='-static'
8923 # Lahey Fortran 8.1.
8924 lf95*)
8925 lt_prog_compiler_wl='-Wl,'
8926 lt_prog_compiler_pic='--shared'
8927 lt_prog_compiler_static='--static'
8929 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8930 # Portland Group compilers (*not* the Pentium gcc compiler,
8931 # which looks to be a dead project)
8932 lt_prog_compiler_wl='-Wl,'
8933 lt_prog_compiler_pic='-fpic'
8934 lt_prog_compiler_static='-Bstatic'
8936 ccc*)
8937 lt_prog_compiler_wl='-Wl,'
8938 # All Alpha code is PIC.
8939 lt_prog_compiler_static='-non_shared'
8941 xl* | bgxl* | bgf* | mpixl*)
8942 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8943 lt_prog_compiler_wl='-Wl,'
8944 lt_prog_compiler_pic='-qpic'
8945 lt_prog_compiler_static='-qstaticlink'
8948 case `$CC -V 2>&1 | sed 5q` in
8949 *Sun\ F* | *Sun*Fortran*)
8950 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8951 lt_prog_compiler_pic='-KPIC'
8952 lt_prog_compiler_static='-Bstatic'
8953 lt_prog_compiler_wl=''
8955 *Sun\ C*)
8956 # Sun C 5.9
8957 lt_prog_compiler_pic='-KPIC'
8958 lt_prog_compiler_static='-Bstatic'
8959 lt_prog_compiler_wl='-Wl,'
8961 esac
8963 esac
8966 newsos6)
8967 lt_prog_compiler_pic='-KPIC'
8968 lt_prog_compiler_static='-Bstatic'
8971 *nto* | *qnx*)
8972 # QNX uses GNU C++, but need to define -shared option too, otherwise
8973 # it will coredump.
8974 lt_prog_compiler_pic='-fPIC -shared'
8977 osf3* | osf4* | osf5*)
8978 lt_prog_compiler_wl='-Wl,'
8979 # All OSF/1 code is PIC.
8980 lt_prog_compiler_static='-non_shared'
8983 rdos*)
8984 lt_prog_compiler_static='-non_shared'
8987 solaris*)
8988 lt_prog_compiler_pic='-KPIC'
8989 lt_prog_compiler_static='-Bstatic'
8990 case $cc_basename in
8991 f77* | f90* | f95*)
8992 lt_prog_compiler_wl='-Qoption ld ';;
8994 lt_prog_compiler_wl='-Wl,';;
8995 esac
8998 sunos4*)
8999 lt_prog_compiler_wl='-Qoption ld '
9000 lt_prog_compiler_pic='-PIC'
9001 lt_prog_compiler_static='-Bstatic'
9004 sysv4 | sysv4.2uw2* | sysv4.3*)
9005 lt_prog_compiler_wl='-Wl,'
9006 lt_prog_compiler_pic='-KPIC'
9007 lt_prog_compiler_static='-Bstatic'
9010 sysv4*MP*)
9011 if test -d /usr/nec ;then
9012 lt_prog_compiler_pic='-Kconform_pic'
9013 lt_prog_compiler_static='-Bstatic'
9017 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9018 lt_prog_compiler_wl='-Wl,'
9019 lt_prog_compiler_pic='-KPIC'
9020 lt_prog_compiler_static='-Bstatic'
9023 unicos*)
9024 lt_prog_compiler_wl='-Wl,'
9025 lt_prog_compiler_can_build_shared=no
9028 uts4*)
9029 lt_prog_compiler_pic='-pic'
9030 lt_prog_compiler_static='-Bstatic'
9034 lt_prog_compiler_can_build_shared=no
9036 esac
9039 case $host_os in
9040 # For platforms which do not support PIC, -DPIC is meaningless:
9041 *djgpp*)
9042 lt_prog_compiler_pic=
9045 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9047 esac
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9049 $as_echo "$lt_prog_compiler_pic" >&6; }
9057 # Check to make sure the PIC flag actually works.
9059 if test -n "$lt_prog_compiler_pic"; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9061 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9062 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9063 $as_echo_n "(cached) " >&6
9064 else
9065 lt_cv_prog_compiler_pic_works=no
9066 ac_outfile=conftest.$ac_objext
9067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9068 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9069 # Insert the option either (1) after the last *FLAGS variable, or
9070 # (2) before a word containing "conftest.", or (3) at the end.
9071 # Note that $ac_compile itself does not contain backslashes and begins
9072 # with a dollar sign (not a hyphen), so the echo should work correctly.
9073 # The option is referenced via a variable to avoid confusing sed.
9074 lt_compile=`echo "$ac_compile" | $SED \
9075 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9076 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9077 -e 's:$: $lt_compiler_flag:'`
9078 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9079 (eval "$lt_compile" 2>conftest.err)
9080 ac_status=$?
9081 cat conftest.err >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 if (exit $ac_status) && test -s "$ac_outfile"; then
9084 # The compiler can only warn and ignore the option if not recognized
9085 # So say no if there are warnings other than the usual output.
9086 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9087 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9088 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9089 lt_cv_prog_compiler_pic_works=yes
9092 $RM conftest*
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9096 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9098 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9099 case $lt_prog_compiler_pic in
9100 "" | " "*) ;;
9101 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9102 esac
9103 else
9104 lt_prog_compiler_pic=
9105 lt_prog_compiler_can_build_shared=no
9116 # Check to make sure the static flag actually works.
9118 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9120 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9121 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 lt_cv_prog_compiler_static_works=no
9125 save_LDFLAGS="$LDFLAGS"
9126 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9127 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9128 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9129 # The linker can only warn and ignore the option if not recognized
9130 # So say no if there are warnings
9131 if test -s conftest.err; then
9132 # Append any errors to the config.log.
9133 cat conftest.err 1>&5
9134 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9136 if diff conftest.exp conftest.er2 >/dev/null; then
9137 lt_cv_prog_compiler_static_works=yes
9139 else
9140 lt_cv_prog_compiler_static_works=yes
9143 $RM -r conftest*
9144 LDFLAGS="$save_LDFLAGS"
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9148 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9150 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9152 else
9153 lt_prog_compiler_static=
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9163 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9164 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9165 $as_echo_n "(cached) " >&6
9166 else
9167 lt_cv_prog_compiler_c_o=no
9168 $RM -r conftest 2>/dev/null
9169 mkdir conftest
9170 cd conftest
9171 mkdir out
9172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9174 lt_compiler_flag="-o out/conftest2.$ac_objext"
9175 # Insert the option either (1) after the last *FLAGS variable, or
9176 # (2) before a word containing "conftest.", or (3) at the end.
9177 # Note that $ac_compile itself does not contain backslashes and begins
9178 # with a dollar sign (not a hyphen), so the echo should work correctly.
9179 lt_compile=`echo "$ac_compile" | $SED \
9180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9182 -e 's:$: $lt_compiler_flag:'`
9183 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9184 (eval "$lt_compile" 2>out/conftest.err)
9185 ac_status=$?
9186 cat out/conftest.err >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9189 then
9190 # The compiler can only warn and ignore the option if not recognized
9191 # So say no if there are warnings
9192 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9195 lt_cv_prog_compiler_c_o=yes
9198 chmod u+w . 2>&5
9199 $RM conftest*
9200 # SGI C++ compiler will create directory out/ii_files/ for
9201 # template instantiation
9202 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9203 $RM out/* && rmdir out
9204 cd ..
9205 $RM -r conftest
9206 $RM conftest*
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9210 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9218 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9219 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9220 $as_echo_n "(cached) " >&6
9221 else
9222 lt_cv_prog_compiler_c_o=no
9223 $RM -r conftest 2>/dev/null
9224 mkdir conftest
9225 cd conftest
9226 mkdir out
9227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9229 lt_compiler_flag="-o out/conftest2.$ac_objext"
9230 # Insert the option either (1) after the last *FLAGS variable, or
9231 # (2) before a word containing "conftest.", or (3) at the end.
9232 # Note that $ac_compile itself does not contain backslashes and begins
9233 # with a dollar sign (not a hyphen), so the echo should work correctly.
9234 lt_compile=`echo "$ac_compile" | $SED \
9235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9237 -e 's:$: $lt_compiler_flag:'`
9238 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9239 (eval "$lt_compile" 2>out/conftest.err)
9240 ac_status=$?
9241 cat out/conftest.err >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9244 then
9245 # The compiler can only warn and ignore the option if not recognized
9246 # So say no if there are warnings
9247 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9248 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9249 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9250 lt_cv_prog_compiler_c_o=yes
9253 chmod u+w . 2>&5
9254 $RM conftest*
9255 # SGI C++ compiler will create directory out/ii_files/ for
9256 # template instantiation
9257 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9258 $RM out/* && rmdir out
9259 cd ..
9260 $RM -r conftest
9261 $RM conftest*
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9265 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9270 hard_links="nottested"
9271 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9272 # do not overwrite the value of need_locks provided by the user
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9274 $as_echo_n "checking if we can lock with hard links... " >&6; }
9275 hard_links=yes
9276 $RM conftest*
9277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9278 touch conftest.a
9279 ln conftest.a conftest.b 2>&5 || hard_links=no
9280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9282 $as_echo "$hard_links" >&6; }
9283 if test "$hard_links" = no; then
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9285 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9286 need_locks=warn
9288 else
9289 need_locks=no
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9298 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9300 runpath_var=
9301 allow_undefined_flag=
9302 always_export_symbols=no
9303 archive_cmds=
9304 archive_expsym_cmds=
9305 compiler_needs_object=no
9306 enable_shared_with_static_runtimes=no
9307 export_dynamic_flag_spec=
9308 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9309 hardcode_automatic=no
9310 hardcode_direct=no
9311 hardcode_direct_absolute=no
9312 hardcode_libdir_flag_spec=
9313 hardcode_libdir_flag_spec_ld=
9314 hardcode_libdir_separator=
9315 hardcode_minus_L=no
9316 hardcode_shlibpath_var=unsupported
9317 inherit_rpath=no
9318 link_all_deplibs=unknown
9319 module_cmds=
9320 module_expsym_cmds=
9321 old_archive_from_new_cmds=
9322 old_archive_from_expsyms_cmds=
9323 thread_safe_flag_spec=
9324 whole_archive_flag_spec=
9325 # include_expsyms should be a list of space-separated symbols to be *always*
9326 # included in the symbol list
9327 include_expsyms=
9328 # exclude_expsyms can be an extended regexp of symbols to exclude
9329 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9330 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9331 # as well as any symbol that contains `d'.
9332 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9333 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9334 # platforms (ab)use it in PIC code, but their linkers get confused if
9335 # the symbol is explicitly referenced. Since portable code cannot
9336 # rely on this symbol name, it's probably fine to never include it in
9337 # preloaded symbol tables.
9338 # Exclude shared library initialization/finalization symbols.
9339 extract_expsyms_cmds=
9341 case $host_os in
9342 cygwin* | mingw* | pw32* | cegcc*)
9343 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9344 # When not using gcc, we currently assume that we are using
9345 # Microsoft Visual C++.
9346 if test "$GCC" != yes; then
9347 with_gnu_ld=no
9350 interix*)
9351 # we just hope/assume this is gcc and not c89 (= MSVC++)
9352 with_gnu_ld=yes
9354 openbsd*)
9355 with_gnu_ld=no
9357 esac
9359 ld_shlibs=yes
9361 # On some targets, GNU ld is compatible enough with the native linker
9362 # that we're better off using the native interface for both.
9363 lt_use_gnu_ld_interface=no
9364 if test "$with_gnu_ld" = yes; then
9365 case $host_os in
9366 aix*)
9367 # The AIX port of GNU ld has always aspired to compatibility
9368 # with the native linker. However, as the warning in the GNU ld
9369 # block says, versions before 2.19.5* couldn't really create working
9370 # shared libraries, regardless of the interface used.
9371 case `$LD -v 2>&1` in
9372 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9373 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9374 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9376 lt_use_gnu_ld_interface=yes
9378 esac
9381 lt_use_gnu_ld_interface=yes
9383 esac
9386 if test "$lt_use_gnu_ld_interface" = yes; then
9387 # If archive_cmds runs LD, not CC, wlarc should be empty
9388 wlarc='${wl}'
9390 # Set some defaults for GNU ld with shared library support. These
9391 # are reset later if shared libraries are not supported. Putting them
9392 # here allows them to be overridden if necessary.
9393 runpath_var=LD_RUN_PATH
9394 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9395 export_dynamic_flag_spec='${wl}--export-dynamic'
9396 # ancient GNU ld didn't support --whole-archive et. al.
9397 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9398 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9399 else
9400 whole_archive_flag_spec=
9402 supports_anon_versioning=no
9403 case `$LD -v 2>&1` in
9404 *GNU\ gold*) supports_anon_versioning=yes ;;
9405 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9406 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9407 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9408 *\ 2.11.*) ;; # other 2.11 versions
9409 *) supports_anon_versioning=yes ;;
9410 esac
9412 # See if GNU ld supports shared libraries.
9413 case $host_os in
9414 aix[3-9]*)
9415 # On AIX/PPC, the GNU linker is very broken
9416 if test "$host_cpu" != ia64; then
9417 ld_shlibs=no
9418 cat <<_LT_EOF 1>&2
9420 *** Warning: the GNU linker, at least up to release 2.19, is reported
9421 *** to be unable to reliably create shared libraries on AIX.
9422 *** Therefore, libtool is disabling shared libraries support. If you
9423 *** really care for shared libraries, you may want to install binutils
9424 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9425 *** You will then need to restart the configuration process.
9427 _LT_EOF
9431 amigaos*)
9432 case $host_cpu in
9433 powerpc)
9434 # see comment about AmigaOS4 .so support
9435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9436 archive_expsym_cmds=''
9438 m68k)
9439 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)'
9440 hardcode_libdir_flag_spec='-L$libdir'
9441 hardcode_minus_L=yes
9443 esac
9446 beos*)
9447 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9448 allow_undefined_flag=unsupported
9449 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9450 # support --undefined. This deserves some investigation. FIXME
9451 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452 else
9453 ld_shlibs=no
9457 cygwin* | mingw* | pw32* | cegcc*)
9458 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9459 # as there is no search path for DLLs.
9460 hardcode_libdir_flag_spec='-L$libdir'
9461 export_dynamic_flag_spec='${wl}--export-all-symbols'
9462 allow_undefined_flag=unsupported
9463 always_export_symbols=no
9464 enable_shared_with_static_runtimes=yes
9465 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9467 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9468 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9469 # If the export-symbols file already is a .def file (1st line
9470 # is EXPORTS), use it as is; otherwise, prepend...
9471 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9472 cp $export_symbols $output_objdir/$soname.def;
9473 else
9474 echo EXPORTS > $output_objdir/$soname.def;
9475 cat $export_symbols >> $output_objdir/$soname.def;
9477 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9478 else
9479 ld_shlibs=no
9483 haiku*)
9484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485 link_all_deplibs=yes
9488 interix[3-9]*)
9489 hardcode_direct=no
9490 hardcode_shlibpath_var=no
9491 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9492 export_dynamic_flag_spec='${wl}-E'
9493 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9494 # Instead, shared libraries are loaded at an image base (0x10000000 by
9495 # default) and relocated if they conflict, which is a slow very memory
9496 # consuming and fragmenting process. To avoid this, we pick a random,
9497 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9498 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9499 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9500 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'
9503 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9504 tmp_diet=no
9505 if test "$host_os" = linux-dietlibc; then
9506 case $cc_basename in
9507 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9508 esac
9510 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9511 && test "$tmp_diet" = no
9512 then
9513 tmp_addflag=
9514 tmp_sharedflag='-shared'
9515 case $cc_basename,$host_cpu in
9516 pgcc*) # Portland Group C compiler
9517 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9518 tmp_addflag=' $pic_flag'
9520 pgf77* | pgf90* | pgf95* | pgfortran*)
9521 # Portland Group f77 and f90 compilers
9522 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9523 tmp_addflag=' $pic_flag -Mnomain' ;;
9524 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9525 tmp_addflag=' -i_dynamic' ;;
9526 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9527 tmp_addflag=' -i_dynamic -nofor_main' ;;
9528 ifc* | ifort*) # Intel Fortran compiler
9529 tmp_addflag=' -nofor_main' ;;
9530 lf95*) # Lahey Fortran 8.1
9531 whole_archive_flag_spec=
9532 tmp_sharedflag='--shared' ;;
9533 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9534 tmp_sharedflag='-qmkshrobj'
9535 tmp_addflag= ;;
9536 nvcc*) # Cuda Compiler Driver 2.2
9537 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9538 compiler_needs_object=yes
9540 esac
9541 case `$CC -V 2>&1 | sed 5q` in
9542 *Sun\ C*) # Sun C 5.9
9543 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9544 compiler_needs_object=yes
9545 tmp_sharedflag='-G' ;;
9546 *Sun\ F*) # Sun Fortran 8.3
9547 tmp_sharedflag='-G' ;;
9548 esac
9549 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9551 if test "x$supports_anon_versioning" = xyes; then
9552 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9553 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9554 echo "local: *; };" >> $output_objdir/$libname.ver~
9555 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9558 case $cc_basename in
9559 xlf* | bgf* | bgxlf* | mpixlf*)
9560 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9561 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9562 hardcode_libdir_flag_spec=
9563 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9564 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9565 if test "x$supports_anon_versioning" = xyes; then
9566 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9567 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9568 echo "local: *; };" >> $output_objdir/$libname.ver~
9569 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9572 esac
9573 else
9574 ld_shlibs=no
9578 netbsd*)
9579 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9580 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9581 wlarc=
9582 else
9583 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9588 solaris*)
9589 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9590 ld_shlibs=no
9591 cat <<_LT_EOF 1>&2
9593 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9594 *** create shared libraries on Solaris systems. Therefore, libtool
9595 *** is disabling shared libraries support. We urge you to upgrade GNU
9596 *** binutils to release 2.9.1 or newer. Another option is to modify
9597 *** your PATH or compiler configuration so that the native linker is
9598 *** used, and then restart.
9600 _LT_EOF
9601 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9604 else
9605 ld_shlibs=no
9609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9610 case `$LD -v 2>&1` in
9611 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9612 ld_shlibs=no
9613 cat <<_LT_EOF 1>&2
9615 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9616 *** reliably create shared libraries on SCO systems. Therefore, libtool
9617 *** is disabling shared libraries support. We urge you to upgrade GNU
9618 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9619 *** your PATH or compiler configuration so that the native linker is
9620 *** used, and then restart.
9622 _LT_EOF
9625 # For security reasons, it is highly recommended that you always
9626 # use absolute paths for naming shared libraries, and exclude the
9627 # DT_RUNPATH tag from executables and libraries. But doing so
9628 # requires that you compile everything twice, which is a pain.
9629 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9631 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9632 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9633 else
9634 ld_shlibs=no
9637 esac
9640 sunos4*)
9641 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9642 wlarc=
9643 hardcode_direct=yes
9644 hardcode_shlibpath_var=no
9648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9650 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9651 else
9652 ld_shlibs=no
9655 esac
9657 if test "$ld_shlibs" = no; then
9658 runpath_var=
9659 hardcode_libdir_flag_spec=
9660 export_dynamic_flag_spec=
9661 whole_archive_flag_spec=
9663 else
9664 # PORTME fill in a description of your system's linker (not GNU ld)
9665 case $host_os in
9666 aix3*)
9667 allow_undefined_flag=unsupported
9668 always_export_symbols=yes
9669 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'
9670 # Note: this linker hardcodes the directories in LIBPATH if there
9671 # are no directories specified by -L.
9672 hardcode_minus_L=yes
9673 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9674 # Neither direct hardcoding nor static linking is supported with a
9675 # broken collect2.
9676 hardcode_direct=unsupported
9680 aix[4-9]*)
9681 if test "$host_cpu" = ia64; then
9682 # On IA64, the linker does run time linking by default, so we don't
9683 # have to do anything special.
9684 aix_use_runtimelinking=no
9685 exp_sym_flag='-Bexport'
9686 no_entry_flag=""
9687 else
9688 # If we're using GNU nm, then we don't want the "-C" option.
9689 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9690 # Also, AIX nm treats weak defined symbols like other global
9691 # defined symbols, whereas GNU nm marks them as "W".
9692 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9693 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9694 else
9695 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'
9697 aix_use_runtimelinking=no
9699 # Test if we are trying to use run time linking or normal
9700 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9701 # need to do runtime linking.
9702 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9703 for ld_flag in $LDFLAGS; do
9704 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9705 aix_use_runtimelinking=yes
9706 break
9708 done
9710 esac
9712 exp_sym_flag='-bexport'
9713 no_entry_flag='-bnoentry'
9716 # When large executables or shared objects are built, AIX ld can
9717 # have problems creating the table of contents. If linking a library
9718 # or program results in "error TOC overflow" add -mminimal-toc to
9719 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9720 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9722 archive_cmds=''
9723 hardcode_direct=yes
9724 hardcode_direct_absolute=yes
9725 hardcode_libdir_separator=':'
9726 link_all_deplibs=yes
9727 file_list_spec='${wl}-f,'
9729 if test "$GCC" = yes; then
9730 case $host_os in aix4.[012]|aix4.[012].*)
9731 # We only want to do this on AIX 4.2 and lower, the check
9732 # below for broken collect2 doesn't work under 4.3+
9733 collect2name=`${CC} -print-prog-name=collect2`
9734 if test -f "$collect2name" &&
9735 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9736 then
9737 # We have reworked collect2
9739 else
9740 # We have old collect2
9741 hardcode_direct=unsupported
9742 # It fails to find uninstalled libraries when the uninstalled
9743 # path is not listed in the libpath. Setting hardcode_minus_L
9744 # to unsupported forces relinking
9745 hardcode_minus_L=yes
9746 hardcode_libdir_flag_spec='-L$libdir'
9747 hardcode_libdir_separator=
9750 esac
9751 shared_flag='-shared'
9752 if test "$aix_use_runtimelinking" = yes; then
9753 shared_flag="$shared_flag "'${wl}-G'
9755 else
9756 # not using gcc
9757 if test "$host_cpu" = ia64; then
9758 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9759 # chokes on -Wl,-G. The following line is correct:
9760 shared_flag='-G'
9761 else
9762 if test "$aix_use_runtimelinking" = yes; then
9763 shared_flag='${wl}-G'
9764 else
9765 shared_flag='${wl}-bM:SRE'
9770 export_dynamic_flag_spec='${wl}-bexpall'
9771 # It seems that -bexpall does not export symbols beginning with
9772 # underscore (_), so it is better to generate a list of symbols to export.
9773 always_export_symbols=yes
9774 if test "$aix_use_runtimelinking" = yes; then
9775 # Warning - without using the other runtime loading flags (-brtl),
9776 # -berok will link without error, but may produce a broken library.
9777 allow_undefined_flag='-berok'
9778 # Determine the default libpath from the value encoded in an
9779 # empty executable.
9780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9784 main ()
9788 return 0;
9790 _ACEOF
9791 if ac_fn_c_try_link "$LINENO"; then :
9793 lt_aix_libpath_sed='
9794 /Import File Strings/,/^$/ {
9795 /^0/ {
9796 s/^0 *\(.*\)$/\1/
9800 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9801 # Check for a 64-bit object if we didn't find anything.
9802 if test -z "$aix_libpath"; then
9803 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9806 rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9808 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9810 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9811 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9812 else
9813 if test "$host_cpu" = ia64; then
9814 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9815 allow_undefined_flag="-z nodefs"
9816 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"
9817 else
9818 # Determine the default libpath from the value encoded in an
9819 # empty executable.
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9824 main ()
9828 return 0;
9830 _ACEOF
9831 if ac_fn_c_try_link "$LINENO"; then :
9833 lt_aix_libpath_sed='
9834 /Import File Strings/,/^$/ {
9835 /^0/ {
9836 s/^0 *\(.*\)$/\1/
9840 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9841 # Check for a 64-bit object if we didn't find anything.
9842 if test -z "$aix_libpath"; then
9843 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9846 rm -f core conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
9848 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9850 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9851 # Warning - without using the other run time loading flags,
9852 # -berok will link without error, but may produce a broken library.
9853 no_undefined_flag=' ${wl}-bernotok'
9854 allow_undefined_flag=' ${wl}-berok'
9855 if test "$with_gnu_ld" = yes; then
9856 # We only use this code for GNU lds that support --whole-archive.
9857 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9858 else
9859 # Exported symbols can be pulled into shared objects from archives
9860 whole_archive_flag_spec='$convenience'
9862 archive_cmds_need_lc=yes
9863 # This is similar to how AIX traditionally builds its shared libraries.
9864 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'
9869 amigaos*)
9870 case $host_cpu in
9871 powerpc)
9872 # see comment about AmigaOS4 .so support
9873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9874 archive_expsym_cmds=''
9876 m68k)
9877 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)'
9878 hardcode_libdir_flag_spec='-L$libdir'
9879 hardcode_minus_L=yes
9881 esac
9884 bsdi[45]*)
9885 export_dynamic_flag_spec=-rdynamic
9888 cygwin* | mingw* | pw32* | cegcc*)
9889 # When not using gcc, we currently assume that we are using
9890 # Microsoft Visual C++.
9891 # hardcode_libdir_flag_spec is actually meaningless, as there is
9892 # no search path for DLLs.
9893 hardcode_libdir_flag_spec=' '
9894 allow_undefined_flag=unsupported
9895 # Tell ltmain to make .lib files, not .a files.
9896 libext=lib
9897 # Tell ltmain to make .dll files, not .so files.
9898 shrext_cmds=".dll"
9899 # FIXME: Setting linknames here is a bad hack.
9900 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9901 # The linker will automatically build a .lib file if we build a DLL.
9902 old_archive_from_new_cmds='true'
9903 # FIXME: Should let the user specify the lib program.
9904 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9905 fix_srcfile_path='`cygpath -w "$srcfile"`'
9906 enable_shared_with_static_runtimes=yes
9909 darwin* | rhapsody*)
9912 archive_cmds_need_lc=no
9913 hardcode_direct=no
9914 hardcode_automatic=yes
9915 hardcode_shlibpath_var=unsupported
9916 if test "$lt_cv_ld_force_load" = "yes"; then
9917 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9918 else
9919 whole_archive_flag_spec=''
9921 link_all_deplibs=yes
9922 allow_undefined_flag="$_lt_dar_allow_undefined"
9923 case $cc_basename in
9924 ifort*) _lt_dar_can_shared=yes ;;
9925 *) _lt_dar_can_shared=$GCC ;;
9926 esac
9927 if test "$_lt_dar_can_shared" = "yes"; then
9928 output_verbose_link_cmd=func_echo_all
9929 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9930 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9931 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}"
9932 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}"
9934 else
9935 ld_shlibs=no
9940 dgux*)
9941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9942 hardcode_libdir_flag_spec='-L$libdir'
9943 hardcode_shlibpath_var=no
9946 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9947 # support. Future versions do this automatically, but an explicit c++rt0.o
9948 # does not break anything, and helps significantly (at the cost of a little
9949 # extra space).
9950 freebsd2.2*)
9951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9952 hardcode_libdir_flag_spec='-R$libdir'
9953 hardcode_direct=yes
9954 hardcode_shlibpath_var=no
9957 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9958 freebsd2.*)
9959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9960 hardcode_direct=yes
9961 hardcode_minus_L=yes
9962 hardcode_shlibpath_var=no
9965 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9966 freebsd* | dragonfly*)
9967 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9968 hardcode_libdir_flag_spec='-R$libdir'
9969 hardcode_direct=yes
9970 hardcode_shlibpath_var=no
9973 hpux9*)
9974 if test "$GCC" = yes; then
9975 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'
9976 else
9977 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'
9979 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9980 hardcode_libdir_separator=:
9981 hardcode_direct=yes
9983 # hardcode_minus_L: Not really in the search PATH,
9984 # but as the default location of the library.
9985 hardcode_minus_L=yes
9986 export_dynamic_flag_spec='${wl}-E'
9989 hpux10*)
9990 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9991 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9992 else
9993 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9995 if test "$with_gnu_ld" = no; then
9996 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9997 hardcode_libdir_flag_spec_ld='+b $libdir'
9998 hardcode_libdir_separator=:
9999 hardcode_direct=yes
10000 hardcode_direct_absolute=yes
10001 export_dynamic_flag_spec='${wl}-E'
10002 # hardcode_minus_L: Not really in the search PATH,
10003 # but as the default location of the library.
10004 hardcode_minus_L=yes
10008 hpux11*)
10009 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10010 case $host_cpu in
10011 hppa*64*)
10012 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 ia64*)
10015 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10018 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10020 esac
10021 else
10022 case $host_cpu in
10023 hppa*64*)
10024 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10026 ia64*)
10027 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10031 # Older versions of the 11.00 compiler do not understand -b yet
10032 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10034 $as_echo_n "checking if $CC understands -b... " >&6; }
10035 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
10037 else
10038 lt_cv_prog_compiler__b=no
10039 save_LDFLAGS="$LDFLAGS"
10040 LDFLAGS="$LDFLAGS -b"
10041 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10042 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10043 # The linker can only warn and ignore the option if not recognized
10044 # So say no if there are warnings
10045 if test -s conftest.err; then
10046 # Append any errors to the config.log.
10047 cat conftest.err 1>&5
10048 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10049 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10050 if diff conftest.exp conftest.er2 >/dev/null; then
10051 lt_cv_prog_compiler__b=yes
10053 else
10054 lt_cv_prog_compiler__b=yes
10057 $RM -r conftest*
10058 LDFLAGS="$save_LDFLAGS"
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10062 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10064 if test x"$lt_cv_prog_compiler__b" = xyes; then
10065 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10066 else
10067 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10071 esac
10073 if test "$with_gnu_ld" = no; then
10074 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10075 hardcode_libdir_separator=:
10077 case $host_cpu in
10078 hppa*64*|ia64*)
10079 hardcode_direct=no
10080 hardcode_shlibpath_var=no
10083 hardcode_direct=yes
10084 hardcode_direct_absolute=yes
10085 export_dynamic_flag_spec='${wl}-E'
10087 # hardcode_minus_L: Not really in the search PATH,
10088 # but as the default location of the library.
10089 hardcode_minus_L=yes
10091 esac
10095 irix5* | irix6* | nonstopux*)
10096 if test "$GCC" = yes; then
10097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10098 # Try to use the -exported_symbol ld option, if it does not
10099 # work, assume that -exports_file does not work either and
10100 # implicitly export all symbols.
10101 save_LDFLAGS="$LDFLAGS"
10102 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h. */
10105 int foo(void) {}
10106 _ACEOF
10107 if ac_fn_c_try_link "$LINENO"; then :
10108 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10111 rm -f core conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10113 LDFLAGS="$save_LDFLAGS"
10114 else
10115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10116 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10118 archive_cmds_need_lc='no'
10119 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10120 hardcode_libdir_separator=:
10121 inherit_rpath=yes
10122 link_all_deplibs=yes
10125 netbsd*)
10126 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10127 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10128 else
10129 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10131 hardcode_libdir_flag_spec='-R$libdir'
10132 hardcode_direct=yes
10133 hardcode_shlibpath_var=no
10136 newsos6)
10137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10138 hardcode_direct=yes
10139 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10140 hardcode_libdir_separator=:
10141 hardcode_shlibpath_var=no
10144 *nto* | *qnx*)
10147 openbsd*)
10148 if test -f /usr/libexec/ld.so; then
10149 hardcode_direct=yes
10150 hardcode_shlibpath_var=no
10151 hardcode_direct_absolute=yes
10152 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10153 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10154 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10155 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10156 export_dynamic_flag_spec='${wl}-E'
10157 else
10158 case $host_os in
10159 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10161 hardcode_libdir_flag_spec='-R$libdir'
10164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10167 esac
10169 else
10170 ld_shlibs=no
10174 os2*)
10175 hardcode_libdir_flag_spec='-L$libdir'
10176 hardcode_minus_L=yes
10177 allow_undefined_flag=unsupported
10178 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'
10179 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10182 osf3*)
10183 if test "$GCC" = yes; then
10184 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10185 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10186 else
10187 allow_undefined_flag=' -expect_unresolved \*'
10188 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10190 archive_cmds_need_lc='no'
10191 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10192 hardcode_libdir_separator=:
10195 osf4* | osf5*) # as osf3* with the addition of -msym flag
10196 if test "$GCC" = yes; then
10197 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10198 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10200 else
10201 allow_undefined_flag=' -expect_unresolved \*'
10202 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10203 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~
10204 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10206 # Both c and cxx compiler support -rpath directly
10207 hardcode_libdir_flag_spec='-rpath $libdir'
10209 archive_cmds_need_lc='no'
10210 hardcode_libdir_separator=:
10213 solaris*)
10214 no_undefined_flag=' -z defs'
10215 if test "$GCC" = yes; then
10216 wlarc='${wl}'
10217 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10218 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10219 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10220 else
10221 case `$CC -V 2>&1` in
10222 *"Compilers 5.0"*)
10223 wlarc=''
10224 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10225 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10226 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10229 wlarc='${wl}'
10230 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10232 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10234 esac
10236 hardcode_libdir_flag_spec='-R$libdir'
10237 hardcode_shlibpath_var=no
10238 case $host_os in
10239 solaris2.[0-5] | solaris2.[0-5].*) ;;
10241 # The compiler driver will combine and reorder linker options,
10242 # but understands `-z linker_flag'. GCC discards it without `$wl',
10243 # but is careful enough not to reorder.
10244 # Supported since Solaris 2.6 (maybe 2.5.1?)
10245 if test "$GCC" = yes; then
10246 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10247 else
10248 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10251 esac
10252 link_all_deplibs=yes
10255 sunos4*)
10256 if test "x$host_vendor" = xsequent; then
10257 # Use $CC to link under sequent, because it throws in some extra .o
10258 # files that make .init and .fini sections work.
10259 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10260 else
10261 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10263 hardcode_libdir_flag_spec='-L$libdir'
10264 hardcode_direct=yes
10265 hardcode_minus_L=yes
10266 hardcode_shlibpath_var=no
10269 sysv4)
10270 case $host_vendor in
10271 sni)
10272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273 hardcode_direct=yes # is this really true???
10275 siemens)
10276 ## LD is ld it makes a PLAMLIB
10277 ## CC just makes a GrossModule.
10278 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10279 reload_cmds='$CC -r -o $output$reload_objs'
10280 hardcode_direct=no
10282 motorola)
10283 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10284 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10286 esac
10287 runpath_var='LD_RUN_PATH'
10288 hardcode_shlibpath_var=no
10291 sysv4.3*)
10292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293 hardcode_shlibpath_var=no
10294 export_dynamic_flag_spec='-Bexport'
10297 sysv4*MP*)
10298 if test -d /usr/nec; then
10299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10300 hardcode_shlibpath_var=no
10301 runpath_var=LD_RUN_PATH
10302 hardcode_runpath_var=yes
10303 ld_shlibs=yes
10307 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10308 no_undefined_flag='${wl}-z,text'
10309 archive_cmds_need_lc=no
10310 hardcode_shlibpath_var=no
10311 runpath_var='LD_RUN_PATH'
10313 if test "$GCC" = yes; then
10314 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10315 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10316 else
10317 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10318 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322 sysv5* | sco3.2v5* | sco5v6*)
10323 # Note: We can NOT use -z defs as we might desire, because we do not
10324 # link with -lc, and that would cause any symbols used from libc to
10325 # always be unresolved, which means just about no library would
10326 # ever link correctly. If we're not using GNU ld we use -z text
10327 # though, which does catch some bad symbols but isn't as heavy-handed
10328 # as -z defs.
10329 no_undefined_flag='${wl}-z,text'
10330 allow_undefined_flag='${wl}-z,nodefs'
10331 archive_cmds_need_lc=no
10332 hardcode_shlibpath_var=no
10333 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10334 hardcode_libdir_separator=':'
10335 link_all_deplibs=yes
10336 export_dynamic_flag_spec='${wl}-Bexport'
10337 runpath_var='LD_RUN_PATH'
10339 if test "$GCC" = yes; then
10340 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10341 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10342 else
10343 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10344 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10348 uts4*)
10349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350 hardcode_libdir_flag_spec='-L$libdir'
10351 hardcode_shlibpath_var=no
10355 ld_shlibs=no
10357 esac
10359 if test x$host_vendor = xsni; then
10360 case $host in
10361 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10362 export_dynamic_flag_spec='${wl}-Blargedynsym'
10364 esac
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10369 $as_echo "$ld_shlibs" >&6; }
10370 test "$ld_shlibs" = no && can_build_shared=no
10372 with_gnu_ld=$with_gnu_ld
10389 # Do we need to explicitly link libc?
10391 case "x$archive_cmds_need_lc" in
10392 x|xyes)
10393 # Assume -lc should be added
10394 archive_cmds_need_lc=yes
10396 if test "$enable_shared" = yes && test "$GCC" = yes; then
10397 case $archive_cmds in
10398 *'~'*)
10399 # FIXME: we may have to deal with multi-command sequences.
10401 '$CC '*)
10402 # Test whether the compiler implicitly links with -lc since on some
10403 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10404 # to ld, don't add -lc before -lgcc.
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10406 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10407 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10408 $as_echo_n "(cached) " >&6
10409 else
10410 $RM conftest*
10411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10414 (eval $ac_compile) 2>&5
10415 ac_status=$?
10416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10417 test $ac_status = 0; } 2>conftest.err; then
10418 soname=conftest
10419 lib=conftest
10420 libobjs=conftest.$ac_objext
10421 deplibs=
10422 wl=$lt_prog_compiler_wl
10423 pic_flag=$lt_prog_compiler_pic
10424 compiler_flags=-v
10425 linker_flags=-v
10426 verstring=
10427 output_objdir=.
10428 libname=conftest
10429 lt_save_allow_undefined_flag=$allow_undefined_flag
10430 allow_undefined_flag=
10431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10432 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10433 ac_status=$?
10434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10435 test $ac_status = 0; }
10436 then
10437 lt_cv_archive_cmds_need_lc=no
10438 else
10439 lt_cv_archive_cmds_need_lc=yes
10441 allow_undefined_flag=$lt_save_allow_undefined_flag
10442 else
10443 cat conftest.err 1>&5
10445 $RM conftest*
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10449 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10450 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10452 esac
10455 esac
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10614 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10616 if test "$GCC" = yes; then
10617 case $host_os in
10618 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10619 *) lt_awk_arg="/^libraries:/" ;;
10620 esac
10621 case $host_os in
10622 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10623 *) lt_sed_strip_eq="s,=/,/,g" ;;
10624 esac
10625 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10626 case $lt_search_path_spec in
10627 *\;*)
10628 # if the path contains ";" then we assume it to be the separator
10629 # otherwise default to the standard path separator (i.e. ":") - it is
10630 # assumed that no part of a normal pathname contains ";" but that should
10631 # okay in the real world where ";" in dirpaths is itself problematic.
10632 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10635 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10637 esac
10638 # Ok, now we have the path, separated by spaces, we can step through it
10639 # and add multilib dir if necessary.
10640 lt_tmp_lt_search_path_spec=
10641 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10642 for lt_sys_path in $lt_search_path_spec; do
10643 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10644 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10645 else
10646 test -d "$lt_sys_path" && \
10647 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10649 done
10650 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10651 BEGIN {RS=" "; FS="/|\n";} {
10652 lt_foo="";
10653 lt_count=0;
10654 for (lt_i = NF; lt_i > 0; lt_i--) {
10655 if ($lt_i != "" && $lt_i != ".") {
10656 if ($lt_i == "..") {
10657 lt_count++;
10658 } else {
10659 if (lt_count == 0) {
10660 lt_foo="/" $lt_i lt_foo;
10661 } else {
10662 lt_count--;
10667 if (lt_foo != "") { lt_freq[lt_foo]++; }
10668 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10670 # AWK program above erroneously prepends '/' to C:/dos/paths
10671 # for these hosts.
10672 case $host_os in
10673 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10674 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10675 esac
10676 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10677 else
10678 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10680 library_names_spec=
10681 libname_spec='lib$name'
10682 soname_spec=
10683 shrext_cmds=".so"
10684 postinstall_cmds=
10685 postuninstall_cmds=
10686 finish_cmds=
10687 finish_eval=
10688 shlibpath_var=
10689 shlibpath_overrides_runpath=unknown
10690 version_type=none
10691 dynamic_linker="$host_os ld.so"
10692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10693 need_lib_prefix=unknown
10694 hardcode_into_libs=no
10696 # when you set need_version to no, make sure it does not cause -set_version
10697 # flags to be left without arguments
10698 need_version=unknown
10700 case $host_os in
10701 aix3*)
10702 version_type=linux
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10704 shlibpath_var=LIBPATH
10706 # AIX 3 has no versioning support, so we append a major version to the name.
10707 soname_spec='${libname}${release}${shared_ext}$major'
10710 aix[4-9]*)
10711 version_type=linux
10712 need_lib_prefix=no
10713 need_version=no
10714 hardcode_into_libs=yes
10715 if test "$host_cpu" = ia64; then
10716 # AIX 5 supports IA64
10717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10718 shlibpath_var=LD_LIBRARY_PATH
10719 else
10720 # With GCC up to 2.95.x, collect2 would create an import file
10721 # for dependence libraries. The import file would start with
10722 # the line `#! .'. This would cause the generated library to
10723 # depend on `.', always an invalid library. This was fixed in
10724 # development snapshots of GCC prior to 3.0.
10725 case $host_os in
10726 aix4 | aix4.[01] | aix4.[01].*)
10727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10728 echo ' yes '
10729 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10731 else
10732 can_build_shared=no
10735 esac
10736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10737 # soname into executable. Probably we can add versioning support to
10738 # collect2, so additional links can be useful in future.
10739 if test "$aix_use_runtimelinking" = yes; then
10740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10741 # instead of lib<name>.a to let people know that these are not
10742 # typical AIX shared libraries.
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 else
10745 # We preserve .a as extension for shared libraries through AIX4.2
10746 # and later when we are not doing run time linking.
10747 library_names_spec='${libname}${release}.a $libname.a'
10748 soname_spec='${libname}${release}${shared_ext}$major'
10750 shlibpath_var=LIBPATH
10754 amigaos*)
10755 case $host_cpu in
10756 powerpc)
10757 # Since July 2007 AmigaOS4 officially supports .so libraries.
10758 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10761 m68k)
10762 library_names_spec='$libname.ixlibrary $libname.a'
10763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10764 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10766 esac
10769 beos*)
10770 library_names_spec='${libname}${shared_ext}'
10771 dynamic_linker="$host_os ld.so"
10772 shlibpath_var=LIBRARY_PATH
10775 bsdi[45]*)
10776 version_type=linux
10777 need_version=no
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10779 soname_spec='${libname}${release}${shared_ext}$major'
10780 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10783 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10784 # the default ld.so.conf also contains /usr/contrib/lib and
10785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10786 # libtool to hard-code these into programs
10789 cygwin* | mingw* | pw32* | cegcc*)
10790 version_type=windows
10791 shrext_cmds=".dll"
10792 need_version=no
10793 need_lib_prefix=no
10795 case $GCC,$host_os in
10796 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10797 library_names_spec='$libname.dll.a'
10798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10799 postinstall_cmds='base_file=`basename \${file}`~
10800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10801 dldir=$destdir/`dirname \$dlpath`~
10802 test -d \$dldir || mkdir -p \$dldir~
10803 $install_prog $dir/$dlname \$dldir/$dlname~
10804 chmod a+x \$dldir/$dlname~
10805 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10806 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10809 dlpath=$dir/\$dldll~
10810 $RM \$dlpath'
10811 shlibpath_overrides_runpath=yes
10813 case $host_os in
10814 cygwin*)
10815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10818 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10820 mingw* | cegcc*)
10821 # MinGW DLLs use traditional 'lib' prefix
10822 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10824 pw32*)
10825 # pw32 DLLs use 'pw' prefix rather than 'lib'
10826 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10828 esac
10832 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10834 esac
10835 dynamic_linker='Win32 ld.exe'
10836 # FIXME: first we should search . and the directory the executable is in
10837 shlibpath_var=PATH
10840 darwin* | rhapsody*)
10841 dynamic_linker="$host_os dyld"
10842 version_type=darwin
10843 need_lib_prefix=no
10844 need_version=no
10845 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10846 soname_spec='${libname}${release}${major}$shared_ext'
10847 shlibpath_overrides_runpath=yes
10848 shlibpath_var=DYLD_LIBRARY_PATH
10849 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10851 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10852 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10855 dgux*)
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 shlibpath_var=LD_LIBRARY_PATH
10864 freebsd* | dragonfly*)
10865 # DragonFly does not have aout. When/if they implement a new
10866 # versioning mechanism, adjust this.
10867 if test -x /usr/bin/objformat; then
10868 objformat=`/usr/bin/objformat`
10869 else
10870 case $host_os in
10871 freebsd[23].*) objformat=aout ;;
10872 *) objformat=elf ;;
10873 esac
10875 version_type=freebsd-$objformat
10876 case $version_type in
10877 freebsd-elf*)
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10879 need_version=no
10880 need_lib_prefix=no
10882 freebsd-*)
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10884 need_version=yes
10886 esac
10887 shlibpath_var=LD_LIBRARY_PATH
10888 case $host_os in
10889 freebsd2.*)
10890 shlibpath_overrides_runpath=yes
10892 freebsd3.[01]* | freebsdelf3.[01]*)
10893 shlibpath_overrides_runpath=yes
10894 hardcode_into_libs=yes
10896 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10897 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10898 shlibpath_overrides_runpath=no
10899 hardcode_into_libs=yes
10901 *) # from 4.6 on, and DragonFly
10902 shlibpath_overrides_runpath=yes
10903 hardcode_into_libs=yes
10905 esac
10908 gnu*)
10909 version_type=linux
10910 need_lib_prefix=no
10911 need_version=no
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 hardcode_into_libs=yes
10918 haiku*)
10919 version_type=linux
10920 need_lib_prefix=no
10921 need_version=no
10922 dynamic_linker="$host_os runtime_loader"
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 shlibpath_var=LIBRARY_PATH
10926 shlibpath_overrides_runpath=yes
10927 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10928 hardcode_into_libs=yes
10931 hpux9* | hpux10* | hpux11*)
10932 # Give a soname corresponding to the major version so that dld.sl refuses to
10933 # link against other versions.
10934 version_type=sunos
10935 need_lib_prefix=no
10936 need_version=no
10937 case $host_cpu in
10938 ia64*)
10939 shrext_cmds='.so'
10940 hardcode_into_libs=yes
10941 dynamic_linker="$host_os dld.so"
10942 shlibpath_var=LD_LIBRARY_PATH
10943 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945 soname_spec='${libname}${release}${shared_ext}$major'
10946 if test "X$HPUX_IA64_MODE" = X32; then
10947 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10948 else
10949 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10953 hppa*64*)
10954 shrext_cmds='.sl'
10955 hardcode_into_libs=yes
10956 dynamic_linker="$host_os dld.sl"
10957 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10965 shrext_cmds='.sl'
10966 dynamic_linker="$host_os dld.sl"
10967 shlibpath_var=SHLIB_PATH
10968 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
10972 esac
10973 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10974 postinstall_cmds='chmod 555 $lib'
10975 # or fails outright, so override atomically:
10976 install_override_mode=555
10979 interix[3-9]*)
10980 version_type=linux
10981 need_lib_prefix=no
10982 need_version=no
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10984 soname_spec='${libname}${release}${shared_ext}$major'
10985 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10986 shlibpath_var=LD_LIBRARY_PATH
10987 shlibpath_overrides_runpath=no
10988 hardcode_into_libs=yes
10991 irix5* | irix6* | nonstopux*)
10992 case $host_os in
10993 nonstopux*) version_type=nonstopux ;;
10995 if test "$lt_cv_prog_gnu_ld" = yes; then
10996 version_type=linux
10997 else
10998 version_type=irix
10999 fi ;;
11000 esac
11001 need_lib_prefix=no
11002 need_version=no
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11005 case $host_os in
11006 irix5* | nonstopux*)
11007 libsuff= shlibsuff=
11010 case $LD in # libtool.m4 will add one of these switches to LD
11011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11012 libsuff= shlibsuff= libmagic=32-bit;;
11013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11014 libsuff=32 shlibsuff=N32 libmagic=N32;;
11015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11016 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11017 *) libsuff= shlibsuff= libmagic=never-match;;
11018 esac
11020 esac
11021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11022 shlibpath_overrides_runpath=no
11023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11025 hardcode_into_libs=yes
11028 # No shared lib support for Linux oldld, aout, or coff.
11029 linux*oldld* | linux*aout* | linux*coff*)
11030 dynamic_linker=no
11033 # This must be Linux ELF.
11034 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11035 version_type=linux
11036 need_lib_prefix=no
11037 need_version=no
11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11039 soname_spec='${libname}${release}${shared_ext}$major'
11040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11041 shlibpath_var=LD_LIBRARY_PATH
11042 shlibpath_overrides_runpath=no
11044 # Some binutils ld are patched to set DT_RUNPATH
11045 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11046 $as_echo_n "(cached) " >&6
11047 else
11048 lt_cv_shlibpath_overrides_runpath=no
11049 save_LDFLAGS=$LDFLAGS
11050 save_libdir=$libdir
11051 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11052 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11057 main ()
11061 return 0;
11063 _ACEOF
11064 if ac_fn_c_try_link "$LINENO"; then :
11065 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11066 lt_cv_shlibpath_overrides_runpath=yes
11069 rm -f core conftest.err conftest.$ac_objext \
11070 conftest$ac_exeext conftest.$ac_ext
11071 LDFLAGS=$save_LDFLAGS
11072 libdir=$save_libdir
11076 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11078 # This implies no fast_install, which is unacceptable.
11079 # Some rework will be needed to allow for fast_install
11080 # before this can be enabled.
11081 hardcode_into_libs=yes
11083 # Append ld.so.conf contents to the search path
11084 if test -f /etc/ld.so.conf; then
11085 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;s/"//g;/^$/d' | tr '\n' ' '`
11086 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11089 # We used to test for /lib/ld.so.1 and disable shared libraries on
11090 # powerpc, because MkLinux only supported shared libraries with the
11091 # GNU dynamic linker. Since this was broken with cross compilers,
11092 # most powerpc-linux boxes support dynamic linking these days and
11093 # people can always --disable-shared, the test was removed, and we
11094 # assume the GNU/Linux dynamic linker is in use.
11095 dynamic_linker='GNU/Linux ld.so'
11098 netbsd*)
11099 version_type=sunos
11100 need_lib_prefix=no
11101 need_version=no
11102 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11105 dynamic_linker='NetBSD (a.out) ld.so'
11106 else
11107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11108 soname_spec='${libname}${release}${shared_ext}$major'
11109 dynamic_linker='NetBSD ld.elf_so'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=yes
11113 hardcode_into_libs=yes
11116 newsos6)
11117 version_type=linux
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 shlibpath_var=LD_LIBRARY_PATH
11120 shlibpath_overrides_runpath=yes
11123 *nto* | *qnx*)
11124 version_type=qnx
11125 need_lib_prefix=no
11126 need_version=no
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128 soname_spec='${libname}${release}${shared_ext}$major'
11129 shlibpath_var=LD_LIBRARY_PATH
11130 shlibpath_overrides_runpath=no
11131 hardcode_into_libs=yes
11132 dynamic_linker='ldqnx.so'
11135 openbsd*)
11136 version_type=sunos
11137 sys_lib_dlsearch_path_spec="/usr/lib"
11138 need_lib_prefix=no
11139 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11140 case $host_os in
11141 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11142 *) need_version=no ;;
11143 esac
11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11148 case $host_os in
11149 openbsd2.[89] | openbsd2.[89].*)
11150 shlibpath_overrides_runpath=no
11153 shlibpath_overrides_runpath=yes
11155 esac
11156 else
11157 shlibpath_overrides_runpath=yes
11161 os2*)
11162 libname_spec='$name'
11163 shrext_cmds=".dll"
11164 need_lib_prefix=no
11165 library_names_spec='$libname${shared_ext} $libname.a'
11166 dynamic_linker='OS/2 ld.exe'
11167 shlibpath_var=LIBPATH
11170 osf3* | osf4* | osf5*)
11171 version_type=osf
11172 need_lib_prefix=no
11173 need_version=no
11174 soname_spec='${libname}${release}${shared_ext}$major'
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11176 shlibpath_var=LD_LIBRARY_PATH
11177 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11178 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11181 rdos*)
11182 dynamic_linker=no
11185 solaris*)
11186 version_type=linux
11187 need_lib_prefix=no
11188 need_version=no
11189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190 soname_spec='${libname}${release}${shared_ext}$major'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 shlibpath_overrides_runpath=yes
11193 hardcode_into_libs=yes
11194 # ldd complains unless libraries are executable
11195 postinstall_cmds='chmod +x $lib'
11198 sunos4*)
11199 version_type=sunos
11200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11201 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11202 shlibpath_var=LD_LIBRARY_PATH
11203 shlibpath_overrides_runpath=yes
11204 if test "$with_gnu_ld" = yes; then
11205 need_lib_prefix=no
11207 need_version=yes
11210 sysv4 | sysv4.3*)
11211 version_type=linux
11212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213 soname_spec='${libname}${release}${shared_ext}$major'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 case $host_vendor in
11216 sni)
11217 shlibpath_overrides_runpath=no
11218 need_lib_prefix=no
11219 runpath_var=LD_RUN_PATH
11221 siemens)
11222 need_lib_prefix=no
11224 motorola)
11225 need_lib_prefix=no
11226 need_version=no
11227 shlibpath_overrides_runpath=no
11228 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11230 esac
11233 sysv4*MP*)
11234 if test -d /usr/nec ;then
11235 version_type=linux
11236 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11237 soname_spec='$libname${shared_ext}.$major'
11238 shlibpath_var=LD_LIBRARY_PATH
11242 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11243 version_type=freebsd-elf
11244 need_lib_prefix=no
11245 need_version=no
11246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11247 soname_spec='${libname}${release}${shared_ext}$major'
11248 shlibpath_var=LD_LIBRARY_PATH
11249 shlibpath_overrides_runpath=yes
11250 hardcode_into_libs=yes
11251 if test "$with_gnu_ld" = yes; then
11252 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11253 else
11254 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11255 case $host_os in
11256 sco3.2v5*)
11257 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11259 esac
11261 sys_lib_dlsearch_path_spec='/usr/lib'
11264 tpf*)
11265 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11266 version_type=linux
11267 need_lib_prefix=no
11268 need_version=no
11269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11270 shlibpath_var=LD_LIBRARY_PATH
11271 shlibpath_overrides_runpath=no
11272 hardcode_into_libs=yes
11275 uts4*)
11276 version_type=linux
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11278 soname_spec='${libname}${release}${shared_ext}$major'
11279 shlibpath_var=LD_LIBRARY_PATH
11283 dynamic_linker=no
11285 esac
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11287 $as_echo "$dynamic_linker" >&6; }
11288 test "$dynamic_linker" = no && can_build_shared=no
11290 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11291 if test "$GCC" = yes; then
11292 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11295 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11296 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11298 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11299 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11394 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11395 hardcode_action=
11396 if test -n "$hardcode_libdir_flag_spec" ||
11397 test -n "$runpath_var" ||
11398 test "X$hardcode_automatic" = "Xyes" ; then
11400 # We can hardcode non-existent directories.
11401 if test "$hardcode_direct" != no &&
11402 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11403 # have to relink, otherwise we might link with an installed library
11404 # when we should be linking with a yet-to-be-installed one
11405 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11406 test "$hardcode_minus_L" != no; then
11407 # Linking always hardcodes the temporary library directory.
11408 hardcode_action=relink
11409 else
11410 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11411 hardcode_action=immediate
11413 else
11414 # We cannot hardcode anything, or else we can only hardcode existing
11415 # directories.
11416 hardcode_action=unsupported
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11419 $as_echo "$hardcode_action" >&6; }
11421 if test "$hardcode_action" = relink ||
11422 test "$inherit_rpath" = yes; then
11423 # Fast installation is not supported
11424 enable_fast_install=no
11425 elif test "$shlibpath_overrides_runpath" = yes ||
11426 test "$enable_shared" = no; then
11427 # Fast installation is not necessary
11428 enable_fast_install=needless
11436 if test "x$enable_dlopen" != xyes; then
11437 enable_dlopen=unknown
11438 enable_dlopen_self=unknown
11439 enable_dlopen_self_static=unknown
11440 else
11441 lt_cv_dlopen=no
11442 lt_cv_dlopen_libs=
11444 case $host_os in
11445 beos*)
11446 lt_cv_dlopen="load_add_on"
11447 lt_cv_dlopen_libs=
11448 lt_cv_dlopen_self=yes
11451 mingw* | pw32* | cegcc*)
11452 lt_cv_dlopen="LoadLibrary"
11453 lt_cv_dlopen_libs=
11456 cygwin*)
11457 lt_cv_dlopen="dlopen"
11458 lt_cv_dlopen_libs=
11461 darwin*)
11462 # if libdl is installed we need to link against it
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11464 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11465 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11466 $as_echo_n "(cached) " >&6
11467 else
11468 ac_check_lib_save_LIBS=$LIBS
11469 LIBS="-ldl $LIBS"
11470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h. */
11473 /* Override any GCC internal prototype to avoid an error.
11474 Use char because int might match the return type of a GCC
11475 builtin and then its argument prototype would still apply. */
11476 #ifdef __cplusplus
11477 extern "C"
11478 #endif
11479 char dlopen ();
11481 main ()
11483 return dlopen ();
11485 return 0;
11487 _ACEOF
11488 if ac_fn_c_try_link "$LINENO"; then :
11489 ac_cv_lib_dl_dlopen=yes
11490 else
11491 ac_cv_lib_dl_dlopen=no
11493 rm -f core conftest.err conftest.$ac_objext \
11494 conftest$ac_exeext conftest.$ac_ext
11495 LIBS=$ac_check_lib_save_LIBS
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11498 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11499 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11500 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11501 else
11503 lt_cv_dlopen="dyld"
11504 lt_cv_dlopen_libs=
11505 lt_cv_dlopen_self=yes
11512 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11513 if test "x$ac_cv_func_shl_load" = x""yes; then :
11514 lt_cv_dlopen="shl_load"
11515 else
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11517 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11518 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 ac_check_lib_save_LIBS=$LIBS
11522 LIBS="-ldld $LIBS"
11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h. */
11526 /* Override any GCC internal prototype to avoid an error.
11527 Use char because int might match the return type of a GCC
11528 builtin and then its argument prototype would still apply. */
11529 #ifdef __cplusplus
11530 extern "C"
11531 #endif
11532 char shl_load ();
11534 main ()
11536 return shl_load ();
11538 return 0;
11540 _ACEOF
11541 if ac_fn_c_try_link "$LINENO"; then :
11542 ac_cv_lib_dld_shl_load=yes
11543 else
11544 ac_cv_lib_dld_shl_load=no
11546 rm -f core conftest.err conftest.$ac_objext \
11547 conftest$ac_exeext conftest.$ac_ext
11548 LIBS=$ac_check_lib_save_LIBS
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11551 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11552 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11553 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11554 else
11555 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11556 if test "x$ac_cv_func_dlopen" = x""yes; then :
11557 lt_cv_dlopen="dlopen"
11558 else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11560 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11561 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11562 $as_echo_n "(cached) " >&6
11563 else
11564 ac_check_lib_save_LIBS=$LIBS
11565 LIBS="-ldl $LIBS"
11566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11569 /* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11572 #ifdef __cplusplus
11573 extern "C"
11574 #endif
11575 char dlopen ();
11577 main ()
11579 return dlopen ();
11581 return 0;
11583 _ACEOF
11584 if ac_fn_c_try_link "$LINENO"; then :
11585 ac_cv_lib_dl_dlopen=yes
11586 else
11587 ac_cv_lib_dl_dlopen=no
11589 rm -f core conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
11591 LIBS=$ac_check_lib_save_LIBS
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11594 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11595 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11596 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11597 else
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11599 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11600 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11601 $as_echo_n "(cached) " >&6
11602 else
11603 ac_check_lib_save_LIBS=$LIBS
11604 LIBS="-lsvld $LIBS"
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11608 /* Override any GCC internal prototype to avoid an error.
11609 Use char because int might match the return type of a GCC
11610 builtin and then its argument prototype would still apply. */
11611 #ifdef __cplusplus
11612 extern "C"
11613 #endif
11614 char dlopen ();
11616 main ()
11618 return dlopen ();
11620 return 0;
11622 _ACEOF
11623 if ac_fn_c_try_link "$LINENO"; then :
11624 ac_cv_lib_svld_dlopen=yes
11625 else
11626 ac_cv_lib_svld_dlopen=no
11628 rm -f core conftest.err conftest.$ac_objext \
11629 conftest$ac_exeext conftest.$ac_ext
11630 LIBS=$ac_check_lib_save_LIBS
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11633 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11634 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11635 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11636 else
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11638 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11639 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 ac_check_lib_save_LIBS=$LIBS
11643 LIBS="-ldld $LIBS"
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11647 /* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 char dld_link ();
11655 main ()
11657 return dld_link ();
11659 return 0;
11661 _ACEOF
11662 if ac_fn_c_try_link "$LINENO"; then :
11663 ac_cv_lib_dld_dld_link=yes
11664 else
11665 ac_cv_lib_dld_dld_link=no
11667 rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 LIBS=$ac_check_lib_save_LIBS
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11672 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11673 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11674 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11693 esac
11695 if test "x$lt_cv_dlopen" != xno; then
11696 enable_dlopen=yes
11697 else
11698 enable_dlopen=no
11701 case $lt_cv_dlopen in
11702 dlopen)
11703 save_CPPFLAGS="$CPPFLAGS"
11704 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11706 save_LDFLAGS="$LDFLAGS"
11707 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11709 save_LIBS="$LIBS"
11710 LIBS="$lt_cv_dlopen_libs $LIBS"
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11713 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11714 if test "${lt_cv_dlopen_self+set}" = set; then :
11715 $as_echo_n "(cached) " >&6
11716 else
11717 if test "$cross_compiling" = yes; then :
11718 lt_cv_dlopen_self=cross
11719 else
11720 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11721 lt_status=$lt_dlunknown
11722 cat > conftest.$ac_ext <<_LT_EOF
11723 #line 11723 "configure"
11724 #include "confdefs.h"
11726 #if HAVE_DLFCN_H
11727 #include <dlfcn.h>
11728 #endif
11730 #include <stdio.h>
11732 #ifdef RTLD_GLOBAL
11733 # define LT_DLGLOBAL RTLD_GLOBAL
11734 #else
11735 # ifdef DL_GLOBAL
11736 # define LT_DLGLOBAL DL_GLOBAL
11737 # else
11738 # define LT_DLGLOBAL 0
11739 # endif
11740 #endif
11742 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11743 find out it does not work in some platform. */
11744 #ifndef LT_DLLAZY_OR_NOW
11745 # ifdef RTLD_LAZY
11746 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11747 # else
11748 # ifdef DL_LAZY
11749 # define LT_DLLAZY_OR_NOW DL_LAZY
11750 # else
11751 # ifdef RTLD_NOW
11752 # define LT_DLLAZY_OR_NOW RTLD_NOW
11753 # else
11754 # ifdef DL_NOW
11755 # define LT_DLLAZY_OR_NOW DL_NOW
11756 # else
11757 # define LT_DLLAZY_OR_NOW 0
11758 # endif
11759 # endif
11760 # endif
11761 # endif
11762 #endif
11764 /* When -fvisbility=hidden is used, assume the code has been annotated
11765 correspondingly for the symbols needed. */
11766 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11767 void fnord () __attribute__((visibility("default")));
11768 #endif
11770 void fnord () { int i=42; }
11771 int main ()
11773 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11774 int status = $lt_dlunknown;
11776 if (self)
11778 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11779 else
11781 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11782 else puts (dlerror ());
11784 /* dlclose (self); */
11786 else
11787 puts (dlerror ());
11789 return status;
11791 _LT_EOF
11792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11793 (eval $ac_link) 2>&5
11794 ac_status=$?
11795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11796 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11797 (./conftest; exit; ) >&5 2>/dev/null
11798 lt_status=$?
11799 case x$lt_status in
11800 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11801 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11802 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11803 esac
11804 else :
11805 # compilation failed
11806 lt_cv_dlopen_self=no
11809 rm -fr conftest*
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11814 $as_echo "$lt_cv_dlopen_self" >&6; }
11816 if test "x$lt_cv_dlopen_self" = xyes; then
11817 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11819 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11820 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 if test "$cross_compiling" = yes; then :
11824 lt_cv_dlopen_self_static=cross
11825 else
11826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11827 lt_status=$lt_dlunknown
11828 cat > conftest.$ac_ext <<_LT_EOF
11829 #line 11829 "configure"
11830 #include "confdefs.h"
11832 #if HAVE_DLFCN_H
11833 #include <dlfcn.h>
11834 #endif
11836 #include <stdio.h>
11838 #ifdef RTLD_GLOBAL
11839 # define LT_DLGLOBAL RTLD_GLOBAL
11840 #else
11841 # ifdef DL_GLOBAL
11842 # define LT_DLGLOBAL DL_GLOBAL
11843 # else
11844 # define LT_DLGLOBAL 0
11845 # endif
11846 #endif
11848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11849 find out it does not work in some platform. */
11850 #ifndef LT_DLLAZY_OR_NOW
11851 # ifdef RTLD_LAZY
11852 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11853 # else
11854 # ifdef DL_LAZY
11855 # define LT_DLLAZY_OR_NOW DL_LAZY
11856 # else
11857 # ifdef RTLD_NOW
11858 # define LT_DLLAZY_OR_NOW RTLD_NOW
11859 # else
11860 # ifdef DL_NOW
11861 # define LT_DLLAZY_OR_NOW DL_NOW
11862 # else
11863 # define LT_DLLAZY_OR_NOW 0
11864 # endif
11865 # endif
11866 # endif
11867 # endif
11868 #endif
11870 /* When -fvisbility=hidden is used, assume the code has been annotated
11871 correspondingly for the symbols needed. */
11872 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11873 void fnord () __attribute__((visibility("default")));
11874 #endif
11876 void fnord () { int i=42; }
11877 int main ()
11879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11880 int status = $lt_dlunknown;
11882 if (self)
11884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11885 else
11887 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11888 else puts (dlerror ());
11890 /* dlclose (self); */
11892 else
11893 puts (dlerror ());
11895 return status;
11897 _LT_EOF
11898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11899 (eval $ac_link) 2>&5
11900 ac_status=$?
11901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11902 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11903 (./conftest; exit; ) >&5 2>/dev/null
11904 lt_status=$?
11905 case x$lt_status in
11906 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11907 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11908 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11909 esac
11910 else :
11911 # compilation failed
11912 lt_cv_dlopen_self_static=no
11915 rm -fr conftest*
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11920 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11923 CPPFLAGS="$save_CPPFLAGS"
11924 LDFLAGS="$save_LDFLAGS"
11925 LIBS="$save_LIBS"
11927 esac
11929 case $lt_cv_dlopen_self in
11930 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11931 *) enable_dlopen_self=unknown ;;
11932 esac
11934 case $lt_cv_dlopen_self_static in
11935 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11936 *) enable_dlopen_self_static=unknown ;;
11937 esac
11956 striplib=
11957 old_striplib=
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11959 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11960 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11961 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11962 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11964 $as_echo "yes" >&6; }
11965 else
11966 # FIXME - insert some real tests, host_os isn't really good enough
11967 case $host_os in
11968 darwin*)
11969 if test -n "$STRIP" ; then
11970 striplib="$STRIP -x"
11971 old_striplib="$STRIP -S"
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11973 $as_echo "yes" >&6; }
11974 else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976 $as_echo "no" >&6; }
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11983 esac
11997 # Report which library types will actually be built
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11999 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12001 $as_echo "$can_build_shared" >&6; }
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12004 $as_echo_n "checking whether to build shared libraries... " >&6; }
12005 test "$can_build_shared" = "no" && enable_shared=no
12007 # On AIX, shared libraries and static libraries use the same namespace, and
12008 # are all built from PIC.
12009 case $host_os in
12010 aix3*)
12011 test "$enable_shared" = yes && enable_static=no
12012 if test -n "$RANLIB"; then
12013 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12014 postinstall_cmds='$RANLIB $lib'
12018 aix[4-9]*)
12019 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12020 test "$enable_shared" = yes && enable_static=no
12023 esac
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12025 $as_echo "$enable_shared" >&6; }
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12028 $as_echo_n "checking whether to build static libraries... " >&6; }
12029 # Make sure either enable_shared or enable_static is yes.
12030 test "$enable_shared" = yes || enable_static=yes
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12032 $as_echo "$enable_static" >&6; }
12038 ac_ext=c
12039 ac_cpp='$CPP $CPPFLAGS'
12040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12044 CC="$lt_save_CC"
12046 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12047 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12048 (test "X$CXX" != "Xg++"))) ; then
12049 ac_ext=cpp
12050 ac_cpp='$CXXCPP $CPPFLAGS'
12051 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12052 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12053 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12055 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12056 if test -z "$CXXCPP"; then
12057 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12058 $as_echo_n "(cached) " >&6
12059 else
12060 # Double quotes because CXXCPP needs to be expanded
12061 for CXXCPP in "$CXX -E" "/lib/cpp"
12063 ac_preproc_ok=false
12064 for ac_cxx_preproc_warn_flag in '' yes
12066 # Use a header file that comes with gcc, so configuring glibc
12067 # with a fresh cross-compiler works.
12068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12069 # <limits.h> exists even on freestanding compilers.
12070 # On the NeXT, cc -E runs the code through the compiler's parser,
12071 # not just through cpp. "Syntax error" is here to catch this case.
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 #ifdef __STDC__
12075 # include <limits.h>
12076 #else
12077 # include <assert.h>
12078 #endif
12079 Syntax error
12080 _ACEOF
12081 if ac_fn_cxx_try_cpp "$LINENO"; then :
12083 else
12084 # Broken: fails on valid input.
12085 continue
12087 rm -f conftest.err conftest.$ac_ext
12089 # OK, works on sane cases. Now check whether nonexistent headers
12090 # can be detected and how.
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093 #include <ac_nonexistent.h>
12094 _ACEOF
12095 if ac_fn_cxx_try_cpp "$LINENO"; then :
12096 # Broken: success on invalid input.
12097 continue
12098 else
12099 # Passes both tests.
12100 ac_preproc_ok=:
12101 break
12103 rm -f conftest.err conftest.$ac_ext
12105 done
12106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12107 rm -f conftest.err conftest.$ac_ext
12108 if $ac_preproc_ok; then :
12109 break
12112 done
12113 ac_cv_prog_CXXCPP=$CXXCPP
12116 CXXCPP=$ac_cv_prog_CXXCPP
12117 else
12118 ac_cv_prog_CXXCPP=$CXXCPP
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12121 $as_echo "$CXXCPP" >&6; }
12122 ac_preproc_ok=false
12123 for ac_cxx_preproc_warn_flag in '' yes
12125 # Use a header file that comes with gcc, so configuring glibc
12126 # with a fresh cross-compiler works.
12127 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12128 # <limits.h> exists even on freestanding compilers.
12129 # On the NeXT, cc -E runs the code through the compiler's parser,
12130 # not just through cpp. "Syntax error" is here to catch this case.
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133 #ifdef __STDC__
12134 # include <limits.h>
12135 #else
12136 # include <assert.h>
12137 #endif
12138 Syntax error
12139 _ACEOF
12140 if ac_fn_cxx_try_cpp "$LINENO"; then :
12142 else
12143 # Broken: fails on valid input.
12144 continue
12146 rm -f conftest.err conftest.$ac_ext
12148 # OK, works on sane cases. Now check whether nonexistent headers
12149 # can be detected and how.
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12152 #include <ac_nonexistent.h>
12153 _ACEOF
12154 if ac_fn_cxx_try_cpp "$LINENO"; then :
12155 # Broken: success on invalid input.
12156 continue
12157 else
12158 # Passes both tests.
12159 ac_preproc_ok=:
12160 break
12162 rm -f conftest.err conftest.$ac_ext
12164 done
12165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12166 rm -f conftest.err conftest.$ac_ext
12167 if $ac_preproc_ok; then :
12169 else
12170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12172 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12173 See \`config.log' for more details." "$LINENO" 5; }
12176 ac_ext=c
12177 ac_cpp='$CPP $CPPFLAGS'
12178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12182 else
12183 _lt_caught_CXX_error=yes
12186 ac_ext=cpp
12187 ac_cpp='$CXXCPP $CPPFLAGS'
12188 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12189 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12190 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12192 archive_cmds_need_lc_CXX=no
12193 allow_undefined_flag_CXX=
12194 always_export_symbols_CXX=no
12195 archive_expsym_cmds_CXX=
12196 compiler_needs_object_CXX=no
12197 export_dynamic_flag_spec_CXX=
12198 hardcode_direct_CXX=no
12199 hardcode_direct_absolute_CXX=no
12200 hardcode_libdir_flag_spec_CXX=
12201 hardcode_libdir_flag_spec_ld_CXX=
12202 hardcode_libdir_separator_CXX=
12203 hardcode_minus_L_CXX=no
12204 hardcode_shlibpath_var_CXX=unsupported
12205 hardcode_automatic_CXX=no
12206 inherit_rpath_CXX=no
12207 module_cmds_CXX=
12208 module_expsym_cmds_CXX=
12209 link_all_deplibs_CXX=unknown
12210 old_archive_cmds_CXX=$old_archive_cmds
12211 reload_flag_CXX=$reload_flag
12212 reload_cmds_CXX=$reload_cmds
12213 no_undefined_flag_CXX=
12214 whole_archive_flag_spec_CXX=
12215 enable_shared_with_static_runtimes_CXX=no
12217 # Source file extension for C++ test sources.
12218 ac_ext=cpp
12220 # Object file extension for compiled C++ test sources.
12221 objext=o
12222 objext_CXX=$objext
12224 # No sense in running all these tests if we already determined that
12225 # the CXX compiler isn't working. Some variables (like enable_shared)
12226 # are currently assumed to apply to all compilers on this platform,
12227 # and will be corrupted by setting them based on a non-working compiler.
12228 if test "$_lt_caught_CXX_error" != yes; then
12229 # Code to be used in simple compile tests
12230 lt_simple_compile_test_code="int some_variable = 0;"
12232 # Code to be used in simple link tests
12233 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12235 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12242 # If no C compiler was specified, use CC.
12243 LTCC=${LTCC-"$CC"}
12245 # If no C compiler flags were specified, use CFLAGS.
12246 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12248 # Allow CC to be a program name with arguments.
12249 compiler=$CC
12252 # save warnings/boilerplate of simple test code
12253 ac_outfile=conftest.$ac_objext
12254 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12255 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12256 _lt_compiler_boilerplate=`cat conftest.err`
12257 $RM conftest*
12259 ac_outfile=conftest.$ac_objext
12260 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12261 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12262 _lt_linker_boilerplate=`cat conftest.err`
12263 $RM -r conftest*
12266 # Allow CC to be a program name with arguments.
12267 lt_save_CC=$CC
12268 lt_save_LD=$LD
12269 lt_save_GCC=$GCC
12270 GCC=$GXX
12271 lt_save_with_gnu_ld=$with_gnu_ld
12272 lt_save_path_LD=$lt_cv_path_LD
12273 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12274 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12275 else
12276 $as_unset lt_cv_prog_gnu_ld
12278 if test -n "${lt_cv_path_LDCXX+set}"; then
12279 lt_cv_path_LD=$lt_cv_path_LDCXX
12280 else
12281 $as_unset lt_cv_path_LD
12283 test -z "${LDCXX+set}" || LD=$LDCXX
12284 CC=${CXX-"c++"}
12285 compiler=$CC
12286 compiler_CXX=$CC
12287 for cc_temp in $compiler""; do
12288 case $cc_temp in
12289 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12290 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12291 \-*) ;;
12292 *) break;;
12293 esac
12294 done
12295 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12298 if test -n "$compiler"; then
12299 # We don't want -fno-exception when compiling C++ code, so set the
12300 # no_builtin_flag separately
12301 if test "$GXX" = yes; then
12302 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12303 else
12304 lt_prog_compiler_no_builtin_flag_CXX=
12307 if test "$GXX" = yes; then
12308 # Set up default GNU C++ configuration
12312 # Check whether --with-gnu-ld was given.
12313 if test "${with_gnu_ld+set}" = set; then :
12314 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12315 else
12316 with_gnu_ld=no
12319 ac_prog=ld
12320 if test "$GCC" = yes; then
12321 # Check if gcc -print-prog-name=ld gives a path.
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12323 $as_echo_n "checking for ld used by $CC... " >&6; }
12324 case $host in
12325 *-*-mingw*)
12326 # gcc leaves a trailing carriage return which upsets mingw
12327 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12329 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12330 esac
12331 case $ac_prog in
12332 # Accept absolute paths.
12333 [\\/]* | ?:[\\/]*)
12334 re_direlt='/[^/][^/]*/\.\./'
12335 # Canonicalize the pathname of ld
12336 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12337 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12338 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12339 done
12340 test -z "$LD" && LD="$ac_prog"
12343 # If it fails, then pretend we aren't using GCC.
12344 ac_prog=ld
12347 # If it is relative, then search for the first ld in PATH.
12348 with_gnu_ld=unknown
12350 esac
12351 elif test "$with_gnu_ld" = yes; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12353 $as_echo_n "checking for GNU ld... " >&6; }
12354 else
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12356 $as_echo_n "checking for non-GNU ld... " >&6; }
12358 if test "${lt_cv_path_LD+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 if test -z "$LD"; then
12362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12363 for ac_dir in $PATH; do
12364 IFS="$lt_save_ifs"
12365 test -z "$ac_dir" && ac_dir=.
12366 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12367 lt_cv_path_LD="$ac_dir/$ac_prog"
12368 # Check to see if the program is GNU ld. I'd rather use --version,
12369 # but apparently some variants of GNU ld only accept -v.
12370 # Break only if it was the GNU/non-GNU ld that we prefer.
12371 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12372 *GNU* | *'with BFD'*)
12373 test "$with_gnu_ld" != no && break
12376 test "$with_gnu_ld" != yes && break
12378 esac
12380 done
12381 IFS="$lt_save_ifs"
12382 else
12383 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12387 LD="$lt_cv_path_LD"
12388 if test -n "$LD"; then
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12390 $as_echo "$LD" >&6; }
12391 else
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393 $as_echo "no" >&6; }
12395 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12397 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12398 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12402 case `$LD -v 2>&1 </dev/null` in
12403 *GNU* | *'with BFD'*)
12404 lt_cv_prog_gnu_ld=yes
12407 lt_cv_prog_gnu_ld=no
12409 esac
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12412 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12413 with_gnu_ld=$lt_cv_prog_gnu_ld
12421 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12422 # archiving commands below assume that GNU ld is being used.
12423 if test "$with_gnu_ld" = yes; then
12424 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12425 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'
12427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12428 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12430 # If archive_cmds runs LD, not CC, wlarc should be empty
12431 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12432 # investigate it a little bit more. (MM)
12433 wlarc='${wl}'
12435 # ancient GNU ld didn't support --whole-archive et. al.
12436 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12437 $GREP 'no-whole-archive' > /dev/null; then
12438 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12439 else
12440 whole_archive_flag_spec_CXX=
12442 else
12443 with_gnu_ld=no
12444 wlarc=
12446 # A generic and very simple default shared library creation
12447 # command for GNU C++ for the case where it uses the native
12448 # linker, instead of GNU ld. If possible, this setting should
12449 # overridden to take advantage of the native linker features on
12450 # the platform it is being used on.
12451 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12454 # Commands to make compiler produce verbose output that lists
12455 # what "hidden" libraries, object files and flags are used when
12456 # linking a shared library.
12457 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12459 else
12460 GXX=no
12461 with_gnu_ld=no
12462 wlarc=
12465 # PORTME: fill in a description of your system's C++ link characteristics
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12467 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12468 ld_shlibs_CXX=yes
12469 case $host_os in
12470 aix3*)
12471 # FIXME: insert proper C++ library support
12472 ld_shlibs_CXX=no
12474 aix[4-9]*)
12475 if test "$host_cpu" = ia64; then
12476 # On IA64, the linker does run time linking by default, so we don't
12477 # have to do anything special.
12478 aix_use_runtimelinking=no
12479 exp_sym_flag='-Bexport'
12480 no_entry_flag=""
12481 else
12482 aix_use_runtimelinking=no
12484 # Test if we are trying to use run time linking or normal
12485 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12486 # need to do runtime linking.
12487 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12488 for ld_flag in $LDFLAGS; do
12489 case $ld_flag in
12490 *-brtl*)
12491 aix_use_runtimelinking=yes
12492 break
12494 esac
12495 done
12497 esac
12499 exp_sym_flag='-bexport'
12500 no_entry_flag='-bnoentry'
12503 # When large executables or shared objects are built, AIX ld can
12504 # have problems creating the table of contents. If linking a library
12505 # or program results in "error TOC overflow" add -mminimal-toc to
12506 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12507 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12509 archive_cmds_CXX=''
12510 hardcode_direct_CXX=yes
12511 hardcode_direct_absolute_CXX=yes
12512 hardcode_libdir_separator_CXX=':'
12513 link_all_deplibs_CXX=yes
12514 file_list_spec_CXX='${wl}-f,'
12516 if test "$GXX" = yes; then
12517 case $host_os in aix4.[012]|aix4.[012].*)
12518 # We only want to do this on AIX 4.2 and lower, the check
12519 # below for broken collect2 doesn't work under 4.3+
12520 collect2name=`${CC} -print-prog-name=collect2`
12521 if test -f "$collect2name" &&
12522 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12523 then
12524 # We have reworked collect2
12526 else
12527 # We have old collect2
12528 hardcode_direct_CXX=unsupported
12529 # It fails to find uninstalled libraries when the uninstalled
12530 # path is not listed in the libpath. Setting hardcode_minus_L
12531 # to unsupported forces relinking
12532 hardcode_minus_L_CXX=yes
12533 hardcode_libdir_flag_spec_CXX='-L$libdir'
12534 hardcode_libdir_separator_CXX=
12536 esac
12537 shared_flag='-shared'
12538 if test "$aix_use_runtimelinking" = yes; then
12539 shared_flag="$shared_flag "'${wl}-G'
12541 else
12542 # not using gcc
12543 if test "$host_cpu" = ia64; then
12544 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12545 # chokes on -Wl,-G. The following line is correct:
12546 shared_flag='-G'
12547 else
12548 if test "$aix_use_runtimelinking" = yes; then
12549 shared_flag='${wl}-G'
12550 else
12551 shared_flag='${wl}-bM:SRE'
12556 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12557 # It seems that -bexpall does not export symbols beginning with
12558 # underscore (_), so it is better to generate a list of symbols to
12559 # export.
12560 always_export_symbols_CXX=yes
12561 if test "$aix_use_runtimelinking" = yes; then
12562 # Warning - without using the other runtime loading flags (-brtl),
12563 # -berok will link without error, but may produce a broken library.
12564 allow_undefined_flag_CXX='-berok'
12565 # Determine the default libpath from the value encoded in an empty
12566 # executable.
12567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568 /* end confdefs.h. */
12571 main ()
12575 return 0;
12577 _ACEOF
12578 if ac_fn_cxx_try_link "$LINENO"; then :
12580 lt_aix_libpath_sed='
12581 /Import File Strings/,/^$/ {
12582 /^0/ {
12583 s/^0 *\(.*\)$/\1/
12587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12588 # Check for a 64-bit object if we didn't find anything.
12589 if test -z "$aix_libpath"; then
12590 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12593 rm -f core conftest.err conftest.$ac_objext \
12594 conftest$ac_exeext conftest.$ac_ext
12595 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12597 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12599 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12600 else
12601 if test "$host_cpu" = ia64; then
12602 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12603 allow_undefined_flag_CXX="-z nodefs"
12604 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"
12605 else
12606 # Determine the default libpath from the value encoded in an
12607 # empty executable.
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12612 main ()
12616 return 0;
12618 _ACEOF
12619 if ac_fn_cxx_try_link "$LINENO"; then :
12621 lt_aix_libpath_sed='
12622 /Import File Strings/,/^$/ {
12623 /^0/ {
12624 s/^0 *\(.*\)$/\1/
12628 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12629 # Check for a 64-bit object if we didn't find anything.
12630 if test -z "$aix_libpath"; then
12631 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12634 rm -f core conftest.err conftest.$ac_objext \
12635 conftest$ac_exeext conftest.$ac_ext
12636 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12638 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12639 # Warning - without using the other run time loading flags,
12640 # -berok will link without error, but may produce a broken library.
12641 no_undefined_flag_CXX=' ${wl}-bernotok'
12642 allow_undefined_flag_CXX=' ${wl}-berok'
12643 if test "$with_gnu_ld" = yes; then
12644 # We only use this code for GNU lds that support --whole-archive.
12645 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12646 else
12647 # Exported symbols can be pulled into shared objects from archives
12648 whole_archive_flag_spec_CXX='$convenience'
12650 archive_cmds_need_lc_CXX=yes
12651 # This is similar to how AIX traditionally builds its shared
12652 # libraries.
12653 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'
12658 beos*)
12659 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12660 allow_undefined_flag_CXX=unsupported
12661 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12662 # support --undefined. This deserves some investigation. FIXME
12663 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12664 else
12665 ld_shlibs_CXX=no
12669 chorus*)
12670 case $cc_basename in
12672 # FIXME: insert proper C++ library support
12673 ld_shlibs_CXX=no
12675 esac
12678 cygwin* | mingw* | pw32* | cegcc*)
12679 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12680 # as there is no search path for DLLs.
12681 hardcode_libdir_flag_spec_CXX='-L$libdir'
12682 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12683 allow_undefined_flag_CXX=unsupported
12684 always_export_symbols_CXX=no
12685 enable_shared_with_static_runtimes_CXX=yes
12687 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12688 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'
12689 # If the export-symbols file already is a .def file (1st line
12690 # is EXPORTS), use it as is; otherwise, prepend...
12691 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12692 cp $export_symbols $output_objdir/$soname.def;
12693 else
12694 echo EXPORTS > $output_objdir/$soname.def;
12695 cat $export_symbols >> $output_objdir/$soname.def;
12697 $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'
12698 else
12699 ld_shlibs_CXX=no
12702 darwin* | rhapsody*)
12705 archive_cmds_need_lc_CXX=no
12706 hardcode_direct_CXX=no
12707 hardcode_automatic_CXX=yes
12708 hardcode_shlibpath_var_CXX=unsupported
12709 if test "$lt_cv_ld_force_load" = "yes"; then
12710 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12711 else
12712 whole_archive_flag_spec_CXX=''
12714 link_all_deplibs_CXX=yes
12715 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12716 case $cc_basename in
12717 ifort*) _lt_dar_can_shared=yes ;;
12718 *) _lt_dar_can_shared=$GCC ;;
12719 esac
12720 if test "$_lt_dar_can_shared" = "yes"; then
12721 output_verbose_link_cmd=func_echo_all
12722 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}"
12723 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12724 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}"
12725 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}"
12726 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12727 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}"
12728 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}"
12731 else
12732 ld_shlibs_CXX=no
12737 dgux*)
12738 case $cc_basename in
12739 ec++*)
12740 # FIXME: insert proper C++ library support
12741 ld_shlibs_CXX=no
12743 ghcx*)
12744 # Green Hills C++ Compiler
12745 # FIXME: insert proper C++ library support
12746 ld_shlibs_CXX=no
12749 # FIXME: insert proper C++ library support
12750 ld_shlibs_CXX=no
12752 esac
12755 freebsd2.*)
12756 # C++ shared libraries reported to be fairly broken before
12757 # switch to ELF
12758 ld_shlibs_CXX=no
12761 freebsd-elf*)
12762 archive_cmds_need_lc_CXX=no
12765 freebsd* | dragonfly*)
12766 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12767 # conventions
12768 ld_shlibs_CXX=yes
12771 gnu*)
12774 haiku*)
12775 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12776 link_all_deplibs_CXX=yes
12779 hpux9*)
12780 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12781 hardcode_libdir_separator_CXX=:
12782 export_dynamic_flag_spec_CXX='${wl}-E'
12783 hardcode_direct_CXX=yes
12784 hardcode_minus_L_CXX=yes # Not in the search PATH,
12785 # but as the default
12786 # location of the library.
12788 case $cc_basename in
12789 CC*)
12790 # FIXME: insert proper C++ library support
12791 ld_shlibs_CXX=no
12793 aCC*)
12794 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'
12795 # Commands to make compiler produce verbose output that lists
12796 # what "hidden" libraries, object files and flags are used when
12797 # linking a shared library.
12799 # There doesn't appear to be a way to prevent this compiler from
12800 # explicitly linking system object files so we need to strip them
12801 # from the output so that they don't get included in the library
12802 # dependencies.
12803 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; func_echo_all "$list"'
12806 if test "$GXX" = yes; then
12807 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'
12808 else
12809 # FIXME: insert proper C++ library support
12810 ld_shlibs_CXX=no
12813 esac
12816 hpux10*|hpux11*)
12817 if test $with_gnu_ld = no; then
12818 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12819 hardcode_libdir_separator_CXX=:
12821 case $host_cpu in
12822 hppa*64*|ia64*)
12825 export_dynamic_flag_spec_CXX='${wl}-E'
12827 esac
12829 case $host_cpu in
12830 hppa*64*|ia64*)
12831 hardcode_direct_CXX=no
12832 hardcode_shlibpath_var_CXX=no
12835 hardcode_direct_CXX=yes
12836 hardcode_direct_absolute_CXX=yes
12837 hardcode_minus_L_CXX=yes # Not in the search PATH,
12838 # but as the default
12839 # location of the library.
12841 esac
12843 case $cc_basename in
12844 CC*)
12845 # FIXME: insert proper C++ library support
12846 ld_shlibs_CXX=no
12848 aCC*)
12849 case $host_cpu in
12850 hppa*64*)
12851 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12853 ia64*)
12854 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12857 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12859 esac
12860 # Commands to make compiler produce verbose output that lists
12861 # what "hidden" libraries, object files and flags are used when
12862 # linking a shared library.
12864 # There doesn't appear to be a way to prevent this compiler from
12865 # explicitly linking system object files so we need to strip them
12866 # from the output so that they don't get included in the library
12867 # dependencies.
12868 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; func_echo_all "$list"'
12871 if test "$GXX" = yes; then
12872 if test $with_gnu_ld = no; then
12873 case $host_cpu in
12874 hppa*64*)
12875 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12877 ia64*)
12878 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12881 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'
12883 esac
12885 else
12886 # FIXME: insert proper C++ library support
12887 ld_shlibs_CXX=no
12890 esac
12893 interix[3-9]*)
12894 hardcode_direct_CXX=no
12895 hardcode_shlibpath_var_CXX=no
12896 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12897 export_dynamic_flag_spec_CXX='${wl}-E'
12898 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12899 # Instead, shared libraries are loaded at an image base (0x10000000 by
12900 # default) and relocated if they conflict, which is a slow very memory
12901 # consuming and fragmenting process. To avoid this, we pick a random,
12902 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12903 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12904 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'
12905 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'
12907 irix5* | irix6*)
12908 case $cc_basename in
12909 CC*)
12910 # SGI C++
12911 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12913 # Archives containing C++ object files must be created using
12914 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12915 # necessary to make sure instantiated templates are included
12916 # in the archive.
12917 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12920 if test "$GXX" = yes; then
12921 if test "$with_gnu_ld" = no; then
12922 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12923 else
12924 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12927 link_all_deplibs_CXX=yes
12929 esac
12930 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12931 hardcode_libdir_separator_CXX=:
12932 inherit_rpath_CXX=yes
12935 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12936 case $cc_basename in
12937 KCC*)
12938 # Kuck and Associates, Inc. (KAI) C++ Compiler
12940 # KCC will only create a shared library if the output file
12941 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12942 # to its proper name (with version) after linking.
12943 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'
12944 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'
12945 # Commands to make compiler produce verbose output that lists
12946 # what "hidden" libraries, object files and flags are used when
12947 # linking a shared library.
12949 # There doesn't appear to be a way to prevent this compiler from
12950 # explicitly linking system object files so we need to strip them
12951 # from the output so that they don't get included in the library
12952 # dependencies.
12953 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; func_echo_all "$list"'
12955 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12956 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12958 # Archives containing C++ object files must be created using
12959 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12960 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12962 icpc* | ecpc* )
12963 # Intel C++
12964 with_gnu_ld=yes
12965 # version 8.0 and above of icpc choke on multiply defined symbols
12966 # if we add $predep_objects and $postdep_objects, however 7.1 and
12967 # earlier do not add the objects themselves.
12968 case `$CC -V 2>&1` in
12969 *"Version 7."*)
12970 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12971 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'
12973 *) # Version 8.0 or newer
12974 tmp_idyn=
12975 case $host_cpu in
12976 ia64*) tmp_idyn=' -i_dynamic';;
12977 esac
12978 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12979 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'
12981 esac
12982 archive_cmds_need_lc_CXX=no
12983 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12984 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12985 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12987 pgCC* | pgcpp*)
12988 # Portland Group C++ compiler
12989 case `$CC -V` in
12990 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12991 prelink_cmds_CXX='tpldir=Template.dir~
12992 rm -rf $tpldir~
12993 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12994 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12995 old_archive_cmds_CXX='tpldir=Template.dir~
12996 rm -rf $tpldir~
12997 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12998 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12999 $RANLIB $oldlib'
13000 archive_cmds_CXX='tpldir=Template.dir~
13001 rm -rf $tpldir~
13002 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13003 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13004 archive_expsym_cmds_CXX='tpldir=Template.dir~
13005 rm -rf $tpldir~
13006 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13007 $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'
13009 *) # Version 6 and above use weak symbols
13010 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13011 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'
13013 esac
13015 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13016 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13017 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13019 cxx*)
13020 # Compaq C++
13021 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13022 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'
13024 runpath_var=LD_RUN_PATH
13025 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13026 hardcode_libdir_separator_CXX=:
13028 # Commands to make compiler produce verbose output that lists
13029 # what "hidden" libraries, object files and flags are used when
13030 # linking a shared library.
13032 # There doesn't appear to be a way to prevent this compiler from
13033 # explicitly linking system object files so we need to strip them
13034 # from the output so that they don't get included in the library
13035 # dependencies.
13036 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13038 xl* | mpixl* | bgxl*)
13039 # IBM XL 8.0 on PPC, with GNU ld
13040 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13041 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13042 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13043 if test "x$supports_anon_versioning" = xyes; then
13044 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13045 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13046 echo "local: *; };" >> $output_objdir/$libname.ver~
13047 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13051 case `$CC -V 2>&1 | sed 5q` in
13052 *Sun\ C*)
13053 # Sun C++ 5.9
13054 no_undefined_flag_CXX=' -zdefs'
13055 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13056 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'
13057 hardcode_libdir_flag_spec_CXX='-R$libdir'
13058 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13059 compiler_needs_object_CXX=yes
13061 # Not sure whether something based on
13062 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13063 # would be better.
13064 output_verbose_link_cmd='func_echo_all'
13066 # Archives containing C++ object files must be created using
13067 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13068 # necessary to make sure instantiated templates are included
13069 # in the archive.
13070 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13072 esac
13074 esac
13077 lynxos*)
13078 # FIXME: insert proper C++ library support
13079 ld_shlibs_CXX=no
13082 m88k*)
13083 # FIXME: insert proper C++ library support
13084 ld_shlibs_CXX=no
13087 mvs*)
13088 case $cc_basename in
13089 cxx*)
13090 # FIXME: insert proper C++ library support
13091 ld_shlibs_CXX=no
13094 # FIXME: insert proper C++ library support
13095 ld_shlibs_CXX=no
13097 esac
13100 netbsd*)
13101 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13102 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13103 wlarc=
13104 hardcode_libdir_flag_spec_CXX='-R$libdir'
13105 hardcode_direct_CXX=yes
13106 hardcode_shlibpath_var_CXX=no
13108 # Workaround some broken pre-1.5 toolchains
13109 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13112 *nto* | *qnx*)
13113 ld_shlibs_CXX=yes
13116 openbsd2*)
13117 # C++ shared libraries are fairly broken
13118 ld_shlibs_CXX=no
13121 openbsd*)
13122 if test -f /usr/libexec/ld.so; then
13123 hardcode_direct_CXX=yes
13124 hardcode_shlibpath_var_CXX=no
13125 hardcode_direct_absolute_CXX=yes
13126 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13127 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13128 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13129 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13130 export_dynamic_flag_spec_CXX='${wl}-E'
13131 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13133 output_verbose_link_cmd=func_echo_all
13134 else
13135 ld_shlibs_CXX=no
13139 osf3* | osf4* | osf5*)
13140 case $cc_basename in
13141 KCC*)
13142 # Kuck and Associates, Inc. (KAI) C++ Compiler
13144 # KCC will only create a shared library if the output file
13145 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13146 # to its proper name (with version) after linking.
13147 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'
13149 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13150 hardcode_libdir_separator_CXX=:
13152 # Archives containing C++ object files must be created using
13153 # the KAI C++ compiler.
13154 case $host in
13155 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13156 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13157 esac
13159 RCC*)
13160 # Rational C++ 2.4.1
13161 # FIXME: insert proper C++ library support
13162 ld_shlibs_CXX=no
13164 cxx*)
13165 case $host in
13166 osf3*)
13167 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13168 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13169 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13172 allow_undefined_flag_CXX=' -expect_unresolved \*'
13173 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13174 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13175 echo "-hidden">> $lib.exp~
13176 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13177 $RM $lib.exp'
13178 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13180 esac
13182 hardcode_libdir_separator_CXX=:
13184 # Commands to make compiler produce verbose output that lists
13185 # what "hidden" libraries, object files and flags are used when
13186 # linking a shared library.
13188 # There doesn't appear to be a way to prevent this compiler from
13189 # explicitly linking system object files so we need to strip them
13190 # from the output so that they don't get included in the library
13191 # dependencies.
13192 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13195 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13196 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13197 case $host in
13198 osf3*)
13199 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13202 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13204 esac
13206 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13207 hardcode_libdir_separator_CXX=:
13209 # Commands to make compiler produce verbose output that lists
13210 # what "hidden" libraries, object files and flags are used when
13211 # linking a shared library.
13212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13214 else
13215 # FIXME: insert proper C++ library support
13216 ld_shlibs_CXX=no
13219 esac
13222 psos*)
13223 # FIXME: insert proper C++ library support
13224 ld_shlibs_CXX=no
13227 sunos4*)
13228 case $cc_basename in
13229 CC*)
13230 # Sun C++ 4.x
13231 # FIXME: insert proper C++ library support
13232 ld_shlibs_CXX=no
13234 lcc*)
13235 # Lucid
13236 # FIXME: insert proper C++ library support
13237 ld_shlibs_CXX=no
13240 # FIXME: insert proper C++ library support
13241 ld_shlibs_CXX=no
13243 esac
13246 solaris*)
13247 case $cc_basename in
13248 CC*)
13249 # Sun C++ 4.2, 5.x and Centerline C++
13250 archive_cmds_need_lc_CXX=yes
13251 no_undefined_flag_CXX=' -zdefs'
13252 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13253 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13254 $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'
13256 hardcode_libdir_flag_spec_CXX='-R$libdir'
13257 hardcode_shlibpath_var_CXX=no
13258 case $host_os in
13259 solaris2.[0-5] | solaris2.[0-5].*) ;;
13261 # The compiler driver will combine and reorder linker options,
13262 # but understands `-z linker_flag'.
13263 # Supported since Solaris 2.6 (maybe 2.5.1?)
13264 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13266 esac
13267 link_all_deplibs_CXX=yes
13269 output_verbose_link_cmd='func_echo_all'
13271 # Archives containing C++ object files must be created using
13272 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13273 # necessary to make sure instantiated templates are included
13274 # in the archive.
13275 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13277 gcx*)
13278 # Green Hills C++ Compiler
13279 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13281 # The C++ compiler must be used to create the archive.
13282 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13285 # GNU C++ compiler with Solaris linker
13286 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13287 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13288 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13289 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13290 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13291 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13293 # Commands to make compiler produce verbose output that lists
13294 # what "hidden" libraries, object files and flags are used when
13295 # linking a shared library.
13296 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13297 else
13298 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13299 # platform.
13300 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13301 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13302 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13304 # Commands to make compiler produce verbose output that lists
13305 # what "hidden" libraries, object files and flags are used when
13306 # linking a shared library.
13307 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13310 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13311 case $host_os in
13312 solaris2.[0-5] | solaris2.[0-5].*) ;;
13314 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13316 esac
13319 esac
13322 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13323 no_undefined_flag_CXX='${wl}-z,text'
13324 archive_cmds_need_lc_CXX=no
13325 hardcode_shlibpath_var_CXX=no
13326 runpath_var='LD_RUN_PATH'
13328 case $cc_basename in
13329 CC*)
13330 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13331 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13334 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13335 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13337 esac
13340 sysv5* | sco3.2v5* | sco5v6*)
13341 # Note: We can NOT use -z defs as we might desire, because we do not
13342 # link with -lc, and that would cause any symbols used from libc to
13343 # always be unresolved, which means just about no library would
13344 # ever link correctly. If we're not using GNU ld we use -z text
13345 # though, which does catch some bad symbols but isn't as heavy-handed
13346 # as -z defs.
13347 no_undefined_flag_CXX='${wl}-z,text'
13348 allow_undefined_flag_CXX='${wl}-z,nodefs'
13349 archive_cmds_need_lc_CXX=no
13350 hardcode_shlibpath_var_CXX=no
13351 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13352 hardcode_libdir_separator_CXX=':'
13353 link_all_deplibs_CXX=yes
13354 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13355 runpath_var='LD_RUN_PATH'
13357 case $cc_basename in
13358 CC*)
13359 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13360 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13361 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13362 '"$old_archive_cmds_CXX"
13363 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13364 '"$reload_cmds_CXX"
13367 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13368 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13370 esac
13373 tandem*)
13374 case $cc_basename in
13375 NCC*)
13376 # NonStop-UX NCC 3.20
13377 # FIXME: insert proper C++ library support
13378 ld_shlibs_CXX=no
13381 # FIXME: insert proper C++ library support
13382 ld_shlibs_CXX=no
13384 esac
13387 vxworks*)
13388 # FIXME: insert proper C++ library support
13389 ld_shlibs_CXX=no
13393 # FIXME: insert proper C++ library support
13394 ld_shlibs_CXX=no
13396 esac
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13399 $as_echo "$ld_shlibs_CXX" >&6; }
13400 test "$ld_shlibs_CXX" = no && can_build_shared=no
13402 GCC_CXX="$GXX"
13403 LD_CXX="$LD"
13405 ## CAVEAT EMPTOR:
13406 ## There is no encapsulation within the following macros, do not change
13407 ## the running order or otherwise move them around unless you know exactly
13408 ## what you are doing...
13409 # Dependencies to place before and after the object being linked:
13410 predep_objects_CXX=
13411 postdep_objects_CXX=
13412 predeps_CXX=
13413 postdeps_CXX=
13414 compiler_lib_search_path_CXX=
13416 cat > conftest.$ac_ext <<_LT_EOF
13417 class Foo
13419 public:
13420 Foo (void) { a = 0; }
13421 private:
13422 int a;
13424 _LT_EOF
13426 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13427 (eval $ac_compile) 2>&5
13428 ac_status=$?
13429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13430 test $ac_status = 0; }; then
13431 # Parse the compiler output and extract the necessary
13432 # objects, libraries and library flags.
13434 # Sentinel used to keep track of whether or not we are before
13435 # the conftest object file.
13436 pre_test_object_deps_done=no
13438 for p in `eval "$output_verbose_link_cmd"`; do
13439 case $p in
13441 -L* | -R* | -l*)
13442 # Some compilers place space between "-{L,R}" and the path.
13443 # Remove the space.
13444 if test $p = "-L" ||
13445 test $p = "-R"; then
13446 prev=$p
13447 continue
13448 else
13449 prev=
13452 if test "$pre_test_object_deps_done" = no; then
13453 case $p in
13454 -L* | -R*)
13455 # Internal compiler library paths should come after those
13456 # provided the user. The postdeps already come after the
13457 # user supplied libs so there is no need to process them.
13458 if test -z "$compiler_lib_search_path_CXX"; then
13459 compiler_lib_search_path_CXX="${prev}${p}"
13460 else
13461 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13464 # The "-l" case would never come before the object being
13465 # linked, so don't bother handling this case.
13466 esac
13467 else
13468 if test -z "$postdeps_CXX"; then
13469 postdeps_CXX="${prev}${p}"
13470 else
13471 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13476 *.$objext)
13477 # This assumes that the test object file only shows up
13478 # once in the compiler output.
13479 if test "$p" = "conftest.$objext"; then
13480 pre_test_object_deps_done=yes
13481 continue
13484 if test "$pre_test_object_deps_done" = no; then
13485 if test -z "$predep_objects_CXX"; then
13486 predep_objects_CXX="$p"
13487 else
13488 predep_objects_CXX="$predep_objects_CXX $p"
13490 else
13491 if test -z "$postdep_objects_CXX"; then
13492 postdep_objects_CXX="$p"
13493 else
13494 postdep_objects_CXX="$postdep_objects_CXX $p"
13499 *) ;; # Ignore the rest.
13501 esac
13502 done
13504 # Clean up.
13505 rm -f a.out a.exe
13506 else
13507 echo "libtool.m4: error: problem compiling CXX test program"
13510 $RM -f confest.$objext
13512 # PORTME: override above test on systems where it is broken
13513 case $host_os in
13514 interix[3-9]*)
13515 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13516 # hack all around it, let's just trust "g++" to DTRT.
13517 predep_objects_CXX=
13518 postdep_objects_CXX=
13519 postdeps_CXX=
13522 linux*)
13523 case `$CC -V 2>&1 | sed 5q` in
13524 *Sun\ C*)
13525 # Sun C++ 5.9
13527 # The more standards-conforming stlport4 library is
13528 # incompatible with the Cstd library. Avoid specifying
13529 # it if it's in CXXFLAGS. Ignore libCrun as
13530 # -library=stlport4 depends on it.
13531 case " $CXX $CXXFLAGS " in
13532 *" -library=stlport4 "*)
13533 solaris_use_stlport4=yes
13535 esac
13537 if test "$solaris_use_stlport4" != yes; then
13538 postdeps_CXX='-library=Cstd -library=Crun'
13541 esac
13544 solaris*)
13545 case $cc_basename in
13546 CC*)
13547 # The more standards-conforming stlport4 library is
13548 # incompatible with the Cstd library. Avoid specifying
13549 # it if it's in CXXFLAGS. Ignore libCrun as
13550 # -library=stlport4 depends on it.
13551 case " $CXX $CXXFLAGS " in
13552 *" -library=stlport4 "*)
13553 solaris_use_stlport4=yes
13555 esac
13557 # Adding this requires a known-good setup of shared libraries for
13558 # Sun compiler versions before 5.6, else PIC objects from an old
13559 # archive will be linked into the output, leading to subtle bugs.
13560 if test "$solaris_use_stlport4" != yes; then
13561 postdeps_CXX='-library=Cstd -library=Crun'
13564 esac
13566 esac
13569 case " $postdeps_CXX " in
13570 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13571 esac
13572 compiler_lib_search_dirs_CXX=
13573 if test -n "${compiler_lib_search_path_CXX}"; then
13574 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13607 lt_prog_compiler_wl_CXX=
13608 lt_prog_compiler_pic_CXX=
13609 lt_prog_compiler_static_CXX=
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13612 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13614 # C++ specific cases for pic, static, wl, etc.
13615 if test "$GXX" = yes; then
13616 lt_prog_compiler_wl_CXX='-Wl,'
13617 lt_prog_compiler_static_CXX='-static'
13619 case $host_os in
13620 aix*)
13621 # All AIX code is PIC.
13622 if test "$host_cpu" = ia64; then
13623 # AIX 5 now supports IA64 processor
13624 lt_prog_compiler_static_CXX='-Bstatic'
13628 amigaos*)
13629 case $host_cpu in
13630 powerpc)
13631 # see comment about AmigaOS4 .so support
13632 lt_prog_compiler_pic_CXX='-fPIC'
13634 m68k)
13635 # FIXME: we need at least 68020 code to build shared libraries, but
13636 # adding the `-m68020' flag to GCC prevents building anything better,
13637 # like `-m68040'.
13638 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13640 esac
13643 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13644 # PIC is the default for these OSes.
13646 mingw* | cygwin* | os2* | pw32* | cegcc*)
13647 # This hack is so that the source file can tell whether it is being
13648 # built for inclusion in a dll (and should export symbols for example).
13649 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13650 # (--disable-auto-import) libraries
13651 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13653 darwin* | rhapsody*)
13654 # PIC is the default on this platform
13655 # Common symbols not allowed in MH_DYLIB files
13656 lt_prog_compiler_pic_CXX='-fno-common'
13658 *djgpp*)
13659 # DJGPP does not support shared libraries at all
13660 lt_prog_compiler_pic_CXX=
13662 haiku*)
13663 # PIC is the default for Haiku.
13664 # The "-static" flag exists, but is broken.
13665 lt_prog_compiler_static_CXX=
13667 interix[3-9]*)
13668 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13669 # Instead, we relocate shared libraries at runtime.
13671 sysv4*MP*)
13672 if test -d /usr/nec; then
13673 lt_prog_compiler_pic_CXX=-Kconform_pic
13676 hpux*)
13677 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13678 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13679 # sets the default TLS model and affects inlining.
13680 case $host_cpu in
13681 hppa*64*)
13684 lt_prog_compiler_pic_CXX='-fPIC'
13686 esac
13688 *qnx* | *nto*)
13689 # QNX uses GNU C++, but need to define -shared option too, otherwise
13690 # it will coredump.
13691 lt_prog_compiler_pic_CXX='-fPIC -shared'
13694 lt_prog_compiler_pic_CXX='-fPIC'
13696 esac
13697 else
13698 case $host_os in
13699 aix[4-9]*)
13700 # All AIX code is PIC.
13701 if test "$host_cpu" = ia64; then
13702 # AIX 5 now supports IA64 processor
13703 lt_prog_compiler_static_CXX='-Bstatic'
13704 else
13705 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13708 chorus*)
13709 case $cc_basename in
13710 cxch68*)
13711 # Green Hills C++ Compiler
13712 # _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"
13714 esac
13716 dgux*)
13717 case $cc_basename in
13718 ec++*)
13719 lt_prog_compiler_pic_CXX='-KPIC'
13721 ghcx*)
13722 # Green Hills C++ Compiler
13723 lt_prog_compiler_pic_CXX='-pic'
13727 esac
13729 freebsd* | dragonfly*)
13730 # FreeBSD uses GNU C++
13732 hpux9* | hpux10* | hpux11*)
13733 case $cc_basename in
13734 CC*)
13735 lt_prog_compiler_wl_CXX='-Wl,'
13736 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13737 if test "$host_cpu" != ia64; then
13738 lt_prog_compiler_pic_CXX='+Z'
13741 aCC*)
13742 lt_prog_compiler_wl_CXX='-Wl,'
13743 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13744 case $host_cpu in
13745 hppa*64*|ia64*)
13746 # +Z the default
13749 lt_prog_compiler_pic_CXX='+Z'
13751 esac
13755 esac
13757 interix*)
13758 # This is c89, which is MS Visual C++ (no shared libs)
13759 # Anyone wants to do a port?
13761 irix5* | irix6* | nonstopux*)
13762 case $cc_basename in
13763 CC*)
13764 lt_prog_compiler_wl_CXX='-Wl,'
13765 lt_prog_compiler_static_CXX='-non_shared'
13766 # CC pic flag -KPIC is the default.
13770 esac
13772 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13773 case $cc_basename in
13774 KCC*)
13775 # KAI C++ Compiler
13776 lt_prog_compiler_wl_CXX='--backend -Wl,'
13777 lt_prog_compiler_pic_CXX='-fPIC'
13779 ecpc* )
13780 # old Intel C++ for x86_64 which still supported -KPIC.
13781 lt_prog_compiler_wl_CXX='-Wl,'
13782 lt_prog_compiler_pic_CXX='-KPIC'
13783 lt_prog_compiler_static_CXX='-static'
13785 icpc* )
13786 # Intel C++, used to be incompatible with GCC.
13787 # ICC 10 doesn't accept -KPIC any more.
13788 lt_prog_compiler_wl_CXX='-Wl,'
13789 lt_prog_compiler_pic_CXX='-fPIC'
13790 lt_prog_compiler_static_CXX='-static'
13792 pgCC* | pgcpp*)
13793 # Portland Group C++ compiler
13794 lt_prog_compiler_wl_CXX='-Wl,'
13795 lt_prog_compiler_pic_CXX='-fpic'
13796 lt_prog_compiler_static_CXX='-Bstatic'
13798 cxx*)
13799 # Compaq C++
13800 # Make sure the PIC flag is empty. It appears that all Alpha
13801 # Linux and Compaq Tru64 Unix objects are PIC.
13802 lt_prog_compiler_pic_CXX=
13803 lt_prog_compiler_static_CXX='-non_shared'
13805 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13806 # IBM XL 8.0, 9.0 on PPC and BlueGene
13807 lt_prog_compiler_wl_CXX='-Wl,'
13808 lt_prog_compiler_pic_CXX='-qpic'
13809 lt_prog_compiler_static_CXX='-qstaticlink'
13812 case `$CC -V 2>&1 | sed 5q` in
13813 *Sun\ C*)
13814 # Sun C++ 5.9
13815 lt_prog_compiler_pic_CXX='-KPIC'
13816 lt_prog_compiler_static_CXX='-Bstatic'
13817 lt_prog_compiler_wl_CXX='-Qoption ld '
13819 esac
13821 esac
13823 lynxos*)
13825 m88k*)
13827 mvs*)
13828 case $cc_basename in
13829 cxx*)
13830 lt_prog_compiler_pic_CXX='-W c,exportall'
13834 esac
13836 netbsd*)
13838 *qnx* | *nto*)
13839 # QNX uses GNU C++, but need to define -shared option too, otherwise
13840 # it will coredump.
13841 lt_prog_compiler_pic_CXX='-fPIC -shared'
13843 osf3* | osf4* | osf5*)
13844 case $cc_basename in
13845 KCC*)
13846 lt_prog_compiler_wl_CXX='--backend -Wl,'
13848 RCC*)
13849 # Rational C++ 2.4.1
13850 lt_prog_compiler_pic_CXX='-pic'
13852 cxx*)
13853 # Digital/Compaq C++
13854 lt_prog_compiler_wl_CXX='-Wl,'
13855 # Make sure the PIC flag is empty. It appears that all Alpha
13856 # Linux and Compaq Tru64 Unix objects are PIC.
13857 lt_prog_compiler_pic_CXX=
13858 lt_prog_compiler_static_CXX='-non_shared'
13862 esac
13864 psos*)
13866 solaris*)
13867 case $cc_basename in
13868 CC*)
13869 # Sun C++ 4.2, 5.x and Centerline C++
13870 lt_prog_compiler_pic_CXX='-KPIC'
13871 lt_prog_compiler_static_CXX='-Bstatic'
13872 lt_prog_compiler_wl_CXX='-Qoption ld '
13874 gcx*)
13875 # Green Hills C++ Compiler
13876 lt_prog_compiler_pic_CXX='-PIC'
13880 esac
13882 sunos4*)
13883 case $cc_basename in
13884 CC*)
13885 # Sun C++ 4.x
13886 lt_prog_compiler_pic_CXX='-pic'
13887 lt_prog_compiler_static_CXX='-Bstatic'
13889 lcc*)
13890 # Lucid
13891 lt_prog_compiler_pic_CXX='-pic'
13895 esac
13897 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13898 case $cc_basename in
13899 CC*)
13900 lt_prog_compiler_wl_CXX='-Wl,'
13901 lt_prog_compiler_pic_CXX='-KPIC'
13902 lt_prog_compiler_static_CXX='-Bstatic'
13904 esac
13906 tandem*)
13907 case $cc_basename in
13908 NCC*)
13909 # NonStop-UX NCC 3.20
13910 lt_prog_compiler_pic_CXX='-KPIC'
13914 esac
13916 vxworks*)
13919 lt_prog_compiler_can_build_shared_CXX=no
13921 esac
13924 case $host_os in
13925 # For platforms which do not support PIC, -DPIC is meaningless:
13926 *djgpp*)
13927 lt_prog_compiler_pic_CXX=
13930 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13932 esac
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13934 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13939 # Check to make sure the PIC flag actually works.
13941 if test -n "$lt_prog_compiler_pic_CXX"; then
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13943 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13944 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13945 $as_echo_n "(cached) " >&6
13946 else
13947 lt_cv_prog_compiler_pic_works_CXX=no
13948 ac_outfile=conftest.$ac_objext
13949 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13950 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13951 # Insert the option either (1) after the last *FLAGS variable, or
13952 # (2) before a word containing "conftest.", or (3) at the end.
13953 # Note that $ac_compile itself does not contain backslashes and begins
13954 # with a dollar sign (not a hyphen), so the echo should work correctly.
13955 # The option is referenced via a variable to avoid confusing sed.
13956 lt_compile=`echo "$ac_compile" | $SED \
13957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13959 -e 's:$: $lt_compiler_flag:'`
13960 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13961 (eval "$lt_compile" 2>conftest.err)
13962 ac_status=$?
13963 cat conftest.err >&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 if (exit $ac_status) && test -s "$ac_outfile"; then
13966 # The compiler can only warn and ignore the option if not recognized
13967 # So say no if there are warnings other than the usual output.
13968 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13970 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13971 lt_cv_prog_compiler_pic_works_CXX=yes
13974 $RM conftest*
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13978 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13980 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13981 case $lt_prog_compiler_pic_CXX in
13982 "" | " "*) ;;
13983 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13984 esac
13985 else
13986 lt_prog_compiler_pic_CXX=
13987 lt_prog_compiler_can_build_shared_CXX=no
13995 # Check to make sure the static flag actually works.
13997 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13999 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14000 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14001 $as_echo_n "(cached) " >&6
14002 else
14003 lt_cv_prog_compiler_static_works_CXX=no
14004 save_LDFLAGS="$LDFLAGS"
14005 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14006 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14007 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14008 # The linker can only warn and ignore the option if not recognized
14009 # So say no if there are warnings
14010 if test -s conftest.err; then
14011 # Append any errors to the config.log.
14012 cat conftest.err 1>&5
14013 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14014 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14015 if diff conftest.exp conftest.er2 >/dev/null; then
14016 lt_cv_prog_compiler_static_works_CXX=yes
14018 else
14019 lt_cv_prog_compiler_static_works_CXX=yes
14022 $RM -r conftest*
14023 LDFLAGS="$save_LDFLAGS"
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14027 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14029 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14031 else
14032 lt_prog_compiler_static_CXX=
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14039 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14040 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14041 $as_echo_n "(cached) " >&6
14042 else
14043 lt_cv_prog_compiler_c_o_CXX=no
14044 $RM -r conftest 2>/dev/null
14045 mkdir conftest
14046 cd conftest
14047 mkdir out
14048 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14050 lt_compiler_flag="-o out/conftest2.$ac_objext"
14051 # Insert the option either (1) after the last *FLAGS variable, or
14052 # (2) before a word containing "conftest.", or (3) at the end.
14053 # Note that $ac_compile itself does not contain backslashes and begins
14054 # with a dollar sign (not a hyphen), so the echo should work correctly.
14055 lt_compile=`echo "$ac_compile" | $SED \
14056 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14058 -e 's:$: $lt_compiler_flag:'`
14059 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14060 (eval "$lt_compile" 2>out/conftest.err)
14061 ac_status=$?
14062 cat out/conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14065 then
14066 # The compiler can only warn and ignore the option if not recognized
14067 # So say no if there are warnings
14068 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14069 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14070 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14071 lt_cv_prog_compiler_c_o_CXX=yes
14074 chmod u+w . 2>&5
14075 $RM conftest*
14076 # SGI C++ compiler will create directory out/ii_files/ for
14077 # template instantiation
14078 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14079 $RM out/* && rmdir out
14080 cd ..
14081 $RM -r conftest
14082 $RM conftest*
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14086 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14091 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14092 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14093 $as_echo_n "(cached) " >&6
14094 else
14095 lt_cv_prog_compiler_c_o_CXX=no
14096 $RM -r conftest 2>/dev/null
14097 mkdir conftest
14098 cd conftest
14099 mkdir out
14100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14102 lt_compiler_flag="-o out/conftest2.$ac_objext"
14103 # Insert the option either (1) after the last *FLAGS variable, or
14104 # (2) before a word containing "conftest.", or (3) at the end.
14105 # Note that $ac_compile itself does not contain backslashes and begins
14106 # with a dollar sign (not a hyphen), so the echo should work correctly.
14107 lt_compile=`echo "$ac_compile" | $SED \
14108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14110 -e 's:$: $lt_compiler_flag:'`
14111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14112 (eval "$lt_compile" 2>out/conftest.err)
14113 ac_status=$?
14114 cat out/conftest.err >&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14117 then
14118 # The compiler can only warn and ignore the option if not recognized
14119 # So say no if there are warnings
14120 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14121 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14122 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14123 lt_cv_prog_compiler_c_o_CXX=yes
14126 chmod u+w . 2>&5
14127 $RM conftest*
14128 # SGI C++ compiler will create directory out/ii_files/ for
14129 # template instantiation
14130 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14131 $RM out/* && rmdir out
14132 cd ..
14133 $RM -r conftest
14134 $RM conftest*
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14138 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14143 hard_links="nottested"
14144 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14145 # do not overwrite the value of need_locks provided by the user
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14147 $as_echo_n "checking if we can lock with hard links... " >&6; }
14148 hard_links=yes
14149 $RM conftest*
14150 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14151 touch conftest.a
14152 ln conftest.a conftest.b 2>&5 || hard_links=no
14153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14155 $as_echo "$hard_links" >&6; }
14156 if test "$hard_links" = no; then
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14158 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14159 need_locks=warn
14161 else
14162 need_locks=no
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14168 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14170 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14171 case $host_os in
14172 aix[4-9]*)
14173 # If we're using GNU nm, then we don't want the "-C" option.
14174 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14175 # Also, AIX nm treats weak defined symbols like other global defined
14176 # symbols, whereas GNU nm marks them as "W".
14177 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14178 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14179 else
14180 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'
14183 pw32*)
14184 export_symbols_cmds_CXX="$ltdll_cmds"
14186 cygwin* | mingw* | cegcc*)
14187 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'
14190 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14192 esac
14193 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14196 $as_echo "$ld_shlibs_CXX" >&6; }
14197 test "$ld_shlibs_CXX" = no && can_build_shared=no
14199 with_gnu_ld_CXX=$with_gnu_ld
14207 # Do we need to explicitly link libc?
14209 case "x$archive_cmds_need_lc_CXX" in
14210 x|xyes)
14211 # Assume -lc should be added
14212 archive_cmds_need_lc_CXX=yes
14214 if test "$enable_shared" = yes && test "$GCC" = yes; then
14215 case $archive_cmds_CXX in
14216 *'~'*)
14217 # FIXME: we may have to deal with multi-command sequences.
14219 '$CC '*)
14220 # Test whether the compiler implicitly links with -lc since on some
14221 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14222 # to ld, don't add -lc before -lgcc.
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14224 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14225 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14226 $as_echo_n "(cached) " >&6
14227 else
14228 $RM conftest*
14229 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14232 (eval $ac_compile) 2>&5
14233 ac_status=$?
14234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14235 test $ac_status = 0; } 2>conftest.err; then
14236 soname=conftest
14237 lib=conftest
14238 libobjs=conftest.$ac_objext
14239 deplibs=
14240 wl=$lt_prog_compiler_wl_CXX
14241 pic_flag=$lt_prog_compiler_pic_CXX
14242 compiler_flags=-v
14243 linker_flags=-v
14244 verstring=
14245 output_objdir=.
14246 libname=conftest
14247 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14248 allow_undefined_flag_CXX=
14249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14250 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14251 ac_status=$?
14252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14253 test $ac_status = 0; }
14254 then
14255 lt_cv_archive_cmds_need_lc_CXX=no
14256 else
14257 lt_cv_archive_cmds_need_lc_CXX=yes
14259 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14260 else
14261 cat conftest.err 1>&5
14263 $RM conftest*
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14267 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14268 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14270 esac
14273 esac
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14339 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14341 library_names_spec=
14342 libname_spec='lib$name'
14343 soname_spec=
14344 shrext_cmds=".so"
14345 postinstall_cmds=
14346 postuninstall_cmds=
14347 finish_cmds=
14348 finish_eval=
14349 shlibpath_var=
14350 shlibpath_overrides_runpath=unknown
14351 version_type=none
14352 dynamic_linker="$host_os ld.so"
14353 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14354 need_lib_prefix=unknown
14355 hardcode_into_libs=no
14357 # when you set need_version to no, make sure it does not cause -set_version
14358 # flags to be left without arguments
14359 need_version=unknown
14361 case $host_os in
14362 aix3*)
14363 version_type=linux
14364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14365 shlibpath_var=LIBPATH
14367 # AIX 3 has no versioning support, so we append a major version to the name.
14368 soname_spec='${libname}${release}${shared_ext}$major'
14371 aix[4-9]*)
14372 version_type=linux
14373 need_lib_prefix=no
14374 need_version=no
14375 hardcode_into_libs=yes
14376 if test "$host_cpu" = ia64; then
14377 # AIX 5 supports IA64
14378 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14379 shlibpath_var=LD_LIBRARY_PATH
14380 else
14381 # With GCC up to 2.95.x, collect2 would create an import file
14382 # for dependence libraries. The import file would start with
14383 # the line `#! .'. This would cause the generated library to
14384 # depend on `.', always an invalid library. This was fixed in
14385 # development snapshots of GCC prior to 3.0.
14386 case $host_os in
14387 aix4 | aix4.[01] | aix4.[01].*)
14388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14389 echo ' yes '
14390 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14392 else
14393 can_build_shared=no
14396 esac
14397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14398 # soname into executable. Probably we can add versioning support to
14399 # collect2, so additional links can be useful in future.
14400 if test "$aix_use_runtimelinking" = yes; then
14401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14402 # instead of lib<name>.a to let people know that these are not
14403 # typical AIX shared libraries.
14404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14405 else
14406 # We preserve .a as extension for shared libraries through AIX4.2
14407 # and later when we are not doing run time linking.
14408 library_names_spec='${libname}${release}.a $libname.a'
14409 soname_spec='${libname}${release}${shared_ext}$major'
14411 shlibpath_var=LIBPATH
14415 amigaos*)
14416 case $host_cpu in
14417 powerpc)
14418 # Since July 2007 AmigaOS4 officially supports .so libraries.
14419 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14422 m68k)
14423 library_names_spec='$libname.ixlibrary $libname.a'
14424 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14425 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
14427 esac
14430 beos*)
14431 library_names_spec='${libname}${shared_ext}'
14432 dynamic_linker="$host_os ld.so"
14433 shlibpath_var=LIBRARY_PATH
14436 bsdi[45]*)
14437 version_type=linux
14438 need_version=no
14439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14440 soname_spec='${libname}${release}${shared_ext}$major'
14441 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14442 shlibpath_var=LD_LIBRARY_PATH
14443 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14444 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14445 # the default ld.so.conf also contains /usr/contrib/lib and
14446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14447 # libtool to hard-code these into programs
14450 cygwin* | mingw* | pw32* | cegcc*)
14451 version_type=windows
14452 shrext_cmds=".dll"
14453 need_version=no
14454 need_lib_prefix=no
14456 case $GCC,$host_os in
14457 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14458 library_names_spec='$libname.dll.a'
14459 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14460 postinstall_cmds='base_file=`basename \${file}`~
14461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14462 dldir=$destdir/`dirname \$dlpath`~
14463 test -d \$dldir || mkdir -p \$dldir~
14464 $install_prog $dir/$dlname \$dldir/$dlname~
14465 chmod a+x \$dldir/$dlname~
14466 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14467 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14469 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14470 dlpath=$dir/\$dldll~
14471 $RM \$dlpath'
14472 shlibpath_overrides_runpath=yes
14474 case $host_os in
14475 cygwin*)
14476 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14477 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14480 mingw* | cegcc*)
14481 # MinGW DLLs use traditional 'lib' prefix
14482 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14484 pw32*)
14485 # pw32 DLLs use 'pw' prefix rather than 'lib'
14486 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14488 esac
14492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14494 esac
14495 dynamic_linker='Win32 ld.exe'
14496 # FIXME: first we should search . and the directory the executable is in
14497 shlibpath_var=PATH
14500 darwin* | rhapsody*)
14501 dynamic_linker="$host_os dyld"
14502 version_type=darwin
14503 need_lib_prefix=no
14504 need_version=no
14505 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14506 soname_spec='${libname}${release}${major}$shared_ext'
14507 shlibpath_overrides_runpath=yes
14508 shlibpath_var=DYLD_LIBRARY_PATH
14509 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14511 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14514 dgux*)
14515 version_type=linux
14516 need_lib_prefix=no
14517 need_version=no
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14519 soname_spec='${libname}${release}${shared_ext}$major'
14520 shlibpath_var=LD_LIBRARY_PATH
14523 freebsd* | dragonfly*)
14524 # DragonFly does not have aout. When/if they implement a new
14525 # versioning mechanism, adjust this.
14526 if test -x /usr/bin/objformat; then
14527 objformat=`/usr/bin/objformat`
14528 else
14529 case $host_os in
14530 freebsd[23].*) objformat=aout ;;
14531 *) objformat=elf ;;
14532 esac
14534 version_type=freebsd-$objformat
14535 case $version_type in
14536 freebsd-elf*)
14537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14538 need_version=no
14539 need_lib_prefix=no
14541 freebsd-*)
14542 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14543 need_version=yes
14545 esac
14546 shlibpath_var=LD_LIBRARY_PATH
14547 case $host_os in
14548 freebsd2.*)
14549 shlibpath_overrides_runpath=yes
14551 freebsd3.[01]* | freebsdelf3.[01]*)
14552 shlibpath_overrides_runpath=yes
14553 hardcode_into_libs=yes
14555 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14556 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14557 shlibpath_overrides_runpath=no
14558 hardcode_into_libs=yes
14560 *) # from 4.6 on, and DragonFly
14561 shlibpath_overrides_runpath=yes
14562 hardcode_into_libs=yes
14564 esac
14567 gnu*)
14568 version_type=linux
14569 need_lib_prefix=no
14570 need_version=no
14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14572 soname_spec='${libname}${release}${shared_ext}$major'
14573 shlibpath_var=LD_LIBRARY_PATH
14574 hardcode_into_libs=yes
14577 haiku*)
14578 version_type=linux
14579 need_lib_prefix=no
14580 need_version=no
14581 dynamic_linker="$host_os runtime_loader"
14582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14583 soname_spec='${libname}${release}${shared_ext}$major'
14584 shlibpath_var=LIBRARY_PATH
14585 shlibpath_overrides_runpath=yes
14586 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14587 hardcode_into_libs=yes
14590 hpux9* | hpux10* | hpux11*)
14591 # Give a soname corresponding to the major version so that dld.sl refuses to
14592 # link against other versions.
14593 version_type=sunos
14594 need_lib_prefix=no
14595 need_version=no
14596 case $host_cpu in
14597 ia64*)
14598 shrext_cmds='.so'
14599 hardcode_into_libs=yes
14600 dynamic_linker="$host_os dld.so"
14601 shlibpath_var=LD_LIBRARY_PATH
14602 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14604 soname_spec='${libname}${release}${shared_ext}$major'
14605 if test "X$HPUX_IA64_MODE" = X32; then
14606 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14607 else
14608 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14610 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14612 hppa*64*)
14613 shrext_cmds='.sl'
14614 hardcode_into_libs=yes
14615 dynamic_linker="$host_os dld.sl"
14616 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14617 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14619 soname_spec='${libname}${release}${shared_ext}$major'
14620 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14621 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14624 shrext_cmds='.sl'
14625 dynamic_linker="$host_os dld.sl"
14626 shlibpath_var=SHLIB_PATH
14627 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14629 soname_spec='${libname}${release}${shared_ext}$major'
14631 esac
14632 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14633 postinstall_cmds='chmod 555 $lib'
14634 # or fails outright, so override atomically:
14635 install_override_mode=555
14638 interix[3-9]*)
14639 version_type=linux
14640 need_lib_prefix=no
14641 need_version=no
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14643 soname_spec='${libname}${release}${shared_ext}$major'
14644 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14645 shlibpath_var=LD_LIBRARY_PATH
14646 shlibpath_overrides_runpath=no
14647 hardcode_into_libs=yes
14650 irix5* | irix6* | nonstopux*)
14651 case $host_os in
14652 nonstopux*) version_type=nonstopux ;;
14654 if test "$lt_cv_prog_gnu_ld" = yes; then
14655 version_type=linux
14656 else
14657 version_type=irix
14658 fi ;;
14659 esac
14660 need_lib_prefix=no
14661 need_version=no
14662 soname_spec='${libname}${release}${shared_ext}$major'
14663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14664 case $host_os in
14665 irix5* | nonstopux*)
14666 libsuff= shlibsuff=
14669 case $LD in # libtool.m4 will add one of these switches to LD
14670 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14671 libsuff= shlibsuff= libmagic=32-bit;;
14672 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14673 libsuff=32 shlibsuff=N32 libmagic=N32;;
14674 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14675 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14676 *) libsuff= shlibsuff= libmagic=never-match;;
14677 esac
14679 esac
14680 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14681 shlibpath_overrides_runpath=no
14682 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14683 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14684 hardcode_into_libs=yes
14687 # No shared lib support for Linux oldld, aout, or coff.
14688 linux*oldld* | linux*aout* | linux*coff*)
14689 dynamic_linker=no
14692 # This must be Linux ELF.
14693 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14694 version_type=linux
14695 need_lib_prefix=no
14696 need_version=no
14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698 soname_spec='${libname}${release}${shared_ext}$major'
14699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14700 shlibpath_var=LD_LIBRARY_PATH
14701 shlibpath_overrides_runpath=no
14703 # Some binutils ld are patched to set DT_RUNPATH
14704 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14705 $as_echo_n "(cached) " >&6
14706 else
14707 lt_cv_shlibpath_overrides_runpath=no
14708 save_LDFLAGS=$LDFLAGS
14709 save_libdir=$libdir
14710 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14711 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14713 /* end confdefs.h. */
14716 main ()
14720 return 0;
14722 _ACEOF
14723 if ac_fn_cxx_try_link "$LINENO"; then :
14724 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14725 lt_cv_shlibpath_overrides_runpath=yes
14728 rm -f core conftest.err conftest.$ac_objext \
14729 conftest$ac_exeext conftest.$ac_ext
14730 LDFLAGS=$save_LDFLAGS
14731 libdir=$save_libdir
14735 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14737 # This implies no fast_install, which is unacceptable.
14738 # Some rework will be needed to allow for fast_install
14739 # before this can be enabled.
14740 hardcode_into_libs=yes
14742 # Append ld.so.conf contents to the search path
14743 if test -f /etc/ld.so.conf; then
14744 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;s/"//g;/^$/d' | tr '\n' ' '`
14745 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14748 # We used to test for /lib/ld.so.1 and disable shared libraries on
14749 # powerpc, because MkLinux only supported shared libraries with the
14750 # GNU dynamic linker. Since this was broken with cross compilers,
14751 # most powerpc-linux boxes support dynamic linking these days and
14752 # people can always --disable-shared, the test was removed, and we
14753 # assume the GNU/Linux dynamic linker is in use.
14754 dynamic_linker='GNU/Linux ld.so'
14757 netbsd*)
14758 version_type=sunos
14759 need_lib_prefix=no
14760 need_version=no
14761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14764 dynamic_linker='NetBSD (a.out) ld.so'
14765 else
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14767 soname_spec='${libname}${release}${shared_ext}$major'
14768 dynamic_linker='NetBSD ld.elf_so'
14770 shlibpath_var=LD_LIBRARY_PATH
14771 shlibpath_overrides_runpath=yes
14772 hardcode_into_libs=yes
14775 newsos6)
14776 version_type=linux
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778 shlibpath_var=LD_LIBRARY_PATH
14779 shlibpath_overrides_runpath=yes
14782 *nto* | *qnx*)
14783 version_type=qnx
14784 need_lib_prefix=no
14785 need_version=no
14786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14787 soname_spec='${libname}${release}${shared_ext}$major'
14788 shlibpath_var=LD_LIBRARY_PATH
14789 shlibpath_overrides_runpath=no
14790 hardcode_into_libs=yes
14791 dynamic_linker='ldqnx.so'
14794 openbsd*)
14795 version_type=sunos
14796 sys_lib_dlsearch_path_spec="/usr/lib"
14797 need_lib_prefix=no
14798 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14799 case $host_os in
14800 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14801 *) need_version=no ;;
14802 esac
14803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14805 shlibpath_var=LD_LIBRARY_PATH
14806 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14807 case $host_os in
14808 openbsd2.[89] | openbsd2.[89].*)
14809 shlibpath_overrides_runpath=no
14812 shlibpath_overrides_runpath=yes
14814 esac
14815 else
14816 shlibpath_overrides_runpath=yes
14820 os2*)
14821 libname_spec='$name'
14822 shrext_cmds=".dll"
14823 need_lib_prefix=no
14824 library_names_spec='$libname${shared_ext} $libname.a'
14825 dynamic_linker='OS/2 ld.exe'
14826 shlibpath_var=LIBPATH
14829 osf3* | osf4* | osf5*)
14830 version_type=osf
14831 need_lib_prefix=no
14832 need_version=no
14833 soname_spec='${libname}${release}${shared_ext}$major'
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835 shlibpath_var=LD_LIBRARY_PATH
14836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14837 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14840 rdos*)
14841 dynamic_linker=no
14844 solaris*)
14845 version_type=linux
14846 need_lib_prefix=no
14847 need_version=no
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14849 soname_spec='${libname}${release}${shared_ext}$major'
14850 shlibpath_var=LD_LIBRARY_PATH
14851 shlibpath_overrides_runpath=yes
14852 hardcode_into_libs=yes
14853 # ldd complains unless libraries are executable
14854 postinstall_cmds='chmod +x $lib'
14857 sunos4*)
14858 version_type=sunos
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14860 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14861 shlibpath_var=LD_LIBRARY_PATH
14862 shlibpath_overrides_runpath=yes
14863 if test "$with_gnu_ld" = yes; then
14864 need_lib_prefix=no
14866 need_version=yes
14869 sysv4 | sysv4.3*)
14870 version_type=linux
14871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14872 soname_spec='${libname}${release}${shared_ext}$major'
14873 shlibpath_var=LD_LIBRARY_PATH
14874 case $host_vendor in
14875 sni)
14876 shlibpath_overrides_runpath=no
14877 need_lib_prefix=no
14878 runpath_var=LD_RUN_PATH
14880 siemens)
14881 need_lib_prefix=no
14883 motorola)
14884 need_lib_prefix=no
14885 need_version=no
14886 shlibpath_overrides_runpath=no
14887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14889 esac
14892 sysv4*MP*)
14893 if test -d /usr/nec ;then
14894 version_type=linux
14895 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14896 soname_spec='$libname${shared_ext}.$major'
14897 shlibpath_var=LD_LIBRARY_PATH
14901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14902 version_type=freebsd-elf
14903 need_lib_prefix=no
14904 need_version=no
14905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14906 soname_spec='${libname}${release}${shared_ext}$major'
14907 shlibpath_var=LD_LIBRARY_PATH
14908 shlibpath_overrides_runpath=yes
14909 hardcode_into_libs=yes
14910 if test "$with_gnu_ld" = yes; then
14911 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14912 else
14913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14914 case $host_os in
14915 sco3.2v5*)
14916 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14918 esac
14920 sys_lib_dlsearch_path_spec='/usr/lib'
14923 tpf*)
14924 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14925 version_type=linux
14926 need_lib_prefix=no
14927 need_version=no
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14929 shlibpath_var=LD_LIBRARY_PATH
14930 shlibpath_overrides_runpath=no
14931 hardcode_into_libs=yes
14934 uts4*)
14935 version_type=linux
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 shlibpath_var=LD_LIBRARY_PATH
14942 dynamic_linker=no
14944 esac
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14946 $as_echo "$dynamic_linker" >&6; }
14947 test "$dynamic_linker" = no && can_build_shared=no
14949 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14950 if test "$GCC" = yes; then
14951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14954 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14955 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14957 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14958 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14999 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15000 hardcode_action_CXX=
15001 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15002 test -n "$runpath_var_CXX" ||
15003 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15005 # We can hardcode non-existent directories.
15006 if test "$hardcode_direct_CXX" != no &&
15007 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15008 # have to relink, otherwise we might link with an installed library
15009 # when we should be linking with a yet-to-be-installed one
15010 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15011 test "$hardcode_minus_L_CXX" != no; then
15012 # Linking always hardcodes the temporary library directory.
15013 hardcode_action_CXX=relink
15014 else
15015 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15016 hardcode_action_CXX=immediate
15018 else
15019 # We cannot hardcode anything, or else we can only hardcode existing
15020 # directories.
15021 hardcode_action_CXX=unsupported
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15024 $as_echo "$hardcode_action_CXX" >&6; }
15026 if test "$hardcode_action_CXX" = relink ||
15027 test "$inherit_rpath_CXX" = yes; then
15028 # Fast installation is not supported
15029 enable_fast_install=no
15030 elif test "$shlibpath_overrides_runpath" = yes ||
15031 test "$enable_shared" = no; then
15032 # Fast installation is not necessary
15033 enable_fast_install=needless
15042 fi # test -n "$compiler"
15044 CC=$lt_save_CC
15045 LDCXX=$LD
15046 LD=$lt_save_LD
15047 GCC=$lt_save_GCC
15048 with_gnu_ld=$lt_save_with_gnu_ld
15049 lt_cv_path_LDCXX=$lt_cv_path_LD
15050 lt_cv_path_LD=$lt_save_path_LD
15051 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15052 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15053 fi # test "$_lt_caught_CXX_error" != yes
15055 ac_ext=c
15056 ac_cpp='$CPP $CPPFLAGS'
15057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15073 ac_config_commands="$ac_config_commands libtool"
15078 # Only expand once:
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15086 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15087 # Check whether --enable-maintainer-mode was given.
15088 if test "${enable_maintainer_mode+set}" = set; then :
15089 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15090 else
15091 USE_MAINTAINER_MODE=no
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15095 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15096 if test $USE_MAINTAINER_MODE = yes; then
15097 MAINTAINER_MODE_TRUE=
15098 MAINTAINER_MODE_FALSE='#'
15099 else
15100 MAINTAINER_MODE_TRUE='#'
15101 MAINTAINER_MODE_FALSE=
15104 MAINT=$MAINTAINER_MODE_TRUE
15108 # For libtool versioning info, format is CURRENT:REVISION:AGE
15109 libtool_VERSION=1:0:0
15112 # Check header files.
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15114 $as_echo_n "checking for ANSI C header files... " >&6; }
15115 if test "${ac_cv_header_stdc+set}" = set; then :
15116 $as_echo_n "(cached) " >&6
15117 else
15118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15119 /* end confdefs.h. */
15120 #include <stdlib.h>
15121 #include <stdarg.h>
15122 #include <string.h>
15123 #include <float.h>
15126 main ()
15130 return 0;
15132 _ACEOF
15133 if ac_fn_c_try_compile "$LINENO"; then :
15134 ac_cv_header_stdc=yes
15135 else
15136 ac_cv_header_stdc=no
15138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15140 if test $ac_cv_header_stdc = yes; then
15141 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15143 /* end confdefs.h. */
15144 #include <string.h>
15146 _ACEOF
15147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15148 $EGREP "memchr" >/dev/null 2>&1; then :
15150 else
15151 ac_cv_header_stdc=no
15153 rm -f conftest*
15157 if test $ac_cv_header_stdc = yes; then
15158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h. */
15161 #include <stdlib.h>
15163 _ACEOF
15164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15165 $EGREP "free" >/dev/null 2>&1; then :
15167 else
15168 ac_cv_header_stdc=no
15170 rm -f conftest*
15174 if test $ac_cv_header_stdc = yes; then
15175 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15176 if test "$cross_compiling" = yes; then :
15178 else
15179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15180 /* end confdefs.h. */
15181 #include <ctype.h>
15182 #include <stdlib.h>
15183 #if ((' ' & 0x0FF) == 0x020)
15184 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15185 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15186 #else
15187 # define ISLOWER(c) \
15188 (('a' <= (c) && (c) <= 'i') \
15189 || ('j' <= (c) && (c) <= 'r') \
15190 || ('s' <= (c) && (c) <= 'z'))
15191 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15192 #endif
15194 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15196 main ()
15198 int i;
15199 for (i = 0; i < 256; i++)
15200 if (XOR (islower (i), ISLOWER (i))
15201 || toupper (i) != TOUPPER (i))
15202 return 2;
15203 return 0;
15205 _ACEOF
15206 if ac_fn_c_try_run "$LINENO"; then :
15208 else
15209 ac_cv_header_stdc=no
15211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15212 conftest.$ac_objext conftest.beam conftest.$ac_ext
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15218 $as_echo "$ac_cv_header_stdc" >&6; }
15219 if test $ac_cv_header_stdc = yes; then
15221 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15226 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15227 if test "${ac_cv_header_time+set}" = set; then :
15228 $as_echo_n "(cached) " >&6
15229 else
15230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h. */
15232 #include <sys/types.h>
15233 #include <sys/time.h>
15234 #include <time.h>
15237 main ()
15239 if ((struct tm *) 0)
15240 return 0;
15242 return 0;
15244 _ACEOF
15245 if ac_fn_c_try_compile "$LINENO"; then :
15246 ac_cv_header_time=yes
15247 else
15248 ac_cv_header_time=no
15250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15253 $as_echo "$ac_cv_header_time" >&6; }
15254 if test $ac_cv_header_time = yes; then
15256 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15261 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15262 if test "${gcc_cv_header_string+set}" = set; then :
15263 $as_echo_n "(cached) " >&6
15264 else
15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15267 #include <string.h>
15268 #include <strings.h>
15270 main ()
15274 return 0;
15276 _ACEOF
15277 if ac_fn_c_try_compile "$LINENO"; then :
15278 gcc_cv_header_string=yes
15279 else
15280 gcc_cv_header_string=no
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15285 $as_echo "$gcc_cv_header_string" >&6; }
15286 if test $gcc_cv_header_string = yes; then
15288 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15292 for ac_header in unistd.h semaphore.h sys/time.h malloc.h
15293 do :
15294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15295 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15296 eval as_val=\$$as_ac_Header
15297 if test "x$as_val" = x""yes; then :
15298 cat >>confdefs.h <<_ACEOF
15299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15300 _ACEOF
15304 done
15309 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15311 acx_cv_header_stdint=stddef.h
15312 acx_cv_header_stdint_kind="(already complete)"
15313 for i in stdint.h $inttype_headers; do
15314 unset ac_cv_type_uintptr_t
15315 unset ac_cv_type_uintmax_t
15316 unset ac_cv_type_int_least32_t
15317 unset ac_cv_type_int_fast32_t
15318 unset ac_cv_type_uint64_t
15319 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15320 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15321 #include <$i>
15323 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15324 acx_cv_header_stdint=$i
15325 else
15326 continue
15329 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15330 #include <$i>
15332 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15334 else
15335 acx_cv_header_stdint_kind="(mostly complete)"
15338 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15339 #include <$i>
15341 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15343 else
15344 acx_cv_header_stdint_kind="(mostly complete)"
15347 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15348 #include <$i>
15350 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15352 else
15353 acx_cv_header_stdint_kind="(mostly complete)"
15356 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15357 #include <$i>
15359 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15361 else
15362 acx_cv_header_stdint_kind="(lacks uint64_t)"
15365 break
15366 done
15367 if test "$acx_cv_header_stdint" = stddef.h; then
15368 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15369 for i in stdint.h $inttype_headers; do
15370 unset ac_cv_type_uintptr_t
15371 unset ac_cv_type_uint32_t
15372 unset ac_cv_type_uint64_t
15373 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15374 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15375 #include <$i>
15377 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15378 acx_cv_header_stdint=$i
15379 else
15380 continue
15383 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15384 #include <$i>
15386 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15390 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15391 #include <$i>
15393 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15397 break
15398 done
15400 if test "$acx_cv_header_stdint" = stddef.h; then
15401 acx_cv_header_stdint_kind="(u_intXX_t style)"
15402 for i in sys/types.h $inttype_headers; do
15403 unset ac_cv_type_u_int32_t
15404 unset ac_cv_type_u_int64_t
15405 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15406 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15407 #include <$i>
15409 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15410 acx_cv_header_stdint=$i
15411 else
15412 continue
15415 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15416 #include <$i>
15418 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15422 break
15423 done
15425 if test "$acx_cv_header_stdint" = stddef.h; then
15426 acx_cv_header_stdint_kind="(using manual detection)"
15429 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15430 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15431 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15432 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15433 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15435 # ----------------- Summarize what we found so far
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15438 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15440 case `$as_basename -- gstdint.h ||
15441 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15442 Xgstdint.h : 'X\(//\)$' \| \
15443 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15444 $as_echo X/gstdint.h |
15445 sed '/^.*\/\([^/][^/]*\)\/*$/{
15446 s//\1/
15449 /^X\/\(\/\/\)$/{
15450 s//\1/
15453 /^X\/\(\/\).*/{
15454 s//\1/
15457 s/.*/./; q'` in
15458 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15459 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15460 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15461 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15462 *) ;;
15463 esac
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15466 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15468 # ----------------- done included file, check C basic types --------
15470 # Lacking an uintptr_t? Test size of void *
15471 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15472 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15475 # This bug is HP SR number 8606223364.
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15477 $as_echo_n "checking size of void *... " >&6; }
15478 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15479 $as_echo_n "(cached) " >&6
15480 else
15481 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15483 else
15484 if test "$ac_cv_type_void_p" = yes; then
15485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15487 { as_fn_set_status 77
15488 as_fn_error "cannot compute sizeof (void *)
15489 See \`config.log' for more details." "$LINENO" 5; }; }
15490 else
15491 ac_cv_sizeof_void_p=0
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15497 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15501 cat >>confdefs.h <<_ACEOF
15502 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15503 _ACEOF
15506 esac
15508 # Lacking an uint64_t? Test size of long
15509 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15510 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15513 # This bug is HP SR number 8606223364.
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15515 $as_echo_n "checking size of long... " >&6; }
15516 if test "${ac_cv_sizeof_long+set}" = set; then :
15517 $as_echo_n "(cached) " >&6
15518 else
15519 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15521 else
15522 if test "$ac_cv_type_long" = yes; then
15523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15525 { as_fn_set_status 77
15526 as_fn_error "cannot compute sizeof (long)
15527 See \`config.log' for more details." "$LINENO" 5; }; }
15528 else
15529 ac_cv_sizeof_long=0
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15535 $as_echo "$ac_cv_sizeof_long" >&6; }
15539 cat >>confdefs.h <<_ACEOF
15540 #define SIZEOF_LONG $ac_cv_sizeof_long
15541 _ACEOF
15544 esac
15546 if test $acx_cv_header_stdint = stddef.h; then
15547 # Lacking a good header? Test size of everything and deduce all types.
15548 # The cast to long int works around a bug in the HP C Compiler
15549 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15550 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15551 # This bug is HP SR number 8606223364.
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15553 $as_echo_n "checking size of int... " >&6; }
15554 if test "${ac_cv_sizeof_int+set}" = set; then :
15555 $as_echo_n "(cached) " >&6
15556 else
15557 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15559 else
15560 if test "$ac_cv_type_int" = yes; then
15561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15563 { as_fn_set_status 77
15564 as_fn_error "cannot compute sizeof (int)
15565 See \`config.log' for more details." "$LINENO" 5; }; }
15566 else
15567 ac_cv_sizeof_int=0
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15573 $as_echo "$ac_cv_sizeof_int" >&6; }
15577 cat >>confdefs.h <<_ACEOF
15578 #define SIZEOF_INT $ac_cv_sizeof_int
15579 _ACEOF
15582 # The cast to long int works around a bug in the HP C Compiler
15583 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15584 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15585 # This bug is HP SR number 8606223364.
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15587 $as_echo_n "checking size of short... " >&6; }
15588 if test "${ac_cv_sizeof_short+set}" = set; then :
15589 $as_echo_n "(cached) " >&6
15590 else
15591 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15593 else
15594 if test "$ac_cv_type_short" = yes; then
15595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15597 { as_fn_set_status 77
15598 as_fn_error "cannot compute sizeof (short)
15599 See \`config.log' for more details." "$LINENO" 5; }; }
15600 else
15601 ac_cv_sizeof_short=0
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15607 $as_echo "$ac_cv_sizeof_short" >&6; }
15611 cat >>confdefs.h <<_ACEOF
15612 #define SIZEOF_SHORT $ac_cv_sizeof_short
15613 _ACEOF
15616 # The cast to long int works around a bug in the HP C Compiler
15617 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15618 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15619 # This bug is HP SR number 8606223364.
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15621 $as_echo_n "checking size of char... " >&6; }
15622 if test "${ac_cv_sizeof_char+set}" = set; then :
15623 $as_echo_n "(cached) " >&6
15624 else
15625 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15627 else
15628 if test "$ac_cv_type_char" = yes; then
15629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15631 { as_fn_set_status 77
15632 as_fn_error "cannot compute sizeof (char)
15633 See \`config.log' for more details." "$LINENO" 5; }; }
15634 else
15635 ac_cv_sizeof_char=0
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15641 $as_echo "$ac_cv_sizeof_char" >&6; }
15645 cat >>confdefs.h <<_ACEOF
15646 #define SIZEOF_CHAR $ac_cv_sizeof_char
15647 _ACEOF
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15652 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15653 case "$ac_cv_sizeof_char" in
15654 1) acx_cv_type_int8_t=char ;;
15655 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15656 esac
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15658 $as_echo "$acx_cv_type_int8_t" >&6; }
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15661 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15662 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15663 2:*) acx_cv_type_int16_t=int ;;
15664 *:2) acx_cv_type_int16_t=short ;;
15665 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15666 esac
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15668 $as_echo "$acx_cv_type_int16_t" >&6; }
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15671 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15672 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15673 4:*) acx_cv_type_int32_t=int ;;
15674 *:4) acx_cv_type_int32_t=long ;;
15675 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15676 esac
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15678 $as_echo "$acx_cv_type_int32_t" >&6; }
15681 # These tests are here to make the output prettier
15683 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15684 case "$ac_cv_sizeof_long" in
15685 8) acx_cv_type_int64_t=long ;;
15686 esac
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15688 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15690 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15693 # Now we can use the above types
15695 if test "$ac_cv_type_uintptr_t" != yes; then
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15697 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15698 case $ac_cv_sizeof_void_p in
15699 2) acx_cv_type_intptr_t=int16_t ;;
15700 4) acx_cv_type_intptr_t=int32_t ;;
15701 8) acx_cv_type_intptr_t=int64_t ;;
15702 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15703 esac
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15705 $as_echo "$acx_cv_type_intptr_t" >&6; }
15708 # ----------------- done all checks, emit header -------------
15709 ac_config_commands="$ac_config_commands gstdint.h"
15715 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15716 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
15717 gcc_header_sys_mman_h=yes
15718 else
15719 gcc_header_sys_mman_h=no
15723 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15724 if test "x$ac_cv_func_mmap" = x""yes; then :
15725 gcc_func_mmap=yes
15726 else
15727 gcc_func_mmap=no
15730 if test "$gcc_header_sys_mman_h" != yes \
15731 || test "$gcc_func_mmap" != yes; then
15732 gcc_cv_func_mmap_file=no
15733 gcc_cv_func_mmap_dev_zero=no
15734 gcc_cv_func_mmap_anon=no
15735 else
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15737 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15738 if test "${gcc_cv_func_mmap_file+set}" = set; then :
15739 $as_echo_n "(cached) " >&6
15740 else
15741 # Add a system to this blacklist if
15742 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15743 # memory area containing the same data that you'd get if you applied
15744 # read() to the same fd. The only system known to have a problem here
15745 # is VMS, where text files have record structure.
15746 case "$host_os" in
15747 vms* | ultrix*)
15748 gcc_cv_func_mmap_file=no ;;
15750 gcc_cv_func_mmap_file=yes;;
15751 esac
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
15754 $as_echo "$gcc_cv_func_mmap_file" >&6; }
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15756 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15757 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
15758 $as_echo_n "(cached) " >&6
15759 else
15760 # Add a system to this blacklist if it has mmap() but /dev/zero
15761 # does not exist, or if mmapping /dev/zero does not give anonymous
15762 # zeroed pages with both the following properties:
15763 # 1. If you map N consecutive pages in with one call, and then
15764 # unmap any subset of those pages, the pages that were not
15765 # explicitly unmapped remain accessible.
15766 # 2. If you map two adjacent blocks of memory and then unmap them
15767 # both at once, they must both go away.
15768 # Systems known to be in this category are Windows (all variants),
15769 # VMS, and Darwin.
15770 case "$host_os" in
15771 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15772 gcc_cv_func_mmap_dev_zero=no ;;
15774 gcc_cv_func_mmap_dev_zero=yes;;
15775 esac
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
15778 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
15780 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15782 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15783 if test "${gcc_cv_decl_map_anon+set}" = set; then :
15784 $as_echo_n "(cached) " >&6
15785 else
15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787 /* end confdefs.h. */
15788 #include <sys/types.h>
15789 #include <sys/mman.h>
15790 #include <unistd.h>
15792 #ifndef MAP_ANONYMOUS
15793 #define MAP_ANONYMOUS MAP_ANON
15794 #endif
15797 main ()
15799 int n = MAP_ANONYMOUS;
15801 return 0;
15803 _ACEOF
15804 if ac_fn_c_try_compile "$LINENO"; then :
15805 gcc_cv_decl_map_anon=yes
15806 else
15807 gcc_cv_decl_map_anon=no
15809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
15812 $as_echo "$gcc_cv_decl_map_anon" >&6; }
15814 if test $gcc_cv_decl_map_anon = no; then
15815 gcc_cv_func_mmap_anon=no
15816 else
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15818 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15819 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
15820 $as_echo_n "(cached) " >&6
15821 else
15822 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15823 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15824 # doesn't give anonymous zeroed pages with the same properties listed
15825 # above for use of /dev/zero.
15826 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15827 case "$host_os" in
15828 vms* | cygwin* | pe | mingw* | sco* | udk* )
15829 gcc_cv_func_mmap_anon=no ;;
15831 gcc_cv_func_mmap_anon=yes;;
15832 esac
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
15835 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
15839 if test $gcc_cv_func_mmap_file = yes; then
15841 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15844 if test $gcc_cv_func_mmap_dev_zero = yes; then
15846 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15849 if test $gcc_cv_func_mmap_anon = yes; then
15851 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15857 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15858 if test "${ac_cv_c_bigendian+set}" = set; then :
15859 $as_echo_n "(cached) " >&6
15860 else
15861 ac_cv_c_bigendian=unknown
15862 # See if we're dealing with a universal compiler.
15863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15864 /* end confdefs.h. */
15865 #ifndef __APPLE_CC__
15866 not a universal capable compiler
15867 #endif
15868 typedef int dummy;
15870 _ACEOF
15871 if ac_fn_c_try_compile "$LINENO"; then :
15873 # Check for potential -arch flags. It is not universal unless
15874 # there are at least two -arch flags with different values.
15875 ac_arch=
15876 ac_prev=
15877 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15878 if test -n "$ac_prev"; then
15879 case $ac_word in
15880 i?86 | x86_64 | ppc | ppc64)
15881 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15882 ac_arch=$ac_word
15883 else
15884 ac_cv_c_bigendian=universal
15885 break
15888 esac
15889 ac_prev=
15890 elif test "x$ac_word" = "x-arch"; then
15891 ac_prev=arch
15893 done
15895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15896 if test $ac_cv_c_bigendian = unknown; then
15897 # See if sys/param.h defines the BYTE_ORDER macro.
15898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15899 /* end confdefs.h. */
15900 #include <sys/types.h>
15901 #include <sys/param.h>
15904 main ()
15906 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15907 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15908 && LITTLE_ENDIAN)
15909 bogus endian macros
15910 #endif
15913 return 0;
15915 _ACEOF
15916 if ac_fn_c_try_compile "$LINENO"; then :
15917 # It does; now see whether it defined to BIG_ENDIAN or not.
15918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919 /* end confdefs.h. */
15920 #include <sys/types.h>
15921 #include <sys/param.h>
15924 main ()
15926 #if BYTE_ORDER != BIG_ENDIAN
15927 not big endian
15928 #endif
15931 return 0;
15933 _ACEOF
15934 if ac_fn_c_try_compile "$LINENO"; then :
15935 ac_cv_c_bigendian=yes
15936 else
15937 ac_cv_c_bigendian=no
15939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15943 if test $ac_cv_c_bigendian = unknown; then
15944 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h. */
15947 #include <limits.h>
15950 main ()
15952 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15953 bogus endian macros
15954 #endif
15957 return 0;
15959 _ACEOF
15960 if ac_fn_c_try_compile "$LINENO"; then :
15961 # It does; now see whether it defined to _BIG_ENDIAN or not.
15962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963 /* end confdefs.h. */
15964 #include <limits.h>
15967 main ()
15969 #ifndef _BIG_ENDIAN
15970 not big endian
15971 #endif
15974 return 0;
15976 _ACEOF
15977 if ac_fn_c_try_compile "$LINENO"; then :
15978 ac_cv_c_bigendian=yes
15979 else
15980 ac_cv_c_bigendian=no
15982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15986 if test $ac_cv_c_bigendian = unknown; then
15987 # Compile a test program.
15988 if test "$cross_compiling" = yes; then :
15989 # Try to guess by grepping values from an object file.
15990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15991 /* end confdefs.h. */
15992 short int ascii_mm[] =
15993 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15994 short int ascii_ii[] =
15995 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15996 int use_ascii (int i) {
15997 return ascii_mm[i] + ascii_ii[i];
15999 short int ebcdic_ii[] =
16000 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16001 short int ebcdic_mm[] =
16002 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16003 int use_ebcdic (int i) {
16004 return ebcdic_mm[i] + ebcdic_ii[i];
16006 extern int foo;
16009 main ()
16011 return use_ascii (foo) == use_ebcdic (foo);
16013 return 0;
16015 _ACEOF
16016 if ac_fn_c_try_compile "$LINENO"; then :
16017 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16018 ac_cv_c_bigendian=yes
16020 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16021 if test "$ac_cv_c_bigendian" = unknown; then
16022 ac_cv_c_bigendian=no
16023 else
16024 # finding both strings is unlikely to happen, but who knows?
16025 ac_cv_c_bigendian=unknown
16029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16030 else
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16033 $ac_includes_default
16035 main ()
16038 /* Are we little or big endian? From Harbison&Steele. */
16039 union
16041 long int l;
16042 char c[sizeof (long int)];
16043 } u;
16044 u.l = 1;
16045 return u.c[sizeof (long int) - 1] == 1;
16048 return 0;
16050 _ACEOF
16051 if ac_fn_c_try_run "$LINENO"; then :
16052 ac_cv_c_bigendian=no
16053 else
16054 ac_cv_c_bigendian=yes
16056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16057 conftest.$ac_objext conftest.beam conftest.$ac_ext
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16063 $as_echo "$ac_cv_c_bigendian" >&6; }
16064 case $ac_cv_c_bigendian in #(
16065 yes)
16066 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16067 ;; #(
16069 ;; #(
16070 universal)
16072 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16074 ;; #(
16076 as_fn_error "unknown endianness
16077 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16078 esac
16080 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16083 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16084 # In case the pthread.h system header is not found, this test will fail.
16085 XPCFLAGS=""
16086 CFLAGS="$CFLAGS -pthread"
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16089 #include <pthread.h>
16090 void *g(void *d) { return NULL; }
16092 main ()
16094 pthread_t t; pthread_create(&t,NULL,g,NULL);
16096 return 0;
16098 _ACEOF
16099 if ac_fn_c_try_link "$LINENO"; then :
16100 XPCFLAGS=" -Wc,-pthread"
16101 else
16102 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16104 /* end confdefs.h. */
16105 #include <pthread.h>
16106 void *g(void *d) { return NULL; }
16108 main ()
16110 pthread_t t; pthread_create(&t,NULL,g,NULL);
16112 return 0;
16114 _ACEOF
16115 if ac_fn_c_try_link "$LINENO"; then :
16117 else
16118 as_fn_error "Pthreads are required to build libitm" "$LINENO" 5
16120 rm -f core conftest.err conftest.$ac_objext \
16121 conftest$ac_exeext conftest.$ac_ext
16123 rm -f core conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
16126 # Check for functions needed.
16127 for ac_func in strtoull memalign posix_memalign
16128 do :
16129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16130 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16131 eval as_val=\$$as_ac_var
16132 if test "x$as_val" = x""yes; then :
16133 cat >>confdefs.h <<_ACEOF
16134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16135 _ACEOF
16138 done
16141 # Check for broken semaphore implementation on darwin.
16142 # sem_init returns: sem_init error: Function not implemented.
16143 case "$host" in
16144 *-darwin*)
16146 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16149 esac
16151 # Check whether --enable-linux-futex was given.
16152 if test "${enable_linux_futex+set}" = set; then :
16153 enableval=$enable_linux_futex;
16154 case "$enableval" in
16155 yes|no|default) ;;
16156 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16157 esac
16159 else
16160 enable_linux_futex=default
16164 case "$target" in
16165 *-linux*)
16166 case "$enable_linux_futex" in
16167 default)
16168 # If headers don't have gettid/futex syscalls definition, then
16169 # default to no, otherwise there will be compile time failures.
16170 # Otherwise, default to yes. If we don't detect we are
16171 # compiled/linked against NPTL and not cross-compiling, check
16172 # if programs are run by default against NPTL and if not, issue
16173 # a warning.
16174 enable_linux_futex=no
16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h. */
16177 #include <sys/syscall.h>
16178 int lk;
16180 main ()
16182 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16184 return 0;
16186 _ACEOF
16187 if ac_fn_c_try_link "$LINENO"; then :
16188 save_LIBS="$LIBS"
16189 LIBS="-lpthread $LIBS"
16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16192 #ifndef _GNU_SOURCE
16193 #define _GNU_SOURCE 1
16194 #endif
16195 #include <pthread.h>
16196 pthread_t th; void *status;
16198 main ()
16200 pthread_tryjoin_np (th, &status);
16202 return 0;
16204 _ACEOF
16205 if ac_fn_c_try_link "$LINENO"; then :
16206 enable_linux_futex=yes
16207 else
16208 if test x$cross_compiling = xno; then
16209 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16210 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16212 If so, please configure with --disable-linux-futex" >&5
16213 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16214 If so, please configure with --disable-linux-futex" >&2;}
16217 enable_linux_futex=yes
16219 rm -f core conftest.err conftest.$ac_objext \
16220 conftest$ac_exeext conftest.$ac_ext
16221 LIBS="$save_LIBS"
16223 rm -f core conftest.err conftest.$ac_objext \
16224 conftest$ac_exeext conftest.$ac_ext
16226 yes)
16227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h. */
16229 #include <sys/syscall.h>
16230 int lk;
16232 main ()
16234 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16236 return 0;
16238 _ACEOF
16239 if ac_fn_c_try_link "$LINENO"; then :
16241 else
16242 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16244 rm -f core conftest.err conftest.$ac_objext \
16245 conftest$ac_exeext conftest.$ac_ext
16247 esac
16250 enable_linux_futex=no
16252 esac
16253 if test x$enable_linux_futex = xyes; then
16258 # See if we support thread-local storage.
16261 # Check whether --enable-tls was given.
16262 if test "${enable_tls+set}" = set; then :
16263 enableval=$enable_tls;
16264 case "$enableval" in
16265 yes|no) ;;
16266 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16267 esac
16269 else
16270 enable_tls=yes
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16275 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16276 if test "${gcc_cv_have_tls+set}" = set; then :
16277 $as_echo_n "(cached) " >&6
16278 else
16280 if test "$cross_compiling" = yes; then :
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16283 __thread int a; int b; int main() { return a = b; }
16284 _ACEOF
16285 if ac_fn_c_try_link "$LINENO"; then :
16286 chktls_save_LDFLAGS="$LDFLAGS"
16287 case $host in
16288 *-*-linux*)
16289 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16291 esac
16292 chktls_save_CFLAGS="$CFLAGS"
16293 CFLAGS="-fPIC $CFLAGS"
16294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16295 /* end confdefs.h. */
16296 int f() { return 0; }
16297 _ACEOF
16298 if ac_fn_c_try_link "$LINENO"; then :
16299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16300 /* end confdefs.h. */
16301 __thread int a; int b; int f() { return a = b; }
16302 _ACEOF
16303 if ac_fn_c_try_link "$LINENO"; then :
16304 gcc_cv_have_tls=yes
16305 else
16306 gcc_cv_have_tls=no
16308 rm -f core conftest.err conftest.$ac_objext \
16309 conftest$ac_exeext conftest.$ac_ext
16310 else
16311 gcc_cv_have_tls=yes
16313 rm -f core conftest.err conftest.$ac_objext \
16314 conftest$ac_exeext conftest.$ac_ext
16315 CFLAGS="$chktls_save_CFLAGS"
16316 LDFLAGS="$chktls_save_LDFLAGS"
16317 else
16318 gcc_cv_have_tls=no
16320 rm -f core conftest.err conftest.$ac_objext \
16321 conftest$ac_exeext conftest.$ac_ext
16324 else
16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h. */
16327 __thread int a; int b; int main() { return a = b; }
16328 _ACEOF
16329 if ac_fn_c_try_run "$LINENO"; then :
16330 chktls_save_LDFLAGS="$LDFLAGS"
16331 LDFLAGS="-static $LDFLAGS"
16332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16333 /* end confdefs.h. */
16334 int main() { return 0; }
16335 _ACEOF
16336 if ac_fn_c_try_link "$LINENO"; then :
16337 if test "$cross_compiling" = yes; then :
16338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16340 as_fn_error "cannot run test program while cross compiling
16341 See \`config.log' for more details." "$LINENO" 5; }
16342 else
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16345 __thread int a; int b; int main() { return a = b; }
16346 _ACEOF
16347 if ac_fn_c_try_run "$LINENO"; then :
16348 gcc_cv_have_tls=yes
16349 else
16350 gcc_cv_have_tls=no
16352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16353 conftest.$ac_objext conftest.beam conftest.$ac_ext
16356 else
16357 gcc_cv_have_tls=yes
16359 rm -f core conftest.err conftest.$ac_objext \
16360 conftest$ac_exeext conftest.$ac_ext
16361 LDFLAGS="$chktls_save_LDFLAGS"
16362 if test $gcc_cv_have_tls = yes; then
16363 chktls_save_CFLAGS="$CFLAGS"
16364 thread_CFLAGS=failed
16365 for flag in '' '-pthread' '-lpthread'; do
16366 CFLAGS="$flag $chktls_save_CFLAGS"
16367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16368 /* end confdefs.h. */
16369 #include <pthread.h>
16370 void *g(void *d) { return NULL; }
16372 main ()
16374 pthread_t t; pthread_create(&t,NULL,g,NULL);
16376 return 0;
16378 _ACEOF
16379 if ac_fn_c_try_link "$LINENO"; then :
16380 thread_CFLAGS="$flag"
16382 rm -f core conftest.err conftest.$ac_objext \
16383 conftest$ac_exeext conftest.$ac_ext
16384 if test "X$thread_CFLAGS" != Xfailed; then
16385 break
16387 done
16388 CFLAGS="$chktls_save_CFLAGS"
16389 if test "X$thread_CFLAGS" != Xfailed; then
16390 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16391 if test "$cross_compiling" = yes; then :
16392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16394 as_fn_error "cannot run test program while cross compiling
16395 See \`config.log' for more details." "$LINENO" 5; }
16396 else
16397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398 /* end confdefs.h. */
16399 #include <pthread.h>
16400 __thread int a;
16401 static int *volatile a_in_other_thread;
16402 static void *
16403 thread_func (void *arg)
16405 a_in_other_thread = &a;
16406 return (void *)0;
16409 main ()
16411 pthread_t thread;
16412 void *thread_retval;
16413 int *volatile a_in_main_thread;
16414 a_in_main_thread = &a;
16415 if (pthread_create (&thread, (pthread_attr_t *)0,
16416 thread_func, (void *)0))
16417 return 0;
16418 if (pthread_join (thread, &thread_retval))
16419 return 0;
16420 return (a_in_other_thread == a_in_main_thread);
16422 return 0;
16424 _ACEOF
16425 if ac_fn_c_try_run "$LINENO"; then :
16426 gcc_cv_have_tls=yes
16427 else
16428 gcc_cv_have_tls=no
16430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16431 conftest.$ac_objext conftest.beam conftest.$ac_ext
16434 CFLAGS="$chktls_save_CFLAGS"
16437 else
16438 gcc_cv_have_tls=no
16440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16441 conftest.$ac_objext conftest.beam conftest.$ac_ext
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16446 $as_echo "$gcc_cv_have_tls" >&6; }
16447 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16449 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16453 # See what sort of export controls are availible.
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16456 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16457 if test "${libitm_cv_have_attribute_visibility+set}" = set; then :
16458 $as_echo_n "(cached) " >&6
16459 else
16461 save_CFLAGS="$CFLAGS"
16462 CFLAGS="$CFLAGS -Werror"
16463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464 /* end confdefs.h. */
16465 void __attribute__((visibility("hidden"))) foo(void) { }
16467 main ()
16471 return 0;
16473 _ACEOF
16474 if ac_fn_c_try_compile "$LINENO"; then :
16475 libitm_cv_have_attribute_visibility=yes
16476 else
16477 libitm_cv_have_attribute_visibility=no
16479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16480 CFLAGS="$save_CFLAGS"
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16483 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16484 if test $libitm_cv_have_attribute_visibility = yes; then
16486 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16491 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16492 if test "${libitm_cv_have_attribute_dllexport+set}" = set; then :
16493 $as_echo_n "(cached) " >&6
16494 else
16496 save_CFLAGS="$CFLAGS"
16497 CFLAGS="$CFLAGS -Werror"
16498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h. */
16500 void __attribute__((dllexport)) foo(void) { }
16502 main ()
16506 return 0;
16508 _ACEOF
16509 if ac_fn_c_try_compile "$LINENO"; then :
16510 libitm_cv_have_attribute_dllexport=yes
16511 else
16512 libitm_cv_have_attribute_dllexport=no
16514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16515 CFLAGS="$save_CFLAGS"
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16518 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16519 if test $libitm_cv_have_attribute_dllexport = yes; then
16521 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16526 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16527 if test "${libitm_cv_have_attribute_alias+set}" = set; then :
16528 $as_echo_n "(cached) " >&6
16529 else
16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h. */
16534 void foo(void) { }
16535 extern void bar(void) __attribute__((alias("foo")));
16537 main ()
16539 bar();
16541 return 0;
16543 _ACEOF
16544 if ac_fn_c_try_link "$LINENO"; then :
16545 libitm_cv_have_attribute_alias=yes
16546 else
16547 libitm_cv_have_attribute_alias=no
16549 rm -f core conftest.err conftest.$ac_objext \
16550 conftest$ac_exeext conftest.$ac_ext
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16553 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16554 if test $libitm_cv_have_attribute_alias = yes; then
16556 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16561 # Check whether --with-gnu-ld was given.
16562 if test "${with_gnu_ld+set}" = set; then :
16563 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16564 else
16565 with_gnu_ld=no
16568 ac_prog=ld
16569 if test "$GCC" = yes; then
16570 # Check if gcc -print-prog-name=ld gives a path.
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16572 $as_echo_n "checking for ld used by $CC... " >&6; }
16573 case $host in
16574 *-*-mingw*)
16575 # gcc leaves a trailing carriage return which upsets mingw
16576 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16578 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16579 esac
16580 case $ac_prog in
16581 # Accept absolute paths.
16582 [\\/]* | ?:[\\/]*)
16583 re_direlt='/[^/][^/]*/\.\./'
16584 # Canonicalize the pathname of ld
16585 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16586 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16587 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16588 done
16589 test -z "$LD" && LD="$ac_prog"
16592 # If it fails, then pretend we aren't using GCC.
16593 ac_prog=ld
16596 # If it is relative, then search for the first ld in PATH.
16597 with_gnu_ld=unknown
16599 esac
16600 elif test "$with_gnu_ld" = yes; then
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16602 $as_echo_n "checking for GNU ld... " >&6; }
16603 else
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16605 $as_echo_n "checking for non-GNU ld... " >&6; }
16607 if test "${lt_cv_path_LD+set}" = set; then :
16608 $as_echo_n "(cached) " >&6
16609 else
16610 if test -z "$LD"; then
16611 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16612 for ac_dir in $PATH; do
16613 IFS="$lt_save_ifs"
16614 test -z "$ac_dir" && ac_dir=.
16615 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16616 lt_cv_path_LD="$ac_dir/$ac_prog"
16617 # Check to see if the program is GNU ld. I'd rather use --version,
16618 # but apparently some variants of GNU ld only accept -v.
16619 # Break only if it was the GNU/non-GNU ld that we prefer.
16620 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16621 *GNU* | *'with BFD'*)
16622 test "$with_gnu_ld" != no && break
16625 test "$with_gnu_ld" != yes && break
16627 esac
16629 done
16630 IFS="$lt_save_ifs"
16631 else
16632 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16636 LD="$lt_cv_path_LD"
16637 if test -n "$LD"; then
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16639 $as_echo "$LD" >&6; }
16640 else
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16642 $as_echo "no" >&6; }
16644 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16646 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16647 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16648 $as_echo_n "(cached) " >&6
16649 else
16650 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16651 case `$LD -v 2>&1 </dev/null` in
16652 *GNU* | *'with BFD'*)
16653 lt_cv_prog_gnu_ld=yes
16656 lt_cv_prog_gnu_ld=no
16658 esac
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16661 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16662 with_gnu_ld=$lt_cv_prog_gnu_ld
16670 # If we're not using GNU ld, then there's no point in even trying these
16671 # tests. Check for that first. We should have already tested for gld
16672 # by now (in libtool), but require it now just to be safe...
16673 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16674 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16678 # The name set by libtool depends on the version of libtool. Shame on us
16679 # for depending on an impl detail, but c'est la vie. Older versions used
16680 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16681 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16682 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16683 # set (hence we're using an older libtool), then set it.
16684 if test x${with_gnu_ld+set} != xset; then
16685 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16686 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16687 with_gnu_ld=no
16688 else
16689 with_gnu_ld=$ac_cv_prog_gnu_ld
16693 # Start by getting the version number. I think the libtool test already
16694 # does some of this, but throws away the result.
16695 libitm_ld_is_gold=no
16696 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16697 libitm_ld_is_gold=yes
16700 ldver=`$LD --version 2>/dev/null |
16701 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16703 libitm_gnu_ld_version=`echo $ldver | \
16704 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16706 # Set --gc-sections.
16707 if test "$with_gnu_ld" = "notbroken"; then
16708 # GNU ld it is! Joy and bunny rabbits!
16710 # All these tests are for C++; save the language and the compiler flags.
16711 # Need to do this so that g++ won't try to link in libstdc++
16712 ac_test_CFLAGS="${CFLAGS+set}"
16713 ac_save_CFLAGS="$CFLAGS"
16714 CFLAGS='-x c++ -Wl,--gc-sections'
16716 # Check for -Wl,--gc-sections
16717 # XXX This test is broken at the moment, as symbols required for linking
16718 # are now in libsupc++ (not built yet). In addition, this test has
16719 # cored on solaris in the past. In addition, --gc-sections doesn't
16720 # really work at the moment (keeps on discarding used sections, first
16721 # .eh_frame and now some of the glibc sections for iconv).
16722 # Bzzzzt. Thanks for playing, maybe next time.
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16724 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16725 if test "$cross_compiling" = yes; then :
16726 ac_sectionLDflags=yes
16727 else
16728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16729 /* end confdefs.h. */
16731 int main(void)
16733 try { throw 1; }
16734 catch (...) { };
16735 return 0;
16738 _ACEOF
16739 if ac_fn_c_try_run "$LINENO"; then :
16740 ac_sectionLDflags=yes
16741 else
16742 ac_sectionLDflags=no
16744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16745 conftest.$ac_objext conftest.beam conftest.$ac_ext
16748 if test "$ac_test_CFLAGS" = set; then
16749 CFLAGS="$ac_save_CFLAGS"
16750 else
16751 # this is the suspicious part
16752 CFLAGS=''
16754 if test "$ac_sectionLDflags" = "yes"; then
16755 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16758 $as_echo "$ac_sectionLDflags" >&6; }
16761 # Set linker optimization flags.
16762 if test x"$with_gnu_ld" = x"yes"; then
16763 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16771 # Check whether --enable-symvers was given.
16772 if test "${enable_symvers+set}" = set; then :
16773 enableval=$enable_symvers;
16774 case "$enableval" in
16775 yes|no|gnu*|sun) ;;
16776 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16777 esac
16779 else
16780 enable_symvers=yes
16785 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
16786 # don't know enough about $LD to do tricks...
16789 # Turn a 'yes' into a suitable default.
16790 if test x$enable_symvers = xyes ; then
16791 # FIXME The following test is too strict, in theory.
16792 if test $enable_shared = no || test "x$LD" = x; then
16793 enable_symvers=no
16794 else
16795 if test $with_gnu_ld = yes ; then
16796 enable_symvers=gnu
16797 else
16798 case ${target_os} in
16799 # Sun symbol versioning exists since Solaris 2.5.
16800 solaris2.[5-9]* | solaris2.1[0-9]*)
16801 enable_symvers=sun ;;
16803 enable_symvers=no ;;
16804 esac
16809 # Check if 'sun' was requested on non-Solaris 2 platforms.
16810 if test x$enable_symvers = xsun ; then
16811 case ${target_os} in
16812 solaris2*)
16813 # All fine.
16816 # Unlikely to work.
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16818 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16820 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16822 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16823 enable_symvers=no
16825 esac
16828 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16829 if test $enable_symvers != no; then
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16831 $as_echo_n "checking for shared libgcc... " >&6; }
16832 ac_save_CFLAGS="$CFLAGS"
16833 CFLAGS=' -lgcc_s'
16834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835 /* end confdefs.h. */
16838 main ()
16840 return 0;
16842 return 0;
16844 _ACEOF
16845 if ac_fn_c_try_link "$LINENO"; then :
16846 libitm_shared_libgcc=yes
16847 else
16848 libitm_shared_libgcc=no
16850 rm -f core conftest.err conftest.$ac_objext \
16851 conftest$ac_exeext conftest.$ac_ext
16852 CFLAGS="$ac_save_CFLAGS"
16853 if test $libitm_shared_libgcc = no; then
16854 cat > conftest.c <<EOF
16855 int main (void) { return 0; }
16857 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16858 -shared -shared-libgcc -o conftest.so \
16859 conftest.c -v 2>&1 >/dev/null \
16860 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16861 rm -f conftest.c conftest.so
16862 if test x${libitm_libgcc_s_suffix+set} = xset; then
16863 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
16864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865 /* end confdefs.h. */
16868 main ()
16870 return 0;
16872 return 0;
16874 _ACEOF
16875 if ac_fn_c_try_link "$LINENO"; then :
16876 libitm_shared_libgcc=yes
16878 rm -f core conftest.err conftest.$ac_objext \
16879 conftest$ac_exeext conftest.$ac_ext
16880 CFLAGS="$ac_save_CFLAGS"
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
16884 $as_echo "$libitm_shared_libgcc" >&6; }
16887 # For GNU ld, we need at least this version. The format is described in
16888 # LIBITM_CHECK_LINKER_FEATURES above.
16889 libitm_min_gnu_ld_version=21400
16890 # XXXXXXXXXXX libitm_gnu_ld_version=21390
16892 # Check to see if unspecified "yes" value can win, given results above.
16893 # Change "yes" into either "no" or a style name.
16894 if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
16895 if test $with_gnu_ld = yes; then
16896 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
16897 enable_symvers=gnu
16898 elif test $libitm_ld_is_gold = yes ; then
16899 enable_symvers=gnu
16900 else
16901 # The right tools, the right setup, but too old. Fallbacks?
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
16903 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16905 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16907 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
16909 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
16910 if test $libitm_gnu_ld_version -ge 21200 ; then
16911 # Globbing fix is present, proper block support is not.
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16913 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16914 enable_symvers=no
16915 else
16916 # 2.11 or older.
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16918 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16919 enable_symvers=no
16922 elif test $enable_symvers = sun; then
16923 : All interesting versions of Sun ld support sun style symbol versioning.
16924 else
16925 # just fail for now
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16927 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16929 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16931 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16933 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16934 enable_symvers=no
16938 if test $enable_symvers != no; then
16939 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
16940 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
16941 else
16942 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
16943 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
16946 if test $enable_symvers = gnu; then
16947 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16948 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16949 else
16950 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16951 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16954 if test $enable_symvers = sun; then
16955 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16956 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16957 else
16958 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16959 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16963 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16966 if test $enable_symvers = gnu; then
16968 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16972 # See if we can emit unwind info in the sjlj stub.
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
16974 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
16975 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
16976 $as_echo_n "(cached) " >&6
16977 else
16979 gcc_cv_as_cfi_pseudo_op=unknown
16980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16981 /* end confdefs.h. */
16982 asm (".cfi_startproc\n\t.cfi_endproc");
16984 main ()
16988 return 0;
16990 _ACEOF
16991 if ac_fn_c_try_compile "$LINENO"; then :
16992 gcc_cv_as_cfi_pseudo_op=yes
16993 else
16994 gcc_cv_as_cfi_pseudo_op=no
16996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17000 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17001 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17003 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17008 # Determine the proper ABI type for size_t.
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17011 $as_echo_n "checking how size_t is mangled... " >&6; }
17012 if test "${libitm_cv_size_t_mangling+set}" = set; then :
17013 $as_echo_n "(cached) " >&6
17014 else
17016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017 /* end confdefs.h. */
17020 main ()
17022 extern __SIZE_TYPE__ x; extern unsigned long x;
17024 return 0;
17026 _ACEOF
17027 if ac_fn_c_try_compile "$LINENO"; then :
17028 libitm_cv_size_t_mangling=m
17029 else
17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17035 main ()
17037 extern __SIZE_TYPE__ x; extern unsigned int x;
17039 return 0;
17041 _ACEOF
17042 if ac_fn_c_try_compile "$LINENO"; then :
17043 libitm_cv_size_t_mangling=j
17044 else
17046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17047 /* end confdefs.h. */
17050 main ()
17052 extern __SIZE_TYPE__ x; extern unsigned long long x;
17054 return 0;
17056 _ACEOF
17057 if ac_fn_c_try_compile "$LINENO"; then :
17058 libitm_cv_size_t_mangling=y
17059 else
17061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062 /* end confdefs.h. */
17065 main ()
17067 extern __SIZE_TYPE__ x; extern unsigned short x;
17069 return 0;
17071 _ACEOF
17072 if ac_fn_c_try_compile "$LINENO"; then :
17073 libitm_cv_size_t_mangling=t
17074 else
17075 libitm_cv_size_t_mangling=x
17077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17090 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17091 if test $libitm_cv_size_t_mangling = x; then
17092 as_fn_error "Unknown underlying type for size_t" "$LINENO" 5
17095 cat >>confdefs.h <<_ACEOF
17096 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17097 _ACEOF
17101 # Get target configury.
17102 . ${srcdir}/configure.tgt
17103 if test -n "$UNSUPPORTED"; then
17104 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
17107 CFLAGS="$save_CFLAGS $XCFLAGS"
17109 # Check for __sync_val_compare_and_swap, but only after the target has
17110 # had a chance to set XCFLAGS.
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17113 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17114 if test "${libitm_cv_have_sync_builtins+set}" = set; then :
17115 $as_echo_n "(cached) " >&6
17116 else
17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119 /* end confdefs.h. */
17122 main ()
17124 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17126 return 0;
17128 _ACEOF
17129 if ac_fn_c_try_link "$LINENO"; then :
17130 libitm_cv_have_sync_builtins=yes
17131 else
17132 libitm_cv_have_sync_builtins=no
17134 rm -f core conftest.err conftest.$ac_objext \
17135 conftest$ac_exeext conftest.$ac_ext
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17138 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17139 if test $libitm_cv_have_sync_builtins = yes; then
17141 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17146 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17147 if test "${libitm_cv_have_64bit_sync_builtins+set}" = set; then :
17148 $as_echo_n "(cached) " >&6
17149 else
17151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17152 /* end confdefs.h. */
17153 #include <stdint.h>
17155 main ()
17157 uint64_t foo, bar;
17158 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17160 return 0;
17162 _ACEOF
17163 if ac_fn_c_try_link "$LINENO"; then :
17164 libitm_cv_have_64bit_sync_builtins=yes
17165 else
17166 libitm_cv_have_64bit_sync_builtins=no
17168 rm -f core conftest.err conftest.$ac_objext \
17169 conftest$ac_exeext conftest.$ac_ext
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17172 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17173 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17175 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17179 case "${target_cpu}" in
17180 i[34567]86 | x86_64)
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17182 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17183 if test "${libitm_cv_as_avx+set}" = set; then :
17184 $as_echo_n "(cached) " >&6
17185 else
17187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17188 /* end confdefs.h. */
17191 main ()
17193 asm("vzeroupper");
17195 return 0;
17197 _ACEOF
17198 if ac_fn_c_try_compile "$LINENO"; then :
17199 libitm_cv_as_avx=yes
17200 else
17201 libitm_cv_as_avx=no
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17207 $as_echo "$libitm_cv_as_avx" >&6; }
17208 if test x$libitm_cv_as_avx = xyes; then
17210 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17214 esac
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17218 $as_echo_n "checking whether weak refs work like ELF... " >&6; }
17219 if test "${ac_cv_have_elf_style_weakref+set}" = set; then :
17220 $as_echo_n "(cached) " >&6
17221 else
17223 weakref_m4_saved_CFLAGS="$CFLAGS"
17224 case "${host}" in
17225 *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17226 *) ;;
17227 esac
17228 if test "$cross_compiling" = yes; then :
17230 case "${host}" in
17231 alpha*-dec-osf*) ac_cv_have_elf_style_weakref=no ;;
17232 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17233 *) ac_cv_have_elf_style_weakref=yes;;
17234 esac
17235 else
17236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17237 /* end confdefs.h. */
17239 extern void fNotToBeFound(void) __attribute__((weak));
17240 int main ()
17242 if (fNotToBeFound)
17243 return 1;
17244 else
17245 return 0;
17248 _ACEOF
17249 if ac_fn_c_try_run "$LINENO"; then :
17250 ac_cv_have_elf_style_weakref=yes
17251 else
17252 ac_cv_have_elf_style_weakref=no
17254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17255 conftest.$ac_objext conftest.beam conftest.$ac_ext
17257 CFLAGS="$weakref_m4_saved_CFLAGS"
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17260 $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17261 if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17263 $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17267 # Cleanup and exit.
17268 CFLAGS="$save_CFLAGS"
17269 cat >confcache <<\_ACEOF
17270 # This file is a shell script that caches the results of configure
17271 # tests run on this system so they can be shared between configure
17272 # scripts and configure runs, see configure's option --config-cache.
17273 # It is not useful on other systems. If it contains results you don't
17274 # want to keep, you may remove or edit it.
17276 # config.status only pays attention to the cache file if you give it
17277 # the --recheck option to rerun configure.
17279 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17280 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17281 # following values.
17283 _ACEOF
17285 # The following way of writing the cache mishandles newlines in values,
17286 # but we know of no workaround that is simple, portable, and efficient.
17287 # So, we kill variables containing newlines.
17288 # Ultrix sh set writes to stderr and can't be redirected directly,
17289 # and sets the high bit in the cache file unless we assign to the vars.
17291 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17292 eval ac_val=\$$ac_var
17293 case $ac_val in #(
17294 *${as_nl}*)
17295 case $ac_var in #(
17296 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17297 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17298 esac
17299 case $ac_var in #(
17300 _ | IFS | as_nl) ;; #(
17301 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17302 *) { eval $ac_var=; unset $ac_var;} ;;
17303 esac ;;
17304 esac
17305 done
17307 (set) 2>&1 |
17308 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17309 *${as_nl}ac_space=\ *)
17310 # `set' does not quote correctly, so add quotes: double-quote
17311 # substitution turns \\\\ into \\, and sed turns \\ into \.
17312 sed -n \
17313 "s/'/'\\\\''/g;
17314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17315 ;; #(
17317 # `set' quotes correctly as required by POSIX, so do not add quotes.
17318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17320 esac |
17321 sort
17323 sed '
17324 /^ac_cv_env_/b end
17325 t clear
17326 :clear
17327 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17328 t end
17329 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17330 :end' >>confcache
17331 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17332 if test -w "$cache_file"; then
17333 test "x$cache_file" != "x/dev/null" &&
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17335 $as_echo "$as_me: updating cache $cache_file" >&6;}
17336 cat confcache >$cache_file
17337 else
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17339 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17342 rm -f confcache
17344 # Add -Wall -Werror if we are using GCC.
17345 if test "x$GCC" = "xyes"; then
17346 XCFLAGS="$XCFLAGS -Wall -Werror"
17349 XCFLAGS="$XCFLAGS $XPCFLAGS"
17355 if test ${multilib} = yes; then
17356 multilib_arg="--enable-multilib"
17357 else
17358 multilib_arg=
17361 # Set up the set of libraries that we need to link against for libitm.
17362 # Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp,
17363 # which will force linkage against -lpthread (or equivalent for the system).
17364 # That's not 100% ideal, but about the best we can do easily.
17365 if test $enable_shared = yes; then
17366 link_itm="-litm %{static: $LIBS}"
17367 else
17368 link_itm="-litm $LIBS"
17372 if test "$ARCH" = x86; then
17373 ARCH_X86_TRUE=
17374 ARCH_X86_FALSE='#'
17375 else
17376 ARCH_X86_TRUE='#'
17377 ARCH_X86_FALSE=
17380 if test "$libitm_cv_as_avx" = yes; then
17381 ARCH_X86_AVX_TRUE=
17382 ARCH_X86_AVX_FALSE='#'
17383 else
17384 ARCH_X86_AVX_TRUE='#'
17385 ARCH_X86_AVX_FALSE=
17388 if test $enable_linux_futex = yes; then
17389 ARCH_FUTEX_TRUE=
17390 ARCH_FUTEX_FALSE='#'
17391 else
17392 ARCH_FUTEX_TRUE='#'
17393 ARCH_FUTEX_FALSE=
17397 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
17399 cat >confcache <<\_ACEOF
17400 # This file is a shell script that caches the results of configure
17401 # tests run on this system so they can be shared between configure
17402 # scripts and configure runs, see configure's option --config-cache.
17403 # It is not useful on other systems. If it contains results you don't
17404 # want to keep, you may remove or edit it.
17406 # config.status only pays attention to the cache file if you give it
17407 # the --recheck option to rerun configure.
17409 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17410 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17411 # following values.
17413 _ACEOF
17415 # The following way of writing the cache mishandles newlines in values,
17416 # but we know of no workaround that is simple, portable, and efficient.
17417 # So, we kill variables containing newlines.
17418 # Ultrix sh set writes to stderr and can't be redirected directly,
17419 # and sets the high bit in the cache file unless we assign to the vars.
17421 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17422 eval ac_val=\$$ac_var
17423 case $ac_val in #(
17424 *${as_nl}*)
17425 case $ac_var in #(
17426 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17427 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17428 esac
17429 case $ac_var in #(
17430 _ | IFS | as_nl) ;; #(
17431 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17432 *) { eval $ac_var=; unset $ac_var;} ;;
17433 esac ;;
17434 esac
17435 done
17437 (set) 2>&1 |
17438 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17439 *${as_nl}ac_space=\ *)
17440 # `set' does not quote correctly, so add quotes: double-quote
17441 # substitution turns \\\\ into \\, and sed turns \\ into \.
17442 sed -n \
17443 "s/'/'\\\\''/g;
17444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17445 ;; #(
17447 # `set' quotes correctly as required by POSIX, so do not add quotes.
17448 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17450 esac |
17451 sort
17453 sed '
17454 /^ac_cv_env_/b end
17455 t clear
17456 :clear
17457 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17458 t end
17459 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17460 :end' >>confcache
17461 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17462 if test -w "$cache_file"; then
17463 test "x$cache_file" != "x/dev/null" &&
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17465 $as_echo "$as_me: updating cache $cache_file" >&6;}
17466 cat confcache >$cache_file
17467 else
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17469 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17472 rm -f confcache
17474 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17475 # Let make expand exec_prefix.
17476 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17478 DEFS=-DHAVE_CONFIG_H
17480 ac_libobjs=
17481 ac_ltlibobjs=
17482 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17483 # 1. Remove the extension, and $U if already installed.
17484 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17485 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17486 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17487 # will be set to the directory where LIBOBJS objects are built.
17488 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17489 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17490 done
17491 LIBOBJS=$ac_libobjs
17493 LTLIBOBJS=$ac_ltlibobjs
17496 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17497 as_fn_error "conditional \"GENINSRC\" was never defined.
17498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17500 if test -n "$EXEEXT"; then
17501 am__EXEEXT_TRUE=
17502 am__EXEEXT_FALSE='#'
17503 else
17504 am__EXEEXT_TRUE='#'
17505 am__EXEEXT_FALSE=
17508 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17509 as_fn_error "conditional \"AMDEP\" was never defined.
17510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17512 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17513 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17516 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17517 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17520 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17521 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
17522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17524 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17525 as_fn_error "conditional \"BUILD_INFO\" was never defined.
17526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17528 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17529 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17533 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
17534 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
17535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17537 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17538 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17541 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17542 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17545 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17546 as_fn_error "conditional \"ARCH_X86\" was never defined.
17547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17549 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
17550 as_fn_error "conditional \"ARCH_X86_AVX\" was never defined.
17551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17553 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
17554 as_fn_error "conditional \"ARCH_FUTEX\" was never defined.
17555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17558 : ${CONFIG_STATUS=./config.status}
17559 ac_write_fail=0
17560 ac_clean_files_save=$ac_clean_files
17561 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17563 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17564 as_write_fail=0
17565 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17566 #! $SHELL
17567 # Generated by $as_me.
17568 # Run this file to recreate the current configuration.
17569 # Compiler output produced by configure, useful for debugging
17570 # configure, is in config.log if it exists.
17572 debug=false
17573 ac_cs_recheck=false
17574 ac_cs_silent=false
17576 SHELL=\${CONFIG_SHELL-$SHELL}
17577 export SHELL
17578 _ASEOF
17579 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17580 ## -------------------- ##
17581 ## M4sh Initialization. ##
17582 ## -------------------- ##
17584 # Be more Bourne compatible
17585 DUALCASE=1; export DUALCASE # for MKS sh
17586 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17587 emulate sh
17588 NULLCMD=:
17589 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17590 # is contrary to our usage. Disable this feature.
17591 alias -g '${1+"$@"}'='"$@"'
17592 setopt NO_GLOB_SUBST
17593 else
17594 case `(set -o) 2>/dev/null` in #(
17595 *posix*) :
17596 set -o posix ;; #(
17597 *) :
17599 esac
17603 as_nl='
17605 export as_nl
17606 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17607 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17608 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17609 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17610 # Prefer a ksh shell builtin over an external printf program on Solaris,
17611 # but without wasting forks for bash or zsh.
17612 if test -z "$BASH_VERSION$ZSH_VERSION" \
17613 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17614 as_echo='print -r --'
17615 as_echo_n='print -rn --'
17616 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17617 as_echo='printf %s\n'
17618 as_echo_n='printf %s'
17619 else
17620 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17621 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17622 as_echo_n='/usr/ucb/echo -n'
17623 else
17624 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17625 as_echo_n_body='eval
17626 arg=$1;
17627 case $arg in #(
17628 *"$as_nl"*)
17629 expr "X$arg" : "X\\(.*\\)$as_nl";
17630 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17631 esac;
17632 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17634 export as_echo_n_body
17635 as_echo_n='sh -c $as_echo_n_body as_echo'
17637 export as_echo_body
17638 as_echo='sh -c $as_echo_body as_echo'
17641 # The user is always right.
17642 if test "${PATH_SEPARATOR+set}" != set; then
17643 PATH_SEPARATOR=:
17644 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17645 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17646 PATH_SEPARATOR=';'
17651 # IFS
17652 # We need space, tab and new line, in precisely that order. Quoting is
17653 # there to prevent editors from complaining about space-tab.
17654 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17655 # splitting by setting IFS to empty value.)
17656 IFS=" "" $as_nl"
17658 # Find who we are. Look in the path if we contain no directory separator.
17659 case $0 in #((
17660 *[\\/]* ) as_myself=$0 ;;
17661 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17662 for as_dir in $PATH
17664 IFS=$as_save_IFS
17665 test -z "$as_dir" && as_dir=.
17666 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17667 done
17668 IFS=$as_save_IFS
17671 esac
17672 # We did not find ourselves, most probably we were run as `sh COMMAND'
17673 # in which case we are not to be found in the path.
17674 if test "x$as_myself" = x; then
17675 as_myself=$0
17677 if test ! -f "$as_myself"; then
17678 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17679 exit 1
17682 # Unset variables that we do not need and which cause bugs (e.g. in
17683 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17684 # suppresses any "Segmentation fault" message there. '((' could
17685 # trigger a bug in pdksh 5.2.14.
17686 for as_var in BASH_ENV ENV MAIL MAILPATH
17687 do eval test x\${$as_var+set} = xset \
17688 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17689 done
17690 PS1='$ '
17691 PS2='> '
17692 PS4='+ '
17694 # NLS nuisances.
17695 LC_ALL=C
17696 export LC_ALL
17697 LANGUAGE=C
17698 export LANGUAGE
17700 # CDPATH.
17701 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17704 # as_fn_error ERROR [LINENO LOG_FD]
17705 # ---------------------------------
17706 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17707 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17708 # script with status $?, using 1 if that was 0.
17709 as_fn_error ()
17711 as_status=$?; test $as_status -eq 0 && as_status=1
17712 if test "$3"; then
17713 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17714 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17716 $as_echo "$as_me: error: $1" >&2
17717 as_fn_exit $as_status
17718 } # as_fn_error
17721 # as_fn_set_status STATUS
17722 # -----------------------
17723 # Set $? to STATUS, without forking.
17724 as_fn_set_status ()
17726 return $1
17727 } # as_fn_set_status
17729 # as_fn_exit STATUS
17730 # -----------------
17731 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17732 as_fn_exit ()
17734 set +e
17735 as_fn_set_status $1
17736 exit $1
17737 } # as_fn_exit
17739 # as_fn_unset VAR
17740 # ---------------
17741 # Portably unset VAR.
17742 as_fn_unset ()
17744 { eval $1=; unset $1;}
17746 as_unset=as_fn_unset
17747 # as_fn_append VAR VALUE
17748 # ----------------------
17749 # Append the text in VALUE to the end of the definition contained in VAR. Take
17750 # advantage of any shell optimizations that allow amortized linear growth over
17751 # repeated appends, instead of the typical quadratic growth present in naive
17752 # implementations.
17753 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17754 eval 'as_fn_append ()
17756 eval $1+=\$2
17758 else
17759 as_fn_append ()
17761 eval $1=\$$1\$2
17763 fi # as_fn_append
17765 # as_fn_arith ARG...
17766 # ------------------
17767 # Perform arithmetic evaluation on the ARGs, and store the result in the
17768 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17769 # must be portable across $(()) and expr.
17770 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17771 eval 'as_fn_arith ()
17773 as_val=$(( $* ))
17775 else
17776 as_fn_arith ()
17778 as_val=`expr "$@" || test $? -eq 1`
17780 fi # as_fn_arith
17783 if expr a : '\(a\)' >/dev/null 2>&1 &&
17784 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17785 as_expr=expr
17786 else
17787 as_expr=false
17790 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17791 as_basename=basename
17792 else
17793 as_basename=false
17796 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17797 as_dirname=dirname
17798 else
17799 as_dirname=false
17802 as_me=`$as_basename -- "$0" ||
17803 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17804 X"$0" : 'X\(//\)$' \| \
17805 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17806 $as_echo X/"$0" |
17807 sed '/^.*\/\([^/][^/]*\)\/*$/{
17808 s//\1/
17811 /^X\/\(\/\/\)$/{
17812 s//\1/
17815 /^X\/\(\/\).*/{
17816 s//\1/
17819 s/.*/./; q'`
17821 # Avoid depending upon Character Ranges.
17822 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17823 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17824 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17825 as_cr_digits='0123456789'
17826 as_cr_alnum=$as_cr_Letters$as_cr_digits
17828 ECHO_C= ECHO_N= ECHO_T=
17829 case `echo -n x` in #(((((
17830 -n*)
17831 case `echo 'xy\c'` in
17832 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17833 xy) ECHO_C='\c';;
17834 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17835 ECHO_T=' ';;
17836 esac;;
17838 ECHO_N='-n';;
17839 esac
17841 rm -f conf$$ conf$$.exe conf$$.file
17842 if test -d conf$$.dir; then
17843 rm -f conf$$.dir/conf$$.file
17844 else
17845 rm -f conf$$.dir
17846 mkdir conf$$.dir 2>/dev/null
17848 if (echo >conf$$.file) 2>/dev/null; then
17849 if ln -s conf$$.file conf$$ 2>/dev/null; then
17850 as_ln_s='ln -s'
17851 # ... but there are two gotchas:
17852 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17853 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17854 # In both cases, we have to default to `cp -p'.
17855 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17856 as_ln_s='cp -p'
17857 elif ln conf$$.file conf$$ 2>/dev/null; then
17858 as_ln_s=ln
17859 else
17860 as_ln_s='cp -p'
17862 else
17863 as_ln_s='cp -p'
17865 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17866 rmdir conf$$.dir 2>/dev/null
17869 # as_fn_mkdir_p
17870 # -------------
17871 # Create "$as_dir" as a directory, including parents if necessary.
17872 as_fn_mkdir_p ()
17875 case $as_dir in #(
17876 -*) as_dir=./$as_dir;;
17877 esac
17878 test -d "$as_dir" || eval $as_mkdir_p || {
17879 as_dirs=
17880 while :; do
17881 case $as_dir in #(
17882 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17883 *) as_qdir=$as_dir;;
17884 esac
17885 as_dirs="'$as_qdir' $as_dirs"
17886 as_dir=`$as_dirname -- "$as_dir" ||
17887 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17888 X"$as_dir" : 'X\(//\)[^/]' \| \
17889 X"$as_dir" : 'X\(//\)$' \| \
17890 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17891 $as_echo X"$as_dir" |
17892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17893 s//\1/
17896 /^X\(\/\/\)[^/].*/{
17897 s//\1/
17900 /^X\(\/\/\)$/{
17901 s//\1/
17904 /^X\(\/\).*/{
17905 s//\1/
17908 s/.*/./; q'`
17909 test -d "$as_dir" && break
17910 done
17911 test -z "$as_dirs" || eval "mkdir $as_dirs"
17912 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17915 } # as_fn_mkdir_p
17916 if mkdir -p . 2>/dev/null; then
17917 as_mkdir_p='mkdir -p "$as_dir"'
17918 else
17919 test -d ./-p && rmdir ./-p
17920 as_mkdir_p=false
17923 if test -x / >/dev/null 2>&1; then
17924 as_test_x='test -x'
17925 else
17926 if ls -dL / >/dev/null 2>&1; then
17927 as_ls_L_option=L
17928 else
17929 as_ls_L_option=
17931 as_test_x='
17932 eval sh -c '\''
17933 if test -d "$1"; then
17934 test -d "$1/.";
17935 else
17936 case $1 in #(
17937 -*)set "./$1";;
17938 esac;
17939 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17940 ???[sx]*):;;*)false;;esac;fi
17941 '\'' sh
17944 as_executable_p=$as_test_x
17946 # Sed expression to map a string onto a valid CPP name.
17947 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17949 # Sed expression to map a string onto a valid variable name.
17950 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17953 exec 6>&1
17954 ## ----------------------------------- ##
17955 ## Main body of $CONFIG_STATUS script. ##
17956 ## ----------------------------------- ##
17957 _ASEOF
17958 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17961 # Save the log message, to keep $0 and so on meaningful, and to
17962 # report actual input values of CONFIG_FILES etc. instead of their
17963 # values after options handling.
17964 ac_log="
17965 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
17966 generated by GNU Autoconf 2.64. Invocation command line was
17968 CONFIG_FILES = $CONFIG_FILES
17969 CONFIG_HEADERS = $CONFIG_HEADERS
17970 CONFIG_LINKS = $CONFIG_LINKS
17971 CONFIG_COMMANDS = $CONFIG_COMMANDS
17972 $ $0 $@
17974 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17977 _ACEOF
17979 case $ac_config_files in *"
17980 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17981 esac
17983 case $ac_config_headers in *"
17984 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17985 esac
17988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17989 # Files that config.status was made for.
17990 config_files="$ac_config_files"
17991 config_headers="$ac_config_headers"
17992 config_commands="$ac_config_commands"
17994 _ACEOF
17996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17997 ac_cs_usage="\
17998 \`$as_me' instantiates files and other configuration actions
17999 from templates according to the current configuration. Unless the files
18000 and actions are specified as TAGs, all are instantiated by default.
18002 Usage: $0 [OPTION]... [TAG]...
18004 -h, --help print this help, then exit
18005 -V, --version print version number and configuration settings, then exit
18006 -q, --quiet, --silent
18007 do not print progress messages
18008 -d, --debug don't remove temporary files
18009 --recheck update $as_me by reconfiguring in the same conditions
18010 --file=FILE[:TEMPLATE]
18011 instantiate the configuration file FILE
18012 --header=FILE[:TEMPLATE]
18013 instantiate the configuration header FILE
18015 Configuration files:
18016 $config_files
18018 Configuration headers:
18019 $config_headers
18021 Configuration commands:
18022 $config_commands
18024 Report bugs to the package provider.
18025 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18026 General help using GNU software: <http://www.gnu.org/gethelp/>."
18028 _ACEOF
18029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18030 ac_cs_version="\\
18031 GNU TM Runtime Library config.status 1.0
18032 configured by $0, generated by GNU Autoconf 2.64,
18033 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18035 Copyright (C) 2009 Free Software Foundation, Inc.
18036 This config.status script is free software; the Free Software Foundation
18037 gives unlimited permission to copy, distribute and modify it."
18039 ac_pwd='$ac_pwd'
18040 srcdir='$srcdir'
18041 INSTALL='$INSTALL'
18042 MKDIR_P='$MKDIR_P'
18043 AWK='$AWK'
18044 test -n "\$AWK" || AWK=awk
18045 _ACEOF
18047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18048 # The default lists apply if the user does not specify any file.
18049 ac_need_defaults=:
18050 while test $# != 0
18052 case $1 in
18053 --*=*)
18054 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18055 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18056 ac_shift=:
18059 ac_option=$1
18060 ac_optarg=$2
18061 ac_shift=shift
18063 esac
18065 case $ac_option in
18066 # Handling of the options.
18067 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18068 ac_cs_recheck=: ;;
18069 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18070 $as_echo "$ac_cs_version"; exit ;;
18071 --debug | --debu | --deb | --de | --d | -d )
18072 debug=: ;;
18073 --file | --fil | --fi | --f )
18074 $ac_shift
18075 case $ac_optarg in
18076 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18077 esac
18078 as_fn_append CONFIG_FILES " '$ac_optarg'"
18079 ac_need_defaults=false;;
18080 --header | --heade | --head | --hea )
18081 $ac_shift
18082 case $ac_optarg in
18083 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18084 esac
18085 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18086 ac_need_defaults=false;;
18087 --he | --h)
18088 # Conflict between --help and --header
18089 as_fn_error "ambiguous option: \`$1'
18090 Try \`$0 --help' for more information.";;
18091 --help | --hel | -h )
18092 $as_echo "$ac_cs_usage"; exit ;;
18093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18094 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18095 ac_cs_silent=: ;;
18097 # This is an error.
18098 -*) as_fn_error "unrecognized option: \`$1'
18099 Try \`$0 --help' for more information." ;;
18101 *) as_fn_append ac_config_targets " $1"
18102 ac_need_defaults=false ;;
18104 esac
18105 shift
18106 done
18108 ac_configure_extra_args=
18110 if $ac_cs_silent; then
18111 exec 6>/dev/null
18112 ac_configure_extra_args="$ac_configure_extra_args --silent"
18115 _ACEOF
18116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18117 if \$ac_cs_recheck; then
18118 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18119 shift
18120 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18121 CONFIG_SHELL='$SHELL'
18122 export CONFIG_SHELL
18123 exec "\$@"
18126 _ACEOF
18127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18128 exec 5>>config.log
18130 echo
18131 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18132 ## Running $as_me. ##
18133 _ASBOX
18134 $as_echo "$ac_log"
18135 } >&5
18137 _ACEOF
18138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18140 # INIT-COMMANDS
18143 srcdir="$srcdir"
18144 host="$host"
18145 target="$target"
18146 with_multisubdir="$with_multisubdir"
18147 with_multisrctop="$with_multisrctop"
18148 with_target_subdir="$with_target_subdir"
18149 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18150 multi_basedir="$multi_basedir"
18151 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18152 CC="$CC"
18153 CXX="$CXX"
18154 GFORTRAN="$GFORTRAN"
18155 GCJ="$GCJ"
18156 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18159 # The HP-UX ksh and POSIX shell print the target directory to stdout
18160 # if CDPATH is set.
18161 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18163 sed_quote_subst='$sed_quote_subst'
18164 double_quote_subst='$double_quote_subst'
18165 delay_variable_subst='$delay_variable_subst'
18166 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18167 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18168 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18169 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18170 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18171 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18172 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18173 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18174 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18175 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18176 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18177 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18178 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18179 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18180 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18181 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18182 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18183 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18184 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18185 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18186 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18187 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18188 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18189 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18190 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18191 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18192 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18193 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18194 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18195 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18196 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18197 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18198 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18199 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18200 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18201 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18202 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18203 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18204 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18205 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18206 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18207 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18208 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18209 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18210 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18211 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18212 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18213 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18214 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
18215 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18216 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18217 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18218 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18219 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18220 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18221 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18222 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18223 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18224 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18225 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18226 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18227 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18228 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18229 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18230 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18231 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18232 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18233 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18234 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18235 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18236 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18237 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18238 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18239 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18240 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18241 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18242 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18243 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18244 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18245 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18246 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18247 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18248 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18249 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18250 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18251 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18252 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18253 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18254 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18255 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18256 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18257 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18258 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18259 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18260 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18261 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18262 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18263 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18264 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18265 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18266 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18267 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18268 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18269 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18270 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18271 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18272 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18273 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18274 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18275 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18276 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18277 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18278 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18279 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18280 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18281 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18282 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18283 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18284 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18285 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18286 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18287 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18288 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18289 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18290 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18291 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18292 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18293 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18294 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18295 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18296 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18297 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18298 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18299 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18300 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18301 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18302 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18303 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18304 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18305 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18306 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18307 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18308 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18309 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18310 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18311 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18312 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18313 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18314 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18315 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18316 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18317 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18318 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18319 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18320 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18321 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18322 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18323 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18324 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18325 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18326 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18327 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18328 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18329 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18330 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18331 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18332 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18333 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18334 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18335 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18336 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18337 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18338 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18339 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18340 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18342 LTCC='$LTCC'
18343 LTCFLAGS='$LTCFLAGS'
18344 compiler='$compiler_DEFAULT'
18346 # A function that is used when there is no print builtin or printf.
18347 func_fallback_echo ()
18349 eval 'cat <<_LTECHO_EOF
18351 _LTECHO_EOF'
18354 # Quote evaled strings.
18355 for var in SHELL \
18356 ECHO \
18357 SED \
18358 GREP \
18359 EGREP \
18360 FGREP \
18361 LD \
18362 NM \
18363 LN_S \
18364 lt_SP2NL \
18365 lt_NL2SP \
18366 reload_flag \
18367 OBJDUMP \
18368 deplibs_check_method \
18369 file_magic_cmd \
18370 AR \
18371 AR_FLAGS \
18372 STRIP \
18373 RANLIB \
18374 CC \
18375 CFLAGS \
18376 compiler \
18377 lt_cv_sys_global_symbol_pipe \
18378 lt_cv_sys_global_symbol_to_cdecl \
18379 lt_cv_sys_global_symbol_to_c_name_address \
18380 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18381 lt_prog_compiler_no_builtin_flag \
18382 lt_prog_compiler_wl \
18383 lt_prog_compiler_pic \
18384 lt_prog_compiler_static \
18385 lt_cv_prog_compiler_c_o \
18386 need_locks \
18387 DSYMUTIL \
18388 NMEDIT \
18389 LIPO \
18390 OTOOL \
18391 OTOOL64 \
18392 shrext_cmds \
18393 export_dynamic_flag_spec \
18394 whole_archive_flag_spec \
18395 compiler_needs_object \
18396 with_gnu_ld \
18397 allow_undefined_flag \
18398 no_undefined_flag \
18399 hardcode_libdir_flag_spec \
18400 hardcode_libdir_flag_spec_ld \
18401 hardcode_libdir_separator \
18402 fix_srcfile_path \
18403 exclude_expsyms \
18404 include_expsyms \
18405 file_list_spec \
18406 variables_saved_for_relink \
18407 libname_spec \
18408 library_names_spec \
18409 soname_spec \
18410 install_override_mode \
18411 finish_eval \
18412 old_striplib \
18413 striplib \
18414 compiler_lib_search_dirs \
18415 predep_objects \
18416 postdep_objects \
18417 predeps \
18418 postdeps \
18419 compiler_lib_search_path \
18420 LD_CXX \
18421 reload_flag_CXX \
18422 compiler_CXX \
18423 lt_prog_compiler_no_builtin_flag_CXX \
18424 lt_prog_compiler_wl_CXX \
18425 lt_prog_compiler_pic_CXX \
18426 lt_prog_compiler_static_CXX \
18427 lt_cv_prog_compiler_c_o_CXX \
18428 export_dynamic_flag_spec_CXX \
18429 whole_archive_flag_spec_CXX \
18430 compiler_needs_object_CXX \
18431 with_gnu_ld_CXX \
18432 allow_undefined_flag_CXX \
18433 no_undefined_flag_CXX \
18434 hardcode_libdir_flag_spec_CXX \
18435 hardcode_libdir_flag_spec_ld_CXX \
18436 hardcode_libdir_separator_CXX \
18437 fix_srcfile_path_CXX \
18438 exclude_expsyms_CXX \
18439 include_expsyms_CXX \
18440 file_list_spec_CXX \
18441 compiler_lib_search_dirs_CXX \
18442 predep_objects_CXX \
18443 postdep_objects_CXX \
18444 predeps_CXX \
18445 postdeps_CXX \
18446 compiler_lib_search_path_CXX; do
18447 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18448 *[\\\\\\\`\\"\\\$]*)
18449 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18452 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18454 esac
18455 done
18457 # Double-quote double-evaled strings.
18458 for var in reload_cmds \
18459 old_postinstall_cmds \
18460 old_postuninstall_cmds \
18461 old_archive_cmds \
18462 extract_expsyms_cmds \
18463 old_archive_from_new_cmds \
18464 old_archive_from_expsyms_cmds \
18465 archive_cmds \
18466 archive_expsym_cmds \
18467 module_cmds \
18468 module_expsym_cmds \
18469 export_symbols_cmds \
18470 prelink_cmds \
18471 postinstall_cmds \
18472 postuninstall_cmds \
18473 finish_cmds \
18474 sys_lib_search_path_spec \
18475 sys_lib_dlsearch_path_spec \
18476 reload_cmds_CXX \
18477 old_archive_cmds_CXX \
18478 old_archive_from_new_cmds_CXX \
18479 old_archive_from_expsyms_cmds_CXX \
18480 archive_cmds_CXX \
18481 archive_expsym_cmds_CXX \
18482 module_cmds_CXX \
18483 module_expsym_cmds_CXX \
18484 export_symbols_cmds_CXX \
18485 prelink_cmds_CXX; do
18486 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18487 *[\\\\\\\`\\"\\\$]*)
18488 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18491 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18493 esac
18494 done
18496 ac_aux_dir='$ac_aux_dir'
18497 xsi_shell='$xsi_shell'
18498 lt_shell_append='$lt_shell_append'
18500 # See if we are running on zsh, and set the options which allow our
18501 # commands through without removal of \ escapes INIT.
18502 if test -n "\${ZSH_VERSION+set}" ; then
18503 setopt NO_GLOB_SUBST
18507 PACKAGE='$PACKAGE'
18508 VERSION='$VERSION'
18509 TIMESTAMP='$TIMESTAMP'
18510 RM='$RM'
18511 ofile='$ofile'
18518 GCC="$GCC"
18519 CC="$CC"
18520 acx_cv_header_stdint="$acx_cv_header_stdint"
18521 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18522 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18523 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18524 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18525 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18526 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18527 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18528 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18529 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18530 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18531 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18532 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18533 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18536 _ACEOF
18538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18540 # Handling of arguments.
18541 for ac_config_target in $ac_config_targets
18543 case $ac_config_target in
18544 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18545 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18546 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18547 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18548 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18549 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18550 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18551 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
18553 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18554 esac
18555 done
18558 # If the user did not use the arguments to specify the items to instantiate,
18559 # then the envvar interface is used. Set only those that are not.
18560 # We use the long form for the default assignment because of an extremely
18561 # bizarre bug on SunOS 4.1.3.
18562 if $ac_need_defaults; then
18563 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18564 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18565 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18568 # Have a temporary directory for convenience. Make it in the build tree
18569 # simply because there is no reason against having it here, and in addition,
18570 # creating and moving files from /tmp can sometimes cause problems.
18571 # Hook for its removal unless debugging.
18572 # Note that there is a small window in which the directory will not be cleaned:
18573 # after its creation but before its name has been assigned to `$tmp'.
18574 $debug ||
18576 tmp=
18577 trap 'exit_status=$?
18578 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18580 trap 'as_fn_exit 1' 1 2 13 15
18582 # Create a (secure) tmp directory for tmp files.
18585 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18586 test -n "$tmp" && test -d "$tmp"
18587 } ||
18589 tmp=./conf$$-$RANDOM
18590 (umask 077 && mkdir "$tmp")
18591 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18593 # Set up the scripts for CONFIG_FILES section.
18594 # No need to generate them if there are no CONFIG_FILES.
18595 # This happens for instance with `./config.status config.h'.
18596 if test -n "$CONFIG_FILES"; then
18599 ac_cr=`echo X | tr X '\015'`
18600 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18601 # But we know of no other shell where ac_cr would be empty at this
18602 # point, so we can use a bashism as a fallback.
18603 if test "x$ac_cr" = x; then
18604 eval ac_cr=\$\'\\r\'
18606 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18607 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18608 ac_cs_awk_cr='\r'
18609 else
18610 ac_cs_awk_cr=$ac_cr
18613 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18614 _ACEOF
18618 echo "cat >conf$$subs.awk <<_ACEOF" &&
18619 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18620 echo "_ACEOF"
18621 } >conf$$subs.sh ||
18622 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18623 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18624 ac_delim='%!_!# '
18625 for ac_last_try in false false false false false :; do
18626 . ./conf$$subs.sh ||
18627 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18629 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18630 if test $ac_delim_n = $ac_delim_num; then
18631 break
18632 elif $ac_last_try; then
18633 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18634 else
18635 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18637 done
18638 rm -f conf$$subs.sh
18640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18641 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18642 _ACEOF
18643 sed -n '
18645 s/^/S["/; s/!.*/"]=/
18648 s/^[^!]*!//
18649 :repl
18650 t repl
18651 s/'"$ac_delim"'$//
18652 t delim
18655 s/\(.\{148\}\).*/\1/
18656 t more1
18657 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18660 b repl
18661 :more1
18662 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18665 s/.\{148\}//
18666 t nl
18667 :delim
18669 s/\(.\{148\}\).*/\1/
18670 t more2
18671 s/["\\]/\\&/g; s/^/"/; s/$/"/
18674 :more2
18675 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18678 s/.\{148\}//
18679 t delim
18680 ' <conf$$subs.awk | sed '
18681 /^[^""]/{
18683 s/\n//
18685 ' >>$CONFIG_STATUS || ac_write_fail=1
18686 rm -f conf$$subs.awk
18687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18688 _ACAWK
18689 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18690 for (key in S) S_is_set[key] = 1
18691 FS = "\a"
18695 line = $ 0
18696 nfields = split(line, field, "@")
18697 substed = 0
18698 len = length(field[1])
18699 for (i = 2; i < nfields; i++) {
18700 key = field[i]
18701 keylen = length(key)
18702 if (S_is_set[key]) {
18703 value = S[key]
18704 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18705 len += length(value) + length(field[++i])
18706 substed = 1
18707 } else
18708 len += 1 + keylen
18711 print line
18714 _ACAWK
18715 _ACEOF
18716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18717 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18718 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18719 else
18721 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18722 || as_fn_error "could not setup config files machinery" "$LINENO" 5
18723 _ACEOF
18725 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18726 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18727 # trailing colons and then remove the whole line if VPATH becomes empty
18728 # (actually we leave an empty line to preserve line numbers).
18729 if test "x$srcdir" = x.; then
18730 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18731 s/:*\$(srcdir):*/:/
18732 s/:*\${srcdir}:*/:/
18733 s/:*@srcdir@:*/:/
18734 s/^\([^=]*=[ ]*\):*/\1/
18735 s/:*$//
18736 s/^[^=]*=[ ]*$//
18740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18741 fi # test -n "$CONFIG_FILES"
18743 # Set up the scripts for CONFIG_HEADERS section.
18744 # No need to generate them if there are no CONFIG_HEADERS.
18745 # This happens for instance with `./config.status Makefile'.
18746 if test -n "$CONFIG_HEADERS"; then
18747 cat >"$tmp/defines.awk" <<\_ACAWK ||
18748 BEGIN {
18749 _ACEOF
18751 # Transform confdefs.h into an awk script `defines.awk', embedded as
18752 # here-document in config.status, that substitutes the proper values into
18753 # config.h.in to produce config.h.
18755 # Create a delimiter string that does not exist in confdefs.h, to ease
18756 # handling of long lines.
18757 ac_delim='%!_!# '
18758 for ac_last_try in false false :; do
18759 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18760 if test -z "$ac_t"; then
18761 break
18762 elif $ac_last_try; then
18763 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18764 else
18765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18767 done
18769 # For the awk script, D is an array of macro values keyed by name,
18770 # likewise P contains macro parameters if any. Preserve backslash
18771 # newline sequences.
18773 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18774 sed -n '
18775 s/.\{148\}/&'"$ac_delim"'/g
18776 t rset
18777 :rset
18778 s/^[ ]*#[ ]*define[ ][ ]*/ /
18779 t def
18781 :def
18782 s/\\$//
18783 t bsnl
18784 s/["\\]/\\&/g
18785 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18786 D["\1"]=" \3"/p
18787 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18789 :bsnl
18790 s/["\\]/\\&/g
18791 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18792 D["\1"]=" \3\\\\\\n"\\/p
18793 t cont
18794 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18795 t cont
18797 :cont
18799 s/.\{148\}/&'"$ac_delim"'/g
18800 t clear
18801 :clear
18802 s/\\$//
18803 t bsnlc
18804 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18806 :bsnlc
18807 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18808 b cont
18809 ' <confdefs.h | sed '
18810 s/'"$ac_delim"'/"\\\
18811 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18814 for (key in D) D_is_set[key] = 1
18815 FS = "\a"
18817 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18818 line = \$ 0
18819 split(line, arg, " ")
18820 if (arg[1] == "#") {
18821 defundef = arg[2]
18822 mac1 = arg[3]
18823 } else {
18824 defundef = substr(arg[1], 2)
18825 mac1 = arg[2]
18827 split(mac1, mac2, "(") #)
18828 macro = mac2[1]
18829 prefix = substr(line, 1, index(line, defundef) - 1)
18830 if (D_is_set[macro]) {
18831 # Preserve the white space surrounding the "#".
18832 print prefix "define", macro P[macro] D[macro]
18833 next
18834 } else {
18835 # Replace #undef with comments. This is necessary, for example,
18836 # in the case of _POSIX_SOURCE, which is predefined and required
18837 # on some systems where configure will not decide to define it.
18838 if (defundef == "undef") {
18839 print "/*", prefix defundef, macro, "*/"
18840 next
18844 { print }
18845 _ACAWK
18846 _ACEOF
18847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18848 as_fn_error "could not setup config headers machinery" "$LINENO" 5
18849 fi # test -n "$CONFIG_HEADERS"
18852 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18853 shift
18854 for ac_tag
18856 case $ac_tag in
18857 :[FHLC]) ac_mode=$ac_tag; continue;;
18858 esac
18859 case $ac_mode$ac_tag in
18860 :[FHL]*:*);;
18861 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18862 :[FH]-) ac_tag=-:-;;
18863 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18864 esac
18865 ac_save_IFS=$IFS
18866 IFS=:
18867 set x $ac_tag
18868 IFS=$ac_save_IFS
18869 shift
18870 ac_file=$1
18871 shift
18873 case $ac_mode in
18874 :L) ac_source=$1;;
18875 :[FH])
18876 ac_file_inputs=
18877 for ac_f
18879 case $ac_f in
18880 -) ac_f="$tmp/stdin";;
18881 *) # Look for the file first in the build tree, then in the source tree
18882 # (if the path is not absolute). The absolute path cannot be DOS-style,
18883 # because $ac_f cannot contain `:'.
18884 test -f "$ac_f" ||
18885 case $ac_f in
18886 [\\/$]*) false;;
18887 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18888 esac ||
18889 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18890 esac
18891 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18892 as_fn_append ac_file_inputs " '$ac_f'"
18893 done
18895 # Let's still pretend it is `configure' which instantiates (i.e., don't
18896 # use $as_me), people would be surprised to read:
18897 # /* config.h. Generated by config.status. */
18898 configure_input='Generated from '`
18899 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18900 `' by configure.'
18901 if test x"$ac_file" != x-; then
18902 configure_input="$ac_file. $configure_input"
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18904 $as_echo "$as_me: creating $ac_file" >&6;}
18906 # Neutralize special characters interpreted by sed in replacement strings.
18907 case $configure_input in #(
18908 *\&* | *\|* | *\\* )
18909 ac_sed_conf_input=`$as_echo "$configure_input" |
18910 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18911 *) ac_sed_conf_input=$configure_input;;
18912 esac
18914 case $ac_tag in
18915 *:-:* | *:-) cat >"$tmp/stdin" \
18916 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18917 esac
18919 esac
18921 ac_dir=`$as_dirname -- "$ac_file" ||
18922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18923 X"$ac_file" : 'X\(//\)[^/]' \| \
18924 X"$ac_file" : 'X\(//\)$' \| \
18925 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18926 $as_echo X"$ac_file" |
18927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18928 s//\1/
18931 /^X\(\/\/\)[^/].*/{
18932 s//\1/
18935 /^X\(\/\/\)$/{
18936 s//\1/
18939 /^X\(\/\).*/{
18940 s//\1/
18943 s/.*/./; q'`
18944 as_dir="$ac_dir"; as_fn_mkdir_p
18945 ac_builddir=.
18947 case "$ac_dir" in
18948 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18950 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18951 # A ".." for each directory in $ac_dir_suffix.
18952 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18953 case $ac_top_builddir_sub in
18954 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18955 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18956 esac ;;
18957 esac
18958 ac_abs_top_builddir=$ac_pwd
18959 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18960 # for backward compatibility:
18961 ac_top_builddir=$ac_top_build_prefix
18963 case $srcdir in
18964 .) # We are building in place.
18965 ac_srcdir=.
18966 ac_top_srcdir=$ac_top_builddir_sub
18967 ac_abs_top_srcdir=$ac_pwd ;;
18968 [\\/]* | ?:[\\/]* ) # Absolute name.
18969 ac_srcdir=$srcdir$ac_dir_suffix;
18970 ac_top_srcdir=$srcdir
18971 ac_abs_top_srcdir=$srcdir ;;
18972 *) # Relative name.
18973 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18974 ac_top_srcdir=$ac_top_build_prefix$srcdir
18975 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18976 esac
18977 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18980 case $ac_mode in
18983 # CONFIG_FILE
18986 case $INSTALL in
18987 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18988 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18989 esac
18990 ac_MKDIR_P=$MKDIR_P
18991 case $MKDIR_P in
18992 [\\/$]* | ?:[\\/]* ) ;;
18993 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18994 esac
18995 _ACEOF
18997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18998 # If the template does not know about datarootdir, expand it.
18999 # FIXME: This hack should be removed a few years after 2.60.
19000 ac_datarootdir_hack=; ac_datarootdir_seen=
19001 ac_sed_dataroot='
19002 /datarootdir/ {
19006 /@datadir@/p
19007 /@docdir@/p
19008 /@infodir@/p
19009 /@localedir@/p
19010 /@mandir@/p'
19011 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19012 *datarootdir*) ac_datarootdir_seen=yes;;
19013 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19015 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19016 _ACEOF
19017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19018 ac_datarootdir_hack='
19019 s&@datadir@&$datadir&g
19020 s&@docdir@&$docdir&g
19021 s&@infodir@&$infodir&g
19022 s&@localedir@&$localedir&g
19023 s&@mandir@&$mandir&g
19024 s&\\\${datarootdir}&$datarootdir&g' ;;
19025 esac
19026 _ACEOF
19028 # Neutralize VPATH when `$srcdir' = `.'.
19029 # Shell code in configure.ac might set extrasub.
19030 # FIXME: do we really want to maintain this feature?
19031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19032 ac_sed_extra="$ac_vpsub
19033 $extrasub
19034 _ACEOF
19035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19038 s|@configure_input@|$ac_sed_conf_input|;t t
19039 s&@top_builddir@&$ac_top_builddir_sub&;t t
19040 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19041 s&@srcdir@&$ac_srcdir&;t t
19042 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19043 s&@top_srcdir@&$ac_top_srcdir&;t t
19044 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19045 s&@builddir@&$ac_builddir&;t t
19046 s&@abs_builddir@&$ac_abs_builddir&;t t
19047 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19048 s&@INSTALL@&$ac_INSTALL&;t t
19049 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19050 $ac_datarootdir_hack
19052 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19053 || as_fn_error "could not create $ac_file" "$LINENO" 5
19055 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19056 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19057 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19059 which seems to be undefined. Please make sure it is defined." >&5
19060 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19061 which seems to be undefined. Please make sure it is defined." >&2;}
19063 rm -f "$tmp/stdin"
19064 case $ac_file in
19065 -) cat "$tmp/out" && rm -f "$tmp/out";;
19066 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19067 esac \
19068 || as_fn_error "could not create $ac_file" "$LINENO" 5
19072 # CONFIG_HEADER
19074 if test x"$ac_file" != x-; then
19076 $as_echo "/* $configure_input */" \
19077 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19078 } >"$tmp/config.h" \
19079 || as_fn_error "could not create $ac_file" "$LINENO" 5
19080 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19082 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19083 else
19084 rm -f "$ac_file"
19085 mv "$tmp/config.h" "$ac_file" \
19086 || as_fn_error "could not create $ac_file" "$LINENO" 5
19088 else
19089 $as_echo "/* $configure_input */" \
19090 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19091 || as_fn_error "could not create -" "$LINENO" 5
19093 # Compute "$ac_file"'s index in $config_headers.
19094 _am_arg="$ac_file"
19095 _am_stamp_count=1
19096 for _am_header in $config_headers :; do
19097 case $_am_header in
19098 $_am_arg | $_am_arg:* )
19099 break ;;
19101 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19102 esac
19103 done
19104 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19105 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19106 X"$_am_arg" : 'X\(//\)[^/]' \| \
19107 X"$_am_arg" : 'X\(//\)$' \| \
19108 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19109 $as_echo X"$_am_arg" |
19110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19111 s//\1/
19114 /^X\(\/\/\)[^/].*/{
19115 s//\1/
19118 /^X\(\/\/\)$/{
19119 s//\1/
19122 /^X\(\/\).*/{
19123 s//\1/
19126 s/.*/./; q'`/stamp-h$_am_stamp_count
19129 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19130 $as_echo "$as_me: executing $ac_file commands" >&6;}
19132 esac
19135 case $ac_file$ac_mode in
19136 "default-1":C)
19137 # Only add multilib support code if we just rebuilt the top-level
19138 # Makefile.
19139 case " $CONFIG_FILES " in
19140 *" Makefile "*)
19141 ac_file=Makefile . ${multi_basedir}/config-ml.in
19143 esac ;;
19144 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19145 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19146 # are listed without --file. Let's play safe and only enable the eval
19147 # if we detect the quoting.
19148 case $CONFIG_FILES in
19149 *\'*) eval set x "$CONFIG_FILES" ;;
19150 *) set x $CONFIG_FILES ;;
19151 esac
19152 shift
19153 for mf
19155 # Strip MF so we end up with the name of the file.
19156 mf=`echo "$mf" | sed -e 's/:.*$//'`
19157 # Check whether this is an Automake generated Makefile or not.
19158 # We used to match only the files named `Makefile.in', but
19159 # some people rename them; so instead we look at the file content.
19160 # Grep'ing the first line is not enough: some people post-process
19161 # each Makefile.in and add a new line on top of each file to say so.
19162 # Grep'ing the whole file is not good either: AIX grep has a line
19163 # limit of 2048, but all sed's we know have understand at least 4000.
19164 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19165 dirpart=`$as_dirname -- "$mf" ||
19166 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19167 X"$mf" : 'X\(//\)[^/]' \| \
19168 X"$mf" : 'X\(//\)$' \| \
19169 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19170 $as_echo X"$mf" |
19171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19172 s//\1/
19175 /^X\(\/\/\)[^/].*/{
19176 s//\1/
19179 /^X\(\/\/\)$/{
19180 s//\1/
19183 /^X\(\/\).*/{
19184 s//\1/
19187 s/.*/./; q'`
19188 else
19189 continue
19191 # Extract the definition of DEPDIR, am__include, and am__quote
19192 # from the Makefile without running `make'.
19193 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19194 test -z "$DEPDIR" && continue
19195 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19196 test -z "am__include" && continue
19197 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19198 # When using ansi2knr, U may be empty or an underscore; expand it
19199 U=`sed -n 's/^U = //p' < "$mf"`
19200 # Find all dependency output files, they are included files with
19201 # $(DEPDIR) in their names. We invoke sed twice because it is the
19202 # simplest approach to changing $(DEPDIR) to its actual value in the
19203 # expansion.
19204 for file in `sed -n "
19205 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19206 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19207 # Make sure the directory exists.
19208 test -f "$dirpart/$file" && continue
19209 fdir=`$as_dirname -- "$file" ||
19210 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19211 X"$file" : 'X\(//\)[^/]' \| \
19212 X"$file" : 'X\(//\)$' \| \
19213 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19214 $as_echo X"$file" |
19215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19216 s//\1/
19219 /^X\(\/\/\)[^/].*/{
19220 s//\1/
19223 /^X\(\/\/\)$/{
19224 s//\1/
19227 /^X\(\/\).*/{
19228 s//\1/
19231 s/.*/./; q'`
19232 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19233 # echo "creating $dirpart/$file"
19234 echo '# dummy' > "$dirpart/$file"
19235 done
19236 done
19239 "libtool":C)
19241 # See if we are running on zsh, and set the options which allow our
19242 # commands through without removal of \ escapes.
19243 if test -n "${ZSH_VERSION+set}" ; then
19244 setopt NO_GLOB_SUBST
19247 cfgfile="${ofile}T"
19248 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19249 $RM "$cfgfile"
19251 cat <<_LT_EOF >> "$cfgfile"
19252 #! $SHELL
19254 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19255 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19256 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19257 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19259 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19260 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19261 # Written by Gordon Matzigkeit, 1996
19263 # This file is part of GNU Libtool.
19265 # GNU Libtool is free software; you can redistribute it and/or
19266 # modify it under the terms of the GNU General Public License as
19267 # published by the Free Software Foundation; either version 2 of
19268 # the License, or (at your option) any later version.
19270 # As a special exception to the GNU General Public License,
19271 # if you distribute this file as part of a program or library that
19272 # is built using GNU Libtool, you may include this file under the
19273 # same distribution terms that you use for the rest of that program.
19275 # GNU Libtool is distributed in the hope that it will be useful,
19276 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19277 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19278 # GNU General Public License for more details.
19280 # You should have received a copy of the GNU General Public License
19281 # along with GNU Libtool; see the file COPYING. If not, a copy
19282 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19283 # obtained by writing to the Free Software Foundation, Inc.,
19284 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19287 # The names of the tagged configurations supported by this script.
19288 available_tags="CXX "
19290 # ### BEGIN LIBTOOL CONFIG
19292 # Which release of libtool.m4 was used?
19293 macro_version=$macro_version
19294 macro_revision=$macro_revision
19296 # Whether or not to build shared libraries.
19297 build_libtool_libs=$enable_shared
19299 # Whether or not to build static libraries.
19300 build_old_libs=$enable_static
19302 # What type of objects to build.
19303 pic_mode=$pic_mode
19305 # Whether or not to optimize for fast installation.
19306 fast_install=$enable_fast_install
19308 # Shell to use when invoking shell scripts.
19309 SHELL=$lt_SHELL
19311 # An echo program that protects backslashes.
19312 ECHO=$lt_ECHO
19314 # The host system.
19315 host_alias=$host_alias
19316 host=$host
19317 host_os=$host_os
19319 # The build system.
19320 build_alias=$build_alias
19321 build=$build
19322 build_os=$build_os
19324 # A sed program that does not truncate output.
19325 SED=$lt_SED
19327 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19328 Xsed="\$SED -e 1s/^X//"
19330 # A grep program that handles long lines.
19331 GREP=$lt_GREP
19333 # An ERE matcher.
19334 EGREP=$lt_EGREP
19336 # A literal string matcher.
19337 FGREP=$lt_FGREP
19339 # A BSD- or MS-compatible name lister.
19340 NM=$lt_NM
19342 # Whether we need soft or hard links.
19343 LN_S=$lt_LN_S
19345 # What is the maximum length of a command?
19346 max_cmd_len=$max_cmd_len
19348 # Object file suffix (normally "o").
19349 objext=$ac_objext
19351 # Executable file suffix (normally "").
19352 exeext=$exeext
19354 # whether the shell understands "unset".
19355 lt_unset=$lt_unset
19357 # turn spaces into newlines.
19358 SP2NL=$lt_lt_SP2NL
19360 # turn newlines into spaces.
19361 NL2SP=$lt_lt_NL2SP
19363 # An object symbol dumper.
19364 OBJDUMP=$lt_OBJDUMP
19366 # Method to check whether dependent libraries are shared objects.
19367 deplibs_check_method=$lt_deplibs_check_method
19369 # Command to use when deplibs_check_method == "file_magic".
19370 file_magic_cmd=$lt_file_magic_cmd
19372 # The archiver.
19373 AR=$lt_AR
19374 AR_FLAGS=$lt_AR_FLAGS
19376 # A symbol stripping program.
19377 STRIP=$lt_STRIP
19379 # Commands used to install an old-style archive.
19380 RANLIB=$lt_RANLIB
19381 old_postinstall_cmds=$lt_old_postinstall_cmds
19382 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19384 # Whether to use a lock for old archive extraction.
19385 lock_old_archive_extraction=$lock_old_archive_extraction
19387 # A C compiler.
19388 LTCC=$lt_CC
19390 # LTCC compiler flags.
19391 LTCFLAGS=$lt_CFLAGS
19393 # Take the output of nm and produce a listing of raw symbols and C names.
19394 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19396 # Transform the output of nm in a proper C declaration.
19397 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19399 # Transform the output of nm in a C name address pair.
19400 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19402 # Transform the output of nm in a C name address pair when lib prefix is needed.
19403 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19405 # The name of the directory that contains temporary libtool files.
19406 objdir=$objdir
19408 # Used to examine libraries when file_magic_cmd begins with "file".
19409 MAGIC_CMD=$MAGIC_CMD
19411 # Must we lock files when doing compilation?
19412 need_locks=$lt_need_locks
19414 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19415 DSYMUTIL=$lt_DSYMUTIL
19417 # Tool to change global to local symbols on Mac OS X.
19418 NMEDIT=$lt_NMEDIT
19420 # Tool to manipulate fat objects and archives on Mac OS X.
19421 LIPO=$lt_LIPO
19423 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19424 OTOOL=$lt_OTOOL
19426 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19427 OTOOL64=$lt_OTOOL64
19429 # Old archive suffix (normally "a").
19430 libext=$libext
19432 # Shared library suffix (normally ".so").
19433 shrext_cmds=$lt_shrext_cmds
19435 # The commands to extract the exported symbol list from a shared archive.
19436 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19438 # Variables whose values should be saved in libtool wrapper scripts and
19439 # restored at link time.
19440 variables_saved_for_relink=$lt_variables_saved_for_relink
19442 # Do we need the "lib" prefix for modules?
19443 need_lib_prefix=$need_lib_prefix
19445 # Do we need a version for libraries?
19446 need_version=$need_version
19448 # Library versioning type.
19449 version_type=$version_type
19451 # Shared library runtime path variable.
19452 runpath_var=$runpath_var
19454 # Shared library path variable.
19455 shlibpath_var=$shlibpath_var
19457 # Is shlibpath searched before the hard-coded library search path?
19458 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19460 # Format of library name prefix.
19461 libname_spec=$lt_libname_spec
19463 # List of archive names. First name is the real one, the rest are links.
19464 # The last name is the one that the linker finds with -lNAME
19465 library_names_spec=$lt_library_names_spec
19467 # The coded name of the library, if different from the real name.
19468 soname_spec=$lt_soname_spec
19470 # Permission mode override for installation of shared libraries.
19471 install_override_mode=$lt_install_override_mode
19473 # Command to use after installation of a shared archive.
19474 postinstall_cmds=$lt_postinstall_cmds
19476 # Command to use after uninstallation of a shared archive.
19477 postuninstall_cmds=$lt_postuninstall_cmds
19479 # Commands used to finish a libtool library installation in a directory.
19480 finish_cmds=$lt_finish_cmds
19482 # As "finish_cmds", except a single script fragment to be evaled but
19483 # not shown.
19484 finish_eval=$lt_finish_eval
19486 # Whether we should hardcode library paths into libraries.
19487 hardcode_into_libs=$hardcode_into_libs
19489 # Compile-time system search path for libraries.
19490 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19492 # Run-time system search path for libraries.
19493 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19495 # Whether dlopen is supported.
19496 dlopen_support=$enable_dlopen
19498 # Whether dlopen of programs is supported.
19499 dlopen_self=$enable_dlopen_self
19501 # Whether dlopen of statically linked programs is supported.
19502 dlopen_self_static=$enable_dlopen_self_static
19504 # Commands to strip libraries.
19505 old_striplib=$lt_old_striplib
19506 striplib=$lt_striplib
19509 # The linker used to build libraries.
19510 LD=$lt_LD
19512 # How to create reloadable object files.
19513 reload_flag=$lt_reload_flag
19514 reload_cmds=$lt_reload_cmds
19516 # Commands used to build an old-style archive.
19517 old_archive_cmds=$lt_old_archive_cmds
19519 # A language specific compiler.
19520 CC=$lt_compiler
19522 # Is the compiler the GNU compiler?
19523 with_gcc=$GCC
19525 # Compiler flag to turn off builtin functions.
19526 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19528 # How to pass a linker flag through the compiler.
19529 wl=$lt_lt_prog_compiler_wl
19531 # Additional compiler flags for building library objects.
19532 pic_flag=$lt_lt_prog_compiler_pic
19534 # Compiler flag to prevent dynamic linking.
19535 link_static_flag=$lt_lt_prog_compiler_static
19537 # Does compiler simultaneously support -c and -o options?
19538 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19540 # Whether or not to add -lc for building shared libraries.
19541 build_libtool_need_lc=$archive_cmds_need_lc
19543 # Whether or not to disallow shared libs when runtime libs are static.
19544 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19546 # Compiler flag to allow reflexive dlopens.
19547 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19549 # Compiler flag to generate shared objects directly from archives.
19550 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19552 # Whether the compiler copes with passing no objects directly.
19553 compiler_needs_object=$lt_compiler_needs_object
19555 # Create an old-style archive from a shared archive.
19556 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19558 # Create a temporary old-style archive to link instead of a shared archive.
19559 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19561 # Commands used to build a shared archive.
19562 archive_cmds=$lt_archive_cmds
19563 archive_expsym_cmds=$lt_archive_expsym_cmds
19565 # Commands used to build a loadable module if different from building
19566 # a shared archive.
19567 module_cmds=$lt_module_cmds
19568 module_expsym_cmds=$lt_module_expsym_cmds
19570 # Whether we are building with GNU ld or not.
19571 with_gnu_ld=$lt_with_gnu_ld
19573 # Flag that allows shared libraries with undefined symbols to be built.
19574 allow_undefined_flag=$lt_allow_undefined_flag
19576 # Flag that enforces no undefined symbols.
19577 no_undefined_flag=$lt_no_undefined_flag
19579 # Flag to hardcode \$libdir into a binary during linking.
19580 # This must work even if \$libdir does not exist
19581 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19583 # If ld is used when linking, flag to hardcode \$libdir into a binary
19584 # during linking. This must work even if \$libdir does not exist.
19585 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19587 # Whether we need a single "-rpath" flag with a separated argument.
19588 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19590 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19591 # DIR into the resulting binary.
19592 hardcode_direct=$hardcode_direct
19594 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19595 # DIR into the resulting binary and the resulting library dependency is
19596 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19597 # library is relocated.
19598 hardcode_direct_absolute=$hardcode_direct_absolute
19600 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19601 # into the resulting binary.
19602 hardcode_minus_L=$hardcode_minus_L
19604 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19605 # into the resulting binary.
19606 hardcode_shlibpath_var=$hardcode_shlibpath_var
19608 # Set to "yes" if building a shared library automatically hardcodes DIR
19609 # into the library and all subsequent libraries and executables linked
19610 # against it.
19611 hardcode_automatic=$hardcode_automatic
19613 # Set to yes if linker adds runtime paths of dependent libraries
19614 # to runtime path list.
19615 inherit_rpath=$inherit_rpath
19617 # Whether libtool must link a program against all its dependency libraries.
19618 link_all_deplibs=$link_all_deplibs
19620 # Fix the shell variable \$srcfile for the compiler.
19621 fix_srcfile_path=$lt_fix_srcfile_path
19623 # Set to "yes" if exported symbols are required.
19624 always_export_symbols=$always_export_symbols
19626 # The commands to list exported symbols.
19627 export_symbols_cmds=$lt_export_symbols_cmds
19629 # Symbols that should not be listed in the preloaded symbols.
19630 exclude_expsyms=$lt_exclude_expsyms
19632 # Symbols that must always be exported.
19633 include_expsyms=$lt_include_expsyms
19635 # Commands necessary for linking programs (against libraries) with templates.
19636 prelink_cmds=$lt_prelink_cmds
19638 # Specify filename containing input files.
19639 file_list_spec=$lt_file_list_spec
19641 # How to hardcode a shared library path into an executable.
19642 hardcode_action=$hardcode_action
19644 # The directories searched by this compiler when creating a shared library.
19645 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19647 # Dependencies to place before and after the objects being linked to
19648 # create a shared library.
19649 predep_objects=$lt_predep_objects
19650 postdep_objects=$lt_postdep_objects
19651 predeps=$lt_predeps
19652 postdeps=$lt_postdeps
19654 # The library search path used internally by the compiler when linking
19655 # a shared library.
19656 compiler_lib_search_path=$lt_compiler_lib_search_path
19658 # ### END LIBTOOL CONFIG
19660 _LT_EOF
19662 case $host_os in
19663 aix3*)
19664 cat <<\_LT_EOF >> "$cfgfile"
19665 # AIX sometimes has problems with the GCC collect2 program. For some
19666 # reason, if we set the COLLECT_NAMES environment variable, the problems
19667 # vanish in a puff of smoke.
19668 if test "X${COLLECT_NAMES+set}" != Xset; then
19669 COLLECT_NAMES=
19670 export COLLECT_NAMES
19672 _LT_EOF
19674 esac
19677 ltmain="$ac_aux_dir/ltmain.sh"
19680 # We use sed instead of cat because bash on DJGPP gets confused if
19681 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19682 # text mode, it properly converts lines to CR/LF. This bash problem
19683 # is reportedly fixed, but why not run on old versions too?
19684 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19685 || (rm -f "$cfgfile"; exit 1)
19687 case $xsi_shell in
19688 yes)
19689 cat << \_LT_EOF >> "$cfgfile"
19691 # func_dirname file append nondir_replacement
19692 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19693 # otherwise set result to NONDIR_REPLACEMENT.
19694 func_dirname ()
19696 case ${1} in
19697 */*) func_dirname_result="${1%/*}${2}" ;;
19698 * ) func_dirname_result="${3}" ;;
19699 esac
19702 # func_basename file
19703 func_basename ()
19705 func_basename_result="${1##*/}"
19708 # func_dirname_and_basename file append nondir_replacement
19709 # perform func_basename and func_dirname in a single function
19710 # call:
19711 # dirname: Compute the dirname of FILE. If nonempty,
19712 # add APPEND to the result, otherwise set result
19713 # to NONDIR_REPLACEMENT.
19714 # value returned in "$func_dirname_result"
19715 # basename: Compute filename of FILE.
19716 # value retuned in "$func_basename_result"
19717 # Implementation must be kept synchronized with func_dirname
19718 # and func_basename. For efficiency, we do not delegate to
19719 # those functions but instead duplicate the functionality here.
19720 func_dirname_and_basename ()
19722 case ${1} in
19723 */*) func_dirname_result="${1%/*}${2}" ;;
19724 * ) func_dirname_result="${3}" ;;
19725 esac
19726 func_basename_result="${1##*/}"
19729 # func_stripname prefix suffix name
19730 # strip PREFIX and SUFFIX off of NAME.
19731 # PREFIX and SUFFIX must not contain globbing or regex special
19732 # characters, hashes, percent signs, but SUFFIX may contain a leading
19733 # dot (in which case that matches only a dot).
19734 func_stripname ()
19736 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19737 # positional parameters, so assign one to ordinary parameter first.
19738 func_stripname_result=${3}
19739 func_stripname_result=${func_stripname_result#"${1}"}
19740 func_stripname_result=${func_stripname_result%"${2}"}
19743 # func_opt_split
19744 func_opt_split ()
19746 func_opt_split_opt=${1%%=*}
19747 func_opt_split_arg=${1#*=}
19750 # func_lo2o object
19751 func_lo2o ()
19753 case ${1} in
19754 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19755 *) func_lo2o_result=${1} ;;
19756 esac
19759 # func_xform libobj-or-source
19760 func_xform ()
19762 func_xform_result=${1%.*}.lo
19765 # func_arith arithmetic-term...
19766 func_arith ()
19768 func_arith_result=$(( $* ))
19771 # func_len string
19772 # STRING may not start with a hyphen.
19773 func_len ()
19775 func_len_result=${#1}
19778 _LT_EOF
19780 *) # Bourne compatible functions.
19781 cat << \_LT_EOF >> "$cfgfile"
19783 # func_dirname file append nondir_replacement
19784 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19785 # otherwise set result to NONDIR_REPLACEMENT.
19786 func_dirname ()
19788 # Extract subdirectory from the argument.
19789 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19790 if test "X$func_dirname_result" = "X${1}"; then
19791 func_dirname_result="${3}"
19792 else
19793 func_dirname_result="$func_dirname_result${2}"
19797 # func_basename file
19798 func_basename ()
19800 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19804 # func_stripname prefix suffix name
19805 # strip PREFIX and SUFFIX off of NAME.
19806 # PREFIX and SUFFIX must not contain globbing or regex special
19807 # characters, hashes, percent signs, but SUFFIX may contain a leading
19808 # dot (in which case that matches only a dot).
19809 # func_strip_suffix prefix name
19810 func_stripname ()
19812 case ${2} in
19813 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19814 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19815 esac
19818 # sed scripts:
19819 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19820 my_sed_long_arg='1s/^-[^=]*=//'
19822 # func_opt_split
19823 func_opt_split ()
19825 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19826 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19829 # func_lo2o object
19830 func_lo2o ()
19832 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19835 # func_xform libobj-or-source
19836 func_xform ()
19838 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19841 # func_arith arithmetic-term...
19842 func_arith ()
19844 func_arith_result=`expr "$@"`
19847 # func_len string
19848 # STRING may not start with a hyphen.
19849 func_len ()
19851 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19854 _LT_EOF
19855 esac
19857 case $lt_shell_append in
19858 yes)
19859 cat << \_LT_EOF >> "$cfgfile"
19861 # func_append var value
19862 # Append VALUE to the end of shell variable VAR.
19863 func_append ()
19865 eval "$1+=\$2"
19867 _LT_EOF
19870 cat << \_LT_EOF >> "$cfgfile"
19872 # func_append var value
19873 # Append VALUE to the end of shell variable VAR.
19874 func_append ()
19876 eval "$1=\$$1\$2"
19879 _LT_EOF
19881 esac
19884 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19885 || (rm -f "$cfgfile"; exit 1)
19887 mv -f "$cfgfile" "$ofile" ||
19888 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19889 chmod +x "$ofile"
19892 cat <<_LT_EOF >> "$ofile"
19894 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19896 # The linker used to build libraries.
19897 LD=$lt_LD_CXX
19899 # How to create reloadable object files.
19900 reload_flag=$lt_reload_flag_CXX
19901 reload_cmds=$lt_reload_cmds_CXX
19903 # Commands used to build an old-style archive.
19904 old_archive_cmds=$lt_old_archive_cmds_CXX
19906 # A language specific compiler.
19907 CC=$lt_compiler_CXX
19909 # Is the compiler the GNU compiler?
19910 with_gcc=$GCC_CXX
19912 # Compiler flag to turn off builtin functions.
19913 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19915 # How to pass a linker flag through the compiler.
19916 wl=$lt_lt_prog_compiler_wl_CXX
19918 # Additional compiler flags for building library objects.
19919 pic_flag=$lt_lt_prog_compiler_pic_CXX
19921 # Compiler flag to prevent dynamic linking.
19922 link_static_flag=$lt_lt_prog_compiler_static_CXX
19924 # Does compiler simultaneously support -c and -o options?
19925 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19927 # Whether or not to add -lc for building shared libraries.
19928 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19930 # Whether or not to disallow shared libs when runtime libs are static.
19931 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19933 # Compiler flag to allow reflexive dlopens.
19934 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19936 # Compiler flag to generate shared objects directly from archives.
19937 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19939 # Whether the compiler copes with passing no objects directly.
19940 compiler_needs_object=$lt_compiler_needs_object_CXX
19942 # Create an old-style archive from a shared archive.
19943 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19945 # Create a temporary old-style archive to link instead of a shared archive.
19946 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19948 # Commands used to build a shared archive.
19949 archive_cmds=$lt_archive_cmds_CXX
19950 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19952 # Commands used to build a loadable module if different from building
19953 # a shared archive.
19954 module_cmds=$lt_module_cmds_CXX
19955 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19957 # Whether we are building with GNU ld or not.
19958 with_gnu_ld=$lt_with_gnu_ld_CXX
19960 # Flag that allows shared libraries with undefined symbols to be built.
19961 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19963 # Flag that enforces no undefined symbols.
19964 no_undefined_flag=$lt_no_undefined_flag_CXX
19966 # Flag to hardcode \$libdir into a binary during linking.
19967 # This must work even if \$libdir does not exist
19968 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19970 # If ld is used when linking, flag to hardcode \$libdir into a binary
19971 # during linking. This must work even if \$libdir does not exist.
19972 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19974 # Whether we need a single "-rpath" flag with a separated argument.
19975 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19977 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19978 # DIR into the resulting binary.
19979 hardcode_direct=$hardcode_direct_CXX
19981 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19982 # DIR into the resulting binary and the resulting library dependency is
19983 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19984 # library is relocated.
19985 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19987 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19988 # into the resulting binary.
19989 hardcode_minus_L=$hardcode_minus_L_CXX
19991 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19992 # into the resulting binary.
19993 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19995 # Set to "yes" if building a shared library automatically hardcodes DIR
19996 # into the library and all subsequent libraries and executables linked
19997 # against it.
19998 hardcode_automatic=$hardcode_automatic_CXX
20000 # Set to yes if linker adds runtime paths of dependent libraries
20001 # to runtime path list.
20002 inherit_rpath=$inherit_rpath_CXX
20004 # Whether libtool must link a program against all its dependency libraries.
20005 link_all_deplibs=$link_all_deplibs_CXX
20007 # Fix the shell variable \$srcfile for the compiler.
20008 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20010 # Set to "yes" if exported symbols are required.
20011 always_export_symbols=$always_export_symbols_CXX
20013 # The commands to list exported symbols.
20014 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20016 # Symbols that should not be listed in the preloaded symbols.
20017 exclude_expsyms=$lt_exclude_expsyms_CXX
20019 # Symbols that must always be exported.
20020 include_expsyms=$lt_include_expsyms_CXX
20022 # Commands necessary for linking programs (against libraries) with templates.
20023 prelink_cmds=$lt_prelink_cmds_CXX
20025 # Specify filename containing input files.
20026 file_list_spec=$lt_file_list_spec_CXX
20028 # How to hardcode a shared library path into an executable.
20029 hardcode_action=$hardcode_action_CXX
20031 # The directories searched by this compiler when creating a shared library.
20032 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20034 # Dependencies to place before and after the objects being linked to
20035 # create a shared library.
20036 predep_objects=$lt_predep_objects_CXX
20037 postdep_objects=$lt_postdep_objects_CXX
20038 predeps=$lt_predeps_CXX
20039 postdeps=$lt_postdeps_CXX
20041 # The library search path used internally by the compiler when linking
20042 # a shared library.
20043 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20045 # ### END LIBTOOL TAG CONFIG: CXX
20046 _LT_EOF
20049 "gstdint.h":C)
20050 if test "$GCC" = yes; then
20051 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20052 else
20053 echo "/* generated for $CC */" > tmp-stdint.h
20056 sed 's/^ *//' >> tmp-stdint.h <<EOF
20058 #ifndef GCC_GENERATED_STDINT_H
20059 #define GCC_GENERATED_STDINT_H 1
20061 #include <sys/types.h>
20064 if test "$acx_cv_header_stdint" != stdint.h; then
20065 echo "#include <stddef.h>" >> tmp-stdint.h
20067 if test "$acx_cv_header_stdint" != stddef.h; then
20068 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20071 sed 's/^ *//' >> tmp-stdint.h <<EOF
20072 /* glibc uses these symbols as guards to prevent redefinitions. */
20073 #ifdef __int8_t_defined
20074 #define _INT8_T
20075 #define _INT16_T
20076 #define _INT32_T
20077 #endif
20078 #ifdef __uint32_t_defined
20079 #define _UINT32_T
20080 #endif
20084 # ----------------- done header, emit basic int types -------------
20085 if test "$acx_cv_header_stdint" = stddef.h; then
20086 sed 's/^ *//' >> tmp-stdint.h <<EOF
20088 #ifndef _UINT8_T
20089 #define _UINT8_T
20090 #ifndef __uint8_t_defined
20091 #define __uint8_t_defined
20092 #ifndef uint8_t
20093 typedef unsigned $acx_cv_type_int8_t uint8_t;
20094 #endif
20095 #endif
20096 #endif
20098 #ifndef _UINT16_T
20099 #define _UINT16_T
20100 #ifndef __uint16_t_defined
20101 #define __uint16_t_defined
20102 #ifndef uint16_t
20103 typedef unsigned $acx_cv_type_int16_t uint16_t;
20104 #endif
20105 #endif
20106 #endif
20108 #ifndef _UINT32_T
20109 #define _UINT32_T
20110 #ifndef __uint32_t_defined
20111 #define __uint32_t_defined
20112 #ifndef uint32_t
20113 typedef unsigned $acx_cv_type_int32_t uint32_t;
20114 #endif
20115 #endif
20116 #endif
20118 #ifndef _INT8_T
20119 #define _INT8_T
20120 #ifndef __int8_t_defined
20121 #define __int8_t_defined
20122 #ifndef int8_t
20123 typedef $acx_cv_type_int8_t int8_t;
20124 #endif
20125 #endif
20126 #endif
20128 #ifndef _INT16_T
20129 #define _INT16_T
20130 #ifndef __int16_t_defined
20131 #define __int16_t_defined
20132 #ifndef int16_t
20133 typedef $acx_cv_type_int16_t int16_t;
20134 #endif
20135 #endif
20136 #endif
20138 #ifndef _INT32_T
20139 #define _INT32_T
20140 #ifndef __int32_t_defined
20141 #define __int32_t_defined
20142 #ifndef int32_t
20143 typedef $acx_cv_type_int32_t int32_t;
20144 #endif
20145 #endif
20146 #endif
20148 elif test "$ac_cv_type_u_int32_t" = yes; then
20149 sed 's/^ *//' >> tmp-stdint.h <<EOF
20151 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20152 #ifndef _INT8_T
20153 #define _INT8_T
20154 #endif
20155 #ifndef _INT16_T
20156 #define _INT16_T
20157 #endif
20158 #ifndef _INT32_T
20159 #define _INT32_T
20160 #endif
20162 #ifndef _UINT8_T
20163 #define _UINT8_T
20164 #ifndef __uint8_t_defined
20165 #define __uint8_t_defined
20166 #ifndef uint8_t
20167 typedef u_int8_t uint8_t;
20168 #endif
20169 #endif
20170 #endif
20172 #ifndef _UINT16_T
20173 #define _UINT16_T
20174 #ifndef __uint16_t_defined
20175 #define __uint16_t_defined
20176 #ifndef uint16_t
20177 typedef u_int16_t uint16_t;
20178 #endif
20179 #endif
20180 #endif
20182 #ifndef _UINT32_T
20183 #define _UINT32_T
20184 #ifndef __uint32_t_defined
20185 #define __uint32_t_defined
20186 #ifndef uint32_t
20187 typedef u_int32_t uint32_t;
20188 #endif
20189 #endif
20190 #endif
20192 else
20193 sed 's/^ *//' >> tmp-stdint.h <<EOF
20195 /* Some systems have guard macros to prevent redefinitions, define them. */
20196 #ifndef _INT8_T
20197 #define _INT8_T
20198 #endif
20199 #ifndef _INT16_T
20200 #define _INT16_T
20201 #endif
20202 #ifndef _INT32_T
20203 #define _INT32_T
20204 #endif
20205 #ifndef _UINT8_T
20206 #define _UINT8_T
20207 #endif
20208 #ifndef _UINT16_T
20209 #define _UINT16_T
20210 #endif
20211 #ifndef _UINT32_T
20212 #define _UINT32_T
20213 #endif
20217 # ------------- done basic int types, emit int64_t types ------------
20218 if test "$ac_cv_type_uint64_t" = yes; then
20219 sed 's/^ *//' >> tmp-stdint.h <<EOF
20221 /* system headers have good uint64_t and int64_t */
20222 #ifndef _INT64_T
20223 #define _INT64_T
20224 #endif
20225 #ifndef _UINT64_T
20226 #define _UINT64_T
20227 #endif
20229 elif test "$ac_cv_type_u_int64_t" = yes; then
20230 sed 's/^ *//' >> tmp-stdint.h <<EOF
20232 /* system headers have an u_int64_t (and int64_t) */
20233 #ifndef _INT64_T
20234 #define _INT64_T
20235 #endif
20236 #ifndef _UINT64_T
20237 #define _UINT64_T
20238 #ifndef __uint64_t_defined
20239 #define __uint64_t_defined
20240 #ifndef uint64_t
20241 typedef u_int64_t uint64_t;
20242 #endif
20243 #endif
20244 #endif
20246 elif test -n "$acx_cv_type_int64_t"; then
20247 sed 's/^ *//' >> tmp-stdint.h <<EOF
20249 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20250 #ifndef _INT64_T
20251 #define _INT64_T
20252 #ifndef int64_t
20253 typedef $acx_cv_type_int64_t int64_t;
20254 #endif
20255 #endif
20256 #ifndef _UINT64_T
20257 #define _UINT64_T
20258 #ifndef __uint64_t_defined
20259 #define __uint64_t_defined
20260 #ifndef uint64_t
20261 typedef unsigned $acx_cv_type_int64_t uint64_t;
20262 #endif
20263 #endif
20264 #endif
20266 else
20267 sed 's/^ *//' >> tmp-stdint.h <<EOF
20269 /* some common heuristics for int64_t, using compiler-specific tests */
20270 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20271 #ifndef _INT64_T
20272 #define _INT64_T
20273 #ifndef __int64_t_defined
20274 #ifndef int64_t
20275 typedef long long int64_t;
20276 #endif
20277 #endif
20278 #endif
20279 #ifndef _UINT64_T
20280 #define _UINT64_T
20281 #ifndef uint64_t
20282 typedef unsigned long long uint64_t;
20283 #endif
20284 #endif
20286 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20287 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20288 does not implement __extension__. But that compiler doesn't define
20289 __GNUC_MINOR__. */
20290 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20291 # define __extension__
20292 # endif
20294 # ifndef _INT64_T
20295 # define _INT64_T
20296 # ifndef int64_t
20297 __extension__ typedef long long int64_t;
20298 # endif
20299 # endif
20300 # ifndef _UINT64_T
20301 # define _UINT64_T
20302 # ifndef uint64_t
20303 __extension__ typedef unsigned long long uint64_t;
20304 # endif
20305 # endif
20307 #elif !defined __STRICT_ANSI__
20308 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20310 # ifndef _INT64_T
20311 # define _INT64_T
20312 # ifndef int64_t
20313 typedef __int64 int64_t;
20314 # endif
20315 # endif
20316 # ifndef _UINT64_T
20317 # define _UINT64_T
20318 # ifndef uint64_t
20319 typedef unsigned __int64 uint64_t;
20320 # endif
20321 # endif
20322 # endif /* compiler */
20324 #endif /* ANSI version */
20328 # ------------- done int64_t types, emit intptr types ------------
20329 if test "$ac_cv_type_uintptr_t" != yes; then
20330 sed 's/^ *//' >> tmp-stdint.h <<EOF
20332 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20333 #ifndef __uintptr_t_defined
20334 #ifndef uintptr_t
20335 typedef u$acx_cv_type_intptr_t uintptr_t;
20336 #endif
20337 #endif
20338 #ifndef __intptr_t_defined
20339 #ifndef intptr_t
20340 typedef $acx_cv_type_intptr_t intptr_t;
20341 #endif
20342 #endif
20346 # ------------- done intptr types, emit int_least types ------------
20347 if test "$ac_cv_type_int_least32_t" != yes; then
20348 sed 's/^ *//' >> tmp-stdint.h <<EOF
20350 /* Define int_least types */
20351 typedef int8_t int_least8_t;
20352 typedef int16_t int_least16_t;
20353 typedef int32_t int_least32_t;
20354 #ifdef _INT64_T
20355 typedef int64_t int_least64_t;
20356 #endif
20358 typedef uint8_t uint_least8_t;
20359 typedef uint16_t uint_least16_t;
20360 typedef uint32_t uint_least32_t;
20361 #ifdef _UINT64_T
20362 typedef uint64_t uint_least64_t;
20363 #endif
20367 # ------------- done intptr types, emit int_fast types ------------
20368 if test "$ac_cv_type_int_fast32_t" != yes; then
20369 sed 's/^ *//' >> tmp-stdint.h <<EOF
20371 /* Define int_fast types. short is often slow */
20372 typedef int8_t int_fast8_t;
20373 typedef int int_fast16_t;
20374 typedef int32_t int_fast32_t;
20375 #ifdef _INT64_T
20376 typedef int64_t int_fast64_t;
20377 #endif
20379 typedef uint8_t uint_fast8_t;
20380 typedef unsigned int uint_fast16_t;
20381 typedef uint32_t uint_fast32_t;
20382 #ifdef _UINT64_T
20383 typedef uint64_t uint_fast64_t;
20384 #endif
20388 if test "$ac_cv_type_uintmax_t" != yes; then
20389 sed 's/^ *//' >> tmp-stdint.h <<EOF
20391 /* Define intmax based on what we found */
20392 #ifndef intmax_t
20393 #ifdef _INT64_T
20394 typedef int64_t intmax_t;
20395 #else
20396 typedef long intmax_t;
20397 #endif
20398 #endif
20399 #ifndef uintmax_t
20400 #ifdef _UINT64_T
20401 typedef uint64_t uintmax_t;
20402 #else
20403 typedef unsigned long uintmax_t;
20404 #endif
20405 #endif
20409 sed 's/^ *//' >> tmp-stdint.h <<EOF
20411 #endif /* GCC_GENERATED_STDINT_H */
20414 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20415 rm -f tmp-stdint.h
20416 else
20417 mv -f tmp-stdint.h gstdint.h
20422 esac
20423 done # for ac_tag
20426 as_fn_exit 0
20427 _ACEOF
20428 ac_clean_files=$ac_clean_files_save
20430 test $ac_write_fail = 0 ||
20431 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20434 # configure is writing to config.log, and then calls config.status.
20435 # config.status does its own redirection, appending to config.log.
20436 # Unfortunately, on DOS this fails, as config.log is still kept open
20437 # by configure, so config.status won't be able to write to it; its
20438 # output is simply discarded. So we exec the FD to /dev/null,
20439 # effectively closing config.log, so it can be properly (re)opened and
20440 # appended to by config.status. When coming back to configure, we
20441 # need to make the FD available again.
20442 if test "$no_create" != yes; then
20443 ac_cs_success=:
20444 ac_config_status_args=
20445 test "$silent" = yes &&
20446 ac_config_status_args="$ac_config_status_args --quiet"
20447 exec 5>/dev/null
20448 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20449 exec 5>>config.log
20450 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20451 # would make configure fail if this is the last instruction.
20452 $ac_cs_success || as_fn_exit $?
20454 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20456 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}