PR rtl-optimization/83699
[official-gcc.git] / libitm / configure
blobd061c8c26597c2bc87b3cfebbaddb0d83e456fac
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 get_gcc_base_ver
605 ARCH_FUTEX_FALSE
606 ARCH_FUTEX_TRUE
607 ARCH_X86_AVX_FALSE
608 ARCH_X86_AVX_TRUE
609 ARCH_X86_FALSE
610 ARCH_X86_TRUE
611 ARCH_ARM_FALSE
612 ARCH_ARM_TRUE
613 link_itm
614 XLDFLAGS
615 XCFLAGS
616 config_path
617 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE
618 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE
619 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE
620 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE
621 LIBITM_BUILD_VERSIONED_SHLIB_FALSE
622 LIBITM_BUILD_VERSIONED_SHLIB_TRUE
623 OPT_LDFLAGS
624 SECTION_LDFLAGS
625 HAVE_HWCAP_FALSE
626 HAVE_HWCAP_TRUE
627 HWCAP_LDFLAGS
628 libtool_VERSION
629 MAINT
630 MAINTAINER_MODE_FALSE
631 MAINTAINER_MODE_TRUE
632 enable_static
633 enable_shared
634 CXXCPP
636 OTOOL64
637 OTOOL
638 LIPO
639 NMEDIT
640 DSYMUTIL
641 OBJDUMP
642 LN_S
643 ac_ct_DUMPBIN
644 DUMPBIN
646 FGREP
647 EGREP
648 GREP
650 LIBTOOL
651 BUILD_INFO_FALSE
652 BUILD_INFO_TRUE
653 PERL
654 RANLIB
657 am__fastdepCCAS_FALSE
658 am__fastdepCCAS_TRUE
659 CCASDEPMODE
660 CCASFLAGS
661 CCAS
662 am__fastdepCXX_FALSE
663 am__fastdepCXX_TRUE
664 CXXDEPMODE
665 ac_ct_CXX
666 CXXFLAGS
668 am__fastdepCC_FALSE
669 am__fastdepCC_TRUE
670 CCDEPMODE
671 am__nodep
672 AMDEPBACKSLASH
673 AMDEP_FALSE
674 AMDEP_TRUE
675 am__quote
676 am__include
677 DEPDIR
678 OBJEXT
679 EXEEXT
680 ac_ct_CC
681 CPPFLAGS
682 LDFLAGS
683 CFLAGS
685 toolexeclibdir
686 toolexecdir
687 multi_basedir
688 am__untar
689 am__tar
690 AMTAR
691 am__leading_dot
692 SET_MAKE
694 mkdir_p
695 MKDIR_P
696 INSTALL_STRIP_PROGRAM
697 STRIP
698 install_sh
699 MAKEINFO
700 AUTOHEADER
701 AUTOMAKE
702 AUTOCONF
703 ACLOCAL
704 VERSION
705 PACKAGE
706 CYGPATH_W
707 am__isrc
708 INSTALL_DATA
709 INSTALL_SCRIPT
710 INSTALL_PROGRAM
711 target_os
712 target_vendor
713 target_cpu
714 target
715 host_os
716 host_vendor
717 host_cpu
718 host
719 build_os
720 build_vendor
721 build_cpu
722 build
723 GENINSRC_FALSE
724 GENINSRC_TRUE
725 target_alias
726 host_alias
727 build_alias
728 LIBS
729 ECHO_T
730 ECHO_N
731 ECHO_C
732 DEFS
733 mandir
734 localedir
735 libdir
736 psdir
737 pdfdir
738 dvidir
739 htmldir
740 infodir
741 docdir
742 oldincludedir
743 includedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files=''
764 ac_user_opts='
765 enable_option_checking
766 enable_version_specific_runtime_libs
767 enable_generated_files_in_srcdir
768 enable_multilib
769 enable_dependency_tracking
770 enable_shared
771 enable_static
772 with_pic
773 enable_fast_install
774 with_gnu_ld
775 enable_libtool_lock
776 enable_maintainer_mode
777 enable_linux_futex
778 enable_tls
779 enable_symvers
780 enable_cet
781 with_gcc_major_version_only
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
787 CPPFLAGS
788 CXXCPP'
791 # Initialize some variables set by options.
792 ac_init_help=
793 ac_init_version=false
794 ac_unrecognized_opts=
795 ac_unrecognized_sep=
796 # The variables have the same names as the options, with
797 # dashes changed to underlines.
798 cache_file=/dev/null
799 exec_prefix=NONE
800 no_create=
801 no_recursion=
802 prefix=NONE
803 program_prefix=NONE
804 program_suffix=NONE
805 program_transform_name=s,x,x,
806 silent=
807 site=
808 srcdir=
809 verbose=
810 x_includes=NONE
811 x_libraries=NONE
813 # Installation directory options.
814 # These are left unexpanded so users can "make install exec_prefix=/foo"
815 # and all the variables that are supposed to be based on exec_prefix
816 # by default will actually change.
817 # Use braces instead of parens because sh, perl, etc. also accept them.
818 # (The list follows the same order as the GNU Coding Standards.)
819 bindir='${exec_prefix}/bin'
820 sbindir='${exec_prefix}/sbin'
821 libexecdir='${exec_prefix}/libexec'
822 datarootdir='${prefix}/share'
823 datadir='${datarootdir}'
824 sysconfdir='${prefix}/etc'
825 sharedstatedir='${prefix}/com'
826 localstatedir='${prefix}/var'
827 includedir='${prefix}/include'
828 oldincludedir='/usr/include'
829 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830 infodir='${datarootdir}/info'
831 htmldir='${docdir}'
832 dvidir='${docdir}'
833 pdfdir='${docdir}'
834 psdir='${docdir}'
835 libdir='${exec_prefix}/lib'
836 localedir='${datarootdir}/locale'
837 mandir='${datarootdir}/man'
839 ac_prev=
840 ac_dashdash=
841 for ac_option
843 # If the previous option needs an argument, assign it.
844 if test -n "$ac_prev"; then
845 eval $ac_prev=\$ac_option
846 ac_prev=
847 continue
850 case $ac_option in
851 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 *) ac_optarg=yes ;;
853 esac
855 # Accept the important Cygnus configure options, so we can diagnose typos.
857 case $ac_dashdash$ac_option in
859 ac_dashdash=yes ;;
861 -bindir | --bindir | --bindi | --bind | --bin | --bi)
862 ac_prev=bindir ;;
863 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 bindir=$ac_optarg ;;
866 -build | --build | --buil | --bui | --bu)
867 ac_prev=build_alias ;;
868 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
869 build_alias=$ac_optarg ;;
871 -cache-file | --cache-file | --cache-fil | --cache-fi \
872 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
873 ac_prev=cache_file ;;
874 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
875 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
876 cache_file=$ac_optarg ;;
878 --config-cache | -C)
879 cache_file=config.cache ;;
881 -datadir | --datadir | --datadi | --datad)
882 ac_prev=datadir ;;
883 -datadir=* | --datadir=* | --datadi=* | --datad=*)
884 datadir=$ac_optarg ;;
886 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
887 | --dataroo | --dataro | --datar)
888 ac_prev=datarootdir ;;
889 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
890 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
891 datarootdir=$ac_optarg ;;
893 -disable-* | --disable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=no ;;
909 -docdir | --docdir | --docdi | --doc | --do)
910 ac_prev=docdir ;;
911 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
912 docdir=$ac_optarg ;;
914 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
915 ac_prev=dvidir ;;
916 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
917 dvidir=$ac_optarg ;;
919 -enable-* | --enable-*)
920 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923 as_fn_error "invalid feature name: $ac_useropt"
924 ac_useropt_orig=$ac_useropt
925 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926 case $ac_user_opts in
928 "enable_$ac_useropt"
929 "*) ;;
930 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
931 ac_unrecognized_sep=', ';;
932 esac
933 eval enable_$ac_useropt=\$ac_optarg ;;
935 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
936 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
937 | --exec | --exe | --ex)
938 ac_prev=exec_prefix ;;
939 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
940 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
941 | --exec=* | --exe=* | --ex=*)
942 exec_prefix=$ac_optarg ;;
944 -gas | --gas | --ga | --g)
945 # Obsolete; use --with-gas.
946 with_gas=yes ;;
948 -help | --help | --hel | --he | -h)
949 ac_init_help=long ;;
950 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
951 ac_init_help=recursive ;;
952 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
953 ac_init_help=short ;;
955 -host | --host | --hos | --ho)
956 ac_prev=host_alias ;;
957 -host=* | --host=* | --hos=* | --ho=*)
958 host_alias=$ac_optarg ;;
960 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
961 ac_prev=htmldir ;;
962 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
963 | --ht=*)
964 htmldir=$ac_optarg ;;
966 -includedir | --includedir | --includedi | --included | --include \
967 | --includ | --inclu | --incl | --inc)
968 ac_prev=includedir ;;
969 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
970 | --includ=* | --inclu=* | --incl=* | --inc=*)
971 includedir=$ac_optarg ;;
973 -infodir | --infodir | --infodi | --infod | --info | --inf)
974 ac_prev=infodir ;;
975 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
976 infodir=$ac_optarg ;;
978 -libdir | --libdir | --libdi | --libd)
979 ac_prev=libdir ;;
980 -libdir=* | --libdir=* | --libdi=* | --libd=*)
981 libdir=$ac_optarg ;;
983 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
984 | --libexe | --libex | --libe)
985 ac_prev=libexecdir ;;
986 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
987 | --libexe=* | --libex=* | --libe=*)
988 libexecdir=$ac_optarg ;;
990 -localedir | --localedir | --localedi | --localed | --locale)
991 ac_prev=localedir ;;
992 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
993 localedir=$ac_optarg ;;
995 -localstatedir | --localstatedir | --localstatedi | --localstated \
996 | --localstate | --localstat | --localsta | --localst | --locals)
997 ac_prev=localstatedir ;;
998 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
999 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1000 localstatedir=$ac_optarg ;;
1002 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1003 ac_prev=mandir ;;
1004 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1005 mandir=$ac_optarg ;;
1007 -nfp | --nfp | --nf)
1008 # Obsolete; use --without-fp.
1009 with_fp=no ;;
1011 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1012 | --no-cr | --no-c | -n)
1013 no_create=yes ;;
1015 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1016 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1017 no_recursion=yes ;;
1019 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1020 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1021 | --oldin | --oldi | --old | --ol | --o)
1022 ac_prev=oldincludedir ;;
1023 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1024 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1025 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1026 oldincludedir=$ac_optarg ;;
1028 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1029 ac_prev=prefix ;;
1030 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1031 prefix=$ac_optarg ;;
1033 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1034 | --program-pre | --program-pr | --program-p)
1035 ac_prev=program_prefix ;;
1036 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1037 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1038 program_prefix=$ac_optarg ;;
1040 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1041 | --program-suf | --program-su | --program-s)
1042 ac_prev=program_suffix ;;
1043 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1044 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1045 program_suffix=$ac_optarg ;;
1047 -program-transform-name | --program-transform-name \
1048 | --program-transform-nam | --program-transform-na \
1049 | --program-transform-n | --program-transform- \
1050 | --program-transform | --program-transfor \
1051 | --program-transfo | --program-transf \
1052 | --program-trans | --program-tran \
1053 | --progr-tra | --program-tr | --program-t)
1054 ac_prev=program_transform_name ;;
1055 -program-transform-name=* | --program-transform-name=* \
1056 | --program-transform-nam=* | --program-transform-na=* \
1057 | --program-transform-n=* | --program-transform-=* \
1058 | --program-transform=* | --program-transfor=* \
1059 | --program-transfo=* | --program-transf=* \
1060 | --program-trans=* | --program-tran=* \
1061 | --progr-tra=* | --program-tr=* | --program-t=*)
1062 program_transform_name=$ac_optarg ;;
1064 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1065 ac_prev=pdfdir ;;
1066 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1067 pdfdir=$ac_optarg ;;
1069 -psdir | --psdir | --psdi | --psd | --ps)
1070 ac_prev=psdir ;;
1071 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1072 psdir=$ac_optarg ;;
1074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1075 | -silent | --silent | --silen | --sile | --sil)
1076 silent=yes ;;
1078 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1079 ac_prev=sbindir ;;
1080 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1081 | --sbi=* | --sb=*)
1082 sbindir=$ac_optarg ;;
1084 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1085 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1086 | --sharedst | --shareds | --shared | --share | --shar \
1087 | --sha | --sh)
1088 ac_prev=sharedstatedir ;;
1089 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1090 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1091 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1092 | --sha=* | --sh=*)
1093 sharedstatedir=$ac_optarg ;;
1095 -site | --site | --sit)
1096 ac_prev=site ;;
1097 -site=* | --site=* | --sit=*)
1098 site=$ac_optarg ;;
1100 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1101 ac_prev=srcdir ;;
1102 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1103 srcdir=$ac_optarg ;;
1105 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1106 | --syscon | --sysco | --sysc | --sys | --sy)
1107 ac_prev=sysconfdir ;;
1108 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1109 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1110 sysconfdir=$ac_optarg ;;
1112 -target | --target | --targe | --targ | --tar | --ta | --t)
1113 ac_prev=target_alias ;;
1114 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1115 target_alias=$ac_optarg ;;
1117 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1118 verbose=yes ;;
1120 -version | --version | --versio | --versi | --vers | -V)
1121 ac_init_version=: ;;
1123 -with-* | --with-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1132 "with_$ac_useropt"
1133 "*) ;;
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1136 esac
1137 eval with_$ac_useropt=\$ac_optarg ;;
1139 -without-* | --without-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=no ;;
1155 --x)
1156 # Obsolete; use --with-x.
1157 with_x=yes ;;
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) as_fn_error "unrecognized option: \`$ac_option'
1174 Try \`$0 --help' for more information."
1177 *=*)
1178 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1179 # Reject names that are not valid shell variable names.
1180 case $ac_envvar in #(
1181 '' | [0-9]* | *[!_$as_cr_alnum]* )
1182 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1183 esac
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1195 esac
1196 done
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 as_fn_error "missing argument to $ac_option"
1203 if test -n "$ac_unrecognized_opts"; then
1204 case $enable_option_checking in
1205 no) ;;
1206 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1207 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1208 esac
1211 # Check all directory arguments for consistency.
1212 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1213 datadir sysconfdir sharedstatedir localstatedir includedir \
1214 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1215 libdir localedir mandir
1217 eval ac_val=\$$ac_var
1218 # Remove trailing slashes.
1219 case $ac_val in
1220 */ )
1221 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1222 eval $ac_var=\$ac_val;;
1223 esac
1224 # Be sure to have absolute directory names.
1225 case $ac_val in
1226 [\\/$]* | ?:[\\/]* ) continue;;
1227 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228 esac
1229 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1230 done
1232 # There might be people who depend on the old broken behavior: `$host'
1233 # used to hold the argument of --host etc.
1234 # FIXME: To remove some day.
1235 build=$build_alias
1236 host=$host_alias
1237 target=$target_alias
1239 # FIXME: To remove some day.
1240 if test "x$host_alias" != x; then
1241 if test "x$build_alias" = x; then
1242 cross_compiling=maybe
1243 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1244 If a cross compiler is detected then cross compile mode will be used." >&2
1245 elif test "x$build_alias" != "x$host_alias"; then
1246 cross_compiling=yes
1250 ac_tool_prefix=
1251 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253 test "$silent" = yes && exec 6>/dev/null
1256 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1257 ac_ls_di=`ls -di .` &&
1258 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1259 as_fn_error "working directory cannot be determined"
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 as_fn_error "pwd does not report name of working directory"
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$as_myself" ||
1269 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$as_myself" : 'X\(//\)[^/]' \| \
1271 X"$as_myself" : 'X\(//\)$' \| \
1272 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1273 $as_echo X"$as_myself" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1282 /^X\(\/\/\)$/{
1283 s//\1/
1286 /^X\(\/\).*/{
1287 s//\1/
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1295 else
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1302 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303 ac_abs_confdir=`(
1304 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1305 pwd)`
1306 # When building in place, set srcdir=.
1307 if test "$ac_abs_confdir" = "$ac_pwd"; then
1308 srcdir=.
1310 # Remove unnecessary trailing slashes from srcdir.
1311 # Double slashes in file names in object file debugging info
1312 # mess up M-x gdb in Emacs.
1313 case $srcdir in
1314 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315 esac
1316 for ac_var in $ac_precious_vars; do
1317 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1318 eval ac_env_${ac_var}_value=\$${ac_var}
1319 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1321 done
1324 # Report the --help message.
1326 if test "$ac_init_help" = "long"; then
1327 # Omit some internal or obsolete options to make the list less imposing.
1328 # This message is too long to be a string in the A/UX 3.1 sh.
1329 cat <<_ACEOF
1330 \`configure' configures GNU TM Runtime Library 1.0 to adapt to many kinds of systems.
1332 Usage: $0 [OPTION]... [VAR=VALUE]...
1334 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1335 VAR=VALUE. See below for descriptions of some of the useful variables.
1337 Defaults for the options are specified in brackets.
1339 Configuration:
1340 -h, --help display this help and exit
1341 --help=short display options specific to this package
1342 --help=recursive display the short help of all the included packages
1343 -V, --version display version information and exit
1344 -q, --quiet, --silent do not print \`checking...' messages
1345 --cache-file=FILE cache test results in FILE [disabled]
1346 -C, --config-cache alias for \`--cache-file=config.cache'
1347 -n, --no-create do not create output files
1348 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1350 Installation directories:
1351 --prefix=PREFIX install architecture-independent files in PREFIX
1352 [$ac_default_prefix]
1353 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1354 [PREFIX]
1356 By default, \`make install' will install all the files in
1357 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1358 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1359 for instance \`--prefix=\$HOME'.
1361 For better control, use the options below.
1363 Fine tuning of the installation directories:
1364 --bindir=DIR user executables [EPREFIX/bin]
1365 --sbindir=DIR system admin executables [EPREFIX/sbin]
1366 --libexecdir=DIR program executables [EPREFIX/libexec]
1367 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1368 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1369 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1370 --libdir=DIR object code libraries [EPREFIX/lib]
1371 --includedir=DIR C header files [PREFIX/include]
1372 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1373 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1374 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1375 --infodir=DIR info documentation [DATAROOTDIR/info]
1376 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1377 --mandir=DIR man documentation [DATAROOTDIR/man]
1378 --docdir=DIR documentation root [DATAROOTDIR/doc/libitm]
1379 --htmldir=DIR html documentation [DOCDIR]
1380 --dvidir=DIR dvi documentation [DOCDIR]
1381 --pdfdir=DIR pdf documentation [DOCDIR]
1382 --psdir=DIR ps documentation [DOCDIR]
1383 _ACEOF
1385 cat <<\_ACEOF
1387 Program names:
1388 --program-prefix=PREFIX prepend PREFIX to installed program names
1389 --program-suffix=SUFFIX append SUFFIX to installed program names
1390 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392 System types:
1393 --build=BUILD configure for building on BUILD [guessed]
1394 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1395 --target=TARGET configure for building compilers for TARGET [HOST]
1396 _ACEOF
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of GNU TM Runtime Library 1.0:";;
1402 esac
1403 cat <<\_ACEOF
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --enable-version-specific-runtime-libs
1410 Specify that runtime libraries should be installed
1411 in a compiler-specific directory [default=no]
1412 --enable-generated-files-in-srcdir
1413 put copies of generated files in source dir intended
1414 for creating source tarballs for users without
1415 texinfo bison or flex. [default=no]
1416 --enable-multilib build many library versions (default)
1417 --disable-dependency-tracking speeds up one-time build
1418 --enable-dependency-tracking do not reject slow dependency extractors
1419 --enable-shared[=PKGS] build shared libraries [default=yes]
1420 --enable-static[=PKGS] build static libraries [default=yes]
1421 --enable-fast-install[=PKGS]
1422 optimize for fast installation [default=yes]
1423 --disable-libtool-lock avoid locking (might break parallel builds)
1424 --enable-maintainer-mode enable make rules and dependencies not useful
1425 (and sometimes confusing) to the casual installer
1426 --enable-linux-futex use the Linux futex system call [default=default]
1427 --enable-tls Use thread-local storage [default=yes]
1428 --enable-symvers=STYLE enables symbol versioning of the shared library
1429 [default=yes]
1430 --enable-cet enable Intel CET in target libraries
1431 [default=default]
1433 Optional Packages:
1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1436 --with-pic try to use only PIC/non-PIC objects [default=use
1437 both]
1438 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1439 --with-gcc-major-version-only
1440 use only GCC major number in filesystem paths
1442 Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 CXX C++ compiler command
1451 CXXFLAGS C++ compiler flags
1452 CCAS assembler compiler command (defaults to CC)
1453 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1454 CPP C preprocessor
1455 CXXCPP C++ preprocessor
1457 Use these variables to override the choices made by `configure' or to help
1458 it to find libraries and programs with nonstandard names/locations.
1460 Report bugs to the package provider.
1461 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
1462 General help using GNU software: <http://www.gnu.org/gethelp/>.
1463 _ACEOF
1464 ac_status=$?
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472 continue
1473 ac_builddir=.
1475 case "$ac_dir" in
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 esac ;;
1485 esac
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1491 case $srcdir in
1492 .) # We are building in place.
1493 ac_srcdir=.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1500 *) # Relative name.
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504 esac
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1515 else
1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517 fi || ac_status=$?
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1519 done
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1524 cat <<\_ACEOF
1525 GNU TM Runtime Library configure 1.0
1526 generated by GNU Autoconf 2.64
1528 Copyright (C) 2009 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1531 _ACEOF
1532 exit
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1539 # ac_fn_c_try_compile LINENO
1540 # --------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1547 case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1565 ac_retval=0
1566 else
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1570 ac_retval=1
1572 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573 return $ac_retval
1575 } # ac_fn_c_try_compile
1577 # ac_fn_cxx_try_compile LINENO
1578 # ----------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_cxx_try_compile ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_cxx_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1608 ac_retval=1
1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1611 return $ac_retval
1613 } # ac_fn_cxx_try_compile
1615 # ac_fn_c_try_link LINENO
1616 # -----------------------
1617 # Try to link conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_link ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext conftest$ac_exeext
1622 if { { ac_try="$ac_link"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_link") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest$ac_exeext && {
1641 test "$cross_compiling" = yes ||
1642 $as_test_x conftest$ac_exeext
1643 }; then :
1644 ac_retval=0
1645 else
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1649 ac_retval=1
1651 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1652 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1653 # interfere with the next link command; also delete a directory that is
1654 # left behind by Apple's compiler. We do this before executing the actions.
1655 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1657 return $ac_retval
1659 } # ac_fn_c_try_link
1661 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1662 # -------------------------------------------------------
1663 # Tests whether HEADER exists and can be compiled using the include files in
1664 # INCLUDES, setting the cache variable VAR accordingly.
1665 ac_fn_c_check_header_compile ()
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1669 $as_echo_n "checking for $2... " >&6; }
1670 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1671 $as_echo_n "(cached) " >&6
1672 else
1673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1676 #include <$2>
1677 _ACEOF
1678 if ac_fn_c_try_compile "$LINENO"; then :
1679 eval "$3=yes"
1680 else
1681 eval "$3=no"
1683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1685 eval ac_res=\$$3
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1687 $as_echo "$ac_res" >&6; }
1688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1690 } # ac_fn_c_check_header_compile
1692 # ac_fn_c_try_cpp LINENO
1693 # ----------------------
1694 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_cpp ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } >/dev/null && {
1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1722 ac_retval=1
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 return $ac_retval
1727 } # ac_fn_c_try_cpp
1729 # ac_fn_c_try_run LINENO
1730 # ----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732 # that executables *can* be run.
1733 ac_fn_c_try_run ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747 { { case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_try") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; }; }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: program exited with status $ac_status" >&5
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1763 ac_retval=$ac_status
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767 return $ac_retval
1769 } # ac_fn_c_try_run
1771 # ac_fn_c_check_func LINENO FUNC VAR
1772 # ----------------------------------
1773 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1774 ac_fn_c_check_func ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1784 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1786 #define $2 innocuous_$2
1788 /* System header to define __stub macros and hopefully few prototypes,
1789 which can conflict with char $2 (); below.
1790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1791 <limits.h> exists even on freestanding compilers. */
1793 #ifdef __STDC__
1794 # include <limits.h>
1795 #else
1796 # include <assert.h>
1797 #endif
1799 #undef $2
1801 /* Override any GCC internal prototype to avoid an error.
1802 Use char because int might match the return type of a GCC
1803 builtin and then its argument prototype would still apply. */
1804 #ifdef __cplusplus
1805 extern "C"
1806 #endif
1807 char $2 ();
1808 /* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811 #if defined __stub_$2 || defined __stub___$2
1812 choke me
1813 #endif
1816 main ()
1818 return $2 ();
1820 return 0;
1822 _ACEOF
1823 if ac_fn_c_try_link "$LINENO"; then :
1824 eval "$3=yes"
1825 else
1826 eval "$3=no"
1828 rm -f core conftest.err conftest.$ac_objext \
1829 conftest$ac_exeext conftest.$ac_ext
1831 eval ac_res=\$$3
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 } # ac_fn_c_check_func
1838 # ac_fn_cxx_try_cpp LINENO
1839 # ------------------------
1840 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_cxx_try_cpp ()
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_cpp conftest.$ac_ext"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } >/dev/null && {
1860 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 }; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 ac_retval=1
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1873 } # ac_fn_cxx_try_cpp
1875 # ac_fn_cxx_try_link LINENO
1876 # -------------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_cxx_try_link ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 rm -f conftest.$ac_objext conftest$ac_exeext
1882 if { { ac_try="$ac_link"
1883 case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886 esac
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1890 ac_status=$?
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_cxx_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
1902 $as_test_x conftest$ac_exeext
1903 }; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 ac_retval=1
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 return $ac_retval
1919 } # ac_fn_cxx_try_link
1921 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1922 # -------------------------------------------------------
1923 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1924 # the include files in INCLUDES and setting the cache variable VAR
1925 # accordingly.
1926 ac_fn_c_check_header_mongrel ()
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1931 $as_echo_n "checking for $2... " >&6; }
1932 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1933 $as_echo_n "(cached) " >&6
1935 eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 else
1939 # Is the header compilable?
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1941 $as_echo_n "checking $2 usability... " >&6; }
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1945 #include <$2>
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 ac_header_compiler=yes
1949 else
1950 ac_header_compiler=no
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1954 $as_echo "$ac_header_compiler" >&6; }
1956 # Is the header present?
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1958 $as_echo_n "checking $2 presence... " >&6; }
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1961 #include <$2>
1962 _ACEOF
1963 if ac_fn_c_try_cpp "$LINENO"; then :
1964 ac_header_preproc=yes
1965 else
1966 ac_header_preproc=no
1968 rm -f conftest.err conftest.$ac_ext
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1970 $as_echo "$ac_header_preproc" >&6; }
1972 # So? What about this header?
1973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1974 yes:no: )
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1976 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1978 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1980 no:yes:* )
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1982 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1984 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1986 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1988 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1990 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1992 esac
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1996 $as_echo_n "(cached) " >&6
1997 else
1998 eval "$3=\$ac_header_compiler"
2000 eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2006 } # ac_fn_c_check_header_mongrel
2008 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2009 # -------------------------------------------
2010 # Tests whether TYPE exists after having included INCLUDES, setting cache
2011 # variable VAR accordingly.
2012 ac_fn_c_check_type ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018 $as_echo_n "(cached) " >&6
2019 else
2020 eval "$3=no"
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 :
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2038 main ()
2040 if (sizeof (($2)))
2041 return 0;
2043 return 0;
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2048 else
2049 eval "$3=yes"
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060 } # ac_fn_c_check_type
2062 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2063 # --------------------------------------------
2064 # Tries to find the compile-time value of EXPR in a program that includes
2065 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2066 # computed
2067 ac_fn_c_compute_int ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if test "$cross_compiling" = yes; then
2071 # Depending upon the size, compute the lo and hi bounds.
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2076 main ()
2078 static int test_array [1 - 2 * !(($2) >= 0)];
2079 test_array [0] = 0
2082 return 0;
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086 ac_lo=0 ac_mid=0
2087 while :; do
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2092 main ()
2094 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2095 test_array [0] = 0
2098 return 0;
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102 ac_hi=$ac_mid; break
2103 else
2104 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2105 if test $ac_lo -le $ac_mid; then
2106 ac_lo= ac_hi=
2107 break
2109 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 done
2113 else
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2118 main ()
2120 static int test_array [1 - 2 * !(($2) < 0)];
2121 test_array [0] = 0
2124 return 0;
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"; then :
2128 ac_hi=-1 ac_mid=-1
2129 while :; do
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2134 main ()
2136 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2137 test_array [0] = 0
2140 return 0;
2142 _ACEOF
2143 if ac_fn_c_try_compile "$LINENO"; then :
2144 ac_lo=$ac_mid; break
2145 else
2146 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2147 if test $ac_mid -le $ac_hi; then
2148 ac_lo= ac_hi=
2149 break
2151 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 done
2155 else
2156 ac_lo= ac_hi=
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 # Binary search between lo and hi bounds.
2162 while test "x$ac_lo" != "x$ac_hi"; do
2163 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2168 main ()
2170 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2171 test_array [0] = 0
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 ac_hi=$ac_mid
2179 else
2180 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 done
2184 case $ac_lo in #((
2185 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2186 '') ac_retval=1 ;;
2187 esac
2188 else
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2192 static long int longval () { return $2; }
2193 static unsigned long int ulongval () { return $2; }
2194 #include <stdio.h>
2195 #include <stdlib.h>
2197 main ()
2200 FILE *f = fopen ("conftest.val", "w");
2201 if (! f)
2202 return 1;
2203 if (($2) < 0)
2205 long int i = longval ();
2206 if (i != ($2))
2207 return 1;
2208 fprintf (f, "%ld", i);
2210 else
2212 unsigned long int i = ulongval ();
2213 if (i != ($2))
2214 return 1;
2215 fprintf (f, "%lu", i);
2217 /* Do not output a trailing newline, as this causes \r\n confusion
2218 on some platforms. */
2219 return ferror (f) || fclose (f) != 0;
2222 return 0;
2224 _ACEOF
2225 if ac_fn_c_try_run "$LINENO"; then :
2226 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2227 else
2228 ac_retval=1
2230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2231 conftest.$ac_objext conftest.beam conftest.$ac_ext
2232 rm -f conftest.val
2235 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2236 return $ac_retval
2238 } # ac_fn_c_compute_int
2240 # ac_fn_c_check_decl LINENO SYMBOL VAR
2241 # ------------------------------------
2242 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2243 ac_fn_c_check_decl ()
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 as_decl_name=`echo $2|sed 's/ *(.*//'`
2247 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2249 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2250 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2251 $as_echo_n "(cached) " >&6
2252 else
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2257 main ()
2259 #ifndef $as_decl_name
2260 #ifdef __cplusplus
2261 (void) $as_decl_use;
2262 #else
2263 (void) $as_decl_name;
2264 #endif
2265 #endif
2268 return 0;
2270 _ACEOF
2271 if ac_fn_c_try_compile "$LINENO"; then :
2272 eval "$3=yes"
2273 else
2274 eval "$3=no"
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 eval ac_res=\$$3
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2280 $as_echo "$ac_res" >&6; }
2281 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2283 } # ac_fn_c_check_decl
2284 cat >config.log <<_ACEOF
2285 This file contains any messages produced by compilers while
2286 running configure, to aid debugging if configure makes a mistake.
2288 It was created by GNU TM Runtime Library $as_me 1.0, which was
2289 generated by GNU Autoconf 2.64. Invocation command line was
2291 $ $0 $@
2293 _ACEOF
2294 exec 5>>config.log
2296 cat <<_ASUNAME
2297 ## --------- ##
2298 ## Platform. ##
2299 ## --------- ##
2301 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2302 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2303 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2304 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2305 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2307 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2308 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2310 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2311 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2312 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2313 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2314 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2315 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2316 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2318 _ASUNAME
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 for as_dir in $PATH
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 $as_echo "PATH: $as_dir"
2326 done
2327 IFS=$as_save_IFS
2329 } >&5
2331 cat >&5 <<_ACEOF
2334 ## ----------- ##
2335 ## Core tests. ##
2336 ## ----------- ##
2338 _ACEOF
2341 # Keep a trace of the command line.
2342 # Strip out --no-create and --no-recursion so they do not pile up.
2343 # Strip out --silent because we don't want to record it for future runs.
2344 # Also quote any args containing shell meta-characters.
2345 # Make two passes to allow for proper duplicate-argument suppression.
2346 ac_configure_args=
2347 ac_configure_args0=
2348 ac_configure_args1=
2349 ac_must_keep_next=false
2350 for ac_pass in 1 2
2352 for ac_arg
2354 case $ac_arg in
2355 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2356 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2357 | -silent | --silent | --silen | --sile | --sil)
2358 continue ;;
2359 *\'*)
2360 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2361 esac
2362 case $ac_pass in
2363 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2365 as_fn_append ac_configure_args1 " '$ac_arg'"
2366 if test $ac_must_keep_next = true; then
2367 ac_must_keep_next=false # Got value, back to normal.
2368 else
2369 case $ac_arg in
2370 *=* | --config-cache | -C | -disable-* | --disable-* \
2371 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2372 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2373 | -with-* | --with-* | -without-* | --without-* | --x)
2374 case "$ac_configure_args0 " in
2375 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2376 esac
2378 -* ) ac_must_keep_next=true ;;
2379 esac
2381 as_fn_append ac_configure_args " '$ac_arg'"
2383 esac
2384 done
2385 done
2386 { ac_configure_args0=; unset ac_configure_args0;}
2387 { ac_configure_args1=; unset ac_configure_args1;}
2389 # When interrupted or exit'd, cleanup temporary files, and complete
2390 # config.log. We remove comments because anyway the quotes in there
2391 # would cause problems or look ugly.
2392 # WARNING: Use '\'' to represent an apostrophe within the trap.
2393 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2394 trap 'exit_status=$?
2395 # Save into config.log some information that might help in debugging.
2397 echo
2399 cat <<\_ASBOX
2400 ## ---------------- ##
2401 ## Cache variables. ##
2402 ## ---------------- ##
2403 _ASBOX
2404 echo
2405 # The following way of writing the cache mishandles newlines in values,
2407 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2408 eval ac_val=\$$ac_var
2409 case $ac_val in #(
2410 *${as_nl}*)
2411 case $ac_var in #(
2412 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2413 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2414 esac
2415 case $ac_var in #(
2416 _ | IFS | as_nl) ;; #(
2417 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2418 *) { eval $ac_var=; unset $ac_var;} ;;
2419 esac ;;
2420 esac
2421 done
2422 (set) 2>&1 |
2423 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2424 *${as_nl}ac_space=\ *)
2425 sed -n \
2426 "s/'\''/'\''\\\\'\'''\''/g;
2427 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2428 ;; #(
2430 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2432 esac |
2433 sort
2435 echo
2437 cat <<\_ASBOX
2438 ## ----------------- ##
2439 ## Output variables. ##
2440 ## ----------------- ##
2441 _ASBOX
2442 echo
2443 for ac_var in $ac_subst_vars
2445 eval ac_val=\$$ac_var
2446 case $ac_val in
2447 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2448 esac
2449 $as_echo "$ac_var='\''$ac_val'\''"
2450 done | sort
2451 echo
2453 if test -n "$ac_subst_files"; then
2454 cat <<\_ASBOX
2455 ## ------------------- ##
2456 ## File substitutions. ##
2457 ## ------------------- ##
2458 _ASBOX
2459 echo
2460 for ac_var in $ac_subst_files
2462 eval ac_val=\$$ac_var
2463 case $ac_val in
2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 esac
2466 $as_echo "$ac_var='\''$ac_val'\''"
2467 done | sort
2468 echo
2471 if test -s confdefs.h; then
2472 cat <<\_ASBOX
2473 ## ----------- ##
2474 ## confdefs.h. ##
2475 ## ----------- ##
2476 _ASBOX
2477 echo
2478 cat confdefs.h
2479 echo
2481 test "$ac_signal" != 0 &&
2482 $as_echo "$as_me: caught signal $ac_signal"
2483 $as_echo "$as_me: exit $exit_status"
2484 } >&5
2485 rm -f core *.core core.conftest.* &&
2486 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2487 exit $exit_status
2489 for ac_signal in 1 2 13 15; do
2490 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2491 done
2492 ac_signal=0
2494 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2495 rm -f -r conftest* confdefs.h
2497 $as_echo "/* confdefs.h */" > confdefs.h
2499 # Predefined preprocessor variables.
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_NAME "$PACKAGE_NAME"
2503 _ACEOF
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2507 _ACEOF
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2511 _ACEOF
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_STRING "$PACKAGE_STRING"
2515 _ACEOF
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2519 _ACEOF
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_URL "$PACKAGE_URL"
2523 _ACEOF
2526 # Let the site file select an alternate cache file if it wants to.
2527 # Prefer an explicitly selected file to automatically selected ones.
2528 ac_site_file1=NONE
2529 ac_site_file2=NONE
2530 if test -n "$CONFIG_SITE"; then
2531 ac_site_file1=$CONFIG_SITE
2532 elif test "x$prefix" != xNONE; then
2533 ac_site_file1=$prefix/share/config.site
2534 ac_site_file2=$prefix/etc/config.site
2535 else
2536 ac_site_file1=$ac_default_prefix/share/config.site
2537 ac_site_file2=$ac_default_prefix/etc/config.site
2539 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2541 test "x$ac_site_file" = xNONE && continue
2542 if test -r "$ac_site_file"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2544 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2545 sed 's/^/| /' "$ac_site_file" >&5
2546 . "$ac_site_file"
2548 done
2550 if test -r "$cache_file"; then
2551 # Some versions of bash will fail to source /dev/null (special
2552 # files actually), so we avoid doing that.
2553 if test -f "$cache_file"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2555 $as_echo "$as_me: loading cache $cache_file" >&6;}
2556 case $cache_file in
2557 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2558 *) . "./$cache_file";;
2559 esac
2561 else
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2563 $as_echo "$as_me: creating cache $cache_file" >&6;}
2564 >$cache_file
2567 # Check that the precious variables saved in the cache have kept the same
2568 # value.
2569 ac_cache_corrupted=false
2570 for ac_var in $ac_precious_vars; do
2571 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2572 eval ac_new_set=\$ac_env_${ac_var}_set
2573 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2574 eval ac_new_val=\$ac_env_${ac_var}_value
2575 case $ac_old_set,$ac_new_set in
2576 set,)
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2578 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2579 ac_cache_corrupted=: ;;
2580 ,set)
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2582 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2583 ac_cache_corrupted=: ;;
2584 ,);;
2586 if test "x$ac_old_val" != "x$ac_new_val"; then
2587 # differences in whitespace do not lead to failure.
2588 ac_old_val_w=`echo x $ac_old_val`
2589 ac_new_val_w=`echo x $ac_new_val`
2590 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2592 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2593 ac_cache_corrupted=:
2594 else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2596 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2597 eval $ac_var=\$ac_old_val
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2600 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2602 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2603 fi;;
2604 esac
2605 # Pass precious variables to config.status.
2606 if test "$ac_new_set" = set; then
2607 case $ac_new_val in
2608 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2609 *) ac_arg=$ac_var=$ac_new_val ;;
2610 esac
2611 case " $ac_configure_args " in
2612 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2613 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2614 esac
2616 done
2617 if $ac_cache_corrupted; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2621 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2622 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2624 ## -------------------- ##
2625 ## Main body of script. ##
2626 ## -------------------- ##
2628 ac_ext=c
2629 ac_cpp='$CPP $CPPFLAGS'
2630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2638 ac_config_headers="$ac_config_headers config.h"
2641 # -------
2642 # Options
2643 # -------
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2646 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2647 # Check whether --enable-version-specific-runtime-libs was given.
2648 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2649 enableval=$enable_version_specific_runtime_libs;
2650 case "$enableval" in
2651 yes|no) ;;
2652 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2653 esac
2655 else
2656 enable_version_specific_runtime_libs=no
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2661 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2663 # We would like our source tree to be readonly. However when releases or
2664 # pre-releases are generated, the flex/bison generated files as well as the
2665 # various formats of manuals need to be included along with the rest of the
2666 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2667 # just that.
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2669 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2670 # Check whether --enable-generated-files-in-srcdir was given.
2671 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2672 enableval=$enable_generated_files_in_srcdir;
2673 case "$enableval" in
2674 yes|no) ;;
2675 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2676 esac
2678 else
2679 enable_generated_files_in_srcdir=no
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2684 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2685 if test "$enable_generated_files_in_srcdir" = yes; then
2686 GENINSRC_TRUE=
2687 GENINSRC_FALSE='#'
2688 else
2689 GENINSRC_TRUE='#'
2690 GENINSRC_FALSE=
2695 # -------
2696 # -------
2698 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2700 # You will slowly go insane if you do not grok the following fact: when
2701 # building this library, the top-level /target/ becomes the library's /host/.
2703 # configure then causes --target to default to --host, exactly like any
2704 # other package using autoconf. Therefore, 'target' and 'host' will
2705 # always be the same. This makes sense both for native and cross compilers
2706 # just think about it for a little while. :-)
2708 # Also, if this library is being configured as part of a cross compiler, the
2709 # top-level configure script will pass the "real" host as $with_cross_host.
2711 # Do not delete or change the following two lines. For why, see
2712 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2713 ac_aux_dir=
2714 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2715 for ac_t in install-sh install.sh shtool; do
2716 if test -f "$ac_dir/$ac_t"; then
2717 ac_aux_dir=$ac_dir
2718 ac_install_sh="$ac_aux_dir/$ac_t -c"
2719 break 2
2721 done
2722 done
2723 if test -z "$ac_aux_dir"; then
2724 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2727 # These three variables are undocumented and unsupported,
2728 # and are intended to be withdrawn in a future Autoconf release.
2729 # They can cause serious problems if a builder's source tree is in a directory
2730 # whose full name contains unusual characters.
2731 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2732 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2733 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2736 # Make sure we can run config.sub.
2737 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2738 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2741 $as_echo_n "checking build system type... " >&6; }
2742 if test "${ac_cv_build+set}" = set; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 ac_build_alias=$build_alias
2746 test "x$ac_build_alias" = x &&
2747 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2748 test "x$ac_build_alias" = x &&
2749 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2750 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2751 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2755 $as_echo "$ac_cv_build" >&6; }
2756 case $ac_cv_build in
2757 *-*-*) ;;
2758 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2759 esac
2760 build=$ac_cv_build
2761 ac_save_IFS=$IFS; IFS='-'
2762 set x $ac_cv_build
2763 shift
2764 build_cpu=$1
2765 build_vendor=$2
2766 shift; shift
2767 # Remember, the first character of IFS is used to create $*,
2768 # except with old shells:
2769 build_os=$*
2770 IFS=$ac_save_IFS
2771 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2775 $as_echo_n "checking host system type... " >&6; }
2776 if test "${ac_cv_host+set}" = set; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test "x$host_alias" = x; then
2780 ac_cv_host=$ac_cv_build
2781 else
2782 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2783 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2788 $as_echo "$ac_cv_host" >&6; }
2789 case $ac_cv_host in
2790 *-*-*) ;;
2791 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2792 esac
2793 host=$ac_cv_host
2794 ac_save_IFS=$IFS; IFS='-'
2795 set x $ac_cv_host
2796 shift
2797 host_cpu=$1
2798 host_vendor=$2
2799 shift; shift
2800 # Remember, the first character of IFS is used to create $*,
2801 # except with old shells:
2802 host_os=$*
2803 IFS=$ac_save_IFS
2804 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2808 $as_echo_n "checking target system type... " >&6; }
2809 if test "${ac_cv_target+set}" = set; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test "x$target_alias" = x; then
2813 ac_cv_target=$ac_cv_host
2814 else
2815 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2816 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2821 $as_echo "$ac_cv_target" >&6; }
2822 case $ac_cv_target in
2823 *-*-*) ;;
2824 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2825 esac
2826 target=$ac_cv_target
2827 ac_save_IFS=$IFS; IFS='-'
2828 set x $ac_cv_target
2829 shift
2830 target_cpu=$1
2831 target_vendor=$2
2832 shift; shift
2833 # Remember, the first character of IFS is used to create $*,
2834 # except with old shells:
2835 target_os=$*
2836 IFS=$ac_save_IFS
2837 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2840 # The aliases save the names the user supplied, while $host etc.
2841 # will get canonicalized.
2842 test -n "$target_alias" &&
2843 test "$program_prefix$program_suffix$program_transform_name" = \
2844 NONENONEs,x,x, &&
2845 program_prefix=${target_alias}-
2847 target_alias=${target_alias-$host_alias}
2849 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2850 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2851 # 1.9.0: minimum required version
2852 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2853 # of other PACKAGE_* variables will, however, and there's nothing
2854 # we can do about that; they come from AC_INIT).
2855 # no-dist: we don't want 'dist' and related rules.
2856 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2857 # file in the top srcdir, etc, etc), so stop complaining.
2858 # -Wall: turns on all automake warnings...
2859 # -Wno-portability: ...except this one, since GNU make is required.
2860 # -Wno-override: ... and this one, since we do want this in testsuite.
2861 am__api_version='1.11'
2863 # Find a good install program. We prefer a C program (faster),
2864 # so one script is as good as another. But avoid the broken or
2865 # incompatible versions:
2866 # SysV /etc/install, /usr/sbin/install
2867 # SunOS /usr/etc/install
2868 # IRIX /sbin/install
2869 # AIX /bin/install
2870 # AmigaOS /C/install, which installs bootblocks on floppy discs
2871 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2872 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2873 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2874 # OS/2's system install, which has a completely different semantic
2875 # ./install, which can be erroneously created by make from ./install.sh.
2876 # Reject install programs that cannot install multiple files.
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2878 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2879 if test -z "$INSTALL"; then
2880 if test "${ac_cv_path_install+set}" = set; then :
2881 $as_echo_n "(cached) " >&6
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 # Account for people who put trailing slashes in PATH elements.
2889 case $as_dir/ in #((
2890 ./ | .// | /[cC]/* | \
2891 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2892 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2893 /usr/ucb/* ) ;;
2895 # OSF1 and SCO ODT 3.0 have their own names for install.
2896 # Don't use installbsd from OSF since it installs stuff as root
2897 # by default.
2898 for ac_prog in ginstall scoinst install; do
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2901 if test $ac_prog = install &&
2902 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2903 # AIX install. It has an incompatible calling convention.
2905 elif test $ac_prog = install &&
2906 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2907 # program-specific install script used by HP pwplus--don't use.
2909 else
2910 rm -rf conftest.one conftest.two conftest.dir
2911 echo one > conftest.one
2912 echo two > conftest.two
2913 mkdir conftest.dir
2914 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2915 test -s conftest.one && test -s conftest.two &&
2916 test -s conftest.dir/conftest.one &&
2917 test -s conftest.dir/conftest.two
2918 then
2919 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2920 break 3
2924 done
2925 done
2927 esac
2929 done
2930 IFS=$as_save_IFS
2932 rm -rf conftest.one conftest.two conftest.dir
2935 if test "${ac_cv_path_install+set}" = set; then
2936 INSTALL=$ac_cv_path_install
2937 else
2938 # As a last resort, use the slow shell script. Don't cache a
2939 # value for INSTALL within a source directory, because that will
2940 # break other packages using the cache if that directory is
2941 # removed, or if the value is a relative name.
2942 INSTALL=$ac_install_sh
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2946 $as_echo "$INSTALL" >&6; }
2948 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2949 # It thinks the first close brace ends the variable substitution.
2950 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2952 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2954 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2957 $as_echo_n "checking whether build environment is sane... " >&6; }
2958 # Just in case
2959 sleep 1
2960 echo timestamp > conftest.file
2961 # Reject unsafe characters in $srcdir or the absolute working directory
2962 # name. Accept space and tab only in the latter.
2963 am_lf='
2965 case `pwd` in
2966 *[\\\"\#\$\&\'\`$am_lf]*)
2967 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2968 esac
2969 case $srcdir in
2970 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2971 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2972 esac
2974 # Do `set' in a subshell so we don't clobber the current shell's
2975 # arguments. Must try -L first in case configure is actually a
2976 # symlink; some systems play weird games with the mod time of symlinks
2977 # (eg FreeBSD returns the mod time of the symlink's containing
2978 # directory).
2979 if (
2980 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2981 if test "$*" = "X"; then
2982 # -L didn't work.
2983 set X `ls -t "$srcdir/configure" conftest.file`
2985 rm -f conftest.file
2986 if test "$*" != "X $srcdir/configure conftest.file" \
2987 && test "$*" != "X conftest.file $srcdir/configure"; then
2989 # If neither matched, then we have a broken ls. This can happen
2990 # if, for instance, CONFIG_SHELL is bash and it inherits a
2991 # broken ls alias from the environment. This has actually
2992 # happened. Such a system could not be considered "sane".
2993 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2994 alias in your environment" "$LINENO" 5
2997 test "$2" = conftest.file
2999 then
3000 # Ok.
3002 else
3003 as_fn_error "newly created file is older than distributed files!
3004 Check your system clock" "$LINENO" 5
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3007 $as_echo "yes" >&6; }
3008 test "$program_prefix" != NONE &&
3009 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3010 # Use a double $ so make ignores it.
3011 test "$program_suffix" != NONE &&
3012 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3013 # Double any \ or $.
3014 # By default was `s,x,x', remove it if useless.
3015 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3016 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3018 # expand $ac_aux_dir to an absolute path
3019 am_aux_dir=`cd $ac_aux_dir && pwd`
3021 if test x"${MISSING+set}" != xset; then
3022 case $am_aux_dir in
3023 *\ * | *\ *)
3024 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3026 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3027 esac
3029 # Use eval to expand $SHELL
3030 if eval "$MISSING --run true"; then
3031 am_missing_run="$MISSING --run "
3032 else
3033 am_missing_run=
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3035 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3038 if test x"${install_sh}" != xset; then
3039 case $am_aux_dir in
3040 *\ * | *\ *)
3041 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3043 install_sh="\${SHELL} $am_aux_dir/install-sh"
3044 esac
3047 # Installed binaries are usually stripped using `strip' when the user
3048 # run `make install-strip'. However `strip' might not be the right
3049 # tool to use in cross-compilation environments, therefore Automake
3050 # will honor the `STRIP' environment variable to overrule this program.
3051 if test "$cross_compiling" != no; then
3052 if test -n "$ac_tool_prefix"; then
3053 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3054 set dummy ${ac_tool_prefix}strip; ac_word=$2
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056 $as_echo_n "checking for $ac_word... " >&6; }
3057 if test "${ac_cv_prog_STRIP+set}" = set; then :
3058 $as_echo_n "(cached) " >&6
3059 else
3060 if test -n "$STRIP"; then
3061 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3062 else
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3070 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3074 done
3075 done
3076 IFS=$as_save_IFS
3080 STRIP=$ac_cv_prog_STRIP
3081 if test -n "$STRIP"; then
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3083 $as_echo "$STRIP" >&6; }
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3091 if test -z "$ac_cv_prog_STRIP"; then
3092 ac_ct_STRIP=$STRIP
3093 # Extract the first word of "strip", so it can be a program name with args.
3094 set dummy strip; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$ac_ct_STRIP"; then
3101 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_ac_ct_STRIP="strip"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3114 done
3115 done
3116 IFS=$as_save_IFS
3120 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3121 if test -n "$ac_ct_STRIP"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3123 $as_echo "$ac_ct_STRIP" >&6; }
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3129 if test "x$ac_ct_STRIP" = x; then
3130 STRIP=":"
3131 else
3132 case $cross_compiling:$ac_tool_warned in
3133 yes:)
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3136 ac_tool_warned=yes ;;
3137 esac
3138 STRIP=$ac_ct_STRIP
3140 else
3141 STRIP="$ac_cv_prog_STRIP"
3145 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3148 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3149 if test -z "$MKDIR_P"; then
3150 if test "${ac_cv_path_mkdir+set}" = set; then :
3151 $as_echo_n "(cached) " >&6
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3156 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=.
3158 for ac_prog in mkdir gmkdir; do
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3161 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3162 'mkdir (GNU coreutils) '* | \
3163 'mkdir (coreutils) '* | \
3164 'mkdir (fileutils) '4.1*)
3165 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3166 break 3;;
3167 esac
3168 done
3169 done
3170 done
3171 IFS=$as_save_IFS
3175 if test "${ac_cv_path_mkdir+set}" = set; then
3176 MKDIR_P="$ac_cv_path_mkdir -p"
3177 else
3178 # As a last resort, use the slow shell script. Don't cache a
3179 # value for MKDIR_P within a source directory, because that will
3180 # break other packages using the cache if that directory is
3181 # removed, or if the value is a relative name.
3182 test -d ./--version && rmdir ./--version
3183 MKDIR_P="$ac_install_sh -d"
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3187 $as_echo "$MKDIR_P" >&6; }
3189 mkdir_p="$MKDIR_P"
3190 case $mkdir_p in
3191 [\\/$]* | ?:[\\/]*) ;;
3192 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3193 esac
3195 for ac_prog in gawk mawk nawk awk
3197 # Extract the first word of "$ac_prog", so it can be a program name with args.
3198 set dummy $ac_prog; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if test "${ac_cv_prog_AWK+set}" = set; then :
3202 $as_echo_n "(cached) " >&6
3203 else
3204 if test -n "$AWK"; then
3205 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3206 else
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214 ac_cv_prog_AWK="$ac_prog"
3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 break 2
3218 done
3219 done
3220 IFS=$as_save_IFS
3224 AWK=$ac_cv_prog_AWK
3225 if test -n "$AWK"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3227 $as_echo "$AWK" >&6; }
3228 else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3234 test -n "$AWK" && break
3235 done
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3238 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3239 set x ${MAKE-make}
3240 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3241 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 cat >conftest.make <<\_ACEOF
3245 SHELL = /bin/sh
3246 all:
3247 @echo '@@@%%%=$(MAKE)=@@@%%%'
3248 _ACEOF
3249 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3250 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3251 *@@@%%%=?*=@@@%%%*)
3252 eval ac_cv_prog_make_${ac_make}_set=yes;;
3254 eval ac_cv_prog_make_${ac_make}_set=no;;
3255 esac
3256 rm -f conftest.make
3258 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3260 $as_echo "yes" >&6; }
3261 SET_MAKE=
3262 else
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 SET_MAKE="MAKE=${MAKE-make}"
3268 rm -rf .tst 2>/dev/null
3269 mkdir .tst 2>/dev/null
3270 if test -d .tst; then
3271 am__leading_dot=.
3272 else
3273 am__leading_dot=_
3275 rmdir .tst 2>/dev/null
3277 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3278 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3279 # is not polluted with repeated "-I."
3280 am__isrc=' -I$(srcdir)'
3281 # test to see if srcdir already configured
3282 if test -f $srcdir/config.status; then
3283 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3287 # test whether we have cygpath
3288 if test -z "$CYGPATH_W"; then
3289 if (cygpath --version) >/dev/null 2>/dev/null; then
3290 CYGPATH_W='cygpath -w'
3291 else
3292 CYGPATH_W=echo
3297 # Define the identity of the package.
3298 PACKAGE='libitm'
3299 VERSION='1.0'
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE "$PACKAGE"
3304 _ACEOF
3307 cat >>confdefs.h <<_ACEOF
3308 #define VERSION "$VERSION"
3309 _ACEOF
3311 # Some tools Automake needs.
3313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3327 # We need awk for the "check" target. The system "awk" is bad on
3328 # some platforms.
3329 # Always define AMTAR for backward compatibility. Yes, it's still used
3330 # in the wild :-( We should find a proper way to deprecate it ...
3331 AMTAR='$${TAR-tar}'
3333 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3339 # Default to --enable-multilib
3340 # Check whether --enable-multilib was given.
3341 if test "${enable_multilib+set}" = set; then :
3342 enableval=$enable_multilib; case "$enableval" in
3343 yes) multilib=yes ;;
3344 no) multilib=no ;;
3345 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3346 esac
3347 else
3348 multilib=yes
3352 # We may get other options which we leave undocumented:
3353 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3354 # See config-ml.in if you want the gory details.
3356 if test "$srcdir" = "."; then
3357 if test "$with_target_subdir" != "."; then
3358 multi_basedir="$srcdir/$with_multisrctop../.."
3359 else
3360 multi_basedir="$srcdir/$with_multisrctop.."
3362 else
3363 multi_basedir="$srcdir/.."
3367 # Even if the default multilib is not a cross compilation,
3368 # it may be that some of the other multilibs are.
3369 if test $cross_compiling = no && test $multilib = yes \
3370 && test "x${with_multisubdir}" != x ; then
3371 cross_compiling=maybe
3374 ac_config_commands="$ac_config_commands default-1"
3377 # Calculate toolexeclibdir
3378 # Also toolexecdir, though it's only used in toolexeclibdir
3379 case ${enable_version_specific_runtime_libs} in
3380 yes)
3381 # Need the gcc compiler version to know where to install libraries
3382 # and header files if --enable-version-specific-runtime-libs option
3383 # is selected.
3384 toolexecdir='$(libdir)/gcc/$(target_alias)'
3385 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3388 if test -n "$with_cross_host" &&
3389 test x"$with_cross_host" != x"no"; then
3390 # Install a library built with a cross compiler in tooldir, not libdir.
3391 toolexecdir='$(exec_prefix)/$(target_alias)'
3392 toolexeclibdir='$(toolexecdir)/lib'
3393 else
3394 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3395 toolexeclibdir='$(libdir)'
3397 multi_os_directory=`$CC -print-multi-os-directory`
3398 case $multi_os_directory in
3399 .) ;; # Avoid trailing /.
3400 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3401 esac
3403 esac
3407 # Check the compiler.
3408 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3409 # We must force CC to /not/ be precious variables; otherwise
3410 # the wrong, non-multilib-adjusted value will be used in multilibs.
3411 # As a side effect, we have to subst CFLAGS ourselves.
3415 ac_ext=c
3416 ac_cpp='$CPP $CPPFLAGS'
3417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3420 if test -n "$ac_tool_prefix"; then
3421 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3422 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if test "${ac_cv_prog_CC+set}" = set; then :
3426 $as_echo_n "(cached) " >&6
3427 else
3428 if test -n "$CC"; then
3429 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 break 2
3442 done
3443 done
3444 IFS=$as_save_IFS
3448 CC=$ac_cv_prog_CC
3449 if test -n "$CC"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451 $as_echo "$CC" >&6; }
3452 else
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3459 if test -z "$ac_cv_prog_CC"; then
3460 ac_ct_CC=$CC
3461 # Extract the first word of "gcc", so it can be a program name with args.
3462 set dummy gcc; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 if test -n "$ac_ct_CC"; then
3469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3474 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=.
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478 ac_cv_prog_ac_ct_CC="gcc"
3479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 break 2
3482 done
3483 done
3484 IFS=$as_save_IFS
3488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3489 if test -n "$ac_ct_CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3491 $as_echo "$ac_ct_CC" >&6; }
3492 else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3497 if test "x$ac_ct_CC" = x; then
3498 CC=""
3499 else
3500 case $cross_compiling:$ac_tool_warned in
3501 yes:)
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3504 ac_tool_warned=yes ;;
3505 esac
3506 CC=$ac_ct_CC
3508 else
3509 CC="$ac_cv_prog_CC"
3512 if test -z "$CC"; then
3513 if test -n "$ac_tool_prefix"; then
3514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3515 set dummy ${ac_tool_prefix}cc; ac_word=$2
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3517 $as_echo_n "checking for $ac_word... " >&6; }
3518 if test "${ac_cv_prog_CC+set}" = set; then :
3519 $as_echo_n "(cached) " >&6
3520 else
3521 if test -n "$CC"; then
3522 ac_cv_prog_CC="$CC" # Let the user override the test.
3523 else
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 ac_cv_prog_CC="${ac_tool_prefix}cc"
3532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3533 break 2
3535 done
3536 done
3537 IFS=$as_save_IFS
3541 CC=$ac_cv_prog_CC
3542 if test -n "$CC"; then
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3544 $as_echo "$CC" >&6; }
3545 else
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 $as_echo "no" >&6; }
3553 if test -z "$CC"; then
3554 # Extract the first word of "cc", so it can be a program name with args.
3555 set dummy cc; 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 ac_prog_rejected=no
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 for as_dir in $PATH
3568 IFS=$as_save_IFS
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3573 ac_prog_rejected=yes
3574 continue
3576 ac_cv_prog_CC="cc"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 break 2
3580 done
3581 done
3582 IFS=$as_save_IFS
3584 if test $ac_prog_rejected = yes; then
3585 # We found a bogon in the path, so make sure we never use it.
3586 set dummy $ac_cv_prog_CC
3587 shift
3588 if test $# != 0; then
3589 # We chose a different compiler from the bogus one.
3590 # However, it has the same basename, so the bogon will be chosen
3591 # first if we set CC to just the basename; use the full file name.
3592 shift
3593 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3598 CC=$ac_cv_prog_CC
3599 if test -n "$CC"; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3601 $as_echo "$CC" >&6; }
3602 else
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3609 if test -z "$CC"; then
3610 if test -n "$ac_tool_prefix"; then
3611 for ac_prog in cl.exe
3613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3616 $as_echo_n "checking for $ac_word... " >&6; }
3617 if test "${ac_cv_prog_CC+set}" = set; then :
3618 $as_echo_n "(cached) " >&6
3619 else
3620 if test -n "$CC"; then
3621 ac_cv_prog_CC="$CC" # Let the user override the test.
3622 else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH
3626 IFS=$as_save_IFS
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3630 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632 break 2
3634 done
3635 done
3636 IFS=$as_save_IFS
3640 CC=$ac_cv_prog_CC
3641 if test -n "$CC"; then
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3643 $as_echo "$CC" >&6; }
3644 else
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 $as_echo "no" >&6; }
3650 test -n "$CC" && break
3651 done
3653 if test -z "$CC"; then
3654 ac_ct_CC=$CC
3655 for ac_prog in cl.exe
3657 # Extract the first word of "$ac_prog", so it can be a program name with args.
3658 set dummy $ac_prog; ac_word=$2
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660 $as_echo_n "checking for $ac_word... " >&6; }
3661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 if test -n "$ac_ct_CC"; then
3665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3666 else
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 for as_dir in $PATH
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3674 ac_cv_prog_ac_ct_CC="$ac_prog"
3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 break 2
3678 done
3679 done
3680 IFS=$as_save_IFS
3684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3685 if test -n "$ac_ct_CC"; then
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3687 $as_echo "$ac_ct_CC" >&6; }
3688 else
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3694 test -n "$ac_ct_CC" && break
3695 done
3697 if test "x$ac_ct_CC" = x; then
3698 CC=""
3699 else
3700 case $cross_compiling:$ac_tool_warned in
3701 yes:)
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3704 ac_tool_warned=yes ;;
3705 esac
3706 CC=$ac_ct_CC
3713 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error "no acceptable C compiler found in \$PATH
3716 See \`config.log' for more details." "$LINENO" 5; }
3718 # Provide some information about the compiler.
3719 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3720 set X $ac_compile
3721 ac_compiler=$2
3722 for ac_option in --version -v -V -qversion; do
3723 { { ac_try="$ac_compiler $ac_option >&5"
3724 case "(($ac_try" in
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3727 esac
3728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3731 ac_status=$?
3732 if test -s conftest.err; then
3733 sed '10a\
3734 ... rest of stderr output deleted ...
3735 10q' conftest.err >conftest.er1
3736 cat conftest.er1 >&5
3737 rm -f conftest.er1 conftest.err
3739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740 test $ac_status = 0; }
3741 done
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3747 main ()
3751 return 0;
3753 _ACEOF
3754 ac_clean_files_save=$ac_clean_files
3755 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3756 # Try to create an executable without -o first, disregard a.out.
3757 # It will help us diagnose broken compilers, and finding out an intuition
3758 # of exeext.
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3760 $as_echo_n "checking for C compiler default output file name... " >&6; }
3761 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3763 # The possible output files:
3764 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3766 ac_rmfiles=
3767 for ac_file in $ac_files
3769 case $ac_file in
3770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3771 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3772 esac
3773 done
3774 rm -f $ac_rmfiles
3776 if { { ac_try="$ac_link_default"
3777 case "(($ac_try" in
3778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779 *) ac_try_echo=$ac_try;;
3780 esac
3781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3782 $as_echo "$ac_try_echo"; } >&5
3783 (eval "$ac_link_default") 2>&5
3784 ac_status=$?
3785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786 test $ac_status = 0; }; then :
3787 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3788 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3789 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3790 # so that the user can short-circuit this test for compilers unknown to
3791 # Autoconf.
3792 for ac_file in $ac_files ''
3794 test -f "$ac_file" || continue
3795 case $ac_file in
3796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3798 [ab].out )
3799 # We found the default executable, but exeext='' is most
3800 # certainly right.
3801 break;;
3802 *.* )
3803 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3804 then :; else
3805 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3807 # We set ac_cv_exeext here because the later test for it is not
3808 # safe: cross compilers may not add the suffix if given an `-o'
3809 # argument, so we may need to know it at that point already.
3810 # Even if this section looks crufty: it has the advantage of
3811 # actually working.
3812 break;;
3814 break;;
3815 esac
3816 done
3817 test "$ac_cv_exeext" = no && ac_cv_exeext=
3819 else
3820 ac_file=''
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3823 $as_echo "$ac_file" >&6; }
3824 if test -z "$ac_file"; then :
3825 $as_echo "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 { as_fn_set_status 77
3831 as_fn_error "C compiler cannot create executables
3832 See \`config.log' for more details." "$LINENO" 5; }; }
3834 ac_exeext=$ac_cv_exeext
3836 # Check that the compiler produces executables we can run. If not, either
3837 # the compiler is broken, or we cross compile.
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3839 $as_echo_n "checking whether the C compiler works... " >&6; }
3840 # If not cross compiling, check that we can run a simple program.
3841 if test "$cross_compiling" != yes; then
3842 if { ac_try='./$ac_file'
3843 { { case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848 $as_echo "$ac_try_echo"; } >&5
3849 (eval "$ac_try") 2>&5
3850 ac_status=$?
3851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3852 test $ac_status = 0; }; }; then
3853 cross_compiling=no
3854 else
3855 if test "$cross_compiling" = maybe; then
3856 cross_compiling=yes
3857 else
3858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3860 as_fn_error "cannot run C compiled programs.
3861 If you meant to cross compile, use \`--host'.
3862 See \`config.log' for more details." "$LINENO" 5; }
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3867 $as_echo "yes" >&6; }
3869 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3870 ac_clean_files=$ac_clean_files_save
3871 # Check that the compiler produces executables we can run. If not, either
3872 # the compiler is broken, or we cross compile.
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3874 $as_echo_n "checking whether we are cross compiling... " >&6; }
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3876 $as_echo "$cross_compiling" >&6; }
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3879 $as_echo_n "checking for suffix of executables... " >&6; }
3880 if { { ac_try="$ac_link"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 $as_echo "$ac_try_echo"; } >&5
3887 (eval "$ac_link") 2>&5
3888 ac_status=$?
3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }; then :
3891 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3892 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3893 # work properly (i.e., refer to `conftest.exe'), while it won't with
3894 # `rm'.
3895 for ac_file in conftest.exe conftest conftest.*; do
3896 test -f "$ac_file" || continue
3897 case $ac_file in
3898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3899 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3900 break;;
3901 * ) break;;
3902 esac
3903 done
3904 else
3905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907 as_fn_error "cannot compute suffix of executables: cannot compile and link
3908 See \`config.log' for more details." "$LINENO" 5; }
3910 rm -f conftest$ac_cv_exeext
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3912 $as_echo "$ac_cv_exeext" >&6; }
3914 rm -f conftest.$ac_ext
3915 EXEEXT=$ac_cv_exeext
3916 ac_exeext=$EXEEXT
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3918 $as_echo_n "checking for suffix of object files... " >&6; }
3919 if test "${ac_cv_objext+set}" = set; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3926 main ()
3930 return 0;
3932 _ACEOF
3933 rm -f conftest.o conftest.obj
3934 if { { ac_try="$ac_compile"
3935 case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938 esac
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 $as_echo "$ac_try_echo"; } >&5
3941 (eval "$ac_compile") 2>&5
3942 ac_status=$?
3943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }; then :
3945 for ac_file in conftest.o conftest.obj conftest.*; do
3946 test -f "$ac_file" || continue;
3947 case $ac_file in
3948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3950 break;;
3951 esac
3952 done
3953 else
3954 $as_echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error "cannot compute suffix of object files: cannot compile
3960 See \`config.log' for more details." "$LINENO" 5; }
3962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3965 $as_echo "$ac_cv_objext" >&6; }
3966 OBJEXT=$ac_cv_objext
3967 ac_objext=$OBJEXT
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3969 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3970 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3971 $as_echo_n "(cached) " >&6
3972 else
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3977 main ()
3979 #ifndef __GNUC__
3980 choke me
3981 #endif
3984 return 0;
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988 ac_compiler_gnu=yes
3989 else
3990 ac_compiler_gnu=no
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3997 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3998 if test $ac_compiler_gnu = yes; then
3999 GCC=yes
4000 else
4001 GCC=
4003 ac_test_CFLAGS=${CFLAGS+set}
4004 ac_save_CFLAGS=$CFLAGS
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4006 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4007 if test "${ac_cv_prog_cc_g+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 ac_save_c_werror_flag=$ac_c_werror_flag
4011 ac_c_werror_flag=yes
4012 ac_cv_prog_cc_g=no
4013 CFLAGS="-g"
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4018 main ()
4022 return 0;
4024 _ACEOF
4025 if ac_fn_c_try_compile "$LINENO"; then :
4026 ac_cv_prog_cc_g=yes
4027 else
4028 CFLAGS=""
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4033 main ()
4037 return 0;
4039 _ACEOF
4040 if ac_fn_c_try_compile "$LINENO"; then :
4042 else
4043 ac_c_werror_flag=$ac_save_c_werror_flag
4044 CFLAGS="-g"
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4049 main ()
4053 return 0;
4055 _ACEOF
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_cv_prog_cc_g=yes
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_c_werror_flag=$ac_save_c_werror_flag
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4067 $as_echo "$ac_cv_prog_cc_g" >&6; }
4068 if test "$ac_test_CFLAGS" = set; then
4069 CFLAGS=$ac_save_CFLAGS
4070 elif test $ac_cv_prog_cc_g = yes; then
4071 if test "$GCC" = yes; then
4072 CFLAGS="-g -O2"
4073 else
4074 CFLAGS="-g"
4076 else
4077 if test "$GCC" = yes; then
4078 CFLAGS="-O2"
4079 else
4080 CFLAGS=
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4084 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4085 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 ac_cv_prog_cc_c89=no
4089 ac_save_CC=$CC
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092 #include <stdarg.h>
4093 #include <stdio.h>
4094 #include <sys/types.h>
4095 #include <sys/stat.h>
4096 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4097 struct buf { int x; };
4098 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4099 static char *e (p, i)
4100 char **p;
4101 int i;
4103 return p[i];
4105 static char *f (char * (*g) (char **, int), char **p, ...)
4107 char *s;
4108 va_list v;
4109 va_start (v,p);
4110 s = g (p, va_arg (v,int));
4111 va_end (v);
4112 return s;
4115 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4116 function prototypes and stuff, but not '\xHH' hex character constants.
4117 These don't provoke an error unfortunately, instead are silently treated
4118 as 'x'. The following induces an error, until -std is added to get
4119 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4120 array size at least. It's necessary to write '\x00'==0 to get something
4121 that's true only with -std. */
4122 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4124 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4125 inside strings and character constants. */
4126 #define FOO(x) 'x'
4127 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4129 int test (int i, double x);
4130 struct s1 {int (*f) (int a);};
4131 struct s2 {int (*f) (double a);};
4132 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4133 int argc;
4134 char **argv;
4136 main ()
4138 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4140 return 0;
4142 _ACEOF
4143 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4144 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4146 CC="$ac_save_CC $ac_arg"
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_cv_prog_cc_c89=$ac_arg
4150 rm -f core conftest.err conftest.$ac_objext
4151 test "x$ac_cv_prog_cc_c89" != "xno" && break
4152 done
4153 rm -f conftest.$ac_ext
4154 CC=$ac_save_CC
4157 # AC_CACHE_VAL
4158 case "x$ac_cv_prog_cc_c89" in
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4161 $as_echo "none needed" >&6; } ;;
4162 xno)
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4164 $as_echo "unsupported" >&6; } ;;
4166 CC="$CC $ac_cv_prog_cc_c89"
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4168 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4169 esac
4170 if test "x$ac_cv_prog_cc_c89" != xno; then :
4174 ac_ext=c
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179 DEPDIR="${am__leading_dot}deps"
4181 ac_config_commands="$ac_config_commands depfiles"
4184 am_make=${MAKE-make}
4185 cat > confinc << 'END'
4186 am__doit:
4187 @echo this is the am__doit target
4188 .PHONY: am__doit
4190 # If we don't find an include directive, just comment out the code.
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4192 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4193 am__include="#"
4194 am__quote=
4195 _am_result=none
4196 # First try GNU make style include.
4197 echo "include confinc" > confmf
4198 # Ignore all kinds of additional output from `make'.
4199 case `$am_make -s -f confmf 2> /dev/null` in #(
4200 *the\ am__doit\ target*)
4201 am__include=include
4202 am__quote=
4203 _am_result=GNU
4205 esac
4206 # Now try BSD make style include.
4207 if test "$am__include" = "#"; then
4208 echo '.include "confinc"' > confmf
4209 case `$am_make -s -f confmf 2> /dev/null` in #(
4210 *the\ am__doit\ target*)
4211 am__include=.include
4212 am__quote="\""
4213 _am_result=BSD
4215 esac
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4220 $as_echo "$_am_result" >&6; }
4221 rm -f confinc confmf
4223 # Check whether --enable-dependency-tracking was given.
4224 if test "${enable_dependency_tracking+set}" = set; then :
4225 enableval=$enable_dependency_tracking;
4228 if test "x$enable_dependency_tracking" != xno; then
4229 am_depcomp="$ac_aux_dir/depcomp"
4230 AMDEPBACKSLASH='\'
4231 am__nodep='_no'
4233 if test "x$enable_dependency_tracking" != xno; then
4234 AMDEP_TRUE=
4235 AMDEP_FALSE='#'
4236 else
4237 AMDEP_TRUE='#'
4238 AMDEP_FALSE=
4243 depcc="$CC" am_compiler_list=
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4246 $as_echo_n "checking dependency style of $depcc... " >&6; }
4247 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4251 # We make a subdir and do the tests there. Otherwise we can end up
4252 # making bogus files that we don't know about and never remove. For
4253 # instance it was reported that on HP-UX the gcc test will end up
4254 # making a dummy file named `D' -- because `-MD' means `put the output
4255 # in D'.
4256 rm -rf conftest.dir
4257 mkdir conftest.dir
4258 # Copy depcomp to subdir because otherwise we won't find it if we're
4259 # using a relative directory.
4260 cp "$am_depcomp" conftest.dir
4261 cd conftest.dir
4262 # We will build objects and dependencies in a subdirectory because
4263 # it helps to detect inapplicable dependency modes. For instance
4264 # both Tru64's cc and ICC support -MD to output dependencies as a
4265 # side effect of compilation, but ICC will put the dependencies in
4266 # the current directory while Tru64 will put them in the object
4267 # directory.
4268 mkdir sub
4270 am_cv_CC_dependencies_compiler_type=none
4271 if test "$am_compiler_list" = ""; then
4272 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4274 am__universal=false
4275 case " $depcc " in #(
4276 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4277 esac
4279 for depmode in $am_compiler_list; do
4280 # Setup a source with many dependencies, because some compilers
4281 # like to wrap large dependency lists on column 80 (with \), and
4282 # we should not choose a depcomp mode which is confused by this.
4284 # We need to recreate these files for each test, as the compiler may
4285 # overwrite some of them when testing with obscure command lines.
4286 # This happens at least with the AIX C compiler.
4287 : > sub/conftest.c
4288 for i in 1 2 3 4 5 6; do
4289 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4290 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4291 # Solaris 8's {/usr,}/bin/sh.
4292 touch sub/conftst$i.h
4293 done
4294 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4296 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4297 # mode. It turns out that the SunPro C++ compiler does not properly
4298 # handle `-M -o', and we need to detect this. Also, some Intel
4299 # versions had trouble with output in subdirs
4300 am__obj=sub/conftest.${OBJEXT-o}
4301 am__minus_obj="-o $am__obj"
4302 case $depmode in
4303 gcc)
4304 # This depmode causes a compiler race in universal mode.
4305 test "$am__universal" = false || continue
4307 nosideeffect)
4308 # after this tag, mechanisms are not by side-effect, so they'll
4309 # only be used when explicitly requested
4310 if test "x$enable_dependency_tracking" = xyes; then
4311 continue
4312 else
4313 break
4316 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4317 # This compiler won't grok `-c -o', but also, the minuso test has
4318 # not run yet. These depmodes are late enough in the game, and
4319 # so weak that their functioning should not be impacted.
4320 am__obj=conftest.${OBJEXT-o}
4321 am__minus_obj=
4323 none) break ;;
4324 esac
4325 if depmode=$depmode \
4326 source=sub/conftest.c object=$am__obj \
4327 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4328 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4329 >/dev/null 2>conftest.err &&
4330 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4331 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4332 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4333 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4334 # icc doesn't choke on unknown options, it will just issue warnings
4335 # or remarks (even with -Werror). So we grep stderr for any message
4336 # that says an option was ignored or not supported.
4337 # When given -MP, icc 7.0 and 7.1 complain thusly:
4338 # icc: Command line warning: ignoring option '-M'; no argument required
4339 # The diagnosis changed in icc 8.0:
4340 # icc: Command line remark: option '-MP' not supported
4341 if (grep 'ignoring option' conftest.err ||
4342 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4343 am_cv_CC_dependencies_compiler_type=$depmode
4344 break
4347 done
4349 cd ..
4350 rm -rf conftest.dir
4351 else
4352 am_cv_CC_dependencies_compiler_type=none
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4357 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4358 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4361 test "x$enable_dependency_tracking" != xno \
4362 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4363 am__fastdepCC_TRUE=
4364 am__fastdepCC_FALSE='#'
4365 else
4366 am__fastdepCC_TRUE='#'
4367 am__fastdepCC_FALSE=
4371 ac_ext=cpp
4372 ac_cpp='$CXXCPP $CPPFLAGS'
4373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4376 if test -z "$CXX"; then
4377 if test -n "$CCC"; then
4378 CXX=$CCC
4379 else
4380 if test -n "$ac_tool_prefix"; then
4381 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4383 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4384 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4386 $as_echo_n "checking for $ac_word... " >&6; }
4387 if test "${ac_cv_prog_CXX+set}" = set; then :
4388 $as_echo_n "(cached) " >&6
4389 else
4390 if test -n "$CXX"; then
4391 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4392 else
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4396 IFS=$as_save_IFS
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 break 2
4404 done
4405 done
4406 IFS=$as_save_IFS
4410 CXX=$ac_cv_prog_CXX
4411 if test -n "$CXX"; then
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4413 $as_echo "$CXX" >&6; }
4414 else
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 $as_echo "no" >&6; }
4420 test -n "$CXX" && break
4421 done
4423 if test -z "$CXX"; then
4424 ac_ct_CXX=$CXX
4425 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4427 # Extract the first word of "$ac_prog", so it can be a program name with args.
4428 set dummy $ac_prog; ac_word=$2
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430 $as_echo_n "checking for $ac_word... " >&6; }
4431 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 if test -n "$ac_ct_CXX"; then
4435 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4436 else
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_prog_ac_ct_CXX="$ac_prog"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4446 break 2
4448 done
4449 done
4450 IFS=$as_save_IFS
4454 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4455 if test -n "$ac_ct_CXX"; then
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4457 $as_echo "$ac_ct_CXX" >&6; }
4458 else
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 $as_echo "no" >&6; }
4464 test -n "$ac_ct_CXX" && break
4465 done
4467 if test "x$ac_ct_CXX" = x; then
4468 CXX="g++"
4469 else
4470 case $cross_compiling:$ac_tool_warned in
4471 yes:)
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4473 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4474 ac_tool_warned=yes ;;
4475 esac
4476 CXX=$ac_ct_CXX
4482 # Provide some information about the compiler.
4483 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4484 set X $ac_compile
4485 ac_compiler=$2
4486 for ac_option in --version -v -V -qversion; do
4487 { { ac_try="$ac_compiler $ac_option >&5"
4488 case "(($ac_try" in
4489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490 *) ac_try_echo=$ac_try;;
4491 esac
4492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4493 $as_echo "$ac_try_echo"; } >&5
4494 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4495 ac_status=$?
4496 if test -s conftest.err; then
4497 sed '10a\
4498 ... rest of stderr output deleted ...
4499 10q' conftest.err >conftest.er1
4500 cat conftest.er1 >&5
4501 rm -f conftest.er1 conftest.err
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }
4505 done
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4508 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4509 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4510 $as_echo_n "(cached) " >&6
4511 else
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4516 main ()
4518 #ifndef __GNUC__
4519 choke me
4520 #endif
4523 return 0;
4525 _ACEOF
4526 if ac_fn_cxx_try_compile "$LINENO"; then :
4527 ac_compiler_gnu=yes
4528 else
4529 ac_compiler_gnu=no
4531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4532 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4536 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4537 if test $ac_compiler_gnu = yes; then
4538 GXX=yes
4539 else
4540 GXX=
4542 ac_test_CXXFLAGS=${CXXFLAGS+set}
4543 ac_save_CXXFLAGS=$CXXFLAGS
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4545 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4546 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4550 ac_cxx_werror_flag=yes
4551 ac_cv_prog_cxx_g=no
4552 CXXFLAGS="-g"
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4557 main ()
4561 return 0;
4563 _ACEOF
4564 if ac_fn_cxx_try_compile "$LINENO"; then :
4565 ac_cv_prog_cxx_g=yes
4566 else
4567 CXXFLAGS=""
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4572 main ()
4576 return 0;
4578 _ACEOF
4579 if ac_fn_cxx_try_compile "$LINENO"; then :
4581 else
4582 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4583 CXXFLAGS="-g"
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4588 main ()
4592 return 0;
4594 _ACEOF
4595 if ac_fn_cxx_try_compile "$LINENO"; then :
4596 ac_cv_prog_cxx_g=yes
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4606 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4607 if test "$ac_test_CXXFLAGS" = set; then
4608 CXXFLAGS=$ac_save_CXXFLAGS
4609 elif test $ac_cv_prog_cxx_g = yes; then
4610 if test "$GXX" = yes; then
4611 CXXFLAGS="-g -O2"
4612 else
4613 CXXFLAGS="-g"
4615 else
4616 if test "$GXX" = yes; then
4617 CXXFLAGS="-O2"
4618 else
4619 CXXFLAGS=
4622 ac_ext=c
4623 ac_cpp='$CPP $CPPFLAGS'
4624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4628 depcc="$CXX" am_compiler_list=
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4631 $as_echo_n "checking dependency style of $depcc... " >&6; }
4632 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4633 $as_echo_n "(cached) " >&6
4634 else
4635 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4636 # We make a subdir and do the tests there. Otherwise we can end up
4637 # making bogus files that we don't know about and never remove. For
4638 # instance it was reported that on HP-UX the gcc test will end up
4639 # making a dummy file named `D' -- because `-MD' means `put the output
4640 # in D'.
4641 rm -rf conftest.dir
4642 mkdir conftest.dir
4643 # Copy depcomp to subdir because otherwise we won't find it if we're
4644 # using a relative directory.
4645 cp "$am_depcomp" conftest.dir
4646 cd conftest.dir
4647 # We will build objects and dependencies in a subdirectory because
4648 # it helps to detect inapplicable dependency modes. For instance
4649 # both Tru64's cc and ICC support -MD to output dependencies as a
4650 # side effect of compilation, but ICC will put the dependencies in
4651 # the current directory while Tru64 will put them in the object
4652 # directory.
4653 mkdir sub
4655 am_cv_CXX_dependencies_compiler_type=none
4656 if test "$am_compiler_list" = ""; then
4657 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4659 am__universal=false
4660 case " $depcc " in #(
4661 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4662 esac
4664 for depmode in $am_compiler_list; do
4665 # Setup a source with many dependencies, because some compilers
4666 # like to wrap large dependency lists on column 80 (with \), and
4667 # we should not choose a depcomp mode which is confused by this.
4669 # We need to recreate these files for each test, as the compiler may
4670 # overwrite some of them when testing with obscure command lines.
4671 # This happens at least with the AIX C compiler.
4672 : > sub/conftest.c
4673 for i in 1 2 3 4 5 6; do
4674 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4675 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4676 # Solaris 8's {/usr,}/bin/sh.
4677 touch sub/conftst$i.h
4678 done
4679 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4681 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4682 # mode. It turns out that the SunPro C++ compiler does not properly
4683 # handle `-M -o', and we need to detect this. Also, some Intel
4684 # versions had trouble with output in subdirs
4685 am__obj=sub/conftest.${OBJEXT-o}
4686 am__minus_obj="-o $am__obj"
4687 case $depmode in
4688 gcc)
4689 # This depmode causes a compiler race in universal mode.
4690 test "$am__universal" = false || continue
4692 nosideeffect)
4693 # after this tag, mechanisms are not by side-effect, so they'll
4694 # only be used when explicitly requested
4695 if test "x$enable_dependency_tracking" = xyes; then
4696 continue
4697 else
4698 break
4701 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4702 # This compiler won't grok `-c -o', but also, the minuso test has
4703 # not run yet. These depmodes are late enough in the game, and
4704 # so weak that their functioning should not be impacted.
4705 am__obj=conftest.${OBJEXT-o}
4706 am__minus_obj=
4708 none) break ;;
4709 esac
4710 if depmode=$depmode \
4711 source=sub/conftest.c object=$am__obj \
4712 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4713 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4714 >/dev/null 2>conftest.err &&
4715 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4716 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4717 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4718 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4719 # icc doesn't choke on unknown options, it will just issue warnings
4720 # or remarks (even with -Werror). So we grep stderr for any message
4721 # that says an option was ignored or not supported.
4722 # When given -MP, icc 7.0 and 7.1 complain thusly:
4723 # icc: Command line warning: ignoring option '-M'; no argument required
4724 # The diagnosis changed in icc 8.0:
4725 # icc: Command line remark: option '-MP' not supported
4726 if (grep 'ignoring option' conftest.err ||
4727 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4728 am_cv_CXX_dependencies_compiler_type=$depmode
4729 break
4732 done
4734 cd ..
4735 rm -rf conftest.dir
4736 else
4737 am_cv_CXX_dependencies_compiler_type=none
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4742 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4743 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4746 test "x$enable_dependency_tracking" != xno \
4747 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4748 am__fastdepCXX_TRUE=
4749 am__fastdepCXX_FALSE='#'
4750 else
4751 am__fastdepCXX_TRUE='#'
4752 am__fastdepCXX_FALSE=
4756 # By default we simply use the C compiler to build assembly code.
4758 test "${CCAS+set}" = set || CCAS=$CC
4759 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4763 depcc="$CCAS" am_compiler_list=
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4766 $as_echo_n "checking dependency style of $depcc... " >&6; }
4767 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4771 # We make a subdir and do the tests there. Otherwise we can end up
4772 # making bogus files that we don't know about and never remove. For
4773 # instance it was reported that on HP-UX the gcc test will end up
4774 # making a dummy file named `D' -- because `-MD' means `put the output
4775 # in D'.
4776 rm -rf conftest.dir
4777 mkdir conftest.dir
4778 # Copy depcomp to subdir because otherwise we won't find it if we're
4779 # using a relative directory.
4780 cp "$am_depcomp" conftest.dir
4781 cd conftest.dir
4782 # We will build objects and dependencies in a subdirectory because
4783 # it helps to detect inapplicable dependency modes. For instance
4784 # both Tru64's cc and ICC support -MD to output dependencies as a
4785 # side effect of compilation, but ICC will put the dependencies in
4786 # the current directory while Tru64 will put them in the object
4787 # directory.
4788 mkdir sub
4790 am_cv_CCAS_dependencies_compiler_type=none
4791 if test "$am_compiler_list" = ""; then
4792 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4794 am__universal=false
4797 for depmode in $am_compiler_list; do
4798 # Setup a source with many dependencies, because some compilers
4799 # like to wrap large dependency lists on column 80 (with \), and
4800 # we should not choose a depcomp mode which is confused by this.
4802 # We need to recreate these files for each test, as the compiler may
4803 # overwrite some of them when testing with obscure command lines.
4804 # This happens at least with the AIX C compiler.
4805 : > sub/conftest.c
4806 for i in 1 2 3 4 5 6; do
4807 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4808 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4809 # Solaris 8's {/usr,}/bin/sh.
4810 touch sub/conftst$i.h
4811 done
4812 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4814 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4815 # mode. It turns out that the SunPro C++ compiler does not properly
4816 # handle `-M -o', and we need to detect this. Also, some Intel
4817 # versions had trouble with output in subdirs
4818 am__obj=sub/conftest.${OBJEXT-o}
4819 am__minus_obj="-o $am__obj"
4820 case $depmode in
4821 gcc)
4822 # This depmode causes a compiler race in universal mode.
4823 test "$am__universal" = false || continue
4825 nosideeffect)
4826 # after this tag, mechanisms are not by side-effect, so they'll
4827 # only be used when explicitly requested
4828 if test "x$enable_dependency_tracking" = xyes; then
4829 continue
4830 else
4831 break
4834 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4835 # This compiler won't grok `-c -o', but also, the minuso test has
4836 # not run yet. These depmodes are late enough in the game, and
4837 # so weak that their functioning should not be impacted.
4838 am__obj=conftest.${OBJEXT-o}
4839 am__minus_obj=
4841 none) break ;;
4842 esac
4843 if depmode=$depmode \
4844 source=sub/conftest.c object=$am__obj \
4845 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4846 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4847 >/dev/null 2>conftest.err &&
4848 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4849 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4850 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4851 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4852 # icc doesn't choke on unknown options, it will just issue warnings
4853 # or remarks (even with -Werror). So we grep stderr for any message
4854 # that says an option was ignored or not supported.
4855 # When given -MP, icc 7.0 and 7.1 complain thusly:
4856 # icc: Command line warning: ignoring option '-M'; no argument required
4857 # The diagnosis changed in icc 8.0:
4858 # icc: Command line remark: option '-MP' not supported
4859 if (grep 'ignoring option' conftest.err ||
4860 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4861 am_cv_CCAS_dependencies_compiler_type=$depmode
4862 break
4865 done
4867 cd ..
4868 rm -rf conftest.dir
4869 else
4870 am_cv_CCAS_dependencies_compiler_type=none
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4875 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4876 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4879 test "x$enable_dependency_tracking" != xno \
4880 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4881 am__fastdepCCAS_TRUE=
4882 am__fastdepCCAS_FALSE='#'
4883 else
4884 am__fastdepCCAS_TRUE='#'
4885 am__fastdepCCAS_FALSE=
4893 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4894 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4895 # in both places for now and restore CFLAGS at the end of config.
4896 save_CFLAGS="$CFLAGS"
4898 # Find other programs we need.
4899 if test -n "$ac_tool_prefix"; then
4900 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4901 set dummy ${ac_tool_prefix}ar; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if test "${ac_cv_prog_AR+set}" = set; then :
4905 $as_echo_n "(cached) " >&6
4906 else
4907 if test -n "$AR"; then
4908 ac_cv_prog_AR="$AR" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_prog_AR="${ac_tool_prefix}ar"
4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4921 done
4922 done
4923 IFS=$as_save_IFS
4927 AR=$ac_cv_prog_AR
4928 if test -n "$AR"; then
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4930 $as_echo "$AR" >&6; }
4931 else
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4938 if test -z "$ac_cv_prog_AR"; then
4939 ac_ct_AR=$AR
4940 # Extract the first word of "ar", so it can be a program name with args.
4941 set dummy ar; ac_word=$2
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4943 $as_echo_n "checking for $ac_word... " >&6; }
4944 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 if test -n "$ac_ct_AR"; then
4948 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4949 else
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
4955 for ac_exec_ext in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4957 ac_cv_prog_ac_ct_AR="ar"
4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959 break 2
4961 done
4962 done
4963 IFS=$as_save_IFS
4967 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4968 if test -n "$ac_ct_AR"; then
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4970 $as_echo "$ac_ct_AR" >&6; }
4971 else
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4973 $as_echo "no" >&6; }
4976 if test "x$ac_ct_AR" = x; then
4977 AR=""
4978 else
4979 case $cross_compiling:$ac_tool_warned in
4980 yes:)
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4983 ac_tool_warned=yes ;;
4984 esac
4985 AR=$ac_ct_AR
4987 else
4988 AR="$ac_cv_prog_AR"
4991 if test -n "$ac_tool_prefix"; then
4992 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4993 set dummy ${ac_tool_prefix}nm; ac_word=$2
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995 $as_echo_n "checking for $ac_word... " >&6; }
4996 if test "${ac_cv_prog_NM+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 if test -n "$NM"; then
5000 ac_cv_prog_NM="$NM" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5009 ac_cv_prog_NM="${ac_tool_prefix}nm"
5010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 break 2
5013 done
5014 done
5015 IFS=$as_save_IFS
5019 NM=$ac_cv_prog_NM
5020 if test -n "$NM"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5022 $as_echo "$NM" >&6; }
5023 else
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5030 if test -z "$ac_cv_prog_NM"; then
5031 ac_ct_NM=$NM
5032 # Extract the first word of "nm", so it can be a program name with args.
5033 set dummy nm; ac_word=$2
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 if test -n "$ac_ct_NM"; then
5040 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5041 else
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_ac_ct_NM="nm"
5050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 break 2
5053 done
5054 done
5055 IFS=$as_save_IFS
5059 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5060 if test -n "$ac_ct_NM"; then
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5062 $as_echo "$ac_ct_NM" >&6; }
5063 else
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5068 if test "x$ac_ct_NM" = x; then
5069 NM=""
5070 else
5071 case $cross_compiling:$ac_tool_warned in
5072 yes:)
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5075 ac_tool_warned=yes ;;
5076 esac
5077 NM=$ac_ct_NM
5079 else
5080 NM="$ac_cv_prog_NM"
5083 if test -n "$ac_tool_prefix"; then
5084 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5085 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 if test -n "$RANLIB"; then
5092 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5105 done
5106 done
5107 IFS=$as_save_IFS
5111 RANLIB=$ac_cv_prog_RANLIB
5112 if test -n "$RANLIB"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5114 $as_echo "$RANLIB" >&6; }
5115 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5122 if test -z "$ac_cv_prog_RANLIB"; then
5123 ac_ct_RANLIB=$RANLIB
5124 # Extract the first word of "ranlib", so it can be a program name with args.
5125 set dummy ranlib; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$ac_ct_RANLIB"; then
5132 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_ac_ct_RANLIB="ranlib"
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5147 IFS=$as_save_IFS
5151 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5152 if test -n "$ac_ct_RANLIB"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5154 $as_echo "$ac_ct_RANLIB" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5160 if test "x$ac_ct_RANLIB" = x; then
5161 RANLIB="ranlib-not-found-in-path-error"
5162 else
5163 case $cross_compiling:$ac_tool_warned in
5164 yes:)
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167 ac_tool_warned=yes ;;
5168 esac
5169 RANLIB=$ac_ct_RANLIB
5171 else
5172 RANLIB="$ac_cv_prog_RANLIB"
5175 # Extract the first word of "perl", so it can be a program name with args.
5176 set dummy perl; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if test "${ac_cv_path_PERL+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 case $PERL in
5183 [\\/]* | ?:[\\/]*)
5184 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 for as_dir in $PATH
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5198 done
5199 done
5200 IFS=$as_save_IFS
5202 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
5204 esac
5206 PERL=$ac_cv_path_PERL
5207 if test -n "$PERL"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5209 $as_echo "$PERL" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5217 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5218 set x ${MAKE-make}
5219 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5220 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5221 $as_echo_n "(cached) " >&6
5222 else
5223 cat >conftest.make <<\_ACEOF
5224 SHELL = /bin/sh
5225 all:
5226 @echo '@@@%%%=$(MAKE)=@@@%%%'
5227 _ACEOF
5228 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5229 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5230 *@@@%%%=?*=@@@%%%*)
5231 eval ac_cv_prog_make_${ac_make}_set=yes;;
5233 eval ac_cv_prog_make_${ac_make}_set=no;;
5234 esac
5235 rm -f conftest.make
5237 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5239 $as_echo "yes" >&6; }
5240 SET_MAKE=
5241 else
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5243 $as_echo "no" >&6; }
5244 SET_MAKE="MAKE=${MAKE-make}"
5249 # See if makeinfo has been installed and is modern enough
5250 # that we can use it.
5252 # Extract the first word of "makeinfo", so it can be a program name with args.
5253 set dummy makeinfo; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5259 if test -n "$MAKEINFO"; then
5260 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5261 else
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_prog_MAKEINFO="makeinfo"
5270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5273 done
5274 done
5275 IFS=$as_save_IFS
5279 MAKEINFO=$ac_cv_prog_MAKEINFO
5280 if test -n "$MAKEINFO"; then
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5282 $as_echo "$MAKEINFO" >&6; }
5283 else
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5289 if test -n "$MAKEINFO"; then
5290 # Found it, now check the version.
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
5292 $as_echo_n "checking for modern makeinfo... " >&6; }
5293 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
5297 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5299 case $ac_prog_version in
5300 '') gcc_cv_prog_makeinfo_modern=no;;
5301 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
5302 *) gcc_cv_prog_makeinfo_modern=no;;
5303 esac
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
5307 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
5308 else
5309 gcc_cv_prog_makeinfo_modern=no
5311 if test $gcc_cv_prog_makeinfo_modern = no; then
5312 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
5315 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
5316 BUILD_INFO_TRUE=
5317 BUILD_INFO_FALSE='#'
5318 else
5319 BUILD_INFO_TRUE='#'
5320 BUILD_INFO_FALSE=
5325 # Configure libtool
5326 case `pwd` in
5327 *\ * | *\ *)
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5329 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5330 esac
5334 macro_version='2.2.7a'
5335 macro_revision='1.3134'
5349 ltmain="$ac_aux_dir/ltmain.sh"
5351 # Backslashify metacharacters that are still active within
5352 # double-quoted strings.
5353 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5355 # Same as above, but do not quote variable references.
5356 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5358 # Sed substitution to delay expansion of an escaped shell variable in a
5359 # double_quote_subst'ed string.
5360 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5362 # Sed substitution to delay expansion of an escaped single quote.
5363 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5365 # Sed substitution to avoid accidental globbing in evaled expressions
5366 no_glob_subst='s/\*/\\\*/g'
5368 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5369 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5370 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5373 $as_echo_n "checking how to print strings... " >&6; }
5374 # Test print first, because it will be a builtin if present.
5375 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5376 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5377 ECHO='print -r --'
5378 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5379 ECHO='printf %s\n'
5380 else
5381 # Use this function as a fallback that always works.
5382 func_fallback_echo ()
5384 eval 'cat <<_LTECHO_EOF
5386 _LTECHO_EOF'
5388 ECHO='func_fallback_echo'
5391 # func_echo_all arg...
5392 # Invoke $ECHO with all args, space-separated.
5393 func_echo_all ()
5395 $ECHO ""
5398 case "$ECHO" in
5399 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5400 $as_echo "printf" >&6; } ;;
5401 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5402 $as_echo "print -r" >&6; } ;;
5403 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5404 $as_echo "cat" >&6; } ;;
5405 esac
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5421 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5422 if test "${ac_cv_path_SED+set}" = set; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5426 for ac_i in 1 2 3 4 5 6 7; do
5427 ac_script="$ac_script$as_nl$ac_script"
5428 done
5429 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5430 { ac_script=; unset ac_script;}
5431 if test -z "$SED"; then
5432 ac_path_SED_found=false
5433 # Loop through the user's path and test for each of PROGNAME-LIST
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_prog in sed gsed; do
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5442 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5443 # Check for GNU ac_path_SED and select it if it is found.
5444 # Check for GNU $ac_path_SED
5445 case `"$ac_path_SED" --version 2>&1` in
5446 *GNU*)
5447 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5449 ac_count=0
5450 $as_echo_n 0123456789 >"conftest.in"
5451 while :
5453 cat "conftest.in" "conftest.in" >"conftest.tmp"
5454 mv "conftest.tmp" "conftest.in"
5455 cp "conftest.in" "conftest.nl"
5456 $as_echo '' >> "conftest.nl"
5457 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5459 as_fn_arith $ac_count + 1 && ac_count=$as_val
5460 if test $ac_count -gt ${ac_path_SED_max-0}; then
5461 # Best one so far, save it but keep looking for a better one
5462 ac_cv_path_SED="$ac_path_SED"
5463 ac_path_SED_max=$ac_count
5465 # 10*(2^10) chars as input seems more than enough
5466 test $ac_count -gt 10 && break
5467 done
5468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5469 esac
5471 $ac_path_SED_found && break 3
5472 done
5473 done
5474 done
5475 IFS=$as_save_IFS
5476 if test -z "$ac_cv_path_SED"; then
5477 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5479 else
5480 ac_cv_path_SED=$SED
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5485 $as_echo "$ac_cv_path_SED" >&6; }
5486 SED="$ac_cv_path_SED"
5487 rm -f conftest.sed
5489 test -z "$SED" && SED=sed
5490 Xsed="$SED -e 1s/^X//"
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5503 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5504 if test "${ac_cv_path_GREP+set}" = set; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 if test -z "$GREP"; then
5508 ac_path_GREP_found=false
5509 # Loop through the user's path and test for each of PROGNAME-LIST
5510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
5515 for ac_prog in grep ggrep; do
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5518 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5519 # Check for GNU ac_path_GREP and select it if it is found.
5520 # Check for GNU $ac_path_GREP
5521 case `"$ac_path_GREP" --version 2>&1` in
5522 *GNU*)
5523 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5525 ac_count=0
5526 $as_echo_n 0123456789 >"conftest.in"
5527 while :
5529 cat "conftest.in" "conftest.in" >"conftest.tmp"
5530 mv "conftest.tmp" "conftest.in"
5531 cp "conftest.in" "conftest.nl"
5532 $as_echo 'GREP' >> "conftest.nl"
5533 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5535 as_fn_arith $ac_count + 1 && ac_count=$as_val
5536 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5537 # Best one so far, save it but keep looking for a better one
5538 ac_cv_path_GREP="$ac_path_GREP"
5539 ac_path_GREP_max=$ac_count
5541 # 10*(2^10) chars as input seems more than enough
5542 test $ac_count -gt 10 && break
5543 done
5544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5545 esac
5547 $ac_path_GREP_found && break 3
5548 done
5549 done
5550 done
5551 IFS=$as_save_IFS
5552 if test -z "$ac_cv_path_GREP"; then
5553 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5555 else
5556 ac_cv_path_GREP=$GREP
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5561 $as_echo "$ac_cv_path_GREP" >&6; }
5562 GREP="$ac_cv_path_GREP"
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5566 $as_echo_n "checking for egrep... " >&6; }
5567 if test "${ac_cv_path_EGREP+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5571 then ac_cv_path_EGREP="$GREP -E"
5572 else
5573 if test -z "$EGREP"; then
5574 ac_path_EGREP_found=false
5575 # Loop through the user's path and test for each of PROGNAME-LIST
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_prog in egrep; do
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5584 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5585 # Check for GNU ac_path_EGREP and select it if it is found.
5586 # Check for GNU $ac_path_EGREP
5587 case `"$ac_path_EGREP" --version 2>&1` in
5588 *GNU*)
5589 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5591 ac_count=0
5592 $as_echo_n 0123456789 >"conftest.in"
5593 while :
5595 cat "conftest.in" "conftest.in" >"conftest.tmp"
5596 mv "conftest.tmp" "conftest.in"
5597 cp "conftest.in" "conftest.nl"
5598 $as_echo 'EGREP' >> "conftest.nl"
5599 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5601 as_fn_arith $ac_count + 1 && ac_count=$as_val
5602 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5603 # Best one so far, save it but keep looking for a better one
5604 ac_cv_path_EGREP="$ac_path_EGREP"
5605 ac_path_EGREP_max=$ac_count
5607 # 10*(2^10) chars as input seems more than enough
5608 test $ac_count -gt 10 && break
5609 done
5610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5611 esac
5613 $ac_path_EGREP_found && break 3
5614 done
5615 done
5616 done
5617 IFS=$as_save_IFS
5618 if test -z "$ac_cv_path_EGREP"; then
5619 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5621 else
5622 ac_cv_path_EGREP=$EGREP
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5628 $as_echo "$ac_cv_path_EGREP" >&6; }
5629 EGREP="$ac_cv_path_EGREP"
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5633 $as_echo_n "checking for fgrep... " >&6; }
5634 if test "${ac_cv_path_FGREP+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5638 then ac_cv_path_FGREP="$GREP -F"
5639 else
5640 if test -z "$FGREP"; then
5641 ac_path_FGREP_found=false
5642 # Loop through the user's path and test for each of PROGNAME-LIST
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_prog in fgrep; do
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5651 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5652 # Check for GNU ac_path_FGREP and select it if it is found.
5653 # Check for GNU $ac_path_FGREP
5654 case `"$ac_path_FGREP" --version 2>&1` in
5655 *GNU*)
5656 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5658 ac_count=0
5659 $as_echo_n 0123456789 >"conftest.in"
5660 while :
5662 cat "conftest.in" "conftest.in" >"conftest.tmp"
5663 mv "conftest.tmp" "conftest.in"
5664 cp "conftest.in" "conftest.nl"
5665 $as_echo 'FGREP' >> "conftest.nl"
5666 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5668 as_fn_arith $ac_count + 1 && ac_count=$as_val
5669 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5670 # Best one so far, save it but keep looking for a better one
5671 ac_cv_path_FGREP="$ac_path_FGREP"
5672 ac_path_FGREP_max=$ac_count
5674 # 10*(2^10) chars as input seems more than enough
5675 test $ac_count -gt 10 && break
5676 done
5677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5678 esac
5680 $ac_path_FGREP_found && break 3
5681 done
5682 done
5683 done
5684 IFS=$as_save_IFS
5685 if test -z "$ac_cv_path_FGREP"; then
5686 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5688 else
5689 ac_cv_path_FGREP=$FGREP
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5695 $as_echo "$ac_cv_path_FGREP" >&6; }
5696 FGREP="$ac_cv_path_FGREP"
5699 test -z "$GREP" && GREP=grep
5719 # Check whether --with-gnu-ld was given.
5720 if test "${with_gnu_ld+set}" = set; then :
5721 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5722 else
5723 with_gnu_ld=no
5726 ac_prog=ld
5727 if test "$GCC" = yes; then
5728 # Check if gcc -print-prog-name=ld gives a path.
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5730 $as_echo_n "checking for ld used by $CC... " >&6; }
5731 case $host in
5732 *-*-mingw*)
5733 # gcc leaves a trailing carriage return which upsets mingw
5734 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5736 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5737 esac
5738 case $ac_prog in
5739 # Accept absolute paths.
5740 [\\/]* | ?:[\\/]*)
5741 re_direlt='/[^/][^/]*/\.\./'
5742 # Canonicalize the pathname of ld
5743 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5744 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5745 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5746 done
5747 test -z "$LD" && LD="$ac_prog"
5750 # If it fails, then pretend we aren't using GCC.
5751 ac_prog=ld
5754 # If it is relative, then search for the first ld in PATH.
5755 with_gnu_ld=unknown
5757 esac
5758 elif test "$with_gnu_ld" = yes; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5760 $as_echo_n "checking for GNU ld... " >&6; }
5761 else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5763 $as_echo_n "checking for non-GNU ld... " >&6; }
5765 if test "${lt_cv_path_LD+set}" = set; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 if test -z "$LD"; then
5769 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5770 for ac_dir in $PATH; do
5771 IFS="$lt_save_ifs"
5772 test -z "$ac_dir" && ac_dir=.
5773 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5774 lt_cv_path_LD="$ac_dir/$ac_prog"
5775 # Check to see if the program is GNU ld. I'd rather use --version,
5776 # but apparently some variants of GNU ld only accept -v.
5777 # Break only if it was the GNU/non-GNU ld that we prefer.
5778 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5779 *GNU* | *'with BFD'*)
5780 test "$with_gnu_ld" != no && break
5783 test "$with_gnu_ld" != yes && break
5785 esac
5787 done
5788 IFS="$lt_save_ifs"
5789 else
5790 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5794 LD="$lt_cv_path_LD"
5795 if test -n "$LD"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5797 $as_echo "$LD" >&6; }
5798 else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5802 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5804 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5805 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5809 case `$LD -v 2>&1 </dev/null` in
5810 *GNU* | *'with BFD'*)
5811 lt_cv_prog_gnu_ld=yes
5814 lt_cv_prog_gnu_ld=no
5816 esac
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5819 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5820 with_gnu_ld=$lt_cv_prog_gnu_ld
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5831 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5832 if test "${lt_cv_path_NM+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 if test -n "$NM"; then
5836 # Let the user override the test.
5837 lt_cv_path_NM="$NM"
5838 else
5839 lt_nm_to_check="${ac_tool_prefix}nm"
5840 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5841 lt_nm_to_check="$lt_nm_to_check nm"
5843 for lt_tmp_nm in $lt_nm_to_check; do
5844 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5845 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5846 IFS="$lt_save_ifs"
5847 test -z "$ac_dir" && ac_dir=.
5848 tmp_nm="$ac_dir/$lt_tmp_nm"
5849 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5850 # Check to see if the nm accepts a BSD-compat flag.
5851 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5852 # nm: unknown option "B" ignored
5853 # Tru64's nm complains that /dev/null is an invalid object file
5854 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5855 */dev/null* | *'Invalid file or object type'*)
5856 lt_cv_path_NM="$tmp_nm -B"
5857 break
5860 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5861 */dev/null*)
5862 lt_cv_path_NM="$tmp_nm -p"
5863 break
5866 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5867 continue # so that we can try to find one that supports BSD flags
5869 esac
5871 esac
5873 done
5874 IFS="$lt_save_ifs"
5875 done
5876 : ${lt_cv_path_NM=no}
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5880 $as_echo "$lt_cv_path_NM" >&6; }
5881 if test "$lt_cv_path_NM" != "no"; then
5882 NM="$lt_cv_path_NM"
5883 else
5884 # Didn't find any BSD compatible name lister, look for dumpbin.
5885 if test -n "$DUMPBIN"; then :
5886 # Let the user override the test.
5887 else
5888 if test -n "$ac_tool_prefix"; then
5889 for ac_prog in dumpbin "link -dump"
5891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5894 $as_echo_n "checking for $ac_word... " >&6; }
5895 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5896 $as_echo_n "(cached) " >&6
5897 else
5898 if test -n "$DUMPBIN"; then
5899 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5900 else
5901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5902 for as_dir in $PATH
5904 IFS=$as_save_IFS
5905 test -z "$as_dir" && as_dir=.
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5908 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 break 2
5912 done
5913 done
5914 IFS=$as_save_IFS
5918 DUMPBIN=$ac_cv_prog_DUMPBIN
5919 if test -n "$DUMPBIN"; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5921 $as_echo "$DUMPBIN" >&6; }
5922 else
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 $as_echo "no" >&6; }
5928 test -n "$DUMPBIN" && break
5929 done
5931 if test -z "$DUMPBIN"; then
5932 ac_ct_DUMPBIN=$DUMPBIN
5933 for ac_prog in dumpbin "link -dump"
5935 # Extract the first word of "$ac_prog", so it can be a program name with args.
5936 set dummy $ac_prog; ac_word=$2
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5938 $as_echo_n "checking for $ac_word... " >&6; }
5939 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 if test -n "$ac_ct_DUMPBIN"; then
5943 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5944 else
5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5946 for as_dir in $PATH
5948 IFS=$as_save_IFS
5949 test -z "$as_dir" && as_dir=.
5950 for ac_exec_ext in '' $ac_executable_extensions; do
5951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5952 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5954 break 2
5956 done
5957 done
5958 IFS=$as_save_IFS
5962 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5963 if test -n "$ac_ct_DUMPBIN"; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5965 $as_echo "$ac_ct_DUMPBIN" >&6; }
5966 else
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5972 test -n "$ac_ct_DUMPBIN" && break
5973 done
5975 if test "x$ac_ct_DUMPBIN" = x; then
5976 DUMPBIN=":"
5977 else
5978 case $cross_compiling:$ac_tool_warned in
5979 yes:)
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5982 ac_tool_warned=yes ;;
5983 esac
5984 DUMPBIN=$ac_ct_DUMPBIN
5988 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5989 *COFF*)
5990 DUMPBIN="$DUMPBIN -symbols"
5993 DUMPBIN=:
5995 esac
5998 if test "$DUMPBIN" != ":"; then
5999 NM="$DUMPBIN"
6002 test -z "$NM" && NM=nm
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6010 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6011 if test "${lt_cv_nm_interface+set}" = set; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 lt_cv_nm_interface="BSD nm"
6015 echo "int some_variable = 0;" > conftest.$ac_ext
6016 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6017 (eval "$ac_compile" 2>conftest.err)
6018 cat conftest.err >&5
6019 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6020 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6021 cat conftest.err >&5
6022 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6023 cat conftest.out >&5
6024 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6025 lt_cv_nm_interface="MS dumpbin"
6027 rm -f conftest*
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6030 $as_echo "$lt_cv_nm_interface" >&6; }
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6033 $as_echo_n "checking whether ln -s works... " >&6; }
6034 LN_S=$as_ln_s
6035 if test "$LN_S" = "ln -s"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6037 $as_echo "yes" >&6; }
6038 else
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6040 $as_echo "no, using $LN_S" >&6; }
6043 # find the maximum length of command line arguments
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6045 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6046 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6050 teststring="ABCD"
6052 case $build_os in
6053 msdosdjgpp*)
6054 # On DJGPP, this test can blow up pretty badly due to problems in libc
6055 # (any single argument exceeding 2000 bytes causes a buffer overrun
6056 # during glob expansion). Even if it were fixed, the result of this
6057 # check would be larger than it should be.
6058 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6061 gnu*)
6062 # Under GNU Hurd, this test is not required because there is
6063 # no limit to the length of command line arguments.
6064 # Libtool will interpret -1 as no limit whatsoever
6065 lt_cv_sys_max_cmd_len=-1;
6068 cygwin* | mingw* | cegcc*)
6069 # On Win9x/ME, this test blows up -- it succeeds, but takes
6070 # about 5 minutes as the teststring grows exponentially.
6071 # Worse, since 9x/ME are not pre-emptively multitasking,
6072 # you end up with a "frozen" computer, even though with patience
6073 # the test eventually succeeds (with a max line length of 256k).
6074 # Instead, let's just punt: use the minimum linelength reported by
6075 # all of the supported platforms: 8192 (on NT/2K/XP).
6076 lt_cv_sys_max_cmd_len=8192;
6079 mint*)
6080 # On MiNT this can take a long time and run out of memory.
6081 lt_cv_sys_max_cmd_len=8192;
6084 amigaos*)
6085 # On AmigaOS with pdksh, this test takes hours, literally.
6086 # So we just punt and use a minimum line length of 8192.
6087 lt_cv_sys_max_cmd_len=8192;
6090 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6091 # This has been around since 386BSD, at least. Likely further.
6092 if test -x /sbin/sysctl; then
6093 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6094 elif test -x /usr/sbin/sysctl; then
6095 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6096 else
6097 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6099 # And add a safety zone
6100 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6101 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6104 interix*)
6105 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6106 lt_cv_sys_max_cmd_len=196608
6109 osf*)
6110 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6111 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6112 # nice to cause kernel panics so lets avoid the loop below.
6113 # First set a reasonable default.
6114 lt_cv_sys_max_cmd_len=16384
6116 if test -x /sbin/sysconfig; then
6117 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6118 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6119 esac
6122 sco3.2v5*)
6123 lt_cv_sys_max_cmd_len=102400
6125 sysv5* | sco5v6* | sysv4.2uw2*)
6126 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6127 if test -n "$kargmax"; then
6128 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6129 else
6130 lt_cv_sys_max_cmd_len=32768
6134 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6135 if test -n "$lt_cv_sys_max_cmd_len"; then
6136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6138 else
6139 # Make teststring a little bigger before we do anything with it.
6140 # a 1K string should be a reasonable start.
6141 for i in 1 2 3 4 5 6 7 8 ; do
6142 teststring=$teststring$teststring
6143 done
6144 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6145 # If test is not a shell built-in, we'll probably end up computing a
6146 # maximum length that is only half of the actual maximum length, but
6147 # we can't tell.
6148 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6149 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6150 test $i != 17 # 1/2 MB should be enough
6152 i=`expr $i + 1`
6153 teststring=$teststring$teststring
6154 done
6155 # Only check the string length outside the loop.
6156 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6157 teststring=
6158 # Add a significant safety factor because C++ compilers can tack on
6159 # massive amounts of additional arguments before passing them to the
6160 # linker. It appears as though 1/2 is a usable value.
6161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6164 esac
6168 if test -n $lt_cv_sys_max_cmd_len ; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6170 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6171 else
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6173 $as_echo "none" >&6; }
6175 max_cmd_len=$lt_cv_sys_max_cmd_len
6182 : ${CP="cp -f"}
6183 : ${MV="mv -f"}
6184 : ${RM="rm -f"}
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6187 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6188 # Try some XSI features
6189 xsi_shell=no
6190 ( _lt_dummy="a/b/c"
6191 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6192 = c,a/b,, \
6193 && eval 'test $(( 1 + 1 )) -eq 2 \
6194 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6195 && xsi_shell=yes
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6197 $as_echo "$xsi_shell" >&6; }
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6201 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6202 lt_shell_append=no
6203 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6204 >/dev/null 2>&1 \
6205 && lt_shell_append=yes
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6207 $as_echo "$lt_shell_append" >&6; }
6210 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6211 lt_unset=unset
6212 else
6213 lt_unset=false
6220 # test EBCDIC or ASCII
6221 case `echo X|tr X '\101'` in
6222 A) # ASCII based system
6223 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6224 lt_SP2NL='tr \040 \012'
6225 lt_NL2SP='tr \015\012 \040\040'
6227 *) # EBCDIC based system
6228 lt_SP2NL='tr \100 \n'
6229 lt_NL2SP='tr \r\n \100\100'
6231 esac
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6242 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6243 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6244 $as_echo_n "(cached) " >&6
6245 else
6246 lt_cv_ld_reload_flag='-r'
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6249 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6250 reload_flag=$lt_cv_ld_reload_flag
6251 case $reload_flag in
6252 "" | " "*) ;;
6253 *) reload_flag=" $reload_flag" ;;
6254 esac
6255 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6256 case $host_os in
6257 darwin*)
6258 if test "$GCC" = yes; then
6259 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6260 else
6261 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6264 esac
6274 if test -n "$ac_tool_prefix"; then
6275 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6276 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6278 $as_echo_n "checking for $ac_word... " >&6; }
6279 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6280 $as_echo_n "(cached) " >&6
6281 else
6282 if test -n "$OBJDUMP"; then
6283 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6284 else
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6286 for as_dir in $PATH
6288 IFS=$as_save_IFS
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6294 break 2
6296 done
6297 done
6298 IFS=$as_save_IFS
6302 OBJDUMP=$ac_cv_prog_OBJDUMP
6303 if test -n "$OBJDUMP"; then
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6305 $as_echo "$OBJDUMP" >&6; }
6306 else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6313 if test -z "$ac_cv_prog_OBJDUMP"; then
6314 ac_ct_OBJDUMP=$OBJDUMP
6315 # Extract the first word of "objdump", so it can be a program name with args.
6316 set dummy objdump; ac_word=$2
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6318 $as_echo_n "checking for $ac_word... " >&6; }
6319 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6320 $as_echo_n "(cached) " >&6
6321 else
6322 if test -n "$ac_ct_OBJDUMP"; then
6323 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6324 else
6325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 for as_dir in $PATH
6328 IFS=$as_save_IFS
6329 test -z "$as_dir" && as_dir=.
6330 for ac_exec_ext in '' $ac_executable_extensions; do
6331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6332 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6334 break 2
6336 done
6337 done
6338 IFS=$as_save_IFS
6342 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6343 if test -n "$ac_ct_OBJDUMP"; then
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6345 $as_echo "$ac_ct_OBJDUMP" >&6; }
6346 else
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348 $as_echo "no" >&6; }
6351 if test "x$ac_ct_OBJDUMP" = x; then
6352 OBJDUMP="false"
6353 else
6354 case $cross_compiling:$ac_tool_warned in
6355 yes:)
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6358 ac_tool_warned=yes ;;
6359 esac
6360 OBJDUMP=$ac_ct_OBJDUMP
6362 else
6363 OBJDUMP="$ac_cv_prog_OBJDUMP"
6366 test -z "$OBJDUMP" && OBJDUMP=objdump
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6377 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6378 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 lt_cv_file_magic_cmd='$MAGIC_CMD'
6382 lt_cv_file_magic_test_file=
6383 lt_cv_deplibs_check_method='unknown'
6384 # Need to set the preceding variable on all platforms that support
6385 # interlibrary dependencies.
6386 # 'none' -- dependencies not supported.
6387 # `unknown' -- same as none, but documents that we really don't know.
6388 # 'pass_all' -- all dependencies passed with no checks.
6389 # 'test_compile' -- check by making test program.
6390 # 'file_magic [[regex]]' -- check by looking for files in library path
6391 # which responds to the $file_magic_cmd with a given extended regex.
6392 # If you have `file' or equivalent on your system and you're not sure
6393 # whether `pass_all' will *always* work, you probably want this one.
6395 case $host_os in
6396 aix[4-9]*)
6397 lt_cv_deplibs_check_method=pass_all
6400 beos*)
6401 lt_cv_deplibs_check_method=pass_all
6404 bsdi[45]*)
6405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6406 lt_cv_file_magic_cmd='/usr/bin/file -L'
6407 lt_cv_file_magic_test_file=/shlib/libc.so
6410 cygwin*)
6411 # func_win32_libid is a shell function defined in ltmain.sh
6412 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6413 lt_cv_file_magic_cmd='func_win32_libid'
6416 mingw* | pw32*)
6417 # Base MSYS/MinGW do not provide the 'file' command needed by
6418 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6419 # unless we find 'file', for example because we are cross-compiling.
6420 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6421 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6422 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6423 lt_cv_file_magic_cmd='func_win32_libid'
6424 else
6425 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6426 lt_cv_file_magic_cmd='$OBJDUMP -f'
6430 cegcc*)
6431 # use the weaker test based on 'objdump'. See mingw*.
6432 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6433 lt_cv_file_magic_cmd='$OBJDUMP -f'
6436 darwin* | rhapsody*)
6437 lt_cv_deplibs_check_method=pass_all
6440 freebsd* | dragonfly*)
6441 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6442 case $host_cpu in
6443 i*86 )
6444 # Not sure whether the presence of OpenBSD here was a mistake.
6445 # Let's accept both of them until this is cleared up.
6446 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6447 lt_cv_file_magic_cmd=/usr/bin/file
6448 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6450 esac
6451 else
6452 lt_cv_deplibs_check_method=pass_all
6456 gnu*)
6457 lt_cv_deplibs_check_method=pass_all
6460 haiku*)
6461 lt_cv_deplibs_check_method=pass_all
6464 hpux10.20* | hpux11*)
6465 lt_cv_file_magic_cmd=/usr/bin/file
6466 case $host_cpu in
6467 ia64*)
6468 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6469 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6471 hppa*64*)
6472 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]'
6473 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6476 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6477 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6479 esac
6482 interix[3-9]*)
6483 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6484 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6487 irix5* | irix6* | nonstopux*)
6488 case $LD in
6489 *-32|*"-32 ") libmagic=32-bit;;
6490 *-n32|*"-n32 ") libmagic=N32;;
6491 *-64|*"-64 ") libmagic=64-bit;;
6492 *) libmagic=never-match;;
6493 esac
6494 lt_cv_deplibs_check_method=pass_all
6497 # This must be Linux ELF.
6498 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6499 lt_cv_deplibs_check_method=pass_all
6502 netbsd*)
6503 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6504 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6505 else
6506 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6510 newos6*)
6511 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6512 lt_cv_file_magic_cmd=/usr/bin/file
6513 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6516 *nto* | *qnx*)
6517 lt_cv_deplibs_check_method=pass_all
6520 openbsd*)
6521 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6523 else
6524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6528 osf3* | osf4* | osf5*)
6529 lt_cv_deplibs_check_method=pass_all
6532 rdos*)
6533 lt_cv_deplibs_check_method=pass_all
6536 solaris*)
6537 lt_cv_deplibs_check_method=pass_all
6540 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6541 lt_cv_deplibs_check_method=pass_all
6544 sysv4 | sysv4.3*)
6545 case $host_vendor in
6546 motorola)
6547 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]'
6548 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6550 ncr)
6551 lt_cv_deplibs_check_method=pass_all
6553 sequent)
6554 lt_cv_file_magic_cmd='/bin/file'
6555 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6557 sni)
6558 lt_cv_file_magic_cmd='/bin/file'
6559 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6560 lt_cv_file_magic_test_file=/lib/libc.so
6562 siemens)
6563 lt_cv_deplibs_check_method=pass_all
6566 lt_cv_deplibs_check_method=pass_all
6568 esac
6571 tpf*)
6572 lt_cv_deplibs_check_method=pass_all
6574 esac
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6578 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6579 file_magic_cmd=$lt_cv_file_magic_cmd
6580 deplibs_check_method=$lt_cv_deplibs_check_method
6581 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6594 if test -n "$ac_tool_prefix"; then
6595 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6596 set dummy ${ac_tool_prefix}ar; ac_word=$2
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6598 $as_echo_n "checking for $ac_word... " >&6; }
6599 if test "${ac_cv_prog_AR+set}" = set; then :
6600 $as_echo_n "(cached) " >&6
6601 else
6602 if test -n "$AR"; then
6603 ac_cv_prog_AR="$AR" # Let the user override the test.
6604 else
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_AR="${ac_tool_prefix}ar"
6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6616 done
6617 done
6618 IFS=$as_save_IFS
6622 AR=$ac_cv_prog_AR
6623 if test -n "$AR"; then
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6625 $as_echo "$AR" >&6; }
6626 else
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6628 $as_echo "no" >&6; }
6633 if test -z "$ac_cv_prog_AR"; then
6634 ac_ct_AR=$AR
6635 # Extract the first word of "ar", so it can be a program name with args.
6636 set dummy ar; ac_word=$2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6642 if test -n "$ac_ct_AR"; then
6643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6644 else
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652 ac_cv_prog_ac_ct_AR="ar"
6653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 break 2
6656 done
6657 done
6658 IFS=$as_save_IFS
6662 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6663 if test -n "$ac_ct_AR"; then
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6665 $as_echo "$ac_ct_AR" >&6; }
6666 else
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 $as_echo "no" >&6; }
6671 if test "x$ac_ct_AR" = x; then
6672 AR="false"
6673 else
6674 case $cross_compiling:$ac_tool_warned in
6675 yes:)
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6678 ac_tool_warned=yes ;;
6679 esac
6680 AR=$ac_ct_AR
6682 else
6683 AR="$ac_cv_prog_AR"
6686 test -z "$AR" && AR=ar
6687 test -z "$AR_FLAGS" && AR_FLAGS=cru
6699 if test -n "$ac_tool_prefix"; then
6700 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6701 set dummy ${ac_tool_prefix}strip; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if test "${ac_cv_prog_STRIP+set}" = set; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 if test -n "$STRIP"; then
6708 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6721 done
6722 done
6723 IFS=$as_save_IFS
6727 STRIP=$ac_cv_prog_STRIP
6728 if test -n "$STRIP"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6730 $as_echo "$STRIP" >&6; }
6731 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6738 if test -z "$ac_cv_prog_STRIP"; then
6739 ac_ct_STRIP=$STRIP
6740 # Extract the first word of "strip", so it can be a program name with args.
6741 set dummy strip; ac_word=$2
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6743 $as_echo_n "checking for $ac_word... " >&6; }
6744 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 if test -n "$ac_ct_STRIP"; then
6748 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6749 else
6750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
6756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6757 ac_cv_prog_ac_ct_STRIP="strip"
6758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6761 done
6762 done
6763 IFS=$as_save_IFS
6767 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6768 if test -n "$ac_ct_STRIP"; then
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6770 $as_echo "$ac_ct_STRIP" >&6; }
6771 else
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 $as_echo "no" >&6; }
6776 if test "x$ac_ct_STRIP" = x; then
6777 STRIP=":"
6778 else
6779 case $cross_compiling:$ac_tool_warned in
6780 yes:)
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783 ac_tool_warned=yes ;;
6784 esac
6785 STRIP=$ac_ct_STRIP
6787 else
6788 STRIP="$ac_cv_prog_STRIP"
6791 test -z "$STRIP" && STRIP=:
6798 if test -n "$ac_tool_prefix"; then
6799 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6800 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6802 $as_echo_n "checking for $ac_word... " >&6; }
6803 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6804 $as_echo_n "(cached) " >&6
6805 else
6806 if test -n "$RANLIB"; then
6807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6808 else
6809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6810 for as_dir in $PATH
6812 IFS=$as_save_IFS
6813 test -z "$as_dir" && as_dir=.
6814 for ac_exec_ext in '' $ac_executable_extensions; do
6815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6816 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 break 2
6820 done
6821 done
6822 IFS=$as_save_IFS
6826 RANLIB=$ac_cv_prog_RANLIB
6827 if test -n "$RANLIB"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6829 $as_echo "$RANLIB" >&6; }
6830 else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6837 if test -z "$ac_cv_prog_RANLIB"; then
6838 ac_ct_RANLIB=$RANLIB
6839 # Extract the first word of "ranlib", so it can be a program name with args.
6840 set dummy ranlib; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6844 $as_echo_n "(cached) " >&6
6845 else
6846 if test -n "$ac_ct_RANLIB"; then
6847 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6852 IFS=$as_save_IFS
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_prog_ac_ct_RANLIB="ranlib"
6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858 break 2
6860 done
6861 done
6862 IFS=$as_save_IFS
6866 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6867 if test -n "$ac_ct_RANLIB"; then
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6869 $as_echo "$ac_ct_RANLIB" >&6; }
6870 else
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6875 if test "x$ac_ct_RANLIB" = x; then
6876 RANLIB=":"
6877 else
6878 case $cross_compiling:$ac_tool_warned in
6879 yes:)
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6882 ac_tool_warned=yes ;;
6883 esac
6884 RANLIB=$ac_ct_RANLIB
6886 else
6887 RANLIB="$ac_cv_prog_RANLIB"
6890 test -z "$RANLIB" && RANLIB=:
6897 # Determine commands to create old-style static archives.
6898 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6899 old_postinstall_cmds='chmod 644 $oldlib'
6900 old_postuninstall_cmds=
6902 if test -n "$RANLIB"; then
6903 case $host_os in
6904 openbsd*)
6905 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6908 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6910 esac
6911 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6914 case $host_os in
6915 darwin*)
6916 lock_old_archive_extraction=yes ;;
6918 lock_old_archive_extraction=no ;;
6919 esac
6959 # If no C compiler was specified, use CC.
6960 LTCC=${LTCC-"$CC"}
6962 # If no C compiler flags were specified, use CFLAGS.
6963 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6965 # Allow CC to be a program name with arguments.
6966 compiler=$CC
6969 # Check for command to grab the raw symbol name followed by C symbol from nm.
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6971 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6972 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6973 $as_echo_n "(cached) " >&6
6974 else
6976 # These are sane defaults that work on at least a few old systems.
6977 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6979 # Character class describing NM global symbol codes.
6980 symcode='[BCDEGRST]'
6982 # Regexp to match symbols that can be accessed directly from C.
6983 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6985 # Define system-specific variables.
6986 case $host_os in
6987 aix*)
6988 symcode='[BCDT]'
6990 cygwin* | mingw* | pw32* | cegcc*)
6991 symcode='[ABCDGISTW]'
6993 hpux*)
6994 if test "$host_cpu" = ia64; then
6995 symcode='[ABCDEGRST]'
6998 irix* | nonstopux*)
6999 symcode='[BCDEGRST]'
7001 osf*)
7002 symcode='[BCDEGQRST]'
7004 solaris*)
7005 symcode='[BDRT]'
7007 sco3.2v5*)
7008 symcode='[DT]'
7010 sysv4.2uw2*)
7011 symcode='[DT]'
7013 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7014 symcode='[ABDT]'
7016 sysv4)
7017 symcode='[DFNSTU]'
7019 esac
7021 # If we're using GNU nm, then use its standard symbol codes.
7022 case `$NM -V 2>&1` in
7023 *GNU* | *'with BFD'*)
7024 symcode='[ABCDGIRSTW]' ;;
7025 esac
7027 # Transform an extracted symbol line into a proper C declaration.
7028 # Some systems (esp. on ia64) link data and code symbols differently,
7029 # so use this general approach.
7030 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7032 # Transform an extracted symbol line into symbol name and symbol address
7033 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7034 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'"
7036 # Handle CRLF in mingw tool chain
7037 opt_cr=
7038 case $build_os in
7039 mingw*)
7040 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7042 esac
7044 # Try without a prefix underscore, then with it.
7045 for ac_symprfx in "" "_"; do
7047 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7048 symxfrm="\\1 $ac_symprfx\\2 \\2"
7050 # Write the raw and C identifiers.
7051 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7052 # Fake it for dumpbin and say T for any non-static function
7053 # and D for any global variable.
7054 # Also find C++ and __fastcall symbols from MSVC++,
7055 # which start with @ or ?.
7056 lt_cv_sys_global_symbol_pipe="$AWK '"\
7057 " {last_section=section; section=\$ 3};"\
7058 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7059 " \$ 0!~/External *\|/{next};"\
7060 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7061 " {if(hide[section]) next};"\
7062 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7063 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7064 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7065 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7066 " ' prfx=^$ac_symprfx"
7067 else
7068 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7071 # Check to see that the pipe works correctly.
7072 pipe_works=no
7074 rm -f conftest*
7075 cat > conftest.$ac_ext <<_LT_EOF
7076 #ifdef __cplusplus
7077 extern "C" {
7078 #endif
7079 char nm_test_var;
7080 void nm_test_func(void);
7081 void nm_test_func(void){}
7082 #ifdef __cplusplus
7084 #endif
7085 int main(){nm_test_var='a';nm_test_func();return(0);}
7086 _LT_EOF
7088 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7089 (eval $ac_compile) 2>&5
7090 ac_status=$?
7091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7092 test $ac_status = 0; }; then
7093 # Now try to grab the symbols.
7094 nlist=conftest.nm
7095 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7096 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7097 ac_status=$?
7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099 test $ac_status = 0; } && test -s "$nlist"; then
7100 # Try sorting and uniquifying the output.
7101 if sort "$nlist" | uniq > "$nlist"T; then
7102 mv -f "$nlist"T "$nlist"
7103 else
7104 rm -f "$nlist"T
7107 # Make sure that we snagged all the symbols we need.
7108 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7109 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7110 cat <<_LT_EOF > conftest.$ac_ext
7111 #ifdef __cplusplus
7112 extern "C" {
7113 #endif
7115 _LT_EOF
7116 # Now generate the symbol file.
7117 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7119 cat <<_LT_EOF >> conftest.$ac_ext
7121 /* The mapping between symbol names and symbols. */
7122 const struct {
7123 const char *name;
7124 void *address;
7126 lt__PROGRAM__LTX_preloaded_symbols[] =
7128 { "@PROGRAM@", (void *) 0 },
7129 _LT_EOF
7130 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7131 cat <<\_LT_EOF >> conftest.$ac_ext
7132 {0, (void *) 0}
7135 /* This works around a problem in FreeBSD linker */
7136 #ifdef FREEBSD_WORKAROUND
7137 static const void *lt_preloaded_setup() {
7138 return lt__PROGRAM__LTX_preloaded_symbols;
7140 #endif
7142 #ifdef __cplusplus
7144 #endif
7145 _LT_EOF
7146 # Now try linking the two files.
7147 mv conftest.$ac_objext conftstm.$ac_objext
7148 lt_save_LIBS="$LIBS"
7149 lt_save_CFLAGS="$CFLAGS"
7150 LIBS="conftstm.$ac_objext"
7151 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7153 (eval $ac_link) 2>&5
7154 ac_status=$?
7155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7156 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7157 pipe_works=yes
7159 LIBS="$lt_save_LIBS"
7160 CFLAGS="$lt_save_CFLAGS"
7161 else
7162 echo "cannot find nm_test_func in $nlist" >&5
7164 else
7165 echo "cannot find nm_test_var in $nlist" >&5
7167 else
7168 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7170 else
7171 echo "$progname: failed program was:" >&5
7172 cat conftest.$ac_ext >&5
7174 rm -rf conftest* conftst*
7176 # Do not use the global_symbol_pipe unless it works.
7177 if test "$pipe_works" = yes; then
7178 break
7179 else
7180 lt_cv_sys_global_symbol_pipe=
7182 done
7186 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7187 lt_cv_sys_global_symbol_to_cdecl=
7189 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7191 $as_echo "failed" >&6; }
7192 else
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7194 $as_echo "ok" >&6; }
7219 # Check whether --enable-libtool-lock was given.
7220 if test "${enable_libtool_lock+set}" = set; then :
7221 enableval=$enable_libtool_lock;
7224 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7226 # Some flags need to be propagated to the compiler or linker for good
7227 # libtool support.
7228 case $host in
7229 ia64-*-hpux*)
7230 # Find out which ABI we are using.
7231 echo 'int i;' > conftest.$ac_ext
7232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7233 (eval $ac_compile) 2>&5
7234 ac_status=$?
7235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7236 test $ac_status = 0; }; then
7237 case `/usr/bin/file conftest.$ac_objext` in
7238 *ELF-32*)
7239 HPUX_IA64_MODE="32"
7241 *ELF-64*)
7242 HPUX_IA64_MODE="64"
7244 esac
7246 rm -rf conftest*
7248 *-*-irix6*)
7249 # Find out which ABI we are using.
7250 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7252 (eval $ac_compile) 2>&5
7253 ac_status=$?
7254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7255 test $ac_status = 0; }; then
7256 if test "$lt_cv_prog_gnu_ld" = yes; then
7257 case `/usr/bin/file conftest.$ac_objext` in
7258 *32-bit*)
7259 LD="${LD-ld} -melf32bsmip"
7261 *N32*)
7262 LD="${LD-ld} -melf32bmipn32"
7264 *64-bit*)
7265 LD="${LD-ld} -melf64bmip"
7267 esac
7268 else
7269 case `/usr/bin/file conftest.$ac_objext` in
7270 *32-bit*)
7271 LD="${LD-ld} -32"
7273 *N32*)
7274 LD="${LD-ld} -n32"
7276 *64-bit*)
7277 LD="${LD-ld} -64"
7279 esac
7282 rm -rf conftest*
7285 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7286 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7287 # Find out which ABI we are using.
7288 echo 'int i;' > conftest.$ac_ext
7289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7290 (eval $ac_compile) 2>&5
7291 ac_status=$?
7292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7293 test $ac_status = 0; }; then
7294 case `/usr/bin/file conftest.o` in
7295 *32-bit*)
7296 case $host in
7297 x86_64-*kfreebsd*-gnu)
7298 LD="${LD-ld} -m elf_i386_fbsd"
7300 x86_64-*linux*)
7301 case `/usr/bin/file conftest.o` in
7302 *x86-64*)
7303 LD="${LD-ld} -m elf32_x86_64"
7306 LD="${LD-ld} -m elf_i386"
7308 esac
7310 powerpc64le-*linux*)
7311 LD="${LD-ld} -m elf32lppclinux"
7313 powerpc64-*linux*)
7314 LD="${LD-ld} -m elf32ppclinux"
7316 s390x-*linux*)
7317 LD="${LD-ld} -m elf_s390"
7319 sparc64-*linux*)
7320 LD="${LD-ld} -m elf32_sparc"
7322 esac
7324 *64-bit*)
7325 case $host in
7326 x86_64-*kfreebsd*-gnu)
7327 LD="${LD-ld} -m elf_x86_64_fbsd"
7329 x86_64-*linux*)
7330 LD="${LD-ld} -m elf_x86_64"
7332 powerpcle-*linux*)
7333 LD="${LD-ld} -m elf64lppc"
7335 powerpc-*linux*)
7336 LD="${LD-ld} -m elf64ppc"
7338 s390*-*linux*|s390*-*tpf*)
7339 LD="${LD-ld} -m elf64_s390"
7341 sparc*-*linux*)
7342 LD="${LD-ld} -m elf64_sparc"
7344 esac
7346 esac
7348 rm -rf conftest*
7351 *-*-sco3.2v5*)
7352 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7353 SAVE_CFLAGS="$CFLAGS"
7354 CFLAGS="$CFLAGS -belf"
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7356 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7357 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 ac_ext=c
7361 ac_cpp='$CPP $CPPFLAGS'
7362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7370 main ()
7374 return 0;
7376 _ACEOF
7377 if ac_fn_c_try_link "$LINENO"; then :
7378 lt_cv_cc_needs_belf=yes
7379 else
7380 lt_cv_cc_needs_belf=no
7382 rm -f core conftest.err conftest.$ac_objext \
7383 conftest$ac_exeext conftest.$ac_ext
7384 ac_ext=c
7385 ac_cpp='$CPP $CPPFLAGS'
7386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7392 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7393 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7394 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7395 CFLAGS="$SAVE_CFLAGS"
7398 sparc*-*solaris*)
7399 # Find out which ABI we are using.
7400 echo 'int i;' > conftest.$ac_ext
7401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7402 (eval $ac_compile) 2>&5
7403 ac_status=$?
7404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405 test $ac_status = 0; }; then
7406 case `/usr/bin/file conftest.o` in
7407 *64-bit*)
7408 case $lt_cv_prog_gnu_ld in
7409 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7411 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7412 LD="${LD-ld} -64"
7415 esac
7417 esac
7419 rm -rf conftest*
7421 esac
7423 need_locks="$enable_libtool_lock"
7426 case $host_os in
7427 rhapsody* | darwin*)
7428 if test -n "$ac_tool_prefix"; then
7429 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7430 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 if test -n "$DSYMUTIL"; then
7437 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7442 IFS=$as_save_IFS
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 break 2
7450 done
7451 done
7452 IFS=$as_save_IFS
7456 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7457 if test -n "$DSYMUTIL"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7459 $as_echo "$DSYMUTIL" >&6; }
7460 else
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7467 if test -z "$ac_cv_prog_DSYMUTIL"; then
7468 ac_ct_DSYMUTIL=$DSYMUTIL
7469 # Extract the first word of "dsymutil", so it can be a program name with args.
7470 set dummy dsymutil; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 if test -n "$ac_ct_DSYMUTIL"; then
7477 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7486 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 break 2
7490 done
7491 done
7492 IFS=$as_save_IFS
7496 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7497 if test -n "$ac_ct_DSYMUTIL"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7499 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7500 else
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7505 if test "x$ac_ct_DSYMUTIL" = x; then
7506 DSYMUTIL=":"
7507 else
7508 case $cross_compiling:$ac_tool_warned in
7509 yes:)
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512 ac_tool_warned=yes ;;
7513 esac
7514 DSYMUTIL=$ac_ct_DSYMUTIL
7516 else
7517 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7520 if test -n "$ac_tool_prefix"; then
7521 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7522 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 if test -n "$NMEDIT"; then
7529 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7530 else
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_exec_ext in '' $ac_executable_extensions; do
7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7538 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 break 2
7542 done
7543 done
7544 IFS=$as_save_IFS
7548 NMEDIT=$ac_cv_prog_NMEDIT
7549 if test -n "$NMEDIT"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7551 $as_echo "$NMEDIT" >&6; }
7552 else
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7559 if test -z "$ac_cv_prog_NMEDIT"; then
7560 ac_ct_NMEDIT=$NMEDIT
7561 # Extract the first word of "nmedit", so it can be a program name with args.
7562 set dummy nmedit; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 if test -n "$ac_ct_NMEDIT"; then
7569 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7570 else
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7574 IFS=$as_save_IFS
7575 test -z "$as_dir" && as_dir=.
7576 for ac_exec_ext in '' $ac_executable_extensions; do
7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580 break 2
7582 done
7583 done
7584 IFS=$as_save_IFS
7588 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7589 if test -n "$ac_ct_NMEDIT"; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7591 $as_echo "$ac_ct_NMEDIT" >&6; }
7592 else
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7597 if test "x$ac_ct_NMEDIT" = x; then
7598 NMEDIT=":"
7599 else
7600 case $cross_compiling:$ac_tool_warned in
7601 yes:)
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7604 ac_tool_warned=yes ;;
7605 esac
7606 NMEDIT=$ac_ct_NMEDIT
7608 else
7609 NMEDIT="$ac_cv_prog_NMEDIT"
7612 if test -n "$ac_tool_prefix"; then
7613 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7614 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if test "${ac_cv_prog_LIPO+set}" = set; then :
7618 $as_echo_n "(cached) " >&6
7619 else
7620 if test -n "$LIPO"; then
7621 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7626 IFS=$as_save_IFS
7627 test -z "$as_dir" && as_dir=.
7628 for ac_exec_ext in '' $ac_executable_extensions; do
7629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7630 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632 break 2
7634 done
7635 done
7636 IFS=$as_save_IFS
7640 LIPO=$ac_cv_prog_LIPO
7641 if test -n "$LIPO"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7643 $as_echo "$LIPO" >&6; }
7644 else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7651 if test -z "$ac_cv_prog_LIPO"; then
7652 ac_ct_LIPO=$LIPO
7653 # Extract the first word of "lipo", so it can be a program name with args.
7654 set dummy lipo; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 if test -n "$ac_ct_LIPO"; then
7661 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670 ac_cv_prog_ac_ct_LIPO="lipo"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672 break 2
7674 done
7675 done
7676 IFS=$as_save_IFS
7680 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7681 if test -n "$ac_ct_LIPO"; then
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7683 $as_echo "$ac_ct_LIPO" >&6; }
7684 else
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7689 if test "x$ac_ct_LIPO" = x; then
7690 LIPO=":"
7691 else
7692 case $cross_compiling:$ac_tool_warned in
7693 yes:)
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696 ac_tool_warned=yes ;;
7697 esac
7698 LIPO=$ac_ct_LIPO
7700 else
7701 LIPO="$ac_cv_prog_LIPO"
7704 if test -n "$ac_tool_prefix"; then
7705 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7706 set dummy ${ac_tool_prefix}otool; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7710 $as_echo_n "(cached) " >&6
7711 else
7712 if test -n "$OTOOL"; then
7713 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7718 IFS=$as_save_IFS
7719 test -z "$as_dir" && as_dir=.
7720 for ac_exec_ext in '' $ac_executable_extensions; do
7721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7722 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724 break 2
7726 done
7727 done
7728 IFS=$as_save_IFS
7732 OTOOL=$ac_cv_prog_OTOOL
7733 if test -n "$OTOOL"; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7735 $as_echo "$OTOOL" >&6; }
7736 else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7743 if test -z "$ac_cv_prog_OTOOL"; then
7744 ac_ct_OTOOL=$OTOOL
7745 # Extract the first word of "otool", so it can be a program name with args.
7746 set dummy otool; ac_word=$2
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7748 $as_echo_n "checking for $ac_word... " >&6; }
7749 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 if test -n "$ac_ct_OTOOL"; then
7753 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7754 else
7755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7756 for as_dir in $PATH
7758 IFS=$as_save_IFS
7759 test -z "$as_dir" && as_dir=.
7760 for ac_exec_ext in '' $ac_executable_extensions; do
7761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7762 ac_cv_prog_ac_ct_OTOOL="otool"
7763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7764 break 2
7766 done
7767 done
7768 IFS=$as_save_IFS
7772 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7773 if test -n "$ac_ct_OTOOL"; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7775 $as_echo "$ac_ct_OTOOL" >&6; }
7776 else
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7778 $as_echo "no" >&6; }
7781 if test "x$ac_ct_OTOOL" = x; then
7782 OTOOL=":"
7783 else
7784 case $cross_compiling:$ac_tool_warned in
7785 yes:)
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7788 ac_tool_warned=yes ;;
7789 esac
7790 OTOOL=$ac_ct_OTOOL
7792 else
7793 OTOOL="$ac_cv_prog_OTOOL"
7796 if test -n "$ac_tool_prefix"; then
7797 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7798 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 if test -n "$OTOOL64"; then
7805 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7810 IFS=$as_save_IFS
7811 test -z "$as_dir" && as_dir=.
7812 for ac_exec_ext in '' $ac_executable_extensions; do
7813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7814 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816 break 2
7818 done
7819 done
7820 IFS=$as_save_IFS
7824 OTOOL64=$ac_cv_prog_OTOOL64
7825 if test -n "$OTOOL64"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7827 $as_echo "$OTOOL64" >&6; }
7828 else
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7835 if test -z "$ac_cv_prog_OTOOL64"; then
7836 ac_ct_OTOOL64=$OTOOL64
7837 # Extract the first word of "otool64", so it can be a program name with args.
7838 set dummy otool64; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
7843 else
7844 if test -n "$ac_ct_OTOOL64"; then
7845 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7846 else
7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848 for as_dir in $PATH
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7854 ac_cv_prog_ac_ct_OTOOL64="otool64"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7856 break 2
7858 done
7859 done
7860 IFS=$as_save_IFS
7864 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7865 if test -n "$ac_ct_OTOOL64"; then
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7867 $as_echo "$ac_ct_OTOOL64" >&6; }
7868 else
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7873 if test "x$ac_ct_OTOOL64" = x; then
7874 OTOOL64=":"
7875 else
7876 case $cross_compiling:$ac_tool_warned in
7877 yes:)
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7880 ac_tool_warned=yes ;;
7881 esac
7882 OTOOL64=$ac_ct_OTOOL64
7884 else
7885 OTOOL64="$ac_cv_prog_OTOOL64"
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7915 $as_echo_n "checking for -single_module linker flag... " >&6; }
7916 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7917 $as_echo_n "(cached) " >&6
7918 else
7919 lt_cv_apple_cc_single_mod=no
7920 if test -z "${LT_MULTI_MODULE}"; then
7921 # By default we will add the -single_module flag. You can override
7922 # by either setting the environment variable LT_MULTI_MODULE
7923 # non-empty at configure time, or by adding -multi_module to the
7924 # link flags.
7925 rm -rf libconftest.dylib*
7926 echo "int foo(void){return 1;}" > conftest.c
7927 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7928 -dynamiclib -Wl,-single_module conftest.c" >&5
7929 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7930 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7931 _lt_result=$?
7932 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7933 lt_cv_apple_cc_single_mod=yes
7934 else
7935 cat conftest.err >&5
7937 rm -rf libconftest.dylib*
7938 rm -f conftest.*
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7942 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7944 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7945 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7946 $as_echo_n "(cached) " >&6
7947 else
7948 lt_cv_ld_exported_symbols_list=no
7949 save_LDFLAGS=$LDFLAGS
7950 echo "_main" > conftest.sym
7951 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7956 main ()
7960 return 0;
7962 _ACEOF
7963 if ac_fn_c_try_link "$LINENO"; then :
7964 lt_cv_ld_exported_symbols_list=yes
7965 else
7966 lt_cv_ld_exported_symbols_list=no
7968 rm -f core conftest.err conftest.$ac_objext \
7969 conftest$ac_exeext conftest.$ac_ext
7970 LDFLAGS="$save_LDFLAGS"
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7974 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7976 $as_echo_n "checking for -force_load linker flag... " >&6; }
7977 if test "${lt_cv_ld_force_load+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980 lt_cv_ld_force_load=no
7981 cat > conftest.c << _LT_EOF
7982 int forced_loaded() { return 2;}
7983 _LT_EOF
7984 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7985 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7986 echo "$AR cru libconftest.a conftest.o" >&5
7987 $AR cru libconftest.a conftest.o 2>&5
7988 cat > conftest.c << _LT_EOF
7989 int main() { return 0;}
7990 _LT_EOF
7991 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7992 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7993 _lt_result=$?
7994 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7995 lt_cv_ld_force_load=yes
7996 else
7997 cat conftest.err >&5
7999 rm -f conftest.err libconftest.a conftest conftest.c
8000 rm -rf conftest.dSYM
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8004 $as_echo "$lt_cv_ld_force_load" >&6; }
8005 case $host_os in
8006 rhapsody* | darwin1.[012])
8007 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8008 darwin1.*)
8009 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8010 darwin*) # darwin 5.x on
8011 # if running on 10.5 or later, the deployment target defaults
8012 # to the OS version, if on x86, and 10.4, the deployment
8013 # target defaults to 10.4. Don't you love it?
8014 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8015 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8016 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8017 10.[012][,.]*)
8018 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8019 10.*)
8020 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8021 esac
8023 esac
8024 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8025 _lt_dar_single_mod='$single_module'
8027 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8028 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8029 else
8030 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8032 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8033 _lt_dsymutil='~$DSYMUTIL $lib || :'
8034 else
8035 _lt_dsymutil=
8038 esac
8040 ac_ext=c
8041 ac_cpp='$CPP $CPPFLAGS'
8042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8046 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8047 # On Suns, sometimes $CPP names a directory.
8048 if test -n "$CPP" && test -d "$CPP"; then
8049 CPP=
8051 if test -z "$CPP"; then
8052 if test "${ac_cv_prog_CPP+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 # Double quotes because CPP needs to be expanded
8056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8058 ac_preproc_ok=false
8059 for ac_c_preproc_warn_flag in '' yes
8061 # Use a header file that comes with gcc, so configuring glibc
8062 # with a fresh cross-compiler works.
8063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8064 # <limits.h> exists even on freestanding compilers.
8065 # On the NeXT, cc -E runs the code through the compiler's parser,
8066 # not just through cpp. "Syntax error" is here to catch this case.
8067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8069 #ifdef __STDC__
8070 # include <limits.h>
8071 #else
8072 # include <assert.h>
8073 #endif
8074 Syntax error
8075 _ACEOF
8076 if ac_fn_c_try_cpp "$LINENO"; then :
8078 else
8079 # Broken: fails on valid input.
8080 continue
8082 rm -f conftest.err conftest.$ac_ext
8084 # OK, works on sane cases. Now check whether nonexistent headers
8085 # can be detected and how.
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8088 #include <ac_nonexistent.h>
8089 _ACEOF
8090 if ac_fn_c_try_cpp "$LINENO"; then :
8091 # Broken: success on invalid input.
8092 continue
8093 else
8094 # Passes both tests.
8095 ac_preproc_ok=:
8096 break
8098 rm -f conftest.err conftest.$ac_ext
8100 done
8101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8102 rm -f conftest.err conftest.$ac_ext
8103 if $ac_preproc_ok; then :
8104 break
8107 done
8108 ac_cv_prog_CPP=$CPP
8111 CPP=$ac_cv_prog_CPP
8112 else
8113 ac_cv_prog_CPP=$CPP
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8116 $as_echo "$CPP" >&6; }
8117 ac_preproc_ok=false
8118 for ac_c_preproc_warn_flag in '' yes
8120 # Use a header file that comes with gcc, so configuring glibc
8121 # with a fresh cross-compiler works.
8122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8123 # <limits.h> exists even on freestanding compilers.
8124 # On the NeXT, cc -E runs the code through the compiler's parser,
8125 # not just through cpp. "Syntax error" is here to catch this case.
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8127 /* end confdefs.h. */
8128 #ifdef __STDC__
8129 # include <limits.h>
8130 #else
8131 # include <assert.h>
8132 #endif
8133 Syntax error
8134 _ACEOF
8135 if ac_fn_c_try_cpp "$LINENO"; then :
8137 else
8138 # Broken: fails on valid input.
8139 continue
8141 rm -f conftest.err conftest.$ac_ext
8143 # OK, works on sane cases. Now check whether nonexistent headers
8144 # can be detected and how.
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 #include <ac_nonexistent.h>
8148 _ACEOF
8149 if ac_fn_c_try_cpp "$LINENO"; then :
8150 # Broken: success on invalid input.
8151 continue
8152 else
8153 # Passes both tests.
8154 ac_preproc_ok=:
8155 break
8157 rm -f conftest.err conftest.$ac_ext
8159 done
8160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8161 rm -f conftest.err conftest.$ac_ext
8162 if $ac_preproc_ok; then :
8164 else
8165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8167 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8168 See \`config.log' for more details." "$LINENO" 5; }
8171 ac_ext=c
8172 ac_cpp='$CPP $CPPFLAGS'
8173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8179 $as_echo_n "checking for ANSI C header files... " >&6; }
8180 if test "${ac_cv_header_stdc+set}" = set; then :
8181 $as_echo_n "(cached) " >&6
8182 else
8183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185 #include <stdlib.h>
8186 #include <stdarg.h>
8187 #include <string.h>
8188 #include <float.h>
8191 main ()
8195 return 0;
8197 _ACEOF
8198 if ac_fn_c_try_compile "$LINENO"; then :
8199 ac_cv_header_stdc=yes
8200 else
8201 ac_cv_header_stdc=no
8203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 if test $ac_cv_header_stdc = yes; then
8206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 #include <string.h>
8211 _ACEOF
8212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8213 $EGREP "memchr" >/dev/null 2>&1; then :
8215 else
8216 ac_cv_header_stdc=no
8218 rm -f conftest*
8222 if test $ac_cv_header_stdc = yes; then
8223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8226 #include <stdlib.h>
8228 _ACEOF
8229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8230 $EGREP "free" >/dev/null 2>&1; then :
8232 else
8233 ac_cv_header_stdc=no
8235 rm -f conftest*
8239 if test $ac_cv_header_stdc = yes; then
8240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8241 if test "$cross_compiling" = yes; then :
8243 else
8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8246 #include <ctype.h>
8247 #include <stdlib.h>
8248 #if ((' ' & 0x0FF) == 0x020)
8249 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8250 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8251 #else
8252 # define ISLOWER(c) \
8253 (('a' <= (c) && (c) <= 'i') \
8254 || ('j' <= (c) && (c) <= 'r') \
8255 || ('s' <= (c) && (c) <= 'z'))
8256 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8257 #endif
8259 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8261 main ()
8263 int i;
8264 for (i = 0; i < 256; i++)
8265 if (XOR (islower (i), ISLOWER (i))
8266 || toupper (i) != TOUPPER (i))
8267 return 2;
8268 return 0;
8270 _ACEOF
8271 if ac_fn_c_try_run "$LINENO"; then :
8273 else
8274 ac_cv_header_stdc=no
8276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8277 conftest.$ac_objext conftest.beam conftest.$ac_ext
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8283 $as_echo "$ac_cv_header_stdc" >&6; }
8284 if test $ac_cv_header_stdc = yes; then
8286 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8290 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8292 inttypes.h stdint.h unistd.h
8293 do :
8294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8295 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8297 eval as_val=\$$as_ac_Header
8298 if test "x$as_val" = x""yes; then :
8299 cat >>confdefs.h <<_ACEOF
8300 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8301 _ACEOF
8305 done
8308 for ac_header in dlfcn.h
8309 do :
8310 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8312 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8313 cat >>confdefs.h <<_ACEOF
8314 #define HAVE_DLFCN_H 1
8315 _ACEOF
8319 done
8326 # Set options
8330 enable_dlopen=no
8333 enable_win32_dll=no
8336 # Check whether --enable-shared was given.
8337 if test "${enable_shared+set}" = set; then :
8338 enableval=$enable_shared; p=${PACKAGE-default}
8339 case $enableval in
8340 yes) enable_shared=yes ;;
8341 no) enable_shared=no ;;
8343 enable_shared=no
8344 # Look at the argument we got. We use all the common list separators.
8345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8346 for pkg in $enableval; do
8347 IFS="$lt_save_ifs"
8348 if test "X$pkg" = "X$p"; then
8349 enable_shared=yes
8351 done
8352 IFS="$lt_save_ifs"
8354 esac
8355 else
8356 enable_shared=yes
8367 # Check whether --enable-static was given.
8368 if test "${enable_static+set}" = set; then :
8369 enableval=$enable_static; p=${PACKAGE-default}
8370 case $enableval in
8371 yes) enable_static=yes ;;
8372 no) enable_static=no ;;
8374 enable_static=no
8375 # Look at the argument we got. We use all the common list separators.
8376 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8377 for pkg in $enableval; do
8378 IFS="$lt_save_ifs"
8379 if test "X$pkg" = "X$p"; then
8380 enable_static=yes
8382 done
8383 IFS="$lt_save_ifs"
8385 esac
8386 else
8387 enable_static=yes
8399 # Check whether --with-pic was given.
8400 if test "${with_pic+set}" = set; then :
8401 withval=$with_pic; pic_mode="$withval"
8402 else
8403 pic_mode=default
8407 test -z "$pic_mode" && pic_mode=default
8415 # Check whether --enable-fast-install was given.
8416 if test "${enable_fast_install+set}" = set; then :
8417 enableval=$enable_fast_install; p=${PACKAGE-default}
8418 case $enableval in
8419 yes) enable_fast_install=yes ;;
8420 no) enable_fast_install=no ;;
8422 enable_fast_install=no
8423 # Look at the argument we got. We use all the common list separators.
8424 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8425 for pkg in $enableval; do
8426 IFS="$lt_save_ifs"
8427 if test "X$pkg" = "X$p"; then
8428 enable_fast_install=yes
8430 done
8431 IFS="$lt_save_ifs"
8433 esac
8434 else
8435 enable_fast_install=yes
8448 # This can be used to rebuild libtool when needed
8449 LIBTOOL_DEPS="$ltmain"
8451 # Always use our own libtool.
8452 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8479 test -z "$LN_S" && LN_S="ln -s"
8494 if test -n "${ZSH_VERSION+set}" ; then
8495 setopt NO_GLOB_SUBST
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8499 $as_echo_n "checking for objdir... " >&6; }
8500 if test "${lt_cv_objdir+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 rm -f .libs 2>/dev/null
8504 mkdir .libs 2>/dev/null
8505 if test -d .libs; then
8506 lt_cv_objdir=.libs
8507 else
8508 # MS-DOS does not allow filenames that begin with a dot.
8509 lt_cv_objdir=_libs
8511 rmdir .libs 2>/dev/null
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8514 $as_echo "$lt_cv_objdir" >&6; }
8515 objdir=$lt_cv_objdir
8521 cat >>confdefs.h <<_ACEOF
8522 #define LT_OBJDIR "$lt_cv_objdir/"
8523 _ACEOF
8528 case $host_os in
8529 aix3*)
8530 # AIX sometimes has problems with the GCC collect2 program. For some
8531 # reason, if we set the COLLECT_NAMES environment variable, the problems
8532 # vanish in a puff of smoke.
8533 if test "X${COLLECT_NAMES+set}" != Xset; then
8534 COLLECT_NAMES=
8535 export COLLECT_NAMES
8538 esac
8540 # Global variables:
8541 ofile=libtool
8542 can_build_shared=yes
8544 # All known linkers require a `.a' archive for static linking (except MSVC,
8545 # which needs '.lib').
8546 libext=a
8548 with_gnu_ld="$lt_cv_prog_gnu_ld"
8550 old_CC="$CC"
8551 old_CFLAGS="$CFLAGS"
8553 # Set sane defaults for various variables
8554 test -z "$CC" && CC=cc
8555 test -z "$LTCC" && LTCC=$CC
8556 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8557 test -z "$LD" && LD=ld
8558 test -z "$ac_objext" && ac_objext=o
8560 for cc_temp in $compiler""; do
8561 case $cc_temp in
8562 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8563 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8564 \-*) ;;
8565 *) break;;
8566 esac
8567 done
8568 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8571 # Only perform the check for file, if the check method requires it
8572 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8573 case $deplibs_check_method in
8574 file_magic*)
8575 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8577 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8578 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8579 $as_echo_n "(cached) " >&6
8580 else
8581 case $MAGIC_CMD in
8582 [\\/*] | ?:[\\/]*)
8583 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8586 lt_save_MAGIC_CMD="$MAGIC_CMD"
8587 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8588 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8589 for ac_dir in $ac_dummy; do
8590 IFS="$lt_save_ifs"
8591 test -z "$ac_dir" && ac_dir=.
8592 if test -f $ac_dir/${ac_tool_prefix}file; then
8593 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8594 if test -n "$file_magic_test_file"; then
8595 case $deplibs_check_method in
8596 "file_magic "*)
8597 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8598 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8599 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8600 $EGREP "$file_magic_regex" > /dev/null; then
8602 else
8603 cat <<_LT_EOF 1>&2
8605 *** Warning: the command libtool uses to detect shared libraries,
8606 *** $file_magic_cmd, produces output that libtool cannot recognize.
8607 *** The result is that libtool may fail to recognize shared libraries
8608 *** as such. This will affect the creation of libtool libraries that
8609 *** depend on shared libraries, but programs linked with such libtool
8610 *** libraries will work regardless of this problem. Nevertheless, you
8611 *** may want to report the problem to your system manager and/or to
8612 *** bug-libtool@gnu.org
8614 _LT_EOF
8615 fi ;;
8616 esac
8618 break
8620 done
8621 IFS="$lt_save_ifs"
8622 MAGIC_CMD="$lt_save_MAGIC_CMD"
8624 esac
8627 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8628 if test -n "$MAGIC_CMD"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8630 $as_echo "$MAGIC_CMD" >&6; }
8631 else
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8640 if test -z "$lt_cv_path_MAGIC_CMD"; then
8641 if test -n "$ac_tool_prefix"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8643 $as_echo_n "checking for file... " >&6; }
8644 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 case $MAGIC_CMD in
8648 [\\/*] | ?:[\\/]*)
8649 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8652 lt_save_MAGIC_CMD="$MAGIC_CMD"
8653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8654 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8655 for ac_dir in $ac_dummy; do
8656 IFS="$lt_save_ifs"
8657 test -z "$ac_dir" && ac_dir=.
8658 if test -f $ac_dir/file; then
8659 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8660 if test -n "$file_magic_test_file"; then
8661 case $deplibs_check_method in
8662 "file_magic "*)
8663 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8664 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8665 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8666 $EGREP "$file_magic_regex" > /dev/null; then
8668 else
8669 cat <<_LT_EOF 1>&2
8671 *** Warning: the command libtool uses to detect shared libraries,
8672 *** $file_magic_cmd, produces output that libtool cannot recognize.
8673 *** The result is that libtool may fail to recognize shared libraries
8674 *** as such. This will affect the creation of libtool libraries that
8675 *** depend on shared libraries, but programs linked with such libtool
8676 *** libraries will work regardless of this problem. Nevertheless, you
8677 *** may want to report the problem to your system manager and/or to
8678 *** bug-libtool@gnu.org
8680 _LT_EOF
8681 fi ;;
8682 esac
8684 break
8686 done
8687 IFS="$lt_save_ifs"
8688 MAGIC_CMD="$lt_save_MAGIC_CMD"
8690 esac
8693 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8694 if test -n "$MAGIC_CMD"; then
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8696 $as_echo "$MAGIC_CMD" >&6; }
8697 else
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8699 $as_echo "no" >&6; }
8703 else
8704 MAGIC_CMD=:
8710 esac
8712 # Use C for the default configuration in the libtool script
8714 lt_save_CC="$CC"
8715 ac_ext=c
8716 ac_cpp='$CPP $CPPFLAGS'
8717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8722 # Source file extension for C test sources.
8723 ac_ext=c
8725 # Object file extension for compiled C test sources.
8726 objext=o
8727 objext=$objext
8729 # Code to be used in simple compile tests
8730 lt_simple_compile_test_code="int some_variable = 0;"
8732 # Code to be used in simple link tests
8733 lt_simple_link_test_code='int main(){return(0);}'
8741 # If no C compiler was specified, use CC.
8742 LTCC=${LTCC-"$CC"}
8744 # If no C compiler flags were specified, use CFLAGS.
8745 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8747 # Allow CC to be a program name with arguments.
8748 compiler=$CC
8750 # Save the default compiler, since it gets overwritten when the other
8751 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8752 compiler_DEFAULT=$CC
8754 # save warnings/boilerplate of simple test code
8755 ac_outfile=conftest.$ac_objext
8756 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8757 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8758 _lt_compiler_boilerplate=`cat conftest.err`
8759 $RM conftest*
8761 ac_outfile=conftest.$ac_objext
8762 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8763 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8764 _lt_linker_boilerplate=`cat conftest.err`
8765 $RM -r conftest*
8768 ## CAVEAT EMPTOR:
8769 ## There is no encapsulation within the following macros, do not change
8770 ## the running order or otherwise move them around unless you know exactly
8771 ## what you are doing...
8772 if test -n "$compiler"; then
8774 lt_prog_compiler_no_builtin_flag=
8776 if test "$GCC" = yes; then
8777 case $cc_basename in
8778 nvcc*)
8779 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8781 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8782 esac
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8785 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8786 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 lt_cv_prog_compiler_rtti_exceptions=no
8790 ac_outfile=conftest.$ac_objext
8791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8792 lt_compiler_flag="-fno-rtti -fno-exceptions"
8793 # Insert the option either (1) after the last *FLAGS variable, or
8794 # (2) before a word containing "conftest.", or (3) at the end.
8795 # Note that $ac_compile itself does not contain backslashes and begins
8796 # with a dollar sign (not a hyphen), so the echo should work correctly.
8797 # The option is referenced via a variable to avoid confusing sed.
8798 lt_compile=`echo "$ac_compile" | $SED \
8799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8801 -e 's:$: $lt_compiler_flag:'`
8802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8803 (eval "$lt_compile" 2>conftest.err)
8804 ac_status=$?
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 if (exit $ac_status) && test -s "$ac_outfile"; then
8808 # The compiler can only warn and ignore the option if not recognized
8809 # So say no if there are warnings other than the usual output.
8810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8813 lt_cv_prog_compiler_rtti_exceptions=yes
8816 $RM conftest*
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8820 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8822 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8823 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8824 else
8835 lt_prog_compiler_wl=
8836 lt_prog_compiler_pic=
8837 lt_prog_compiler_static=
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8840 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8842 if test "$GCC" = yes; then
8843 lt_prog_compiler_wl='-Wl,'
8844 lt_prog_compiler_static='-static'
8846 case $host_os in
8847 aix*)
8848 # All AIX code is PIC.
8849 if test "$host_cpu" = ia64; then
8850 # AIX 5 now supports IA64 processor
8851 lt_prog_compiler_static='-Bstatic'
8853 lt_prog_compiler_pic='-fPIC'
8856 amigaos*)
8857 case $host_cpu in
8858 powerpc)
8859 # see comment about AmigaOS4 .so support
8860 lt_prog_compiler_pic='-fPIC'
8862 m68k)
8863 # FIXME: we need at least 68020 code to build shared libraries, but
8864 # adding the `-m68020' flag to GCC prevents building anything better,
8865 # like `-m68040'.
8866 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8868 esac
8871 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8872 # PIC is the default for these OSes.
8875 mingw* | cygwin* | pw32* | os2* | cegcc*)
8876 # This hack is so that the source file can tell whether it is being
8877 # built for inclusion in a dll (and should export symbols for example).
8878 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8879 # (--disable-auto-import) libraries
8880 lt_prog_compiler_pic='-DDLL_EXPORT'
8883 darwin* | rhapsody*)
8884 # PIC is the default on this platform
8885 # Common symbols not allowed in MH_DYLIB files
8886 lt_prog_compiler_pic='-fno-common'
8889 haiku*)
8890 # PIC is the default for Haiku.
8891 # The "-static" flag exists, but is broken.
8892 lt_prog_compiler_static=
8895 hpux*)
8896 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8897 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8898 # sets the default TLS model and affects inlining.
8899 case $host_cpu in
8900 hppa*64*)
8901 # +Z the default
8904 lt_prog_compiler_pic='-fPIC'
8906 esac
8909 interix[3-9]*)
8910 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8911 # Instead, we relocate shared libraries at runtime.
8914 msdosdjgpp*)
8915 # Just because we use GCC doesn't mean we suddenly get shared libraries
8916 # on systems that don't support them.
8917 lt_prog_compiler_can_build_shared=no
8918 enable_shared=no
8921 *nto* | *qnx*)
8922 # QNX uses GNU C++, but need to define -shared option too, otherwise
8923 # it will coredump.
8924 lt_prog_compiler_pic='-fPIC -shared'
8927 sysv4*MP*)
8928 if test -d /usr/nec; then
8929 lt_prog_compiler_pic=-Kconform_pic
8934 lt_prog_compiler_pic='-fPIC'
8936 esac
8938 case $cc_basename in
8939 nvcc*) # Cuda Compiler Driver 2.2
8940 lt_prog_compiler_wl='-Xlinker '
8941 lt_prog_compiler_pic='-Xcompiler -fPIC'
8943 esac
8944 else
8945 # PORTME Check for flag to pass linker flags through the system compiler.
8946 case $host_os in
8947 aix*)
8948 lt_prog_compiler_wl='-Wl,'
8949 if test "$host_cpu" = ia64; then
8950 # AIX 5 now supports IA64 processor
8951 lt_prog_compiler_static='-Bstatic'
8952 else
8953 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8957 mingw* | cygwin* | pw32* | os2* | cegcc*)
8958 # This hack is so that the source file can tell whether it is being
8959 # built for inclusion in a dll (and should export symbols for example).
8960 lt_prog_compiler_pic='-DDLL_EXPORT'
8963 hpux9* | hpux10* | hpux11*)
8964 lt_prog_compiler_wl='-Wl,'
8965 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8966 # not for PA HP-UX.
8967 case $host_cpu in
8968 hppa*64*|ia64*)
8969 # +Z the default
8972 lt_prog_compiler_pic='+Z'
8974 esac
8975 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8976 lt_prog_compiler_static='${wl}-a ${wl}archive'
8979 irix5* | irix6* | nonstopux*)
8980 lt_prog_compiler_wl='-Wl,'
8981 # PIC (with -KPIC) is the default.
8982 lt_prog_compiler_static='-non_shared'
8985 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8986 case $cc_basename in
8987 # old Intel for x86_64 which still supported -KPIC.
8988 ecc*)
8989 lt_prog_compiler_wl='-Wl,'
8990 lt_prog_compiler_pic='-KPIC'
8991 lt_prog_compiler_static='-static'
8993 # icc used to be incompatible with GCC.
8994 # ICC 10 doesn't accept -KPIC any more.
8995 icc* | ifort*)
8996 lt_prog_compiler_wl='-Wl,'
8997 lt_prog_compiler_pic='-fPIC'
8998 lt_prog_compiler_static='-static'
9000 # Lahey Fortran 8.1.
9001 lf95*)
9002 lt_prog_compiler_wl='-Wl,'
9003 lt_prog_compiler_pic='--shared'
9004 lt_prog_compiler_static='--static'
9006 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9007 # Portland Group compilers (*not* the Pentium gcc compiler,
9008 # which looks to be a dead project)
9009 lt_prog_compiler_wl='-Wl,'
9010 lt_prog_compiler_pic='-fpic'
9011 lt_prog_compiler_static='-Bstatic'
9013 ccc*)
9014 lt_prog_compiler_wl='-Wl,'
9015 # All Alpha code is PIC.
9016 lt_prog_compiler_static='-non_shared'
9018 xl* | bgxl* | bgf* | mpixl*)
9019 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9020 lt_prog_compiler_wl='-Wl,'
9021 lt_prog_compiler_pic='-qpic'
9022 lt_prog_compiler_static='-qstaticlink'
9025 case `$CC -V 2>&1 | sed 5q` in
9026 *Sun\ F* | *Sun*Fortran*)
9027 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9028 lt_prog_compiler_pic='-KPIC'
9029 lt_prog_compiler_static='-Bstatic'
9030 lt_prog_compiler_wl=''
9032 *Sun\ C*)
9033 # Sun C 5.9
9034 lt_prog_compiler_pic='-KPIC'
9035 lt_prog_compiler_static='-Bstatic'
9036 lt_prog_compiler_wl='-Wl,'
9038 esac
9040 esac
9043 newsos6)
9044 lt_prog_compiler_pic='-KPIC'
9045 lt_prog_compiler_static='-Bstatic'
9048 *nto* | *qnx*)
9049 # QNX uses GNU C++, but need to define -shared option too, otherwise
9050 # it will coredump.
9051 lt_prog_compiler_pic='-fPIC -shared'
9054 osf3* | osf4* | osf5*)
9055 lt_prog_compiler_wl='-Wl,'
9056 # All OSF/1 code is PIC.
9057 lt_prog_compiler_static='-non_shared'
9060 rdos*)
9061 lt_prog_compiler_static='-non_shared'
9064 solaris*)
9065 lt_prog_compiler_pic='-KPIC'
9066 lt_prog_compiler_static='-Bstatic'
9067 case $cc_basename in
9068 f77* | f90* | f95*)
9069 lt_prog_compiler_wl='-Qoption ld ';;
9071 lt_prog_compiler_wl='-Wl,';;
9072 esac
9075 sunos4*)
9076 lt_prog_compiler_wl='-Qoption ld '
9077 lt_prog_compiler_pic='-PIC'
9078 lt_prog_compiler_static='-Bstatic'
9081 sysv4 | sysv4.2uw2* | sysv4.3*)
9082 lt_prog_compiler_wl='-Wl,'
9083 lt_prog_compiler_pic='-KPIC'
9084 lt_prog_compiler_static='-Bstatic'
9087 sysv4*MP*)
9088 if test -d /usr/nec ;then
9089 lt_prog_compiler_pic='-Kconform_pic'
9090 lt_prog_compiler_static='-Bstatic'
9094 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9095 lt_prog_compiler_wl='-Wl,'
9096 lt_prog_compiler_pic='-KPIC'
9097 lt_prog_compiler_static='-Bstatic'
9100 unicos*)
9101 lt_prog_compiler_wl='-Wl,'
9102 lt_prog_compiler_can_build_shared=no
9105 uts4*)
9106 lt_prog_compiler_pic='-pic'
9107 lt_prog_compiler_static='-Bstatic'
9111 lt_prog_compiler_can_build_shared=no
9113 esac
9116 case $host_os in
9117 # For platforms which do not support PIC, -DPIC is meaningless:
9118 *djgpp*)
9119 lt_prog_compiler_pic=
9122 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9124 esac
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9126 $as_echo "$lt_prog_compiler_pic" >&6; }
9134 # Check to make sure the PIC flag actually works.
9136 if test -n "$lt_prog_compiler_pic"; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9138 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9139 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 lt_cv_prog_compiler_pic_works=no
9143 ac_outfile=conftest.$ac_objext
9144 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9145 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9146 # Insert the option either (1) after the last *FLAGS variable, or
9147 # (2) before a word containing "conftest.", or (3) at the end.
9148 # Note that $ac_compile itself does not contain backslashes and begins
9149 # with a dollar sign (not a hyphen), so the echo should work correctly.
9150 # The option is referenced via a variable to avoid confusing sed.
9151 lt_compile=`echo "$ac_compile" | $SED \
9152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9154 -e 's:$: $lt_compiler_flag:'`
9155 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9156 (eval "$lt_compile" 2>conftest.err)
9157 ac_status=$?
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 if (exit $ac_status) && test -s "$ac_outfile"; then
9161 # The compiler can only warn and ignore the option if not recognized
9162 # So say no if there are warnings other than the usual output.
9163 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9164 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9165 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9166 lt_cv_prog_compiler_pic_works=yes
9169 $RM conftest*
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9173 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9175 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9176 case $lt_prog_compiler_pic in
9177 "" | " "*) ;;
9178 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9179 esac
9180 else
9181 lt_prog_compiler_pic=
9182 lt_prog_compiler_can_build_shared=no
9193 # Check to make sure the static flag actually works.
9195 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9197 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9198 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9199 $as_echo_n "(cached) " >&6
9200 else
9201 lt_cv_prog_compiler_static_works=no
9202 save_LDFLAGS="$LDFLAGS"
9203 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9204 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9205 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9206 # The linker can only warn and ignore the option if not recognized
9207 # So say no if there are warnings
9208 if test -s conftest.err; then
9209 # Append any errors to the config.log.
9210 cat conftest.err 1>&5
9211 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9213 if diff conftest.exp conftest.er2 >/dev/null; then
9214 lt_cv_prog_compiler_static_works=yes
9216 else
9217 lt_cv_prog_compiler_static_works=yes
9220 $RM -r conftest*
9221 LDFLAGS="$save_LDFLAGS"
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9225 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9227 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9229 else
9230 lt_prog_compiler_static=
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9240 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9241 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9242 $as_echo_n "(cached) " >&6
9243 else
9244 lt_cv_prog_compiler_c_o=no
9245 $RM -r conftest 2>/dev/null
9246 mkdir conftest
9247 cd conftest
9248 mkdir out
9249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9251 lt_compiler_flag="-o out/conftest2.$ac_objext"
9252 # Insert the option either (1) after the last *FLAGS variable, or
9253 # (2) before a word containing "conftest.", or (3) at the end.
9254 # Note that $ac_compile itself does not contain backslashes and begins
9255 # with a dollar sign (not a hyphen), so the echo should work correctly.
9256 lt_compile=`echo "$ac_compile" | $SED \
9257 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9258 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9259 -e 's:$: $lt_compiler_flag:'`
9260 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9261 (eval "$lt_compile" 2>out/conftest.err)
9262 ac_status=$?
9263 cat out/conftest.err >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9266 then
9267 # The compiler can only warn and ignore the option if not recognized
9268 # So say no if there are warnings
9269 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9270 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9271 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9272 lt_cv_prog_compiler_c_o=yes
9275 chmod u+w . 2>&5
9276 $RM conftest*
9277 # SGI C++ compiler will create directory out/ii_files/ for
9278 # template instantiation
9279 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9280 $RM out/* && rmdir out
9281 cd ..
9282 $RM -r conftest
9283 $RM conftest*
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9287 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9295 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9296 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9297 $as_echo_n "(cached) " >&6
9298 else
9299 lt_cv_prog_compiler_c_o=no
9300 $RM -r conftest 2>/dev/null
9301 mkdir conftest
9302 cd conftest
9303 mkdir out
9304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9306 lt_compiler_flag="-o out/conftest2.$ac_objext"
9307 # Insert the option either (1) after the last *FLAGS variable, or
9308 # (2) before a word containing "conftest.", or (3) at the end.
9309 # Note that $ac_compile itself does not contain backslashes and begins
9310 # with a dollar sign (not a hyphen), so the echo should work correctly.
9311 lt_compile=`echo "$ac_compile" | $SED \
9312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9314 -e 's:$: $lt_compiler_flag:'`
9315 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9316 (eval "$lt_compile" 2>out/conftest.err)
9317 ac_status=$?
9318 cat out/conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9321 then
9322 # The compiler can only warn and ignore the option if not recognized
9323 # So say no if there are warnings
9324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9325 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9326 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9327 lt_cv_prog_compiler_c_o=yes
9330 chmod u+w . 2>&5
9331 $RM conftest*
9332 # SGI C++ compiler will create directory out/ii_files/ for
9333 # template instantiation
9334 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9335 $RM out/* && rmdir out
9336 cd ..
9337 $RM -r conftest
9338 $RM conftest*
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9342 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9347 hard_links="nottested"
9348 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9349 # do not overwrite the value of need_locks provided by the user
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9351 $as_echo_n "checking if we can lock with hard links... " >&6; }
9352 hard_links=yes
9353 $RM conftest*
9354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9355 touch conftest.a
9356 ln conftest.a conftest.b 2>&5 || hard_links=no
9357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9359 $as_echo "$hard_links" >&6; }
9360 if test "$hard_links" = no; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9362 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9363 need_locks=warn
9365 else
9366 need_locks=no
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9375 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9377 runpath_var=
9378 allow_undefined_flag=
9379 always_export_symbols=no
9380 archive_cmds=
9381 archive_expsym_cmds=
9382 compiler_needs_object=no
9383 enable_shared_with_static_runtimes=no
9384 export_dynamic_flag_spec=
9385 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9386 hardcode_automatic=no
9387 hardcode_direct=no
9388 hardcode_direct_absolute=no
9389 hardcode_libdir_flag_spec=
9390 hardcode_libdir_flag_spec_ld=
9391 hardcode_libdir_separator=
9392 hardcode_minus_L=no
9393 hardcode_shlibpath_var=unsupported
9394 inherit_rpath=no
9395 link_all_deplibs=unknown
9396 module_cmds=
9397 module_expsym_cmds=
9398 old_archive_from_new_cmds=
9399 old_archive_from_expsyms_cmds=
9400 thread_safe_flag_spec=
9401 whole_archive_flag_spec=
9402 # include_expsyms should be a list of space-separated symbols to be *always*
9403 # included in the symbol list
9404 include_expsyms=
9405 # exclude_expsyms can be an extended regexp of symbols to exclude
9406 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9407 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9408 # as well as any symbol that contains `d'.
9409 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9410 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9411 # platforms (ab)use it in PIC code, but their linkers get confused if
9412 # the symbol is explicitly referenced. Since portable code cannot
9413 # rely on this symbol name, it's probably fine to never include it in
9414 # preloaded symbol tables.
9415 # Exclude shared library initialization/finalization symbols.
9416 extract_expsyms_cmds=
9418 case $host_os in
9419 cygwin* | mingw* | pw32* | cegcc*)
9420 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9421 # When not using gcc, we currently assume that we are using
9422 # Microsoft Visual C++.
9423 if test "$GCC" != yes; then
9424 with_gnu_ld=no
9427 interix*)
9428 # we just hope/assume this is gcc and not c89 (= MSVC++)
9429 with_gnu_ld=yes
9431 openbsd*)
9432 with_gnu_ld=no
9434 esac
9436 ld_shlibs=yes
9438 # On some targets, GNU ld is compatible enough with the native linker
9439 # that we're better off using the native interface for both.
9440 lt_use_gnu_ld_interface=no
9441 if test "$with_gnu_ld" = yes; then
9442 case $host_os in
9443 aix*)
9444 # The AIX port of GNU ld has always aspired to compatibility
9445 # with the native linker. However, as the warning in the GNU ld
9446 # block says, versions before 2.19.5* couldn't really create working
9447 # shared libraries, regardless of the interface used.
9448 case `$LD -v 2>&1` in
9449 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9450 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9451 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9453 lt_use_gnu_ld_interface=yes
9455 esac
9458 lt_use_gnu_ld_interface=yes
9460 esac
9463 if test "$lt_use_gnu_ld_interface" = yes; then
9464 # If archive_cmds runs LD, not CC, wlarc should be empty
9465 wlarc='${wl}'
9467 # Set some defaults for GNU ld with shared library support. These
9468 # are reset later if shared libraries are not supported. Putting them
9469 # here allows them to be overridden if necessary.
9470 runpath_var=LD_RUN_PATH
9471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9472 export_dynamic_flag_spec='${wl}--export-dynamic'
9473 # ancient GNU ld didn't support --whole-archive et. al.
9474 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9475 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9476 else
9477 whole_archive_flag_spec=
9479 supports_anon_versioning=no
9480 case `$LD -v 2>&1` in
9481 *GNU\ gold*) supports_anon_versioning=yes ;;
9482 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9483 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9484 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9485 *\ 2.11.*) ;; # other 2.11 versions
9486 *) supports_anon_versioning=yes ;;
9487 esac
9489 # See if GNU ld supports shared libraries.
9490 case $host_os in
9491 aix[3-9]*)
9492 # On AIX/PPC, the GNU linker is very broken
9493 if test "$host_cpu" != ia64; then
9494 ld_shlibs=no
9495 cat <<_LT_EOF 1>&2
9497 *** Warning: the GNU linker, at least up to release 2.19, is reported
9498 *** to be unable to reliably create shared libraries on AIX.
9499 *** Therefore, libtool is disabling shared libraries support. If you
9500 *** really care for shared libraries, you may want to install binutils
9501 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9502 *** You will then need to restart the configuration process.
9504 _LT_EOF
9508 amigaos*)
9509 case $host_cpu in
9510 powerpc)
9511 # see comment about AmigaOS4 .so support
9512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9513 archive_expsym_cmds=''
9515 m68k)
9516 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)'
9517 hardcode_libdir_flag_spec='-L$libdir'
9518 hardcode_minus_L=yes
9520 esac
9523 beos*)
9524 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9525 allow_undefined_flag=unsupported
9526 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9527 # support --undefined. This deserves some investigation. FIXME
9528 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9529 else
9530 ld_shlibs=no
9534 cygwin* | mingw* | pw32* | cegcc*)
9535 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9536 # as there is no search path for DLLs.
9537 hardcode_libdir_flag_spec='-L$libdir'
9538 export_dynamic_flag_spec='${wl}--export-all-symbols'
9539 allow_undefined_flag=unsupported
9540 always_export_symbols=no
9541 enable_shared_with_static_runtimes=yes
9542 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9544 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9546 # If the export-symbols file already is a .def file (1st line
9547 # is EXPORTS), use it as is; otherwise, prepend...
9548 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9549 cp $export_symbols $output_objdir/$soname.def;
9550 else
9551 echo EXPORTS > $output_objdir/$soname.def;
9552 cat $export_symbols >> $output_objdir/$soname.def;
9554 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9555 else
9556 ld_shlibs=no
9560 haiku*)
9561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9562 link_all_deplibs=yes
9565 interix[3-9]*)
9566 hardcode_direct=no
9567 hardcode_shlibpath_var=no
9568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9569 export_dynamic_flag_spec='${wl}-E'
9570 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9571 # Instead, shared libraries are loaded at an image base (0x10000000 by
9572 # default) and relocated if they conflict, which is a slow very memory
9573 # consuming and fragmenting process. To avoid this, we pick a random,
9574 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9575 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9577 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'
9580 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9581 tmp_diet=no
9582 if test "$host_os" = linux-dietlibc; then
9583 case $cc_basename in
9584 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9585 esac
9587 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9588 && test "$tmp_diet" = no
9589 then
9590 tmp_addflag=' $pic_flag'
9591 tmp_sharedflag='-shared'
9592 case $cc_basename,$host_cpu in
9593 pgcc*) # Portland Group C compiler
9594 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'
9595 tmp_addflag=' $pic_flag'
9597 pgf77* | pgf90* | pgf95* | pgfortran*)
9598 # Portland Group f77 and f90 compilers
9599 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'
9600 tmp_addflag=' $pic_flag -Mnomain' ;;
9601 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9602 tmp_addflag=' -i_dynamic' ;;
9603 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9604 tmp_addflag=' -i_dynamic -nofor_main' ;;
9605 ifc* | ifort*) # Intel Fortran compiler
9606 tmp_addflag=' -nofor_main' ;;
9607 lf95*) # Lahey Fortran 8.1
9608 whole_archive_flag_spec=
9609 tmp_sharedflag='--shared' ;;
9610 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9611 tmp_sharedflag='-qmkshrobj'
9612 tmp_addflag= ;;
9613 nvcc*) # Cuda Compiler Driver 2.2
9614 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'
9615 compiler_needs_object=yes
9617 esac
9618 case `$CC -V 2>&1 | sed 5q` in
9619 *Sun\ C*) # Sun C 5.9
9620 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'
9621 compiler_needs_object=yes
9622 tmp_sharedflag='-G' ;;
9623 *Sun\ F*) # Sun Fortran 8.3
9624 tmp_sharedflag='-G' ;;
9625 esac
9626 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9628 if test "x$supports_anon_versioning" = xyes; then
9629 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9630 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9631 echo "local: *; };" >> $output_objdir/$libname.ver~
9632 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9635 case $cc_basename in
9636 xlf* | bgf* | bgxlf* | mpixlf*)
9637 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9638 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9639 hardcode_libdir_flag_spec=
9640 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9641 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9642 if test "x$supports_anon_versioning" = xyes; then
9643 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9645 echo "local: *; };" >> $output_objdir/$libname.ver~
9646 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9649 esac
9650 else
9651 ld_shlibs=no
9655 netbsd*)
9656 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9657 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9658 wlarc=
9659 else
9660 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9661 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9665 solaris*)
9666 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9667 ld_shlibs=no
9668 cat <<_LT_EOF 1>&2
9670 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9671 *** create shared libraries on Solaris systems. Therefore, libtool
9672 *** is disabling shared libraries support. We urge you to upgrade GNU
9673 *** binutils to release 2.9.1 or newer. Another option is to modify
9674 *** your PATH or compiler configuration so that the native linker is
9675 *** used, and then restart.
9677 _LT_EOF
9678 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9680 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9681 else
9682 ld_shlibs=no
9686 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9687 case `$LD -v 2>&1` in
9688 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9689 ld_shlibs=no
9690 cat <<_LT_EOF 1>&2
9692 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9693 *** reliably create shared libraries on SCO systems. Therefore, libtool
9694 *** is disabling shared libraries support. We urge you to upgrade GNU
9695 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9696 *** your PATH or compiler configuration so that the native linker is
9697 *** used, and then restart.
9699 _LT_EOF
9702 # For security reasons, it is highly recommended that you always
9703 # use absolute paths for naming shared libraries, and exclude the
9704 # DT_RUNPATH tag from executables and libraries. But doing so
9705 # requires that you compile everything twice, which is a pain.
9706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9710 else
9711 ld_shlibs=no
9714 esac
9717 sunos4*)
9718 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9719 wlarc=
9720 hardcode_direct=yes
9721 hardcode_shlibpath_var=no
9725 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9727 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9728 else
9729 ld_shlibs=no
9732 esac
9734 if test "$ld_shlibs" = no; then
9735 runpath_var=
9736 hardcode_libdir_flag_spec=
9737 export_dynamic_flag_spec=
9738 whole_archive_flag_spec=
9740 else
9741 # PORTME fill in a description of your system's linker (not GNU ld)
9742 case $host_os in
9743 aix3*)
9744 allow_undefined_flag=unsupported
9745 always_export_symbols=yes
9746 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'
9747 # Note: this linker hardcodes the directories in LIBPATH if there
9748 # are no directories specified by -L.
9749 hardcode_minus_L=yes
9750 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9751 # Neither direct hardcoding nor static linking is supported with a
9752 # broken collect2.
9753 hardcode_direct=unsupported
9757 aix[4-9]*)
9758 if test "$host_cpu" = ia64; then
9759 # On IA64, the linker does run time linking by default, so we don't
9760 # have to do anything special.
9761 aix_use_runtimelinking=no
9762 exp_sym_flag='-Bexport'
9763 no_entry_flag=""
9764 else
9765 # If we're using GNU nm, then we don't want the "-C" option.
9766 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9767 # Also, AIX nm treats weak defined symbols like other global
9768 # defined symbols, whereas GNU nm marks them as "W".
9769 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9770 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'
9771 else
9772 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9774 aix_use_runtimelinking=no
9776 # Test if we are trying to use run time linking or normal
9777 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9778 # need to do runtime linking.
9779 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9780 for ld_flag in $LDFLAGS; do
9781 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9782 aix_use_runtimelinking=yes
9783 break
9785 done
9787 esac
9789 exp_sym_flag='-bexport'
9790 no_entry_flag='-bnoentry'
9793 # When large executables or shared objects are built, AIX ld can
9794 # have problems creating the table of contents. If linking a library
9795 # or program results in "error TOC overflow" add -mminimal-toc to
9796 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9797 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9799 archive_cmds=''
9800 hardcode_direct=yes
9801 hardcode_direct_absolute=yes
9802 hardcode_libdir_separator=':'
9803 link_all_deplibs=yes
9804 file_list_spec='${wl}-f,'
9806 if test "$GCC" = yes; then
9807 case $host_os in aix4.[012]|aix4.[012].*)
9808 # We only want to do this on AIX 4.2 and lower, the check
9809 # below for broken collect2 doesn't work under 4.3+
9810 collect2name=`${CC} -print-prog-name=collect2`
9811 if test -f "$collect2name" &&
9812 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9813 then
9814 # We have reworked collect2
9816 else
9817 # We have old collect2
9818 hardcode_direct=unsupported
9819 # It fails to find uninstalled libraries when the uninstalled
9820 # path is not listed in the libpath. Setting hardcode_minus_L
9821 # to unsupported forces relinking
9822 hardcode_minus_L=yes
9823 hardcode_libdir_flag_spec='-L$libdir'
9824 hardcode_libdir_separator=
9827 esac
9828 shared_flag='-shared'
9829 if test "$aix_use_runtimelinking" = yes; then
9830 shared_flag="$shared_flag "'${wl}-G'
9832 else
9833 # not using gcc
9834 if test "$host_cpu" = ia64; then
9835 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9836 # chokes on -Wl,-G. The following line is correct:
9837 shared_flag='-G'
9838 else
9839 if test "$aix_use_runtimelinking" = yes; then
9840 shared_flag='${wl}-G'
9841 else
9842 shared_flag='${wl}-bM:SRE'
9847 export_dynamic_flag_spec='${wl}-bexpall'
9848 # It seems that -bexpall does not export symbols beginning with
9849 # underscore (_), so it is better to generate a list of symbols to export.
9850 always_export_symbols=yes
9851 if test "$aix_use_runtimelinking" = yes; then
9852 # Warning - without using the other runtime loading flags (-brtl),
9853 # -berok will link without error, but may produce a broken library.
9854 allow_undefined_flag='-berok'
9855 # Determine the default libpath from the value encoded in an
9856 # empty executable.
9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h. */
9861 main ()
9865 return 0;
9867 _ACEOF
9868 if ac_fn_c_try_link "$LINENO"; then :
9870 lt_aix_libpath_sed='
9871 /Import File Strings/,/^$/ {
9872 /^0/ {
9873 s/^0 *\(.*\)$/\1/
9877 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9878 # Check for a 64-bit object if we didn't find anything.
9879 if test -z "$aix_libpath"; then
9880 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9883 rm -f core conftest.err conftest.$ac_objext \
9884 conftest$ac_exeext conftest.$ac_ext
9885 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9887 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9888 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"
9889 else
9890 if test "$host_cpu" = ia64; then
9891 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9892 allow_undefined_flag="-z nodefs"
9893 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"
9894 else
9895 # Determine the default libpath from the value encoded in an
9896 # empty executable.
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9901 main ()
9905 return 0;
9907 _ACEOF
9908 if ac_fn_c_try_link "$LINENO"; then :
9910 lt_aix_libpath_sed='
9911 /Import File Strings/,/^$/ {
9912 /^0/ {
9913 s/^0 *\(.*\)$/\1/
9917 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9918 # Check for a 64-bit object if we didn't find anything.
9919 if test -z "$aix_libpath"; then
9920 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9923 rm -f core conftest.err conftest.$ac_objext \
9924 conftest$ac_exeext conftest.$ac_ext
9925 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9927 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9928 # Warning - without using the other run time loading flags,
9929 # -berok will link without error, but may produce a broken library.
9930 no_undefined_flag=' ${wl}-bernotok'
9931 allow_undefined_flag=' ${wl}-berok'
9932 if test "$with_gnu_ld" = yes; then
9933 # We only use this code for GNU lds that support --whole-archive.
9934 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9935 else
9936 # Exported symbols can be pulled into shared objects from archives
9937 whole_archive_flag_spec='$convenience'
9939 archive_cmds_need_lc=yes
9940 # This is similar to how AIX traditionally builds its shared libraries.
9941 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'
9946 amigaos*)
9947 case $host_cpu in
9948 powerpc)
9949 # see comment about AmigaOS4 .so support
9950 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9951 archive_expsym_cmds=''
9953 m68k)
9954 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)'
9955 hardcode_libdir_flag_spec='-L$libdir'
9956 hardcode_minus_L=yes
9958 esac
9961 bsdi[45]*)
9962 export_dynamic_flag_spec=-rdynamic
9965 cygwin* | mingw* | pw32* | cegcc*)
9966 # When not using gcc, we currently assume that we are using
9967 # Microsoft Visual C++.
9968 # hardcode_libdir_flag_spec is actually meaningless, as there is
9969 # no search path for DLLs.
9970 hardcode_libdir_flag_spec=' '
9971 allow_undefined_flag=unsupported
9972 # Tell ltmain to make .lib files, not .a files.
9973 libext=lib
9974 # Tell ltmain to make .dll files, not .so files.
9975 shrext_cmds=".dll"
9976 # FIXME: Setting linknames here is a bad hack.
9977 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9978 # The linker will automatically build a .lib file if we build a DLL.
9979 old_archive_from_new_cmds='true'
9980 # FIXME: Should let the user specify the lib program.
9981 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9982 fix_srcfile_path='`cygpath -w "$srcfile"`'
9983 enable_shared_with_static_runtimes=yes
9986 darwin* | rhapsody*)
9989 archive_cmds_need_lc=no
9990 hardcode_direct=no
9991 hardcode_automatic=yes
9992 hardcode_shlibpath_var=unsupported
9993 if test "$lt_cv_ld_force_load" = "yes"; then
9994 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\"`'
9995 else
9996 whole_archive_flag_spec=''
9998 link_all_deplibs=yes
9999 allow_undefined_flag="$_lt_dar_allow_undefined"
10000 case $cc_basename in
10001 ifort*) _lt_dar_can_shared=yes ;;
10002 *) _lt_dar_can_shared=$GCC ;;
10003 esac
10004 if test "$_lt_dar_can_shared" = "yes"; then
10005 output_verbose_link_cmd=func_echo_all
10006 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10007 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10008 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}"
10009 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}"
10011 else
10012 ld_shlibs=no
10017 dgux*)
10018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10019 hardcode_libdir_flag_spec='-L$libdir'
10020 hardcode_shlibpath_var=no
10023 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10024 # support. Future versions do this automatically, but an explicit c++rt0.o
10025 # does not break anything, and helps significantly (at the cost of a little
10026 # extra space).
10027 freebsd2.2*)
10028 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10029 hardcode_libdir_flag_spec='-R$libdir'
10030 hardcode_direct=yes
10031 hardcode_shlibpath_var=no
10034 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10035 freebsd2.*)
10036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10037 hardcode_direct=yes
10038 hardcode_minus_L=yes
10039 hardcode_shlibpath_var=no
10042 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10043 freebsd* | dragonfly*)
10044 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10045 hardcode_libdir_flag_spec='-R$libdir'
10046 hardcode_direct=yes
10047 hardcode_shlibpath_var=no
10050 hpux9*)
10051 if test "$GCC" = yes; then
10052 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'
10053 else
10054 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'
10056 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10057 hardcode_libdir_separator=:
10058 hardcode_direct=yes
10060 # hardcode_minus_L: Not really in the search PATH,
10061 # but as the default location of the library.
10062 hardcode_minus_L=yes
10063 export_dynamic_flag_spec='${wl}-E'
10066 hpux10*)
10067 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10068 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10069 else
10070 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10072 if test "$with_gnu_ld" = no; then
10073 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10074 hardcode_libdir_flag_spec_ld='+b $libdir'
10075 hardcode_libdir_separator=:
10076 hardcode_direct=yes
10077 hardcode_direct_absolute=yes
10078 export_dynamic_flag_spec='${wl}-E'
10079 # hardcode_minus_L: Not really in the search PATH,
10080 # but as the default location of the library.
10081 hardcode_minus_L=yes
10085 hpux11*)
10086 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10087 case $host_cpu in
10088 hppa*64*)
10089 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 ia64*)
10092 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10095 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10097 esac
10098 else
10099 case $host_cpu in
10100 hppa*64*)
10101 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10103 ia64*)
10104 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10108 # Older versions of the 11.00 compiler do not understand -b yet
10109 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10111 $as_echo_n "checking if $CC understands -b... " >&6; }
10112 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 lt_cv_prog_compiler__b=no
10116 save_LDFLAGS="$LDFLAGS"
10117 LDFLAGS="$LDFLAGS -b"
10118 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10119 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10120 # The linker can only warn and ignore the option if not recognized
10121 # So say no if there are warnings
10122 if test -s conftest.err; then
10123 # Append any errors to the config.log.
10124 cat conftest.err 1>&5
10125 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10127 if diff conftest.exp conftest.er2 >/dev/null; then
10128 lt_cv_prog_compiler__b=yes
10130 else
10131 lt_cv_prog_compiler__b=yes
10134 $RM -r conftest*
10135 LDFLAGS="$save_LDFLAGS"
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10139 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10141 if test x"$lt_cv_prog_compiler__b" = xyes; then
10142 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10143 else
10144 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10148 esac
10150 if test "$with_gnu_ld" = no; then
10151 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10152 hardcode_libdir_separator=:
10154 case $host_cpu in
10155 hppa*64*|ia64*)
10156 hardcode_direct=no
10157 hardcode_shlibpath_var=no
10160 hardcode_direct=yes
10161 hardcode_direct_absolute=yes
10162 export_dynamic_flag_spec='${wl}-E'
10164 # hardcode_minus_L: Not really in the search PATH,
10165 # but as the default location of the library.
10166 hardcode_minus_L=yes
10168 esac
10172 irix5* | irix6* | nonstopux*)
10173 if test "$GCC" = yes; then
10174 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'
10175 # Try to use the -exported_symbol ld option, if it does not
10176 # work, assume that -exports_file does not work either and
10177 # implicitly export all symbols.
10178 save_LDFLAGS="$LDFLAGS"
10179 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10182 int foo(void) {}
10183 _ACEOF
10184 if ac_fn_c_try_link "$LINENO"; then :
10185 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'
10188 rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
10190 LDFLAGS="$save_LDFLAGS"
10191 else
10192 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'
10193 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'
10195 archive_cmds_need_lc='no'
10196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10197 hardcode_libdir_separator=:
10198 inherit_rpath=yes
10199 link_all_deplibs=yes
10202 netbsd*)
10203 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10204 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10205 else
10206 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10208 hardcode_libdir_flag_spec='-R$libdir'
10209 hardcode_direct=yes
10210 hardcode_shlibpath_var=no
10213 newsos6)
10214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10215 hardcode_direct=yes
10216 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10217 hardcode_libdir_separator=:
10218 hardcode_shlibpath_var=no
10221 *nto* | *qnx*)
10224 openbsd*)
10225 if test -f /usr/libexec/ld.so; then
10226 hardcode_direct=yes
10227 hardcode_shlibpath_var=no
10228 hardcode_direct_absolute=yes
10229 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10230 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10231 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10232 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10233 export_dynamic_flag_spec='${wl}-E'
10234 else
10235 case $host_os in
10236 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10237 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10238 hardcode_libdir_flag_spec='-R$libdir'
10241 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10244 esac
10246 else
10247 ld_shlibs=no
10251 os2*)
10252 hardcode_libdir_flag_spec='-L$libdir'
10253 hardcode_minus_L=yes
10254 allow_undefined_flag=unsupported
10255 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'
10256 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10259 osf3*)
10260 if test "$GCC" = yes; then
10261 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10262 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'
10263 else
10264 allow_undefined_flag=' -expect_unresolved \*'
10265 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'
10267 archive_cmds_need_lc='no'
10268 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10269 hardcode_libdir_separator=:
10272 osf4* | osf5*) # as osf3* with the addition of -msym flag
10273 if test "$GCC" = yes; then
10274 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10275 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'
10276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10277 else
10278 allow_undefined_flag=' -expect_unresolved \*'
10279 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'
10280 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~
10281 $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'
10283 # Both c and cxx compiler support -rpath directly
10284 hardcode_libdir_flag_spec='-rpath $libdir'
10286 archive_cmds_need_lc='no'
10287 hardcode_libdir_separator=:
10290 solaris*)
10291 no_undefined_flag=' -z defs'
10292 if test "$GCC" = yes; then
10293 wlarc='${wl}'
10294 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10295 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10296 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10297 else
10298 case `$CC -V 2>&1` in
10299 *"Compilers 5.0"*)
10300 wlarc=''
10301 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10302 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10303 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10306 wlarc='${wl}'
10307 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10308 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10309 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10311 esac
10313 hardcode_libdir_flag_spec='-R$libdir'
10314 hardcode_shlibpath_var=no
10315 case $host_os in
10316 solaris2.[0-5] | solaris2.[0-5].*) ;;
10318 # The compiler driver will combine and reorder linker options,
10319 # but understands `-z linker_flag'. GCC discards it without `$wl',
10320 # but is careful enough not to reorder.
10321 # Supported since Solaris 2.6 (maybe 2.5.1?)
10322 if test "$GCC" = yes; then
10323 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10324 else
10325 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10328 esac
10329 link_all_deplibs=yes
10332 sunos4*)
10333 if test "x$host_vendor" = xsequent; then
10334 # Use $CC to link under sequent, because it throws in some extra .o
10335 # files that make .init and .fini sections work.
10336 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10337 else
10338 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10340 hardcode_libdir_flag_spec='-L$libdir'
10341 hardcode_direct=yes
10342 hardcode_minus_L=yes
10343 hardcode_shlibpath_var=no
10346 sysv4)
10347 case $host_vendor in
10348 sni)
10349 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10350 hardcode_direct=yes # is this really true???
10352 siemens)
10353 ## LD is ld it makes a PLAMLIB
10354 ## CC just makes a GrossModule.
10355 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10356 reload_cmds='$CC -r -o $output$reload_objs'
10357 hardcode_direct=no
10359 motorola)
10360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10361 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10363 esac
10364 runpath_var='LD_RUN_PATH'
10365 hardcode_shlibpath_var=no
10368 sysv4.3*)
10369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10370 hardcode_shlibpath_var=no
10371 export_dynamic_flag_spec='-Bexport'
10374 sysv4*MP*)
10375 if test -d /usr/nec; then
10376 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10377 hardcode_shlibpath_var=no
10378 runpath_var=LD_RUN_PATH
10379 hardcode_runpath_var=yes
10380 ld_shlibs=yes
10384 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10385 no_undefined_flag='${wl}-z,text'
10386 archive_cmds_need_lc=no
10387 hardcode_shlibpath_var=no
10388 runpath_var='LD_RUN_PATH'
10390 if test "$GCC" = yes; then
10391 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10392 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393 else
10394 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10399 sysv5* | sco3.2v5* | sco5v6*)
10400 # Note: We can NOT use -z defs as we might desire, because we do not
10401 # link with -lc, and that would cause any symbols used from libc to
10402 # always be unresolved, which means just about no library would
10403 # ever link correctly. If we're not using GNU ld we use -z text
10404 # though, which does catch some bad symbols but isn't as heavy-handed
10405 # as -z defs.
10406 no_undefined_flag='${wl}-z,text'
10407 allow_undefined_flag='${wl}-z,nodefs'
10408 archive_cmds_need_lc=no
10409 hardcode_shlibpath_var=no
10410 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10411 hardcode_libdir_separator=':'
10412 link_all_deplibs=yes
10413 export_dynamic_flag_spec='${wl}-Bexport'
10414 runpath_var='LD_RUN_PATH'
10416 if test "$GCC" = yes; then
10417 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419 else
10420 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10425 uts4*)
10426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10427 hardcode_libdir_flag_spec='-L$libdir'
10428 hardcode_shlibpath_var=no
10432 ld_shlibs=no
10434 esac
10436 if test x$host_vendor = xsni; then
10437 case $host in
10438 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10439 export_dynamic_flag_spec='${wl}-Blargedynsym'
10441 esac
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10446 $as_echo "$ld_shlibs" >&6; }
10447 test "$ld_shlibs" = no && can_build_shared=no
10449 with_gnu_ld=$with_gnu_ld
10466 # Do we need to explicitly link libc?
10468 case "x$archive_cmds_need_lc" in
10469 x|xyes)
10470 # Assume -lc should be added
10471 archive_cmds_need_lc=yes
10473 if test "$enable_shared" = yes && test "$GCC" = yes; then
10474 case $archive_cmds in
10475 *'~'*)
10476 # FIXME: we may have to deal with multi-command sequences.
10478 '$CC '*)
10479 # Test whether the compiler implicitly links with -lc since on some
10480 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10481 # to ld, don't add -lc before -lgcc.
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10483 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10484 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 $RM conftest*
10488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10491 (eval $ac_compile) 2>&5
10492 ac_status=$?
10493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494 test $ac_status = 0; } 2>conftest.err; then
10495 soname=conftest
10496 lib=conftest
10497 libobjs=conftest.$ac_objext
10498 deplibs=
10499 wl=$lt_prog_compiler_wl
10500 pic_flag=$lt_prog_compiler_pic
10501 compiler_flags=-v
10502 linker_flags=-v
10503 verstring=
10504 output_objdir=.
10505 libname=conftest
10506 lt_save_allow_undefined_flag=$allow_undefined_flag
10507 allow_undefined_flag=
10508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10509 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10510 ac_status=$?
10511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10512 test $ac_status = 0; }
10513 then
10514 lt_cv_archive_cmds_need_lc=no
10515 else
10516 lt_cv_archive_cmds_need_lc=yes
10518 allow_undefined_flag=$lt_save_allow_undefined_flag
10519 else
10520 cat conftest.err 1>&5
10522 $RM conftest*
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10526 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10527 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10529 esac
10532 esac
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10691 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10693 if test "$GCC" = yes; then
10694 case $host_os in
10695 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10696 *) lt_awk_arg="/^libraries:/" ;;
10697 esac
10698 case $host_os in
10699 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10700 *) lt_sed_strip_eq="s,=/,/,g" ;;
10701 esac
10702 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10703 case $lt_search_path_spec in
10704 *\;*)
10705 # if the path contains ";" then we assume it to be the separator
10706 # otherwise default to the standard path separator (i.e. ":") - it is
10707 # assumed that no part of a normal pathname contains ";" but that should
10708 # okay in the real world where ";" in dirpaths is itself problematic.
10709 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10712 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10714 esac
10715 # Ok, now we have the path, separated by spaces, we can step through it
10716 # and add multilib dir if necessary.
10717 lt_tmp_lt_search_path_spec=
10718 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10719 for lt_sys_path in $lt_search_path_spec; do
10720 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10721 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10722 else
10723 test -d "$lt_sys_path" && \
10724 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10726 done
10727 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10728 BEGIN {RS=" "; FS="/|\n";} {
10729 lt_foo="";
10730 lt_count=0;
10731 for (lt_i = NF; lt_i > 0; lt_i--) {
10732 if ($lt_i != "" && $lt_i != ".") {
10733 if ($lt_i == "..") {
10734 lt_count++;
10735 } else {
10736 if (lt_count == 0) {
10737 lt_foo="/" $lt_i lt_foo;
10738 } else {
10739 lt_count--;
10744 if (lt_foo != "") { lt_freq[lt_foo]++; }
10745 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10747 # AWK program above erroneously prepends '/' to C:/dos/paths
10748 # for these hosts.
10749 case $host_os in
10750 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10751 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10752 esac
10753 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10754 else
10755 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10757 library_names_spec=
10758 libname_spec='lib$name'
10759 soname_spec=
10760 shrext_cmds=".so"
10761 postinstall_cmds=
10762 postuninstall_cmds=
10763 finish_cmds=
10764 finish_eval=
10765 shlibpath_var=
10766 shlibpath_overrides_runpath=unknown
10767 version_type=none
10768 dynamic_linker="$host_os ld.so"
10769 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10770 need_lib_prefix=unknown
10771 hardcode_into_libs=no
10773 # when you set need_version to no, make sure it does not cause -set_version
10774 # flags to be left without arguments
10775 need_version=unknown
10777 case $host_os in
10778 aix3*)
10779 version_type=linux
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10781 shlibpath_var=LIBPATH
10783 # AIX 3 has no versioning support, so we append a major version to the name.
10784 soname_spec='${libname}${release}${shared_ext}$major'
10787 aix[4-9]*)
10788 version_type=linux
10789 need_lib_prefix=no
10790 need_version=no
10791 hardcode_into_libs=yes
10792 if test "$host_cpu" = ia64; then
10793 # AIX 5 supports IA64
10794 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10795 shlibpath_var=LD_LIBRARY_PATH
10796 else
10797 # With GCC up to 2.95.x, collect2 would create an import file
10798 # for dependence libraries. The import file would start with
10799 # the line `#! .'. This would cause the generated library to
10800 # depend on `.', always an invalid library. This was fixed in
10801 # development snapshots of GCC prior to 3.0.
10802 case $host_os in
10803 aix4 | aix4.[01] | aix4.[01].*)
10804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10805 echo ' yes '
10806 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10808 else
10809 can_build_shared=no
10812 esac
10813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10814 # soname into executable. Probably we can add versioning support to
10815 # collect2, so additional links can be useful in future.
10816 if test "$aix_use_runtimelinking" = yes; then
10817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10818 # instead of lib<name>.a to let people know that these are not
10819 # typical AIX shared libraries.
10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10821 else
10822 # We preserve .a as extension for shared libraries through AIX4.2
10823 # and later when we are not doing run time linking.
10824 library_names_spec='${libname}${release}.a $libname.a'
10825 soname_spec='${libname}${release}${shared_ext}$major'
10827 shlibpath_var=LIBPATH
10831 amigaos*)
10832 case $host_cpu in
10833 powerpc)
10834 # Since July 2007 AmigaOS4 officially supports .so libraries.
10835 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 m68k)
10839 library_names_spec='$libname.ixlibrary $libname.a'
10840 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10841 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'
10843 esac
10846 beos*)
10847 library_names_spec='${libname}${shared_ext}'
10848 dynamic_linker="$host_os ld.so"
10849 shlibpath_var=LIBRARY_PATH
10852 bsdi[45]*)
10853 version_type=linux
10854 need_version=no
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10856 soname_spec='${libname}${release}${shared_ext}$major'
10857 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10858 shlibpath_var=LD_LIBRARY_PATH
10859 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10860 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10861 # the default ld.so.conf also contains /usr/contrib/lib and
10862 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10863 # libtool to hard-code these into programs
10866 cygwin* | mingw* | pw32* | cegcc*)
10867 version_type=windows
10868 shrext_cmds=".dll"
10869 need_version=no
10870 need_lib_prefix=no
10872 case $GCC,$host_os in
10873 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10874 library_names_spec='$libname.dll.a'
10875 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10876 postinstall_cmds='base_file=`basename \${file}`~
10877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10878 dldir=$destdir/`dirname \$dlpath`~
10879 test -d \$dldir || mkdir -p \$dldir~
10880 $install_prog $dir/$dlname \$dldir/$dlname~
10881 chmod a+x \$dldir/$dlname~
10882 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10883 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10886 dlpath=$dir/\$dldll~
10887 $RM \$dlpath'
10888 shlibpath_overrides_runpath=yes
10890 case $host_os in
10891 cygwin*)
10892 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10893 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10895 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10897 mingw* | cegcc*)
10898 # MinGW DLLs use traditional 'lib' prefix
10899 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10901 pw32*)
10902 # pw32 DLLs use 'pw' prefix rather than 'lib'
10903 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10905 esac
10909 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10911 esac
10912 dynamic_linker='Win32 ld.exe'
10913 # FIXME: first we should search . and the directory the executable is in
10914 shlibpath_var=PATH
10917 darwin* | rhapsody*)
10918 dynamic_linker="$host_os dyld"
10919 version_type=darwin
10920 need_lib_prefix=no
10921 need_version=no
10922 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10923 soname_spec='${libname}${release}${major}$shared_ext'
10924 shlibpath_overrides_runpath=yes
10925 shlibpath_var=DYLD_LIBRARY_PATH
10926 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10928 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10929 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10932 dgux*)
10933 version_type=linux
10934 need_lib_prefix=no
10935 need_version=no
10936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 shlibpath_var=LD_LIBRARY_PATH
10941 freebsd* | dragonfly*)
10942 # DragonFly does not have aout. When/if they implement a new
10943 # versioning mechanism, adjust this.
10944 if test -x /usr/bin/objformat; then
10945 objformat=`/usr/bin/objformat`
10946 else
10947 case $host_os in
10948 freebsd[23].*) objformat=aout ;;
10949 *) objformat=elf ;;
10950 esac
10952 version_type=freebsd-$objformat
10953 case $version_type in
10954 freebsd-elf*)
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10956 need_version=no
10957 need_lib_prefix=no
10959 freebsd-*)
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10961 need_version=yes
10963 esac
10964 shlibpath_var=LD_LIBRARY_PATH
10965 case $host_os in
10966 freebsd2.*)
10967 shlibpath_overrides_runpath=yes
10969 freebsd3.[01]* | freebsdelf3.[01]*)
10970 shlibpath_overrides_runpath=yes
10971 hardcode_into_libs=yes
10973 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10974 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10975 shlibpath_overrides_runpath=no
10976 hardcode_into_libs=yes
10978 *) # from 4.6 on, and DragonFly
10979 shlibpath_overrides_runpath=yes
10980 hardcode_into_libs=yes
10982 esac
10985 gnu*)
10986 version_type=linux
10987 need_lib_prefix=no
10988 need_version=no
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 hardcode_into_libs=yes
10995 haiku*)
10996 version_type=linux
10997 need_lib_prefix=no
10998 need_version=no
10999 dynamic_linker="$host_os runtime_loader"
11000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11001 soname_spec='${libname}${release}${shared_ext}$major'
11002 shlibpath_var=LIBRARY_PATH
11003 shlibpath_overrides_runpath=yes
11004 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11005 hardcode_into_libs=yes
11008 hpux9* | hpux10* | hpux11*)
11009 # Give a soname corresponding to the major version so that dld.sl refuses to
11010 # link against other versions.
11011 version_type=sunos
11012 need_lib_prefix=no
11013 need_version=no
11014 case $host_cpu in
11015 ia64*)
11016 shrext_cmds='.so'
11017 hardcode_into_libs=yes
11018 dynamic_linker="$host_os dld.so"
11019 shlibpath_var=LD_LIBRARY_PATH
11020 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022 soname_spec='${libname}${release}${shared_ext}$major'
11023 if test "X$HPUX_IA64_MODE" = X32; then
11024 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11025 else
11026 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11030 hppa*64*)
11031 shrext_cmds='.sl'
11032 hardcode_into_libs=yes
11033 dynamic_linker="$host_os dld.sl"
11034 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11035 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037 soname_spec='${libname}${release}${shared_ext}$major'
11038 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11039 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11042 shrext_cmds='.sl'
11043 dynamic_linker="$host_os dld.sl"
11044 shlibpath_var=SHLIB_PATH
11045 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047 soname_spec='${libname}${release}${shared_ext}$major'
11049 esac
11050 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11051 postinstall_cmds='chmod 555 $lib'
11052 # or fails outright, so override atomically:
11053 install_override_mode=555
11056 interix[3-9]*)
11057 version_type=linux
11058 need_lib_prefix=no
11059 need_version=no
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11061 soname_spec='${libname}${release}${shared_ext}$major'
11062 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 shlibpath_overrides_runpath=no
11065 hardcode_into_libs=yes
11068 irix5* | irix6* | nonstopux*)
11069 case $host_os in
11070 nonstopux*) version_type=nonstopux ;;
11072 if test "$lt_cv_prog_gnu_ld" = yes; then
11073 version_type=linux
11074 else
11075 version_type=irix
11076 fi ;;
11077 esac
11078 need_lib_prefix=no
11079 need_version=no
11080 soname_spec='${libname}${release}${shared_ext}$major'
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11082 case $host_os in
11083 irix5* | nonstopux*)
11084 libsuff= shlibsuff=
11087 case $LD in # libtool.m4 will add one of these switches to LD
11088 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11089 libsuff= shlibsuff= libmagic=32-bit;;
11090 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11091 libsuff=32 shlibsuff=N32 libmagic=N32;;
11092 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11093 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11094 *) libsuff= shlibsuff= libmagic=never-match;;
11095 esac
11097 esac
11098 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11099 shlibpath_overrides_runpath=no
11100 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11101 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11102 hardcode_into_libs=yes
11105 # No shared lib support for Linux oldld, aout, or coff.
11106 linux*oldld* | linux*aout* | linux*coff*)
11107 dynamic_linker=no
11110 # This must be Linux ELF.
11111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11112 version_type=linux
11113 need_lib_prefix=no
11114 need_version=no
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 shlibpath_overrides_runpath=no
11121 # Some binutils ld are patched to set DT_RUNPATH
11122 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11123 $as_echo_n "(cached) " >&6
11124 else
11125 lt_cv_shlibpath_overrides_runpath=no
11126 save_LDFLAGS=$LDFLAGS
11127 save_libdir=$libdir
11128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11131 /* end confdefs.h. */
11134 main ()
11138 return 0;
11140 _ACEOF
11141 if ac_fn_c_try_link "$LINENO"; then :
11142 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11143 lt_cv_shlibpath_overrides_runpath=yes
11146 rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext conftest.$ac_ext
11148 LDFLAGS=$save_LDFLAGS
11149 libdir=$save_libdir
11153 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11155 # This implies no fast_install, which is unacceptable.
11156 # Some rework will be needed to allow for fast_install
11157 # before this can be enabled.
11158 hardcode_into_libs=yes
11160 # Append ld.so.conf contents to the search path
11161 if test -f /etc/ld.so.conf; then
11162 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' ' '`
11163 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11166 # We used to test for /lib/ld.so.1 and disable shared libraries on
11167 # powerpc, because MkLinux only supported shared libraries with the
11168 # GNU dynamic linker. Since this was broken with cross compilers,
11169 # most powerpc-linux boxes support dynamic linking these days and
11170 # people can always --disable-shared, the test was removed, and we
11171 # assume the GNU/Linux dynamic linker is in use.
11172 dynamic_linker='GNU/Linux ld.so'
11175 netbsd*)
11176 version_type=sunos
11177 need_lib_prefix=no
11178 need_version=no
11179 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11182 dynamic_linker='NetBSD (a.out) ld.so'
11183 else
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11185 soname_spec='${libname}${release}${shared_ext}$major'
11186 dynamic_linker='NetBSD ld.elf_so'
11188 shlibpath_var=LD_LIBRARY_PATH
11189 shlibpath_overrides_runpath=yes
11190 hardcode_into_libs=yes
11193 newsos6)
11194 version_type=linux
11195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 shlibpath_overrides_runpath=yes
11200 *nto* | *qnx*)
11201 version_type=qnx
11202 need_lib_prefix=no
11203 need_version=no
11204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205 soname_spec='${libname}${release}${shared_ext}$major'
11206 shlibpath_var=LD_LIBRARY_PATH
11207 shlibpath_overrides_runpath=no
11208 hardcode_into_libs=yes
11209 dynamic_linker='ldqnx.so'
11212 openbsd*)
11213 version_type=sunos
11214 sys_lib_dlsearch_path_spec="/usr/lib"
11215 need_lib_prefix=no
11216 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11217 case $host_os in
11218 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11219 *) need_version=no ;;
11220 esac
11221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11223 shlibpath_var=LD_LIBRARY_PATH
11224 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11225 case $host_os in
11226 openbsd2.[89] | openbsd2.[89].*)
11227 shlibpath_overrides_runpath=no
11230 shlibpath_overrides_runpath=yes
11232 esac
11233 else
11234 shlibpath_overrides_runpath=yes
11238 os2*)
11239 libname_spec='$name'
11240 shrext_cmds=".dll"
11241 need_lib_prefix=no
11242 library_names_spec='$libname${shared_ext} $libname.a'
11243 dynamic_linker='OS/2 ld.exe'
11244 shlibpath_var=LIBPATH
11247 osf3* | osf4* | osf5*)
11248 version_type=osf
11249 need_lib_prefix=no
11250 need_version=no
11251 soname_spec='${libname}${release}${shared_ext}$major'
11252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11255 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11258 rdos*)
11259 dynamic_linker=no
11262 solaris*)
11263 version_type=linux
11264 need_lib_prefix=no
11265 need_version=no
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267 soname_spec='${libname}${release}${shared_ext}$major'
11268 shlibpath_var=LD_LIBRARY_PATH
11269 shlibpath_overrides_runpath=yes
11270 hardcode_into_libs=yes
11271 # ldd complains unless libraries are executable
11272 postinstall_cmds='chmod +x $lib'
11275 sunos4*)
11276 version_type=sunos
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11278 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11279 shlibpath_var=LD_LIBRARY_PATH
11280 shlibpath_overrides_runpath=yes
11281 if test "$with_gnu_ld" = yes; then
11282 need_lib_prefix=no
11284 need_version=yes
11287 sysv4 | sysv4.3*)
11288 version_type=linux
11289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11290 soname_spec='${libname}${release}${shared_ext}$major'
11291 shlibpath_var=LD_LIBRARY_PATH
11292 case $host_vendor in
11293 sni)
11294 shlibpath_overrides_runpath=no
11295 need_lib_prefix=no
11296 runpath_var=LD_RUN_PATH
11298 siemens)
11299 need_lib_prefix=no
11301 motorola)
11302 need_lib_prefix=no
11303 need_version=no
11304 shlibpath_overrides_runpath=no
11305 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11307 esac
11310 sysv4*MP*)
11311 if test -d /usr/nec ;then
11312 version_type=linux
11313 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11314 soname_spec='$libname${shared_ext}.$major'
11315 shlibpath_var=LD_LIBRARY_PATH
11319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11320 version_type=freebsd-elf
11321 need_lib_prefix=no
11322 need_version=no
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=yes
11327 hardcode_into_libs=yes
11328 if test "$with_gnu_ld" = yes; then
11329 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11330 else
11331 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11332 case $host_os in
11333 sco3.2v5*)
11334 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11336 esac
11338 sys_lib_dlsearch_path_spec='/usr/lib'
11341 tpf*)
11342 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11343 version_type=linux
11344 need_lib_prefix=no
11345 need_version=no
11346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347 shlibpath_var=LD_LIBRARY_PATH
11348 shlibpath_overrides_runpath=no
11349 hardcode_into_libs=yes
11352 uts4*)
11353 version_type=linux
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 shlibpath_var=LD_LIBRARY_PATH
11360 dynamic_linker=no
11362 esac
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11364 $as_echo "$dynamic_linker" >&6; }
11365 test "$dynamic_linker" = no && can_build_shared=no
11367 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11368 if test "$GCC" = yes; then
11369 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11372 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11373 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11375 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11376 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11471 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11472 hardcode_action=
11473 if test -n "$hardcode_libdir_flag_spec" ||
11474 test -n "$runpath_var" ||
11475 test "X$hardcode_automatic" = "Xyes" ; then
11477 # We can hardcode non-existent directories.
11478 if test "$hardcode_direct" != no &&
11479 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11480 # have to relink, otherwise we might link with an installed library
11481 # when we should be linking with a yet-to-be-installed one
11482 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11483 test "$hardcode_minus_L" != no; then
11484 # Linking always hardcodes the temporary library directory.
11485 hardcode_action=relink
11486 else
11487 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11488 hardcode_action=immediate
11490 else
11491 # We cannot hardcode anything, or else we can only hardcode existing
11492 # directories.
11493 hardcode_action=unsupported
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11496 $as_echo "$hardcode_action" >&6; }
11498 if test "$hardcode_action" = relink ||
11499 test "$inherit_rpath" = yes; then
11500 # Fast installation is not supported
11501 enable_fast_install=no
11502 elif test "$shlibpath_overrides_runpath" = yes ||
11503 test "$enable_shared" = no; then
11504 # Fast installation is not necessary
11505 enable_fast_install=needless
11513 if test "x$enable_dlopen" != xyes; then
11514 enable_dlopen=unknown
11515 enable_dlopen_self=unknown
11516 enable_dlopen_self_static=unknown
11517 else
11518 lt_cv_dlopen=no
11519 lt_cv_dlopen_libs=
11521 case $host_os in
11522 beos*)
11523 lt_cv_dlopen="load_add_on"
11524 lt_cv_dlopen_libs=
11525 lt_cv_dlopen_self=yes
11528 mingw* | pw32* | cegcc*)
11529 lt_cv_dlopen="LoadLibrary"
11530 lt_cv_dlopen_libs=
11533 cygwin*)
11534 lt_cv_dlopen="dlopen"
11535 lt_cv_dlopen_libs=
11538 darwin*)
11539 # if libdl is installed we need to link against it
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11541 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11542 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545 ac_check_lib_save_LIBS=$LIBS
11546 LIBS="-ldl $LIBS"
11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h. */
11550 /* Override any GCC internal prototype to avoid an error.
11551 Use char because int might match the return type of a GCC
11552 builtin and then its argument prototype would still apply. */
11553 #ifdef __cplusplus
11554 extern "C"
11555 #endif
11556 char dlopen ();
11558 main ()
11560 return dlopen ();
11562 return 0;
11564 _ACEOF
11565 if ac_fn_c_try_link "$LINENO"; then :
11566 ac_cv_lib_dl_dlopen=yes
11567 else
11568 ac_cv_lib_dl_dlopen=no
11570 rm -f core conftest.err conftest.$ac_objext \
11571 conftest$ac_exeext conftest.$ac_ext
11572 LIBS=$ac_check_lib_save_LIBS
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11575 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11576 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11577 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11578 else
11580 lt_cv_dlopen="dyld"
11581 lt_cv_dlopen_libs=
11582 lt_cv_dlopen_self=yes
11589 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11590 if test "x$ac_cv_func_shl_load" = x""yes; then :
11591 lt_cv_dlopen="shl_load"
11592 else
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11594 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11595 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 ac_check_lib_save_LIBS=$LIBS
11599 LIBS="-ldld $LIBS"
11600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601 /* end confdefs.h. */
11603 /* Override any GCC internal prototype to avoid an error.
11604 Use char because int might match the return type of a GCC
11605 builtin and then its argument prototype would still apply. */
11606 #ifdef __cplusplus
11607 extern "C"
11608 #endif
11609 char shl_load ();
11611 main ()
11613 return shl_load ();
11615 return 0;
11617 _ACEOF
11618 if ac_fn_c_try_link "$LINENO"; then :
11619 ac_cv_lib_dld_shl_load=yes
11620 else
11621 ac_cv_lib_dld_shl_load=no
11623 rm -f core conftest.err conftest.$ac_objext \
11624 conftest$ac_exeext conftest.$ac_ext
11625 LIBS=$ac_check_lib_save_LIBS
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11628 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11629 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11630 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11631 else
11632 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11633 if test "x$ac_cv_func_dlopen" = x""yes; then :
11634 lt_cv_dlopen="dlopen"
11635 else
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11637 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11638 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 ac_check_lib_save_LIBS=$LIBS
11642 LIBS="-ldl $LIBS"
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11646 /* Override any GCC internal prototype to avoid an error.
11647 Use char because int might match the return type of a GCC
11648 builtin and then its argument prototype would still apply. */
11649 #ifdef __cplusplus
11650 extern "C"
11651 #endif
11652 char dlopen ();
11654 main ()
11656 return dlopen ();
11658 return 0;
11660 _ACEOF
11661 if ac_fn_c_try_link "$LINENO"; then :
11662 ac_cv_lib_dl_dlopen=yes
11663 else
11664 ac_cv_lib_dl_dlopen=no
11666 rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11668 LIBS=$ac_check_lib_save_LIBS
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11671 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11672 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11674 else
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11676 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11677 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 ac_check_lib_save_LIBS=$LIBS
11681 LIBS="-lsvld $LIBS"
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11685 /* Override any GCC internal prototype to avoid an error.
11686 Use char because int might match the return type of a GCC
11687 builtin and then its argument prototype would still apply. */
11688 #ifdef __cplusplus
11689 extern "C"
11690 #endif
11691 char dlopen ();
11693 main ()
11695 return dlopen ();
11697 return 0;
11699 _ACEOF
11700 if ac_fn_c_try_link "$LINENO"; then :
11701 ac_cv_lib_svld_dlopen=yes
11702 else
11703 ac_cv_lib_svld_dlopen=no
11705 rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11707 LIBS=$ac_check_lib_save_LIBS
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11710 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11711 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11712 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11713 else
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11715 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11716 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11717 $as_echo_n "(cached) " >&6
11718 else
11719 ac_check_lib_save_LIBS=$LIBS
11720 LIBS="-ldld $LIBS"
11721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11722 /* end confdefs.h. */
11724 /* Override any GCC internal prototype to avoid an error.
11725 Use char because int might match the return type of a GCC
11726 builtin and then its argument prototype would still apply. */
11727 #ifdef __cplusplus
11728 extern "C"
11729 #endif
11730 char dld_link ();
11732 main ()
11734 return dld_link ();
11736 return 0;
11738 _ACEOF
11739 if ac_fn_c_try_link "$LINENO"; then :
11740 ac_cv_lib_dld_dld_link=yes
11741 else
11742 ac_cv_lib_dld_dld_link=no
11744 rm -f core conftest.err conftest.$ac_objext \
11745 conftest$ac_exeext conftest.$ac_ext
11746 LIBS=$ac_check_lib_save_LIBS
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11749 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11750 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11751 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11770 esac
11772 if test "x$lt_cv_dlopen" != xno; then
11773 enable_dlopen=yes
11774 else
11775 enable_dlopen=no
11778 case $lt_cv_dlopen in
11779 dlopen)
11780 save_CPPFLAGS="$CPPFLAGS"
11781 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11783 save_LDFLAGS="$LDFLAGS"
11784 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11786 save_LIBS="$LIBS"
11787 LIBS="$lt_cv_dlopen_libs $LIBS"
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11790 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11791 if test "${lt_cv_dlopen_self+set}" = set; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 if test "$cross_compiling" = yes; then :
11795 lt_cv_dlopen_self=cross
11796 else
11797 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11798 lt_status=$lt_dlunknown
11799 cat > conftest.$ac_ext <<_LT_EOF
11800 #line 11800 "configure"
11801 #include "confdefs.h"
11803 #if HAVE_DLFCN_H
11804 #include <dlfcn.h>
11805 #endif
11807 #include <stdio.h>
11809 #ifdef RTLD_GLOBAL
11810 # define LT_DLGLOBAL RTLD_GLOBAL
11811 #else
11812 # ifdef DL_GLOBAL
11813 # define LT_DLGLOBAL DL_GLOBAL
11814 # else
11815 # define LT_DLGLOBAL 0
11816 # endif
11817 #endif
11819 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11820 find out it does not work in some platform. */
11821 #ifndef LT_DLLAZY_OR_NOW
11822 # ifdef RTLD_LAZY
11823 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11824 # else
11825 # ifdef DL_LAZY
11826 # define LT_DLLAZY_OR_NOW DL_LAZY
11827 # else
11828 # ifdef RTLD_NOW
11829 # define LT_DLLAZY_OR_NOW RTLD_NOW
11830 # else
11831 # ifdef DL_NOW
11832 # define LT_DLLAZY_OR_NOW DL_NOW
11833 # else
11834 # define LT_DLLAZY_OR_NOW 0
11835 # endif
11836 # endif
11837 # endif
11838 # endif
11839 #endif
11841 /* When -fvisbility=hidden is used, assume the code has been annotated
11842 correspondingly for the symbols needed. */
11843 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11844 void fnord () __attribute__((visibility("default")));
11845 #endif
11847 void fnord () { int i=42; }
11848 int main ()
11850 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11851 int status = $lt_dlunknown;
11853 if (self)
11855 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11856 else
11858 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11859 else puts (dlerror ());
11861 /* dlclose (self); */
11863 else
11864 puts (dlerror ());
11866 return status;
11868 _LT_EOF
11869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11870 (eval $ac_link) 2>&5
11871 ac_status=$?
11872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11873 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11874 (./conftest; exit; ) >&5 2>/dev/null
11875 lt_status=$?
11876 case x$lt_status in
11877 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11878 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11879 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11880 esac
11881 else :
11882 # compilation failed
11883 lt_cv_dlopen_self=no
11886 rm -fr conftest*
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11891 $as_echo "$lt_cv_dlopen_self" >&6; }
11893 if test "x$lt_cv_dlopen_self" = xyes; then
11894 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11896 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11897 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 if test "$cross_compiling" = yes; then :
11901 lt_cv_dlopen_self_static=cross
11902 else
11903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11904 lt_status=$lt_dlunknown
11905 cat > conftest.$ac_ext <<_LT_EOF
11906 #line 11906 "configure"
11907 #include "confdefs.h"
11909 #if HAVE_DLFCN_H
11910 #include <dlfcn.h>
11911 #endif
11913 #include <stdio.h>
11915 #ifdef RTLD_GLOBAL
11916 # define LT_DLGLOBAL RTLD_GLOBAL
11917 #else
11918 # ifdef DL_GLOBAL
11919 # define LT_DLGLOBAL DL_GLOBAL
11920 # else
11921 # define LT_DLGLOBAL 0
11922 # endif
11923 #endif
11925 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11926 find out it does not work in some platform. */
11927 #ifndef LT_DLLAZY_OR_NOW
11928 # ifdef RTLD_LAZY
11929 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11930 # else
11931 # ifdef DL_LAZY
11932 # define LT_DLLAZY_OR_NOW DL_LAZY
11933 # else
11934 # ifdef RTLD_NOW
11935 # define LT_DLLAZY_OR_NOW RTLD_NOW
11936 # else
11937 # ifdef DL_NOW
11938 # define LT_DLLAZY_OR_NOW DL_NOW
11939 # else
11940 # define LT_DLLAZY_OR_NOW 0
11941 # endif
11942 # endif
11943 # endif
11944 # endif
11945 #endif
11947 /* When -fvisbility=hidden is used, assume the code has been annotated
11948 correspondingly for the symbols needed. */
11949 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11950 void fnord () __attribute__((visibility("default")));
11951 #endif
11953 void fnord () { int i=42; }
11954 int main ()
11956 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11957 int status = $lt_dlunknown;
11959 if (self)
11961 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11962 else
11964 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11965 else puts (dlerror ());
11967 /* dlclose (self); */
11969 else
11970 puts (dlerror ());
11972 return status;
11974 _LT_EOF
11975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11976 (eval $ac_link) 2>&5
11977 ac_status=$?
11978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11979 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11980 (./conftest; exit; ) >&5 2>/dev/null
11981 lt_status=$?
11982 case x$lt_status in
11983 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11984 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11985 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11986 esac
11987 else :
11988 # compilation failed
11989 lt_cv_dlopen_self_static=no
11992 rm -fr conftest*
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11997 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12000 CPPFLAGS="$save_CPPFLAGS"
12001 LDFLAGS="$save_LDFLAGS"
12002 LIBS="$save_LIBS"
12004 esac
12006 case $lt_cv_dlopen_self in
12007 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12008 *) enable_dlopen_self=unknown ;;
12009 esac
12011 case $lt_cv_dlopen_self_static in
12012 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12013 *) enable_dlopen_self_static=unknown ;;
12014 esac
12033 striplib=
12034 old_striplib=
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12036 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12037 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12038 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12039 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12041 $as_echo "yes" >&6; }
12042 else
12043 # FIXME - insert some real tests, host_os isn't really good enough
12044 case $host_os in
12045 darwin*)
12046 if test -n "$STRIP" ; then
12047 striplib="$STRIP -x"
12048 old_striplib="$STRIP -S"
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12050 $as_echo "yes" >&6; }
12051 else
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12053 $as_echo "no" >&6; }
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058 $as_echo "no" >&6; }
12060 esac
12074 # Report which library types will actually be built
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12076 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12078 $as_echo "$can_build_shared" >&6; }
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12081 $as_echo_n "checking whether to build shared libraries... " >&6; }
12082 test "$can_build_shared" = "no" && enable_shared=no
12084 # On AIX, shared libraries and static libraries use the same namespace, and
12085 # are all built from PIC.
12086 case $host_os in
12087 aix3*)
12088 test "$enable_shared" = yes && enable_static=no
12089 if test -n "$RANLIB"; then
12090 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12091 postinstall_cmds='$RANLIB $lib'
12095 aix[4-9]*)
12096 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12097 test "$enable_shared" = yes && enable_static=no
12100 esac
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12102 $as_echo "$enable_shared" >&6; }
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12105 $as_echo_n "checking whether to build static libraries... " >&6; }
12106 # Make sure either enable_shared or enable_static is yes.
12107 test "$enable_shared" = yes || enable_static=yes
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12109 $as_echo "$enable_static" >&6; }
12115 ac_ext=c
12116 ac_cpp='$CPP $CPPFLAGS'
12117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12121 CC="$lt_save_CC"
12123 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12124 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12125 (test "X$CXX" != "Xg++"))) ; then
12126 ac_ext=cpp
12127 ac_cpp='$CXXCPP $CPPFLAGS'
12128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12132 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12133 if test -z "$CXXCPP"; then
12134 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12135 $as_echo_n "(cached) " >&6
12136 else
12137 # Double quotes because CXXCPP needs to be expanded
12138 for CXXCPP in "$CXX -E" "/lib/cpp"
12140 ac_preproc_ok=false
12141 for ac_cxx_preproc_warn_flag in '' yes
12143 # Use a header file that comes with gcc, so configuring glibc
12144 # with a fresh cross-compiler works.
12145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12146 # <limits.h> exists even on freestanding compilers.
12147 # On the NeXT, cc -E runs the code through the compiler's parser,
12148 # not just through cpp. "Syntax error" is here to catch this case.
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12151 #ifdef __STDC__
12152 # include <limits.h>
12153 #else
12154 # include <assert.h>
12155 #endif
12156 Syntax error
12157 _ACEOF
12158 if ac_fn_cxx_try_cpp "$LINENO"; then :
12160 else
12161 # Broken: fails on valid input.
12162 continue
12164 rm -f conftest.err conftest.$ac_ext
12166 # OK, works on sane cases. Now check whether nonexistent headers
12167 # can be detected and how.
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12170 #include <ac_nonexistent.h>
12171 _ACEOF
12172 if ac_fn_cxx_try_cpp "$LINENO"; then :
12173 # Broken: success on invalid input.
12174 continue
12175 else
12176 # Passes both tests.
12177 ac_preproc_ok=:
12178 break
12180 rm -f conftest.err conftest.$ac_ext
12182 done
12183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12184 rm -f conftest.err conftest.$ac_ext
12185 if $ac_preproc_ok; then :
12186 break
12189 done
12190 ac_cv_prog_CXXCPP=$CXXCPP
12193 CXXCPP=$ac_cv_prog_CXXCPP
12194 else
12195 ac_cv_prog_CXXCPP=$CXXCPP
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12198 $as_echo "$CXXCPP" >&6; }
12199 ac_preproc_ok=false
12200 for ac_cxx_preproc_warn_flag in '' yes
12202 # Use a header file that comes with gcc, so configuring glibc
12203 # with a fresh cross-compiler works.
12204 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12205 # <limits.h> exists even on freestanding compilers.
12206 # On the NeXT, cc -E runs the code through the compiler's parser,
12207 # not just through cpp. "Syntax error" is here to catch this case.
12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12209 /* end confdefs.h. */
12210 #ifdef __STDC__
12211 # include <limits.h>
12212 #else
12213 # include <assert.h>
12214 #endif
12215 Syntax error
12216 _ACEOF
12217 if ac_fn_cxx_try_cpp "$LINENO"; then :
12219 else
12220 # Broken: fails on valid input.
12221 continue
12223 rm -f conftest.err conftest.$ac_ext
12225 # OK, works on sane cases. Now check whether nonexistent headers
12226 # can be detected and how.
12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12228 /* end confdefs.h. */
12229 #include <ac_nonexistent.h>
12230 _ACEOF
12231 if ac_fn_cxx_try_cpp "$LINENO"; then :
12232 # Broken: success on invalid input.
12233 continue
12234 else
12235 # Passes both tests.
12236 ac_preproc_ok=:
12237 break
12239 rm -f conftest.err conftest.$ac_ext
12241 done
12242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12243 rm -f conftest.err conftest.$ac_ext
12244 if $ac_preproc_ok; then :
12246 else
12247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12249 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12250 See \`config.log' for more details." "$LINENO" 5; }
12253 ac_ext=c
12254 ac_cpp='$CPP $CPPFLAGS'
12255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12259 else
12260 _lt_caught_CXX_error=yes
12263 ac_ext=cpp
12264 ac_cpp='$CXXCPP $CPPFLAGS'
12265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12269 archive_cmds_need_lc_CXX=no
12270 allow_undefined_flag_CXX=
12271 always_export_symbols_CXX=no
12272 archive_expsym_cmds_CXX=
12273 compiler_needs_object_CXX=no
12274 export_dynamic_flag_spec_CXX=
12275 hardcode_direct_CXX=no
12276 hardcode_direct_absolute_CXX=no
12277 hardcode_libdir_flag_spec_CXX=
12278 hardcode_libdir_flag_spec_ld_CXX=
12279 hardcode_libdir_separator_CXX=
12280 hardcode_minus_L_CXX=no
12281 hardcode_shlibpath_var_CXX=unsupported
12282 hardcode_automatic_CXX=no
12283 inherit_rpath_CXX=no
12284 module_cmds_CXX=
12285 module_expsym_cmds_CXX=
12286 link_all_deplibs_CXX=unknown
12287 old_archive_cmds_CXX=$old_archive_cmds
12288 reload_flag_CXX=$reload_flag
12289 reload_cmds_CXX=$reload_cmds
12290 no_undefined_flag_CXX=
12291 whole_archive_flag_spec_CXX=
12292 enable_shared_with_static_runtimes_CXX=no
12294 # Source file extension for C++ test sources.
12295 ac_ext=cpp
12297 # Object file extension for compiled C++ test sources.
12298 objext=o
12299 objext_CXX=$objext
12301 # No sense in running all these tests if we already determined that
12302 # the CXX compiler isn't working. Some variables (like enable_shared)
12303 # are currently assumed to apply to all compilers on this platform,
12304 # and will be corrupted by setting them based on a non-working compiler.
12305 if test "$_lt_caught_CXX_error" != yes; then
12306 # Code to be used in simple compile tests
12307 lt_simple_compile_test_code="int some_variable = 0;"
12309 # Code to be used in simple link tests
12310 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12312 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12319 # If no C compiler was specified, use CC.
12320 LTCC=${LTCC-"$CC"}
12322 # If no C compiler flags were specified, use CFLAGS.
12323 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12325 # Allow CC to be a program name with arguments.
12326 compiler=$CC
12329 # save warnings/boilerplate of simple test code
12330 ac_outfile=conftest.$ac_objext
12331 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12332 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12333 _lt_compiler_boilerplate=`cat conftest.err`
12334 $RM conftest*
12336 ac_outfile=conftest.$ac_objext
12337 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12338 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12339 _lt_linker_boilerplate=`cat conftest.err`
12340 $RM -r conftest*
12343 # Allow CC to be a program name with arguments.
12344 lt_save_CC=$CC
12345 lt_save_LD=$LD
12346 lt_save_GCC=$GCC
12347 GCC=$GXX
12348 lt_save_with_gnu_ld=$with_gnu_ld
12349 lt_save_path_LD=$lt_cv_path_LD
12350 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12351 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12352 else
12353 $as_unset lt_cv_prog_gnu_ld
12355 if test -n "${lt_cv_path_LDCXX+set}"; then
12356 lt_cv_path_LD=$lt_cv_path_LDCXX
12357 else
12358 $as_unset lt_cv_path_LD
12360 test -z "${LDCXX+set}" || LD=$LDCXX
12361 CC=${CXX-"c++"}
12362 compiler=$CC
12363 compiler_CXX=$CC
12364 for cc_temp in $compiler""; do
12365 case $cc_temp in
12366 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12367 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12368 \-*) ;;
12369 *) break;;
12370 esac
12371 done
12372 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12375 if test -n "$compiler"; then
12376 # We don't want -fno-exception when compiling C++ code, so set the
12377 # no_builtin_flag separately
12378 if test "$GXX" = yes; then
12379 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12380 else
12381 lt_prog_compiler_no_builtin_flag_CXX=
12384 if test "$GXX" = yes; then
12385 # Set up default GNU C++ configuration
12389 # Check whether --with-gnu-ld was given.
12390 if test "${with_gnu_ld+set}" = set; then :
12391 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12392 else
12393 with_gnu_ld=no
12396 ac_prog=ld
12397 if test "$GCC" = yes; then
12398 # Check if gcc -print-prog-name=ld gives a path.
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12400 $as_echo_n "checking for ld used by $CC... " >&6; }
12401 case $host in
12402 *-*-mingw*)
12403 # gcc leaves a trailing carriage return which upsets mingw
12404 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12406 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12407 esac
12408 case $ac_prog in
12409 # Accept absolute paths.
12410 [\\/]* | ?:[\\/]*)
12411 re_direlt='/[^/][^/]*/\.\./'
12412 # Canonicalize the pathname of ld
12413 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12414 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12415 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12416 done
12417 test -z "$LD" && LD="$ac_prog"
12420 # If it fails, then pretend we aren't using GCC.
12421 ac_prog=ld
12424 # If it is relative, then search for the first ld in PATH.
12425 with_gnu_ld=unknown
12427 esac
12428 elif test "$with_gnu_ld" = yes; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12430 $as_echo_n "checking for GNU ld... " >&6; }
12431 else
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12433 $as_echo_n "checking for non-GNU ld... " >&6; }
12435 if test "${lt_cv_path_LD+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
12437 else
12438 if test -z "$LD"; then
12439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12440 for ac_dir in $PATH; do
12441 IFS="$lt_save_ifs"
12442 test -z "$ac_dir" && ac_dir=.
12443 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12444 lt_cv_path_LD="$ac_dir/$ac_prog"
12445 # Check to see if the program is GNU ld. I'd rather use --version,
12446 # but apparently some variants of GNU ld only accept -v.
12447 # Break only if it was the GNU/non-GNU ld that we prefer.
12448 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12449 *GNU* | *'with BFD'*)
12450 test "$with_gnu_ld" != no && break
12453 test "$with_gnu_ld" != yes && break
12455 esac
12457 done
12458 IFS="$lt_save_ifs"
12459 else
12460 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12464 LD="$lt_cv_path_LD"
12465 if test -n "$LD"; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12467 $as_echo "$LD" >&6; }
12468 else
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470 $as_echo "no" >&6; }
12472 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12474 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12475 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12476 $as_echo_n "(cached) " >&6
12477 else
12478 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12479 case `$LD -v 2>&1 </dev/null` in
12480 *GNU* | *'with BFD'*)
12481 lt_cv_prog_gnu_ld=yes
12484 lt_cv_prog_gnu_ld=no
12486 esac
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12489 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12490 with_gnu_ld=$lt_cv_prog_gnu_ld
12498 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12499 # archiving commands below assume that GNU ld is being used.
12500 if test "$with_gnu_ld" = yes; then
12501 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12502 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12504 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12505 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12507 # If archive_cmds runs LD, not CC, wlarc should be empty
12508 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12509 # investigate it a little bit more. (MM)
12510 wlarc='${wl}'
12512 # ancient GNU ld didn't support --whole-archive et. al.
12513 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12514 $GREP 'no-whole-archive' > /dev/null; then
12515 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12516 else
12517 whole_archive_flag_spec_CXX=
12519 else
12520 with_gnu_ld=no
12521 wlarc=
12523 # A generic and very simple default shared library creation
12524 # command for GNU C++ for the case where it uses the native
12525 # linker, instead of GNU ld. If possible, this setting should
12526 # overridden to take advantage of the native linker features on
12527 # the platform it is being used on.
12528 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12531 # Commands to make compiler produce verbose output that lists
12532 # what "hidden" libraries, object files and flags are used when
12533 # linking a shared library.
12534 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12536 else
12537 GXX=no
12538 with_gnu_ld=no
12539 wlarc=
12542 # PORTME: fill in a description of your system's C++ link characteristics
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12544 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12545 ld_shlibs_CXX=yes
12546 case $host_os in
12547 aix3*)
12548 # FIXME: insert proper C++ library support
12549 ld_shlibs_CXX=no
12551 aix[4-9]*)
12552 if test "$host_cpu" = ia64; then
12553 # On IA64, the linker does run time linking by default, so we don't
12554 # have to do anything special.
12555 aix_use_runtimelinking=no
12556 exp_sym_flag='-Bexport'
12557 no_entry_flag=""
12558 else
12559 aix_use_runtimelinking=no
12561 # Test if we are trying to use run time linking or normal
12562 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12563 # need to do runtime linking.
12564 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12565 for ld_flag in $LDFLAGS; do
12566 case $ld_flag in
12567 *-brtl*)
12568 aix_use_runtimelinking=yes
12569 break
12571 esac
12572 done
12574 esac
12576 exp_sym_flag='-bexport'
12577 no_entry_flag='-bnoentry'
12580 # When large executables or shared objects are built, AIX ld can
12581 # have problems creating the table of contents. If linking a library
12582 # or program results in "error TOC overflow" add -mminimal-toc to
12583 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12584 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12586 archive_cmds_CXX=''
12587 hardcode_direct_CXX=yes
12588 hardcode_direct_absolute_CXX=yes
12589 hardcode_libdir_separator_CXX=':'
12590 link_all_deplibs_CXX=yes
12591 file_list_spec_CXX='${wl}-f,'
12593 if test "$GXX" = yes; then
12594 case $host_os in aix4.[012]|aix4.[012].*)
12595 # We only want to do this on AIX 4.2 and lower, the check
12596 # below for broken collect2 doesn't work under 4.3+
12597 collect2name=`${CC} -print-prog-name=collect2`
12598 if test -f "$collect2name" &&
12599 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12600 then
12601 # We have reworked collect2
12603 else
12604 # We have old collect2
12605 hardcode_direct_CXX=unsupported
12606 # It fails to find uninstalled libraries when the uninstalled
12607 # path is not listed in the libpath. Setting hardcode_minus_L
12608 # to unsupported forces relinking
12609 hardcode_minus_L_CXX=yes
12610 hardcode_libdir_flag_spec_CXX='-L$libdir'
12611 hardcode_libdir_separator_CXX=
12613 esac
12614 shared_flag='-shared'
12615 if test "$aix_use_runtimelinking" = yes; then
12616 shared_flag="$shared_flag "'${wl}-G'
12618 else
12619 # not using gcc
12620 if test "$host_cpu" = ia64; then
12621 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12622 # chokes on -Wl,-G. The following line is correct:
12623 shared_flag='-G'
12624 else
12625 if test "$aix_use_runtimelinking" = yes; then
12626 shared_flag='${wl}-G'
12627 else
12628 shared_flag='${wl}-bM:SRE'
12633 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12634 # It seems that -bexpall does not export symbols beginning with
12635 # underscore (_), so it is better to generate a list of symbols to
12636 # export.
12637 always_export_symbols_CXX=yes
12638 if test "$aix_use_runtimelinking" = yes; then
12639 # Warning - without using the other runtime loading flags (-brtl),
12640 # -berok will link without error, but may produce a broken library.
12641 allow_undefined_flag_CXX='-berok'
12642 # Determine the default libpath from the value encoded in an empty
12643 # executable.
12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h. */
12648 main ()
12652 return 0;
12654 _ACEOF
12655 if ac_fn_cxx_try_link "$LINENO"; then :
12657 lt_aix_libpath_sed='
12658 /Import File Strings/,/^$/ {
12659 /^0/ {
12660 s/^0 *\(.*\)$/\1/
12664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12665 # Check for a 64-bit object if we didn't find anything.
12666 if test -z "$aix_libpath"; then
12667 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12670 rm -f core conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
12672 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12674 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12676 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"
12677 else
12678 if test "$host_cpu" = ia64; then
12679 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12680 allow_undefined_flag_CXX="-z nodefs"
12681 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"
12682 else
12683 # Determine the default libpath from the value encoded in an
12684 # empty executable.
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12689 main ()
12693 return 0;
12695 _ACEOF
12696 if ac_fn_cxx_try_link "$LINENO"; then :
12698 lt_aix_libpath_sed='
12699 /Import File Strings/,/^$/ {
12700 /^0/ {
12701 s/^0 *\(.*\)$/\1/
12705 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12706 # Check for a 64-bit object if we didn't find anything.
12707 if test -z "$aix_libpath"; then
12708 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12711 rm -f core conftest.err conftest.$ac_objext \
12712 conftest$ac_exeext conftest.$ac_ext
12713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12715 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12716 # Warning - without using the other run time loading flags,
12717 # -berok will link without error, but may produce a broken library.
12718 no_undefined_flag_CXX=' ${wl}-bernotok'
12719 allow_undefined_flag_CXX=' ${wl}-berok'
12720 if test "$with_gnu_ld" = yes; then
12721 # We only use this code for GNU lds that support --whole-archive.
12722 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12723 else
12724 # Exported symbols can be pulled into shared objects from archives
12725 whole_archive_flag_spec_CXX='$convenience'
12727 archive_cmds_need_lc_CXX=yes
12728 # This is similar to how AIX traditionally builds its shared
12729 # libraries.
12730 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'
12735 beos*)
12736 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12737 allow_undefined_flag_CXX=unsupported
12738 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12739 # support --undefined. This deserves some investigation. FIXME
12740 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12741 else
12742 ld_shlibs_CXX=no
12746 chorus*)
12747 case $cc_basename in
12749 # FIXME: insert proper C++ library support
12750 ld_shlibs_CXX=no
12752 esac
12755 cygwin* | mingw* | pw32* | cegcc*)
12756 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12757 # as there is no search path for DLLs.
12758 hardcode_libdir_flag_spec_CXX='-L$libdir'
12759 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12760 allow_undefined_flag_CXX=unsupported
12761 always_export_symbols_CXX=no
12762 enable_shared_with_static_runtimes_CXX=yes
12764 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12765 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'
12766 # If the export-symbols file already is a .def file (1st line
12767 # is EXPORTS), use it as is; otherwise, prepend...
12768 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12769 cp $export_symbols $output_objdir/$soname.def;
12770 else
12771 echo EXPORTS > $output_objdir/$soname.def;
12772 cat $export_symbols >> $output_objdir/$soname.def;
12774 $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'
12775 else
12776 ld_shlibs_CXX=no
12779 darwin* | rhapsody*)
12782 archive_cmds_need_lc_CXX=no
12783 hardcode_direct_CXX=no
12784 hardcode_automatic_CXX=yes
12785 hardcode_shlibpath_var_CXX=unsupported
12786 if test "$lt_cv_ld_force_load" = "yes"; then
12787 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\"`'
12788 else
12789 whole_archive_flag_spec_CXX=''
12791 link_all_deplibs_CXX=yes
12792 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12793 case $cc_basename in
12794 ifort*) _lt_dar_can_shared=yes ;;
12795 *) _lt_dar_can_shared=$GCC ;;
12796 esac
12797 if test "$_lt_dar_can_shared" = "yes"; then
12798 output_verbose_link_cmd=func_echo_all
12799 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}"
12800 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12801 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}"
12802 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}"
12803 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12804 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}"
12805 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}"
12808 else
12809 ld_shlibs_CXX=no
12814 dgux*)
12815 case $cc_basename in
12816 ec++*)
12817 # FIXME: insert proper C++ library support
12818 ld_shlibs_CXX=no
12820 ghcx*)
12821 # Green Hills C++ Compiler
12822 # FIXME: insert proper C++ library support
12823 ld_shlibs_CXX=no
12826 # FIXME: insert proper C++ library support
12827 ld_shlibs_CXX=no
12829 esac
12832 freebsd2.*)
12833 # C++ shared libraries reported to be fairly broken before
12834 # switch to ELF
12835 ld_shlibs_CXX=no
12838 freebsd-elf*)
12839 archive_cmds_need_lc_CXX=no
12842 freebsd* | dragonfly*)
12843 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12844 # conventions
12845 ld_shlibs_CXX=yes
12848 gnu*)
12851 haiku*)
12852 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12853 link_all_deplibs_CXX=yes
12856 hpux9*)
12857 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12858 hardcode_libdir_separator_CXX=:
12859 export_dynamic_flag_spec_CXX='${wl}-E'
12860 hardcode_direct_CXX=yes
12861 hardcode_minus_L_CXX=yes # Not in the search PATH,
12862 # but as the default
12863 # location of the library.
12865 case $cc_basename in
12866 CC*)
12867 # FIXME: insert proper C++ library support
12868 ld_shlibs_CXX=no
12870 aCC*)
12871 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'
12872 # Commands to make compiler produce verbose output that lists
12873 # what "hidden" libraries, object files and flags are used when
12874 # linking a shared library.
12876 # There doesn't appear to be a way to prevent this compiler from
12877 # explicitly linking system object files so we need to strip them
12878 # from the output so that they don't get included in the library
12879 # dependencies.
12880 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"'
12883 if test "$GXX" = yes; then
12884 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'
12885 else
12886 # FIXME: insert proper C++ library support
12887 ld_shlibs_CXX=no
12890 esac
12893 hpux10*|hpux11*)
12894 if test $with_gnu_ld = no; then
12895 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12896 hardcode_libdir_separator_CXX=:
12898 case $host_cpu in
12899 hppa*64*|ia64*)
12902 export_dynamic_flag_spec_CXX='${wl}-E'
12904 esac
12906 case $host_cpu in
12907 hppa*64*|ia64*)
12908 hardcode_direct_CXX=no
12909 hardcode_shlibpath_var_CXX=no
12912 hardcode_direct_CXX=yes
12913 hardcode_direct_absolute_CXX=yes
12914 hardcode_minus_L_CXX=yes # Not in the search PATH,
12915 # but as the default
12916 # location of the library.
12918 esac
12920 case $cc_basename in
12921 CC*)
12922 # FIXME: insert proper C++ library support
12923 ld_shlibs_CXX=no
12925 aCC*)
12926 case $host_cpu in
12927 hppa*64*)
12928 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12930 ia64*)
12931 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12934 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12936 esac
12937 # Commands to make compiler produce verbose output that lists
12938 # what "hidden" libraries, object files and flags are used when
12939 # linking a shared library.
12941 # There doesn't appear to be a way to prevent this compiler from
12942 # explicitly linking system object files so we need to strip them
12943 # from the output so that they don't get included in the library
12944 # dependencies.
12945 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"'
12948 if test "$GXX" = yes; then
12949 if test $with_gnu_ld = no; then
12950 case $host_cpu in
12951 hppa*64*)
12952 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12954 ia64*)
12955 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12958 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'
12960 esac
12962 else
12963 # FIXME: insert proper C++ library support
12964 ld_shlibs_CXX=no
12967 esac
12970 interix[3-9]*)
12971 hardcode_direct_CXX=no
12972 hardcode_shlibpath_var_CXX=no
12973 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12974 export_dynamic_flag_spec_CXX='${wl}-E'
12975 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12976 # Instead, shared libraries are loaded at an image base (0x10000000 by
12977 # default) and relocated if they conflict, which is a slow very memory
12978 # consuming and fragmenting process. To avoid this, we pick a random,
12979 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12980 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12981 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'
12982 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'
12984 irix5* | irix6*)
12985 case $cc_basename in
12986 CC*)
12987 # SGI C++
12988 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'
12990 # Archives containing C++ object files must be created using
12991 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12992 # necessary to make sure instantiated templates are included
12993 # in the archive.
12994 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12997 if test "$GXX" = yes; then
12998 if test "$with_gnu_ld" = no; then
12999 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'
13000 else
13001 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'
13004 link_all_deplibs_CXX=yes
13006 esac
13007 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13008 hardcode_libdir_separator_CXX=:
13009 inherit_rpath_CXX=yes
13012 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13013 case $cc_basename in
13014 KCC*)
13015 # Kuck and Associates, Inc. (KAI) C++ Compiler
13017 # KCC will only create a shared library if the output file
13018 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13019 # to its proper name (with version) after linking.
13020 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'
13021 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'
13022 # Commands to make compiler produce verbose output that lists
13023 # what "hidden" libraries, object files and flags are used when
13024 # linking a shared library.
13026 # There doesn't appear to be a way to prevent this compiler from
13027 # explicitly linking system object files so we need to strip them
13028 # from the output so that they don't get included in the library
13029 # dependencies.
13030 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"'
13032 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13033 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13035 # Archives containing C++ object files must be created using
13036 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13037 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13039 icpc* | ecpc* )
13040 # Intel C++
13041 with_gnu_ld=yes
13042 # version 8.0 and above of icpc choke on multiply defined symbols
13043 # if we add $predep_objects and $postdep_objects, however 7.1 and
13044 # earlier do not add the objects themselves.
13045 case `$CC -V 2>&1` in
13046 *"Version 7."*)
13047 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13048 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'
13050 *) # Version 8.0 or newer
13051 tmp_idyn=
13052 case $host_cpu in
13053 ia64*) tmp_idyn=' -i_dynamic';;
13054 esac
13055 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13056 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'
13058 esac
13059 archive_cmds_need_lc_CXX=no
13060 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13061 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13062 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13064 pgCC* | pgcpp*)
13065 # Portland Group C++ compiler
13066 case `$CC -V` in
13067 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13068 prelink_cmds_CXX='tpldir=Template.dir~
13069 rm -rf $tpldir~
13070 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13071 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13072 old_archive_cmds_CXX='tpldir=Template.dir~
13073 rm -rf $tpldir~
13074 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13075 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13076 $RANLIB $oldlib'
13077 archive_cmds_CXX='tpldir=Template.dir~
13078 rm -rf $tpldir~
13079 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13080 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13081 archive_expsym_cmds_CXX='tpldir=Template.dir~
13082 rm -rf $tpldir~
13083 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13084 $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'
13086 *) # Version 6 and above use weak symbols
13087 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13088 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'
13090 esac
13092 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13093 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13094 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'
13096 cxx*)
13097 # Compaq C++
13098 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13099 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'
13101 runpath_var=LD_RUN_PATH
13102 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13103 hardcode_libdir_separator_CXX=:
13105 # Commands to make compiler produce verbose output that lists
13106 # what "hidden" libraries, object files and flags are used when
13107 # linking a shared library.
13109 # There doesn't appear to be a way to prevent this compiler from
13110 # explicitly linking system object files so we need to strip them
13111 # from the output so that they don't get included in the library
13112 # dependencies.
13113 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'
13115 xl* | mpixl* | bgxl*)
13116 # IBM XL 8.0 on PPC, with GNU ld
13117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13118 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13119 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13120 if test "x$supports_anon_versioning" = xyes; then
13121 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13122 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13123 echo "local: *; };" >> $output_objdir/$libname.ver~
13124 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13128 case `$CC -V 2>&1 | sed 5q` in
13129 *Sun\ C*)
13130 # Sun C++ 5.9
13131 no_undefined_flag_CXX=' -zdefs'
13132 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13133 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'
13134 hardcode_libdir_flag_spec_CXX='-R$libdir'
13135 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'
13136 compiler_needs_object_CXX=yes
13138 # Not sure whether something based on
13139 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13140 # would be better.
13141 output_verbose_link_cmd='func_echo_all'
13143 # Archives containing C++ object files must be created using
13144 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13145 # necessary to make sure instantiated templates are included
13146 # in the archive.
13147 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13149 esac
13151 esac
13154 lynxos*)
13155 # FIXME: insert proper C++ library support
13156 ld_shlibs_CXX=no
13159 m88k*)
13160 # FIXME: insert proper C++ library support
13161 ld_shlibs_CXX=no
13164 mvs*)
13165 case $cc_basename in
13166 cxx*)
13167 # FIXME: insert proper C++ library support
13168 ld_shlibs_CXX=no
13171 # FIXME: insert proper C++ library support
13172 ld_shlibs_CXX=no
13174 esac
13177 netbsd*)
13178 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13179 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13180 wlarc=
13181 hardcode_libdir_flag_spec_CXX='-R$libdir'
13182 hardcode_direct_CXX=yes
13183 hardcode_shlibpath_var_CXX=no
13185 # Workaround some broken pre-1.5 toolchains
13186 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13189 *nto* | *qnx*)
13190 ld_shlibs_CXX=yes
13193 openbsd2*)
13194 # C++ shared libraries are fairly broken
13195 ld_shlibs_CXX=no
13198 openbsd*)
13199 if test -f /usr/libexec/ld.so; then
13200 hardcode_direct_CXX=yes
13201 hardcode_shlibpath_var_CXX=no
13202 hardcode_direct_absolute_CXX=yes
13203 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13204 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13205 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13206 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13207 export_dynamic_flag_spec_CXX='${wl}-E'
13208 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13210 output_verbose_link_cmd=func_echo_all
13211 else
13212 ld_shlibs_CXX=no
13216 osf3* | osf4* | osf5*)
13217 case $cc_basename in
13218 KCC*)
13219 # Kuck and Associates, Inc. (KAI) C++ Compiler
13221 # KCC will only create a shared library if the output file
13222 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13223 # to its proper name (with version) after linking.
13224 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'
13226 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13227 hardcode_libdir_separator_CXX=:
13229 # Archives containing C++ object files must be created using
13230 # the KAI C++ compiler.
13231 case $host in
13232 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13233 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13234 esac
13236 RCC*)
13237 # Rational C++ 2.4.1
13238 # FIXME: insert proper C++ library support
13239 ld_shlibs_CXX=no
13241 cxx*)
13242 case $host in
13243 osf3*)
13244 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13245 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'
13246 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13249 allow_undefined_flag_CXX=' -expect_unresolved \*'
13250 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'
13251 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13252 echo "-hidden">> $lib.exp~
13253 $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~
13254 $RM $lib.exp'
13255 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13257 esac
13259 hardcode_libdir_separator_CXX=:
13261 # Commands to make compiler produce verbose output that lists
13262 # what "hidden" libraries, object files and flags are used when
13263 # linking a shared library.
13265 # There doesn't appear to be a way to prevent this compiler from
13266 # explicitly linking system object files so we need to strip them
13267 # from the output so that they don't get included in the library
13268 # dependencies.
13269 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"'
13272 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13273 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13274 case $host in
13275 osf3*)
13276 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'
13279 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'
13281 esac
13283 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13284 hardcode_libdir_separator_CXX=:
13286 # Commands to make compiler produce verbose output that lists
13287 # what "hidden" libraries, object files and flags are used when
13288 # linking a shared library.
13289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13291 else
13292 # FIXME: insert proper C++ library support
13293 ld_shlibs_CXX=no
13296 esac
13299 psos*)
13300 # FIXME: insert proper C++ library support
13301 ld_shlibs_CXX=no
13304 sunos4*)
13305 case $cc_basename in
13306 CC*)
13307 # Sun C++ 4.x
13308 # FIXME: insert proper C++ library support
13309 ld_shlibs_CXX=no
13311 lcc*)
13312 # Lucid
13313 # FIXME: insert proper C++ library support
13314 ld_shlibs_CXX=no
13317 # FIXME: insert proper C++ library support
13318 ld_shlibs_CXX=no
13320 esac
13323 solaris*)
13324 case $cc_basename in
13325 CC*)
13326 # Sun C++ 4.2, 5.x and Centerline C++
13327 archive_cmds_need_lc_CXX=yes
13328 no_undefined_flag_CXX=' -zdefs'
13329 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13330 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13331 $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'
13333 hardcode_libdir_flag_spec_CXX='-R$libdir'
13334 hardcode_shlibpath_var_CXX=no
13335 case $host_os in
13336 solaris2.[0-5] | solaris2.[0-5].*) ;;
13338 # The compiler driver will combine and reorder linker options,
13339 # but understands `-z linker_flag'.
13340 # Supported since Solaris 2.6 (maybe 2.5.1?)
13341 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13343 esac
13344 link_all_deplibs_CXX=yes
13346 output_verbose_link_cmd='func_echo_all'
13348 # Archives containing C++ object files must be created using
13349 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13350 # necessary to make sure instantiated templates are included
13351 # in the archive.
13352 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13354 gcx*)
13355 # Green Hills C++ Compiler
13356 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13358 # The C++ compiler must be used to create the archive.
13359 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13362 # GNU C++ compiler with Solaris linker
13363 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13364 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13365 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13366 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13367 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13368 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13370 # Commands to make compiler produce verbose output that lists
13371 # what "hidden" libraries, object files and flags are used when
13372 # linking a shared library.
13373 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13374 else
13375 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13376 # platform.
13377 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13378 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13379 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13381 # Commands to make compiler produce verbose output that lists
13382 # what "hidden" libraries, object files and flags are used when
13383 # linking a shared library.
13384 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13387 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13388 case $host_os in
13389 solaris2.[0-5] | solaris2.[0-5].*) ;;
13391 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13393 esac
13396 esac
13399 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13400 no_undefined_flag_CXX='${wl}-z,text'
13401 archive_cmds_need_lc_CXX=no
13402 hardcode_shlibpath_var_CXX=no
13403 runpath_var='LD_RUN_PATH'
13405 case $cc_basename in
13406 CC*)
13407 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13408 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13411 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13412 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13414 esac
13417 sysv5* | sco3.2v5* | sco5v6*)
13418 # Note: We can NOT use -z defs as we might desire, because we do not
13419 # link with -lc, and that would cause any symbols used from libc to
13420 # always be unresolved, which means just about no library would
13421 # ever link correctly. If we're not using GNU ld we use -z text
13422 # though, which does catch some bad symbols but isn't as heavy-handed
13423 # as -z defs.
13424 no_undefined_flag_CXX='${wl}-z,text'
13425 allow_undefined_flag_CXX='${wl}-z,nodefs'
13426 archive_cmds_need_lc_CXX=no
13427 hardcode_shlibpath_var_CXX=no
13428 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13429 hardcode_libdir_separator_CXX=':'
13430 link_all_deplibs_CXX=yes
13431 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13432 runpath_var='LD_RUN_PATH'
13434 case $cc_basename in
13435 CC*)
13436 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13437 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13438 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13439 '"$old_archive_cmds_CXX"
13440 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13441 '"$reload_cmds_CXX"
13444 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13445 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13447 esac
13450 tandem*)
13451 case $cc_basename in
13452 NCC*)
13453 # NonStop-UX NCC 3.20
13454 # FIXME: insert proper C++ library support
13455 ld_shlibs_CXX=no
13458 # FIXME: insert proper C++ library support
13459 ld_shlibs_CXX=no
13461 esac
13464 vxworks*)
13465 # FIXME: insert proper C++ library support
13466 ld_shlibs_CXX=no
13470 # FIXME: insert proper C++ library support
13471 ld_shlibs_CXX=no
13473 esac
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13476 $as_echo "$ld_shlibs_CXX" >&6; }
13477 test "$ld_shlibs_CXX" = no && can_build_shared=no
13479 GCC_CXX="$GXX"
13480 LD_CXX="$LD"
13482 ## CAVEAT EMPTOR:
13483 ## There is no encapsulation within the following macros, do not change
13484 ## the running order or otherwise move them around unless you know exactly
13485 ## what you are doing...
13486 # Dependencies to place before and after the object being linked:
13487 predep_objects_CXX=
13488 postdep_objects_CXX=
13489 predeps_CXX=
13490 postdeps_CXX=
13491 compiler_lib_search_path_CXX=
13493 cat > conftest.$ac_ext <<_LT_EOF
13494 class Foo
13496 public:
13497 Foo (void) { a = 0; }
13498 private:
13499 int a;
13501 _LT_EOF
13503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13504 (eval $ac_compile) 2>&5
13505 ac_status=$?
13506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13507 test $ac_status = 0; }; then
13508 # Parse the compiler output and extract the necessary
13509 # objects, libraries and library flags.
13511 # Sentinel used to keep track of whether or not we are before
13512 # the conftest object file.
13513 pre_test_object_deps_done=no
13515 for p in `eval "$output_verbose_link_cmd"`; do
13516 case $p in
13518 -L* | -R* | -l*)
13519 # Some compilers place space between "-{L,R}" and the path.
13520 # Remove the space.
13521 if test $p = "-L" ||
13522 test $p = "-R"; then
13523 prev=$p
13524 continue
13525 else
13526 prev=
13529 if test "$pre_test_object_deps_done" = no; then
13530 case $p in
13531 -L* | -R*)
13532 # Internal compiler library paths should come after those
13533 # provided the user. The postdeps already come after the
13534 # user supplied libs so there is no need to process them.
13535 if test -z "$compiler_lib_search_path_CXX"; then
13536 compiler_lib_search_path_CXX="${prev}${p}"
13537 else
13538 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13541 # The "-l" case would never come before the object being
13542 # linked, so don't bother handling this case.
13543 esac
13544 else
13545 if test -z "$postdeps_CXX"; then
13546 postdeps_CXX="${prev}${p}"
13547 else
13548 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13553 *.$objext)
13554 # This assumes that the test object file only shows up
13555 # once in the compiler output.
13556 if test "$p" = "conftest.$objext"; then
13557 pre_test_object_deps_done=yes
13558 continue
13561 if test "$pre_test_object_deps_done" = no; then
13562 if test -z "$predep_objects_CXX"; then
13563 predep_objects_CXX="$p"
13564 else
13565 predep_objects_CXX="$predep_objects_CXX $p"
13567 else
13568 if test -z "$postdep_objects_CXX"; then
13569 postdep_objects_CXX="$p"
13570 else
13571 postdep_objects_CXX="$postdep_objects_CXX $p"
13576 *) ;; # Ignore the rest.
13578 esac
13579 done
13581 # Clean up.
13582 rm -f a.out a.exe
13583 else
13584 echo "libtool.m4: error: problem compiling CXX test program"
13587 $RM -f confest.$objext
13589 # PORTME: override above test on systems where it is broken
13590 case $host_os in
13591 interix[3-9]*)
13592 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13593 # hack all around it, let's just trust "g++" to DTRT.
13594 predep_objects_CXX=
13595 postdep_objects_CXX=
13596 postdeps_CXX=
13599 linux*)
13600 case `$CC -V 2>&1 | sed 5q` in
13601 *Sun\ C*)
13602 # Sun C++ 5.9
13604 # The more standards-conforming stlport4 library is
13605 # incompatible with the Cstd library. Avoid specifying
13606 # it if it's in CXXFLAGS. Ignore libCrun as
13607 # -library=stlport4 depends on it.
13608 case " $CXX $CXXFLAGS " in
13609 *" -library=stlport4 "*)
13610 solaris_use_stlport4=yes
13612 esac
13614 if test "$solaris_use_stlport4" != yes; then
13615 postdeps_CXX='-library=Cstd -library=Crun'
13618 esac
13621 solaris*)
13622 case $cc_basename in
13623 CC*)
13624 # The more standards-conforming stlport4 library is
13625 # incompatible with the Cstd library. Avoid specifying
13626 # it if it's in CXXFLAGS. Ignore libCrun as
13627 # -library=stlport4 depends on it.
13628 case " $CXX $CXXFLAGS " in
13629 *" -library=stlport4 "*)
13630 solaris_use_stlport4=yes
13632 esac
13634 # Adding this requires a known-good setup of shared libraries for
13635 # Sun compiler versions before 5.6, else PIC objects from an old
13636 # archive will be linked into the output, leading to subtle bugs.
13637 if test "$solaris_use_stlport4" != yes; then
13638 postdeps_CXX='-library=Cstd -library=Crun'
13641 esac
13643 esac
13646 case " $postdeps_CXX " in
13647 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13648 esac
13649 compiler_lib_search_dirs_CXX=
13650 if test -n "${compiler_lib_search_path_CXX}"; then
13651 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13684 lt_prog_compiler_wl_CXX=
13685 lt_prog_compiler_pic_CXX=
13686 lt_prog_compiler_static_CXX=
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13689 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13691 # C++ specific cases for pic, static, wl, etc.
13692 if test "$GXX" = yes; then
13693 lt_prog_compiler_wl_CXX='-Wl,'
13694 lt_prog_compiler_static_CXX='-static'
13696 case $host_os in
13697 aix*)
13698 # All AIX code is PIC.
13699 if test "$host_cpu" = ia64; then
13700 # AIX 5 now supports IA64 processor
13701 lt_prog_compiler_static_CXX='-Bstatic'
13703 lt_prog_compiler_pic_CXX='-fPIC'
13706 amigaos*)
13707 case $host_cpu in
13708 powerpc)
13709 # see comment about AmigaOS4 .so support
13710 lt_prog_compiler_pic_CXX='-fPIC'
13712 m68k)
13713 # FIXME: we need at least 68020 code to build shared libraries, but
13714 # adding the `-m68020' flag to GCC prevents building anything better,
13715 # like `-m68040'.
13716 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13718 esac
13721 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13722 # PIC is the default for these OSes.
13724 mingw* | cygwin* | os2* | pw32* | cegcc*)
13725 # This hack is so that the source file can tell whether it is being
13726 # built for inclusion in a dll (and should export symbols for example).
13727 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13728 # (--disable-auto-import) libraries
13729 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13731 darwin* | rhapsody*)
13732 # PIC is the default on this platform
13733 # Common symbols not allowed in MH_DYLIB files
13734 lt_prog_compiler_pic_CXX='-fno-common'
13736 *djgpp*)
13737 # DJGPP does not support shared libraries at all
13738 lt_prog_compiler_pic_CXX=
13740 haiku*)
13741 # PIC is the default for Haiku.
13742 # The "-static" flag exists, but is broken.
13743 lt_prog_compiler_static_CXX=
13745 interix[3-9]*)
13746 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13747 # Instead, we relocate shared libraries at runtime.
13749 sysv4*MP*)
13750 if test -d /usr/nec; then
13751 lt_prog_compiler_pic_CXX=-Kconform_pic
13754 hpux*)
13755 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13756 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13757 # sets the default TLS model and affects inlining.
13758 case $host_cpu in
13759 hppa*64*)
13762 lt_prog_compiler_pic_CXX='-fPIC'
13764 esac
13766 *qnx* | *nto*)
13767 # QNX uses GNU C++, but need to define -shared option too, otherwise
13768 # it will coredump.
13769 lt_prog_compiler_pic_CXX='-fPIC -shared'
13772 lt_prog_compiler_pic_CXX='-fPIC'
13774 esac
13775 else
13776 case $host_os in
13777 aix[4-9]*)
13778 # All AIX code is PIC.
13779 if test "$host_cpu" = ia64; then
13780 # AIX 5 now supports IA64 processor
13781 lt_prog_compiler_static_CXX='-Bstatic'
13782 else
13783 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13786 chorus*)
13787 case $cc_basename in
13788 cxch68*)
13789 # Green Hills C++ Compiler
13790 # _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"
13792 esac
13794 dgux*)
13795 case $cc_basename in
13796 ec++*)
13797 lt_prog_compiler_pic_CXX='-KPIC'
13799 ghcx*)
13800 # Green Hills C++ Compiler
13801 lt_prog_compiler_pic_CXX='-pic'
13805 esac
13807 freebsd* | dragonfly*)
13808 # FreeBSD uses GNU C++
13810 hpux9* | hpux10* | hpux11*)
13811 case $cc_basename in
13812 CC*)
13813 lt_prog_compiler_wl_CXX='-Wl,'
13814 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13815 if test "$host_cpu" != ia64; then
13816 lt_prog_compiler_pic_CXX='+Z'
13819 aCC*)
13820 lt_prog_compiler_wl_CXX='-Wl,'
13821 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13822 case $host_cpu in
13823 hppa*64*|ia64*)
13824 # +Z the default
13827 lt_prog_compiler_pic_CXX='+Z'
13829 esac
13833 esac
13835 interix*)
13836 # This is c89, which is MS Visual C++ (no shared libs)
13837 # Anyone wants to do a port?
13839 irix5* | irix6* | nonstopux*)
13840 case $cc_basename in
13841 CC*)
13842 lt_prog_compiler_wl_CXX='-Wl,'
13843 lt_prog_compiler_static_CXX='-non_shared'
13844 # CC pic flag -KPIC is the default.
13848 esac
13850 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13851 case $cc_basename in
13852 KCC*)
13853 # KAI C++ Compiler
13854 lt_prog_compiler_wl_CXX='--backend -Wl,'
13855 lt_prog_compiler_pic_CXX='-fPIC'
13857 ecpc* )
13858 # old Intel C++ for x86_64 which still supported -KPIC.
13859 lt_prog_compiler_wl_CXX='-Wl,'
13860 lt_prog_compiler_pic_CXX='-KPIC'
13861 lt_prog_compiler_static_CXX='-static'
13863 icpc* )
13864 # Intel C++, used to be incompatible with GCC.
13865 # ICC 10 doesn't accept -KPIC any more.
13866 lt_prog_compiler_wl_CXX='-Wl,'
13867 lt_prog_compiler_pic_CXX='-fPIC'
13868 lt_prog_compiler_static_CXX='-static'
13870 pgCC* | pgcpp*)
13871 # Portland Group C++ compiler
13872 lt_prog_compiler_wl_CXX='-Wl,'
13873 lt_prog_compiler_pic_CXX='-fpic'
13874 lt_prog_compiler_static_CXX='-Bstatic'
13876 cxx*)
13877 # Compaq C++
13878 # Make sure the PIC flag is empty. It appears that all Alpha
13879 # Linux and Compaq Tru64 Unix objects are PIC.
13880 lt_prog_compiler_pic_CXX=
13881 lt_prog_compiler_static_CXX='-non_shared'
13883 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13884 # IBM XL 8.0, 9.0 on PPC and BlueGene
13885 lt_prog_compiler_wl_CXX='-Wl,'
13886 lt_prog_compiler_pic_CXX='-qpic'
13887 lt_prog_compiler_static_CXX='-qstaticlink'
13890 case `$CC -V 2>&1 | sed 5q` in
13891 *Sun\ C*)
13892 # Sun C++ 5.9
13893 lt_prog_compiler_pic_CXX='-KPIC'
13894 lt_prog_compiler_static_CXX='-Bstatic'
13895 lt_prog_compiler_wl_CXX='-Qoption ld '
13897 esac
13899 esac
13901 lynxos*)
13903 m88k*)
13905 mvs*)
13906 case $cc_basename in
13907 cxx*)
13908 lt_prog_compiler_pic_CXX='-W c,exportall'
13912 esac
13914 netbsd*)
13916 *qnx* | *nto*)
13917 # QNX uses GNU C++, but need to define -shared option too, otherwise
13918 # it will coredump.
13919 lt_prog_compiler_pic_CXX='-fPIC -shared'
13921 osf3* | osf4* | osf5*)
13922 case $cc_basename in
13923 KCC*)
13924 lt_prog_compiler_wl_CXX='--backend -Wl,'
13926 RCC*)
13927 # Rational C++ 2.4.1
13928 lt_prog_compiler_pic_CXX='-pic'
13930 cxx*)
13931 # Digital/Compaq C++
13932 lt_prog_compiler_wl_CXX='-Wl,'
13933 # Make sure the PIC flag is empty. It appears that all Alpha
13934 # Linux and Compaq Tru64 Unix objects are PIC.
13935 lt_prog_compiler_pic_CXX=
13936 lt_prog_compiler_static_CXX='-non_shared'
13940 esac
13942 psos*)
13944 solaris*)
13945 case $cc_basename in
13946 CC*)
13947 # Sun C++ 4.2, 5.x and Centerline C++
13948 lt_prog_compiler_pic_CXX='-KPIC'
13949 lt_prog_compiler_static_CXX='-Bstatic'
13950 lt_prog_compiler_wl_CXX='-Qoption ld '
13952 gcx*)
13953 # Green Hills C++ Compiler
13954 lt_prog_compiler_pic_CXX='-PIC'
13958 esac
13960 sunos4*)
13961 case $cc_basename in
13962 CC*)
13963 # Sun C++ 4.x
13964 lt_prog_compiler_pic_CXX='-pic'
13965 lt_prog_compiler_static_CXX='-Bstatic'
13967 lcc*)
13968 # Lucid
13969 lt_prog_compiler_pic_CXX='-pic'
13973 esac
13975 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13976 case $cc_basename in
13977 CC*)
13978 lt_prog_compiler_wl_CXX='-Wl,'
13979 lt_prog_compiler_pic_CXX='-KPIC'
13980 lt_prog_compiler_static_CXX='-Bstatic'
13982 esac
13984 tandem*)
13985 case $cc_basename in
13986 NCC*)
13987 # NonStop-UX NCC 3.20
13988 lt_prog_compiler_pic_CXX='-KPIC'
13992 esac
13994 vxworks*)
13997 lt_prog_compiler_can_build_shared_CXX=no
13999 esac
14002 case $host_os in
14003 # For platforms which do not support PIC, -DPIC is meaningless:
14004 *djgpp*)
14005 lt_prog_compiler_pic_CXX=
14008 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14010 esac
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14012 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14017 # Check to make sure the PIC flag actually works.
14019 if test -n "$lt_prog_compiler_pic_CXX"; then
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14021 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14022 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14023 $as_echo_n "(cached) " >&6
14024 else
14025 lt_cv_prog_compiler_pic_works_CXX=no
14026 ac_outfile=conftest.$ac_objext
14027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14028 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14029 # Insert the option either (1) after the last *FLAGS variable, or
14030 # (2) before a word containing "conftest.", or (3) at the end.
14031 # Note that $ac_compile itself does not contain backslashes and begins
14032 # with a dollar sign (not a hyphen), so the echo should work correctly.
14033 # The option is referenced via a variable to avoid confusing sed.
14034 lt_compile=`echo "$ac_compile" | $SED \
14035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14037 -e 's:$: $lt_compiler_flag:'`
14038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14039 (eval "$lt_compile" 2>conftest.err)
14040 ac_status=$?
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 if (exit $ac_status) && test -s "$ac_outfile"; then
14044 # The compiler can only warn and ignore the option if not recognized
14045 # So say no if there are warnings other than the usual output.
14046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14047 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14048 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14049 lt_cv_prog_compiler_pic_works_CXX=yes
14052 $RM conftest*
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14056 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14058 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14059 case $lt_prog_compiler_pic_CXX in
14060 "" | " "*) ;;
14061 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14062 esac
14063 else
14064 lt_prog_compiler_pic_CXX=
14065 lt_prog_compiler_can_build_shared_CXX=no
14073 # Check to make sure the static flag actually works.
14075 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14077 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14078 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14079 $as_echo_n "(cached) " >&6
14080 else
14081 lt_cv_prog_compiler_static_works_CXX=no
14082 save_LDFLAGS="$LDFLAGS"
14083 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14084 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14085 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14086 # The linker can only warn and ignore the option if not recognized
14087 # So say no if there are warnings
14088 if test -s conftest.err; then
14089 # Append any errors to the config.log.
14090 cat conftest.err 1>&5
14091 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14092 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14093 if diff conftest.exp conftest.er2 >/dev/null; then
14094 lt_cv_prog_compiler_static_works_CXX=yes
14096 else
14097 lt_cv_prog_compiler_static_works_CXX=yes
14100 $RM -r conftest*
14101 LDFLAGS="$save_LDFLAGS"
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14105 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14107 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14109 else
14110 lt_prog_compiler_static_CXX=
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14117 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14118 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14119 $as_echo_n "(cached) " >&6
14120 else
14121 lt_cv_prog_compiler_c_o_CXX=no
14122 $RM -r conftest 2>/dev/null
14123 mkdir conftest
14124 cd conftest
14125 mkdir out
14126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14128 lt_compiler_flag="-o out/conftest2.$ac_objext"
14129 # Insert the option either (1) after the last *FLAGS variable, or
14130 # (2) before a word containing "conftest.", or (3) at the end.
14131 # Note that $ac_compile itself does not contain backslashes and begins
14132 # with a dollar sign (not a hyphen), so the echo should work correctly.
14133 lt_compile=`echo "$ac_compile" | $SED \
14134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14136 -e 's:$: $lt_compiler_flag:'`
14137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14138 (eval "$lt_compile" 2>out/conftest.err)
14139 ac_status=$?
14140 cat out/conftest.err >&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14143 then
14144 # The compiler can only warn and ignore the option if not recognized
14145 # So say no if there are warnings
14146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14147 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14148 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14149 lt_cv_prog_compiler_c_o_CXX=yes
14152 chmod u+w . 2>&5
14153 $RM conftest*
14154 # SGI C++ compiler will create directory out/ii_files/ for
14155 # template instantiation
14156 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14157 $RM out/* && rmdir out
14158 cd ..
14159 $RM -r conftest
14160 $RM conftest*
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14164 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14169 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14170 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14171 $as_echo_n "(cached) " >&6
14172 else
14173 lt_cv_prog_compiler_c_o_CXX=no
14174 $RM -r conftest 2>/dev/null
14175 mkdir conftest
14176 cd conftest
14177 mkdir out
14178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14180 lt_compiler_flag="-o out/conftest2.$ac_objext"
14181 # Insert the option either (1) after the last *FLAGS variable, or
14182 # (2) before a word containing "conftest.", or (3) at the end.
14183 # Note that $ac_compile itself does not contain backslashes and begins
14184 # with a dollar sign (not a hyphen), so the echo should work correctly.
14185 lt_compile=`echo "$ac_compile" | $SED \
14186 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14187 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14188 -e 's:$: $lt_compiler_flag:'`
14189 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14190 (eval "$lt_compile" 2>out/conftest.err)
14191 ac_status=$?
14192 cat out/conftest.err >&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14195 then
14196 # The compiler can only warn and ignore the option if not recognized
14197 # So say no if there are warnings
14198 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14199 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14200 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14201 lt_cv_prog_compiler_c_o_CXX=yes
14204 chmod u+w . 2>&5
14205 $RM conftest*
14206 # SGI C++ compiler will create directory out/ii_files/ for
14207 # template instantiation
14208 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14209 $RM out/* && rmdir out
14210 cd ..
14211 $RM -r conftest
14212 $RM conftest*
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14216 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14221 hard_links="nottested"
14222 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14223 # do not overwrite the value of need_locks provided by the user
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14225 $as_echo_n "checking if we can lock with hard links... " >&6; }
14226 hard_links=yes
14227 $RM conftest*
14228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14229 touch conftest.a
14230 ln conftest.a conftest.b 2>&5 || hard_links=no
14231 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14233 $as_echo "$hard_links" >&6; }
14234 if test "$hard_links" = no; then
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14236 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14237 need_locks=warn
14239 else
14240 need_locks=no
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14246 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14248 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14249 case $host_os in
14250 aix[4-9]*)
14251 # If we're using GNU nm, then we don't want the "-C" option.
14252 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14253 # Also, AIX nm treats weak defined symbols like other global defined
14254 # symbols, whereas GNU nm marks them as "W".
14255 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14256 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'
14257 else
14258 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14261 pw32*)
14262 export_symbols_cmds_CXX="$ltdll_cmds"
14264 cygwin* | mingw* | cegcc*)
14265 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'
14268 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14270 esac
14271 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14274 $as_echo "$ld_shlibs_CXX" >&6; }
14275 test "$ld_shlibs_CXX" = no && can_build_shared=no
14277 with_gnu_ld_CXX=$with_gnu_ld
14285 # Do we need to explicitly link libc?
14287 case "x$archive_cmds_need_lc_CXX" in
14288 x|xyes)
14289 # Assume -lc should be added
14290 archive_cmds_need_lc_CXX=yes
14292 if test "$enable_shared" = yes && test "$GCC" = yes; then
14293 case $archive_cmds_CXX in
14294 *'~'*)
14295 # FIXME: we may have to deal with multi-command sequences.
14297 '$CC '*)
14298 # Test whether the compiler implicitly links with -lc since on some
14299 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14300 # to ld, don't add -lc before -lgcc.
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14302 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14303 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14304 $as_echo_n "(cached) " >&6
14305 else
14306 $RM conftest*
14307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14309 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14310 (eval $ac_compile) 2>&5
14311 ac_status=$?
14312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14313 test $ac_status = 0; } 2>conftest.err; then
14314 soname=conftest
14315 lib=conftest
14316 libobjs=conftest.$ac_objext
14317 deplibs=
14318 wl=$lt_prog_compiler_wl_CXX
14319 pic_flag=$lt_prog_compiler_pic_CXX
14320 compiler_flags=-v
14321 linker_flags=-v
14322 verstring=
14323 output_objdir=.
14324 libname=conftest
14325 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14326 allow_undefined_flag_CXX=
14327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14328 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14329 ac_status=$?
14330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14331 test $ac_status = 0; }
14332 then
14333 lt_cv_archive_cmds_need_lc_CXX=no
14334 else
14335 lt_cv_archive_cmds_need_lc_CXX=yes
14337 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14338 else
14339 cat conftest.err 1>&5
14341 $RM conftest*
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14345 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14346 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14348 esac
14351 esac
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14417 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14419 library_names_spec=
14420 libname_spec='lib$name'
14421 soname_spec=
14422 shrext_cmds=".so"
14423 postinstall_cmds=
14424 postuninstall_cmds=
14425 finish_cmds=
14426 finish_eval=
14427 shlibpath_var=
14428 shlibpath_overrides_runpath=unknown
14429 version_type=none
14430 dynamic_linker="$host_os ld.so"
14431 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14432 need_lib_prefix=unknown
14433 hardcode_into_libs=no
14435 # when you set need_version to no, make sure it does not cause -set_version
14436 # flags to be left without arguments
14437 need_version=unknown
14439 case $host_os in
14440 aix3*)
14441 version_type=linux
14442 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14443 shlibpath_var=LIBPATH
14445 # AIX 3 has no versioning support, so we append a major version to the name.
14446 soname_spec='${libname}${release}${shared_ext}$major'
14449 aix[4-9]*)
14450 version_type=linux
14451 need_lib_prefix=no
14452 need_version=no
14453 hardcode_into_libs=yes
14454 if test "$host_cpu" = ia64; then
14455 # AIX 5 supports IA64
14456 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14457 shlibpath_var=LD_LIBRARY_PATH
14458 else
14459 # With GCC up to 2.95.x, collect2 would create an import file
14460 # for dependence libraries. The import file would start with
14461 # the line `#! .'. This would cause the generated library to
14462 # depend on `.', always an invalid library. This was fixed in
14463 # development snapshots of GCC prior to 3.0.
14464 case $host_os in
14465 aix4 | aix4.[01] | aix4.[01].*)
14466 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14467 echo ' yes '
14468 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14470 else
14471 can_build_shared=no
14474 esac
14475 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14476 # soname into executable. Probably we can add versioning support to
14477 # collect2, so additional links can be useful in future.
14478 if test "$aix_use_runtimelinking" = yes; then
14479 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14480 # instead of lib<name>.a to let people know that these are not
14481 # typical AIX shared libraries.
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14483 else
14484 # We preserve .a as extension for shared libraries through AIX4.2
14485 # and later when we are not doing run time linking.
14486 library_names_spec='${libname}${release}.a $libname.a'
14487 soname_spec='${libname}${release}${shared_ext}$major'
14489 shlibpath_var=LIBPATH
14493 amigaos*)
14494 case $host_cpu in
14495 powerpc)
14496 # Since July 2007 AmigaOS4 officially supports .so libraries.
14497 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14500 m68k)
14501 library_names_spec='$libname.ixlibrary $libname.a'
14502 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14503 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'
14505 esac
14508 beos*)
14509 library_names_spec='${libname}${shared_ext}'
14510 dynamic_linker="$host_os ld.so"
14511 shlibpath_var=LIBRARY_PATH
14514 bsdi[45]*)
14515 version_type=linux
14516 need_version=no
14517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14518 soname_spec='${libname}${release}${shared_ext}$major'
14519 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14520 shlibpath_var=LD_LIBRARY_PATH
14521 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14522 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14523 # the default ld.so.conf also contains /usr/contrib/lib and
14524 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14525 # libtool to hard-code these into programs
14528 cygwin* | mingw* | pw32* | cegcc*)
14529 version_type=windows
14530 shrext_cmds=".dll"
14531 need_version=no
14532 need_lib_prefix=no
14534 case $GCC,$host_os in
14535 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14536 library_names_spec='$libname.dll.a'
14537 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14538 postinstall_cmds='base_file=`basename \${file}`~
14539 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14540 dldir=$destdir/`dirname \$dlpath`~
14541 test -d \$dldir || mkdir -p \$dldir~
14542 $install_prog $dir/$dlname \$dldir/$dlname~
14543 chmod a+x \$dldir/$dlname~
14544 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14545 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14547 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14548 dlpath=$dir/\$dldll~
14549 $RM \$dlpath'
14550 shlibpath_overrides_runpath=yes
14552 case $host_os in
14553 cygwin*)
14554 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14555 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14558 mingw* | cegcc*)
14559 # MinGW DLLs use traditional 'lib' prefix
14560 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14562 pw32*)
14563 # pw32 DLLs use 'pw' prefix rather than 'lib'
14564 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14566 esac
14570 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14572 esac
14573 dynamic_linker='Win32 ld.exe'
14574 # FIXME: first we should search . and the directory the executable is in
14575 shlibpath_var=PATH
14578 darwin* | rhapsody*)
14579 dynamic_linker="$host_os dyld"
14580 version_type=darwin
14581 need_lib_prefix=no
14582 need_version=no
14583 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14584 soname_spec='${libname}${release}${major}$shared_ext'
14585 shlibpath_overrides_runpath=yes
14586 shlibpath_var=DYLD_LIBRARY_PATH
14587 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14589 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14592 dgux*)
14593 version_type=linux
14594 need_lib_prefix=no
14595 need_version=no
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 shlibpath_var=LD_LIBRARY_PATH
14601 freebsd* | dragonfly*)
14602 # DragonFly does not have aout. When/if they implement a new
14603 # versioning mechanism, adjust this.
14604 if test -x /usr/bin/objformat; then
14605 objformat=`/usr/bin/objformat`
14606 else
14607 case $host_os in
14608 freebsd[23].*) objformat=aout ;;
14609 *) objformat=elf ;;
14610 esac
14612 version_type=freebsd-$objformat
14613 case $version_type in
14614 freebsd-elf*)
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14616 need_version=no
14617 need_lib_prefix=no
14619 freebsd-*)
14620 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14621 need_version=yes
14623 esac
14624 shlibpath_var=LD_LIBRARY_PATH
14625 case $host_os in
14626 freebsd2.*)
14627 shlibpath_overrides_runpath=yes
14629 freebsd3.[01]* | freebsdelf3.[01]*)
14630 shlibpath_overrides_runpath=yes
14631 hardcode_into_libs=yes
14633 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14634 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14635 shlibpath_overrides_runpath=no
14636 hardcode_into_libs=yes
14638 *) # from 4.6 on, and DragonFly
14639 shlibpath_overrides_runpath=yes
14640 hardcode_into_libs=yes
14642 esac
14645 gnu*)
14646 version_type=linux
14647 need_lib_prefix=no
14648 need_version=no
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14650 soname_spec='${libname}${release}${shared_ext}$major'
14651 shlibpath_var=LD_LIBRARY_PATH
14652 hardcode_into_libs=yes
14655 haiku*)
14656 version_type=linux
14657 need_lib_prefix=no
14658 need_version=no
14659 dynamic_linker="$host_os runtime_loader"
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14661 soname_spec='${libname}${release}${shared_ext}$major'
14662 shlibpath_var=LIBRARY_PATH
14663 shlibpath_overrides_runpath=yes
14664 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14665 hardcode_into_libs=yes
14668 hpux9* | hpux10* | hpux11*)
14669 # Give a soname corresponding to the major version so that dld.sl refuses to
14670 # link against other versions.
14671 version_type=sunos
14672 need_lib_prefix=no
14673 need_version=no
14674 case $host_cpu in
14675 ia64*)
14676 shrext_cmds='.so'
14677 hardcode_into_libs=yes
14678 dynamic_linker="$host_os dld.so"
14679 shlibpath_var=LD_LIBRARY_PATH
14680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682 soname_spec='${libname}${release}${shared_ext}$major'
14683 if test "X$HPUX_IA64_MODE" = X32; then
14684 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14685 else
14686 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14690 hppa*64*)
14691 shrext_cmds='.sl'
14692 hardcode_into_libs=yes
14693 dynamic_linker="$host_os dld.sl"
14694 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14697 soname_spec='${libname}${release}${shared_ext}$major'
14698 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14702 shrext_cmds='.sl'
14703 dynamic_linker="$host_os dld.sl"
14704 shlibpath_var=SHLIB_PATH
14705 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707 soname_spec='${libname}${release}${shared_ext}$major'
14709 esac
14710 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14711 postinstall_cmds='chmod 555 $lib'
14712 # or fails outright, so override atomically:
14713 install_override_mode=555
14716 interix[3-9]*)
14717 version_type=linux
14718 need_lib_prefix=no
14719 need_version=no
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14721 soname_spec='${libname}${release}${shared_ext}$major'
14722 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14723 shlibpath_var=LD_LIBRARY_PATH
14724 shlibpath_overrides_runpath=no
14725 hardcode_into_libs=yes
14728 irix5* | irix6* | nonstopux*)
14729 case $host_os in
14730 nonstopux*) version_type=nonstopux ;;
14732 if test "$lt_cv_prog_gnu_ld" = yes; then
14733 version_type=linux
14734 else
14735 version_type=irix
14736 fi ;;
14737 esac
14738 need_lib_prefix=no
14739 need_version=no
14740 soname_spec='${libname}${release}${shared_ext}$major'
14741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14742 case $host_os in
14743 irix5* | nonstopux*)
14744 libsuff= shlibsuff=
14747 case $LD in # libtool.m4 will add one of these switches to LD
14748 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14749 libsuff= shlibsuff= libmagic=32-bit;;
14750 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14751 libsuff=32 shlibsuff=N32 libmagic=N32;;
14752 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14753 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14754 *) libsuff= shlibsuff= libmagic=never-match;;
14755 esac
14757 esac
14758 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14759 shlibpath_overrides_runpath=no
14760 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14761 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14762 hardcode_into_libs=yes
14765 # No shared lib support for Linux oldld, aout, or coff.
14766 linux*oldld* | linux*aout* | linux*coff*)
14767 dynamic_linker=no
14770 # This must be Linux ELF.
14771 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14772 version_type=linux
14773 need_lib_prefix=no
14774 need_version=no
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776 soname_spec='${libname}${release}${shared_ext}$major'
14777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14778 shlibpath_var=LD_LIBRARY_PATH
14779 shlibpath_overrides_runpath=no
14781 # Some binutils ld are patched to set DT_RUNPATH
14782 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14783 $as_echo_n "(cached) " >&6
14784 else
14785 lt_cv_shlibpath_overrides_runpath=no
14786 save_LDFLAGS=$LDFLAGS
14787 save_libdir=$libdir
14788 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14789 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14794 main ()
14798 return 0;
14800 _ACEOF
14801 if ac_fn_cxx_try_link "$LINENO"; then :
14802 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14803 lt_cv_shlibpath_overrides_runpath=yes
14806 rm -f core conftest.err conftest.$ac_objext \
14807 conftest$ac_exeext conftest.$ac_ext
14808 LDFLAGS=$save_LDFLAGS
14809 libdir=$save_libdir
14813 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14815 # This implies no fast_install, which is unacceptable.
14816 # Some rework will be needed to allow for fast_install
14817 # before this can be enabled.
14818 hardcode_into_libs=yes
14820 # Append ld.so.conf contents to the search path
14821 if test -f /etc/ld.so.conf; then
14822 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' ' '`
14823 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14826 # We used to test for /lib/ld.so.1 and disable shared libraries on
14827 # powerpc, because MkLinux only supported shared libraries with the
14828 # GNU dynamic linker. Since this was broken with cross compilers,
14829 # most powerpc-linux boxes support dynamic linking these days and
14830 # people can always --disable-shared, the test was removed, and we
14831 # assume the GNU/Linux dynamic linker is in use.
14832 dynamic_linker='GNU/Linux ld.so'
14835 netbsd*)
14836 version_type=sunos
14837 need_lib_prefix=no
14838 need_version=no
14839 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14841 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14842 dynamic_linker='NetBSD (a.out) ld.so'
14843 else
14844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14845 soname_spec='${libname}${release}${shared_ext}$major'
14846 dynamic_linker='NetBSD ld.elf_so'
14848 shlibpath_var=LD_LIBRARY_PATH
14849 shlibpath_overrides_runpath=yes
14850 hardcode_into_libs=yes
14853 newsos6)
14854 version_type=linux
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856 shlibpath_var=LD_LIBRARY_PATH
14857 shlibpath_overrides_runpath=yes
14860 *nto* | *qnx*)
14861 version_type=qnx
14862 need_lib_prefix=no
14863 need_version=no
14864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865 soname_spec='${libname}${release}${shared_ext}$major'
14866 shlibpath_var=LD_LIBRARY_PATH
14867 shlibpath_overrides_runpath=no
14868 hardcode_into_libs=yes
14869 dynamic_linker='ldqnx.so'
14872 openbsd*)
14873 version_type=sunos
14874 sys_lib_dlsearch_path_spec="/usr/lib"
14875 need_lib_prefix=no
14876 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14877 case $host_os in
14878 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14879 *) need_version=no ;;
14880 esac
14881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14883 shlibpath_var=LD_LIBRARY_PATH
14884 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14885 case $host_os in
14886 openbsd2.[89] | openbsd2.[89].*)
14887 shlibpath_overrides_runpath=no
14890 shlibpath_overrides_runpath=yes
14892 esac
14893 else
14894 shlibpath_overrides_runpath=yes
14898 os2*)
14899 libname_spec='$name'
14900 shrext_cmds=".dll"
14901 need_lib_prefix=no
14902 library_names_spec='$libname${shared_ext} $libname.a'
14903 dynamic_linker='OS/2 ld.exe'
14904 shlibpath_var=LIBPATH
14907 osf3* | osf4* | osf5*)
14908 version_type=osf
14909 need_lib_prefix=no
14910 need_version=no
14911 soname_spec='${libname}${release}${shared_ext}$major'
14912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913 shlibpath_var=LD_LIBRARY_PATH
14914 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14915 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14918 rdos*)
14919 dynamic_linker=no
14922 solaris*)
14923 version_type=linux
14924 need_lib_prefix=no
14925 need_version=no
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 soname_spec='${libname}${release}${shared_ext}$major'
14928 shlibpath_var=LD_LIBRARY_PATH
14929 shlibpath_overrides_runpath=yes
14930 hardcode_into_libs=yes
14931 # ldd complains unless libraries are executable
14932 postinstall_cmds='chmod +x $lib'
14935 sunos4*)
14936 version_type=sunos
14937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14938 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14939 shlibpath_var=LD_LIBRARY_PATH
14940 shlibpath_overrides_runpath=yes
14941 if test "$with_gnu_ld" = yes; then
14942 need_lib_prefix=no
14944 need_version=yes
14947 sysv4 | sysv4.3*)
14948 version_type=linux
14949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950 soname_spec='${libname}${release}${shared_ext}$major'
14951 shlibpath_var=LD_LIBRARY_PATH
14952 case $host_vendor in
14953 sni)
14954 shlibpath_overrides_runpath=no
14955 need_lib_prefix=no
14956 runpath_var=LD_RUN_PATH
14958 siemens)
14959 need_lib_prefix=no
14961 motorola)
14962 need_lib_prefix=no
14963 need_version=no
14964 shlibpath_overrides_runpath=no
14965 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14967 esac
14970 sysv4*MP*)
14971 if test -d /usr/nec ;then
14972 version_type=linux
14973 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14974 soname_spec='$libname${shared_ext}.$major'
14975 shlibpath_var=LD_LIBRARY_PATH
14979 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14980 version_type=freebsd-elf
14981 need_lib_prefix=no
14982 need_version=no
14983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14984 soname_spec='${libname}${release}${shared_ext}$major'
14985 shlibpath_var=LD_LIBRARY_PATH
14986 shlibpath_overrides_runpath=yes
14987 hardcode_into_libs=yes
14988 if test "$with_gnu_ld" = yes; then
14989 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14990 else
14991 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14992 case $host_os in
14993 sco3.2v5*)
14994 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14996 esac
14998 sys_lib_dlsearch_path_spec='/usr/lib'
15001 tpf*)
15002 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15003 version_type=linux
15004 need_lib_prefix=no
15005 need_version=no
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007 shlibpath_var=LD_LIBRARY_PATH
15008 shlibpath_overrides_runpath=no
15009 hardcode_into_libs=yes
15012 uts4*)
15013 version_type=linux
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015 soname_spec='${libname}${release}${shared_ext}$major'
15016 shlibpath_var=LD_LIBRARY_PATH
15020 dynamic_linker=no
15022 esac
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15024 $as_echo "$dynamic_linker" >&6; }
15025 test "$dynamic_linker" = no && can_build_shared=no
15027 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15028 if test "$GCC" = yes; then
15029 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15032 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15033 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15035 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15036 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15077 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15078 hardcode_action_CXX=
15079 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15080 test -n "$runpath_var_CXX" ||
15081 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15083 # We can hardcode non-existent directories.
15084 if test "$hardcode_direct_CXX" != no &&
15085 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15086 # have to relink, otherwise we might link with an installed library
15087 # when we should be linking with a yet-to-be-installed one
15088 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15089 test "$hardcode_minus_L_CXX" != no; then
15090 # Linking always hardcodes the temporary library directory.
15091 hardcode_action_CXX=relink
15092 else
15093 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15094 hardcode_action_CXX=immediate
15096 else
15097 # We cannot hardcode anything, or else we can only hardcode existing
15098 # directories.
15099 hardcode_action_CXX=unsupported
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15102 $as_echo "$hardcode_action_CXX" >&6; }
15104 if test "$hardcode_action_CXX" = relink ||
15105 test "$inherit_rpath_CXX" = yes; then
15106 # Fast installation is not supported
15107 enable_fast_install=no
15108 elif test "$shlibpath_overrides_runpath" = yes ||
15109 test "$enable_shared" = no; then
15110 # Fast installation is not necessary
15111 enable_fast_install=needless
15120 fi # test -n "$compiler"
15122 CC=$lt_save_CC
15123 LDCXX=$LD
15124 LD=$lt_save_LD
15125 GCC=$lt_save_GCC
15126 with_gnu_ld=$lt_save_with_gnu_ld
15127 lt_cv_path_LDCXX=$lt_cv_path_LD
15128 lt_cv_path_LD=$lt_save_path_LD
15129 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15130 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15131 fi # test "$_lt_caught_CXX_error" != yes
15133 ac_ext=c
15134 ac_cpp='$CPP $CPPFLAGS'
15135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15151 ac_config_commands="$ac_config_commands libtool"
15156 # Only expand once:
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
15164 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
15165 # Check whether --enable-maintainer-mode was given.
15166 if test "${enable_maintainer_mode+set}" = set; then :
15167 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
15168 else
15169 USE_MAINTAINER_MODE=no
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
15173 $as_echo "$USE_MAINTAINER_MODE" >&6; }
15174 if test $USE_MAINTAINER_MODE = yes; then
15175 MAINTAINER_MODE_TRUE=
15176 MAINTAINER_MODE_FALSE='#'
15177 else
15178 MAINTAINER_MODE_TRUE='#'
15179 MAINTAINER_MODE_FALSE=
15182 MAINT=$MAINTAINER_MODE_TRUE
15186 # For libtool versioning info, format is CURRENT:REVISION:AGE
15187 libtool_VERSION=1:0:0
15190 # Check header files.
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15192 $as_echo_n "checking for ANSI C header files... " >&6; }
15193 if test "${ac_cv_header_stdc+set}" = set; then :
15194 $as_echo_n "(cached) " >&6
15195 else
15196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197 /* end confdefs.h. */
15198 #include <stdlib.h>
15199 #include <stdarg.h>
15200 #include <string.h>
15201 #include <float.h>
15204 main ()
15208 return 0;
15210 _ACEOF
15211 if ac_fn_c_try_compile "$LINENO"; then :
15212 ac_cv_header_stdc=yes
15213 else
15214 ac_cv_header_stdc=no
15216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15218 if test $ac_cv_header_stdc = yes; then
15219 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15222 #include <string.h>
15224 _ACEOF
15225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15226 $EGREP "memchr" >/dev/null 2>&1; then :
15228 else
15229 ac_cv_header_stdc=no
15231 rm -f conftest*
15235 if test $ac_cv_header_stdc = yes; then
15236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15238 /* end confdefs.h. */
15239 #include <stdlib.h>
15241 _ACEOF
15242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15243 $EGREP "free" >/dev/null 2>&1; then :
15245 else
15246 ac_cv_header_stdc=no
15248 rm -f conftest*
15252 if test $ac_cv_header_stdc = yes; then
15253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15254 if test "$cross_compiling" = yes; then :
15256 else
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15259 #include <ctype.h>
15260 #include <stdlib.h>
15261 #if ((' ' & 0x0FF) == 0x020)
15262 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15263 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15264 #else
15265 # define ISLOWER(c) \
15266 (('a' <= (c) && (c) <= 'i') \
15267 || ('j' <= (c) && (c) <= 'r') \
15268 || ('s' <= (c) && (c) <= 'z'))
15269 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15270 #endif
15272 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15274 main ()
15276 int i;
15277 for (i = 0; i < 256; i++)
15278 if (XOR (islower (i), ISLOWER (i))
15279 || toupper (i) != TOUPPER (i))
15280 return 2;
15281 return 0;
15283 _ACEOF
15284 if ac_fn_c_try_run "$LINENO"; then :
15286 else
15287 ac_cv_header_stdc=no
15289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15290 conftest.$ac_objext conftest.beam conftest.$ac_ext
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15296 $as_echo "$ac_cv_header_stdc" >&6; }
15297 if test $ac_cv_header_stdc = yes; then
15299 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15304 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15305 if test "${ac_cv_header_time+set}" = set; then :
15306 $as_echo_n "(cached) " >&6
15307 else
15308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15309 /* end confdefs.h. */
15310 #include <sys/types.h>
15311 #include <sys/time.h>
15312 #include <time.h>
15315 main ()
15317 if ((struct tm *) 0)
15318 return 0;
15320 return 0;
15322 _ACEOF
15323 if ac_fn_c_try_compile "$LINENO"; then :
15324 ac_cv_header_time=yes
15325 else
15326 ac_cv_header_time=no
15328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15331 $as_echo "$ac_cv_header_time" >&6; }
15332 if test $ac_cv_header_time = yes; then
15334 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
15339 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
15340 if test "${gcc_cv_header_string+set}" = set; then :
15341 $as_echo_n "(cached) " >&6
15342 else
15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h. */
15345 #include <string.h>
15346 #include <strings.h>
15348 main ()
15352 return 0;
15354 _ACEOF
15355 if ac_fn_c_try_compile "$LINENO"; then :
15356 gcc_cv_header_string=yes
15357 else
15358 gcc_cv_header_string=no
15360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
15363 $as_echo "$gcc_cv_header_string" >&6; }
15364 if test $gcc_cv_header_string = yes; then
15366 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
15370 for ac_header in unistd.h semaphore.h sys/time.h sys/auxv.h malloc.h
15371 do :
15372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15373 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15374 eval as_val=\$$as_ac_Header
15375 if test "x$as_val" = x""yes; then :
15376 cat >>confdefs.h <<_ACEOF
15377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15378 _ACEOF
15382 done
15387 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15389 acx_cv_header_stdint=stddef.h
15390 acx_cv_header_stdint_kind="(already complete)"
15391 for i in stdint.h $inttype_headers; do
15392 unset ac_cv_type_uintptr_t
15393 unset ac_cv_type_uintmax_t
15394 unset ac_cv_type_int_least32_t
15395 unset ac_cv_type_int_fast32_t
15396 unset ac_cv_type_uint64_t
15397 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15398 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15399 #include <$i>
15401 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15402 acx_cv_header_stdint=$i
15403 else
15404 continue
15407 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15408 #include <$i>
15410 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15412 else
15413 acx_cv_header_stdint_kind="(mostly complete)"
15416 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15417 #include <$i>
15419 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15421 else
15422 acx_cv_header_stdint_kind="(mostly complete)"
15425 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15426 #include <$i>
15428 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15430 else
15431 acx_cv_header_stdint_kind="(mostly complete)"
15434 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15435 #include <$i>
15437 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15439 else
15440 acx_cv_header_stdint_kind="(lacks uint64_t)"
15443 break
15444 done
15445 if test "$acx_cv_header_stdint" = stddef.h; then
15446 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15447 for i in stdint.h $inttype_headers; do
15448 unset ac_cv_type_uintptr_t
15449 unset ac_cv_type_uint32_t
15450 unset ac_cv_type_uint64_t
15451 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15452 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15453 #include <$i>
15455 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15456 acx_cv_header_stdint=$i
15457 else
15458 continue
15461 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15462 #include <$i>
15464 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15468 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15469 #include <$i>
15471 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15475 break
15476 done
15478 if test "$acx_cv_header_stdint" = stddef.h; then
15479 acx_cv_header_stdint_kind="(u_intXX_t style)"
15480 for i in sys/types.h $inttype_headers; do
15481 unset ac_cv_type_u_int32_t
15482 unset ac_cv_type_u_int64_t
15483 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15484 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15485 #include <$i>
15487 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15488 acx_cv_header_stdint=$i
15489 else
15490 continue
15493 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15494 #include <$i>
15496 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15500 break
15501 done
15503 if test "$acx_cv_header_stdint" = stddef.h; then
15504 acx_cv_header_stdint_kind="(using manual detection)"
15507 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15508 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15509 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15510 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15511 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15513 # ----------------- Summarize what we found so far
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15516 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15518 case `$as_basename -- gstdint.h ||
15519 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15520 Xgstdint.h : 'X\(//\)$' \| \
15521 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15522 $as_echo X/gstdint.h |
15523 sed '/^.*\/\([^/][^/]*\)\/*$/{
15524 s//\1/
15527 /^X\/\(\/\/\)$/{
15528 s//\1/
15531 /^X\/\(\/\).*/{
15532 s//\1/
15535 s/.*/./; q'` in
15536 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15537 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15538 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15539 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15540 *) ;;
15541 esac
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15544 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15546 # ----------------- done included file, check C basic types --------
15548 # Lacking an uintptr_t? Test size of void *
15549 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15550 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15551 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15552 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15553 # This bug is HP SR number 8606223364.
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15555 $as_echo_n "checking size of void *... " >&6; }
15556 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15557 $as_echo_n "(cached) " >&6
15558 else
15559 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15561 else
15562 if test "$ac_cv_type_void_p" = yes; then
15563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15565 { as_fn_set_status 77
15566 as_fn_error "cannot compute sizeof (void *)
15567 See \`config.log' for more details." "$LINENO" 5; }; }
15568 else
15569 ac_cv_sizeof_void_p=0
15574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15575 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15579 cat >>confdefs.h <<_ACEOF
15580 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15581 _ACEOF
15584 esac
15586 # Lacking an uint64_t? Test size of long
15587 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15588 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15589 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15590 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15591 # This bug is HP SR number 8606223364.
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15593 $as_echo_n "checking size of long... " >&6; }
15594 if test "${ac_cv_sizeof_long+set}" = set; then :
15595 $as_echo_n "(cached) " >&6
15596 else
15597 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15599 else
15600 if test "$ac_cv_type_long" = yes; then
15601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15603 { as_fn_set_status 77
15604 as_fn_error "cannot compute sizeof (long)
15605 See \`config.log' for more details." "$LINENO" 5; }; }
15606 else
15607 ac_cv_sizeof_long=0
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15613 $as_echo "$ac_cv_sizeof_long" >&6; }
15617 cat >>confdefs.h <<_ACEOF
15618 #define SIZEOF_LONG $ac_cv_sizeof_long
15619 _ACEOF
15622 esac
15624 if test $acx_cv_header_stdint = stddef.h; then
15625 # Lacking a good header? Test size of everything and deduce all types.
15626 # The cast to long int works around a bug in the HP C Compiler
15627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15629 # This bug is HP SR number 8606223364.
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15631 $as_echo_n "checking size of int... " >&6; }
15632 if test "${ac_cv_sizeof_int+set}" = set; then :
15633 $as_echo_n "(cached) " >&6
15634 else
15635 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15637 else
15638 if test "$ac_cv_type_int" = yes; then
15639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15641 { as_fn_set_status 77
15642 as_fn_error "cannot compute sizeof (int)
15643 See \`config.log' for more details." "$LINENO" 5; }; }
15644 else
15645 ac_cv_sizeof_int=0
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15651 $as_echo "$ac_cv_sizeof_int" >&6; }
15655 cat >>confdefs.h <<_ACEOF
15656 #define SIZEOF_INT $ac_cv_sizeof_int
15657 _ACEOF
15660 # The cast to long int works around a bug in the HP C Compiler
15661 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15662 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15663 # This bug is HP SR number 8606223364.
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15665 $as_echo_n "checking size of short... " >&6; }
15666 if test "${ac_cv_sizeof_short+set}" = set; then :
15667 $as_echo_n "(cached) " >&6
15668 else
15669 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15671 else
15672 if test "$ac_cv_type_short" = yes; then
15673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15675 { as_fn_set_status 77
15676 as_fn_error "cannot compute sizeof (short)
15677 See \`config.log' for more details." "$LINENO" 5; }; }
15678 else
15679 ac_cv_sizeof_short=0
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15685 $as_echo "$ac_cv_sizeof_short" >&6; }
15689 cat >>confdefs.h <<_ACEOF
15690 #define SIZEOF_SHORT $ac_cv_sizeof_short
15691 _ACEOF
15694 # The cast to long int works around a bug in the HP C Compiler
15695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15697 # This bug is HP SR number 8606223364.
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15699 $as_echo_n "checking size of char... " >&6; }
15700 if test "${ac_cv_sizeof_char+set}" = set; then :
15701 $as_echo_n "(cached) " >&6
15702 else
15703 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15705 else
15706 if test "$ac_cv_type_char" = yes; then
15707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15709 { as_fn_set_status 77
15710 as_fn_error "cannot compute sizeof (char)
15711 See \`config.log' for more details." "$LINENO" 5; }; }
15712 else
15713 ac_cv_sizeof_char=0
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15719 $as_echo "$ac_cv_sizeof_char" >&6; }
15723 cat >>confdefs.h <<_ACEOF
15724 #define SIZEOF_CHAR $ac_cv_sizeof_char
15725 _ACEOF
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15730 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15731 case "$ac_cv_sizeof_char" in
15732 1) acx_cv_type_int8_t=char ;;
15733 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
15734 esac
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15736 $as_echo "$acx_cv_type_int8_t" >&6; }
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15739 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15740 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15741 2:*) acx_cv_type_int16_t=int ;;
15742 *:2) acx_cv_type_int16_t=short ;;
15743 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
15744 esac
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15746 $as_echo "$acx_cv_type_int16_t" >&6; }
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15749 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15750 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15751 4:*) acx_cv_type_int32_t=int ;;
15752 *:4) acx_cv_type_int32_t=long ;;
15753 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
15754 esac
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15756 $as_echo "$acx_cv_type_int32_t" >&6; }
15759 # These tests are here to make the output prettier
15761 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15762 case "$ac_cv_sizeof_long" in
15763 8) acx_cv_type_int64_t=long ;;
15764 esac
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15766 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15768 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15771 # Now we can use the above types
15773 if test "$ac_cv_type_uintptr_t" != yes; then
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15775 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15776 case $ac_cv_sizeof_void_p in
15777 2) acx_cv_type_intptr_t=int16_t ;;
15778 4) acx_cv_type_intptr_t=int32_t ;;
15779 8) acx_cv_type_intptr_t=int64_t ;;
15780 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15781 esac
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15783 $as_echo "$acx_cv_type_intptr_t" >&6; }
15786 # ----------------- done all checks, emit header -------------
15787 ac_config_commands="$ac_config_commands gstdint.h"
15793 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15794 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
15795 gcc_header_sys_mman_h=yes
15796 else
15797 gcc_header_sys_mman_h=no
15801 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15802 if test "x$ac_cv_func_mmap" = x""yes; then :
15803 gcc_func_mmap=yes
15804 else
15805 gcc_func_mmap=no
15808 if test "$gcc_header_sys_mman_h" != yes \
15809 || test "$gcc_func_mmap" != yes; then
15810 gcc_cv_func_mmap_file=no
15811 gcc_cv_func_mmap_dev_zero=no
15812 gcc_cv_func_mmap_anon=no
15813 else
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15815 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15816 if test "${gcc_cv_func_mmap_file+set}" = set; then :
15817 $as_echo_n "(cached) " >&6
15818 else
15819 # Add a system to this blacklist if
15820 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15821 # memory area containing the same data that you'd get if you applied
15822 # read() to the same fd. The only system known to have a problem here
15823 # is VMS, where text files have record structure.
15824 case "$host_os" in
15825 *vms* | ultrix*)
15826 gcc_cv_func_mmap_file=no ;;
15828 gcc_cv_func_mmap_file=yes;;
15829 esac
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
15832 $as_echo "$gcc_cv_func_mmap_file" >&6; }
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15834 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15835 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
15836 $as_echo_n "(cached) " >&6
15837 else
15838 # Add a system to this blacklist if it has mmap() but /dev/zero
15839 # does not exist, or if mmapping /dev/zero does not give anonymous
15840 # zeroed pages with both the following properties:
15841 # 1. If you map N consecutive pages in with one call, and then
15842 # unmap any subset of those pages, the pages that were not
15843 # explicitly unmapped remain accessible.
15844 # 2. If you map two adjacent blocks of memory and then unmap them
15845 # both at once, they must both go away.
15846 # Systems known to be in this category are Windows (all variants),
15847 # VMS, and Darwin.
15848 case "$host_os" in
15849 *vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15850 gcc_cv_func_mmap_dev_zero=no ;;
15852 gcc_cv_func_mmap_dev_zero=yes;;
15853 esac
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
15856 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
15858 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15860 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15861 if test "${gcc_cv_decl_map_anon+set}" = set; then :
15862 $as_echo_n "(cached) " >&6
15863 else
15864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15865 /* end confdefs.h. */
15866 #include <sys/types.h>
15867 #include <sys/mman.h>
15868 #include <unistd.h>
15870 #ifndef MAP_ANONYMOUS
15871 #define MAP_ANONYMOUS MAP_ANON
15872 #endif
15875 main ()
15877 int n = MAP_ANONYMOUS;
15879 return 0;
15881 _ACEOF
15882 if ac_fn_c_try_compile "$LINENO"; then :
15883 gcc_cv_decl_map_anon=yes
15884 else
15885 gcc_cv_decl_map_anon=no
15887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
15890 $as_echo "$gcc_cv_decl_map_anon" >&6; }
15892 if test $gcc_cv_decl_map_anon = no; then
15893 gcc_cv_func_mmap_anon=no
15894 else
15895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15896 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15897 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
15898 $as_echo_n "(cached) " >&6
15899 else
15900 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15901 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15902 # doesn't give anonymous zeroed pages with the same properties listed
15903 # above for use of /dev/zero.
15904 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15905 case "$host_os" in
15906 *vms* | cygwin* | pe | mingw* | sco* | udk* )
15907 gcc_cv_func_mmap_anon=no ;;
15909 gcc_cv_func_mmap_anon=yes;;
15910 esac
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
15913 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
15917 if test $gcc_cv_func_mmap_file = yes; then
15919 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15922 if test $gcc_cv_func_mmap_dev_zero = yes; then
15924 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15927 if test $gcc_cv_func_mmap_anon = yes; then
15929 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15935 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15936 if test "${ac_cv_c_bigendian+set}" = set; then :
15937 $as_echo_n "(cached) " >&6
15938 else
15939 ac_cv_c_bigendian=unknown
15940 # See if we're dealing with a universal compiler.
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15943 #ifndef __APPLE_CC__
15944 not a universal capable compiler
15945 #endif
15946 typedef int dummy;
15948 _ACEOF
15949 if ac_fn_c_try_compile "$LINENO"; then :
15951 # Check for potential -arch flags. It is not universal unless
15952 # there are at least two -arch flags with different values.
15953 ac_arch=
15954 ac_prev=
15955 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15956 if test -n "$ac_prev"; then
15957 case $ac_word in
15958 i?86 | x86_64 | ppc | ppc64)
15959 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15960 ac_arch=$ac_word
15961 else
15962 ac_cv_c_bigendian=universal
15963 break
15966 esac
15967 ac_prev=
15968 elif test "x$ac_word" = "x-arch"; then
15969 ac_prev=arch
15971 done
15973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15974 if test $ac_cv_c_bigendian = unknown; then
15975 # See if sys/param.h defines the BYTE_ORDER macro.
15976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977 /* end confdefs.h. */
15978 #include <sys/types.h>
15979 #include <sys/param.h>
15982 main ()
15984 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15985 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15986 && LITTLE_ENDIAN)
15987 bogus endian macros
15988 #endif
15991 return 0;
15993 _ACEOF
15994 if ac_fn_c_try_compile "$LINENO"; then :
15995 # It does; now see whether it defined to BIG_ENDIAN or not.
15996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997 /* end confdefs.h. */
15998 #include <sys/types.h>
15999 #include <sys/param.h>
16002 main ()
16004 #if BYTE_ORDER != BIG_ENDIAN
16005 not big endian
16006 #endif
16009 return 0;
16011 _ACEOF
16012 if ac_fn_c_try_compile "$LINENO"; then :
16013 ac_cv_c_bigendian=yes
16014 else
16015 ac_cv_c_bigendian=no
16017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16021 if test $ac_cv_c_bigendian = unknown; then
16022 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16024 /* end confdefs.h. */
16025 #include <limits.h>
16028 main ()
16030 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16031 bogus endian macros
16032 #endif
16035 return 0;
16037 _ACEOF
16038 if ac_fn_c_try_compile "$LINENO"; then :
16039 # It does; now see whether it defined to _BIG_ENDIAN or not.
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16042 #include <limits.h>
16045 main ()
16047 #ifndef _BIG_ENDIAN
16048 not big endian
16049 #endif
16052 return 0;
16054 _ACEOF
16055 if ac_fn_c_try_compile "$LINENO"; then :
16056 ac_cv_c_bigendian=yes
16057 else
16058 ac_cv_c_bigendian=no
16060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16064 if test $ac_cv_c_bigendian = unknown; then
16065 # Compile a test program.
16066 if test "$cross_compiling" = yes; then :
16067 # Try to guess by grepping values from an object file.
16068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16069 /* end confdefs.h. */
16070 short int ascii_mm[] =
16071 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16072 short int ascii_ii[] =
16073 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16074 int use_ascii (int i) {
16075 return ascii_mm[i] + ascii_ii[i];
16077 short int ebcdic_ii[] =
16078 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16079 short int ebcdic_mm[] =
16080 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16081 int use_ebcdic (int i) {
16082 return ebcdic_mm[i] + ebcdic_ii[i];
16084 extern int foo;
16087 main ()
16089 return use_ascii (foo) == use_ebcdic (foo);
16091 return 0;
16093 _ACEOF
16094 if ac_fn_c_try_compile "$LINENO"; then :
16095 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16096 ac_cv_c_bigendian=yes
16098 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16099 if test "$ac_cv_c_bigendian" = unknown; then
16100 ac_cv_c_bigendian=no
16101 else
16102 # finding both strings is unlikely to happen, but who knows?
16103 ac_cv_c_bigendian=unknown
16107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16108 else
16109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16110 /* end confdefs.h. */
16111 $ac_includes_default
16113 main ()
16116 /* Are we little or big endian? From Harbison&Steele. */
16117 union
16119 long int l;
16120 char c[sizeof (long int)];
16121 } u;
16122 u.l = 1;
16123 return u.c[sizeof (long int) - 1] == 1;
16126 return 0;
16128 _ACEOF
16129 if ac_fn_c_try_run "$LINENO"; then :
16130 ac_cv_c_bigendian=no
16131 else
16132 ac_cv_c_bigendian=yes
16134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16135 conftest.$ac_objext conftest.beam conftest.$ac_ext
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16141 $as_echo "$ac_cv_c_bigendian" >&6; }
16142 case $ac_cv_c_bigendian in #(
16143 yes)
16144 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16145 ;; #(
16147 ;; #(
16148 universal)
16150 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16152 ;; #(
16154 as_fn_error "unknown endianness
16155 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16156 esac
16158 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
16161 # Check to see if -pthread or -lpthread is needed. Prefer the former.
16162 # In case the pthread.h system header is not found, this test will fail.
16163 XPCFLAGS=""
16164 CFLAGS="$CFLAGS -pthread"
16165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h. */
16167 #include <pthread.h>
16168 void *g(void *d) { return NULL; }
16170 main ()
16172 pthread_t t; pthread_create(&t,NULL,g,NULL);
16174 return 0;
16176 _ACEOF
16177 if ac_fn_c_try_link "$LINENO"; then :
16178 XPCFLAGS=" -Wc,-pthread"
16179 else
16180 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
16181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182 /* end confdefs.h. */
16183 #include <pthread.h>
16184 void *g(void *d) { return NULL; }
16186 main ()
16188 pthread_t t; pthread_create(&t,NULL,g,NULL);
16190 return 0;
16192 _ACEOF
16193 if ac_fn_c_try_link "$LINENO"; then :
16195 else
16196 as_fn_error "Pthreads are required to build libitm" "$LINENO" 5
16198 rm -f core conftest.err conftest.$ac_objext \
16199 conftest$ac_exeext conftest.$ac_ext
16201 rm -f core conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
16204 # Check for functions needed.
16205 for ac_func in strtoull memalign posix_memalign getauxval
16206 do :
16207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16208 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16209 eval as_val=\$$as_ac_var
16210 if test "x$as_val" = x""yes; then :
16211 cat >>confdefs.h <<_ACEOF
16212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16213 _ACEOF
16216 done
16219 # Check for broken semaphore implementation on darwin.
16220 # sem_init returns: sem_init error: Function not implemented.
16221 case "$host" in
16222 *-darwin*)
16224 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16227 esac
16229 # Check whether --enable-linux-futex was given.
16230 if test "${enable_linux_futex+set}" = set; then :
16231 enableval=$enable_linux_futex;
16232 case "$enableval" in
16233 yes|no|default) ;;
16234 *) as_fn_error "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
16235 esac
16237 else
16238 enable_linux_futex=default
16242 case "$target" in
16243 *-linux*)
16244 case "$enable_linux_futex" in
16245 default)
16246 # If headers don't have gettid/futex syscalls definition, then
16247 # default to no, otherwise there will be compile time failures.
16248 # Otherwise, default to yes. If we don't detect we are
16249 # compiled/linked against NPTL and not cross-compiling, check
16250 # if programs are run by default against NPTL and if not, issue
16251 # a warning.
16252 enable_linux_futex=no
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16255 #include <sys/syscall.h>
16256 int lk;
16258 main ()
16260 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16262 return 0;
16264 _ACEOF
16265 if ac_fn_c_try_link "$LINENO"; then :
16266 save_LIBS="$LIBS"
16267 LIBS="-lpthread $LIBS"
16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269 /* end confdefs.h. */
16270 #ifndef _GNU_SOURCE
16271 #define _GNU_SOURCE 1
16272 #endif
16273 #include <pthread.h>
16274 pthread_t th; void *status;
16276 main ()
16278 pthread_tryjoin_np (th, &status);
16280 return 0;
16282 _ACEOF
16283 if ac_fn_c_try_link "$LINENO"; then :
16284 enable_linux_futex=yes
16285 else
16286 if test x$cross_compiling = xno; then
16287 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
16288 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
16290 If so, please configure with --disable-linux-futex" >&5
16291 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
16292 If so, please configure with --disable-linux-futex" >&2;}
16295 enable_linux_futex=yes
16297 rm -f core conftest.err conftest.$ac_objext \
16298 conftest$ac_exeext conftest.$ac_ext
16299 LIBS="$save_LIBS"
16301 rm -f core conftest.err conftest.$ac_objext \
16302 conftest$ac_exeext conftest.$ac_ext
16304 yes)
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h. */
16307 #include <sys/syscall.h>
16308 int lk;
16310 main ()
16312 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
16314 return 0;
16316 _ACEOF
16317 if ac_fn_c_try_link "$LINENO"; then :
16319 else
16320 as_fn_error "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
16322 rm -f core conftest.err conftest.$ac_objext \
16323 conftest$ac_exeext conftest.$ac_ext
16325 esac
16328 enable_linux_futex=no
16330 esac
16331 if test x$enable_linux_futex = xyes; then
16336 # See if we support thread-local storage.
16339 # Check whether --enable-tls was given.
16340 if test "${enable_tls+set}" = set; then :
16341 enableval=$enable_tls;
16342 case "$enableval" in
16343 yes|no) ;;
16344 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16345 esac
16347 else
16348 enable_tls=yes
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16353 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16354 if test "${gcc_cv_have_tls+set}" = set; then :
16355 $as_echo_n "(cached) " >&6
16356 else
16358 if test "$cross_compiling" = yes; then :
16359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16360 /* end confdefs.h. */
16361 __thread int a; int b; int main() { return a = b; }
16362 _ACEOF
16363 if ac_fn_c_try_link "$LINENO"; then :
16364 chktls_save_LDFLAGS="$LDFLAGS"
16365 case $host in
16366 *-*-linux*)
16367 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16369 esac
16370 chktls_save_CFLAGS="$CFLAGS"
16371 CFLAGS="-fPIC $CFLAGS"
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16374 int f() { return 0; }
16375 _ACEOF
16376 if ac_fn_c_try_link "$LINENO"; then :
16377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16378 /* end confdefs.h. */
16379 __thread int a; int b; int f() { return a = b; }
16380 _ACEOF
16381 if ac_fn_c_try_link "$LINENO"; then :
16382 gcc_cv_have_tls=yes
16383 else
16384 gcc_cv_have_tls=no
16386 rm -f core conftest.err conftest.$ac_objext \
16387 conftest$ac_exeext conftest.$ac_ext
16388 else
16389 gcc_cv_have_tls=yes
16391 rm -f core conftest.err conftest.$ac_objext \
16392 conftest$ac_exeext conftest.$ac_ext
16393 CFLAGS="$chktls_save_CFLAGS"
16394 LDFLAGS="$chktls_save_LDFLAGS"
16395 else
16396 gcc_cv_have_tls=no
16398 rm -f core conftest.err conftest.$ac_objext \
16399 conftest$ac_exeext conftest.$ac_ext
16402 else
16403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16404 /* end confdefs.h. */
16405 __thread int a; int b; int main() { return a = b; }
16406 _ACEOF
16407 if ac_fn_c_try_run "$LINENO"; then :
16408 chktls_save_LDFLAGS="$LDFLAGS"
16409 LDFLAGS="-static $LDFLAGS"
16410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411 /* end confdefs.h. */
16412 int main() { return 0; }
16413 _ACEOF
16414 if ac_fn_c_try_link "$LINENO"; then :
16415 if test "$cross_compiling" = yes; then :
16416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16418 as_fn_error "cannot run test program while cross compiling
16419 See \`config.log' for more details." "$LINENO" 5; }
16420 else
16421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16422 /* end confdefs.h. */
16423 __thread int a; int b; int main() { return a = b; }
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 else
16435 gcc_cv_have_tls=yes
16437 rm -f core conftest.err conftest.$ac_objext \
16438 conftest$ac_exeext conftest.$ac_ext
16439 LDFLAGS="$chktls_save_LDFLAGS"
16440 if test $gcc_cv_have_tls = yes; then
16441 chktls_save_CFLAGS="$CFLAGS"
16442 thread_CFLAGS=failed
16443 for flag in '' '-pthread' '-lpthread'; do
16444 CFLAGS="$flag $chktls_save_CFLAGS"
16445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h. */
16447 #include <pthread.h>
16448 void *g(void *d) { return NULL; }
16450 main ()
16452 pthread_t t; pthread_create(&t,NULL,g,NULL);
16454 return 0;
16456 _ACEOF
16457 if ac_fn_c_try_link "$LINENO"; then :
16458 thread_CFLAGS="$flag"
16460 rm -f core conftest.err conftest.$ac_objext \
16461 conftest$ac_exeext conftest.$ac_ext
16462 if test "X$thread_CFLAGS" != Xfailed; then
16463 break
16465 done
16466 CFLAGS="$chktls_save_CFLAGS"
16467 if test "X$thread_CFLAGS" != Xfailed; then
16468 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16469 if test "$cross_compiling" = yes; then :
16470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16472 as_fn_error "cannot run test program while cross compiling
16473 See \`config.log' for more details." "$LINENO" 5; }
16474 else
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16477 #include <pthread.h>
16478 __thread int a;
16479 static int *volatile a_in_other_thread;
16480 static void *
16481 thread_func (void *arg)
16483 a_in_other_thread = &a;
16484 return (void *)0;
16487 main ()
16489 pthread_t thread;
16490 void *thread_retval;
16491 int *volatile a_in_main_thread;
16492 a_in_main_thread = &a;
16493 if (pthread_create (&thread, (pthread_attr_t *)0,
16494 thread_func, (void *)0))
16495 return 0;
16496 if (pthread_join (thread, &thread_retval))
16497 return 0;
16498 return (a_in_other_thread == a_in_main_thread);
16500 return 0;
16502 _ACEOF
16503 if ac_fn_c_try_run "$LINENO"; then :
16504 gcc_cv_have_tls=yes
16505 else
16506 gcc_cv_have_tls=no
16508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16509 conftest.$ac_objext conftest.beam conftest.$ac_ext
16512 CFLAGS="$chktls_save_CFLAGS"
16515 else
16516 gcc_cv_have_tls=no
16518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16519 conftest.$ac_objext conftest.beam conftest.$ac_ext
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16524 $as_echo "$gcc_cv_have_tls" >&6; }
16525 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16527 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16531 # See what sort of export controls are available.
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16534 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16535 if test "${libitm_cv_have_attribute_visibility+set}" = set; then :
16536 $as_echo_n "(cached) " >&6
16537 else
16539 save_CFLAGS="$CFLAGS"
16540 CFLAGS="$CFLAGS -Werror"
16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542 /* end confdefs.h. */
16543 void __attribute__((visibility("hidden"))) foo(void) { }
16545 main ()
16549 return 0;
16551 _ACEOF
16552 if ac_fn_c_try_compile "$LINENO"; then :
16553 libitm_cv_have_attribute_visibility=yes
16554 else
16555 libitm_cv_have_attribute_visibility=no
16557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16558 CFLAGS="$save_CFLAGS"
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_visibility" >&5
16561 $as_echo "$libitm_cv_have_attribute_visibility" >&6; }
16562 if test $libitm_cv_have_attribute_visibility = yes; then
16564 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16569 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16570 if test "${libitm_cv_have_attribute_dllexport+set}" = set; then :
16571 $as_echo_n "(cached) " >&6
16572 else
16574 save_CFLAGS="$CFLAGS"
16575 CFLAGS="$CFLAGS -Werror"
16576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16577 /* end confdefs.h. */
16578 void __attribute__((dllexport)) foo(void) { }
16580 main ()
16584 return 0;
16586 _ACEOF
16587 if ac_fn_c_try_compile "$LINENO"; then :
16588 libitm_cv_have_attribute_dllexport=yes
16589 else
16590 libitm_cv_have_attribute_dllexport=no
16592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593 CFLAGS="$save_CFLAGS"
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_dllexport" >&5
16596 $as_echo "$libitm_cv_have_attribute_dllexport" >&6; }
16597 if test $libitm_cv_have_attribute_dllexport = yes; then
16599 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16604 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16605 if test "${libitm_cv_have_attribute_alias+set}" = set; then :
16606 $as_echo_n "(cached) " >&6
16607 else
16609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16610 /* end confdefs.h. */
16612 void foo(void) { }
16613 extern void bar(void) __attribute__((alias("foo")));
16615 main ()
16617 bar();
16619 return 0;
16621 _ACEOF
16622 if ac_fn_c_try_link "$LINENO"; then :
16623 libitm_cv_have_attribute_alias=yes
16624 else
16625 libitm_cv_have_attribute_alias=no
16627 rm -f core conftest.err conftest.$ac_objext \
16628 conftest$ac_exeext conftest.$ac_ext
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_attribute_alias" >&5
16631 $as_echo "$libitm_cv_have_attribute_alias" >&6; }
16632 if test $libitm_cv_have_attribute_alias = yes; then
16634 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16638 # Check linker hardware capability support.
16641 # Check whether --with-gnu-ld was given.
16642 if test "${with_gnu_ld+set}" = set; then :
16643 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16644 else
16645 with_gnu_ld=no
16648 ac_prog=ld
16649 if test "$GCC" = yes; then
16650 # Check if gcc -print-prog-name=ld gives a path.
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16652 $as_echo_n "checking for ld used by $CC... " >&6; }
16653 case $host in
16654 *-*-mingw*)
16655 # gcc leaves a trailing carriage return which upsets mingw
16656 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16658 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16659 esac
16660 case $ac_prog in
16661 # Accept absolute paths.
16662 [\\/]* | ?:[\\/]*)
16663 re_direlt='/[^/][^/]*/\.\./'
16664 # Canonicalize the pathname of ld
16665 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16666 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16667 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16668 done
16669 test -z "$LD" && LD="$ac_prog"
16672 # If it fails, then pretend we aren't using GCC.
16673 ac_prog=ld
16676 # If it is relative, then search for the first ld in PATH.
16677 with_gnu_ld=unknown
16679 esac
16680 elif test "$with_gnu_ld" = yes; then
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16682 $as_echo_n "checking for GNU ld... " >&6; }
16683 else
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16685 $as_echo_n "checking for non-GNU ld... " >&6; }
16687 if test "${lt_cv_path_LD+set}" = set; then :
16688 $as_echo_n "(cached) " >&6
16689 else
16690 if test -z "$LD"; then
16691 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16692 for ac_dir in $PATH; do
16693 IFS="$lt_save_ifs"
16694 test -z "$ac_dir" && ac_dir=.
16695 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16696 lt_cv_path_LD="$ac_dir/$ac_prog"
16697 # Check to see if the program is GNU ld. I'd rather use --version,
16698 # but apparently some variants of GNU ld only accept -v.
16699 # Break only if it was the GNU/non-GNU ld that we prefer.
16700 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16701 *GNU* | *'with BFD'*)
16702 test "$with_gnu_ld" != no && break
16705 test "$with_gnu_ld" != yes && break
16707 esac
16709 done
16710 IFS="$lt_save_ifs"
16711 else
16712 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16716 LD="$lt_cv_path_LD"
16717 if test -n "$LD"; then
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16719 $as_echo "$LD" >&6; }
16720 else
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16722 $as_echo "no" >&6; }
16724 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16726 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16727 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16728 $as_echo_n "(cached) " >&6
16729 else
16730 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16731 case `$LD -v 2>&1 </dev/null` in
16732 *GNU* | *'with BFD'*)
16733 lt_cv_prog_gnu_ld=yes
16736 lt_cv_prog_gnu_ld=no
16738 esac
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16741 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16742 with_gnu_ld=$lt_cv_prog_gnu_ld
16750 test -z "$HWCAP_LDFLAGS" && HWCAP_LDFLAGS=''
16753 ac_save_LDFLAGS="$LDFLAGS"
16754 LDFLAGS="$LFLAGS -mclear-hwcap"
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mclear-hwcap" >&5
16757 $as_echo_n "checking for -mclear-hwcap... " >&6; }
16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759 /* end confdefs.h. */
16762 main ()
16764 return 0;
16766 return 0;
16768 _ACEOF
16769 if ac_fn_c_try_link "$LINENO"; then :
16770 ac_hwcap_ldflags=yes
16771 else
16772 ac_hwcap_ldflags=no
16774 rm -f core conftest.err conftest.$ac_objext \
16775 conftest$ac_exeext conftest.$ac_ext
16776 if test "$ac_hwcap_ldflags" = "yes"; then
16777 HWCAP_LDFLAGS="-mclear-hwcap $HWCAP_LDFLAGS"
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_ldflags" >&5
16780 $as_echo "$ac_hwcap_ldflags" >&6; }
16782 LDFLAGS="$ac_save_LDFLAGS"
16786 if test $ac_hwcap_ldflags != no; then
16787 HAVE_HWCAP_TRUE=
16788 HAVE_HWCAP_FALSE='#'
16789 else
16790 HAVE_HWCAP_TRUE='#'
16791 HAVE_HWCAP_FALSE=
16795 # If defaulting to -mavx, don't clear hwcaps.
16796 ac_fn_c_check_decl "$LINENO" "__AVX__" "ac_cv_have_decl___AVX__" "$ac_includes_default"
16797 if test "x$ac_cv_have_decl___AVX__" = x""yes; then :
16798 HWCAP_LDFLAGS=''
16803 # If we're not using GNU ld, then there's no point in even trying these
16804 # tests. Check for that first. We should have already tested for gld
16805 # by now (in libtool), but require it now just to be safe...
16806 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16807 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16811 # The name set by libtool depends on the version of libtool. Shame on us
16812 # for depending on an impl detail, but c'est la vie. Older versions used
16813 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16814 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16815 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16816 # set (hence we're using an older libtool), then set it.
16817 if test x${with_gnu_ld+set} != xset; then
16818 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16819 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16820 with_gnu_ld=no
16821 else
16822 with_gnu_ld=$ac_cv_prog_gnu_ld
16826 # Start by getting the version number. I think the libtool test already
16827 # does some of this, but throws away the result.
16828 libitm_ld_is_gold=no
16829 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16830 libitm_ld_is_gold=yes
16833 ldver=`$LD --version 2>/dev/null |
16834 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'`
16836 libitm_gnu_ld_version=`echo $ldver | \
16837 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16839 # Set --gc-sections.
16840 if test "$with_gnu_ld" = "notbroken"; then
16841 # GNU ld it is! Joy and bunny rabbits!
16843 # All these tests are for C++; save the language and the compiler flags.
16844 # Need to do this so that g++ won't try to link in libstdc++
16845 ac_test_CFLAGS="${CFLAGS+set}"
16846 ac_save_CFLAGS="$CFLAGS"
16847 CFLAGS='-x c++ -Wl,--gc-sections'
16849 # Check for -Wl,--gc-sections
16850 # XXX This test is broken at the moment, as symbols required for linking
16851 # are now in libsupc++ (not built yet). In addition, this test has
16852 # cored on solaris in the past. In addition, --gc-sections doesn't
16853 # really work at the moment (keeps on discarding used sections, first
16854 # .eh_frame and now some of the glibc sections for iconv).
16855 # Bzzzzt. Thanks for playing, maybe next time.
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16857 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16858 if test "$cross_compiling" = yes; then :
16859 ac_sectionLDflags=yes
16860 else
16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862 /* end confdefs.h. */
16864 int main(void)
16866 try { throw 1; }
16867 catch (...) { };
16868 return 0;
16871 _ACEOF
16872 if ac_fn_c_try_run "$LINENO"; then :
16873 ac_sectionLDflags=yes
16874 else
16875 ac_sectionLDflags=no
16877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16878 conftest.$ac_objext conftest.beam conftest.$ac_ext
16881 if test "$ac_test_CFLAGS" = set; then
16882 CFLAGS="$ac_save_CFLAGS"
16883 else
16884 # this is the suspicious part
16885 CFLAGS=''
16887 if test "$ac_sectionLDflags" = "yes"; then
16888 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16891 $as_echo "$ac_sectionLDflags" >&6; }
16894 # Set linker optimization flags.
16895 if test x"$with_gnu_ld" = x"yes"; then
16896 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16904 # Check whether --enable-symvers was given.
16905 if test "${enable_symvers+set}" = set; then :
16906 enableval=$enable_symvers;
16907 case "$enableval" in
16908 yes|no|gnu*|sun) ;;
16909 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16910 esac
16912 else
16913 enable_symvers=yes
16918 # If we never went through the LIBITM_CHECK_LINKER_FEATURES macro, then we
16919 # don't know enough about $LD to do tricks...
16922 # Turn a 'yes' into a suitable default.
16923 if test x$enable_symvers = xyes ; then
16924 # FIXME The following test is too strict, in theory.
16925 if test $enable_shared = no || test "x$LD" = x; then
16926 enable_symvers=no
16927 else
16928 if test $with_gnu_ld = yes ; then
16929 enable_symvers=gnu
16930 else
16931 case ${target_os} in
16932 # Sun symbol versioning exists since Solaris 2.5.
16933 solaris2.[5-9]* | solaris2.1[0-9]*)
16934 enable_symvers=sun ;;
16936 enable_symvers=no ;;
16937 esac
16942 # Check if 'sun' was requested on non-Solaris 2 platforms.
16943 if test x$enable_symvers = xsun ; then
16944 case ${target_os} in
16945 solaris2*)
16946 # All fine.
16949 # Unlikely to work.
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16951 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16953 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16955 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16956 enable_symvers=no
16958 esac
16961 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16962 if test $enable_symvers != no; then
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16964 $as_echo_n "checking for shared libgcc... " >&6; }
16965 ac_save_CFLAGS="$CFLAGS"
16966 CFLAGS=' -lgcc_s'
16967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16968 /* end confdefs.h. */
16971 main ()
16973 return 0;
16975 return 0;
16977 _ACEOF
16978 if ac_fn_c_try_link "$LINENO"; then :
16979 libitm_shared_libgcc=yes
16980 else
16981 libitm_shared_libgcc=no
16983 rm -f core conftest.err conftest.$ac_objext \
16984 conftest$ac_exeext conftest.$ac_ext
16985 CFLAGS="$ac_save_CFLAGS"
16986 if test $libitm_shared_libgcc = no; then
16987 cat > conftest.c <<EOF
16988 int main (void) { return 0; }
16990 libitm_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16991 -shared -shared-libgcc -o conftest.so \
16992 conftest.c -v 2>&1 >/dev/null \
16993 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16994 rm -f conftest.c conftest.so
16995 if test x${libitm_libgcc_s_suffix+set} = xset; then
16996 CFLAGS=" -lgcc_s$libitm_libgcc_s_suffix"
16997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998 /* end confdefs.h. */
17001 main ()
17003 return 0;
17005 return 0;
17007 _ACEOF
17008 if ac_fn_c_try_link "$LINENO"; then :
17009 libitm_shared_libgcc=yes
17011 rm -f core conftest.err conftest.$ac_objext \
17012 conftest$ac_exeext conftest.$ac_ext
17013 CFLAGS="$ac_save_CFLAGS"
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_shared_libgcc" >&5
17017 $as_echo "$libitm_shared_libgcc" >&6; }
17020 # For GNU ld, we need at least this version. The format is described in
17021 # LIBITM_CHECK_LINKER_FEATURES above.
17022 libitm_min_gnu_ld_version=21400
17023 # XXXXXXXXXXX libitm_gnu_ld_version=21390
17025 # Check to see if unspecified "yes" value can win, given results above.
17026 # Change "yes" into either "no" or a style name.
17027 if test $enable_symvers != no && test $libitm_shared_libgcc = yes; then
17028 if test $with_gnu_ld = yes; then
17029 if test $libitm_gnu_ld_version -ge $libitm_min_gnu_ld_version ; then
17030 enable_symvers=gnu
17031 elif test $libitm_ld_is_gold = yes ; then
17032 enable_symvers=gnu
17033 else
17034 # The right tools, the right setup, but too old. Fallbacks?
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&5
17036 $as_echo "$as_me: WARNING: === Linker version $libitm_gnu_ld_version is too old for" >&2;}
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
17038 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
17040 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&5
17042 $as_echo "$as_me: WARNING: === $libitm_min_gnu_ld_version or later and rebuild GCC." >&2;}
17043 if test $libitm_gnu_ld_version -ge 21200 ; then
17044 # Globbing fix is present, proper block support is not.
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17046 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17047 enable_symvers=no
17048 else
17049 # 2.11 or older.
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17051 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17052 enable_symvers=no
17055 elif test $enable_symvers = sun; then
17056 : All interesting versions of Sun ld support sun style symbol versioning.
17057 else
17058 # just fail for now
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
17060 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
17062 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
17064 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
17066 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
17067 enable_symvers=no
17071 if test $enable_symvers != no; then
17072 LIBITM_BUILD_VERSIONED_SHLIB_TRUE=
17073 LIBITM_BUILD_VERSIONED_SHLIB_FALSE='#'
17074 else
17075 LIBITM_BUILD_VERSIONED_SHLIB_TRUE='#'
17076 LIBITM_BUILD_VERSIONED_SHLIB_FALSE=
17079 if test $enable_symvers = gnu; then
17080 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE=
17081 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
17082 else
17083 LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
17084 LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE=
17087 if test $enable_symvers = sun; then
17088 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE=
17089 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
17090 else
17091 LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
17092 LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE=
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
17096 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
17098 if test $enable_symvers = gnu; then
17100 $as_echo "#define LIBITM_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
17104 # See if we can emit unwind info in the sjlj stub.
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
17106 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
17107 if test "${gcc_cv_as_cfi_pseudo_op+set}" = set; then :
17108 $as_echo_n "(cached) " >&6
17109 else
17111 gcc_cv_as_cfi_pseudo_op=unknown
17112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17113 /* end confdefs.h. */
17114 asm (".cfi_startproc\n\t.cfi_endproc");
17116 main ()
17120 return 0;
17122 _ACEOF
17123 if ac_fn_c_try_compile "$LINENO"; then :
17124 gcc_cv_as_cfi_pseudo_op=yes
17125 else
17126 gcc_cv_as_cfi_pseudo_op=no
17128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
17132 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
17133 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
17135 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
17140 # Determine the proper ABI type for size_t.
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how size_t is mangled" >&5
17143 $as_echo_n "checking how size_t is mangled... " >&6; }
17144 if test "${libitm_cv_size_t_mangling+set}" = set; then :
17145 $as_echo_n "(cached) " >&6
17146 else
17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h. */
17152 main ()
17154 extern __SIZE_TYPE__ x; extern unsigned long x;
17156 return 0;
17158 _ACEOF
17159 if ac_fn_c_try_compile "$LINENO"; then :
17160 libitm_cv_size_t_mangling=m
17161 else
17163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17164 /* end confdefs.h. */
17167 main ()
17169 extern __SIZE_TYPE__ x; extern unsigned int x;
17171 return 0;
17173 _ACEOF
17174 if ac_fn_c_try_compile "$LINENO"; then :
17175 libitm_cv_size_t_mangling=j
17176 else
17178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17179 /* end confdefs.h. */
17182 main ()
17184 extern __SIZE_TYPE__ x; extern unsigned long long x;
17186 return 0;
17188 _ACEOF
17189 if ac_fn_c_try_compile "$LINENO"; then :
17190 libitm_cv_size_t_mangling=y
17191 else
17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h. */
17197 main ()
17199 extern __SIZE_TYPE__ x; extern unsigned short x;
17201 return 0;
17203 _ACEOF
17204 if ac_fn_c_try_compile "$LINENO"; then :
17205 libitm_cv_size_t_mangling=t
17206 else
17207 libitm_cv_size_t_mangling=x
17209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_size_t_mangling" >&5
17222 $as_echo "$libitm_cv_size_t_mangling" >&6; }
17223 if test $libitm_cv_size_t_mangling = x; then
17224 as_fn_error "Unknown underlying type for size_t" "$LINENO" 5
17227 cat >>confdefs.h <<_ACEOF
17228 #define MANGLE_SIZE_T $libitm_cv_size_t_mangling
17229 _ACEOF
17233 # Get target configury.
17234 . ${srcdir}/configure.tgt
17235 if test -n "$UNSUPPORTED"; then
17236 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
17239 CFLAGS="$save_CFLAGS $XCFLAGS"
17241 # Check for __sync_val_compare_and_swap, but only after the target has
17242 # had a chance to set XCFLAGS.
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
17245 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
17246 if test "${libitm_cv_have_sync_builtins+set}" = set; then :
17247 $as_echo_n "(cached) " >&6
17248 else
17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251 /* end confdefs.h. */
17254 main ()
17256 int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1);
17258 return 0;
17260 _ACEOF
17261 if ac_fn_c_try_link "$LINENO"; then :
17262 libitm_cv_have_sync_builtins=yes
17263 else
17264 libitm_cv_have_sync_builtins=no
17266 rm -f core conftest.err conftest.$ac_objext \
17267 conftest$ac_exeext conftest.$ac_ext
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_sync_builtins" >&5
17270 $as_echo "$libitm_cv_have_sync_builtins" >&6; }
17271 if test $libitm_cv_have_sync_builtins = yes; then
17273 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports 64-bit __sync_*_compare_and_swap" >&5
17278 $as_echo_n "checking whether the target supports 64-bit __sync_*_compare_and_swap... " >&6; }
17279 if test "${libitm_cv_have_64bit_sync_builtins+set}" = set; then :
17280 $as_echo_n "(cached) " >&6
17281 else
17283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284 /* end confdefs.h. */
17285 #include <stdint.h>
17287 main ()
17289 uint64_t foo, bar;
17290 bar = __sync_val_compare_and_swap(&foo, 0, 1);
17292 return 0;
17294 _ACEOF
17295 if ac_fn_c_try_link "$LINENO"; then :
17296 libitm_cv_have_64bit_sync_builtins=yes
17297 else
17298 libitm_cv_have_64bit_sync_builtins=no
17300 rm -f core conftest.err conftest.$ac_objext \
17301 conftest$ac_exeext conftest.$ac_ext
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_have_64bit_sync_builtins" >&5
17304 $as_echo "$libitm_cv_have_64bit_sync_builtins" >&6; }
17305 if test $libitm_cv_have_64bit_sync_builtins = yes; then
17307 $as_echo "#define HAVE_64BIT_SYNC_BUILTINS 1" >>confdefs.h
17311 case "${target_cpu}" in
17312 i[34567]86 | x86_64)
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports AVX" >&5
17314 $as_echo_n "checking if the assembler supports AVX... " >&6; }
17315 if test "${libitm_cv_as_avx+set}" = set; then :
17316 $as_echo_n "(cached) " >&6
17317 else
17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17320 /* end confdefs.h. */
17323 main ()
17325 asm("vzeroupper");
17327 return 0;
17329 _ACEOF
17330 if ac_fn_c_try_compile "$LINENO"; then :
17331 libitm_cv_as_avx=yes
17332 else
17333 libitm_cv_as_avx=no
17335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_avx" >&5
17339 $as_echo "$libitm_cv_as_avx" >&6; }
17340 if test x$libitm_cv_as_avx = xyes; then
17342 $as_echo "#define HAVE_AS_AVX 1" >>confdefs.h
17346 esac
17348 case "${target_cpu}" in
17349 i[34567]86 | x86_64)
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports RTM" >&5
17351 $as_echo_n "checking if the assembler supports RTM... " >&6; }
17352 if test "${libitm_cv_as_rtm+set}" = set; then :
17353 $as_echo_n "(cached) " >&6
17354 else
17356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17357 /* end confdefs.h. */
17360 main ()
17362 asm("1: xbegin 1b; xend");
17364 return 0;
17366 _ACEOF
17367 if ac_fn_c_try_compile "$LINENO"; then :
17368 libitm_cv_as_rtm=yes
17369 else
17370 libitm_cv_as_rtm=no
17372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_rtm" >&5
17376 $as_echo "$libitm_cv_as_rtm" >&6; }
17377 if test x$libitm_cv_as_rtm = xyes; then
17379 $as_echo "#define HAVE_AS_RTM 1" >>confdefs.h
17383 esac
17385 case "${target_cpu}" in
17386 powerpc*)
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17388 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17389 if test "${libitm_cv_as_htm+set}" = set; then :
17390 $as_echo_n "(cached) " >&6
17391 else
17393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17394 /* end confdefs.h. */
17397 main ()
17399 asm("tbegin. 0; tend. 0");
17401 return 0;
17403 _ACEOF
17404 if ac_fn_c_try_compile "$LINENO"; then :
17405 libitm_cv_as_htm=yes
17406 else
17407 libitm_cv_as_htm=no
17409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17413 $as_echo "$libitm_cv_as_htm" >&6; }
17414 if test x$libitm_cv_as_htm = xyes; then
17416 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17420 s390*)
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler supports HTM" >&5
17422 $as_echo_n "checking if the assembler supports HTM... " >&6; }
17423 if test "${libitm_cv_as_htm+set}" = set; then :
17424 $as_echo_n "(cached) " >&6
17425 else
17427 save_CFLAGS="$CFLAGS"
17428 CFLAGS="$CFLAGS -march=zEC12"
17429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17430 /* end confdefs.h. */
17433 main ()
17435 asm("tbegin 0,0; tend");
17437 return 0;
17439 _ACEOF
17440 if ac_fn_c_try_compile "$LINENO"; then :
17441 libitm_cv_as_htm=yes
17442 else
17443 libitm_cv_as_htm=no
17445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17446 CFLAGS="$save_CFLAGS"
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libitm_cv_as_htm" >&5
17449 $as_echo "$libitm_cv_as_htm" >&6; }
17450 if test x$libitm_cv_as_htm = xyes; then
17452 $as_echo "#define HAVE_AS_HTM 1" >>confdefs.h
17456 esac
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether weak refs work like ELF" >&5
17460 $as_echo_n "checking whether weak refs work like ELF... " >&6; }
17461 if test "${ac_cv_have_elf_style_weakref+set}" = set; then :
17462 $as_echo_n "(cached) " >&6
17463 else
17465 weakref_m4_saved_CFLAGS="$CFLAGS"
17466 case "${host}" in
17467 *-apple-darwin*) CFLAGS="$CFLAGS -Wl,-undefined,dynamic_lookup" ;;
17468 *) ;;
17469 esac
17470 if test "$cross_compiling" = yes; then :
17472 case "${host}" in
17473 *-apple-darwin[89]*) ac_cv_have_elf_style_weakref=no ;;
17474 *) ac_cv_have_elf_style_weakref=yes;;
17475 esac
17476 else
17477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17478 /* end confdefs.h. */
17480 extern void fNotToBeFound(void) __attribute__((weak));
17481 int main ()
17483 if (fNotToBeFound)
17484 return 1;
17485 else
17486 return 0;
17489 _ACEOF
17490 if ac_fn_c_try_run "$LINENO"; then :
17491 ac_cv_have_elf_style_weakref=yes
17492 else
17493 ac_cv_have_elf_style_weakref=no
17495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17496 conftest.$ac_objext conftest.beam conftest.$ac_ext
17498 CFLAGS="$weakref_m4_saved_CFLAGS"
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_elf_style_weakref" >&5
17501 $as_echo "$ac_cv_have_elf_style_weakref" >&6; }
17502 if test x"$ac_cv_have_elf_style_weakref" = xyes; then
17504 $as_echo "#define HAVE_ELF_STYLE_WEAKREF 1" >>confdefs.h
17508 # Cleanup and exit.
17509 CFLAGS="$save_CFLAGS"
17510 cat >confcache <<\_ACEOF
17511 # This file is a shell script that caches the results of configure
17512 # tests run on this system so they can be shared between configure
17513 # scripts and configure runs, see configure's option --config-cache.
17514 # It is not useful on other systems. If it contains results you don't
17515 # want to keep, you may remove or edit it.
17517 # config.status only pays attention to the cache file if you give it
17518 # the --recheck option to rerun configure.
17520 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17521 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17522 # following values.
17524 _ACEOF
17526 # The following way of writing the cache mishandles newlines in values,
17527 # but we know of no workaround that is simple, portable, and efficient.
17528 # So, we kill variables containing newlines.
17529 # Ultrix sh set writes to stderr and can't be redirected directly,
17530 # and sets the high bit in the cache file unless we assign to the vars.
17532 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17533 eval ac_val=\$$ac_var
17534 case $ac_val in #(
17535 *${as_nl}*)
17536 case $ac_var in #(
17537 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17538 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17539 esac
17540 case $ac_var in #(
17541 _ | IFS | as_nl) ;; #(
17542 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17543 *) { eval $ac_var=; unset $ac_var;} ;;
17544 esac ;;
17545 esac
17546 done
17548 (set) 2>&1 |
17549 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17550 *${as_nl}ac_space=\ *)
17551 # `set' does not quote correctly, so add quotes: double-quote
17552 # substitution turns \\\\ into \\, and sed turns \\ into \.
17553 sed -n \
17554 "s/'/'\\\\''/g;
17555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17556 ;; #(
17558 # `set' quotes correctly as required by POSIX, so do not add quotes.
17559 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17561 esac |
17562 sort
17564 sed '
17565 /^ac_cv_env_/b end
17566 t clear
17567 :clear
17568 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17569 t end
17570 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17571 :end' >>confcache
17572 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17573 if test -w "$cache_file"; then
17574 test "x$cache_file" != "x/dev/null" &&
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17576 $as_echo "$as_me: updating cache $cache_file" >&6;}
17577 cat confcache >$cache_file
17578 else
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17580 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17583 rm -f confcache
17585 # Add -Wall -Werror if we are using GCC.
17586 if test "x$GCC" = "xyes"; then
17587 XCFLAGS="$XCFLAGS -Wall -Werror"
17590 XCFLAGS="$XCFLAGS $XPCFLAGS"
17592 # Add CET specific flags if CET is enabled
17593 # Check whether --enable-cet was given.
17594 if test "${enable_cet+set}" = set; then :
17595 enableval=$enable_cet;
17596 case "$enableval" in
17597 yes|no|default) ;;
17598 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
17599 esac
17601 else
17602 enable_cet=default
17606 case "$host" in
17607 i[34567]86-*-linux* | x86_64-*-linux*)
17608 case "$enable_cet" in
17609 default)
17610 # Check if assembler supports CET.
17611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h. */
17615 main ()
17617 asm ("setssbsy");
17619 return 0;
17621 _ACEOF
17622 if ac_fn_c_try_compile "$LINENO"; then :
17623 enable_cet=yes
17624 else
17625 enable_cet=no
17627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17629 yes)
17630 # Check if assembler supports CET.
17631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17632 /* end confdefs.h. */
17635 main ()
17637 asm ("setssbsy");
17639 return 0;
17641 _ACEOF
17642 if ac_fn_c_try_compile "$LINENO"; then :
17644 else
17645 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
17647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17649 esac
17652 enable_cet=no
17654 esac
17655 if test x$enable_cet = xyes; then
17656 CET_FLAGS="-fcf-protection -mcet"
17659 XCFLAGS="$XCFLAGS $CET_FLAGS"
17665 if test ${multilib} = yes; then
17666 multilib_arg="--enable-multilib"
17667 else
17668 multilib_arg=
17671 # Set up the set of libraries that we need to link against for libitm.
17672 # Note that the GTM_SELF_SPECS in gcc.c will force -pthread for -fgnu-tm,
17673 # which will force linkage against -lpthread (or equivalent for the system).
17674 # That's not 100% ideal, but about the best we can do easily.
17675 if test $enable_shared = yes; then
17676 link_itm="-litm %{static: $LIBS}"
17677 else
17678 link_itm="-litm $LIBS"
17682 if test "$ARCH" = arm; then
17683 ARCH_ARM_TRUE=
17684 ARCH_ARM_FALSE='#'
17685 else
17686 ARCH_ARM_TRUE='#'
17687 ARCH_ARM_FALSE=
17690 if test "$ARCH" = x86; then
17691 ARCH_X86_TRUE=
17692 ARCH_X86_FALSE='#'
17693 else
17694 ARCH_X86_TRUE='#'
17695 ARCH_X86_FALSE=
17698 if test "$libitm_cv_as_avx" = yes; then
17699 ARCH_X86_AVX_TRUE=
17700 ARCH_X86_AVX_FALSE='#'
17701 else
17702 ARCH_X86_AVX_TRUE='#'
17703 ARCH_X86_AVX_FALSE=
17706 if test $enable_linux_futex = yes; then
17707 ARCH_FUTEX_TRUE=
17708 ARCH_FUTEX_FALSE='#'
17709 else
17710 ARCH_FUTEX_TRUE='#'
17711 ARCH_FUTEX_FALSE=
17715 # Determine what GCC version number to use in filesystem paths.
17717 get_gcc_base_ver="cat"
17719 # Check whether --with-gcc-major-version-only was given.
17720 if test "${with_gcc_major_version_only+set}" = set; then :
17721 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
17722 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
17730 ac_config_files="$ac_config_files Makefile testsuite/Makefile libitm.spec"
17732 cat >confcache <<\_ACEOF
17733 # This file is a shell script that caches the results of configure
17734 # tests run on this system so they can be shared between configure
17735 # scripts and configure runs, see configure's option --config-cache.
17736 # It is not useful on other systems. If it contains results you don't
17737 # want to keep, you may remove or edit it.
17739 # config.status only pays attention to the cache file if you give it
17740 # the --recheck option to rerun configure.
17742 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17743 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17744 # following values.
17746 _ACEOF
17748 # The following way of writing the cache mishandles newlines in values,
17749 # but we know of no workaround that is simple, portable, and efficient.
17750 # So, we kill variables containing newlines.
17751 # Ultrix sh set writes to stderr and can't be redirected directly,
17752 # and sets the high bit in the cache file unless we assign to the vars.
17754 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17755 eval ac_val=\$$ac_var
17756 case $ac_val in #(
17757 *${as_nl}*)
17758 case $ac_var in #(
17759 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17760 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17761 esac
17762 case $ac_var in #(
17763 _ | IFS | as_nl) ;; #(
17764 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17765 *) { eval $ac_var=; unset $ac_var;} ;;
17766 esac ;;
17767 esac
17768 done
17770 (set) 2>&1 |
17771 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17772 *${as_nl}ac_space=\ *)
17773 # `set' does not quote correctly, so add quotes: double-quote
17774 # substitution turns \\\\ into \\, and sed turns \\ into \.
17775 sed -n \
17776 "s/'/'\\\\''/g;
17777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17778 ;; #(
17780 # `set' quotes correctly as required by POSIX, so do not add quotes.
17781 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17783 esac |
17784 sort
17786 sed '
17787 /^ac_cv_env_/b end
17788 t clear
17789 :clear
17790 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17791 t end
17792 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17793 :end' >>confcache
17794 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17795 if test -w "$cache_file"; then
17796 test "x$cache_file" != "x/dev/null" &&
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17798 $as_echo "$as_me: updating cache $cache_file" >&6;}
17799 cat confcache >$cache_file
17800 else
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17802 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17805 rm -f confcache
17807 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17808 # Let make expand exec_prefix.
17809 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17811 DEFS=-DHAVE_CONFIG_H
17813 ac_libobjs=
17814 ac_ltlibobjs=
17815 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17816 # 1. Remove the extension, and $U if already installed.
17817 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17818 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17819 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17820 # will be set to the directory where LIBOBJS objects are built.
17821 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17822 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17823 done
17824 LIBOBJS=$ac_libobjs
17826 LTLIBOBJS=$ac_ltlibobjs
17829 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17830 as_fn_error "conditional \"GENINSRC\" was never defined.
17831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17833 if test -n "$EXEEXT"; then
17834 am__EXEEXT_TRUE=
17835 am__EXEEXT_FALSE='#'
17836 else
17837 am__EXEEXT_TRUE='#'
17838 am__EXEEXT_FALSE=
17841 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17842 as_fn_error "conditional \"AMDEP\" was never defined.
17843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17845 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17846 as_fn_error "conditional \"am__fastdepCC\" was never defined.
17847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17849 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17850 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
17851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17853 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17854 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
17855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17857 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17858 as_fn_error "conditional \"BUILD_INFO\" was never defined.
17859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17861 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17862 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
17863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17866 if test -z "${HAVE_HWCAP_TRUE}" && test -z "${HAVE_HWCAP_FALSE}"; then
17867 as_fn_error "conditional \"HAVE_HWCAP\" was never defined.
17868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17870 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_FALSE}"; then
17871 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB\" was never defined.
17872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17874 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17875 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17878 if test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBITM_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17879 as_fn_error "conditional \"LIBITM_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17882 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
17883 as_fn_error "conditional \"ARCH_ARM\" was never defined.
17884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17886 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17887 as_fn_error "conditional \"ARCH_X86\" was never defined.
17888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17890 if test -z "${ARCH_X86_AVX_TRUE}" && test -z "${ARCH_X86_AVX_FALSE}"; then
17891 as_fn_error "conditional \"ARCH_X86_AVX\" was never defined.
17892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17894 if test -z "${ARCH_FUTEX_TRUE}" && test -z "${ARCH_FUTEX_FALSE}"; then
17895 as_fn_error "conditional \"ARCH_FUTEX\" was never defined.
17896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17899 : ${CONFIG_STATUS=./config.status}
17900 ac_write_fail=0
17901 ac_clean_files_save=$ac_clean_files
17902 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17904 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17905 as_write_fail=0
17906 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17907 #! $SHELL
17908 # Generated by $as_me.
17909 # Run this file to recreate the current configuration.
17910 # Compiler output produced by configure, useful for debugging
17911 # configure, is in config.log if it exists.
17913 debug=false
17914 ac_cs_recheck=false
17915 ac_cs_silent=false
17917 SHELL=\${CONFIG_SHELL-$SHELL}
17918 export SHELL
17919 _ASEOF
17920 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17921 ## -------------------- ##
17922 ## M4sh Initialization. ##
17923 ## -------------------- ##
17925 # Be more Bourne compatible
17926 DUALCASE=1; export DUALCASE # for MKS sh
17927 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17928 emulate sh
17929 NULLCMD=:
17930 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17931 # is contrary to our usage. Disable this feature.
17932 alias -g '${1+"$@"}'='"$@"'
17933 setopt NO_GLOB_SUBST
17934 else
17935 case `(set -o) 2>/dev/null` in #(
17936 *posix*) :
17937 set -o posix ;; #(
17938 *) :
17940 esac
17944 as_nl='
17946 export as_nl
17947 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17948 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17949 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17950 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17951 # Prefer a ksh shell builtin over an external printf program on Solaris,
17952 # but without wasting forks for bash or zsh.
17953 if test -z "$BASH_VERSION$ZSH_VERSION" \
17954 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17955 as_echo='print -r --'
17956 as_echo_n='print -rn --'
17957 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17958 as_echo='printf %s\n'
17959 as_echo_n='printf %s'
17960 else
17961 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17962 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17963 as_echo_n='/usr/ucb/echo -n'
17964 else
17965 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17966 as_echo_n_body='eval
17967 arg=$1;
17968 case $arg in #(
17969 *"$as_nl"*)
17970 expr "X$arg" : "X\\(.*\\)$as_nl";
17971 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17972 esac;
17973 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17975 export as_echo_n_body
17976 as_echo_n='sh -c $as_echo_n_body as_echo'
17978 export as_echo_body
17979 as_echo='sh -c $as_echo_body as_echo'
17982 # The user is always right.
17983 if test "${PATH_SEPARATOR+set}" != set; then
17984 PATH_SEPARATOR=:
17985 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17986 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17987 PATH_SEPARATOR=';'
17992 # IFS
17993 # We need space, tab and new line, in precisely that order. Quoting is
17994 # there to prevent editors from complaining about space-tab.
17995 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17996 # splitting by setting IFS to empty value.)
17997 IFS=" "" $as_nl"
17999 # Find who we are. Look in the path if we contain no directory separator.
18000 case $0 in #((
18001 *[\\/]* ) as_myself=$0 ;;
18002 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18003 for as_dir in $PATH
18005 IFS=$as_save_IFS
18006 test -z "$as_dir" && as_dir=.
18007 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18008 done
18009 IFS=$as_save_IFS
18012 esac
18013 # We did not find ourselves, most probably we were run as `sh COMMAND'
18014 # in which case we are not to be found in the path.
18015 if test "x$as_myself" = x; then
18016 as_myself=$0
18018 if test ! -f "$as_myself"; then
18019 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18020 exit 1
18023 # Unset variables that we do not need and which cause bugs (e.g. in
18024 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18025 # suppresses any "Segmentation fault" message there. '((' could
18026 # trigger a bug in pdksh 5.2.14.
18027 for as_var in BASH_ENV ENV MAIL MAILPATH
18028 do eval test x\${$as_var+set} = xset \
18029 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18030 done
18031 PS1='$ '
18032 PS2='> '
18033 PS4='+ '
18035 # NLS nuisances.
18036 LC_ALL=C
18037 export LC_ALL
18038 LANGUAGE=C
18039 export LANGUAGE
18041 # CDPATH.
18042 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18045 # as_fn_error ERROR [LINENO LOG_FD]
18046 # ---------------------------------
18047 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18048 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18049 # script with status $?, using 1 if that was 0.
18050 as_fn_error ()
18052 as_status=$?; test $as_status -eq 0 && as_status=1
18053 if test "$3"; then
18054 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18055 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18057 $as_echo "$as_me: error: $1" >&2
18058 as_fn_exit $as_status
18059 } # as_fn_error
18062 # as_fn_set_status STATUS
18063 # -----------------------
18064 # Set $? to STATUS, without forking.
18065 as_fn_set_status ()
18067 return $1
18068 } # as_fn_set_status
18070 # as_fn_exit STATUS
18071 # -----------------
18072 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18073 as_fn_exit ()
18075 set +e
18076 as_fn_set_status $1
18077 exit $1
18078 } # as_fn_exit
18080 # as_fn_unset VAR
18081 # ---------------
18082 # Portably unset VAR.
18083 as_fn_unset ()
18085 { eval $1=; unset $1;}
18087 as_unset=as_fn_unset
18088 # as_fn_append VAR VALUE
18089 # ----------------------
18090 # Append the text in VALUE to the end of the definition contained in VAR. Take
18091 # advantage of any shell optimizations that allow amortized linear growth over
18092 # repeated appends, instead of the typical quadratic growth present in naive
18093 # implementations.
18094 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18095 eval 'as_fn_append ()
18097 eval $1+=\$2
18099 else
18100 as_fn_append ()
18102 eval $1=\$$1\$2
18104 fi # as_fn_append
18106 # as_fn_arith ARG...
18107 # ------------------
18108 # Perform arithmetic evaluation on the ARGs, and store the result in the
18109 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18110 # must be portable across $(()) and expr.
18111 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18112 eval 'as_fn_arith ()
18114 as_val=$(( $* ))
18116 else
18117 as_fn_arith ()
18119 as_val=`expr "$@" || test $? -eq 1`
18121 fi # as_fn_arith
18124 if expr a : '\(a\)' >/dev/null 2>&1 &&
18125 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18126 as_expr=expr
18127 else
18128 as_expr=false
18131 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18132 as_basename=basename
18133 else
18134 as_basename=false
18137 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18138 as_dirname=dirname
18139 else
18140 as_dirname=false
18143 as_me=`$as_basename -- "$0" ||
18144 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18145 X"$0" : 'X\(//\)$' \| \
18146 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18147 $as_echo X/"$0" |
18148 sed '/^.*\/\([^/][^/]*\)\/*$/{
18149 s//\1/
18152 /^X\/\(\/\/\)$/{
18153 s//\1/
18156 /^X\/\(\/\).*/{
18157 s//\1/
18160 s/.*/./; q'`
18162 # Avoid depending upon Character Ranges.
18163 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18164 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18165 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18166 as_cr_digits='0123456789'
18167 as_cr_alnum=$as_cr_Letters$as_cr_digits
18169 ECHO_C= ECHO_N= ECHO_T=
18170 case `echo -n x` in #(((((
18171 -n*)
18172 case `echo 'xy\c'` in
18173 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18174 xy) ECHO_C='\c';;
18175 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18176 ECHO_T=' ';;
18177 esac;;
18179 ECHO_N='-n';;
18180 esac
18182 rm -f conf$$ conf$$.exe conf$$.file
18183 if test -d conf$$.dir; then
18184 rm -f conf$$.dir/conf$$.file
18185 else
18186 rm -f conf$$.dir
18187 mkdir conf$$.dir 2>/dev/null
18189 if (echo >conf$$.file) 2>/dev/null; then
18190 if ln -s conf$$.file conf$$ 2>/dev/null; then
18191 as_ln_s='ln -s'
18192 # ... but there are two gotchas:
18193 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18194 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18195 # In both cases, we have to default to `cp -p'.
18196 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18197 as_ln_s='cp -p'
18198 elif ln conf$$.file conf$$ 2>/dev/null; then
18199 as_ln_s=ln
18200 else
18201 as_ln_s='cp -p'
18203 else
18204 as_ln_s='cp -p'
18206 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18207 rmdir conf$$.dir 2>/dev/null
18210 # as_fn_mkdir_p
18211 # -------------
18212 # Create "$as_dir" as a directory, including parents if necessary.
18213 as_fn_mkdir_p ()
18216 case $as_dir in #(
18217 -*) as_dir=./$as_dir;;
18218 esac
18219 test -d "$as_dir" || eval $as_mkdir_p || {
18220 as_dirs=
18221 while :; do
18222 case $as_dir in #(
18223 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18224 *) as_qdir=$as_dir;;
18225 esac
18226 as_dirs="'$as_qdir' $as_dirs"
18227 as_dir=`$as_dirname -- "$as_dir" ||
18228 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18229 X"$as_dir" : 'X\(//\)[^/]' \| \
18230 X"$as_dir" : 'X\(//\)$' \| \
18231 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18232 $as_echo X"$as_dir" |
18233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18234 s//\1/
18237 /^X\(\/\/\)[^/].*/{
18238 s//\1/
18241 /^X\(\/\/\)$/{
18242 s//\1/
18245 /^X\(\/\).*/{
18246 s//\1/
18249 s/.*/./; q'`
18250 test -d "$as_dir" && break
18251 done
18252 test -z "$as_dirs" || eval "mkdir $as_dirs"
18253 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
18256 } # as_fn_mkdir_p
18257 if mkdir -p . 2>/dev/null; then
18258 as_mkdir_p='mkdir -p "$as_dir"'
18259 else
18260 test -d ./-p && rmdir ./-p
18261 as_mkdir_p=false
18264 if test -x / >/dev/null 2>&1; then
18265 as_test_x='test -x'
18266 else
18267 if ls -dL / >/dev/null 2>&1; then
18268 as_ls_L_option=L
18269 else
18270 as_ls_L_option=
18272 as_test_x='
18273 eval sh -c '\''
18274 if test -d "$1"; then
18275 test -d "$1/.";
18276 else
18277 case $1 in #(
18278 -*)set "./$1";;
18279 esac;
18280 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18281 ???[sx]*):;;*)false;;esac;fi
18282 '\'' sh
18285 as_executable_p=$as_test_x
18287 # Sed expression to map a string onto a valid CPP name.
18288 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18290 # Sed expression to map a string onto a valid variable name.
18291 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18294 exec 6>&1
18295 ## ----------------------------------- ##
18296 ## Main body of $CONFIG_STATUS script. ##
18297 ## ----------------------------------- ##
18298 _ASEOF
18299 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18302 # Save the log message, to keep $0 and so on meaningful, and to
18303 # report actual input values of CONFIG_FILES etc. instead of their
18304 # values after options handling.
18305 ac_log="
18306 This file was extended by GNU TM Runtime Library $as_me 1.0, which was
18307 generated by GNU Autoconf 2.64. Invocation command line was
18309 CONFIG_FILES = $CONFIG_FILES
18310 CONFIG_HEADERS = $CONFIG_HEADERS
18311 CONFIG_LINKS = $CONFIG_LINKS
18312 CONFIG_COMMANDS = $CONFIG_COMMANDS
18313 $ $0 $@
18315 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18318 _ACEOF
18320 case $ac_config_files in *"
18321 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18322 esac
18324 case $ac_config_headers in *"
18325 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18326 esac
18329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18330 # Files that config.status was made for.
18331 config_files="$ac_config_files"
18332 config_headers="$ac_config_headers"
18333 config_commands="$ac_config_commands"
18335 _ACEOF
18337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18338 ac_cs_usage="\
18339 \`$as_me' instantiates files and other configuration actions
18340 from templates according to the current configuration. Unless the files
18341 and actions are specified as TAGs, all are instantiated by default.
18343 Usage: $0 [OPTION]... [TAG]...
18345 -h, --help print this help, then exit
18346 -V, --version print version number and configuration settings, then exit
18347 -q, --quiet, --silent
18348 do not print progress messages
18349 -d, --debug don't remove temporary files
18350 --recheck update $as_me by reconfiguring in the same conditions
18351 --file=FILE[:TEMPLATE]
18352 instantiate the configuration file FILE
18353 --header=FILE[:TEMPLATE]
18354 instantiate the configuration header FILE
18356 Configuration files:
18357 $config_files
18359 Configuration headers:
18360 $config_headers
18362 Configuration commands:
18363 $config_commands
18365 Report bugs to the package provider.
18366 GNU TM Runtime Library home page: <http://www.gnu.org/software/libitm/>.
18367 General help using GNU software: <http://www.gnu.org/gethelp/>."
18369 _ACEOF
18370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18371 ac_cs_version="\\
18372 GNU TM Runtime Library config.status 1.0
18373 configured by $0, generated by GNU Autoconf 2.64,
18374 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18376 Copyright (C) 2009 Free Software Foundation, Inc.
18377 This config.status script is free software; the Free Software Foundation
18378 gives unlimited permission to copy, distribute and modify it."
18380 ac_pwd='$ac_pwd'
18381 srcdir='$srcdir'
18382 INSTALL='$INSTALL'
18383 MKDIR_P='$MKDIR_P'
18384 AWK='$AWK'
18385 test -n "\$AWK" || AWK=awk
18386 _ACEOF
18388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18389 # The default lists apply if the user does not specify any file.
18390 ac_need_defaults=:
18391 while test $# != 0
18393 case $1 in
18394 --*=*)
18395 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18396 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18397 ac_shift=:
18400 ac_option=$1
18401 ac_optarg=$2
18402 ac_shift=shift
18404 esac
18406 case $ac_option in
18407 # Handling of the options.
18408 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18409 ac_cs_recheck=: ;;
18410 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18411 $as_echo "$ac_cs_version"; exit ;;
18412 --debug | --debu | --deb | --de | --d | -d )
18413 debug=: ;;
18414 --file | --fil | --fi | --f )
18415 $ac_shift
18416 case $ac_optarg in
18417 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18418 esac
18419 as_fn_append CONFIG_FILES " '$ac_optarg'"
18420 ac_need_defaults=false;;
18421 --header | --heade | --head | --hea )
18422 $ac_shift
18423 case $ac_optarg in
18424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18425 esac
18426 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18427 ac_need_defaults=false;;
18428 --he | --h)
18429 # Conflict between --help and --header
18430 as_fn_error "ambiguous option: \`$1'
18431 Try \`$0 --help' for more information.";;
18432 --help | --hel | -h )
18433 $as_echo "$ac_cs_usage"; exit ;;
18434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18435 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18436 ac_cs_silent=: ;;
18438 # This is an error.
18439 -*) as_fn_error "unrecognized option: \`$1'
18440 Try \`$0 --help' for more information." ;;
18442 *) as_fn_append ac_config_targets " $1"
18443 ac_need_defaults=false ;;
18445 esac
18446 shift
18447 done
18449 ac_configure_extra_args=
18451 if $ac_cs_silent; then
18452 exec 6>/dev/null
18453 ac_configure_extra_args="$ac_configure_extra_args --silent"
18456 _ACEOF
18457 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18458 if \$ac_cs_recheck; then
18459 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18460 shift
18461 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18462 CONFIG_SHELL='$SHELL'
18463 export CONFIG_SHELL
18464 exec "\$@"
18467 _ACEOF
18468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18469 exec 5>>config.log
18471 echo
18472 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18473 ## Running $as_me. ##
18474 _ASBOX
18475 $as_echo "$ac_log"
18476 } >&5
18478 _ACEOF
18479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18481 # INIT-COMMANDS
18484 srcdir="$srcdir"
18485 host="$host"
18486 target="$target"
18487 with_multisubdir="$with_multisubdir"
18488 with_multisrctop="$with_multisrctop"
18489 with_target_subdir="$with_target_subdir"
18490 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18491 multi_basedir="$multi_basedir"
18492 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18493 CC="$CC"
18494 CXX="$CXX"
18495 GFORTRAN="$GFORTRAN"
18496 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18499 # The HP-UX ksh and POSIX shell print the target directory to stdout
18500 # if CDPATH is set.
18501 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18503 sed_quote_subst='$sed_quote_subst'
18504 double_quote_subst='$double_quote_subst'
18505 delay_variable_subst='$delay_variable_subst'
18506 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18507 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18508 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18509 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18510 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18511 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18512 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18513 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18514 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18515 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18516 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18517 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18518 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18519 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18520 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18521 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18522 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18523 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18524 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18525 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18526 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18527 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18528 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18529 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18530 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18531 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18532 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18533 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18534 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18535 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18536 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18537 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18538 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18539 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18540 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18541 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18542 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18543 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18544 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18545 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18546 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18547 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18548 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18549 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18550 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18551 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18552 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18553 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18554 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"`'
18555 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18556 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18557 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18558 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18559 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18560 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18561 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18562 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18563 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18564 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18565 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18566 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18567 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18568 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18569 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18570 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18571 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18572 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18573 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18574 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18575 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18576 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18577 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18578 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18579 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18580 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18581 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18582 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18583 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18584 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18585 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18586 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18587 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18588 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18589 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18590 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18591 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18592 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18593 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18594 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18595 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18596 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18597 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18598 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18599 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18600 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18601 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18602 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18603 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18604 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18605 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18606 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18607 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18608 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18609 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18610 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18611 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18612 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18613 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18614 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18615 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18616 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18617 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18618 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18619 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18620 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18621 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18622 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18623 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18624 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18625 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18626 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18627 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18628 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18629 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18630 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18631 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18632 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18633 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18634 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18635 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18636 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18637 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18638 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18639 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18640 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18641 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18642 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18643 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18644 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18645 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18646 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18647 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18648 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18649 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18650 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18651 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18652 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18653 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18654 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18655 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18656 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18657 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18658 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18659 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18660 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18661 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18662 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18663 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18664 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18665 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18666 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18667 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
18668 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18669 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18670 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18671 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18672 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18673 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18674 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18675 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18676 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18677 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18678 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18679 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18680 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18682 LTCC='$LTCC'
18683 LTCFLAGS='$LTCFLAGS'
18684 compiler='$compiler_DEFAULT'
18686 # A function that is used when there is no print builtin or printf.
18687 func_fallback_echo ()
18689 eval 'cat <<_LTECHO_EOF
18691 _LTECHO_EOF'
18694 # Quote evaled strings.
18695 for var in SHELL \
18696 ECHO \
18697 SED \
18698 GREP \
18699 EGREP \
18700 FGREP \
18701 LD \
18702 NM \
18703 LN_S \
18704 lt_SP2NL \
18705 lt_NL2SP \
18706 reload_flag \
18707 OBJDUMP \
18708 deplibs_check_method \
18709 file_magic_cmd \
18710 AR \
18711 AR_FLAGS \
18712 STRIP \
18713 RANLIB \
18714 CC \
18715 CFLAGS \
18716 compiler \
18717 lt_cv_sys_global_symbol_pipe \
18718 lt_cv_sys_global_symbol_to_cdecl \
18719 lt_cv_sys_global_symbol_to_c_name_address \
18720 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18721 lt_prog_compiler_no_builtin_flag \
18722 lt_prog_compiler_wl \
18723 lt_prog_compiler_pic \
18724 lt_prog_compiler_static \
18725 lt_cv_prog_compiler_c_o \
18726 need_locks \
18727 DSYMUTIL \
18728 NMEDIT \
18729 LIPO \
18730 OTOOL \
18731 OTOOL64 \
18732 shrext_cmds \
18733 export_dynamic_flag_spec \
18734 whole_archive_flag_spec \
18735 compiler_needs_object \
18736 with_gnu_ld \
18737 allow_undefined_flag \
18738 no_undefined_flag \
18739 hardcode_libdir_flag_spec \
18740 hardcode_libdir_flag_spec_ld \
18741 hardcode_libdir_separator \
18742 fix_srcfile_path \
18743 exclude_expsyms \
18744 include_expsyms \
18745 file_list_spec \
18746 variables_saved_for_relink \
18747 libname_spec \
18748 library_names_spec \
18749 soname_spec \
18750 install_override_mode \
18751 finish_eval \
18752 old_striplib \
18753 striplib \
18754 compiler_lib_search_dirs \
18755 predep_objects \
18756 postdep_objects \
18757 predeps \
18758 postdeps \
18759 compiler_lib_search_path \
18760 LD_CXX \
18761 reload_flag_CXX \
18762 compiler_CXX \
18763 lt_prog_compiler_no_builtin_flag_CXX \
18764 lt_prog_compiler_wl_CXX \
18765 lt_prog_compiler_pic_CXX \
18766 lt_prog_compiler_static_CXX \
18767 lt_cv_prog_compiler_c_o_CXX \
18768 export_dynamic_flag_spec_CXX \
18769 whole_archive_flag_spec_CXX \
18770 compiler_needs_object_CXX \
18771 with_gnu_ld_CXX \
18772 allow_undefined_flag_CXX \
18773 no_undefined_flag_CXX \
18774 hardcode_libdir_flag_spec_CXX \
18775 hardcode_libdir_flag_spec_ld_CXX \
18776 hardcode_libdir_separator_CXX \
18777 fix_srcfile_path_CXX \
18778 exclude_expsyms_CXX \
18779 include_expsyms_CXX \
18780 file_list_spec_CXX \
18781 compiler_lib_search_dirs_CXX \
18782 predep_objects_CXX \
18783 postdep_objects_CXX \
18784 predeps_CXX \
18785 postdeps_CXX \
18786 compiler_lib_search_path_CXX; do
18787 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18788 *[\\\\\\\`\\"\\\$]*)
18789 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18792 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18794 esac
18795 done
18797 # Double-quote double-evaled strings.
18798 for var in reload_cmds \
18799 old_postinstall_cmds \
18800 old_postuninstall_cmds \
18801 old_archive_cmds \
18802 extract_expsyms_cmds \
18803 old_archive_from_new_cmds \
18804 old_archive_from_expsyms_cmds \
18805 archive_cmds \
18806 archive_expsym_cmds \
18807 module_cmds \
18808 module_expsym_cmds \
18809 export_symbols_cmds \
18810 prelink_cmds \
18811 postinstall_cmds \
18812 postuninstall_cmds \
18813 finish_cmds \
18814 sys_lib_search_path_spec \
18815 sys_lib_dlsearch_path_spec \
18816 reload_cmds_CXX \
18817 old_archive_cmds_CXX \
18818 old_archive_from_new_cmds_CXX \
18819 old_archive_from_expsyms_cmds_CXX \
18820 archive_cmds_CXX \
18821 archive_expsym_cmds_CXX \
18822 module_cmds_CXX \
18823 module_expsym_cmds_CXX \
18824 export_symbols_cmds_CXX \
18825 prelink_cmds_CXX; do
18826 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18827 *[\\\\\\\`\\"\\\$]*)
18828 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18831 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18833 esac
18834 done
18836 ac_aux_dir='$ac_aux_dir'
18837 xsi_shell='$xsi_shell'
18838 lt_shell_append='$lt_shell_append'
18840 # See if we are running on zsh, and set the options which allow our
18841 # commands through without removal of \ escapes INIT.
18842 if test -n "\${ZSH_VERSION+set}" ; then
18843 setopt NO_GLOB_SUBST
18847 PACKAGE='$PACKAGE'
18848 VERSION='$VERSION'
18849 TIMESTAMP='$TIMESTAMP'
18850 RM='$RM'
18851 ofile='$ofile'
18858 GCC="$GCC"
18859 CC="$CC"
18860 acx_cv_header_stdint="$acx_cv_header_stdint"
18861 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18862 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18863 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18864 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18865 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18866 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18867 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18868 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18869 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18870 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18871 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18872 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18873 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18876 _ACEOF
18878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18880 # Handling of arguments.
18881 for ac_config_target in $ac_config_targets
18883 case $ac_config_target in
18884 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18885 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18886 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18887 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18888 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18889 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18890 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18891 "libitm.spec") CONFIG_FILES="$CONFIG_FILES libitm.spec" ;;
18893 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18894 esac
18895 done
18898 # If the user did not use the arguments to specify the items to instantiate,
18899 # then the envvar interface is used. Set only those that are not.
18900 # We use the long form for the default assignment because of an extremely
18901 # bizarre bug on SunOS 4.1.3.
18902 if $ac_need_defaults; then
18903 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18904 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18905 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18908 # Have a temporary directory for convenience. Make it in the build tree
18909 # simply because there is no reason against having it here, and in addition,
18910 # creating and moving files from /tmp can sometimes cause problems.
18911 # Hook for its removal unless debugging.
18912 # Note that there is a small window in which the directory will not be cleaned:
18913 # after its creation but before its name has been assigned to `$tmp'.
18914 $debug ||
18916 tmp=
18917 trap 'exit_status=$?
18918 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18920 trap 'as_fn_exit 1' 1 2 13 15
18922 # Create a (secure) tmp directory for tmp files.
18925 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18926 test -n "$tmp" && test -d "$tmp"
18927 } ||
18929 tmp=./conf$$-$RANDOM
18930 (umask 077 && mkdir "$tmp")
18931 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
18933 # Set up the scripts for CONFIG_FILES section.
18934 # No need to generate them if there are no CONFIG_FILES.
18935 # This happens for instance with `./config.status config.h'.
18936 if test -n "$CONFIG_FILES"; then
18939 ac_cr=`echo X | tr X '\015'`
18940 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18941 # But we know of no other shell where ac_cr would be empty at this
18942 # point, so we can use a bashism as a fallback.
18943 if test "x$ac_cr" = x; then
18944 eval ac_cr=\$\'\\r\'
18946 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18947 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18948 ac_cs_awk_cr='\r'
18949 else
18950 ac_cs_awk_cr=$ac_cr
18953 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18954 _ACEOF
18958 echo "cat >conf$$subs.awk <<_ACEOF" &&
18959 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18960 echo "_ACEOF"
18961 } >conf$$subs.sh ||
18962 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18963 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18964 ac_delim='%!_!# '
18965 for ac_last_try in false false false false false :; do
18966 . ./conf$$subs.sh ||
18967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18969 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18970 if test $ac_delim_n = $ac_delim_num; then
18971 break
18972 elif $ac_last_try; then
18973 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
18974 else
18975 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18977 done
18978 rm -f conf$$subs.sh
18980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18981 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18982 _ACEOF
18983 sed -n '
18985 s/^/S["/; s/!.*/"]=/
18988 s/^[^!]*!//
18989 :repl
18990 t repl
18991 s/'"$ac_delim"'$//
18992 t delim
18995 s/\(.\{148\}\).*/\1/
18996 t more1
18997 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19000 b repl
19001 :more1
19002 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19005 s/.\{148\}//
19006 t nl
19007 :delim
19009 s/\(.\{148\}\).*/\1/
19010 t more2
19011 s/["\\]/\\&/g; s/^/"/; s/$/"/
19014 :more2
19015 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19018 s/.\{148\}//
19019 t delim
19020 ' <conf$$subs.awk | sed '
19021 /^[^""]/{
19023 s/\n//
19025 ' >>$CONFIG_STATUS || ac_write_fail=1
19026 rm -f conf$$subs.awk
19027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19028 _ACAWK
19029 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19030 for (key in S) S_is_set[key] = 1
19031 FS = "\a"
19035 line = $ 0
19036 nfields = split(line, field, "@")
19037 substed = 0
19038 len = length(field[1])
19039 for (i = 2; i < nfields; i++) {
19040 key = field[i]
19041 keylen = length(key)
19042 if (S_is_set[key]) {
19043 value = S[key]
19044 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19045 len += length(value) + length(field[++i])
19046 substed = 1
19047 } else
19048 len += 1 + keylen
19051 print line
19054 _ACAWK
19055 _ACEOF
19056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19057 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19058 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19059 else
19061 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19062 || as_fn_error "could not setup config files machinery" "$LINENO" 5
19063 _ACEOF
19065 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19066 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19067 # trailing colons and then remove the whole line if VPATH becomes empty
19068 # (actually we leave an empty line to preserve line numbers).
19069 if test "x$srcdir" = x.; then
19070 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19071 s/:*\$(srcdir):*/:/
19072 s/:*\${srcdir}:*/:/
19073 s/:*@srcdir@:*/:/
19074 s/^\([^=]*=[ ]*\):*/\1/
19075 s/:*$//
19076 s/^[^=]*=[ ]*$//
19080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19081 fi # test -n "$CONFIG_FILES"
19083 # Set up the scripts for CONFIG_HEADERS section.
19084 # No need to generate them if there are no CONFIG_HEADERS.
19085 # This happens for instance with `./config.status Makefile'.
19086 if test -n "$CONFIG_HEADERS"; then
19087 cat >"$tmp/defines.awk" <<\_ACAWK ||
19088 BEGIN {
19089 _ACEOF
19091 # Transform confdefs.h into an awk script `defines.awk', embedded as
19092 # here-document in config.status, that substitutes the proper values into
19093 # config.h.in to produce config.h.
19095 # Create a delimiter string that does not exist in confdefs.h, to ease
19096 # handling of long lines.
19097 ac_delim='%!_!# '
19098 for ac_last_try in false false :; do
19099 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19100 if test -z "$ac_t"; then
19101 break
19102 elif $ac_last_try; then
19103 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19104 else
19105 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19107 done
19109 # For the awk script, D is an array of macro values keyed by name,
19110 # likewise P contains macro parameters if any. Preserve backslash
19111 # newline sequences.
19113 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19114 sed -n '
19115 s/.\{148\}/&'"$ac_delim"'/g
19116 t rset
19117 :rset
19118 s/^[ ]*#[ ]*define[ ][ ]*/ /
19119 t def
19121 :def
19122 s/\\$//
19123 t bsnl
19124 s/["\\]/\\&/g
19125 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19126 D["\1"]=" \3"/p
19127 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19129 :bsnl
19130 s/["\\]/\\&/g
19131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19132 D["\1"]=" \3\\\\\\n"\\/p
19133 t cont
19134 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19135 t cont
19137 :cont
19139 s/.\{148\}/&'"$ac_delim"'/g
19140 t clear
19141 :clear
19142 s/\\$//
19143 t bsnlc
19144 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19146 :bsnlc
19147 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19148 b cont
19149 ' <confdefs.h | sed '
19150 s/'"$ac_delim"'/"\\\
19151 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19154 for (key in D) D_is_set[key] = 1
19155 FS = "\a"
19157 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19158 line = \$ 0
19159 split(line, arg, " ")
19160 if (arg[1] == "#") {
19161 defundef = arg[2]
19162 mac1 = arg[3]
19163 } else {
19164 defundef = substr(arg[1], 2)
19165 mac1 = arg[2]
19167 split(mac1, mac2, "(") #)
19168 macro = mac2[1]
19169 prefix = substr(line, 1, index(line, defundef) - 1)
19170 if (D_is_set[macro]) {
19171 # Preserve the white space surrounding the "#".
19172 print prefix "define", macro P[macro] D[macro]
19173 next
19174 } else {
19175 # Replace #undef with comments. This is necessary, for example,
19176 # in the case of _POSIX_SOURCE, which is predefined and required
19177 # on some systems where configure will not decide to define it.
19178 if (defundef == "undef") {
19179 print "/*", prefix defundef, macro, "*/"
19180 next
19184 { print }
19185 _ACAWK
19186 _ACEOF
19187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19188 as_fn_error "could not setup config headers machinery" "$LINENO" 5
19189 fi # test -n "$CONFIG_HEADERS"
19192 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19193 shift
19194 for ac_tag
19196 case $ac_tag in
19197 :[FHLC]) ac_mode=$ac_tag; continue;;
19198 esac
19199 case $ac_mode$ac_tag in
19200 :[FHL]*:*);;
19201 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19202 :[FH]-) ac_tag=-:-;;
19203 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19204 esac
19205 ac_save_IFS=$IFS
19206 IFS=:
19207 set x $ac_tag
19208 IFS=$ac_save_IFS
19209 shift
19210 ac_file=$1
19211 shift
19213 case $ac_mode in
19214 :L) ac_source=$1;;
19215 :[FH])
19216 ac_file_inputs=
19217 for ac_f
19219 case $ac_f in
19220 -) ac_f="$tmp/stdin";;
19221 *) # Look for the file first in the build tree, then in the source tree
19222 # (if the path is not absolute). The absolute path cannot be DOS-style,
19223 # because $ac_f cannot contain `:'.
19224 test -f "$ac_f" ||
19225 case $ac_f in
19226 [\\/$]*) false;;
19227 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19228 esac ||
19229 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19230 esac
19231 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19232 as_fn_append ac_file_inputs " '$ac_f'"
19233 done
19235 # Let's still pretend it is `configure' which instantiates (i.e., don't
19236 # use $as_me), people would be surprised to read:
19237 # /* config.h. Generated by config.status. */
19238 configure_input='Generated from '`
19239 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19240 `' by configure.'
19241 if test x"$ac_file" != x-; then
19242 configure_input="$ac_file. $configure_input"
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19244 $as_echo "$as_me: creating $ac_file" >&6;}
19246 # Neutralize special characters interpreted by sed in replacement strings.
19247 case $configure_input in #(
19248 *\&* | *\|* | *\\* )
19249 ac_sed_conf_input=`$as_echo "$configure_input" |
19250 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19251 *) ac_sed_conf_input=$configure_input;;
19252 esac
19254 case $ac_tag in
19255 *:-:* | *:-) cat >"$tmp/stdin" \
19256 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19257 esac
19259 esac
19261 ac_dir=`$as_dirname -- "$ac_file" ||
19262 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19263 X"$ac_file" : 'X\(//\)[^/]' \| \
19264 X"$ac_file" : 'X\(//\)$' \| \
19265 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19266 $as_echo X"$ac_file" |
19267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19268 s//\1/
19271 /^X\(\/\/\)[^/].*/{
19272 s//\1/
19275 /^X\(\/\/\)$/{
19276 s//\1/
19279 /^X\(\/\).*/{
19280 s//\1/
19283 s/.*/./; q'`
19284 as_dir="$ac_dir"; as_fn_mkdir_p
19285 ac_builddir=.
19287 case "$ac_dir" in
19288 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19290 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19291 # A ".." for each directory in $ac_dir_suffix.
19292 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19293 case $ac_top_builddir_sub in
19294 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19295 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19296 esac ;;
19297 esac
19298 ac_abs_top_builddir=$ac_pwd
19299 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19300 # for backward compatibility:
19301 ac_top_builddir=$ac_top_build_prefix
19303 case $srcdir in
19304 .) # We are building in place.
19305 ac_srcdir=.
19306 ac_top_srcdir=$ac_top_builddir_sub
19307 ac_abs_top_srcdir=$ac_pwd ;;
19308 [\\/]* | ?:[\\/]* ) # Absolute name.
19309 ac_srcdir=$srcdir$ac_dir_suffix;
19310 ac_top_srcdir=$srcdir
19311 ac_abs_top_srcdir=$srcdir ;;
19312 *) # Relative name.
19313 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19314 ac_top_srcdir=$ac_top_build_prefix$srcdir
19315 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19316 esac
19317 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19320 case $ac_mode in
19323 # CONFIG_FILE
19326 case $INSTALL in
19327 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19328 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19329 esac
19330 ac_MKDIR_P=$MKDIR_P
19331 case $MKDIR_P in
19332 [\\/$]* | ?:[\\/]* ) ;;
19333 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19334 esac
19335 _ACEOF
19337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19338 # If the template does not know about datarootdir, expand it.
19339 # FIXME: This hack should be removed a few years after 2.60.
19340 ac_datarootdir_hack=; ac_datarootdir_seen=
19341 ac_sed_dataroot='
19342 /datarootdir/ {
19346 /@datadir@/p
19347 /@docdir@/p
19348 /@infodir@/p
19349 /@localedir@/p
19350 /@mandir@/p'
19351 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19352 *datarootdir*) ac_datarootdir_seen=yes;;
19353 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19355 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19356 _ACEOF
19357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19358 ac_datarootdir_hack='
19359 s&@datadir@&$datadir&g
19360 s&@docdir@&$docdir&g
19361 s&@infodir@&$infodir&g
19362 s&@localedir@&$localedir&g
19363 s&@mandir@&$mandir&g
19364 s&\\\${datarootdir}&$datarootdir&g' ;;
19365 esac
19366 _ACEOF
19368 # Neutralize VPATH when `$srcdir' = `.'.
19369 # Shell code in configure.ac might set extrasub.
19370 # FIXME: do we really want to maintain this feature?
19371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19372 ac_sed_extra="$ac_vpsub
19373 $extrasub
19374 _ACEOF
19375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19377 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19378 s|@configure_input@|$ac_sed_conf_input|;t t
19379 s&@top_builddir@&$ac_top_builddir_sub&;t t
19380 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19381 s&@srcdir@&$ac_srcdir&;t t
19382 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19383 s&@top_srcdir@&$ac_top_srcdir&;t t
19384 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19385 s&@builddir@&$ac_builddir&;t t
19386 s&@abs_builddir@&$ac_abs_builddir&;t t
19387 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19388 s&@INSTALL@&$ac_INSTALL&;t t
19389 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19390 $ac_datarootdir_hack
19392 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19393 || as_fn_error "could not create $ac_file" "$LINENO" 5
19395 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19396 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19397 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19399 which seems to be undefined. Please make sure it is defined." >&5
19400 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19401 which seems to be undefined. Please make sure it is defined." >&2;}
19403 rm -f "$tmp/stdin"
19404 case $ac_file in
19405 -) cat "$tmp/out" && rm -f "$tmp/out";;
19406 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19407 esac \
19408 || as_fn_error "could not create $ac_file" "$LINENO" 5
19412 # CONFIG_HEADER
19414 if test x"$ac_file" != x-; then
19416 $as_echo "/* $configure_input */" \
19417 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19418 } >"$tmp/config.h" \
19419 || as_fn_error "could not create $ac_file" "$LINENO" 5
19420 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19422 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19423 else
19424 rm -f "$ac_file"
19425 mv "$tmp/config.h" "$ac_file" \
19426 || as_fn_error "could not create $ac_file" "$LINENO" 5
19428 else
19429 $as_echo "/* $configure_input */" \
19430 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19431 || as_fn_error "could not create -" "$LINENO" 5
19433 # Compute "$ac_file"'s index in $config_headers.
19434 _am_arg="$ac_file"
19435 _am_stamp_count=1
19436 for _am_header in $config_headers :; do
19437 case $_am_header in
19438 $_am_arg | $_am_arg:* )
19439 break ;;
19441 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19442 esac
19443 done
19444 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19445 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19446 X"$_am_arg" : 'X\(//\)[^/]' \| \
19447 X"$_am_arg" : 'X\(//\)$' \| \
19448 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19449 $as_echo X"$_am_arg" |
19450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19451 s//\1/
19454 /^X\(\/\/\)[^/].*/{
19455 s//\1/
19458 /^X\(\/\/\)$/{
19459 s//\1/
19462 /^X\(\/\).*/{
19463 s//\1/
19466 s/.*/./; q'`/stamp-h$_am_stamp_count
19469 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19470 $as_echo "$as_me: executing $ac_file commands" >&6;}
19472 esac
19475 case $ac_file$ac_mode in
19476 "default-1":C)
19477 # Only add multilib support code if we just rebuilt the top-level
19478 # Makefile.
19479 case " $CONFIG_FILES " in
19480 *" Makefile "*)
19481 ac_file=Makefile . ${multi_basedir}/config-ml.in
19483 esac ;;
19484 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19485 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19486 # are listed without --file. Let's play safe and only enable the eval
19487 # if we detect the quoting.
19488 case $CONFIG_FILES in
19489 *\'*) eval set x "$CONFIG_FILES" ;;
19490 *) set x $CONFIG_FILES ;;
19491 esac
19492 shift
19493 for mf
19495 # Strip MF so we end up with the name of the file.
19496 mf=`echo "$mf" | sed -e 's/:.*$//'`
19497 # Check whether this is an Automake generated Makefile or not.
19498 # We used to match only the files named `Makefile.in', but
19499 # some people rename them; so instead we look at the file content.
19500 # Grep'ing the first line is not enough: some people post-process
19501 # each Makefile.in and add a new line on top of each file to say so.
19502 # Grep'ing the whole file is not good either: AIX grep has a line
19503 # limit of 2048, but all sed's we know have understand at least 4000.
19504 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19505 dirpart=`$as_dirname -- "$mf" ||
19506 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19507 X"$mf" : 'X\(//\)[^/]' \| \
19508 X"$mf" : 'X\(//\)$' \| \
19509 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19510 $as_echo X"$mf" |
19511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19512 s//\1/
19515 /^X\(\/\/\)[^/].*/{
19516 s//\1/
19519 /^X\(\/\/\)$/{
19520 s//\1/
19523 /^X\(\/\).*/{
19524 s//\1/
19527 s/.*/./; q'`
19528 else
19529 continue
19531 # Extract the definition of DEPDIR, am__include, and am__quote
19532 # from the Makefile without running `make'.
19533 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19534 test -z "$DEPDIR" && continue
19535 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19536 test -z "am__include" && continue
19537 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19538 # When using ansi2knr, U may be empty or an underscore; expand it
19539 U=`sed -n 's/^U = //p' < "$mf"`
19540 # Find all dependency output files, they are included files with
19541 # $(DEPDIR) in their names. We invoke sed twice because it is the
19542 # simplest approach to changing $(DEPDIR) to its actual value in the
19543 # expansion.
19544 for file in `sed -n "
19545 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19546 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19547 # Make sure the directory exists.
19548 test -f "$dirpart/$file" && continue
19549 fdir=`$as_dirname -- "$file" ||
19550 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19551 X"$file" : 'X\(//\)[^/]' \| \
19552 X"$file" : 'X\(//\)$' \| \
19553 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19554 $as_echo X"$file" |
19555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19556 s//\1/
19559 /^X\(\/\/\)[^/].*/{
19560 s//\1/
19563 /^X\(\/\/\)$/{
19564 s//\1/
19567 /^X\(\/\).*/{
19568 s//\1/
19571 s/.*/./; q'`
19572 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19573 # echo "creating $dirpart/$file"
19574 echo '# dummy' > "$dirpart/$file"
19575 done
19576 done
19579 "libtool":C)
19581 # See if we are running on zsh, and set the options which allow our
19582 # commands through without removal of \ escapes.
19583 if test -n "${ZSH_VERSION+set}" ; then
19584 setopt NO_GLOB_SUBST
19587 cfgfile="${ofile}T"
19588 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19589 $RM "$cfgfile"
19591 cat <<_LT_EOF >> "$cfgfile"
19592 #! $SHELL
19594 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19595 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19596 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19597 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19599 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19600 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19601 # Written by Gordon Matzigkeit, 1996
19603 # This file is part of GNU Libtool.
19605 # GNU Libtool is free software; you can redistribute it and/or
19606 # modify it under the terms of the GNU General Public License as
19607 # published by the Free Software Foundation; either version 2 of
19608 # the License, or (at your option) any later version.
19610 # As a special exception to the GNU General Public License,
19611 # if you distribute this file as part of a program or library that
19612 # is built using GNU Libtool, you may include this file under the
19613 # same distribution terms that you use for the rest of that program.
19615 # GNU Libtool is distributed in the hope that it will be useful,
19616 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19617 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19618 # GNU General Public License for more details.
19620 # You should have received a copy of the GNU General Public License
19621 # along with GNU Libtool; see the file COPYING. If not, a copy
19622 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19623 # obtained by writing to the Free Software Foundation, Inc.,
19624 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19627 # The names of the tagged configurations supported by this script.
19628 available_tags="CXX "
19630 # ### BEGIN LIBTOOL CONFIG
19632 # Which release of libtool.m4 was used?
19633 macro_version=$macro_version
19634 macro_revision=$macro_revision
19636 # Whether or not to build shared libraries.
19637 build_libtool_libs=$enable_shared
19639 # Whether or not to build static libraries.
19640 build_old_libs=$enable_static
19642 # What type of objects to build.
19643 pic_mode=$pic_mode
19645 # Whether or not to optimize for fast installation.
19646 fast_install=$enable_fast_install
19648 # Shell to use when invoking shell scripts.
19649 SHELL=$lt_SHELL
19651 # An echo program that protects backslashes.
19652 ECHO=$lt_ECHO
19654 # The host system.
19655 host_alias=$host_alias
19656 host=$host
19657 host_os=$host_os
19659 # The build system.
19660 build_alias=$build_alias
19661 build=$build
19662 build_os=$build_os
19664 # A sed program that does not truncate output.
19665 SED=$lt_SED
19667 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19668 Xsed="\$SED -e 1s/^X//"
19670 # A grep program that handles long lines.
19671 GREP=$lt_GREP
19673 # An ERE matcher.
19674 EGREP=$lt_EGREP
19676 # A literal string matcher.
19677 FGREP=$lt_FGREP
19679 # A BSD- or MS-compatible name lister.
19680 NM=$lt_NM
19682 # Whether we need soft or hard links.
19683 LN_S=$lt_LN_S
19685 # What is the maximum length of a command?
19686 max_cmd_len=$max_cmd_len
19688 # Object file suffix (normally "o").
19689 objext=$ac_objext
19691 # Executable file suffix (normally "").
19692 exeext=$exeext
19694 # whether the shell understands "unset".
19695 lt_unset=$lt_unset
19697 # turn spaces into newlines.
19698 SP2NL=$lt_lt_SP2NL
19700 # turn newlines into spaces.
19701 NL2SP=$lt_lt_NL2SP
19703 # An object symbol dumper.
19704 OBJDUMP=$lt_OBJDUMP
19706 # Method to check whether dependent libraries are shared objects.
19707 deplibs_check_method=$lt_deplibs_check_method
19709 # Command to use when deplibs_check_method == "file_magic".
19710 file_magic_cmd=$lt_file_magic_cmd
19712 # The archiver.
19713 AR=$lt_AR
19714 AR_FLAGS=$lt_AR_FLAGS
19716 # A symbol stripping program.
19717 STRIP=$lt_STRIP
19719 # Commands used to install an old-style archive.
19720 RANLIB=$lt_RANLIB
19721 old_postinstall_cmds=$lt_old_postinstall_cmds
19722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19724 # Whether to use a lock for old archive extraction.
19725 lock_old_archive_extraction=$lock_old_archive_extraction
19727 # A C compiler.
19728 LTCC=$lt_CC
19730 # LTCC compiler flags.
19731 LTCFLAGS=$lt_CFLAGS
19733 # Take the output of nm and produce a listing of raw symbols and C names.
19734 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19736 # Transform the output of nm in a proper C declaration.
19737 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19739 # Transform the output of nm in a C name address pair.
19740 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19742 # Transform the output of nm in a C name address pair when lib prefix is needed.
19743 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19745 # The name of the directory that contains temporary libtool files.
19746 objdir=$objdir
19748 # Used to examine libraries when file_magic_cmd begins with "file".
19749 MAGIC_CMD=$MAGIC_CMD
19751 # Must we lock files when doing compilation?
19752 need_locks=$lt_need_locks
19754 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19755 DSYMUTIL=$lt_DSYMUTIL
19757 # Tool to change global to local symbols on Mac OS X.
19758 NMEDIT=$lt_NMEDIT
19760 # Tool to manipulate fat objects and archives on Mac OS X.
19761 LIPO=$lt_LIPO
19763 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19764 OTOOL=$lt_OTOOL
19766 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19767 OTOOL64=$lt_OTOOL64
19769 # Old archive suffix (normally "a").
19770 libext=$libext
19772 # Shared library suffix (normally ".so").
19773 shrext_cmds=$lt_shrext_cmds
19775 # The commands to extract the exported symbol list from a shared archive.
19776 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19778 # Variables whose values should be saved in libtool wrapper scripts and
19779 # restored at link time.
19780 variables_saved_for_relink=$lt_variables_saved_for_relink
19782 # Do we need the "lib" prefix for modules?
19783 need_lib_prefix=$need_lib_prefix
19785 # Do we need a version for libraries?
19786 need_version=$need_version
19788 # Library versioning type.
19789 version_type=$version_type
19791 # Shared library runtime path variable.
19792 runpath_var=$runpath_var
19794 # Shared library path variable.
19795 shlibpath_var=$shlibpath_var
19797 # Is shlibpath searched before the hard-coded library search path?
19798 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19800 # Format of library name prefix.
19801 libname_spec=$lt_libname_spec
19803 # List of archive names. First name is the real one, the rest are links.
19804 # The last name is the one that the linker finds with -lNAME
19805 library_names_spec=$lt_library_names_spec
19807 # The coded name of the library, if different from the real name.
19808 soname_spec=$lt_soname_spec
19810 # Permission mode override for installation of shared libraries.
19811 install_override_mode=$lt_install_override_mode
19813 # Command to use after installation of a shared archive.
19814 postinstall_cmds=$lt_postinstall_cmds
19816 # Command to use after uninstallation of a shared archive.
19817 postuninstall_cmds=$lt_postuninstall_cmds
19819 # Commands used to finish a libtool library installation in a directory.
19820 finish_cmds=$lt_finish_cmds
19822 # As "finish_cmds", except a single script fragment to be evaled but
19823 # not shown.
19824 finish_eval=$lt_finish_eval
19826 # Whether we should hardcode library paths into libraries.
19827 hardcode_into_libs=$hardcode_into_libs
19829 # Compile-time system search path for libraries.
19830 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19832 # Run-time system search path for libraries.
19833 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19835 # Whether dlopen is supported.
19836 dlopen_support=$enable_dlopen
19838 # Whether dlopen of programs is supported.
19839 dlopen_self=$enable_dlopen_self
19841 # Whether dlopen of statically linked programs is supported.
19842 dlopen_self_static=$enable_dlopen_self_static
19844 # Commands to strip libraries.
19845 old_striplib=$lt_old_striplib
19846 striplib=$lt_striplib
19849 # The linker used to build libraries.
19850 LD=$lt_LD
19852 # How to create reloadable object files.
19853 reload_flag=$lt_reload_flag
19854 reload_cmds=$lt_reload_cmds
19856 # Commands used to build an old-style archive.
19857 old_archive_cmds=$lt_old_archive_cmds
19859 # A language specific compiler.
19860 CC=$lt_compiler
19862 # Is the compiler the GNU compiler?
19863 with_gcc=$GCC
19865 # Compiler flag to turn off builtin functions.
19866 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19868 # How to pass a linker flag through the compiler.
19869 wl=$lt_lt_prog_compiler_wl
19871 # Additional compiler flags for building library objects.
19872 pic_flag=$lt_lt_prog_compiler_pic
19874 # Compiler flag to prevent dynamic linking.
19875 link_static_flag=$lt_lt_prog_compiler_static
19877 # Does compiler simultaneously support -c and -o options?
19878 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19880 # Whether or not to add -lc for building shared libraries.
19881 build_libtool_need_lc=$archive_cmds_need_lc
19883 # Whether or not to disallow shared libs when runtime libs are static.
19884 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19886 # Compiler flag to allow reflexive dlopens.
19887 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19889 # Compiler flag to generate shared objects directly from archives.
19890 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19892 # Whether the compiler copes with passing no objects directly.
19893 compiler_needs_object=$lt_compiler_needs_object
19895 # Create an old-style archive from a shared archive.
19896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19898 # Create a temporary old-style archive to link instead of a shared archive.
19899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19901 # Commands used to build a shared archive.
19902 archive_cmds=$lt_archive_cmds
19903 archive_expsym_cmds=$lt_archive_expsym_cmds
19905 # Commands used to build a loadable module if different from building
19906 # a shared archive.
19907 module_cmds=$lt_module_cmds
19908 module_expsym_cmds=$lt_module_expsym_cmds
19910 # Whether we are building with GNU ld or not.
19911 with_gnu_ld=$lt_with_gnu_ld
19913 # Flag that allows shared libraries with undefined symbols to be built.
19914 allow_undefined_flag=$lt_allow_undefined_flag
19916 # Flag that enforces no undefined symbols.
19917 no_undefined_flag=$lt_no_undefined_flag
19919 # Flag to hardcode \$libdir into a binary during linking.
19920 # This must work even if \$libdir does not exist
19921 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19923 # If ld is used when linking, flag to hardcode \$libdir into a binary
19924 # during linking. This must work even if \$libdir does not exist.
19925 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19927 # Whether we need a single "-rpath" flag with a separated argument.
19928 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19930 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19931 # DIR into the resulting binary.
19932 hardcode_direct=$hardcode_direct
19934 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19935 # DIR into the resulting binary and the resulting library dependency is
19936 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19937 # library is relocated.
19938 hardcode_direct_absolute=$hardcode_direct_absolute
19940 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19941 # into the resulting binary.
19942 hardcode_minus_L=$hardcode_minus_L
19944 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19945 # into the resulting binary.
19946 hardcode_shlibpath_var=$hardcode_shlibpath_var
19948 # Set to "yes" if building a shared library automatically hardcodes DIR
19949 # into the library and all subsequent libraries and executables linked
19950 # against it.
19951 hardcode_automatic=$hardcode_automatic
19953 # Set to yes if linker adds runtime paths of dependent libraries
19954 # to runtime path list.
19955 inherit_rpath=$inherit_rpath
19957 # Whether libtool must link a program against all its dependency libraries.
19958 link_all_deplibs=$link_all_deplibs
19960 # Fix the shell variable \$srcfile for the compiler.
19961 fix_srcfile_path=$lt_fix_srcfile_path
19963 # Set to "yes" if exported symbols are required.
19964 always_export_symbols=$always_export_symbols
19966 # The commands to list exported symbols.
19967 export_symbols_cmds=$lt_export_symbols_cmds
19969 # Symbols that should not be listed in the preloaded symbols.
19970 exclude_expsyms=$lt_exclude_expsyms
19972 # Symbols that must always be exported.
19973 include_expsyms=$lt_include_expsyms
19975 # Commands necessary for linking programs (against libraries) with templates.
19976 prelink_cmds=$lt_prelink_cmds
19978 # Specify filename containing input files.
19979 file_list_spec=$lt_file_list_spec
19981 # How to hardcode a shared library path into an executable.
19982 hardcode_action=$hardcode_action
19984 # The directories searched by this compiler when creating a shared library.
19985 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19987 # Dependencies to place before and after the objects being linked to
19988 # create a shared library.
19989 predep_objects=$lt_predep_objects
19990 postdep_objects=$lt_postdep_objects
19991 predeps=$lt_predeps
19992 postdeps=$lt_postdeps
19994 # The library search path used internally by the compiler when linking
19995 # a shared library.
19996 compiler_lib_search_path=$lt_compiler_lib_search_path
19998 # ### END LIBTOOL CONFIG
20000 _LT_EOF
20002 case $host_os in
20003 aix3*)
20004 cat <<\_LT_EOF >> "$cfgfile"
20005 # AIX sometimes has problems with the GCC collect2 program. For some
20006 # reason, if we set the COLLECT_NAMES environment variable, the problems
20007 # vanish in a puff of smoke.
20008 if test "X${COLLECT_NAMES+set}" != Xset; then
20009 COLLECT_NAMES=
20010 export COLLECT_NAMES
20012 _LT_EOF
20014 esac
20017 ltmain="$ac_aux_dir/ltmain.sh"
20020 # We use sed instead of cat because bash on DJGPP gets confused if
20021 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20022 # text mode, it properly converts lines to CR/LF. This bash problem
20023 # is reportedly fixed, but why not run on old versions too?
20024 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20025 || (rm -f "$cfgfile"; exit 1)
20027 case $xsi_shell in
20028 yes)
20029 cat << \_LT_EOF >> "$cfgfile"
20031 # func_dirname file append nondir_replacement
20032 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20033 # otherwise set result to NONDIR_REPLACEMENT.
20034 func_dirname ()
20036 case ${1} in
20037 */*) func_dirname_result="${1%/*}${2}" ;;
20038 * ) func_dirname_result="${3}" ;;
20039 esac
20042 # func_basename file
20043 func_basename ()
20045 func_basename_result="${1##*/}"
20048 # func_dirname_and_basename file append nondir_replacement
20049 # perform func_basename and func_dirname in a single function
20050 # call:
20051 # dirname: Compute the dirname of FILE. If nonempty,
20052 # add APPEND to the result, otherwise set result
20053 # to NONDIR_REPLACEMENT.
20054 # value returned in "$func_dirname_result"
20055 # basename: Compute filename of FILE.
20056 # value retuned in "$func_basename_result"
20057 # Implementation must be kept synchronized with func_dirname
20058 # and func_basename. For efficiency, we do not delegate to
20059 # those functions but instead duplicate the functionality here.
20060 func_dirname_and_basename ()
20062 case ${1} in
20063 */*) func_dirname_result="${1%/*}${2}" ;;
20064 * ) func_dirname_result="${3}" ;;
20065 esac
20066 func_basename_result="${1##*/}"
20069 # func_stripname prefix suffix name
20070 # strip PREFIX and SUFFIX off of NAME.
20071 # PREFIX and SUFFIX must not contain globbing or regex special
20072 # characters, hashes, percent signs, but SUFFIX may contain a leading
20073 # dot (in which case that matches only a dot).
20074 func_stripname ()
20076 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20077 # positional parameters, so assign one to ordinary parameter first.
20078 func_stripname_result=${3}
20079 func_stripname_result=${func_stripname_result#"${1}"}
20080 func_stripname_result=${func_stripname_result%"${2}"}
20083 # func_opt_split
20084 func_opt_split ()
20086 func_opt_split_opt=${1%%=*}
20087 func_opt_split_arg=${1#*=}
20090 # func_lo2o object
20091 func_lo2o ()
20093 case ${1} in
20094 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20095 *) func_lo2o_result=${1} ;;
20096 esac
20099 # func_xform libobj-or-source
20100 func_xform ()
20102 func_xform_result=${1%.*}.lo
20105 # func_arith arithmetic-term...
20106 func_arith ()
20108 func_arith_result=$(( $* ))
20111 # func_len string
20112 # STRING may not start with a hyphen.
20113 func_len ()
20115 func_len_result=${#1}
20118 _LT_EOF
20120 *) # Bourne compatible functions.
20121 cat << \_LT_EOF >> "$cfgfile"
20123 # func_dirname file append nondir_replacement
20124 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
20125 # otherwise set result to NONDIR_REPLACEMENT.
20126 func_dirname ()
20128 # Extract subdirectory from the argument.
20129 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
20130 if test "X$func_dirname_result" = "X${1}"; then
20131 func_dirname_result="${3}"
20132 else
20133 func_dirname_result="$func_dirname_result${2}"
20137 # func_basename file
20138 func_basename ()
20140 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
20144 # func_stripname prefix suffix name
20145 # strip PREFIX and SUFFIX off of NAME.
20146 # PREFIX and SUFFIX must not contain globbing or regex special
20147 # characters, hashes, percent signs, but SUFFIX may contain a leading
20148 # dot (in which case that matches only a dot).
20149 # func_strip_suffix prefix name
20150 func_stripname ()
20152 case ${2} in
20153 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
20154 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
20155 esac
20158 # sed scripts:
20159 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20160 my_sed_long_arg='1s/^-[^=]*=//'
20162 # func_opt_split
20163 func_opt_split ()
20165 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
20166 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
20169 # func_lo2o object
20170 func_lo2o ()
20172 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
20175 # func_xform libobj-or-source
20176 func_xform ()
20178 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
20181 # func_arith arithmetic-term...
20182 func_arith ()
20184 func_arith_result=`expr "$@"`
20187 # func_len string
20188 # STRING may not start with a hyphen.
20189 func_len ()
20191 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20194 _LT_EOF
20195 esac
20197 case $lt_shell_append in
20198 yes)
20199 cat << \_LT_EOF >> "$cfgfile"
20201 # func_append var value
20202 # Append VALUE to the end of shell variable VAR.
20203 func_append ()
20205 eval "$1+=\$2"
20207 _LT_EOF
20210 cat << \_LT_EOF >> "$cfgfile"
20212 # func_append var value
20213 # Append VALUE to the end of shell variable VAR.
20214 func_append ()
20216 eval "$1=\$$1\$2"
20219 _LT_EOF
20221 esac
20224 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20225 || (rm -f "$cfgfile"; exit 1)
20227 mv -f "$cfgfile" "$ofile" ||
20228 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20229 chmod +x "$ofile"
20232 cat <<_LT_EOF >> "$ofile"
20234 # ### BEGIN LIBTOOL TAG CONFIG: CXX
20236 # The linker used to build libraries.
20237 LD=$lt_LD_CXX
20239 # How to create reloadable object files.
20240 reload_flag=$lt_reload_flag_CXX
20241 reload_cmds=$lt_reload_cmds_CXX
20243 # Commands used to build an old-style archive.
20244 old_archive_cmds=$lt_old_archive_cmds_CXX
20246 # A language specific compiler.
20247 CC=$lt_compiler_CXX
20249 # Is the compiler the GNU compiler?
20250 with_gcc=$GCC_CXX
20252 # Compiler flag to turn off builtin functions.
20253 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20255 # How to pass a linker flag through the compiler.
20256 wl=$lt_lt_prog_compiler_wl_CXX
20258 # Additional compiler flags for building library objects.
20259 pic_flag=$lt_lt_prog_compiler_pic_CXX
20261 # Compiler flag to prevent dynamic linking.
20262 link_static_flag=$lt_lt_prog_compiler_static_CXX
20264 # Does compiler simultaneously support -c and -o options?
20265 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20267 # Whether or not to add -lc for building shared libraries.
20268 build_libtool_need_lc=$archive_cmds_need_lc_CXX
20270 # Whether or not to disallow shared libs when runtime libs are static.
20271 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20273 # Compiler flag to allow reflexive dlopens.
20274 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20276 # Compiler flag to generate shared objects directly from archives.
20277 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20279 # Whether the compiler copes with passing no objects directly.
20280 compiler_needs_object=$lt_compiler_needs_object_CXX
20282 # Create an old-style archive from a shared archive.
20283 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20285 # Create a temporary old-style archive to link instead of a shared archive.
20286 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20288 # Commands used to build a shared archive.
20289 archive_cmds=$lt_archive_cmds_CXX
20290 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20292 # Commands used to build a loadable module if different from building
20293 # a shared archive.
20294 module_cmds=$lt_module_cmds_CXX
20295 module_expsym_cmds=$lt_module_expsym_cmds_CXX
20297 # Whether we are building with GNU ld or not.
20298 with_gnu_ld=$lt_with_gnu_ld_CXX
20300 # Flag that allows shared libraries with undefined symbols to be built.
20301 allow_undefined_flag=$lt_allow_undefined_flag_CXX
20303 # Flag that enforces no undefined symbols.
20304 no_undefined_flag=$lt_no_undefined_flag_CXX
20306 # Flag to hardcode \$libdir into a binary during linking.
20307 # This must work even if \$libdir does not exist
20308 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20310 # If ld is used when linking, flag to hardcode \$libdir into a binary
20311 # during linking. This must work even if \$libdir does not exist.
20312 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20314 # Whether we need a single "-rpath" flag with a separated argument.
20315 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20317 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20318 # DIR into the resulting binary.
20319 hardcode_direct=$hardcode_direct_CXX
20321 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20322 # DIR into the resulting binary and the resulting library dependency is
20323 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20324 # library is relocated.
20325 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
20327 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20328 # into the resulting binary.
20329 hardcode_minus_L=$hardcode_minus_L_CXX
20331 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20332 # into the resulting binary.
20333 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20335 # Set to "yes" if building a shared library automatically hardcodes DIR
20336 # into the library and all subsequent libraries and executables linked
20337 # against it.
20338 hardcode_automatic=$hardcode_automatic_CXX
20340 # Set to yes if linker adds runtime paths of dependent libraries
20341 # to runtime path list.
20342 inherit_rpath=$inherit_rpath_CXX
20344 # Whether libtool must link a program against all its dependency libraries.
20345 link_all_deplibs=$link_all_deplibs_CXX
20347 # Fix the shell variable \$srcfile for the compiler.
20348 fix_srcfile_path=$lt_fix_srcfile_path_CXX
20350 # Set to "yes" if exported symbols are required.
20351 always_export_symbols=$always_export_symbols_CXX
20353 # The commands to list exported symbols.
20354 export_symbols_cmds=$lt_export_symbols_cmds_CXX
20356 # Symbols that should not be listed in the preloaded symbols.
20357 exclude_expsyms=$lt_exclude_expsyms_CXX
20359 # Symbols that must always be exported.
20360 include_expsyms=$lt_include_expsyms_CXX
20362 # Commands necessary for linking programs (against libraries) with templates.
20363 prelink_cmds=$lt_prelink_cmds_CXX
20365 # Specify filename containing input files.
20366 file_list_spec=$lt_file_list_spec_CXX
20368 # How to hardcode a shared library path into an executable.
20369 hardcode_action=$hardcode_action_CXX
20371 # The directories searched by this compiler when creating a shared library.
20372 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
20374 # Dependencies to place before and after the objects being linked to
20375 # create a shared library.
20376 predep_objects=$lt_predep_objects_CXX
20377 postdep_objects=$lt_postdep_objects_CXX
20378 predeps=$lt_predeps_CXX
20379 postdeps=$lt_postdeps_CXX
20381 # The library search path used internally by the compiler when linking
20382 # a shared library.
20383 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20385 # ### END LIBTOOL TAG CONFIG: CXX
20386 _LT_EOF
20389 "gstdint.h":C)
20390 if test "$GCC" = yes; then
20391 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
20392 else
20393 echo "/* generated for $CC */" > tmp-stdint.h
20396 sed 's/^ *//' >> tmp-stdint.h <<EOF
20398 #ifndef GCC_GENERATED_STDINT_H
20399 #define GCC_GENERATED_STDINT_H 1
20401 #include <sys/types.h>
20404 if test "$acx_cv_header_stdint" != stdint.h; then
20405 echo "#include <stddef.h>" >> tmp-stdint.h
20407 if test "$acx_cv_header_stdint" != stddef.h; then
20408 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
20411 sed 's/^ *//' >> tmp-stdint.h <<EOF
20412 /* glibc uses these symbols as guards to prevent redefinitions. */
20413 #ifdef __int8_t_defined
20414 #define _INT8_T
20415 #define _INT16_T
20416 #define _INT32_T
20417 #endif
20418 #ifdef __uint32_t_defined
20419 #define _UINT32_T
20420 #endif
20424 # ----------------- done header, emit basic int types -------------
20425 if test "$acx_cv_header_stdint" = stddef.h; then
20426 sed 's/^ *//' >> tmp-stdint.h <<EOF
20428 #ifndef _UINT8_T
20429 #define _UINT8_T
20430 #ifndef __uint8_t_defined
20431 #define __uint8_t_defined
20432 #ifndef uint8_t
20433 typedef unsigned $acx_cv_type_int8_t uint8_t;
20434 #endif
20435 #endif
20436 #endif
20438 #ifndef _UINT16_T
20439 #define _UINT16_T
20440 #ifndef __uint16_t_defined
20441 #define __uint16_t_defined
20442 #ifndef uint16_t
20443 typedef unsigned $acx_cv_type_int16_t uint16_t;
20444 #endif
20445 #endif
20446 #endif
20448 #ifndef _UINT32_T
20449 #define _UINT32_T
20450 #ifndef __uint32_t_defined
20451 #define __uint32_t_defined
20452 #ifndef uint32_t
20453 typedef unsigned $acx_cv_type_int32_t uint32_t;
20454 #endif
20455 #endif
20456 #endif
20458 #ifndef _INT8_T
20459 #define _INT8_T
20460 #ifndef __int8_t_defined
20461 #define __int8_t_defined
20462 #ifndef int8_t
20463 typedef $acx_cv_type_int8_t int8_t;
20464 #endif
20465 #endif
20466 #endif
20468 #ifndef _INT16_T
20469 #define _INT16_T
20470 #ifndef __int16_t_defined
20471 #define __int16_t_defined
20472 #ifndef int16_t
20473 typedef $acx_cv_type_int16_t int16_t;
20474 #endif
20475 #endif
20476 #endif
20478 #ifndef _INT32_T
20479 #define _INT32_T
20480 #ifndef __int32_t_defined
20481 #define __int32_t_defined
20482 #ifndef int32_t
20483 typedef $acx_cv_type_int32_t int32_t;
20484 #endif
20485 #endif
20486 #endif
20488 elif test "$ac_cv_type_u_int32_t" = yes; then
20489 sed 's/^ *//' >> tmp-stdint.h <<EOF
20491 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20492 #ifndef _INT8_T
20493 #define _INT8_T
20494 #endif
20495 #ifndef _INT16_T
20496 #define _INT16_T
20497 #endif
20498 #ifndef _INT32_T
20499 #define _INT32_T
20500 #endif
20502 #ifndef _UINT8_T
20503 #define _UINT8_T
20504 #ifndef __uint8_t_defined
20505 #define __uint8_t_defined
20506 #ifndef uint8_t
20507 typedef u_int8_t uint8_t;
20508 #endif
20509 #endif
20510 #endif
20512 #ifndef _UINT16_T
20513 #define _UINT16_T
20514 #ifndef __uint16_t_defined
20515 #define __uint16_t_defined
20516 #ifndef uint16_t
20517 typedef u_int16_t uint16_t;
20518 #endif
20519 #endif
20520 #endif
20522 #ifndef _UINT32_T
20523 #define _UINT32_T
20524 #ifndef __uint32_t_defined
20525 #define __uint32_t_defined
20526 #ifndef uint32_t
20527 typedef u_int32_t uint32_t;
20528 #endif
20529 #endif
20530 #endif
20532 else
20533 sed 's/^ *//' >> tmp-stdint.h <<EOF
20535 /* Some systems have guard macros to prevent redefinitions, define them. */
20536 #ifndef _INT8_T
20537 #define _INT8_T
20538 #endif
20539 #ifndef _INT16_T
20540 #define _INT16_T
20541 #endif
20542 #ifndef _INT32_T
20543 #define _INT32_T
20544 #endif
20545 #ifndef _UINT8_T
20546 #define _UINT8_T
20547 #endif
20548 #ifndef _UINT16_T
20549 #define _UINT16_T
20550 #endif
20551 #ifndef _UINT32_T
20552 #define _UINT32_T
20553 #endif
20557 # ------------- done basic int types, emit int64_t types ------------
20558 if test "$ac_cv_type_uint64_t" = yes; then
20559 sed 's/^ *//' >> tmp-stdint.h <<EOF
20561 /* system headers have good uint64_t and int64_t */
20562 #ifndef _INT64_T
20563 #define _INT64_T
20564 #endif
20565 #ifndef _UINT64_T
20566 #define _UINT64_T
20567 #endif
20569 elif test "$ac_cv_type_u_int64_t" = yes; then
20570 sed 's/^ *//' >> tmp-stdint.h <<EOF
20572 /* system headers have an u_int64_t (and int64_t) */
20573 #ifndef _INT64_T
20574 #define _INT64_T
20575 #endif
20576 #ifndef _UINT64_T
20577 #define _UINT64_T
20578 #ifndef __uint64_t_defined
20579 #define __uint64_t_defined
20580 #ifndef uint64_t
20581 typedef u_int64_t uint64_t;
20582 #endif
20583 #endif
20584 #endif
20586 elif test -n "$acx_cv_type_int64_t"; then
20587 sed 's/^ *//' >> tmp-stdint.h <<EOF
20589 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20590 #ifndef _INT64_T
20591 #define _INT64_T
20592 #ifndef int64_t
20593 typedef $acx_cv_type_int64_t int64_t;
20594 #endif
20595 #endif
20596 #ifndef _UINT64_T
20597 #define _UINT64_T
20598 #ifndef __uint64_t_defined
20599 #define __uint64_t_defined
20600 #ifndef uint64_t
20601 typedef unsigned $acx_cv_type_int64_t uint64_t;
20602 #endif
20603 #endif
20604 #endif
20606 else
20607 sed 's/^ *//' >> tmp-stdint.h <<EOF
20609 /* some common heuristics for int64_t, using compiler-specific tests */
20610 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20611 #ifndef _INT64_T
20612 #define _INT64_T
20613 #ifndef __int64_t_defined
20614 #ifndef int64_t
20615 typedef long long int64_t;
20616 #endif
20617 #endif
20618 #endif
20619 #ifndef _UINT64_T
20620 #define _UINT64_T
20621 #ifndef uint64_t
20622 typedef unsigned long long uint64_t;
20623 #endif
20624 #endif
20626 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20627 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20628 does not implement __extension__. But that compiler doesn't define
20629 __GNUC_MINOR__. */
20630 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20631 # define __extension__
20632 # endif
20634 # ifndef _INT64_T
20635 # define _INT64_T
20636 # ifndef int64_t
20637 __extension__ typedef long long int64_t;
20638 # endif
20639 # endif
20640 # ifndef _UINT64_T
20641 # define _UINT64_T
20642 # ifndef uint64_t
20643 __extension__ typedef unsigned long long uint64_t;
20644 # endif
20645 # endif
20647 #elif !defined __STRICT_ANSI__
20648 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20650 # ifndef _INT64_T
20651 # define _INT64_T
20652 # ifndef int64_t
20653 typedef __int64 int64_t;
20654 # endif
20655 # endif
20656 # ifndef _UINT64_T
20657 # define _UINT64_T
20658 # ifndef uint64_t
20659 typedef unsigned __int64 uint64_t;
20660 # endif
20661 # endif
20662 # endif /* compiler */
20664 #endif /* ANSI version */
20668 # ------------- done int64_t types, emit intptr types ------------
20669 if test "$ac_cv_type_uintptr_t" != yes; then
20670 sed 's/^ *//' >> tmp-stdint.h <<EOF
20672 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20673 #ifndef __uintptr_t_defined
20674 #ifndef uintptr_t
20675 typedef u$acx_cv_type_intptr_t uintptr_t;
20676 #endif
20677 #endif
20678 #ifndef __intptr_t_defined
20679 #ifndef intptr_t
20680 typedef $acx_cv_type_intptr_t intptr_t;
20681 #endif
20682 #endif
20686 # ------------- done intptr types, emit int_least types ------------
20687 if test "$ac_cv_type_int_least32_t" != yes; then
20688 sed 's/^ *//' >> tmp-stdint.h <<EOF
20690 /* Define int_least types */
20691 typedef int8_t int_least8_t;
20692 typedef int16_t int_least16_t;
20693 typedef int32_t int_least32_t;
20694 #ifdef _INT64_T
20695 typedef int64_t int_least64_t;
20696 #endif
20698 typedef uint8_t uint_least8_t;
20699 typedef uint16_t uint_least16_t;
20700 typedef uint32_t uint_least32_t;
20701 #ifdef _UINT64_T
20702 typedef uint64_t uint_least64_t;
20703 #endif
20707 # ------------- done intptr types, emit int_fast types ------------
20708 if test "$ac_cv_type_int_fast32_t" != yes; then
20709 sed 's/^ *//' >> tmp-stdint.h <<EOF
20711 /* Define int_fast types. short is often slow */
20712 typedef int8_t int_fast8_t;
20713 typedef int int_fast16_t;
20714 typedef int32_t int_fast32_t;
20715 #ifdef _INT64_T
20716 typedef int64_t int_fast64_t;
20717 #endif
20719 typedef uint8_t uint_fast8_t;
20720 typedef unsigned int uint_fast16_t;
20721 typedef uint32_t uint_fast32_t;
20722 #ifdef _UINT64_T
20723 typedef uint64_t uint_fast64_t;
20724 #endif
20728 if test "$ac_cv_type_uintmax_t" != yes; then
20729 sed 's/^ *//' >> tmp-stdint.h <<EOF
20731 /* Define intmax based on what we found */
20732 #ifndef intmax_t
20733 #ifdef _INT64_T
20734 typedef int64_t intmax_t;
20735 #else
20736 typedef long intmax_t;
20737 #endif
20738 #endif
20739 #ifndef uintmax_t
20740 #ifdef _UINT64_T
20741 typedef uint64_t uintmax_t;
20742 #else
20743 typedef unsigned long uintmax_t;
20744 #endif
20745 #endif
20749 sed 's/^ *//' >> tmp-stdint.h <<EOF
20751 #endif /* GCC_GENERATED_STDINT_H */
20754 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20755 rm -f tmp-stdint.h
20756 else
20757 mv -f tmp-stdint.h gstdint.h
20762 esac
20763 done # for ac_tag
20766 as_fn_exit 0
20767 _ACEOF
20768 ac_clean_files=$ac_clean_files_save
20770 test $ac_write_fail = 0 ||
20771 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20774 # configure is writing to config.log, and then calls config.status.
20775 # config.status does its own redirection, appending to config.log.
20776 # Unfortunately, on DOS this fails, as config.log is still kept open
20777 # by configure, so config.status won't be able to write to it; its
20778 # output is simply discarded. So we exec the FD to /dev/null,
20779 # effectively closing config.log, so it can be properly (re)opened and
20780 # appended to by config.status. When coming back to configure, we
20781 # need to make the FD available again.
20782 if test "$no_create" != yes; then
20783 ac_cs_success=:
20784 ac_config_status_args=
20785 test "$silent" = yes &&
20786 ac_config_status_args="$ac_config_status_args --quiet"
20787 exec 5>/dev/null
20788 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20789 exec 5>>config.log
20790 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20791 # would make configure fail if this is the last instruction.
20792 $ac_cs_success || as_fn_exit $?
20794 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20796 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}