2014-11-17 Andrew Pinski <apinski@cavium.com>
[official-gcc.git] / libatomic / configure
blobe16b2fd2f9655a26ec07ff098a77dcc31088fa58
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Atomic 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 Atomic Library'
558 PACKAGE_TARNAME='libatomic'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='GNU Atomic Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libatomic/'
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 ARCH_X86_64_FALSE
605 ARCH_X86_64_TRUE
606 ARCH_I386_FALSE
607 ARCH_I386_TRUE
608 ARCH_ARM_LINUX_FALSE
609 ARCH_ARM_LINUX_TRUE
610 HAVE_IFUNC_FALSE
611 HAVE_IFUNC_TRUE
612 SIZES
613 XLDFLAGS
614 XCFLAGS
615 config_path
616 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
617 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
618 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
619 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
620 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
621 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
622 OPT_LDFLAGS
623 SECTION_LDFLAGS
624 libtool_VERSION
625 MAINT
626 MAINTAINER_MODE_FALSE
627 MAINTAINER_MODE_TRUE
628 enable_static
629 enable_shared
630 lt_host_flags
632 OTOOL64
633 OTOOL
634 LIPO
635 NMEDIT
636 DSYMUTIL
637 OBJDUMP
638 LN_S
639 ac_ct_DUMPBIN
640 DUMPBIN
642 FGREP
643 EGREP
644 GREP
646 LIBTOOL
647 PERL
648 RANLIB
651 am__fastdepCCAS_FALSE
652 am__fastdepCCAS_TRUE
653 CCASDEPMODE
654 CCASFLAGS
655 CCAS
656 am__fastdepCC_FALSE
657 am__fastdepCC_TRUE
658 CCDEPMODE
659 am__nodep
660 AMDEPBACKSLASH
661 AMDEP_FALSE
662 AMDEP_TRUE
663 am__quote
664 am__include
665 DEPDIR
666 OBJEXT
667 EXEEXT
668 ac_ct_CC
669 CPPFLAGS
670 LDFLAGS
671 CFLAGS
673 toolexeclibdir
674 toolexecdir
675 multi_basedir
676 am__untar
677 am__tar
678 AMTAR
679 am__leading_dot
680 SET_MAKE
682 mkdir_p
683 MKDIR_P
684 INSTALL_STRIP_PROGRAM
685 STRIP
686 install_sh
687 MAKEINFO
688 AUTOHEADER
689 AUTOMAKE
690 AUTOCONF
691 ACLOCAL
692 VERSION
693 PACKAGE
694 CYGPATH_W
695 am__isrc
696 INSTALL_DATA
697 INSTALL_SCRIPT
698 INSTALL_PROGRAM
699 target_os
700 target_vendor
701 target_cpu
702 target
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 GENINSRC_FALSE
712 GENINSRC_TRUE
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_version_specific_runtime_libs
755 enable_generated_files_in_srcdir
756 enable_multilib
757 enable_dependency_tracking
758 enable_shared
759 enable_static
760 with_pic
761 enable_fast_install
762 with_gnu_ld
763 enable_libtool_lock
764 enable_maintainer_mode
765 enable_symvers
767 ac_precious_vars='build_alias
768 host_alias
769 target_alias
771 CPPFLAGS'
774 # Initialize some variables set by options.
775 ac_init_help=
776 ac_init_version=false
777 ac_unrecognized_opts=
778 ac_unrecognized_sep=
779 # The variables have the same names as the options, with
780 # dashes changed to underlines.
781 cache_file=/dev/null
782 exec_prefix=NONE
783 no_create=
784 no_recursion=
785 prefix=NONE
786 program_prefix=NONE
787 program_suffix=NONE
788 program_transform_name=s,x,x,
789 silent=
790 site=
791 srcdir=
792 verbose=
793 x_includes=NONE
794 x_libraries=NONE
796 # Installation directory options.
797 # These are left unexpanded so users can "make install exec_prefix=/foo"
798 # and all the variables that are supposed to be based on exec_prefix
799 # by default will actually change.
800 # Use braces instead of parens because sh, perl, etc. also accept them.
801 # (The list follows the same order as the GNU Coding Standards.)
802 bindir='${exec_prefix}/bin'
803 sbindir='${exec_prefix}/sbin'
804 libexecdir='${exec_prefix}/libexec'
805 datarootdir='${prefix}/share'
806 datadir='${datarootdir}'
807 sysconfdir='${prefix}/etc'
808 sharedstatedir='${prefix}/com'
809 localstatedir='${prefix}/var'
810 includedir='${prefix}/include'
811 oldincludedir='/usr/include'
812 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
813 infodir='${datarootdir}/info'
814 htmldir='${docdir}'
815 dvidir='${docdir}'
816 pdfdir='${docdir}'
817 psdir='${docdir}'
818 libdir='${exec_prefix}/lib'
819 localedir='${datarootdir}/locale'
820 mandir='${datarootdir}/man'
822 ac_prev=
823 ac_dashdash=
824 for ac_option
826 # If the previous option needs an argument, assign it.
827 if test -n "$ac_prev"; then
828 eval $ac_prev=\$ac_option
829 ac_prev=
830 continue
833 case $ac_option in
834 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835 *) ac_optarg=yes ;;
836 esac
838 # Accept the important Cygnus configure options, so we can diagnose typos.
840 case $ac_dashdash$ac_option in
842 ac_dashdash=yes ;;
844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
845 ac_prev=bindir ;;
846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 bindir=$ac_optarg ;;
849 -build | --build | --buil | --bui | --bu)
850 ac_prev=build_alias ;;
851 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852 build_alias=$ac_optarg ;;
854 -cache-file | --cache-file | --cache-fil | --cache-fi \
855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856 ac_prev=cache_file ;;
857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859 cache_file=$ac_optarg ;;
861 --config-cache | -C)
862 cache_file=config.cache ;;
864 -datadir | --datadir | --datadi | --datad)
865 ac_prev=datadir ;;
866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
867 datadir=$ac_optarg ;;
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev=datarootdir ;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir=$ac_optarg ;;
876 -disable-* | --disable-*)
877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880 as_fn_error "invalid feature name: $ac_useropt"
881 ac_useropt_orig=$ac_useropt
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
885 "enable_$ac_useropt"
886 "*) ;;
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
889 esac
890 eval enable_$ac_useropt=no ;;
892 -docdir | --docdir | --docdi | --doc | --do)
893 ac_prev=docdir ;;
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 docdir=$ac_optarg ;;
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 ac_prev=dvidir ;;
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 dvidir=$ac_optarg ;;
902 -enable-* | --enable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
911 "enable_$ac_useropt"
912 "*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=\$ac_optarg ;;
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
929 with_gas=yes ;;
931 -help | --help | --hel | --he | -h)
932 ac_init_help=long ;;
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 ac_prev=htmldir ;;
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 | --ht=*)
947 htmldir=$ac_optarg ;;
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 ac_prev=infodir ;;
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
961 -libdir | --libdir | --libdi | --libd)
962 ac_prev=libdir ;;
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 libdir=$ac_optarg ;;
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
973 -localedir | --localedir | --localedi | --localed | --locale)
974 ac_prev=localedir ;;
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir=$ac_optarg ;;
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 ac_prev=mandir ;;
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988 mandir=$ac_optarg ;;
990 -nfp | --nfp | --nf)
991 # Obsolete; use --without-fp.
992 with_fp=no ;;
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
996 no_create=yes ;;
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 no_recursion=yes ;;
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 ac_prev=prefix ;;
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 ac_prev=pdfdir ;;
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1052 -psdir | --psdir | --psdi | --psd | --ps)
1053 ac_prev=psdir ;;
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 psdir=$ac_optarg ;;
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 silent=yes ;;
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 ac_prev=sbindir ;;
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 | --sbi=* | --sb=*)
1065 sbindir=$ac_optarg ;;
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1070 | --sha | --sh)
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 | --sha=* | --sh=*)
1076 sharedstatedir=$ac_optarg ;;
1078 -site | --site | --sit)
1079 ac_prev=site ;;
1080 -site=* | --site=* | --sit=*)
1081 site=$ac_optarg ;;
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 ac_prev=srcdir ;;
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir=$ac_optarg ;;
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir=$ac_optarg ;;
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev=target_alias ;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias=$ac_optarg ;;
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 verbose=yes ;;
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
1106 -with-* | --with-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1115 "with_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=\$ac_optarg ;;
1122 -without-* | --without-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1131 "with_$ac_useropt"
1132 "*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=no ;;
1138 --x)
1139 # Obsolete; use --with-x.
1140 with_x=yes ;;
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1156 -*) as_fn_error "unrecognized option: \`$ac_option'
1157 Try \`$0 --help' for more information."
1160 *=*)
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 case $ac_envvar in #(
1164 '' | [0-9]* | *[!_$as_cr_alnum]* )
1165 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1166 esac
1167 eval $ac_envvar=\$ac_optarg
1168 export $ac_envvar ;;
1171 # FIXME: should be removed in autoconf 3.0.
1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1178 esac
1179 done
1181 if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 as_fn_error "missing argument to $ac_option"
1186 if test -n "$ac_unrecognized_opts"; then
1187 case $enable_option_checking in
1188 no) ;;
1189 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 esac
1194 # Check all directory arguments for consistency.
1195 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1200 eval ac_val=\$$ac_var
1201 # Remove trailing slashes.
1202 case $ac_val in
1203 */ )
1204 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\$ac_val;;
1206 esac
1207 # Be sure to have absolute directory names.
1208 case $ac_val in
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 esac
1212 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1213 done
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1218 build=$build_alias
1219 host=$host_alias
1220 target=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1229 cross_compiling=yes
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 as_fn_error "working directory cannot be determined"
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 as_fn_error "pwd does not report name of working directory"
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir=`$as_dirname -- "$as_myself" ||
1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256 $as_echo X"$as_myself" |
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1258 s//\1/
1261 /^X\(\/\/\)[^/].*/{
1262 s//\1/
1265 /^X\(\/\/\)$/{
1266 s//\1/
1269 /^X\(\/\).*/{
1270 s//\1/
1273 s/.*/./; q'`
1274 srcdir=$ac_confdir
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1276 srcdir=..
1278 else
1279 ac_srcdir_defaulted=no
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 ac_abs_confdir=`(
1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1288 pwd)`
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 srcdir=.
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1296 case $srcdir in
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 esac
1299 for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304 done
1307 # Report the --help message.
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1312 cat <<_ACEOF
1313 \`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems.
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1320 Defaults for the options are specified in brackets.
1322 Configuration:
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 [PREFIX]
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1344 For better control, use the options below.
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1366 _ACEOF
1368 cat <<\_ACEOF
1370 Program names:
1371 --program-prefix=PREFIX prepend PREFIX to installed program names
1372 --program-suffix=SUFFIX append SUFFIX to installed program names
1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1375 System types:
1376 --build=BUILD configure for building on BUILD [guessed]
1377 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1378 --target=TARGET configure for building compilers for TARGET [HOST]
1379 _ACEOF
1382 if test -n "$ac_init_help"; then
1383 case $ac_init_help in
1384 short | recursive ) echo "Configuration of GNU Atomic Library 1.0:";;
1385 esac
1386 cat <<\_ACEOF
1388 Optional Features:
1389 --disable-option-checking ignore unrecognized --enable/--with options
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-version-specific-runtime-libs
1393 Specify that runtime libraries should be installed
1394 in a compiler-specific directory [default=no]
1395 --enable-generated-files-in-srcdir
1396 put copies of generated files in source dir intended
1397 for creating source tarballs for users without
1398 texinfo bison or flex. [default=no]
1399 --enable-multilib build many library versions (default)
1400 --disable-dependency-tracking speeds up one-time build
1401 --enable-dependency-tracking do not reject slow dependency extractors
1402 --enable-shared[=PKGS] build shared libraries [default=yes]
1403 --enable-static[=PKGS] build static libraries [default=yes]
1404 --enable-fast-install[=PKGS]
1405 optimize for fast installation [default=yes]
1406 --disable-libtool-lock avoid locking (might break parallel builds)
1407 --enable-maintainer-mode enable make rules and dependencies not useful
1408 (and sometimes confusing) to the casual installer
1409 --enable-symvers=STYLE enables symbol versioning of the shared library
1410 [default=yes]
1412 Optional Packages:
1413 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1414 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1415 --with-pic try to use only PIC/non-PIC objects [default=use
1416 both]
1417 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1419 Some influential environment variables:
1420 CC C compiler command
1421 CFLAGS C compiler flags
1422 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1423 nonstandard directory <lib dir>
1424 LIBS libraries to pass to the linker, e.g. -l<library>
1425 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1426 you have headers in a nonstandard directory <include dir>
1427 CCAS assembler compiler command (defaults to CC)
1428 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1429 CPP C preprocessor
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1434 Report bugs to the package provider.
1435 GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
1436 General help using GNU software: <http://www.gnu.org/gethelp/>.
1437 _ACEOF
1438 ac_status=$?
1441 if test "$ac_init_help" = "recursive"; then
1442 # If there are subdirs, report their specific --help.
1443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1444 test -d "$ac_dir" ||
1445 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1446 continue
1447 ac_builddir=.
1449 case "$ac_dir" in
1450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1453 # A ".." for each directory in $ac_dir_suffix.
1454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1455 case $ac_top_builddir_sub in
1456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1458 esac ;;
1459 esac
1460 ac_abs_top_builddir=$ac_pwd
1461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1462 # for backward compatibility:
1463 ac_top_builddir=$ac_top_build_prefix
1465 case $srcdir in
1466 .) # We are building in place.
1467 ac_srcdir=.
1468 ac_top_srcdir=$ac_top_builddir_sub
1469 ac_abs_top_srcdir=$ac_pwd ;;
1470 [\\/]* | ?:[\\/]* ) # Absolute name.
1471 ac_srcdir=$srcdir$ac_dir_suffix;
1472 ac_top_srcdir=$srcdir
1473 ac_abs_top_srcdir=$srcdir ;;
1474 *) # Relative name.
1475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1476 ac_top_srcdir=$ac_top_build_prefix$srcdir
1477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1478 esac
1479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481 cd "$ac_dir" || { ac_status=$?; continue; }
1482 # Check for guested configure.
1483 if test -f "$ac_srcdir/configure.gnu"; then
1484 echo &&
1485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1486 elif test -f "$ac_srcdir/configure"; then
1487 echo &&
1488 $SHELL "$ac_srcdir/configure" --help=recursive
1489 else
1490 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491 fi || ac_status=$?
1492 cd "$ac_pwd" || { ac_status=$?; break; }
1493 done
1496 test -n "$ac_init_help" && exit $ac_status
1497 if $ac_init_version; then
1498 cat <<\_ACEOF
1499 GNU Atomic Library configure 1.0
1500 generated by GNU Autoconf 2.64
1502 Copyright (C) 2009 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1505 _ACEOF
1506 exit
1509 ## ------------------------ ##
1510 ## Autoconf initialization. ##
1511 ## ------------------------ ##
1513 # ac_fn_c_try_compile LINENO
1514 # --------------------------
1515 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1516 ac_fn_c_try_compile ()
1518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1519 rm -f conftest.$ac_objext
1520 if { { ac_try="$ac_compile"
1521 case "(($ac_try" in
1522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1523 *) ac_try_echo=$ac_try;;
1524 esac
1525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1526 $as_echo "$ac_try_echo"; } >&5
1527 (eval "$ac_compile") 2>conftest.err
1528 ac_status=$?
1529 if test -s conftest.err; then
1530 grep -v '^ *+' conftest.err >conftest.er1
1531 cat conftest.er1 >&5
1532 mv -f conftest.er1 conftest.err
1534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1535 test $ac_status = 0; } && {
1536 test -z "$ac_c_werror_flag" ||
1537 test ! -s conftest.err
1538 } && test -s conftest.$ac_objext; then :
1539 ac_retval=0
1540 else
1541 $as_echo "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.$ac_ext >&5
1544 ac_retval=1
1546 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1547 return $ac_retval
1549 } # ac_fn_c_try_compile
1551 # ac_fn_c_try_link LINENO
1552 # -----------------------
1553 # Try to link conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_link ()
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext conftest$ac_exeext
1558 if { { ac_try="$ac_link"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_link") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest$ac_exeext && {
1577 test "$cross_compiling" = yes ||
1578 $as_test_x conftest$ac_exeext
1579 }; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1585 ac_retval=1
1587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1589 # interfere with the next link command; also delete a directory that is
1590 # left behind by Apple's compiler. We do this before executing the actions.
1591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 return $ac_retval
1595 } # ac_fn_c_try_link
1597 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists and can be compiled using the include files in
1600 # INCLUDES, setting the cache variable VAR accordingly.
1601 ac_fn_c_check_header_compile ()
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1605 $as_echo_n "checking for $2... " >&6; }
1606 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1607 $as_echo_n "(cached) " >&6
1608 else
1609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610 /* end confdefs.h. */
1612 #include <$2>
1613 _ACEOF
1614 if ac_fn_c_try_compile "$LINENO"; then :
1615 eval "$3=yes"
1616 else
1617 eval "$3=no"
1619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1621 eval ac_res=\$$3
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623 $as_echo "$ac_res" >&6; }
1624 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1626 } # ac_fn_c_check_header_compile
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_cpp ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } >/dev/null && {
1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 ac_retval=1
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1661 return $ac_retval
1663 } # ac_fn_c_try_cpp
1665 # ac_fn_c_try_run LINENO
1666 # ----------------------
1667 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1668 # that executables *can* be run.
1669 ac_fn_c_try_run ()
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_link"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_link") 2>&5
1680 ac_status=$?
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1683 { { case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_try") 2>&5
1690 ac_status=$?
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; }; }; then :
1693 ac_retval=0
1694 else
1695 $as_echo "$as_me: program exited with status $ac_status" >&5
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1699 ac_retval=$ac_status
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703 return $ac_retval
1705 } # ac_fn_c_try_run
1707 # ac_fn_c_check_func LINENO FUNC VAR
1708 # ----------------------------------
1709 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1710 ac_fn_c_check_func ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1716 $as_echo_n "(cached) " >&6
1717 else
1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719 /* end confdefs.h. */
1720 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1722 #define $2 innocuous_$2
1724 /* System header to define __stub macros and hopefully few prototypes,
1725 which can conflict with char $2 (); below.
1726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1727 <limits.h> exists even on freestanding compilers. */
1729 #ifdef __STDC__
1730 # include <limits.h>
1731 #else
1732 # include <assert.h>
1733 #endif
1735 #undef $2
1737 /* Override any GCC internal prototype to avoid an error.
1738 Use char because int might match the return type of a GCC
1739 builtin and then its argument prototype would still apply. */
1740 #ifdef __cplusplus
1741 extern "C"
1742 #endif
1743 char $2 ();
1744 /* The GNU C library defines this for functions which it implements
1745 to always fail with ENOSYS. Some functions are actually named
1746 something starting with __ and the normal name is an alias. */
1747 #if defined __stub_$2 || defined __stub___$2
1748 choke me
1749 #endif
1752 main ()
1754 return $2 ();
1756 return 0;
1758 _ACEOF
1759 if ac_fn_c_try_link "$LINENO"; then :
1760 eval "$3=yes"
1761 else
1762 eval "$3=no"
1764 rm -f core conftest.err conftest.$ac_objext \
1765 conftest$ac_exeext conftest.$ac_ext
1767 eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769 $as_echo "$ac_res" >&6; }
1770 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772 } # ac_fn_c_check_func
1774 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1775 # -------------------------------------------
1776 # Tests whether TYPE exists after having included INCLUDES, setting cache
1777 # variable VAR accordingly.
1778 ac_fn_c_check_type ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1784 $as_echo_n "(cached) " >&6
1785 else
1786 eval "$3=no"
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1791 main ()
1793 if (sizeof ($2))
1794 return 0;
1796 return 0;
1798 _ACEOF
1799 if ac_fn_c_try_compile "$LINENO"; then :
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1804 main ()
1806 if (sizeof (($2)))
1807 return 0;
1809 return 0;
1811 _ACEOF
1812 if ac_fn_c_try_compile "$LINENO"; then :
1814 else
1815 eval "$3=yes"
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 eval ac_res=\$$3
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826 } # ac_fn_c_check_type
1828 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1829 # --------------------------------------------
1830 # Tries to find the compile-time value of EXPR in a program that includes
1831 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1832 # computed
1833 ac_fn_c_compute_int ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 if test "$cross_compiling" = yes; then
1837 # Depending upon the size, compute the lo and hi bounds.
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1842 main ()
1844 static int test_array [1 - 2 * !(($2) >= 0)];
1845 test_array [0] = 0
1848 return 0;
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852 ac_lo=0 ac_mid=0
1853 while :; do
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1858 main ()
1860 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1861 test_array [0] = 0
1864 return 0;
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 ac_hi=$ac_mid; break
1869 else
1870 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1871 if test $ac_lo -le $ac_mid; then
1872 ac_lo= ac_hi=
1873 break
1875 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 done
1879 else
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h. */
1884 main ()
1886 static int test_array [1 - 2 * !(($2) < 0)];
1887 test_array [0] = 0
1890 return 0;
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894 ac_hi=-1 ac_mid=-1
1895 while :; do
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1900 main ()
1902 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1903 test_array [0] = 0
1906 return 0;
1908 _ACEOF
1909 if ac_fn_c_try_compile "$LINENO"; then :
1910 ac_lo=$ac_mid; break
1911 else
1912 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1913 if test $ac_mid -le $ac_hi; then
1914 ac_lo= ac_hi=
1915 break
1917 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 done
1921 else
1922 ac_lo= ac_hi=
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 # Binary search between lo and hi bounds.
1928 while test "x$ac_lo" != "x$ac_hi"; do
1929 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1934 main ()
1936 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1937 test_array [0] = 0
1940 return 0;
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_hi=$ac_mid
1945 else
1946 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 done
1950 case $ac_lo in #((
1951 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1952 '') ac_retval=1 ;;
1953 esac
1954 else
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1958 static long int longval () { return $2; }
1959 static unsigned long int ulongval () { return $2; }
1960 #include <stdio.h>
1961 #include <stdlib.h>
1963 main ()
1966 FILE *f = fopen ("conftest.val", "w");
1967 if (! f)
1968 return 1;
1969 if (($2) < 0)
1971 long int i = longval ();
1972 if (i != ($2))
1973 return 1;
1974 fprintf (f, "%ld", i);
1976 else
1978 unsigned long int i = ulongval ();
1979 if (i != ($2))
1980 return 1;
1981 fprintf (f, "%lu", i);
1983 /* Do not output a trailing newline, as this causes \r\n confusion
1984 on some platforms. */
1985 return ferror (f) || fclose (f) != 0;
1988 return 0;
1990 _ACEOF
1991 if ac_fn_c_try_run "$LINENO"; then :
1992 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1993 else
1994 ac_retval=1
1996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1997 conftest.$ac_objext conftest.beam conftest.$ac_ext
1998 rm -f conftest.val
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002 return $ac_retval
2004 } # ac_fn_c_compute_int
2006 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2007 # -------------------------------------------------------
2008 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2009 # the include files in INCLUDES and setting the cache variable VAR
2010 # accordingly.
2011 ac_fn_c_check_header_mongrel ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
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
2020 eval ac_res=\$$3
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 else
2024 # Is the header compilable?
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2026 $as_echo_n "checking $2 usability... " >&6; }
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2030 #include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_header_compiler=yes
2034 else
2035 ac_header_compiler=no
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2039 $as_echo "$ac_header_compiler" >&6; }
2041 # Is the header present?
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2043 $as_echo_n "checking $2 presence... " >&6; }
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 #include <$2>
2047 _ACEOF
2048 if ac_fn_c_try_cpp "$LINENO"; then :
2049 ac_header_preproc=yes
2050 else
2051 ac_header_preproc=no
2053 rm -f conftest.err conftest.$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2055 $as_echo "$ac_header_preproc" >&6; }
2057 # So? What about this header?
2058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2059 yes:no: )
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2061 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2063 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2065 no:yes:* )
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2067 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2069 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2071 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2073 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2075 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2077 esac
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 eval "$3=\$ac_header_compiler"
2085 eval ac_res=\$$3
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2091 } # ac_fn_c_check_header_mongrel
2092 cat >config.log <<_ACEOF
2093 This file contains any messages produced by compilers while
2094 running configure, to aid debugging if configure makes a mistake.
2096 It was created by GNU Atomic Library $as_me 1.0, which was
2097 generated by GNU Autoconf 2.64. Invocation command line was
2099 $ $0 $@
2101 _ACEOF
2102 exec 5>>config.log
2104 cat <<_ASUNAME
2105 ## --------- ##
2106 ## Platform. ##
2107 ## --------- ##
2109 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2110 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2111 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2112 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2113 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2115 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2116 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2118 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2119 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2120 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2121 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2122 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2123 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2124 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2126 _ASUNAME
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 $as_echo "PATH: $as_dir"
2134 done
2135 IFS=$as_save_IFS
2137 } >&5
2139 cat >&5 <<_ACEOF
2142 ## ----------- ##
2143 ## Core tests. ##
2144 ## ----------- ##
2146 _ACEOF
2149 # Keep a trace of the command line.
2150 # Strip out --no-create and --no-recursion so they do not pile up.
2151 # Strip out --silent because we don't want to record it for future runs.
2152 # Also quote any args containing shell meta-characters.
2153 # Make two passes to allow for proper duplicate-argument suppression.
2154 ac_configure_args=
2155 ac_configure_args0=
2156 ac_configure_args1=
2157 ac_must_keep_next=false
2158 for ac_pass in 1 2
2160 for ac_arg
2162 case $ac_arg in
2163 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2165 | -silent | --silent | --silen | --sile | --sil)
2166 continue ;;
2167 *\'*)
2168 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2169 esac
2170 case $ac_pass in
2171 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2173 as_fn_append ac_configure_args1 " '$ac_arg'"
2174 if test $ac_must_keep_next = true; then
2175 ac_must_keep_next=false # Got value, back to normal.
2176 else
2177 case $ac_arg in
2178 *=* | --config-cache | -C | -disable-* | --disable-* \
2179 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2180 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2181 | -with-* | --with-* | -without-* | --without-* | --x)
2182 case "$ac_configure_args0 " in
2183 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2184 esac
2186 -* ) ac_must_keep_next=true ;;
2187 esac
2189 as_fn_append ac_configure_args " '$ac_arg'"
2191 esac
2192 done
2193 done
2194 { ac_configure_args0=; unset ac_configure_args0;}
2195 { ac_configure_args1=; unset ac_configure_args1;}
2197 # When interrupted or exit'd, cleanup temporary files, and complete
2198 # config.log. We remove comments because anyway the quotes in there
2199 # would cause problems or look ugly.
2200 # WARNING: Use '\'' to represent an apostrophe within the trap.
2201 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2202 trap 'exit_status=$?
2203 # Save into config.log some information that might help in debugging.
2205 echo
2207 cat <<\_ASBOX
2208 ## ---------------- ##
2209 ## Cache variables. ##
2210 ## ---------------- ##
2211 _ASBOX
2212 echo
2213 # The following way of writing the cache mishandles newlines in values,
2215 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2216 eval ac_val=\$$ac_var
2217 case $ac_val in #(
2218 *${as_nl}*)
2219 case $ac_var in #(
2220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2222 esac
2223 case $ac_var in #(
2224 _ | IFS | as_nl) ;; #(
2225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2226 *) { eval $ac_var=; unset $ac_var;} ;;
2227 esac ;;
2228 esac
2229 done
2230 (set) 2>&1 |
2231 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2232 *${as_nl}ac_space=\ *)
2233 sed -n \
2234 "s/'\''/'\''\\\\'\'''\''/g;
2235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2236 ;; #(
2238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2240 esac |
2241 sort
2243 echo
2245 cat <<\_ASBOX
2246 ## ----------------- ##
2247 ## Output variables. ##
2248 ## ----------------- ##
2249 _ASBOX
2250 echo
2251 for ac_var in $ac_subst_vars
2253 eval ac_val=\$$ac_var
2254 case $ac_val in
2255 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256 esac
2257 $as_echo "$ac_var='\''$ac_val'\''"
2258 done | sort
2259 echo
2261 if test -n "$ac_subst_files"; then
2262 cat <<\_ASBOX
2263 ## ------------------- ##
2264 ## File substitutions. ##
2265 ## ------------------- ##
2266 _ASBOX
2267 echo
2268 for ac_var in $ac_subst_files
2270 eval ac_val=\$$ac_var
2271 case $ac_val in
2272 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2273 esac
2274 $as_echo "$ac_var='\''$ac_val'\''"
2275 done | sort
2276 echo
2279 if test -s confdefs.h; then
2280 cat <<\_ASBOX
2281 ## ----------- ##
2282 ## confdefs.h. ##
2283 ## ----------- ##
2284 _ASBOX
2285 echo
2286 cat confdefs.h
2287 echo
2289 test "$ac_signal" != 0 &&
2290 $as_echo "$as_me: caught signal $ac_signal"
2291 $as_echo "$as_me: exit $exit_status"
2292 } >&5
2293 rm -f core *.core core.conftest.* &&
2294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2295 exit $exit_status
2297 for ac_signal in 1 2 13 15; do
2298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2299 done
2300 ac_signal=0
2302 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2303 rm -f -r conftest* confdefs.h
2305 $as_echo "/* confdefs.h */" > confdefs.h
2307 # Predefined preprocessor variables.
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_NAME "$PACKAGE_NAME"
2311 _ACEOF
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2315 _ACEOF
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2319 _ACEOF
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_STRING "$PACKAGE_STRING"
2323 _ACEOF
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2327 _ACEOF
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_URL "$PACKAGE_URL"
2331 _ACEOF
2334 # Let the site file select an alternate cache file if it wants to.
2335 # Prefer an explicitly selected file to automatically selected ones.
2336 ac_site_file1=NONE
2337 ac_site_file2=NONE
2338 if test -n "$CONFIG_SITE"; then
2339 ac_site_file1=$CONFIG_SITE
2340 elif test "x$prefix" != xNONE; then
2341 ac_site_file1=$prefix/share/config.site
2342 ac_site_file2=$prefix/etc/config.site
2343 else
2344 ac_site_file1=$ac_default_prefix/share/config.site
2345 ac_site_file2=$ac_default_prefix/etc/config.site
2347 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2349 test "x$ac_site_file" = xNONE && continue
2350 if test -r "$ac_site_file"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2352 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2353 sed 's/^/| /' "$ac_site_file" >&5
2354 . "$ac_site_file"
2356 done
2358 if test -r "$cache_file"; then
2359 # Some versions of bash will fail to source /dev/null (special
2360 # files actually), so we avoid doing that.
2361 if test -f "$cache_file"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2363 $as_echo "$as_me: loading cache $cache_file" >&6;}
2364 case $cache_file in
2365 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2366 *) . "./$cache_file";;
2367 esac
2369 else
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2371 $as_echo "$as_me: creating cache $cache_file" >&6;}
2372 >$cache_file
2375 # Check that the precious variables saved in the cache have kept the same
2376 # value.
2377 ac_cache_corrupted=false
2378 for ac_var in $ac_precious_vars; do
2379 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2380 eval ac_new_set=\$ac_env_${ac_var}_set
2381 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2382 eval ac_new_val=\$ac_env_${ac_var}_value
2383 case $ac_old_set,$ac_new_set in
2384 set,)
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2386 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2387 ac_cache_corrupted=: ;;
2388 ,set)
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2391 ac_cache_corrupted=: ;;
2392 ,);;
2394 if test "x$ac_old_val" != "x$ac_new_val"; then
2395 # differences in whitespace do not lead to failure.
2396 ac_old_val_w=`echo x $ac_old_val`
2397 ac_new_val_w=`echo x $ac_new_val`
2398 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2400 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2401 ac_cache_corrupted=:
2402 else
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2404 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2405 eval $ac_var=\$ac_old_val
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2408 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2410 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2411 fi;;
2412 esac
2413 # Pass precious variables to config.status.
2414 if test "$ac_new_set" = set; then
2415 case $ac_new_val in
2416 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2417 *) ac_arg=$ac_var=$ac_new_val ;;
2418 esac
2419 case " $ac_configure_args " in
2420 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2421 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2422 esac
2424 done
2425 if $ac_cache_corrupted; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2429 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2430 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2432 ## -------------------- ##
2433 ## Main body of script. ##
2434 ## -------------------- ##
2436 ac_ext=c
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446 ac_config_headers="$ac_config_headers auto-config.h"
2449 # -------
2450 # Options
2451 # -------
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2454 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2455 # Check whether --enable-version-specific-runtime-libs was given.
2456 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2457 enableval=$enable_version_specific_runtime_libs;
2458 case "$enableval" in
2459 yes|no) ;;
2460 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2461 esac
2463 else
2464 enable_version_specific_runtime_libs=no
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2469 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2471 # We would like our source tree to be readonly. However when releases or
2472 # pre-releases are generated, the flex/bison generated files as well as the
2473 # various formats of manuals need to be included along with the rest of the
2474 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2475 # just that.
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2477 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2478 # Check whether --enable-generated-files-in-srcdir was given.
2479 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2480 enableval=$enable_generated_files_in_srcdir;
2481 case "$enableval" in
2482 yes|no) ;;
2483 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2484 esac
2486 else
2487 enable_generated_files_in_srcdir=no
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2492 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2493 if test "$enable_generated_files_in_srcdir" = yes; then
2494 GENINSRC_TRUE=
2495 GENINSRC_FALSE='#'
2496 else
2497 GENINSRC_TRUE='#'
2498 GENINSRC_FALSE=
2503 # -------
2505 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2507 # You will slowly go insane if you do not grok the following fact: when
2508 # building this library, the top-level /target/ becomes the library's /host/.
2510 # configure then causes --target to default to --host, exactly like any
2511 # other package using autoconf. Therefore, 'target' and 'host' will
2512 # always be the same. This makes sense both for native and cross compilers
2513 # just think about it for a little while. :-)
2515 # Also, if this library is being configured as part of a cross compiler, the
2516 # top-level configure script will pass the "real" host as $with_cross_host.
2518 # Do not delete or change the following two lines. For why, see
2519 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2520 ac_aux_dir=
2521 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2522 for ac_t in install-sh install.sh shtool; do
2523 if test -f "$ac_dir/$ac_t"; then
2524 ac_aux_dir=$ac_dir
2525 ac_install_sh="$ac_aux_dir/$ac_t -c"
2526 break 2
2528 done
2529 done
2530 if test -z "$ac_aux_dir"; then
2531 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2534 # These three variables are undocumented and unsupported,
2535 # and are intended to be withdrawn in a future Autoconf release.
2536 # They can cause serious problems if a builder's source tree is in a directory
2537 # whose full name contains unusual characters.
2538 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2539 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2540 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2543 # Make sure we can run config.sub.
2544 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2545 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2548 $as_echo_n "checking build system type... " >&6; }
2549 if test "${ac_cv_build+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 ac_build_alias=$build_alias
2553 test "x$ac_build_alias" = x &&
2554 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2555 test "x$ac_build_alias" = x &&
2556 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2557 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2558 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2562 $as_echo "$ac_cv_build" >&6; }
2563 case $ac_cv_build in
2564 *-*-*) ;;
2565 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2566 esac
2567 build=$ac_cv_build
2568 ac_save_IFS=$IFS; IFS='-'
2569 set x $ac_cv_build
2570 shift
2571 build_cpu=$1
2572 build_vendor=$2
2573 shift; shift
2574 # Remember, the first character of IFS is used to create $*,
2575 # except with old shells:
2576 build_os=$*
2577 IFS=$ac_save_IFS
2578 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2582 $as_echo_n "checking host system type... " >&6; }
2583 if test "${ac_cv_host+set}" = set; then :
2584 $as_echo_n "(cached) " >&6
2585 else
2586 if test "x$host_alias" = x; then
2587 ac_cv_host=$ac_cv_build
2588 else
2589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2590 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2595 $as_echo "$ac_cv_host" >&6; }
2596 case $ac_cv_host in
2597 *-*-*) ;;
2598 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2599 esac
2600 host=$ac_cv_host
2601 ac_save_IFS=$IFS; IFS='-'
2602 set x $ac_cv_host
2603 shift
2604 host_cpu=$1
2605 host_vendor=$2
2606 shift; shift
2607 # Remember, the first character of IFS is used to create $*,
2608 # except with old shells:
2609 host_os=$*
2610 IFS=$ac_save_IFS
2611 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2615 $as_echo_n "checking target system type... " >&6; }
2616 if test "${ac_cv_target+set}" = set; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 if test "x$target_alias" = x; then
2620 ac_cv_target=$ac_cv_host
2621 else
2622 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2623 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2628 $as_echo "$ac_cv_target" >&6; }
2629 case $ac_cv_target in
2630 *-*-*) ;;
2631 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2632 esac
2633 target=$ac_cv_target
2634 ac_save_IFS=$IFS; IFS='-'
2635 set x $ac_cv_target
2636 shift
2637 target_cpu=$1
2638 target_vendor=$2
2639 shift; shift
2640 # Remember, the first character of IFS is used to create $*,
2641 # except with old shells:
2642 target_os=$*
2643 IFS=$ac_save_IFS
2644 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2647 # The aliases save the names the user supplied, while $host etc.
2648 # will get canonicalized.
2649 test -n "$target_alias" &&
2650 test "$program_prefix$program_suffix$program_transform_name" = \
2651 NONENONEs,x,x, &&
2652 program_prefix=${target_alias}-
2654 target_alias=${target_alias-$host_alias}
2656 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2657 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2658 # 1.9.0: minimum required version
2659 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2660 # of other PACKAGE_* variables will, however, and there's nothing
2661 # we can do about that; they come from AC_INIT).
2662 # no-dist: we don't want 'dist' and related rules.
2663 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2664 # file in the top srcdir, etc, etc), so stop complaining.
2665 # -Wall: turns on all automake warnings...
2666 # -Wno-portability: ...except this one, since GNU make is required.
2667 # -Wno-override: ... and this one, since we do want this in testsuite.
2668 am__api_version='1.11'
2670 # Find a good install program. We prefer a C program (faster),
2671 # so one script is as good as another. But avoid the broken or
2672 # incompatible versions:
2673 # SysV /etc/install, /usr/sbin/install
2674 # SunOS /usr/etc/install
2675 # IRIX /sbin/install
2676 # AIX /bin/install
2677 # AmigaOS /C/install, which installs bootblocks on floppy discs
2678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2681 # OS/2's system install, which has a completely different semantic
2682 # ./install, which can be erroneously created by make from ./install.sh.
2683 # Reject install programs that cannot install multiple files.
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2685 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2686 if test -z "$INSTALL"; then
2687 if test "${ac_cv_path_install+set}" = set; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 # Account for people who put trailing slashes in PATH elements.
2696 case $as_dir/ in #((
2697 ./ | .// | /[cC]/* | \
2698 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2699 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2700 /usr/ucb/* ) ;;
2702 # OSF1 and SCO ODT 3.0 have their own names for install.
2703 # Don't use installbsd from OSF since it installs stuff as root
2704 # by default.
2705 for ac_prog in ginstall scoinst install; do
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2708 if test $ac_prog = install &&
2709 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2710 # AIX install. It has an incompatible calling convention.
2712 elif test $ac_prog = install &&
2713 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # program-specific install script used by HP pwplus--don't use.
2716 else
2717 rm -rf conftest.one conftest.two conftest.dir
2718 echo one > conftest.one
2719 echo two > conftest.two
2720 mkdir conftest.dir
2721 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2722 test -s conftest.one && test -s conftest.two &&
2723 test -s conftest.dir/conftest.one &&
2724 test -s conftest.dir/conftest.two
2725 then
2726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2727 break 3
2731 done
2732 done
2734 esac
2736 done
2737 IFS=$as_save_IFS
2739 rm -rf conftest.one conftest.two conftest.dir
2742 if test "${ac_cv_path_install+set}" = set; then
2743 INSTALL=$ac_cv_path_install
2744 else
2745 # As a last resort, use the slow shell script. Don't cache a
2746 # value for INSTALL within a source directory, because that will
2747 # break other packages using the cache if that directory is
2748 # removed, or if the value is a relative name.
2749 INSTALL=$ac_install_sh
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2753 $as_echo "$INSTALL" >&6; }
2755 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2756 # It thinks the first close brace ends the variable substitution.
2757 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2759 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2761 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2764 $as_echo_n "checking whether build environment is sane... " >&6; }
2765 # Just in case
2766 sleep 1
2767 echo timestamp > conftest.file
2768 # Reject unsafe characters in $srcdir or the absolute working directory
2769 # name. Accept space and tab only in the latter.
2770 am_lf='
2772 case `pwd` in
2773 *[\\\"\#\$\&\'\`$am_lf]*)
2774 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2775 esac
2776 case $srcdir in
2777 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2778 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2779 esac
2781 # Do `set' in a subshell so we don't clobber the current shell's
2782 # arguments. Must try -L first in case configure is actually a
2783 # symlink; some systems play weird games with the mod time of symlinks
2784 # (eg FreeBSD returns the mod time of the symlink's containing
2785 # directory).
2786 if (
2787 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2788 if test "$*" = "X"; then
2789 # -L didn't work.
2790 set X `ls -t "$srcdir/configure" conftest.file`
2792 rm -f conftest.file
2793 if test "$*" != "X $srcdir/configure conftest.file" \
2794 && test "$*" != "X conftest.file $srcdir/configure"; then
2796 # If neither matched, then we have a broken ls. This can happen
2797 # if, for instance, CONFIG_SHELL is bash and it inherits a
2798 # broken ls alias from the environment. This has actually
2799 # happened. Such a system could not be considered "sane".
2800 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2801 alias in your environment" "$LINENO" 5
2804 test "$2" = conftest.file
2806 then
2807 # Ok.
2809 else
2810 as_fn_error "newly created file is older than distributed files!
2811 Check your system clock" "$LINENO" 5
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2814 $as_echo "yes" >&6; }
2815 test "$program_prefix" != NONE &&
2816 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2817 # Use a double $ so make ignores it.
2818 test "$program_suffix" != NONE &&
2819 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2820 # Double any \ or $.
2821 # By default was `s,x,x', remove it if useless.
2822 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2823 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2825 # expand $ac_aux_dir to an absolute path
2826 am_aux_dir=`cd $ac_aux_dir && pwd`
2828 if test x"${MISSING+set}" != xset; then
2829 case $am_aux_dir in
2830 *\ * | *\ *)
2831 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2833 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2834 esac
2836 # Use eval to expand $SHELL
2837 if eval "$MISSING --run true"; then
2838 am_missing_run="$MISSING --run "
2839 else
2840 am_missing_run=
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2842 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2845 if test x"${install_sh}" != xset; then
2846 case $am_aux_dir in
2847 *\ * | *\ *)
2848 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2850 install_sh="\${SHELL} $am_aux_dir/install-sh"
2851 esac
2854 # Installed binaries are usually stripped using `strip' when the user
2855 # run `make install-strip'. However `strip' might not be the right
2856 # tool to use in cross-compilation environments, therefore Automake
2857 # will honor the `STRIP' environment variable to overrule this program.
2858 if test "$cross_compiling" != no; then
2859 if test -n "$ac_tool_prefix"; then
2860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2861 set dummy ${ac_tool_prefix}strip; ac_word=$2
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863 $as_echo_n "checking for $ac_word... " >&6; }
2864 if test "${ac_cv_prog_STRIP+set}" = set; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 if test -n "$STRIP"; then
2868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2873 IFS=$as_save_IFS
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879 break 2
2881 done
2882 done
2883 IFS=$as_save_IFS
2887 STRIP=$ac_cv_prog_STRIP
2888 if test -n "$STRIP"; then
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2890 $as_echo "$STRIP" >&6; }
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893 $as_echo "no" >&6; }
2898 if test -z "$ac_cv_prog_STRIP"; then
2899 ac_ct_STRIP=$STRIP
2900 # Extract the first word of "strip", so it can be a program name with args.
2901 set dummy strip; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2905 $as_echo_n "(cached) " >&6
2906 else
2907 if test -n "$ac_ct_STRIP"; then
2908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2909 else
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 for as_dir in $PATH
2913 IFS=$as_save_IFS
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_ac_ct_STRIP="strip"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 break 2
2921 done
2922 done
2923 IFS=$as_save_IFS
2927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2928 if test -n "$ac_ct_STRIP"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2930 $as_echo "$ac_ct_STRIP" >&6; }
2931 else
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2936 if test "x$ac_ct_STRIP" = x; then
2937 STRIP=":"
2938 else
2939 case $cross_compiling:$ac_tool_warned in
2940 yes:)
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2943 ac_tool_warned=yes ;;
2944 esac
2945 STRIP=$ac_ct_STRIP
2947 else
2948 STRIP="$ac_cv_prog_STRIP"
2952 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2955 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2956 if test -z "$MKDIR_P"; then
2957 if test "${ac_cv_path_mkdir+set}" = set; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_prog in mkdir gmkdir; do
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2968 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2969 'mkdir (GNU coreutils) '* | \
2970 'mkdir (coreutils) '* | \
2971 'mkdir (fileutils) '4.1*)
2972 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2973 break 3;;
2974 esac
2975 done
2976 done
2977 done
2978 IFS=$as_save_IFS
2982 if test "${ac_cv_path_mkdir+set}" = set; then
2983 MKDIR_P="$ac_cv_path_mkdir -p"
2984 else
2985 # As a last resort, use the slow shell script. Don't cache a
2986 # value for MKDIR_P within a source directory, because that will
2987 # break other packages using the cache if that directory is
2988 # removed, or if the value is a relative name.
2989 test -d ./--version && rmdir ./--version
2990 MKDIR_P="$ac_install_sh -d"
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2994 $as_echo "$MKDIR_P" >&6; }
2996 mkdir_p="$MKDIR_P"
2997 case $mkdir_p in
2998 [\\/$]* | ?:[\\/]*) ;;
2999 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3000 esac
3002 for ac_prog in gawk mawk nawk awk
3004 # Extract the first word of "$ac_prog", so it can be a program name with args.
3005 set dummy $ac_prog; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if test "${ac_cv_prog_AWK+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3010 else
3011 if test -n "$AWK"; then
3012 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_AWK="$ac_prog"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023 break 2
3025 done
3026 done
3027 IFS=$as_save_IFS
3031 AWK=$ac_cv_prog_AWK
3032 if test -n "$AWK"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3034 $as_echo "$AWK" >&6; }
3035 else
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3041 test -n "$AWK" && break
3042 done
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3045 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3046 set x ${MAKE-make}
3047 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3048 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 cat >conftest.make <<\_ACEOF
3052 SHELL = /bin/sh
3053 all:
3054 @echo '@@@%%%=$(MAKE)=@@@%%%'
3055 _ACEOF
3056 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3057 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3058 *@@@%%%=?*=@@@%%%*)
3059 eval ac_cv_prog_make_${ac_make}_set=yes;;
3061 eval ac_cv_prog_make_${ac_make}_set=no;;
3062 esac
3063 rm -f conftest.make
3065 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3067 $as_echo "yes" >&6; }
3068 SET_MAKE=
3069 else
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 SET_MAKE="MAKE=${MAKE-make}"
3075 rm -rf .tst 2>/dev/null
3076 mkdir .tst 2>/dev/null
3077 if test -d .tst; then
3078 am__leading_dot=.
3079 else
3080 am__leading_dot=_
3082 rmdir .tst 2>/dev/null
3084 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3085 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3086 # is not polluted with repeated "-I."
3087 am__isrc=' -I$(srcdir)'
3088 # test to see if srcdir already configured
3089 if test -f $srcdir/config.status; then
3090 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3094 # test whether we have cygpath
3095 if test -z "$CYGPATH_W"; then
3096 if (cygpath --version) >/dev/null 2>/dev/null; then
3097 CYGPATH_W='cygpath -w'
3098 else
3099 CYGPATH_W=echo
3104 # Define the identity of the package.
3105 PACKAGE='libatomic'
3106 VERSION='1.0'
3109 cat >>confdefs.h <<_ACEOF
3110 #define PACKAGE "$PACKAGE"
3111 _ACEOF
3114 cat >>confdefs.h <<_ACEOF
3115 #define VERSION "$VERSION"
3116 _ACEOF
3118 # Some tools Automake needs.
3120 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3123 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3126 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3129 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3132 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3134 # We need awk for the "check" target. The system "awk" is bad on
3135 # some platforms.
3136 # Always define AMTAR for backward compatibility. Yes, it's still used
3137 # in the wild :-( We should find a proper way to deprecate it ...
3138 AMTAR='$${TAR-tar}'
3140 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3146 # Default to --enable-multilib
3147 # Check whether --enable-multilib was given.
3148 if test "${enable_multilib+set}" = set; then :
3149 enableval=$enable_multilib; case "$enableval" in
3150 yes) multilib=yes ;;
3151 no) multilib=no ;;
3152 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3153 esac
3154 else
3155 multilib=yes
3159 # We may get other options which we leave undocumented:
3160 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3161 # See config-ml.in if you want the gory details.
3163 if test "$srcdir" = "."; then
3164 if test "$with_target_subdir" != "."; then
3165 multi_basedir="$srcdir/$with_multisrctop../.."
3166 else
3167 multi_basedir="$srcdir/$with_multisrctop.."
3169 else
3170 multi_basedir="$srcdir/.."
3174 # Even if the default multilib is not a cross compilation,
3175 # it may be that some of the other multilibs are.
3176 if test $cross_compiling = no && test $multilib = yes \
3177 && test "x${with_multisubdir}" != x ; then
3178 cross_compiling=maybe
3181 ac_config_commands="$ac_config_commands default-1"
3184 # Calculate toolexeclibdir
3185 # Also toolexecdir, though it's only used in toolexeclibdir
3186 case ${enable_version_specific_runtime_libs} in
3187 yes)
3188 # Need the gcc compiler version to know where to install libraries
3189 # and header files if --enable-version-specific-runtime-libs option
3190 # is selected.
3191 toolexecdir='$(libdir)/gcc/$(target_alias)'
3192 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3195 if test -n "$with_cross_host" &&
3196 test x"$with_cross_host" != x"no"; then
3197 # Install a library built with a cross compiler in tooldir, not libdir.
3198 toolexecdir='$(exec_prefix)/$(target_alias)'
3199 toolexeclibdir='$(toolexecdir)/lib'
3200 else
3201 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3202 toolexeclibdir='$(libdir)'
3204 multi_os_directory=`$CC -print-multi-os-directory`
3205 case $multi_os_directory in
3206 .) ;; # Avoid trailing /.
3207 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3208 esac
3210 esac
3214 # Check the compiler.
3215 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3216 # We must force CC to /not/ be precious variables; otherwise
3217 # the wrong, non-multilib-adjusted value will be used in multilibs.
3218 # As a side effect, we have to subst CFLAGS ourselves.
3222 ac_ext=c
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227 if test -n "$ac_tool_prefix"; then
3228 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3229 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231 $as_echo_n "checking for $ac_word... " >&6; }
3232 if test "${ac_cv_prog_CC+set}" = set; then :
3233 $as_echo_n "(cached) " >&6
3234 else
3235 if test -n "$CC"; then
3236 ac_cv_prog_CC="$CC" # Let the user override the test.
3237 else
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3249 done
3250 done
3251 IFS=$as_save_IFS
3255 CC=$ac_cv_prog_CC
3256 if test -n "$CC"; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258 $as_echo "$CC" >&6; }
3259 else
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261 $as_echo "no" >&6; }
3266 if test -z "$ac_cv_prog_CC"; then
3267 ac_ct_CC=$CC
3268 # Extract the first word of "gcc", so it can be a program name with args.
3269 set dummy gcc; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 if test -n "$ac_ct_CC"; then
3276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285 ac_cv_prog_ac_ct_CC="gcc"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3289 done
3290 done
3291 IFS=$as_save_IFS
3295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3296 if test -n "$ac_ct_CC"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3298 $as_echo "$ac_ct_CC" >&6; }
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3304 if test "x$ac_ct_CC" = x; then
3305 CC=""
3306 else
3307 case $cross_compiling:$ac_tool_warned in
3308 yes:)
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3311 ac_tool_warned=yes ;;
3312 esac
3313 CC=$ac_ct_CC
3315 else
3316 CC="$ac_cv_prog_CC"
3319 if test -z "$CC"; then
3320 if test -n "$ac_tool_prefix"; then
3321 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3322 set dummy ${ac_tool_prefix}cc; ac_word=$2
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324 $as_echo_n "checking for $ac_word... " >&6; }
3325 if test "${ac_cv_prog_CC+set}" = set; then :
3326 $as_echo_n "(cached) " >&6
3327 else
3328 if test -n "$CC"; then
3329 ac_cv_prog_CC="$CC" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3334 IFS=$as_save_IFS
3335 test -z "$as_dir" && as_dir=.
3336 for ac_exec_ext in '' $ac_executable_extensions; do
3337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338 ac_cv_prog_CC="${ac_tool_prefix}cc"
3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 break 2
3342 done
3343 done
3344 IFS=$as_save_IFS
3348 CC=$ac_cv_prog_CC
3349 if test -n "$CC"; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351 $as_echo "$CC" >&6; }
3352 else
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 $as_echo "no" >&6; }
3360 if test -z "$CC"; then
3361 # Extract the first word of "cc", so it can be a program name with args.
3362 set dummy cc; ac_word=$2
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 $as_echo_n "checking for $ac_word... " >&6; }
3365 if test "${ac_cv_prog_CC+set}" = set; then :
3366 $as_echo_n "(cached) " >&6
3367 else
3368 if test -n "$CC"; then
3369 ac_cv_prog_CC="$CC" # Let the user override the test.
3370 else
3371 ac_prog_rejected=no
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3380 ac_prog_rejected=yes
3381 continue
3383 ac_cv_prog_CC="cc"
3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385 break 2
3387 done
3388 done
3389 IFS=$as_save_IFS
3391 if test $ac_prog_rejected = yes; then
3392 # We found a bogon in the path, so make sure we never use it.
3393 set dummy $ac_cv_prog_CC
3394 shift
3395 if test $# != 0; then
3396 # We chose a different compiler from the bogus one.
3397 # However, it has the same basename, so the bogon will be chosen
3398 # first if we set CC to just the basename; use the full file name.
3399 shift
3400 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3405 CC=$ac_cv_prog_CC
3406 if test -n "$CC"; then
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408 $as_echo "$CC" >&6; }
3409 else
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411 $as_echo "no" >&6; }
3416 if test -z "$CC"; then
3417 if test -n "$ac_tool_prefix"; then
3418 for ac_prog in cl.exe
3420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3441 done
3442 done
3443 IFS=$as_save_IFS
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3457 test -n "$CC" && break
3458 done
3460 if test -z "$CC"; then
3461 ac_ct_CC=$CC
3462 for ac_prog in cl.exe
3464 # Extract the first word of "$ac_prog", so it can be a program name with args.
3465 set dummy $ac_prog; ac_word=$2
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467 $as_echo_n "checking for $ac_word... " >&6; }
3468 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 if test -n "$ac_ct_CC"; then
3472 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3473 else
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 for as_dir in $PATH
3477 IFS=$as_save_IFS
3478 test -z "$as_dir" && as_dir=.
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3481 ac_cv_prog_ac_ct_CC="$ac_prog"
3482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483 break 2
3485 done
3486 done
3487 IFS=$as_save_IFS
3491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3492 if test -n "$ac_ct_CC"; then
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3494 $as_echo "$ac_ct_CC" >&6; }
3495 else
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3501 test -n "$ac_ct_CC" && break
3502 done
3504 if test "x$ac_ct_CC" = x; then
3505 CC=""
3506 else
3507 case $cross_compiling:$ac_tool_warned in
3508 yes:)
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3511 ac_tool_warned=yes ;;
3512 esac
3513 CC=$ac_ct_CC
3520 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 as_fn_error "no acceptable C compiler found in \$PATH
3523 See \`config.log' for more details." "$LINENO" 5; }
3525 # Provide some information about the compiler.
3526 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3527 set X $ac_compile
3528 ac_compiler=$2
3529 for ac_option in --version -v -V -qversion; do
3530 { { ac_try="$ac_compiler $ac_option >&5"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536 $as_echo "$ac_try_echo"; } >&5
3537 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3538 ac_status=$?
3539 if test -s conftest.err; then
3540 sed '10a\
3541 ... rest of stderr output deleted ...
3542 10q' conftest.err >conftest.er1
3543 cat conftest.er1 >&5
3544 rm -f conftest.er1 conftest.err
3546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547 test $ac_status = 0; }
3548 done
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3554 main ()
3558 return 0;
3560 _ACEOF
3561 ac_clean_files_save=$ac_clean_files
3562 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3563 # Try to create an executable without -o first, disregard a.out.
3564 # It will help us diagnose broken compilers, and finding out an intuition
3565 # of exeext.
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3567 $as_echo_n "checking for C compiler default output file name... " >&6; }
3568 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3570 # The possible output files:
3571 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3573 ac_rmfiles=
3574 for ac_file in $ac_files
3576 case $ac_file in
3577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3578 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3579 esac
3580 done
3581 rm -f $ac_rmfiles
3583 if { { ac_try="$ac_link_default"
3584 case "(($ac_try" in
3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3587 esac
3588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589 $as_echo "$ac_try_echo"; } >&5
3590 (eval "$ac_link_default") 2>&5
3591 ac_status=$?
3592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593 test $ac_status = 0; }; then :
3594 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3595 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3596 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3597 # so that the user can short-circuit this test for compilers unknown to
3598 # Autoconf.
3599 for ac_file in $ac_files ''
3601 test -f "$ac_file" || continue
3602 case $ac_file in
3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3605 [ab].out )
3606 # We found the default executable, but exeext='' is most
3607 # certainly right.
3608 break;;
3609 *.* )
3610 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3611 then :; else
3612 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3614 # We set ac_cv_exeext here because the later test for it is not
3615 # safe: cross compilers may not add the suffix if given an `-o'
3616 # argument, so we may need to know it at that point already.
3617 # Even if this section looks crufty: it has the advantage of
3618 # actually working.
3619 break;;
3621 break;;
3622 esac
3623 done
3624 test "$ac_cv_exeext" = no && ac_cv_exeext=
3626 else
3627 ac_file=''
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3630 $as_echo "$ac_file" >&6; }
3631 if test -z "$ac_file"; then :
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 { as_fn_set_status 77
3638 as_fn_error "C compiler cannot create executables
3639 See \`config.log' for more details." "$LINENO" 5; }; }
3641 ac_exeext=$ac_cv_exeext
3643 # Check that the compiler produces executables we can run. If not, either
3644 # the compiler is broken, or we cross compile.
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3646 $as_echo_n "checking whether the C compiler works... " >&6; }
3647 # If not cross compiling, check that we can run a simple program.
3648 if test "$cross_compiling" != yes; then
3649 if { ac_try='./$ac_file'
3650 { { case "(($ac_try" in
3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652 *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3655 $as_echo "$ac_try_echo"; } >&5
3656 (eval "$ac_try") 2>&5
3657 ac_status=$?
3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3659 test $ac_status = 0; }; }; then
3660 cross_compiling=no
3661 else
3662 if test "$cross_compiling" = maybe; then
3663 cross_compiling=yes
3664 else
3665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3667 as_fn_error "cannot run C compiled programs.
3668 If you meant to cross compile, use \`--host'.
3669 See \`config.log' for more details." "$LINENO" 5; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3674 $as_echo "yes" >&6; }
3676 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3677 ac_clean_files=$ac_clean_files_save
3678 # Check that the compiler produces executables we can run. If not, either
3679 # the compiler is broken, or we cross compile.
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3681 $as_echo_n "checking whether we are cross compiling... " >&6; }
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3683 $as_echo "$cross_compiling" >&6; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3686 $as_echo_n "checking for suffix of executables... " >&6; }
3687 if { { ac_try="$ac_link"
3688 case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_link") 2>&5
3695 ac_status=$?
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; then :
3698 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3699 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3700 # work properly (i.e., refer to `conftest.exe'), while it won't with
3701 # `rm'.
3702 for ac_file in conftest.exe conftest conftest.*; do
3703 test -f "$ac_file" || continue
3704 case $ac_file in
3705 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3706 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3707 break;;
3708 * ) break;;
3709 esac
3710 done
3711 else
3712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3714 as_fn_error "cannot compute suffix of executables: cannot compile and link
3715 See \`config.log' for more details." "$LINENO" 5; }
3717 rm -f conftest$ac_cv_exeext
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3719 $as_echo "$ac_cv_exeext" >&6; }
3721 rm -f conftest.$ac_ext
3722 EXEEXT=$ac_cv_exeext
3723 ac_exeext=$EXEEXT
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3725 $as_echo_n "checking for suffix of object files... " >&6; }
3726 if test "${ac_cv_objext+set}" = set; then :
3727 $as_echo_n "(cached) " >&6
3728 else
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3733 main ()
3737 return 0;
3739 _ACEOF
3740 rm -f conftest.o conftest.obj
3741 if { { ac_try="$ac_compile"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_compile") 2>&5
3749 ac_status=$?
3750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751 test $ac_status = 0; }; then :
3752 for ac_file in conftest.o conftest.obj conftest.*; do
3753 test -f "$ac_file" || continue;
3754 case $ac_file in
3755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3756 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3757 break;;
3758 esac
3759 done
3760 else
3761 $as_echo "$as_me: failed program was:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766 as_fn_error "cannot compute suffix of object files: cannot compile
3767 See \`config.log' for more details." "$LINENO" 5; }
3769 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3772 $as_echo "$ac_cv_objext" >&6; }
3773 OBJEXT=$ac_cv_objext
3774 ac_objext=$OBJEXT
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3776 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3777 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3779 else
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3784 main ()
3786 #ifndef __GNUC__
3787 choke me
3788 #endif
3791 return 0;
3793 _ACEOF
3794 if ac_fn_c_try_compile "$LINENO"; then :
3795 ac_compiler_gnu=yes
3796 else
3797 ac_compiler_gnu=no
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3804 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3805 if test $ac_compiler_gnu = yes; then
3806 GCC=yes
3807 else
3808 GCC=
3810 ac_test_CFLAGS=${CFLAGS+set}
3811 ac_save_CFLAGS=$CFLAGS
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3813 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3814 if test "${ac_cv_prog_cc_g+set}" = set; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 ac_save_c_werror_flag=$ac_c_werror_flag
3818 ac_c_werror_flag=yes
3819 ac_cv_prog_cc_g=no
3820 CFLAGS="-g"
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3825 main ()
3829 return 0;
3831 _ACEOF
3832 if ac_fn_c_try_compile "$LINENO"; then :
3833 ac_cv_prog_cc_g=yes
3834 else
3835 CFLAGS=""
3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3840 main ()
3844 return 0;
3846 _ACEOF
3847 if ac_fn_c_try_compile "$LINENO"; then :
3849 else
3850 ac_c_werror_flag=$ac_save_c_werror_flag
3851 CFLAGS="-g"
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3856 main ()
3860 return 0;
3862 _ACEOF
3863 if ac_fn_c_try_compile "$LINENO"; then :
3864 ac_cv_prog_cc_g=yes
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3871 ac_c_werror_flag=$ac_save_c_werror_flag
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3874 $as_echo "$ac_cv_prog_cc_g" >&6; }
3875 if test "$ac_test_CFLAGS" = set; then
3876 CFLAGS=$ac_save_CFLAGS
3877 elif test $ac_cv_prog_cc_g = yes; then
3878 if test "$GCC" = yes; then
3879 CFLAGS="-g -O2"
3880 else
3881 CFLAGS="-g"
3883 else
3884 if test "$GCC" = yes; then
3885 CFLAGS="-O2"
3886 else
3887 CFLAGS=
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3891 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3892 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
3894 else
3895 ac_cv_prog_cc_c89=no
3896 ac_save_CC=$CC
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3899 #include <stdarg.h>
3900 #include <stdio.h>
3901 #include <sys/types.h>
3902 #include <sys/stat.h>
3903 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3904 struct buf { int x; };
3905 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3906 static char *e (p, i)
3907 char **p;
3908 int i;
3910 return p[i];
3912 static char *f (char * (*g) (char **, int), char **p, ...)
3914 char *s;
3915 va_list v;
3916 va_start (v,p);
3917 s = g (p, va_arg (v,int));
3918 va_end (v);
3919 return s;
3922 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3923 function prototypes and stuff, but not '\xHH' hex character constants.
3924 These don't provoke an error unfortunately, instead are silently treated
3925 as 'x'. The following induces an error, until -std is added to get
3926 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3927 array size at least. It's necessary to write '\x00'==0 to get something
3928 that's true only with -std. */
3929 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3931 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3932 inside strings and character constants. */
3933 #define FOO(x) 'x'
3934 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3936 int test (int i, double x);
3937 struct s1 {int (*f) (int a);};
3938 struct s2 {int (*f) (double a);};
3939 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3940 int argc;
3941 char **argv;
3943 main ()
3945 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3947 return 0;
3949 _ACEOF
3950 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3951 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3953 CC="$ac_save_CC $ac_arg"
3954 if ac_fn_c_try_compile "$LINENO"; then :
3955 ac_cv_prog_cc_c89=$ac_arg
3957 rm -f core conftest.err conftest.$ac_objext
3958 test "x$ac_cv_prog_cc_c89" != "xno" && break
3959 done
3960 rm -f conftest.$ac_ext
3961 CC=$ac_save_CC
3964 # AC_CACHE_VAL
3965 case "x$ac_cv_prog_cc_c89" in
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3968 $as_echo "none needed" >&6; } ;;
3969 xno)
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3971 $as_echo "unsupported" >&6; } ;;
3973 CC="$CC $ac_cv_prog_cc_c89"
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3975 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3976 esac
3977 if test "x$ac_cv_prog_cc_c89" != xno; then :
3981 ac_ext=c
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986 DEPDIR="${am__leading_dot}deps"
3988 ac_config_commands="$ac_config_commands depfiles"
3991 am_make=${MAKE-make}
3992 cat > confinc << 'END'
3993 am__doit:
3994 @echo this is the am__doit target
3995 .PHONY: am__doit
3997 # If we don't find an include directive, just comment out the code.
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3999 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4000 am__include="#"
4001 am__quote=
4002 _am_result=none
4003 # First try GNU make style include.
4004 echo "include confinc" > confmf
4005 # Ignore all kinds of additional output from `make'.
4006 case `$am_make -s -f confmf 2> /dev/null` in #(
4007 *the\ am__doit\ target*)
4008 am__include=include
4009 am__quote=
4010 _am_result=GNU
4012 esac
4013 # Now try BSD make style include.
4014 if test "$am__include" = "#"; then
4015 echo '.include "confinc"' > confmf
4016 case `$am_make -s -f confmf 2> /dev/null` in #(
4017 *the\ am__doit\ target*)
4018 am__include=.include
4019 am__quote="\""
4020 _am_result=BSD
4022 esac
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4027 $as_echo "$_am_result" >&6; }
4028 rm -f confinc confmf
4030 # Check whether --enable-dependency-tracking was given.
4031 if test "${enable_dependency_tracking+set}" = set; then :
4032 enableval=$enable_dependency_tracking;
4035 if test "x$enable_dependency_tracking" != xno; then
4036 am_depcomp="$ac_aux_dir/depcomp"
4037 AMDEPBACKSLASH='\'
4038 am__nodep='_no'
4040 if test "x$enable_dependency_tracking" != xno; then
4041 AMDEP_TRUE=
4042 AMDEP_FALSE='#'
4043 else
4044 AMDEP_TRUE='#'
4045 AMDEP_FALSE=
4050 depcc="$CC" am_compiler_list=
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4053 $as_echo_n "checking dependency style of $depcc... " >&6; }
4054 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4055 $as_echo_n "(cached) " >&6
4056 else
4057 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4058 # We make a subdir and do the tests there. Otherwise we can end up
4059 # making bogus files that we don't know about and never remove. For
4060 # instance it was reported that on HP-UX the gcc test will end up
4061 # making a dummy file named `D' -- because `-MD' means `put the output
4062 # in D'.
4063 rm -rf conftest.dir
4064 mkdir conftest.dir
4065 # Copy depcomp to subdir because otherwise we won't find it if we're
4066 # using a relative directory.
4067 cp "$am_depcomp" conftest.dir
4068 cd conftest.dir
4069 # We will build objects and dependencies in a subdirectory because
4070 # it helps to detect inapplicable dependency modes. For instance
4071 # both Tru64's cc and ICC support -MD to output dependencies as a
4072 # side effect of compilation, but ICC will put the dependencies in
4073 # the current directory while Tru64 will put them in the object
4074 # directory.
4075 mkdir sub
4077 am_cv_CC_dependencies_compiler_type=none
4078 if test "$am_compiler_list" = ""; then
4079 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4081 am__universal=false
4082 case " $depcc " in #(
4083 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4084 esac
4086 for depmode in $am_compiler_list; do
4087 # Setup a source with many dependencies, because some compilers
4088 # like to wrap large dependency lists on column 80 (with \), and
4089 # we should not choose a depcomp mode which is confused by this.
4091 # We need to recreate these files for each test, as the compiler may
4092 # overwrite some of them when testing with obscure command lines.
4093 # This happens at least with the AIX C compiler.
4094 : > sub/conftest.c
4095 for i in 1 2 3 4 5 6; do
4096 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4097 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4098 # Solaris 8's {/usr,}/bin/sh.
4099 touch sub/conftst$i.h
4100 done
4101 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4103 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4104 # mode. It turns out that the SunPro C++ compiler does not properly
4105 # handle `-M -o', and we need to detect this. Also, some Intel
4106 # versions had trouble with output in subdirs
4107 am__obj=sub/conftest.${OBJEXT-o}
4108 am__minus_obj="-o $am__obj"
4109 case $depmode in
4110 gcc)
4111 # This depmode causes a compiler race in universal mode.
4112 test "$am__universal" = false || continue
4114 nosideeffect)
4115 # after this tag, mechanisms are not by side-effect, so they'll
4116 # only be used when explicitly requested
4117 if test "x$enable_dependency_tracking" = xyes; then
4118 continue
4119 else
4120 break
4123 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4124 # This compiler won't grok `-c -o', but also, the minuso test has
4125 # not run yet. These depmodes are late enough in the game, and
4126 # so weak that their functioning should not be impacted.
4127 am__obj=conftest.${OBJEXT-o}
4128 am__minus_obj=
4130 none) break ;;
4131 esac
4132 if depmode=$depmode \
4133 source=sub/conftest.c object=$am__obj \
4134 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4135 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4136 >/dev/null 2>conftest.err &&
4137 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4138 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4139 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4140 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4141 # icc doesn't choke on unknown options, it will just issue warnings
4142 # or remarks (even with -Werror). So we grep stderr for any message
4143 # that says an option was ignored or not supported.
4144 # When given -MP, icc 7.0 and 7.1 complain thusly:
4145 # icc: Command line warning: ignoring option '-M'; no argument required
4146 # The diagnosis changed in icc 8.0:
4147 # icc: Command line remark: option '-MP' not supported
4148 if (grep 'ignoring option' conftest.err ||
4149 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4150 am_cv_CC_dependencies_compiler_type=$depmode
4151 break
4154 done
4156 cd ..
4157 rm -rf conftest.dir
4158 else
4159 am_cv_CC_dependencies_compiler_type=none
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4164 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4165 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4168 test "x$enable_dependency_tracking" != xno \
4169 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4170 am__fastdepCC_TRUE=
4171 am__fastdepCC_FALSE='#'
4172 else
4173 am__fastdepCC_TRUE='#'
4174 am__fastdepCC_FALSE=
4178 # By default we simply use the C compiler to build assembly code.
4180 test "${CCAS+set}" = set || CCAS=$CC
4181 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4185 depcc="$CCAS" am_compiler_list=
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4188 $as_echo_n "checking dependency style of $depcc... " >&6; }
4189 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4193 # We make a subdir and do the tests there. Otherwise we can end up
4194 # making bogus files that we don't know about and never remove. For
4195 # instance it was reported that on HP-UX the gcc test will end up
4196 # making a dummy file named `D' -- because `-MD' means `put the output
4197 # in D'.
4198 rm -rf conftest.dir
4199 mkdir conftest.dir
4200 # Copy depcomp to subdir because otherwise we won't find it if we're
4201 # using a relative directory.
4202 cp "$am_depcomp" conftest.dir
4203 cd conftest.dir
4204 # We will build objects and dependencies in a subdirectory because
4205 # it helps to detect inapplicable dependency modes. For instance
4206 # both Tru64's cc and ICC support -MD to output dependencies as a
4207 # side effect of compilation, but ICC will put the dependencies in
4208 # the current directory while Tru64 will put them in the object
4209 # directory.
4210 mkdir sub
4212 am_cv_CCAS_dependencies_compiler_type=none
4213 if test "$am_compiler_list" = ""; then
4214 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4216 am__universal=false
4219 for depmode in $am_compiler_list; do
4220 # Setup a source with many dependencies, because some compilers
4221 # like to wrap large dependency lists on column 80 (with \), and
4222 # we should not choose a depcomp mode which is confused by this.
4224 # We need to recreate these files for each test, as the compiler may
4225 # overwrite some of them when testing with obscure command lines.
4226 # This happens at least with the AIX C compiler.
4227 : > sub/conftest.c
4228 for i in 1 2 3 4 5 6; do
4229 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4230 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4231 # Solaris 8's {/usr,}/bin/sh.
4232 touch sub/conftst$i.h
4233 done
4234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4236 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4237 # mode. It turns out that the SunPro C++ compiler does not properly
4238 # handle `-M -o', and we need to detect this. Also, some Intel
4239 # versions had trouble with output in subdirs
4240 am__obj=sub/conftest.${OBJEXT-o}
4241 am__minus_obj="-o $am__obj"
4242 case $depmode in
4243 gcc)
4244 # This depmode causes a compiler race in universal mode.
4245 test "$am__universal" = false || continue
4247 nosideeffect)
4248 # after this tag, mechanisms are not by side-effect, so they'll
4249 # only be used when explicitly requested
4250 if test "x$enable_dependency_tracking" = xyes; then
4251 continue
4252 else
4253 break
4256 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4257 # This compiler won't grok `-c -o', but also, the minuso test has
4258 # not run yet. These depmodes are late enough in the game, and
4259 # so weak that their functioning should not be impacted.
4260 am__obj=conftest.${OBJEXT-o}
4261 am__minus_obj=
4263 none) break ;;
4264 esac
4265 if depmode=$depmode \
4266 source=sub/conftest.c object=$am__obj \
4267 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4268 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4269 >/dev/null 2>conftest.err &&
4270 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4271 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4272 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4273 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4274 # icc doesn't choke on unknown options, it will just issue warnings
4275 # or remarks (even with -Werror). So we grep stderr for any message
4276 # that says an option was ignored or not supported.
4277 # When given -MP, icc 7.0 and 7.1 complain thusly:
4278 # icc: Command line warning: ignoring option '-M'; no argument required
4279 # The diagnosis changed in icc 8.0:
4280 # icc: Command line remark: option '-MP' not supported
4281 if (grep 'ignoring option' conftest.err ||
4282 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4283 am_cv_CCAS_dependencies_compiler_type=$depmode
4284 break
4287 done
4289 cd ..
4290 rm -rf conftest.dir
4291 else
4292 am_cv_CCAS_dependencies_compiler_type=none
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4297 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4298 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4301 test "x$enable_dependency_tracking" != xno \
4302 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4303 am__fastdepCCAS_TRUE=
4304 am__fastdepCCAS_FALSE='#'
4305 else
4306 am__fastdepCCAS_TRUE='#'
4307 am__fastdepCCAS_FALSE=
4315 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4316 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4317 # in both places for now and restore CFLAGS at the end of config.
4318 save_CFLAGS="$CFLAGS"
4320 # Find other programs we need.
4321 if test -n "$ac_tool_prefix"; then
4322 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4323 set dummy ${ac_tool_prefix}ar; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if test "${ac_cv_prog_AR+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 if test -n "$AR"; then
4330 ac_cv_prog_AR="$AR" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_AR="${ac_tool_prefix}ar"
4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4343 done
4344 done
4345 IFS=$as_save_IFS
4349 AR=$ac_cv_prog_AR
4350 if test -n "$AR"; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4352 $as_echo "$AR" >&6; }
4353 else
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4360 if test -z "$ac_cv_prog_AR"; then
4361 ac_ct_AR=$AR
4362 # Extract the first word of "ar", so it can be a program name with args.
4363 set dummy ar; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if test -n "$ac_ct_AR"; then
4370 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4371 else
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_exec_ext in '' $ac_executable_extensions; do
4378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4379 ac_cv_prog_ac_ct_AR="ar"
4380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 break 2
4383 done
4384 done
4385 IFS=$as_save_IFS
4389 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4390 if test -n "$ac_ct_AR"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4392 $as_echo "$ac_ct_AR" >&6; }
4393 else
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4398 if test "x$ac_ct_AR" = x; then
4399 AR=""
4400 else
4401 case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407 AR=$ac_ct_AR
4409 else
4410 AR="$ac_cv_prog_AR"
4413 if test -n "$ac_tool_prefix"; then
4414 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4415 set dummy ${ac_tool_prefix}nm; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if test "${ac_cv_prog_NM+set}" = set; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 if test -n "$NM"; then
4422 ac_cv_prog_NM="$NM" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4431 ac_cv_prog_NM="${ac_tool_prefix}nm"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4435 done
4436 done
4437 IFS=$as_save_IFS
4441 NM=$ac_cv_prog_NM
4442 if test -n "$NM"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4444 $as_echo "$NM" >&6; }
4445 else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4452 if test -z "$ac_cv_prog_NM"; then
4453 ac_ct_NM=$NM
4454 # Extract the first word of "nm", so it can be a program name with args.
4455 set dummy nm; ac_word=$2
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4457 $as_echo_n "checking for $ac_word... " >&6; }
4458 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 if test -n "$ac_ct_NM"; then
4462 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4463 else
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 for as_dir in $PATH
4467 IFS=$as_save_IFS
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4471 ac_cv_prog_ac_ct_NM="nm"
4472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4473 break 2
4475 done
4476 done
4477 IFS=$as_save_IFS
4481 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4482 if test -n "$ac_ct_NM"; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4484 $as_echo "$ac_ct_NM" >&6; }
4485 else
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487 $as_echo "no" >&6; }
4490 if test "x$ac_ct_NM" = x; then
4491 NM=""
4492 else
4493 case $cross_compiling:$ac_tool_warned in
4494 yes:)
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4497 ac_tool_warned=yes ;;
4498 esac
4499 NM=$ac_ct_NM
4501 else
4502 NM="$ac_cv_prog_NM"
4505 if test -n "$ac_tool_prefix"; then
4506 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4507 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 $as_echo_n "checking for $ac_word... " >&6; }
4510 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test -n "$RANLIB"; then
4514 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4523 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 break 2
4527 done
4528 done
4529 IFS=$as_save_IFS
4533 RANLIB=$ac_cv_prog_RANLIB
4534 if test -n "$RANLIB"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4536 $as_echo "$RANLIB" >&6; }
4537 else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 $as_echo "no" >&6; }
4544 if test -z "$ac_cv_prog_RANLIB"; then
4545 ac_ct_RANLIB=$RANLIB
4546 # Extract the first word of "ranlib", so it can be a program name with args.
4547 set dummy ranlib; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if test -n "$ac_ct_RANLIB"; then
4554 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4563 ac_cv_prog_ac_ct_RANLIB="ranlib"
4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565 break 2
4567 done
4568 done
4569 IFS=$as_save_IFS
4573 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4574 if test -n "$ac_ct_RANLIB"; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4576 $as_echo "$ac_ct_RANLIB" >&6; }
4577 else
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4582 if test "x$ac_ct_RANLIB" = x; then
4583 RANLIB="ranlib-not-found-in-path-error"
4584 else
4585 case $cross_compiling:$ac_tool_warned in
4586 yes:)
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4589 ac_tool_warned=yes ;;
4590 esac
4591 RANLIB=$ac_ct_RANLIB
4593 else
4594 RANLIB="$ac_cv_prog_RANLIB"
4597 # Extract the first word of "perl", so it can be a program name with args.
4598 set dummy perl; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if test "${ac_cv_path_PERL+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 case $PERL in
4605 [\\/]* | ?:[\\/]*)
4606 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4616 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4620 done
4621 done
4622 IFS=$as_save_IFS
4624 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4626 esac
4628 PERL=$ac_cv_path_PERL
4629 if test -n "$PERL"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4631 $as_echo "$PERL" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4640 # Configure libtool
4641 case `pwd` in
4642 *\ * | *\ *)
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4644 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4645 esac
4649 macro_version='2.2.7a'
4650 macro_revision='1.3134'
4664 ltmain="$ac_aux_dir/ltmain.sh"
4666 # Backslashify metacharacters that are still active within
4667 # double-quoted strings.
4668 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4670 # Same as above, but do not quote variable references.
4671 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4673 # Sed substitution to delay expansion of an escaped shell variable in a
4674 # double_quote_subst'ed string.
4675 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4677 # Sed substitution to delay expansion of an escaped single quote.
4678 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4680 # Sed substitution to avoid accidental globbing in evaled expressions
4681 no_glob_subst='s/\*/\\\*/g'
4683 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4684 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4685 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4688 $as_echo_n "checking how to print strings... " >&6; }
4689 # Test print first, because it will be a builtin if present.
4690 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4691 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4692 ECHO='print -r --'
4693 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4694 ECHO='printf %s\n'
4695 else
4696 # Use this function as a fallback that always works.
4697 func_fallback_echo ()
4699 eval 'cat <<_LTECHO_EOF
4701 _LTECHO_EOF'
4703 ECHO='func_fallback_echo'
4706 # func_echo_all arg...
4707 # Invoke $ECHO with all args, space-separated.
4708 func_echo_all ()
4710 $ECHO ""
4713 case "$ECHO" in
4714 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4715 $as_echo "printf" >&6; } ;;
4716 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4717 $as_echo "print -r" >&6; } ;;
4718 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4719 $as_echo "cat" >&6; } ;;
4720 esac
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4736 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4737 if test "${ac_cv_path_SED+set}" = set; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4741 for ac_i in 1 2 3 4 5 6 7; do
4742 ac_script="$ac_script$as_nl$ac_script"
4743 done
4744 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4745 { ac_script=; unset ac_script;}
4746 if test -z "$SED"; then
4747 ac_path_SED_found=false
4748 # Loop through the user's path and test for each of PROGNAME-LIST
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_prog in sed gsed; do
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4757 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4758 # Check for GNU ac_path_SED and select it if it is found.
4759 # Check for GNU $ac_path_SED
4760 case `"$ac_path_SED" --version 2>&1` in
4761 *GNU*)
4762 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4764 ac_count=0
4765 $as_echo_n 0123456789 >"conftest.in"
4766 while :
4768 cat "conftest.in" "conftest.in" >"conftest.tmp"
4769 mv "conftest.tmp" "conftest.in"
4770 cp "conftest.in" "conftest.nl"
4771 $as_echo '' >> "conftest.nl"
4772 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4774 as_fn_arith $ac_count + 1 && ac_count=$as_val
4775 if test $ac_count -gt ${ac_path_SED_max-0}; then
4776 # Best one so far, save it but keep looking for a better one
4777 ac_cv_path_SED="$ac_path_SED"
4778 ac_path_SED_max=$ac_count
4780 # 10*(2^10) chars as input seems more than enough
4781 test $ac_count -gt 10 && break
4782 done
4783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4784 esac
4786 $ac_path_SED_found && break 3
4787 done
4788 done
4789 done
4790 IFS=$as_save_IFS
4791 if test -z "$ac_cv_path_SED"; then
4792 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4794 else
4795 ac_cv_path_SED=$SED
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4800 $as_echo "$ac_cv_path_SED" >&6; }
4801 SED="$ac_cv_path_SED"
4802 rm -f conftest.sed
4804 test -z "$SED" && SED=sed
4805 Xsed="$SED -e 1s/^X//"
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4818 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4819 if test "${ac_cv_path_GREP+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if test -z "$GREP"; then
4823 ac_path_GREP_found=false
4824 # Loop through the user's path and test for each of PROGNAME-LIST
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_prog in grep ggrep; do
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4833 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4834 # Check for GNU ac_path_GREP and select it if it is found.
4835 # Check for GNU $ac_path_GREP
4836 case `"$ac_path_GREP" --version 2>&1` in
4837 *GNU*)
4838 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4840 ac_count=0
4841 $as_echo_n 0123456789 >"conftest.in"
4842 while :
4844 cat "conftest.in" "conftest.in" >"conftest.tmp"
4845 mv "conftest.tmp" "conftest.in"
4846 cp "conftest.in" "conftest.nl"
4847 $as_echo 'GREP' >> "conftest.nl"
4848 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4849 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4850 as_fn_arith $ac_count + 1 && ac_count=$as_val
4851 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4852 # Best one so far, save it but keep looking for a better one
4853 ac_cv_path_GREP="$ac_path_GREP"
4854 ac_path_GREP_max=$ac_count
4856 # 10*(2^10) chars as input seems more than enough
4857 test $ac_count -gt 10 && break
4858 done
4859 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860 esac
4862 $ac_path_GREP_found && break 3
4863 done
4864 done
4865 done
4866 IFS=$as_save_IFS
4867 if test -z "$ac_cv_path_GREP"; then
4868 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4870 else
4871 ac_cv_path_GREP=$GREP
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4876 $as_echo "$ac_cv_path_GREP" >&6; }
4877 GREP="$ac_cv_path_GREP"
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4881 $as_echo_n "checking for egrep... " >&6; }
4882 if test "${ac_cv_path_EGREP+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4886 then ac_cv_path_EGREP="$GREP -E"
4887 else
4888 if test -z "$EGREP"; then
4889 ac_path_EGREP_found=false
4890 # Loop through the user's path and test for each of PROGNAME-LIST
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_prog in egrep; do
4897 for ac_exec_ext in '' $ac_executable_extensions; do
4898 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4899 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4900 # Check for GNU ac_path_EGREP and select it if it is found.
4901 # Check for GNU $ac_path_EGREP
4902 case `"$ac_path_EGREP" --version 2>&1` in
4903 *GNU*)
4904 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4906 ac_count=0
4907 $as_echo_n 0123456789 >"conftest.in"
4908 while :
4910 cat "conftest.in" "conftest.in" >"conftest.tmp"
4911 mv "conftest.tmp" "conftest.in"
4912 cp "conftest.in" "conftest.nl"
4913 $as_echo 'EGREP' >> "conftest.nl"
4914 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4916 as_fn_arith $ac_count + 1 && ac_count=$as_val
4917 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4918 # Best one so far, save it but keep looking for a better one
4919 ac_cv_path_EGREP="$ac_path_EGREP"
4920 ac_path_EGREP_max=$ac_count
4922 # 10*(2^10) chars as input seems more than enough
4923 test $ac_count -gt 10 && break
4924 done
4925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4926 esac
4928 $ac_path_EGREP_found && break 3
4929 done
4930 done
4931 done
4932 IFS=$as_save_IFS
4933 if test -z "$ac_cv_path_EGREP"; then
4934 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4936 else
4937 ac_cv_path_EGREP=$EGREP
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4943 $as_echo "$ac_cv_path_EGREP" >&6; }
4944 EGREP="$ac_cv_path_EGREP"
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4948 $as_echo_n "checking for fgrep... " >&6; }
4949 if test "${ac_cv_path_FGREP+set}" = set; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4953 then ac_cv_path_FGREP="$GREP -F"
4954 else
4955 if test -z "$FGREP"; then
4956 ac_path_FGREP_found=false
4957 # Loop through the user's path and test for each of PROGNAME-LIST
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_prog in fgrep; do
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4966 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4967 # Check for GNU ac_path_FGREP and select it if it is found.
4968 # Check for GNU $ac_path_FGREP
4969 case `"$ac_path_FGREP" --version 2>&1` in
4970 *GNU*)
4971 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4973 ac_count=0
4974 $as_echo_n 0123456789 >"conftest.in"
4975 while :
4977 cat "conftest.in" "conftest.in" >"conftest.tmp"
4978 mv "conftest.tmp" "conftest.in"
4979 cp "conftest.in" "conftest.nl"
4980 $as_echo 'FGREP' >> "conftest.nl"
4981 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4983 as_fn_arith $ac_count + 1 && ac_count=$as_val
4984 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4985 # Best one so far, save it but keep looking for a better one
4986 ac_cv_path_FGREP="$ac_path_FGREP"
4987 ac_path_FGREP_max=$ac_count
4989 # 10*(2^10) chars as input seems more than enough
4990 test $ac_count -gt 10 && break
4991 done
4992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4993 esac
4995 $ac_path_FGREP_found && break 3
4996 done
4997 done
4998 done
4999 IFS=$as_save_IFS
5000 if test -z "$ac_cv_path_FGREP"; then
5001 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5003 else
5004 ac_cv_path_FGREP=$FGREP
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5010 $as_echo "$ac_cv_path_FGREP" >&6; }
5011 FGREP="$ac_cv_path_FGREP"
5014 test -z "$GREP" && GREP=grep
5034 # Check whether --with-gnu-ld was given.
5035 if test "${with_gnu_ld+set}" = set; then :
5036 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5037 else
5038 with_gnu_ld=no
5041 ac_prog=ld
5042 if test "$GCC" = yes; then
5043 # Check if gcc -print-prog-name=ld gives a path.
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5045 $as_echo_n "checking for ld used by $CC... " >&6; }
5046 case $host in
5047 *-*-mingw*)
5048 # gcc leaves a trailing carriage return which upsets mingw
5049 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5051 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5052 esac
5053 case $ac_prog in
5054 # Accept absolute paths.
5055 [\\/]* | ?:[\\/]*)
5056 re_direlt='/[^/][^/]*/\.\./'
5057 # Canonicalize the pathname of ld
5058 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5059 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5060 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5061 done
5062 test -z "$LD" && LD="$ac_prog"
5065 # If it fails, then pretend we aren't using GCC.
5066 ac_prog=ld
5069 # If it is relative, then search for the first ld in PATH.
5070 with_gnu_ld=unknown
5072 esac
5073 elif test "$with_gnu_ld" = yes; then
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5075 $as_echo_n "checking for GNU ld... " >&6; }
5076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5078 $as_echo_n "checking for non-GNU ld... " >&6; }
5080 if test "${lt_cv_path_LD+set}" = set; then :
5081 $as_echo_n "(cached) " >&6
5082 else
5083 if test -z "$LD"; then
5084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5085 for ac_dir in $PATH; do
5086 IFS="$lt_save_ifs"
5087 test -z "$ac_dir" && ac_dir=.
5088 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5089 lt_cv_path_LD="$ac_dir/$ac_prog"
5090 # Check to see if the program is GNU ld. I'd rather use --version,
5091 # but apparently some variants of GNU ld only accept -v.
5092 # Break only if it was the GNU/non-GNU ld that we prefer.
5093 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5094 *GNU* | *'with BFD'*)
5095 test "$with_gnu_ld" != no && break
5098 test "$with_gnu_ld" != yes && break
5100 esac
5102 done
5103 IFS="$lt_save_ifs"
5104 else
5105 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5109 LD="$lt_cv_path_LD"
5110 if test -n "$LD"; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5112 $as_echo "$LD" >&6; }
5113 else
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5115 $as_echo "no" >&6; }
5117 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5119 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5120 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5121 $as_echo_n "(cached) " >&6
5122 else
5123 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5124 case `$LD -v 2>&1 </dev/null` in
5125 *GNU* | *'with BFD'*)
5126 lt_cv_prog_gnu_ld=yes
5129 lt_cv_prog_gnu_ld=no
5131 esac
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5134 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5135 with_gnu_ld=$lt_cv_prog_gnu_ld
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5146 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5147 if test "${lt_cv_path_NM+set}" = set; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if test -n "$NM"; then
5151 # Let the user override the test.
5152 lt_cv_path_NM="$NM"
5153 else
5154 lt_nm_to_check="${ac_tool_prefix}nm"
5155 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5156 lt_nm_to_check="$lt_nm_to_check nm"
5158 for lt_tmp_nm in $lt_nm_to_check; do
5159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5160 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5161 IFS="$lt_save_ifs"
5162 test -z "$ac_dir" && ac_dir=.
5163 tmp_nm="$ac_dir/$lt_tmp_nm"
5164 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5165 # Check to see if the nm accepts a BSD-compat flag.
5166 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5167 # nm: unknown option "B" ignored
5168 # Tru64's nm complains that /dev/null is an invalid object file
5169 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5170 */dev/null* | *'Invalid file or object type'*)
5171 lt_cv_path_NM="$tmp_nm -B"
5172 break
5175 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5176 */dev/null*)
5177 lt_cv_path_NM="$tmp_nm -p"
5178 break
5181 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5182 continue # so that we can try to find one that supports BSD flags
5184 esac
5186 esac
5188 done
5189 IFS="$lt_save_ifs"
5190 done
5191 : ${lt_cv_path_NM=no}
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5195 $as_echo "$lt_cv_path_NM" >&6; }
5196 if test "$lt_cv_path_NM" != "no"; then
5197 NM="$lt_cv_path_NM"
5198 else
5199 # Didn't find any BSD compatible name lister, look for dumpbin.
5200 if test -n "$DUMPBIN"; then :
5201 # Let the user override the test.
5202 else
5203 if test -n "$ac_tool_prefix"; then
5204 for ac_prog in dumpbin "link -dump"
5206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if test -n "$DUMPBIN"; then
5214 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5227 done
5228 done
5229 IFS=$as_save_IFS
5233 DUMPBIN=$ac_cv_prog_DUMPBIN
5234 if test -n "$DUMPBIN"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5236 $as_echo "$DUMPBIN" >&6; }
5237 else
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5243 test -n "$DUMPBIN" && break
5244 done
5246 if test -z "$DUMPBIN"; then
5247 ac_ct_DUMPBIN=$DUMPBIN
5248 for ac_prog in dumpbin "link -dump"
5250 # Extract the first word of "$ac_prog", so it can be a program name with args.
5251 set dummy $ac_prog; ac_word=$2
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 $as_echo_n "checking for $ac_word... " >&6; }
5254 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5256 else
5257 if test -n "$ac_ct_DUMPBIN"; then
5258 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5259 else
5260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 for as_dir in $PATH
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 break 2
5271 done
5272 done
5273 IFS=$as_save_IFS
5277 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5278 if test -n "$ac_ct_DUMPBIN"; then
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5280 $as_echo "$ac_ct_DUMPBIN" >&6; }
5281 else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283 $as_echo "no" >&6; }
5287 test -n "$ac_ct_DUMPBIN" && break
5288 done
5290 if test "x$ac_ct_DUMPBIN" = x; then
5291 DUMPBIN=":"
5292 else
5293 case $cross_compiling:$ac_tool_warned in
5294 yes:)
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5298 esac
5299 DUMPBIN=$ac_ct_DUMPBIN
5303 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5304 *COFF*)
5305 DUMPBIN="$DUMPBIN -symbols"
5308 DUMPBIN=:
5310 esac
5313 if test "$DUMPBIN" != ":"; then
5314 NM="$DUMPBIN"
5317 test -z "$NM" && NM=nm
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5325 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5326 if test "${lt_cv_nm_interface+set}" = set; then :
5327 $as_echo_n "(cached) " >&6
5328 else
5329 lt_cv_nm_interface="BSD nm"
5330 echo "int some_variable = 0;" > conftest.$ac_ext
5331 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5332 (eval "$ac_compile" 2>conftest.err)
5333 cat conftest.err >&5
5334 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5335 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5336 cat conftest.err >&5
5337 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5338 cat conftest.out >&5
5339 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5340 lt_cv_nm_interface="MS dumpbin"
5342 rm -f conftest*
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5345 $as_echo "$lt_cv_nm_interface" >&6; }
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5348 $as_echo_n "checking whether ln -s works... " >&6; }
5349 LN_S=$as_ln_s
5350 if test "$LN_S" = "ln -s"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5352 $as_echo "yes" >&6; }
5353 else
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5355 $as_echo "no, using $LN_S" >&6; }
5358 # find the maximum length of command line arguments
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5360 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5361 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5365 teststring="ABCD"
5367 case $build_os in
5368 msdosdjgpp*)
5369 # On DJGPP, this test can blow up pretty badly due to problems in libc
5370 # (any single argument exceeding 2000 bytes causes a buffer overrun
5371 # during glob expansion). Even if it were fixed, the result of this
5372 # check would be larger than it should be.
5373 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5376 gnu*)
5377 # Under GNU Hurd, this test is not required because there is
5378 # no limit to the length of command line arguments.
5379 # Libtool will interpret -1 as no limit whatsoever
5380 lt_cv_sys_max_cmd_len=-1;
5383 cygwin* | mingw* | cegcc*)
5384 # On Win9x/ME, this test blows up -- it succeeds, but takes
5385 # about 5 minutes as the teststring grows exponentially.
5386 # Worse, since 9x/ME are not pre-emptively multitasking,
5387 # you end up with a "frozen" computer, even though with patience
5388 # the test eventually succeeds (with a max line length of 256k).
5389 # Instead, let's just punt: use the minimum linelength reported by
5390 # all of the supported platforms: 8192 (on NT/2K/XP).
5391 lt_cv_sys_max_cmd_len=8192;
5394 mint*)
5395 # On MiNT this can take a long time and run out of memory.
5396 lt_cv_sys_max_cmd_len=8192;
5399 amigaos*)
5400 # On AmigaOS with pdksh, this test takes hours, literally.
5401 # So we just punt and use a minimum line length of 8192.
5402 lt_cv_sys_max_cmd_len=8192;
5405 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5406 # This has been around since 386BSD, at least. Likely further.
5407 if test -x /sbin/sysctl; then
5408 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5409 elif test -x /usr/sbin/sysctl; then
5410 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5411 else
5412 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5414 # And add a safety zone
5415 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5416 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5419 interix*)
5420 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5421 lt_cv_sys_max_cmd_len=196608
5424 osf*)
5425 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5426 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5427 # nice to cause kernel panics so lets avoid the loop below.
5428 # First set a reasonable default.
5429 lt_cv_sys_max_cmd_len=16384
5431 if test -x /sbin/sysconfig; then
5432 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5433 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5434 esac
5437 sco3.2v5*)
5438 lt_cv_sys_max_cmd_len=102400
5440 sysv5* | sco5v6* | sysv4.2uw2*)
5441 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5442 if test -n "$kargmax"; then
5443 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5444 else
5445 lt_cv_sys_max_cmd_len=32768
5449 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5450 if test -n "$lt_cv_sys_max_cmd_len"; then
5451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5453 else
5454 # Make teststring a little bigger before we do anything with it.
5455 # a 1K string should be a reasonable start.
5456 for i in 1 2 3 4 5 6 7 8 ; do
5457 teststring=$teststring$teststring
5458 done
5459 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5460 # If test is not a shell built-in, we'll probably end up computing a
5461 # maximum length that is only half of the actual maximum length, but
5462 # we can't tell.
5463 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5464 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5465 test $i != 17 # 1/2 MB should be enough
5467 i=`expr $i + 1`
5468 teststring=$teststring$teststring
5469 done
5470 # Only check the string length outside the loop.
5471 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5472 teststring=
5473 # Add a significant safety factor because C++ compilers can tack on
5474 # massive amounts of additional arguments before passing them to the
5475 # linker. It appears as though 1/2 is a usable value.
5476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5479 esac
5483 if test -n $lt_cv_sys_max_cmd_len ; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5485 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5486 else
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5488 $as_echo "none" >&6; }
5490 max_cmd_len=$lt_cv_sys_max_cmd_len
5497 : ${CP="cp -f"}
5498 : ${MV="mv -f"}
5499 : ${RM="rm -f"}
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5502 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5503 # Try some XSI features
5504 xsi_shell=no
5505 ( _lt_dummy="a/b/c"
5506 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5507 = c,a/b,, \
5508 && eval 'test $(( 1 + 1 )) -eq 2 \
5509 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5510 && xsi_shell=yes
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5512 $as_echo "$xsi_shell" >&6; }
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5516 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5517 lt_shell_append=no
5518 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5519 >/dev/null 2>&1 \
5520 && lt_shell_append=yes
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5522 $as_echo "$lt_shell_append" >&6; }
5525 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5526 lt_unset=unset
5527 else
5528 lt_unset=false
5535 # test EBCDIC or ASCII
5536 case `echo X|tr X '\101'` in
5537 A) # ASCII based system
5538 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5539 lt_SP2NL='tr \040 \012'
5540 lt_NL2SP='tr \015\012 \040\040'
5542 *) # EBCDIC based system
5543 lt_SP2NL='tr \100 \n'
5544 lt_NL2SP='tr \r\n \100\100'
5546 esac
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5557 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5558 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 lt_cv_ld_reload_flag='-r'
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5564 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5565 reload_flag=$lt_cv_ld_reload_flag
5566 case $reload_flag in
5567 "" | " "*) ;;
5568 *) reload_flag=" $reload_flag" ;;
5569 esac
5570 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5571 case $host_os in
5572 darwin*)
5573 if test "$GCC" = yes; then
5574 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5575 else
5576 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5579 esac
5589 if test -n "$ac_tool_prefix"; then
5590 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5591 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 if test -n "$OBJDUMP"; then
5598 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5599 else
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5607 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5611 done
5612 done
5613 IFS=$as_save_IFS
5617 OBJDUMP=$ac_cv_prog_OBJDUMP
5618 if test -n "$OBJDUMP"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5620 $as_echo "$OBJDUMP" >&6; }
5621 else
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5628 if test -z "$ac_cv_prog_OBJDUMP"; then
5629 ac_ct_OBJDUMP=$OBJDUMP
5630 # Extract the first word of "objdump", so it can be a program name with args.
5631 set dummy objdump; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if test -n "$ac_ct_OBJDUMP"; then
5638 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5651 done
5652 done
5653 IFS=$as_save_IFS
5657 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5658 if test -n "$ac_ct_OBJDUMP"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5660 $as_echo "$ac_ct_OBJDUMP" >&6; }
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5666 if test "x$ac_ct_OBJDUMP" = x; then
5667 OBJDUMP="false"
5668 else
5669 case $cross_compiling:$ac_tool_warned in
5670 yes:)
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5673 ac_tool_warned=yes ;;
5674 esac
5675 OBJDUMP=$ac_ct_OBJDUMP
5677 else
5678 OBJDUMP="$ac_cv_prog_OBJDUMP"
5681 test -z "$OBJDUMP" && OBJDUMP=objdump
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5692 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5693 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5694 $as_echo_n "(cached) " >&6
5695 else
5696 lt_cv_file_magic_cmd='$MAGIC_CMD'
5697 lt_cv_file_magic_test_file=
5698 lt_cv_deplibs_check_method='unknown'
5699 # Need to set the preceding variable on all platforms that support
5700 # interlibrary dependencies.
5701 # 'none' -- dependencies not supported.
5702 # `unknown' -- same as none, but documents that we really don't know.
5703 # 'pass_all' -- all dependencies passed with no checks.
5704 # 'test_compile' -- check by making test program.
5705 # 'file_magic [[regex]]' -- check by looking for files in library path
5706 # which responds to the $file_magic_cmd with a given extended regex.
5707 # If you have `file' or equivalent on your system and you're not sure
5708 # whether `pass_all' will *always* work, you probably want this one.
5710 case $host_os in
5711 aix[4-9]*)
5712 lt_cv_deplibs_check_method=pass_all
5715 beos*)
5716 lt_cv_deplibs_check_method=pass_all
5719 bsdi[45]*)
5720 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5721 lt_cv_file_magic_cmd='/usr/bin/file -L'
5722 lt_cv_file_magic_test_file=/shlib/libc.so
5725 cygwin*)
5726 # func_win32_libid is a shell function defined in ltmain.sh
5727 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5728 lt_cv_file_magic_cmd='func_win32_libid'
5731 mingw* | pw32*)
5732 # Base MSYS/MinGW do not provide the 'file' command needed by
5733 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5734 # unless we find 'file', for example because we are cross-compiling.
5735 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5736 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5737 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5738 lt_cv_file_magic_cmd='func_win32_libid'
5739 else
5740 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5741 lt_cv_file_magic_cmd='$OBJDUMP -f'
5745 cegcc*)
5746 # use the weaker test based on 'objdump'. See mingw*.
5747 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5748 lt_cv_file_magic_cmd='$OBJDUMP -f'
5751 darwin* | rhapsody*)
5752 lt_cv_deplibs_check_method=pass_all
5755 freebsd* | dragonfly*)
5756 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5757 case $host_cpu in
5758 i*86 )
5759 # Not sure whether the presence of OpenBSD here was a mistake.
5760 # Let's accept both of them until this is cleared up.
5761 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5762 lt_cv_file_magic_cmd=/usr/bin/file
5763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5765 esac
5766 else
5767 lt_cv_deplibs_check_method=pass_all
5771 gnu*)
5772 lt_cv_deplibs_check_method=pass_all
5775 haiku*)
5776 lt_cv_deplibs_check_method=pass_all
5779 hpux10.20* | hpux11*)
5780 lt_cv_file_magic_cmd=/usr/bin/file
5781 case $host_cpu in
5782 ia64*)
5783 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5784 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5786 hppa*64*)
5787 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]'
5788 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5791 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5792 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5794 esac
5797 interix[3-9]*)
5798 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5799 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5802 irix5* | irix6* | nonstopux*)
5803 case $LD in
5804 *-32|*"-32 ") libmagic=32-bit;;
5805 *-n32|*"-n32 ") libmagic=N32;;
5806 *-64|*"-64 ") libmagic=64-bit;;
5807 *) libmagic=never-match;;
5808 esac
5809 lt_cv_deplibs_check_method=pass_all
5812 # This must be Linux ELF.
5813 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5814 lt_cv_deplibs_check_method=pass_all
5817 netbsd*)
5818 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5819 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5820 else
5821 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5825 newos6*)
5826 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5827 lt_cv_file_magic_cmd=/usr/bin/file
5828 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5831 *nto* | *qnx*)
5832 lt_cv_deplibs_check_method=pass_all
5835 openbsd*)
5836 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5837 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5838 else
5839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5843 osf3* | osf4* | osf5*)
5844 lt_cv_deplibs_check_method=pass_all
5847 rdos*)
5848 lt_cv_deplibs_check_method=pass_all
5851 solaris*)
5852 lt_cv_deplibs_check_method=pass_all
5855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5856 lt_cv_deplibs_check_method=pass_all
5859 sysv4 | sysv4.3*)
5860 case $host_vendor in
5861 motorola)
5862 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]'
5863 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5865 ncr)
5866 lt_cv_deplibs_check_method=pass_all
5868 sequent)
5869 lt_cv_file_magic_cmd='/bin/file'
5870 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5872 sni)
5873 lt_cv_file_magic_cmd='/bin/file'
5874 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5875 lt_cv_file_magic_test_file=/lib/libc.so
5877 siemens)
5878 lt_cv_deplibs_check_method=pass_all
5881 lt_cv_deplibs_check_method=pass_all
5883 esac
5886 tpf*)
5887 lt_cv_deplibs_check_method=pass_all
5889 esac
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5893 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5894 file_magic_cmd=$lt_cv_file_magic_cmd
5895 deplibs_check_method=$lt_cv_deplibs_check_method
5896 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5909 if test -n "$ac_tool_prefix"; then
5910 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5911 set dummy ${ac_tool_prefix}ar; ac_word=$2
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if test "${ac_cv_prog_AR+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 if test -n "$AR"; then
5918 ac_cv_prog_AR="$AR" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5923 IFS=$as_save_IFS
5924 test -z "$as_dir" && as_dir=.
5925 for ac_exec_ext in '' $ac_executable_extensions; do
5926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927 ac_cv_prog_AR="${ac_tool_prefix}ar"
5928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929 break 2
5931 done
5932 done
5933 IFS=$as_save_IFS
5937 AR=$ac_cv_prog_AR
5938 if test -n "$AR"; then
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5940 $as_echo "$AR" >&6; }
5941 else
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5948 if test -z "$ac_cv_prog_AR"; then
5949 ac_ct_AR=$AR
5950 # Extract the first word of "ar", so it can be a program name with args.
5951 set dummy ar; ac_word=$2
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5953 $as_echo_n "checking for $ac_word... " >&6; }
5954 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 if test -n "$ac_ct_AR"; then
5958 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5959 else
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 for as_dir in $PATH
5963 IFS=$as_save_IFS
5964 test -z "$as_dir" && as_dir=.
5965 for ac_exec_ext in '' $ac_executable_extensions; do
5966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5967 ac_cv_prog_ac_ct_AR="ar"
5968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5969 break 2
5971 done
5972 done
5973 IFS=$as_save_IFS
5977 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5978 if test -n "$ac_ct_AR"; then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5980 $as_echo "$ac_ct_AR" >&6; }
5981 else
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5983 $as_echo "no" >&6; }
5986 if test "x$ac_ct_AR" = x; then
5987 AR="false"
5988 else
5989 case $cross_compiling:$ac_tool_warned in
5990 yes:)
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5993 ac_tool_warned=yes ;;
5994 esac
5995 AR=$ac_ct_AR
5997 else
5998 AR="$ac_cv_prog_AR"
6001 test -z "$AR" && AR=ar
6002 test -z "$AR_FLAGS" && AR_FLAGS=cru
6014 if test -n "$ac_tool_prefix"; then
6015 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6016 set dummy ${ac_tool_prefix}strip; ac_word=$2
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6018 $as_echo_n "checking for $ac_word... " >&6; }
6019 if test "${ac_cv_prog_STRIP+set}" = set; then :
6020 $as_echo_n "(cached) " >&6
6021 else
6022 if test -n "$STRIP"; then
6023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6024 else
6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6036 done
6037 done
6038 IFS=$as_save_IFS
6042 STRIP=$ac_cv_prog_STRIP
6043 if test -n "$STRIP"; then
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6045 $as_echo "$STRIP" >&6; }
6046 else
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6048 $as_echo "no" >&6; }
6053 if test -z "$ac_cv_prog_STRIP"; then
6054 ac_ct_STRIP=$STRIP
6055 # Extract the first word of "strip", so it can be a program name with args.
6056 set dummy strip; ac_word=$2
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058 $as_echo_n "checking for $ac_word... " >&6; }
6059 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 if test -n "$ac_ct_STRIP"; then
6063 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6064 else
6065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6068 IFS=$as_save_IFS
6069 test -z "$as_dir" && as_dir=.
6070 for ac_exec_ext in '' $ac_executable_extensions; do
6071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072 ac_cv_prog_ac_ct_STRIP="strip"
6073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 break 2
6076 done
6077 done
6078 IFS=$as_save_IFS
6082 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6083 if test -n "$ac_ct_STRIP"; then
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6085 $as_echo "$ac_ct_STRIP" >&6; }
6086 else
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6091 if test "x$ac_ct_STRIP" = x; then
6092 STRIP=":"
6093 else
6094 case $cross_compiling:$ac_tool_warned in
6095 yes:)
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098 ac_tool_warned=yes ;;
6099 esac
6100 STRIP=$ac_ct_STRIP
6102 else
6103 STRIP="$ac_cv_prog_STRIP"
6106 test -z "$STRIP" && STRIP=:
6113 if test -n "$ac_tool_prefix"; then
6114 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6115 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 if test -n "$RANLIB"; then
6122 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6135 done
6136 done
6137 IFS=$as_save_IFS
6141 RANLIB=$ac_cv_prog_RANLIB
6142 if test -n "$RANLIB"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6144 $as_echo "$RANLIB" >&6; }
6145 else
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6152 if test -z "$ac_cv_prog_RANLIB"; then
6153 ac_ct_RANLIB=$RANLIB
6154 # Extract the first word of "ranlib", so it can be a program name with args.
6155 set dummy ranlib; ac_word=$2
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6157 $as_echo_n "checking for $ac_word... " >&6; }
6158 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6159 $as_echo_n "(cached) " >&6
6160 else
6161 if test -n "$ac_ct_RANLIB"; then
6162 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6163 else
6164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165 for as_dir in $PATH
6167 IFS=$as_save_IFS
6168 test -z "$as_dir" && as_dir=.
6169 for ac_exec_ext in '' $ac_executable_extensions; do
6170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6171 ac_cv_prog_ac_ct_RANLIB="ranlib"
6172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 break 2
6175 done
6176 done
6177 IFS=$as_save_IFS
6181 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6182 if test -n "$ac_ct_RANLIB"; then
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6184 $as_echo "$ac_ct_RANLIB" >&6; }
6185 else
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6187 $as_echo "no" >&6; }
6190 if test "x$ac_ct_RANLIB" = x; then
6191 RANLIB=":"
6192 else
6193 case $cross_compiling:$ac_tool_warned in
6194 yes:)
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6197 ac_tool_warned=yes ;;
6198 esac
6199 RANLIB=$ac_ct_RANLIB
6201 else
6202 RANLIB="$ac_cv_prog_RANLIB"
6205 test -z "$RANLIB" && RANLIB=:
6212 # Determine commands to create old-style static archives.
6213 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6214 old_postinstall_cmds='chmod 644 $oldlib'
6215 old_postuninstall_cmds=
6217 if test -n "$RANLIB"; then
6218 case $host_os in
6219 openbsd*)
6220 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6223 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6225 esac
6226 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6229 case $host_os in
6230 darwin*)
6231 lock_old_archive_extraction=yes ;;
6233 lock_old_archive_extraction=no ;;
6234 esac
6274 # If no C compiler was specified, use CC.
6275 LTCC=${LTCC-"$CC"}
6277 # If no C compiler flags were specified, use CFLAGS.
6278 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6280 # Allow CC to be a program name with arguments.
6281 compiler=$CC
6284 # Check for command to grab the raw symbol name followed by C symbol from nm.
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6286 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6287 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6291 # These are sane defaults that work on at least a few old systems.
6292 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6294 # Character class describing NM global symbol codes.
6295 symcode='[BCDEGRST]'
6297 # Regexp to match symbols that can be accessed directly from C.
6298 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6300 # Define system-specific variables.
6301 case $host_os in
6302 aix*)
6303 symcode='[BCDT]'
6305 cygwin* | mingw* | pw32* | cegcc*)
6306 symcode='[ABCDGISTW]'
6308 hpux*)
6309 if test "$host_cpu" = ia64; then
6310 symcode='[ABCDEGRST]'
6313 irix* | nonstopux*)
6314 symcode='[BCDEGRST]'
6316 osf*)
6317 symcode='[BCDEGQRST]'
6319 solaris*)
6320 symcode='[BDRT]'
6322 sco3.2v5*)
6323 symcode='[DT]'
6325 sysv4.2uw2*)
6326 symcode='[DT]'
6328 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6329 symcode='[ABDT]'
6331 sysv4)
6332 symcode='[DFNSTU]'
6334 esac
6336 # If we're using GNU nm, then use its standard symbol codes.
6337 case `$NM -V 2>&1` in
6338 *GNU* | *'with BFD'*)
6339 symcode='[ABCDGIRSTW]' ;;
6340 esac
6342 # Transform an extracted symbol line into a proper C declaration.
6343 # Some systems (esp. on ia64) link data and code symbols differently,
6344 # so use this general approach.
6345 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6347 # Transform an extracted symbol line into symbol name and symbol address
6348 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6349 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'"
6351 # Handle CRLF in mingw tool chain
6352 opt_cr=
6353 case $build_os in
6354 mingw*)
6355 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6357 esac
6359 # Try without a prefix underscore, then with it.
6360 for ac_symprfx in "" "_"; do
6362 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6363 symxfrm="\\1 $ac_symprfx\\2 \\2"
6365 # Write the raw and C identifiers.
6366 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6367 # Fake it for dumpbin and say T for any non-static function
6368 # and D for any global variable.
6369 # Also find C++ and __fastcall symbols from MSVC++,
6370 # which start with @ or ?.
6371 lt_cv_sys_global_symbol_pipe="$AWK '"\
6372 " {last_section=section; section=\$ 3};"\
6373 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6374 " \$ 0!~/External *\|/{next};"\
6375 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6376 " {if(hide[section]) next};"\
6377 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6378 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6379 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6380 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6381 " ' prfx=^$ac_symprfx"
6382 else
6383 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6386 # Check to see that the pipe works correctly.
6387 pipe_works=no
6389 rm -f conftest*
6390 cat > conftest.$ac_ext <<_LT_EOF
6391 #ifdef __cplusplus
6392 extern "C" {
6393 #endif
6394 char nm_test_var;
6395 void nm_test_func(void);
6396 void nm_test_func(void){}
6397 #ifdef __cplusplus
6399 #endif
6400 int main(){nm_test_var='a';nm_test_func();return(0);}
6401 _LT_EOF
6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6404 (eval $ac_compile) 2>&5
6405 ac_status=$?
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407 test $ac_status = 0; }; then
6408 # Now try to grab the symbols.
6409 nlist=conftest.nm
6410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6411 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6412 ac_status=$?
6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6414 test $ac_status = 0; } && test -s "$nlist"; then
6415 # Try sorting and uniquifying the output.
6416 if sort "$nlist" | uniq > "$nlist"T; then
6417 mv -f "$nlist"T "$nlist"
6418 else
6419 rm -f "$nlist"T
6422 # Make sure that we snagged all the symbols we need.
6423 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6424 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6425 cat <<_LT_EOF > conftest.$ac_ext
6426 #ifdef __cplusplus
6427 extern "C" {
6428 #endif
6430 _LT_EOF
6431 # Now generate the symbol file.
6432 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6434 cat <<_LT_EOF >> conftest.$ac_ext
6436 /* The mapping between symbol names and symbols. */
6437 const struct {
6438 const char *name;
6439 void *address;
6441 lt__PROGRAM__LTX_preloaded_symbols[] =
6443 { "@PROGRAM@", (void *) 0 },
6444 _LT_EOF
6445 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6446 cat <<\_LT_EOF >> conftest.$ac_ext
6447 {0, (void *) 0}
6450 /* This works around a problem in FreeBSD linker */
6451 #ifdef FREEBSD_WORKAROUND
6452 static const void *lt_preloaded_setup() {
6453 return lt__PROGRAM__LTX_preloaded_symbols;
6455 #endif
6457 #ifdef __cplusplus
6459 #endif
6460 _LT_EOF
6461 # Now try linking the two files.
6462 mv conftest.$ac_objext conftstm.$ac_objext
6463 lt_save_LIBS="$LIBS"
6464 lt_save_CFLAGS="$CFLAGS"
6465 LIBS="conftstm.$ac_objext"
6466 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6468 (eval $ac_link) 2>&5
6469 ac_status=$?
6470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6471 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6472 pipe_works=yes
6474 LIBS="$lt_save_LIBS"
6475 CFLAGS="$lt_save_CFLAGS"
6476 else
6477 echo "cannot find nm_test_func in $nlist" >&5
6479 else
6480 echo "cannot find nm_test_var in $nlist" >&5
6482 else
6483 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6485 else
6486 echo "$progname: failed program was:" >&5
6487 cat conftest.$ac_ext >&5
6489 rm -rf conftest* conftst*
6491 # Do not use the global_symbol_pipe unless it works.
6492 if test "$pipe_works" = yes; then
6493 break
6494 else
6495 lt_cv_sys_global_symbol_pipe=
6497 done
6501 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6502 lt_cv_sys_global_symbol_to_cdecl=
6504 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6506 $as_echo "failed" >&6; }
6507 else
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6509 $as_echo "ok" >&6; }
6534 # Check whether --enable-libtool-lock was given.
6535 if test "${enable_libtool_lock+set}" = set; then :
6536 enableval=$enable_libtool_lock;
6539 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6541 # Some flags need to be propagated to the compiler or linker for good
6542 # libtool support.
6543 case $host in
6544 ia64-*-hpux*)
6545 # Find out which ABI we are using.
6546 echo 'int i;' > conftest.$ac_ext
6547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6548 (eval $ac_compile) 2>&5
6549 ac_status=$?
6550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6551 test $ac_status = 0; }; then
6552 case `/usr/bin/file conftest.$ac_objext` in
6553 *ELF-32*)
6554 HPUX_IA64_MODE="32"
6556 *ELF-64*)
6557 HPUX_IA64_MODE="64"
6559 esac
6561 rm -rf conftest*
6563 *-*-irix6*)
6564 # Find out which ABI we are using.
6565 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6567 (eval $ac_compile) 2>&5
6568 ac_status=$?
6569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6570 test $ac_status = 0; }; then
6571 if test "$lt_cv_prog_gnu_ld" = yes; then
6572 case `/usr/bin/file conftest.$ac_objext` in
6573 *32-bit*)
6574 LD="${LD-ld} -melf32bsmip"
6576 *N32*)
6577 LD="${LD-ld} -melf32bmipn32"
6579 *64-bit*)
6580 LD="${LD-ld} -melf64bmip"
6582 esac
6583 else
6584 case `/usr/bin/file conftest.$ac_objext` in
6585 *32-bit*)
6586 LD="${LD-ld} -32"
6588 *N32*)
6589 LD="${LD-ld} -n32"
6591 *64-bit*)
6592 LD="${LD-ld} -64"
6594 esac
6597 rm -rf conftest*
6600 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6601 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6602 # Find out which ABI we are using.
6603 echo 'int i;' > conftest.$ac_ext
6604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6605 (eval $ac_compile) 2>&5
6606 ac_status=$?
6607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608 test $ac_status = 0; }; then
6609 case `/usr/bin/file conftest.o` in
6610 *32-bit*)
6611 case $host in
6612 x86_64-*kfreebsd*-gnu)
6613 LD="${LD-ld} -m elf_i386_fbsd"
6615 x86_64-*linux*)
6616 case `/usr/bin/file conftest.o` in
6617 *x86-64*)
6618 LD="${LD-ld} -m elf32_x86_64"
6621 LD="${LD-ld} -m elf_i386"
6623 esac
6625 powerpc64le-*linux*)
6626 LD="${LD-ld} -m elf32lppclinux"
6628 powerpc64-*linux*)
6629 LD="${LD-ld} -m elf32ppclinux"
6631 s390x-*linux*)
6632 LD="${LD-ld} -m elf_s390"
6634 sparc64-*linux*)
6635 LD="${LD-ld} -m elf32_sparc"
6637 esac
6639 *64-bit*)
6640 case $host in
6641 x86_64-*kfreebsd*-gnu)
6642 LD="${LD-ld} -m elf_x86_64_fbsd"
6644 x86_64-*linux*)
6645 LD="${LD-ld} -m elf_x86_64"
6647 powerpcle-*linux*)
6648 LD="${LD-ld} -m elf64lppc"
6650 powerpc-*linux*)
6651 LD="${LD-ld} -m elf64ppc"
6653 s390*-*linux*|s390*-*tpf*)
6654 LD="${LD-ld} -m elf64_s390"
6656 sparc*-*linux*)
6657 LD="${LD-ld} -m elf64_sparc"
6659 esac
6661 esac
6663 rm -rf conftest*
6666 *-*-sco3.2v5*)
6667 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6668 SAVE_CFLAGS="$CFLAGS"
6669 CFLAGS="$CFLAGS -belf"
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6671 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6672 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 ac_ext=c
6676 ac_cpp='$CPP $CPPFLAGS'
6677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6685 main ()
6689 return 0;
6691 _ACEOF
6692 if ac_fn_c_try_link "$LINENO"; then :
6693 lt_cv_cc_needs_belf=yes
6694 else
6695 lt_cv_cc_needs_belf=no
6697 rm -f core conftest.err conftest.$ac_objext \
6698 conftest$ac_exeext conftest.$ac_ext
6699 ac_ext=c
6700 ac_cpp='$CPP $CPPFLAGS'
6701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6707 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6708 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6709 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6710 CFLAGS="$SAVE_CFLAGS"
6713 sparc*-*solaris*)
6714 # Find out which ABI we are using.
6715 echo 'int i;' > conftest.$ac_ext
6716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6717 (eval $ac_compile) 2>&5
6718 ac_status=$?
6719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6720 test $ac_status = 0; }; then
6721 case `/usr/bin/file conftest.o` in
6722 *64-bit*)
6723 case $lt_cv_prog_gnu_ld in
6724 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6726 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6727 LD="${LD-ld} -64"
6730 esac
6732 esac
6734 rm -rf conftest*
6736 esac
6738 need_locks="$enable_libtool_lock"
6741 case $host_os in
6742 rhapsody* | darwin*)
6743 if test -n "$ac_tool_prefix"; then
6744 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6745 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 if test -n "$DSYMUTIL"; then
6752 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6753 else
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6765 done
6766 done
6767 IFS=$as_save_IFS
6771 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6772 if test -n "$DSYMUTIL"; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6774 $as_echo "$DSYMUTIL" >&6; }
6775 else
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6782 if test -z "$ac_cv_prog_DSYMUTIL"; then
6783 ac_ct_DSYMUTIL=$DSYMUTIL
6784 # Extract the first word of "dsymutil", so it can be a program name with args.
6785 set dummy dsymutil; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 if test -n "$ac_ct_DSYMUTIL"; then
6792 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6805 done
6806 done
6807 IFS=$as_save_IFS
6811 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6812 if test -n "$ac_ct_DSYMUTIL"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6814 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6815 else
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6820 if test "x$ac_ct_DSYMUTIL" = x; then
6821 DSYMUTIL=":"
6822 else
6823 case $cross_compiling:$ac_tool_warned in
6824 yes:)
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6827 ac_tool_warned=yes ;;
6828 esac
6829 DSYMUTIL=$ac_ct_DSYMUTIL
6831 else
6832 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6835 if test -n "$ac_tool_prefix"; then
6836 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6837 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6841 $as_echo_n "(cached) " >&6
6842 else
6843 if test -n "$NMEDIT"; then
6844 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
6852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6853 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 break 2
6857 done
6858 done
6859 IFS=$as_save_IFS
6863 NMEDIT=$ac_cv_prog_NMEDIT
6864 if test -n "$NMEDIT"; then
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6866 $as_echo "$NMEDIT" >&6; }
6867 else
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6874 if test -z "$ac_cv_prog_NMEDIT"; then
6875 ac_ct_NMEDIT=$NMEDIT
6876 # Extract the first word of "nmedit", so it can be a program name with args.
6877 set dummy nmedit; ac_word=$2
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879 $as_echo_n "checking for $ac_word... " >&6; }
6880 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6881 $as_echo_n "(cached) " >&6
6882 else
6883 if test -n "$ac_ct_NMEDIT"; then
6884 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6885 else
6886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887 for as_dir in $PATH
6889 IFS=$as_save_IFS
6890 test -z "$as_dir" && as_dir=.
6891 for ac_exec_ext in '' $ac_executable_extensions; do
6892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895 break 2
6897 done
6898 done
6899 IFS=$as_save_IFS
6903 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6904 if test -n "$ac_ct_NMEDIT"; then
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6906 $as_echo "$ac_ct_NMEDIT" >&6; }
6907 else
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909 $as_echo "no" >&6; }
6912 if test "x$ac_ct_NMEDIT" = x; then
6913 NMEDIT=":"
6914 else
6915 case $cross_compiling:$ac_tool_warned in
6916 yes:)
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6919 ac_tool_warned=yes ;;
6920 esac
6921 NMEDIT=$ac_ct_NMEDIT
6923 else
6924 NMEDIT="$ac_cv_prog_NMEDIT"
6927 if test -n "$ac_tool_prefix"; then
6928 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6929 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6931 $as_echo_n "checking for $ac_word... " >&6; }
6932 if test "${ac_cv_prog_LIPO+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 if test -n "$LIPO"; then
6936 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6941 IFS=$as_save_IFS
6942 test -z "$as_dir" && as_dir=.
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6945 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6947 break 2
6949 done
6950 done
6951 IFS=$as_save_IFS
6955 LIPO=$ac_cv_prog_LIPO
6956 if test -n "$LIPO"; then
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6958 $as_echo "$LIPO" >&6; }
6959 else
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 $as_echo "no" >&6; }
6966 if test -z "$ac_cv_prog_LIPO"; then
6967 ac_ct_LIPO=$LIPO
6968 # Extract the first word of "lipo", so it can be a program name with args.
6969 set dummy lipo; ac_word=$2
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971 $as_echo_n "checking for $ac_word... " >&6; }
6972 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6973 $as_echo_n "(cached) " >&6
6974 else
6975 if test -n "$ac_ct_LIPO"; then
6976 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6977 else
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985 ac_cv_prog_ac_ct_LIPO="lipo"
6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6989 done
6990 done
6991 IFS=$as_save_IFS
6995 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6996 if test -n "$ac_ct_LIPO"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6998 $as_echo "$ac_ct_LIPO" >&6; }
6999 else
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7004 if test "x$ac_ct_LIPO" = x; then
7005 LIPO=":"
7006 else
7007 case $cross_compiling:$ac_tool_warned in
7008 yes:)
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7011 ac_tool_warned=yes ;;
7012 esac
7013 LIPO=$ac_ct_LIPO
7015 else
7016 LIPO="$ac_cv_prog_LIPO"
7019 if test -n "$ac_tool_prefix"; then
7020 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7021 set dummy ${ac_tool_prefix}otool; ac_word=$2
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7023 $as_echo_n "checking for $ac_word... " >&6; }
7024 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027 if test -n "$OTOOL"; then
7028 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7029 else
7030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031 for as_dir in $PATH
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
7035 for ac_exec_ext in '' $ac_executable_extensions; do
7036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 break 2
7041 done
7042 done
7043 IFS=$as_save_IFS
7047 OTOOL=$ac_cv_prog_OTOOL
7048 if test -n "$OTOOL"; then
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7050 $as_echo "$OTOOL" >&6; }
7051 else
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7058 if test -z "$ac_cv_prog_OTOOL"; then
7059 ac_ct_OTOOL=$OTOOL
7060 # Extract the first word of "otool", so it can be a program name with args.
7061 set dummy otool; ac_word=$2
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063 $as_echo_n "checking for $ac_word... " >&6; }
7064 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 if test -n "$ac_ct_OTOOL"; then
7068 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7069 else
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 for as_dir in $PATH
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
7076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077 ac_cv_prog_ac_ct_OTOOL="otool"
7078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7081 done
7082 done
7083 IFS=$as_save_IFS
7087 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7088 if test -n "$ac_ct_OTOOL"; then
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7090 $as_echo "$ac_ct_OTOOL" >&6; }
7091 else
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093 $as_echo "no" >&6; }
7096 if test "x$ac_ct_OTOOL" = x; then
7097 OTOOL=":"
7098 else
7099 case $cross_compiling:$ac_tool_warned in
7100 yes:)
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7103 ac_tool_warned=yes ;;
7104 esac
7105 OTOOL=$ac_ct_OTOOL
7107 else
7108 OTOOL="$ac_cv_prog_OTOOL"
7111 if test -n "$ac_tool_prefix"; then
7112 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7113 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7117 $as_echo_n "(cached) " >&6
7118 else
7119 if test -n "$OTOOL64"; then
7120 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 break 2
7133 done
7134 done
7135 IFS=$as_save_IFS
7139 OTOOL64=$ac_cv_prog_OTOOL64
7140 if test -n "$OTOOL64"; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7142 $as_echo "$OTOOL64" >&6; }
7143 else
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7150 if test -z "$ac_cv_prog_OTOOL64"; then
7151 ac_ct_OTOOL64=$OTOOL64
7152 # Extract the first word of "otool64", so it can be a program name with args.
7153 set dummy otool64; ac_word=$2
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155 $as_echo_n "checking for $ac_word... " >&6; }
7156 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7158 else
7159 if test -n "$ac_ct_OTOOL64"; then
7160 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7161 else
7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 for as_dir in $PATH
7165 IFS=$as_save_IFS
7166 test -z "$as_dir" && as_dir=.
7167 for ac_exec_ext in '' $ac_executable_extensions; do
7168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169 ac_cv_prog_ac_ct_OTOOL64="otool64"
7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 break 2
7173 done
7174 done
7175 IFS=$as_save_IFS
7179 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7180 if test -n "$ac_ct_OTOOL64"; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7182 $as_echo "$ac_ct_OTOOL64" >&6; }
7183 else
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185 $as_echo "no" >&6; }
7188 if test "x$ac_ct_OTOOL64" = x; then
7189 OTOOL64=":"
7190 else
7191 case $cross_compiling:$ac_tool_warned in
7192 yes:)
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7195 ac_tool_warned=yes ;;
7196 esac
7197 OTOOL64=$ac_ct_OTOOL64
7199 else
7200 OTOOL64="$ac_cv_prog_OTOOL64"
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7230 $as_echo_n "checking for -single_module linker flag... " >&6; }
7231 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 lt_cv_apple_cc_single_mod=no
7235 if test -z "${LT_MULTI_MODULE}"; then
7236 # By default we will add the -single_module flag. You can override
7237 # by either setting the environment variable LT_MULTI_MODULE
7238 # non-empty at configure time, or by adding -multi_module to the
7239 # link flags.
7240 rm -rf libconftest.dylib*
7241 echo "int foo(void){return 1;}" > conftest.c
7242 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7243 -dynamiclib -Wl,-single_module conftest.c" >&5
7244 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7245 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7246 _lt_result=$?
7247 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7248 lt_cv_apple_cc_single_mod=yes
7249 else
7250 cat conftest.err >&5
7252 rm -rf libconftest.dylib*
7253 rm -f conftest.*
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7257 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7259 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7260 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7261 $as_echo_n "(cached) " >&6
7262 else
7263 lt_cv_ld_exported_symbols_list=no
7264 save_LDFLAGS=$LDFLAGS
7265 echo "_main" > conftest.sym
7266 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h. */
7271 main ()
7275 return 0;
7277 _ACEOF
7278 if ac_fn_c_try_link "$LINENO"; then :
7279 lt_cv_ld_exported_symbols_list=yes
7280 else
7281 lt_cv_ld_exported_symbols_list=no
7283 rm -f core conftest.err conftest.$ac_objext \
7284 conftest$ac_exeext conftest.$ac_ext
7285 LDFLAGS="$save_LDFLAGS"
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7289 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7291 $as_echo_n "checking for -force_load linker flag... " >&6; }
7292 if test "${lt_cv_ld_force_load+set}" = set; then :
7293 $as_echo_n "(cached) " >&6
7294 else
7295 lt_cv_ld_force_load=no
7296 cat > conftest.c << _LT_EOF
7297 int forced_loaded() { return 2;}
7298 _LT_EOF
7299 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7300 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7301 echo "$AR cru libconftest.a conftest.o" >&5
7302 $AR cru libconftest.a conftest.o 2>&5
7303 cat > conftest.c << _LT_EOF
7304 int main() { return 0;}
7305 _LT_EOF
7306 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7307 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7308 _lt_result=$?
7309 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7310 lt_cv_ld_force_load=yes
7311 else
7312 cat conftest.err >&5
7314 rm -f conftest.err libconftest.a conftest conftest.c
7315 rm -rf conftest.dSYM
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7319 $as_echo "$lt_cv_ld_force_load" >&6; }
7320 case $host_os in
7321 rhapsody* | darwin1.[012])
7322 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7323 darwin1.*)
7324 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7325 darwin*) # darwin 5.x on
7326 # if running on 10.5 or later, the deployment target defaults
7327 # to the OS version, if on x86, and 10.4, the deployment
7328 # target defaults to 10.4. Don't you love it?
7329 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7330 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7331 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7332 10.[012][,.]*)
7333 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7334 10.*)
7335 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7336 esac
7338 esac
7339 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7340 _lt_dar_single_mod='$single_module'
7342 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7343 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7344 else
7345 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7347 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7348 _lt_dsymutil='~$DSYMUTIL $lib || :'
7349 else
7350 _lt_dsymutil=
7353 esac
7355 ac_ext=c
7356 ac_cpp='$CPP $CPPFLAGS'
7357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7361 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7362 # On Suns, sometimes $CPP names a directory.
7363 if test -n "$CPP" && test -d "$CPP"; then
7364 CPP=
7366 if test -z "$CPP"; then
7367 if test "${ac_cv_prog_CPP+set}" = set; then :
7368 $as_echo_n "(cached) " >&6
7369 else
7370 # Double quotes because CPP needs to be expanded
7371 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7373 ac_preproc_ok=false
7374 for ac_c_preproc_warn_flag in '' yes
7376 # Use a header file that comes with gcc, so configuring glibc
7377 # with a fresh cross-compiler works.
7378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7379 # <limits.h> exists even on freestanding compilers.
7380 # On the NeXT, cc -E runs the code through the compiler's parser,
7381 # not just through cpp. "Syntax error" is here to catch this case.
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7384 #ifdef __STDC__
7385 # include <limits.h>
7386 #else
7387 # include <assert.h>
7388 #endif
7389 Syntax error
7390 _ACEOF
7391 if ac_fn_c_try_cpp "$LINENO"; then :
7393 else
7394 # Broken: fails on valid input.
7395 continue
7397 rm -f conftest.err conftest.$ac_ext
7399 # OK, works on sane cases. Now check whether nonexistent headers
7400 # can be detected and how.
7401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 /* end confdefs.h. */
7403 #include <ac_nonexistent.h>
7404 _ACEOF
7405 if ac_fn_c_try_cpp "$LINENO"; then :
7406 # Broken: success on invalid input.
7407 continue
7408 else
7409 # Passes both tests.
7410 ac_preproc_ok=:
7411 break
7413 rm -f conftest.err conftest.$ac_ext
7415 done
7416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7417 rm -f conftest.err conftest.$ac_ext
7418 if $ac_preproc_ok; then :
7419 break
7422 done
7423 ac_cv_prog_CPP=$CPP
7426 CPP=$ac_cv_prog_CPP
7427 else
7428 ac_cv_prog_CPP=$CPP
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7431 $as_echo "$CPP" >&6; }
7432 ac_preproc_ok=false
7433 for ac_c_preproc_warn_flag in '' yes
7435 # Use a header file that comes with gcc, so configuring glibc
7436 # with a fresh cross-compiler works.
7437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7438 # <limits.h> exists even on freestanding compilers.
7439 # On the NeXT, cc -E runs the code through the compiler's parser,
7440 # not just through cpp. "Syntax error" is here to catch this case.
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7443 #ifdef __STDC__
7444 # include <limits.h>
7445 #else
7446 # include <assert.h>
7447 #endif
7448 Syntax error
7449 _ACEOF
7450 if ac_fn_c_try_cpp "$LINENO"; then :
7452 else
7453 # Broken: fails on valid input.
7454 continue
7456 rm -f conftest.err conftest.$ac_ext
7458 # OK, works on sane cases. Now check whether nonexistent headers
7459 # can be detected and how.
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7462 #include <ac_nonexistent.h>
7463 _ACEOF
7464 if ac_fn_c_try_cpp "$LINENO"; then :
7465 # Broken: success on invalid input.
7466 continue
7467 else
7468 # Passes both tests.
7469 ac_preproc_ok=:
7470 break
7472 rm -f conftest.err conftest.$ac_ext
7474 done
7475 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7476 rm -f conftest.err conftest.$ac_ext
7477 if $ac_preproc_ok; then :
7479 else
7480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7482 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7483 See \`config.log' for more details." "$LINENO" 5; }
7486 ac_ext=c
7487 ac_cpp='$CPP $CPPFLAGS'
7488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7494 $as_echo_n "checking for ANSI C header files... " >&6; }
7495 if test "${ac_cv_header_stdc+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7500 #include <stdlib.h>
7501 #include <stdarg.h>
7502 #include <string.h>
7503 #include <float.h>
7506 main ()
7510 return 0;
7512 _ACEOF
7513 if ac_fn_c_try_compile "$LINENO"; then :
7514 ac_cv_header_stdc=yes
7515 else
7516 ac_cv_header_stdc=no
7518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520 if test $ac_cv_header_stdc = yes; then
7521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 #include <string.h>
7526 _ACEOF
7527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7528 $EGREP "memchr" >/dev/null 2>&1; then :
7530 else
7531 ac_cv_header_stdc=no
7533 rm -f conftest*
7537 if test $ac_cv_header_stdc = yes; then
7538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7541 #include <stdlib.h>
7543 _ACEOF
7544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7545 $EGREP "free" >/dev/null 2>&1; then :
7547 else
7548 ac_cv_header_stdc=no
7550 rm -f conftest*
7554 if test $ac_cv_header_stdc = yes; then
7555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7556 if test "$cross_compiling" = yes; then :
7558 else
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561 #include <ctype.h>
7562 #include <stdlib.h>
7563 #if ((' ' & 0x0FF) == 0x020)
7564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7566 #else
7567 # define ISLOWER(c) \
7568 (('a' <= (c) && (c) <= 'i') \
7569 || ('j' <= (c) && (c) <= 'r') \
7570 || ('s' <= (c) && (c) <= 'z'))
7571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7572 #endif
7574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7576 main ()
7578 int i;
7579 for (i = 0; i < 256; i++)
7580 if (XOR (islower (i), ISLOWER (i))
7581 || toupper (i) != TOUPPER (i))
7582 return 2;
7583 return 0;
7585 _ACEOF
7586 if ac_fn_c_try_run "$LINENO"; then :
7588 else
7589 ac_cv_header_stdc=no
7591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7592 conftest.$ac_objext conftest.beam conftest.$ac_ext
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7598 $as_echo "$ac_cv_header_stdc" >&6; }
7599 if test $ac_cv_header_stdc = yes; then
7601 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7605 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7606 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7607 inttypes.h stdint.h unistd.h
7608 do :
7609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7610 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7612 eval as_val=\$$as_ac_Header
7613 if test "x$as_val" = x""yes; then :
7614 cat >>confdefs.h <<_ACEOF
7615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7616 _ACEOF
7620 done
7623 for ac_header in dlfcn.h
7624 do :
7625 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7627 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7628 cat >>confdefs.h <<_ACEOF
7629 #define HAVE_DLFCN_H 1
7630 _ACEOF
7634 done
7640 # Set options
7644 enable_dlopen=no
7647 enable_win32_dll=no
7650 # Check whether --enable-shared was given.
7651 if test "${enable_shared+set}" = set; then :
7652 enableval=$enable_shared; p=${PACKAGE-default}
7653 case $enableval in
7654 yes) enable_shared=yes ;;
7655 no) enable_shared=no ;;
7657 enable_shared=no
7658 # Look at the argument we got. We use all the common list separators.
7659 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7660 for pkg in $enableval; do
7661 IFS="$lt_save_ifs"
7662 if test "X$pkg" = "X$p"; then
7663 enable_shared=yes
7665 done
7666 IFS="$lt_save_ifs"
7668 esac
7669 else
7670 enable_shared=yes
7681 # Check whether --enable-static was given.
7682 if test "${enable_static+set}" = set; then :
7683 enableval=$enable_static; p=${PACKAGE-default}
7684 case $enableval in
7685 yes) enable_static=yes ;;
7686 no) enable_static=no ;;
7688 enable_static=no
7689 # Look at the argument we got. We use all the common list separators.
7690 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7691 for pkg in $enableval; do
7692 IFS="$lt_save_ifs"
7693 if test "X$pkg" = "X$p"; then
7694 enable_static=yes
7696 done
7697 IFS="$lt_save_ifs"
7699 esac
7700 else
7701 enable_static=yes
7713 # Check whether --with-pic was given.
7714 if test "${with_pic+set}" = set; then :
7715 withval=$with_pic; pic_mode="$withval"
7716 else
7717 pic_mode=default
7721 test -z "$pic_mode" && pic_mode=default
7729 # Check whether --enable-fast-install was given.
7730 if test "${enable_fast_install+set}" = set; then :
7731 enableval=$enable_fast_install; p=${PACKAGE-default}
7732 case $enableval in
7733 yes) enable_fast_install=yes ;;
7734 no) enable_fast_install=no ;;
7736 enable_fast_install=no
7737 # Look at the argument we got. We use all the common list separators.
7738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7739 for pkg in $enableval; do
7740 IFS="$lt_save_ifs"
7741 if test "X$pkg" = "X$p"; then
7742 enable_fast_install=yes
7744 done
7745 IFS="$lt_save_ifs"
7747 esac
7748 else
7749 enable_fast_install=yes
7762 # This can be used to rebuild libtool when needed
7763 LIBTOOL_DEPS="$ltmain"
7765 # Always use our own libtool.
7766 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7793 test -z "$LN_S" && LN_S="ln -s"
7808 if test -n "${ZSH_VERSION+set}" ; then
7809 setopt NO_GLOB_SUBST
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7813 $as_echo_n "checking for objdir... " >&6; }
7814 if test "${lt_cv_objdir+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 rm -f .libs 2>/dev/null
7818 mkdir .libs 2>/dev/null
7819 if test -d .libs; then
7820 lt_cv_objdir=.libs
7821 else
7822 # MS-DOS does not allow filenames that begin with a dot.
7823 lt_cv_objdir=_libs
7825 rmdir .libs 2>/dev/null
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7828 $as_echo "$lt_cv_objdir" >&6; }
7829 objdir=$lt_cv_objdir
7835 cat >>confdefs.h <<_ACEOF
7836 #define LT_OBJDIR "$lt_cv_objdir/"
7837 _ACEOF
7842 case $host_os in
7843 aix3*)
7844 # AIX sometimes has problems with the GCC collect2 program. For some
7845 # reason, if we set the COLLECT_NAMES environment variable, the problems
7846 # vanish in a puff of smoke.
7847 if test "X${COLLECT_NAMES+set}" != Xset; then
7848 COLLECT_NAMES=
7849 export COLLECT_NAMES
7852 esac
7854 # Global variables:
7855 ofile=libtool
7856 can_build_shared=yes
7858 # All known linkers require a `.a' archive for static linking (except MSVC,
7859 # which needs '.lib').
7860 libext=a
7862 with_gnu_ld="$lt_cv_prog_gnu_ld"
7864 old_CC="$CC"
7865 old_CFLAGS="$CFLAGS"
7867 # Set sane defaults for various variables
7868 test -z "$CC" && CC=cc
7869 test -z "$LTCC" && LTCC=$CC
7870 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7871 test -z "$LD" && LD=ld
7872 test -z "$ac_objext" && ac_objext=o
7874 for cc_temp in $compiler""; do
7875 case $cc_temp in
7876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7878 \-*) ;;
7879 *) break;;
7880 esac
7881 done
7882 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7885 # Only perform the check for file, if the check method requires it
7886 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7887 case $deplibs_check_method in
7888 file_magic*)
7889 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7891 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7892 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 case $MAGIC_CMD in
7896 [\\/*] | ?:[\\/]*)
7897 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7900 lt_save_MAGIC_CMD="$MAGIC_CMD"
7901 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7902 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7903 for ac_dir in $ac_dummy; do
7904 IFS="$lt_save_ifs"
7905 test -z "$ac_dir" && ac_dir=.
7906 if test -f $ac_dir/${ac_tool_prefix}file; then
7907 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7908 if test -n "$file_magic_test_file"; then
7909 case $deplibs_check_method in
7910 "file_magic "*)
7911 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7912 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7913 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7914 $EGREP "$file_magic_regex" > /dev/null; then
7916 else
7917 cat <<_LT_EOF 1>&2
7919 *** Warning: the command libtool uses to detect shared libraries,
7920 *** $file_magic_cmd, produces output that libtool cannot recognize.
7921 *** The result is that libtool may fail to recognize shared libraries
7922 *** as such. This will affect the creation of libtool libraries that
7923 *** depend on shared libraries, but programs linked with such libtool
7924 *** libraries will work regardless of this problem. Nevertheless, you
7925 *** may want to report the problem to your system manager and/or to
7926 *** bug-libtool@gnu.org
7928 _LT_EOF
7929 fi ;;
7930 esac
7932 break
7934 done
7935 IFS="$lt_save_ifs"
7936 MAGIC_CMD="$lt_save_MAGIC_CMD"
7938 esac
7941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7942 if test -n "$MAGIC_CMD"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7944 $as_echo "$MAGIC_CMD" >&6; }
7945 else
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947 $as_echo "no" >&6; }
7954 if test -z "$lt_cv_path_MAGIC_CMD"; then
7955 if test -n "$ac_tool_prefix"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7957 $as_echo_n "checking for file... " >&6; }
7958 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 case $MAGIC_CMD in
7962 [\\/*] | ?:[\\/]*)
7963 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7966 lt_save_MAGIC_CMD="$MAGIC_CMD"
7967 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7968 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7969 for ac_dir in $ac_dummy; do
7970 IFS="$lt_save_ifs"
7971 test -z "$ac_dir" && ac_dir=.
7972 if test -f $ac_dir/file; then
7973 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7974 if test -n "$file_magic_test_file"; then
7975 case $deplibs_check_method in
7976 "file_magic "*)
7977 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7978 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7979 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7980 $EGREP "$file_magic_regex" > /dev/null; then
7982 else
7983 cat <<_LT_EOF 1>&2
7985 *** Warning: the command libtool uses to detect shared libraries,
7986 *** $file_magic_cmd, produces output that libtool cannot recognize.
7987 *** The result is that libtool may fail to recognize shared libraries
7988 *** as such. This will affect the creation of libtool libraries that
7989 *** depend on shared libraries, but programs linked with such libtool
7990 *** libraries will work regardless of this problem. Nevertheless, you
7991 *** may want to report the problem to your system manager and/or to
7992 *** bug-libtool@gnu.org
7994 _LT_EOF
7995 fi ;;
7996 esac
7998 break
8000 done
8001 IFS="$lt_save_ifs"
8002 MAGIC_CMD="$lt_save_MAGIC_CMD"
8004 esac
8007 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8008 if test -n "$MAGIC_CMD"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8010 $as_echo "$MAGIC_CMD" >&6; }
8011 else
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8017 else
8018 MAGIC_CMD=:
8024 esac
8026 # Use C for the default configuration in the libtool script
8028 lt_save_CC="$CC"
8029 ac_ext=c
8030 ac_cpp='$CPP $CPPFLAGS'
8031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8036 # Source file extension for C test sources.
8037 ac_ext=c
8039 # Object file extension for compiled C test sources.
8040 objext=o
8041 objext=$objext
8043 # Code to be used in simple compile tests
8044 lt_simple_compile_test_code="int some_variable = 0;"
8046 # Code to be used in simple link tests
8047 lt_simple_link_test_code='int main(){return(0);}'
8055 # If no C compiler was specified, use CC.
8056 LTCC=${LTCC-"$CC"}
8058 # If no C compiler flags were specified, use CFLAGS.
8059 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8061 # Allow CC to be a program name with arguments.
8062 compiler=$CC
8064 # Save the default compiler, since it gets overwritten when the other
8065 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8066 compiler_DEFAULT=$CC
8068 # save warnings/boilerplate of simple test code
8069 ac_outfile=conftest.$ac_objext
8070 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8071 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8072 _lt_compiler_boilerplate=`cat conftest.err`
8073 $RM conftest*
8075 ac_outfile=conftest.$ac_objext
8076 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8077 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8078 _lt_linker_boilerplate=`cat conftest.err`
8079 $RM -r conftest*
8082 ## CAVEAT EMPTOR:
8083 ## There is no encapsulation within the following macros, do not change
8084 ## the running order or otherwise move them around unless you know exactly
8085 ## what you are doing...
8086 if test -n "$compiler"; then
8088 lt_prog_compiler_no_builtin_flag=
8090 if test "$GCC" = yes; then
8091 case $cc_basename in
8092 nvcc*)
8093 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8095 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8096 esac
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8099 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8100 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 lt_cv_prog_compiler_rtti_exceptions=no
8104 ac_outfile=conftest.$ac_objext
8105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8106 lt_compiler_flag="-fno-rtti -fno-exceptions"
8107 # Insert the option either (1) after the last *FLAGS variable, or
8108 # (2) before a word containing "conftest.", or (3) at the end.
8109 # Note that $ac_compile itself does not contain backslashes and begins
8110 # with a dollar sign (not a hyphen), so the echo should work correctly.
8111 # The option is referenced via a variable to avoid confusing sed.
8112 lt_compile=`echo "$ac_compile" | $SED \
8113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8115 -e 's:$: $lt_compiler_flag:'`
8116 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8117 (eval "$lt_compile" 2>conftest.err)
8118 ac_status=$?
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 if (exit $ac_status) && test -s "$ac_outfile"; then
8122 # The compiler can only warn and ignore the option if not recognized
8123 # So say no if there are warnings other than the usual output.
8124 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8126 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8127 lt_cv_prog_compiler_rtti_exceptions=yes
8130 $RM conftest*
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8134 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8136 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8137 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8138 else
8149 lt_prog_compiler_wl=
8150 lt_prog_compiler_pic=
8151 lt_prog_compiler_static=
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8154 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8156 if test "$GCC" = yes; then
8157 lt_prog_compiler_wl='-Wl,'
8158 lt_prog_compiler_static='-static'
8160 case $host_os in
8161 aix*)
8162 # All AIX code is PIC.
8163 if test "$host_cpu" = ia64; then
8164 # AIX 5 now supports IA64 processor
8165 lt_prog_compiler_static='-Bstatic'
8167 lt_prog_compiler_pic='-fPIC'
8170 amigaos*)
8171 case $host_cpu in
8172 powerpc)
8173 # see comment about AmigaOS4 .so support
8174 lt_prog_compiler_pic='-fPIC'
8176 m68k)
8177 # FIXME: we need at least 68020 code to build shared libraries, but
8178 # adding the `-m68020' flag to GCC prevents building anything better,
8179 # like `-m68040'.
8180 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8182 esac
8185 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8186 # PIC is the default for these OSes.
8189 mingw* | cygwin* | pw32* | os2* | cegcc*)
8190 # This hack is so that the source file can tell whether it is being
8191 # built for inclusion in a dll (and should export symbols for example).
8192 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8193 # (--disable-auto-import) libraries
8194 lt_prog_compiler_pic='-DDLL_EXPORT'
8197 darwin* | rhapsody*)
8198 # PIC is the default on this platform
8199 # Common symbols not allowed in MH_DYLIB files
8200 lt_prog_compiler_pic='-fno-common'
8203 haiku*)
8204 # PIC is the default for Haiku.
8205 # The "-static" flag exists, but is broken.
8206 lt_prog_compiler_static=
8209 hpux*)
8210 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8211 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8212 # sets the default TLS model and affects inlining.
8213 case $host_cpu in
8214 hppa*64*)
8215 # +Z the default
8218 lt_prog_compiler_pic='-fPIC'
8220 esac
8223 interix[3-9]*)
8224 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8225 # Instead, we relocate shared libraries at runtime.
8228 msdosdjgpp*)
8229 # Just because we use GCC doesn't mean we suddenly get shared libraries
8230 # on systems that don't support them.
8231 lt_prog_compiler_can_build_shared=no
8232 enable_shared=no
8235 *nto* | *qnx*)
8236 # QNX uses GNU C++, but need to define -shared option too, otherwise
8237 # it will coredump.
8238 lt_prog_compiler_pic='-fPIC -shared'
8241 sysv4*MP*)
8242 if test -d /usr/nec; then
8243 lt_prog_compiler_pic=-Kconform_pic
8248 lt_prog_compiler_pic='-fPIC'
8250 esac
8252 case $cc_basename in
8253 nvcc*) # Cuda Compiler Driver 2.2
8254 lt_prog_compiler_wl='-Xlinker '
8255 lt_prog_compiler_pic='-Xcompiler -fPIC'
8257 esac
8258 else
8259 # PORTME Check for flag to pass linker flags through the system compiler.
8260 case $host_os in
8261 aix*)
8262 lt_prog_compiler_wl='-Wl,'
8263 if test "$host_cpu" = ia64; then
8264 # AIX 5 now supports IA64 processor
8265 lt_prog_compiler_static='-Bstatic'
8266 else
8267 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8271 mingw* | cygwin* | pw32* | os2* | cegcc*)
8272 # This hack is so that the source file can tell whether it is being
8273 # built for inclusion in a dll (and should export symbols for example).
8274 lt_prog_compiler_pic='-DDLL_EXPORT'
8277 hpux9* | hpux10* | hpux11*)
8278 lt_prog_compiler_wl='-Wl,'
8279 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8280 # not for PA HP-UX.
8281 case $host_cpu in
8282 hppa*64*|ia64*)
8283 # +Z the default
8286 lt_prog_compiler_pic='+Z'
8288 esac
8289 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8290 lt_prog_compiler_static='${wl}-a ${wl}archive'
8293 irix5* | irix6* | nonstopux*)
8294 lt_prog_compiler_wl='-Wl,'
8295 # PIC (with -KPIC) is the default.
8296 lt_prog_compiler_static='-non_shared'
8299 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8300 case $cc_basename in
8301 # old Intel for x86_64 which still supported -KPIC.
8302 ecc*)
8303 lt_prog_compiler_wl='-Wl,'
8304 lt_prog_compiler_pic='-KPIC'
8305 lt_prog_compiler_static='-static'
8307 # icc used to be incompatible with GCC.
8308 # ICC 10 doesn't accept -KPIC any more.
8309 icc* | ifort*)
8310 lt_prog_compiler_wl='-Wl,'
8311 lt_prog_compiler_pic='-fPIC'
8312 lt_prog_compiler_static='-static'
8314 # Lahey Fortran 8.1.
8315 lf95*)
8316 lt_prog_compiler_wl='-Wl,'
8317 lt_prog_compiler_pic='--shared'
8318 lt_prog_compiler_static='--static'
8320 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8321 # Portland Group compilers (*not* the Pentium gcc compiler,
8322 # which looks to be a dead project)
8323 lt_prog_compiler_wl='-Wl,'
8324 lt_prog_compiler_pic='-fpic'
8325 lt_prog_compiler_static='-Bstatic'
8327 ccc*)
8328 lt_prog_compiler_wl='-Wl,'
8329 # All Alpha code is PIC.
8330 lt_prog_compiler_static='-non_shared'
8332 xl* | bgxl* | bgf* | mpixl*)
8333 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8334 lt_prog_compiler_wl='-Wl,'
8335 lt_prog_compiler_pic='-qpic'
8336 lt_prog_compiler_static='-qstaticlink'
8339 case `$CC -V 2>&1 | sed 5q` in
8340 *Sun\ F* | *Sun*Fortran*)
8341 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8342 lt_prog_compiler_pic='-KPIC'
8343 lt_prog_compiler_static='-Bstatic'
8344 lt_prog_compiler_wl=''
8346 *Sun\ C*)
8347 # Sun C 5.9
8348 lt_prog_compiler_pic='-KPIC'
8349 lt_prog_compiler_static='-Bstatic'
8350 lt_prog_compiler_wl='-Wl,'
8352 esac
8354 esac
8357 newsos6)
8358 lt_prog_compiler_pic='-KPIC'
8359 lt_prog_compiler_static='-Bstatic'
8362 *nto* | *qnx*)
8363 # QNX uses GNU C++, but need to define -shared option too, otherwise
8364 # it will coredump.
8365 lt_prog_compiler_pic='-fPIC -shared'
8368 osf3* | osf4* | osf5*)
8369 lt_prog_compiler_wl='-Wl,'
8370 # All OSF/1 code is PIC.
8371 lt_prog_compiler_static='-non_shared'
8374 rdos*)
8375 lt_prog_compiler_static='-non_shared'
8378 solaris*)
8379 lt_prog_compiler_pic='-KPIC'
8380 lt_prog_compiler_static='-Bstatic'
8381 case $cc_basename in
8382 f77* | f90* | f95*)
8383 lt_prog_compiler_wl='-Qoption ld ';;
8385 lt_prog_compiler_wl='-Wl,';;
8386 esac
8389 sunos4*)
8390 lt_prog_compiler_wl='-Qoption ld '
8391 lt_prog_compiler_pic='-PIC'
8392 lt_prog_compiler_static='-Bstatic'
8395 sysv4 | sysv4.2uw2* | sysv4.3*)
8396 lt_prog_compiler_wl='-Wl,'
8397 lt_prog_compiler_pic='-KPIC'
8398 lt_prog_compiler_static='-Bstatic'
8401 sysv4*MP*)
8402 if test -d /usr/nec ;then
8403 lt_prog_compiler_pic='-Kconform_pic'
8404 lt_prog_compiler_static='-Bstatic'
8408 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8409 lt_prog_compiler_wl='-Wl,'
8410 lt_prog_compiler_pic='-KPIC'
8411 lt_prog_compiler_static='-Bstatic'
8414 unicos*)
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_can_build_shared=no
8419 uts4*)
8420 lt_prog_compiler_pic='-pic'
8421 lt_prog_compiler_static='-Bstatic'
8425 lt_prog_compiler_can_build_shared=no
8427 esac
8430 case $host_os in
8431 # For platforms which do not support PIC, -DPIC is meaningless:
8432 *djgpp*)
8433 lt_prog_compiler_pic=
8436 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8438 esac
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8440 $as_echo "$lt_prog_compiler_pic" >&6; }
8448 # Check to make sure the PIC flag actually works.
8450 if test -n "$lt_prog_compiler_pic"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8452 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8453 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8454 $as_echo_n "(cached) " >&6
8455 else
8456 lt_cv_prog_compiler_pic_works=no
8457 ac_outfile=conftest.$ac_objext
8458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8459 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8460 # Insert the option either (1) after the last *FLAGS variable, or
8461 # (2) before a word containing "conftest.", or (3) at the end.
8462 # Note that $ac_compile itself does not contain backslashes and begins
8463 # with a dollar sign (not a hyphen), so the echo should work correctly.
8464 # The option is referenced via a variable to avoid confusing sed.
8465 lt_compile=`echo "$ac_compile" | $SED \
8466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8468 -e 's:$: $lt_compiler_flag:'`
8469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8470 (eval "$lt_compile" 2>conftest.err)
8471 ac_status=$?
8472 cat conftest.err >&5
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 if (exit $ac_status) && test -s "$ac_outfile"; then
8475 # The compiler can only warn and ignore the option if not recognized
8476 # So say no if there are warnings other than the usual output.
8477 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8479 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8480 lt_cv_prog_compiler_pic_works=yes
8483 $RM conftest*
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8487 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8489 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8490 case $lt_prog_compiler_pic in
8491 "" | " "*) ;;
8492 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8493 esac
8494 else
8495 lt_prog_compiler_pic=
8496 lt_prog_compiler_can_build_shared=no
8507 # Check to make sure the static flag actually works.
8509 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8511 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8512 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 lt_cv_prog_compiler_static_works=no
8516 save_LDFLAGS="$LDFLAGS"
8517 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8518 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8519 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8520 # The linker can only warn and ignore the option if not recognized
8521 # So say no if there are warnings
8522 if test -s conftest.err; then
8523 # Append any errors to the config.log.
8524 cat conftest.err 1>&5
8525 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8526 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8527 if diff conftest.exp conftest.er2 >/dev/null; then
8528 lt_cv_prog_compiler_static_works=yes
8530 else
8531 lt_cv_prog_compiler_static_works=yes
8534 $RM -r conftest*
8535 LDFLAGS="$save_LDFLAGS"
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8539 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8541 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8543 else
8544 lt_prog_compiler_static=
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8554 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8555 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 lt_cv_prog_compiler_c_o=no
8559 $RM -r conftest 2>/dev/null
8560 mkdir conftest
8561 cd conftest
8562 mkdir out
8563 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8565 lt_compiler_flag="-o out/conftest2.$ac_objext"
8566 # Insert the option either (1) after the last *FLAGS variable, or
8567 # (2) before a word containing "conftest.", or (3) at the end.
8568 # Note that $ac_compile itself does not contain backslashes and begins
8569 # with a dollar sign (not a hyphen), so the echo should work correctly.
8570 lt_compile=`echo "$ac_compile" | $SED \
8571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8573 -e 's:$: $lt_compiler_flag:'`
8574 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8575 (eval "$lt_compile" 2>out/conftest.err)
8576 ac_status=$?
8577 cat out/conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8580 then
8581 # The compiler can only warn and ignore the option if not recognized
8582 # So say no if there are warnings
8583 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8584 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8585 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8586 lt_cv_prog_compiler_c_o=yes
8589 chmod u+w . 2>&5
8590 $RM conftest*
8591 # SGI C++ compiler will create directory out/ii_files/ for
8592 # template instantiation
8593 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8594 $RM out/* && rmdir out
8595 cd ..
8596 $RM -r conftest
8597 $RM conftest*
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8601 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8609 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8610 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 lt_cv_prog_compiler_c_o=no
8614 $RM -r conftest 2>/dev/null
8615 mkdir conftest
8616 cd conftest
8617 mkdir out
8618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8620 lt_compiler_flag="-o out/conftest2.$ac_objext"
8621 # Insert the option either (1) after the last *FLAGS variable, or
8622 # (2) before a word containing "conftest.", or (3) at the end.
8623 # Note that $ac_compile itself does not contain backslashes and begins
8624 # with a dollar sign (not a hyphen), so the echo should work correctly.
8625 lt_compile=`echo "$ac_compile" | $SED \
8626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8628 -e 's:$: $lt_compiler_flag:'`
8629 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8630 (eval "$lt_compile" 2>out/conftest.err)
8631 ac_status=$?
8632 cat out/conftest.err >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8635 then
8636 # The compiler can only warn and ignore the option if not recognized
8637 # So say no if there are warnings
8638 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8639 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8640 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8641 lt_cv_prog_compiler_c_o=yes
8644 chmod u+w . 2>&5
8645 $RM conftest*
8646 # SGI C++ compiler will create directory out/ii_files/ for
8647 # template instantiation
8648 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8649 $RM out/* && rmdir out
8650 cd ..
8651 $RM -r conftest
8652 $RM conftest*
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8656 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8661 hard_links="nottested"
8662 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8663 # do not overwrite the value of need_locks provided by the user
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8665 $as_echo_n "checking if we can lock with hard links... " >&6; }
8666 hard_links=yes
8667 $RM conftest*
8668 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8669 touch conftest.a
8670 ln conftest.a conftest.b 2>&5 || hard_links=no
8671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8673 $as_echo "$hard_links" >&6; }
8674 if test "$hard_links" = no; then
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8676 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8677 need_locks=warn
8679 else
8680 need_locks=no
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8689 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8691 runpath_var=
8692 allow_undefined_flag=
8693 always_export_symbols=no
8694 archive_cmds=
8695 archive_expsym_cmds=
8696 compiler_needs_object=no
8697 enable_shared_with_static_runtimes=no
8698 export_dynamic_flag_spec=
8699 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8700 hardcode_automatic=no
8701 hardcode_direct=no
8702 hardcode_direct_absolute=no
8703 hardcode_libdir_flag_spec=
8704 hardcode_libdir_flag_spec_ld=
8705 hardcode_libdir_separator=
8706 hardcode_minus_L=no
8707 hardcode_shlibpath_var=unsupported
8708 inherit_rpath=no
8709 link_all_deplibs=unknown
8710 module_cmds=
8711 module_expsym_cmds=
8712 old_archive_from_new_cmds=
8713 old_archive_from_expsyms_cmds=
8714 thread_safe_flag_spec=
8715 whole_archive_flag_spec=
8716 # include_expsyms should be a list of space-separated symbols to be *always*
8717 # included in the symbol list
8718 include_expsyms=
8719 # exclude_expsyms can be an extended regexp of symbols to exclude
8720 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8721 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8722 # as well as any symbol that contains `d'.
8723 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8724 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8725 # platforms (ab)use it in PIC code, but their linkers get confused if
8726 # the symbol is explicitly referenced. Since portable code cannot
8727 # rely on this symbol name, it's probably fine to never include it in
8728 # preloaded symbol tables.
8729 # Exclude shared library initialization/finalization symbols.
8730 extract_expsyms_cmds=
8732 case $host_os in
8733 cygwin* | mingw* | pw32* | cegcc*)
8734 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8735 # When not using gcc, we currently assume that we are using
8736 # Microsoft Visual C++.
8737 if test "$GCC" != yes; then
8738 with_gnu_ld=no
8741 interix*)
8742 # we just hope/assume this is gcc and not c89 (= MSVC++)
8743 with_gnu_ld=yes
8745 openbsd*)
8746 with_gnu_ld=no
8748 esac
8750 ld_shlibs=yes
8752 # On some targets, GNU ld is compatible enough with the native linker
8753 # that we're better off using the native interface for both.
8754 lt_use_gnu_ld_interface=no
8755 if test "$with_gnu_ld" = yes; then
8756 case $host_os in
8757 aix*)
8758 # The AIX port of GNU ld has always aspired to compatibility
8759 # with the native linker. However, as the warning in the GNU ld
8760 # block says, versions before 2.19.5* couldn't really create working
8761 # shared libraries, regardless of the interface used.
8762 case `$LD -v 2>&1` in
8763 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8764 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8765 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8767 lt_use_gnu_ld_interface=yes
8769 esac
8772 lt_use_gnu_ld_interface=yes
8774 esac
8777 if test "$lt_use_gnu_ld_interface" = yes; then
8778 # If archive_cmds runs LD, not CC, wlarc should be empty
8779 wlarc='${wl}'
8781 # Set some defaults for GNU ld with shared library support. These
8782 # are reset later if shared libraries are not supported. Putting them
8783 # here allows them to be overridden if necessary.
8784 runpath_var=LD_RUN_PATH
8785 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8786 export_dynamic_flag_spec='${wl}--export-dynamic'
8787 # ancient GNU ld didn't support --whole-archive et. al.
8788 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8789 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8790 else
8791 whole_archive_flag_spec=
8793 supports_anon_versioning=no
8794 case `$LD -v 2>&1` in
8795 *GNU\ gold*) supports_anon_versioning=yes ;;
8796 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8797 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8798 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8799 *\ 2.11.*) ;; # other 2.11 versions
8800 *) supports_anon_versioning=yes ;;
8801 esac
8803 # See if GNU ld supports shared libraries.
8804 case $host_os in
8805 aix[3-9]*)
8806 # On AIX/PPC, the GNU linker is very broken
8807 if test "$host_cpu" != ia64; then
8808 ld_shlibs=no
8809 cat <<_LT_EOF 1>&2
8811 *** Warning: the GNU linker, at least up to release 2.19, is reported
8812 *** to be unable to reliably create shared libraries on AIX.
8813 *** Therefore, libtool is disabling shared libraries support. If you
8814 *** really care for shared libraries, you may want to install binutils
8815 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8816 *** You will then need to restart the configuration process.
8818 _LT_EOF
8822 amigaos*)
8823 case $host_cpu in
8824 powerpc)
8825 # see comment about AmigaOS4 .so support
8826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827 archive_expsym_cmds=''
8829 m68k)
8830 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)'
8831 hardcode_libdir_flag_spec='-L$libdir'
8832 hardcode_minus_L=yes
8834 esac
8837 beos*)
8838 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8839 allow_undefined_flag=unsupported
8840 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8841 # support --undefined. This deserves some investigation. FIXME
8842 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8843 else
8844 ld_shlibs=no
8848 cygwin* | mingw* | pw32* | cegcc*)
8849 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8850 # as there is no search path for DLLs.
8851 hardcode_libdir_flag_spec='-L$libdir'
8852 export_dynamic_flag_spec='${wl}--export-all-symbols'
8853 allow_undefined_flag=unsupported
8854 always_export_symbols=no
8855 enable_shared_with_static_runtimes=yes
8856 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8858 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8860 # If the export-symbols file already is a .def file (1st line
8861 # is EXPORTS), use it as is; otherwise, prepend...
8862 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8863 cp $export_symbols $output_objdir/$soname.def;
8864 else
8865 echo EXPORTS > $output_objdir/$soname.def;
8866 cat $export_symbols >> $output_objdir/$soname.def;
8868 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8869 else
8870 ld_shlibs=no
8874 haiku*)
8875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8876 link_all_deplibs=yes
8879 interix[3-9]*)
8880 hardcode_direct=no
8881 hardcode_shlibpath_var=no
8882 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8883 export_dynamic_flag_spec='${wl}-E'
8884 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8885 # Instead, shared libraries are loaded at an image base (0x10000000 by
8886 # default) and relocated if they conflict, which is a slow very memory
8887 # consuming and fragmenting process. To avoid this, we pick a random,
8888 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8889 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8890 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8891 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'
8894 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8895 tmp_diet=no
8896 if test "$host_os" = linux-dietlibc; then
8897 case $cc_basename in
8898 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8899 esac
8901 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8902 && test "$tmp_diet" = no
8903 then
8904 tmp_addflag=
8905 tmp_sharedflag='-shared'
8906 case $cc_basename,$host_cpu in
8907 pgcc*) # Portland Group C compiler
8908 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'
8909 tmp_addflag=' $pic_flag'
8911 pgf77* | pgf90* | pgf95* | pgfortran*)
8912 # Portland Group f77 and f90 compilers
8913 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'
8914 tmp_addflag=' $pic_flag -Mnomain' ;;
8915 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8916 tmp_addflag=' -i_dynamic' ;;
8917 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8918 tmp_addflag=' -i_dynamic -nofor_main' ;;
8919 ifc* | ifort*) # Intel Fortran compiler
8920 tmp_addflag=' -nofor_main' ;;
8921 lf95*) # Lahey Fortran 8.1
8922 whole_archive_flag_spec=
8923 tmp_sharedflag='--shared' ;;
8924 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8925 tmp_sharedflag='-qmkshrobj'
8926 tmp_addflag= ;;
8927 nvcc*) # Cuda Compiler Driver 2.2
8928 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'
8929 compiler_needs_object=yes
8931 esac
8932 case `$CC -V 2>&1 | sed 5q` in
8933 *Sun\ C*) # Sun C 5.9
8934 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'
8935 compiler_needs_object=yes
8936 tmp_sharedflag='-G' ;;
8937 *Sun\ F*) # Sun Fortran 8.3
8938 tmp_sharedflag='-G' ;;
8939 esac
8940 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8942 if test "x$supports_anon_versioning" = xyes; then
8943 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8944 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8945 echo "local: *; };" >> $output_objdir/$libname.ver~
8946 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8949 case $cc_basename in
8950 xlf* | bgf* | bgxlf* | mpixlf*)
8951 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8952 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8953 hardcode_libdir_flag_spec=
8954 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8955 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8956 if test "x$supports_anon_versioning" = xyes; then
8957 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8959 echo "local: *; };" >> $output_objdir/$libname.ver~
8960 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8963 esac
8964 else
8965 ld_shlibs=no
8969 netbsd*)
8970 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8971 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8972 wlarc=
8973 else
8974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8975 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8979 solaris*)
8980 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8981 ld_shlibs=no
8982 cat <<_LT_EOF 1>&2
8984 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8985 *** create shared libraries on Solaris systems. Therefore, libtool
8986 *** is disabling shared libraries support. We urge you to upgrade GNU
8987 *** binutils to release 2.9.1 or newer. Another option is to modify
8988 *** your PATH or compiler configuration so that the native linker is
8989 *** used, and then restart.
8991 _LT_EOF
8992 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8993 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8995 else
8996 ld_shlibs=no
9000 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9001 case `$LD -v 2>&1` in
9002 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9003 ld_shlibs=no
9004 cat <<_LT_EOF 1>&2
9006 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9007 *** reliably create shared libraries on SCO systems. Therefore, libtool
9008 *** is disabling shared libraries support. We urge you to upgrade GNU
9009 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9010 *** your PATH or compiler configuration so that the native linker is
9011 *** used, and then restart.
9013 _LT_EOF
9016 # For security reasons, it is highly recommended that you always
9017 # use absolute paths for naming shared libraries, and exclude the
9018 # DT_RUNPATH tag from executables and libraries. But doing so
9019 # requires that you compile everything twice, which is a pain.
9020 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9021 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9024 else
9025 ld_shlibs=no
9028 esac
9031 sunos4*)
9032 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9033 wlarc=
9034 hardcode_direct=yes
9035 hardcode_shlibpath_var=no
9039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9041 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9042 else
9043 ld_shlibs=no
9046 esac
9048 if test "$ld_shlibs" = no; then
9049 runpath_var=
9050 hardcode_libdir_flag_spec=
9051 export_dynamic_flag_spec=
9052 whole_archive_flag_spec=
9054 else
9055 # PORTME fill in a description of your system's linker (not GNU ld)
9056 case $host_os in
9057 aix3*)
9058 allow_undefined_flag=unsupported
9059 always_export_symbols=yes
9060 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'
9061 # Note: this linker hardcodes the directories in LIBPATH if there
9062 # are no directories specified by -L.
9063 hardcode_minus_L=yes
9064 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9065 # Neither direct hardcoding nor static linking is supported with a
9066 # broken collect2.
9067 hardcode_direct=unsupported
9071 aix[4-9]*)
9072 if test "$host_cpu" = ia64; then
9073 # On IA64, the linker does run time linking by default, so we don't
9074 # have to do anything special.
9075 aix_use_runtimelinking=no
9076 exp_sym_flag='-Bexport'
9077 no_entry_flag=""
9078 else
9079 # If we're using GNU nm, then we don't want the "-C" option.
9080 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9081 # Also, AIX nm treats weak defined symbols like other global
9082 # defined symbols, whereas GNU nm marks them as "W".
9083 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9084 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'
9085 else
9086 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9088 aix_use_runtimelinking=no
9090 # Test if we are trying to use run time linking or normal
9091 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9092 # need to do runtime linking.
9093 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9094 for ld_flag in $LDFLAGS; do
9095 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9096 aix_use_runtimelinking=yes
9097 break
9099 done
9101 esac
9103 exp_sym_flag='-bexport'
9104 no_entry_flag='-bnoentry'
9107 # When large executables or shared objects are built, AIX ld can
9108 # have problems creating the table of contents. If linking a library
9109 # or program results in "error TOC overflow" add -mminimal-toc to
9110 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9111 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9113 archive_cmds=''
9114 hardcode_direct=yes
9115 hardcode_direct_absolute=yes
9116 hardcode_libdir_separator=':'
9117 link_all_deplibs=yes
9118 file_list_spec='${wl}-f,'
9120 if test "$GCC" = yes; then
9121 case $host_os in aix4.[012]|aix4.[012].*)
9122 # We only want to do this on AIX 4.2 and lower, the check
9123 # below for broken collect2 doesn't work under 4.3+
9124 collect2name=`${CC} -print-prog-name=collect2`
9125 if test -f "$collect2name" &&
9126 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9127 then
9128 # We have reworked collect2
9130 else
9131 # We have old collect2
9132 hardcode_direct=unsupported
9133 # It fails to find uninstalled libraries when the uninstalled
9134 # path is not listed in the libpath. Setting hardcode_minus_L
9135 # to unsupported forces relinking
9136 hardcode_minus_L=yes
9137 hardcode_libdir_flag_spec='-L$libdir'
9138 hardcode_libdir_separator=
9141 esac
9142 shared_flag='-shared'
9143 if test "$aix_use_runtimelinking" = yes; then
9144 shared_flag="$shared_flag "'${wl}-G'
9146 else
9147 # not using gcc
9148 if test "$host_cpu" = ia64; then
9149 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9150 # chokes on -Wl,-G. The following line is correct:
9151 shared_flag='-G'
9152 else
9153 if test "$aix_use_runtimelinking" = yes; then
9154 shared_flag='${wl}-G'
9155 else
9156 shared_flag='${wl}-bM:SRE'
9161 export_dynamic_flag_spec='${wl}-bexpall'
9162 # It seems that -bexpall does not export symbols beginning with
9163 # underscore (_), so it is better to generate a list of symbols to export.
9164 always_export_symbols=yes
9165 if test "$aix_use_runtimelinking" = yes; then
9166 # Warning - without using the other runtime loading flags (-brtl),
9167 # -berok will link without error, but may produce a broken library.
9168 allow_undefined_flag='-berok'
9169 # Determine the default libpath from the value encoded in an
9170 # empty executable.
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9175 main ()
9179 return 0;
9181 _ACEOF
9182 if ac_fn_c_try_link "$LINENO"; then :
9184 lt_aix_libpath_sed='
9185 /Import File Strings/,/^$/ {
9186 /^0/ {
9187 s/^0 *\(.*\)$/\1/
9191 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9192 # Check for a 64-bit object if we didn't find anything.
9193 if test -z "$aix_libpath"; then
9194 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9197 rm -f core conftest.err conftest.$ac_objext \
9198 conftest$ac_exeext conftest.$ac_ext
9199 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9201 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9202 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"
9203 else
9204 if test "$host_cpu" = ia64; then
9205 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9206 allow_undefined_flag="-z nodefs"
9207 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"
9208 else
9209 # Determine the default libpath from the value encoded in an
9210 # empty executable.
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9215 main ()
9219 return 0;
9221 _ACEOF
9222 if ac_fn_c_try_link "$LINENO"; then :
9224 lt_aix_libpath_sed='
9225 /Import File Strings/,/^$/ {
9226 /^0/ {
9227 s/^0 *\(.*\)$/\1/
9231 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9232 # Check for a 64-bit object if we didn't find anything.
9233 if test -z "$aix_libpath"; then
9234 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9237 rm -f core conftest.err conftest.$ac_objext \
9238 conftest$ac_exeext conftest.$ac_ext
9239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9241 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9242 # Warning - without using the other run time loading flags,
9243 # -berok will link without error, but may produce a broken library.
9244 no_undefined_flag=' ${wl}-bernotok'
9245 allow_undefined_flag=' ${wl}-berok'
9246 if test "$with_gnu_ld" = yes; then
9247 # We only use this code for GNU lds that support --whole-archive.
9248 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9249 else
9250 # Exported symbols can be pulled into shared objects from archives
9251 whole_archive_flag_spec='$convenience'
9253 archive_cmds_need_lc=yes
9254 # This is similar to how AIX traditionally builds its shared libraries.
9255 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'
9260 amigaos*)
9261 case $host_cpu in
9262 powerpc)
9263 # see comment about AmigaOS4 .so support
9264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265 archive_expsym_cmds=''
9267 m68k)
9268 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)'
9269 hardcode_libdir_flag_spec='-L$libdir'
9270 hardcode_minus_L=yes
9272 esac
9275 bsdi[45]*)
9276 export_dynamic_flag_spec=-rdynamic
9279 cygwin* | mingw* | pw32* | cegcc*)
9280 # When not using gcc, we currently assume that we are using
9281 # Microsoft Visual C++.
9282 # hardcode_libdir_flag_spec is actually meaningless, as there is
9283 # no search path for DLLs.
9284 hardcode_libdir_flag_spec=' '
9285 allow_undefined_flag=unsupported
9286 # Tell ltmain to make .lib files, not .a files.
9287 libext=lib
9288 # Tell ltmain to make .dll files, not .so files.
9289 shrext_cmds=".dll"
9290 # FIXME: Setting linknames here is a bad hack.
9291 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9292 # The linker will automatically build a .lib file if we build a DLL.
9293 old_archive_from_new_cmds='true'
9294 # FIXME: Should let the user specify the lib program.
9295 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9296 fix_srcfile_path='`cygpath -w "$srcfile"`'
9297 enable_shared_with_static_runtimes=yes
9300 darwin* | rhapsody*)
9303 archive_cmds_need_lc=no
9304 hardcode_direct=no
9305 hardcode_automatic=yes
9306 hardcode_shlibpath_var=unsupported
9307 if test "$lt_cv_ld_force_load" = "yes"; then
9308 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\"`'
9309 else
9310 whole_archive_flag_spec=''
9312 link_all_deplibs=yes
9313 allow_undefined_flag="$_lt_dar_allow_undefined"
9314 case $cc_basename in
9315 ifort*) _lt_dar_can_shared=yes ;;
9316 *) _lt_dar_can_shared=$GCC ;;
9317 esac
9318 if test "$_lt_dar_can_shared" = "yes"; then
9319 output_verbose_link_cmd=func_echo_all
9320 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9321 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9322 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}"
9323 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}"
9325 else
9326 ld_shlibs=no
9331 dgux*)
9332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333 hardcode_libdir_flag_spec='-L$libdir'
9334 hardcode_shlibpath_var=no
9337 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9338 # support. Future versions do this automatically, but an explicit c++rt0.o
9339 # does not break anything, and helps significantly (at the cost of a little
9340 # extra space).
9341 freebsd2.2*)
9342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9343 hardcode_libdir_flag_spec='-R$libdir'
9344 hardcode_direct=yes
9345 hardcode_shlibpath_var=no
9348 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9349 freebsd2.*)
9350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9351 hardcode_direct=yes
9352 hardcode_minus_L=yes
9353 hardcode_shlibpath_var=no
9356 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9357 freebsd* | dragonfly*)
9358 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9359 hardcode_libdir_flag_spec='-R$libdir'
9360 hardcode_direct=yes
9361 hardcode_shlibpath_var=no
9364 hpux9*)
9365 if test "$GCC" = yes; then
9366 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'
9367 else
9368 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'
9370 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9371 hardcode_libdir_separator=:
9372 hardcode_direct=yes
9374 # hardcode_minus_L: Not really in the search PATH,
9375 # but as the default location of the library.
9376 hardcode_minus_L=yes
9377 export_dynamic_flag_spec='${wl}-E'
9380 hpux10*)
9381 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9382 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9383 else
9384 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9386 if test "$with_gnu_ld" = no; then
9387 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9388 hardcode_libdir_flag_spec_ld='+b $libdir'
9389 hardcode_libdir_separator=:
9390 hardcode_direct=yes
9391 hardcode_direct_absolute=yes
9392 export_dynamic_flag_spec='${wl}-E'
9393 # hardcode_minus_L: Not really in the search PATH,
9394 # but as the default location of the library.
9395 hardcode_minus_L=yes
9399 hpux11*)
9400 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9401 case $host_cpu in
9402 hppa*64*)
9403 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9405 ia64*)
9406 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9409 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9411 esac
9412 else
9413 case $host_cpu in
9414 hppa*64*)
9415 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9417 ia64*)
9418 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9422 # Older versions of the 11.00 compiler do not understand -b yet
9423 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9425 $as_echo_n "checking if $CC understands -b... " >&6; }
9426 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429 lt_cv_prog_compiler__b=no
9430 save_LDFLAGS="$LDFLAGS"
9431 LDFLAGS="$LDFLAGS -b"
9432 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9433 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9434 # The linker can only warn and ignore the option if not recognized
9435 # So say no if there are warnings
9436 if test -s conftest.err; then
9437 # Append any errors to the config.log.
9438 cat conftest.err 1>&5
9439 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9441 if diff conftest.exp conftest.er2 >/dev/null; then
9442 lt_cv_prog_compiler__b=yes
9444 else
9445 lt_cv_prog_compiler__b=yes
9448 $RM -r conftest*
9449 LDFLAGS="$save_LDFLAGS"
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9453 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9455 if test x"$lt_cv_prog_compiler__b" = xyes; then
9456 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9457 else
9458 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9462 esac
9464 if test "$with_gnu_ld" = no; then
9465 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9466 hardcode_libdir_separator=:
9468 case $host_cpu in
9469 hppa*64*|ia64*)
9470 hardcode_direct=no
9471 hardcode_shlibpath_var=no
9474 hardcode_direct=yes
9475 hardcode_direct_absolute=yes
9476 export_dynamic_flag_spec='${wl}-E'
9478 # hardcode_minus_L: Not really in the search PATH,
9479 # but as the default location of the library.
9480 hardcode_minus_L=yes
9482 esac
9486 irix5* | irix6* | nonstopux*)
9487 if test "$GCC" = yes; then
9488 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'
9489 # Try to use the -exported_symbol ld option, if it does not
9490 # work, assume that -exports_file does not work either and
9491 # implicitly export all symbols.
9492 save_LDFLAGS="$LDFLAGS"
9493 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495 /* end confdefs.h. */
9496 int foo(void) {}
9497 _ACEOF
9498 if ac_fn_c_try_link "$LINENO"; then :
9499 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'
9502 rm -f core conftest.err conftest.$ac_objext \
9503 conftest$ac_exeext conftest.$ac_ext
9504 LDFLAGS="$save_LDFLAGS"
9505 else
9506 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'
9507 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'
9509 archive_cmds_need_lc='no'
9510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9511 hardcode_libdir_separator=:
9512 inherit_rpath=yes
9513 link_all_deplibs=yes
9516 netbsd*)
9517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9518 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9519 else
9520 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9522 hardcode_libdir_flag_spec='-R$libdir'
9523 hardcode_direct=yes
9524 hardcode_shlibpath_var=no
9527 newsos6)
9528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9529 hardcode_direct=yes
9530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9531 hardcode_libdir_separator=:
9532 hardcode_shlibpath_var=no
9535 *nto* | *qnx*)
9538 openbsd*)
9539 if test -f /usr/libexec/ld.so; then
9540 hardcode_direct=yes
9541 hardcode_shlibpath_var=no
9542 hardcode_direct_absolute=yes
9543 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9545 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9547 export_dynamic_flag_spec='${wl}-E'
9548 else
9549 case $host_os in
9550 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9552 hardcode_libdir_flag_spec='-R$libdir'
9555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9558 esac
9560 else
9561 ld_shlibs=no
9565 os2*)
9566 hardcode_libdir_flag_spec='-L$libdir'
9567 hardcode_minus_L=yes
9568 allow_undefined_flag=unsupported
9569 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'
9570 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9573 osf3*)
9574 if test "$GCC" = yes; then
9575 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9576 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'
9577 else
9578 allow_undefined_flag=' -expect_unresolved \*'
9579 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'
9581 archive_cmds_need_lc='no'
9582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583 hardcode_libdir_separator=:
9586 osf4* | osf5*) # as osf3* with the addition of -msym flag
9587 if test "$GCC" = yes; then
9588 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9589 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'
9590 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9591 else
9592 allow_undefined_flag=' -expect_unresolved \*'
9593 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'
9594 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~
9595 $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'
9597 # Both c and cxx compiler support -rpath directly
9598 hardcode_libdir_flag_spec='-rpath $libdir'
9600 archive_cmds_need_lc='no'
9601 hardcode_libdir_separator=:
9604 solaris*)
9605 no_undefined_flag=' -z defs'
9606 if test "$GCC" = yes; then
9607 wlarc='${wl}'
9608 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9609 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9610 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9611 else
9612 case `$CC -V 2>&1` in
9613 *"Compilers 5.0"*)
9614 wlarc=''
9615 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9616 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9617 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9620 wlarc='${wl}'
9621 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9622 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9623 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9625 esac
9627 hardcode_libdir_flag_spec='-R$libdir'
9628 hardcode_shlibpath_var=no
9629 case $host_os in
9630 solaris2.[0-5] | solaris2.[0-5].*) ;;
9632 # The compiler driver will combine and reorder linker options,
9633 # but understands `-z linker_flag'. GCC discards it without `$wl',
9634 # but is careful enough not to reorder.
9635 # Supported since Solaris 2.6 (maybe 2.5.1?)
9636 if test "$GCC" = yes; then
9637 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9638 else
9639 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9642 esac
9643 link_all_deplibs=yes
9646 sunos4*)
9647 if test "x$host_vendor" = xsequent; then
9648 # Use $CC to link under sequent, because it throws in some extra .o
9649 # files that make .init and .fini sections work.
9650 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9651 else
9652 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9654 hardcode_libdir_flag_spec='-L$libdir'
9655 hardcode_direct=yes
9656 hardcode_minus_L=yes
9657 hardcode_shlibpath_var=no
9660 sysv4)
9661 case $host_vendor in
9662 sni)
9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_direct=yes # is this really true???
9666 siemens)
9667 ## LD is ld it makes a PLAMLIB
9668 ## CC just makes a GrossModule.
9669 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9670 reload_cmds='$CC -r -o $output$reload_objs'
9671 hardcode_direct=no
9673 motorola)
9674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9675 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9677 esac
9678 runpath_var='LD_RUN_PATH'
9679 hardcode_shlibpath_var=no
9682 sysv4.3*)
9683 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9684 hardcode_shlibpath_var=no
9685 export_dynamic_flag_spec='-Bexport'
9688 sysv4*MP*)
9689 if test -d /usr/nec; then
9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_shlibpath_var=no
9692 runpath_var=LD_RUN_PATH
9693 hardcode_runpath_var=yes
9694 ld_shlibs=yes
9698 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9699 no_undefined_flag='${wl}-z,text'
9700 archive_cmds_need_lc=no
9701 hardcode_shlibpath_var=no
9702 runpath_var='LD_RUN_PATH'
9704 if test "$GCC" = yes; then
9705 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9707 else
9708 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9709 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 sysv5* | sco3.2v5* | sco5v6*)
9714 # Note: We can NOT use -z defs as we might desire, because we do not
9715 # link with -lc, and that would cause any symbols used from libc to
9716 # always be unresolved, which means just about no library would
9717 # ever link correctly. If we're not using GNU ld we use -z text
9718 # though, which does catch some bad symbols but isn't as heavy-handed
9719 # as -z defs.
9720 no_undefined_flag='${wl}-z,text'
9721 allow_undefined_flag='${wl}-z,nodefs'
9722 archive_cmds_need_lc=no
9723 hardcode_shlibpath_var=no
9724 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9725 hardcode_libdir_separator=':'
9726 link_all_deplibs=yes
9727 export_dynamic_flag_spec='${wl}-Bexport'
9728 runpath_var='LD_RUN_PATH'
9730 if test "$GCC" = yes; then
9731 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9733 else
9734 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 uts4*)
9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_libdir_flag_spec='-L$libdir'
9742 hardcode_shlibpath_var=no
9746 ld_shlibs=no
9748 esac
9750 if test x$host_vendor = xsni; then
9751 case $host in
9752 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9753 export_dynamic_flag_spec='${wl}-Blargedynsym'
9755 esac
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9760 $as_echo "$ld_shlibs" >&6; }
9761 test "$ld_shlibs" = no && can_build_shared=no
9763 with_gnu_ld=$with_gnu_ld
9780 # Do we need to explicitly link libc?
9782 case "x$archive_cmds_need_lc" in
9783 x|xyes)
9784 # Assume -lc should be added
9785 archive_cmds_need_lc=yes
9787 if test "$enable_shared" = yes && test "$GCC" = yes; then
9788 case $archive_cmds in
9789 *'~'*)
9790 # FIXME: we may have to deal with multi-command sequences.
9792 '$CC '*)
9793 # Test whether the compiler implicitly links with -lc since on some
9794 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9795 # to ld, don't add -lc before -lgcc.
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9797 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9798 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 $RM conftest*
9802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9805 (eval $ac_compile) 2>&5
9806 ac_status=$?
9807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9808 test $ac_status = 0; } 2>conftest.err; then
9809 soname=conftest
9810 lib=conftest
9811 libobjs=conftest.$ac_objext
9812 deplibs=
9813 wl=$lt_prog_compiler_wl
9814 pic_flag=$lt_prog_compiler_pic
9815 compiler_flags=-v
9816 linker_flags=-v
9817 verstring=
9818 output_objdir=.
9819 libname=conftest
9820 lt_save_allow_undefined_flag=$allow_undefined_flag
9821 allow_undefined_flag=
9822 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9823 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9824 ac_status=$?
9825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9826 test $ac_status = 0; }
9827 then
9828 lt_cv_archive_cmds_need_lc=no
9829 else
9830 lt_cv_archive_cmds_need_lc=yes
9832 allow_undefined_flag=$lt_save_allow_undefined_flag
9833 else
9834 cat conftest.err 1>&5
9836 $RM conftest*
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9840 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9841 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9843 esac
9846 esac
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10005 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10007 if test "$GCC" = yes; then
10008 case $host_os in
10009 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10010 *) lt_awk_arg="/^libraries:/" ;;
10011 esac
10012 case $host_os in
10013 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10014 *) lt_sed_strip_eq="s,=/,/,g" ;;
10015 esac
10016 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10017 case $lt_search_path_spec in
10018 *\;*)
10019 # if the path contains ";" then we assume it to be the separator
10020 # otherwise default to the standard path separator (i.e. ":") - it is
10021 # assumed that no part of a normal pathname contains ";" but that should
10022 # okay in the real world where ";" in dirpaths is itself problematic.
10023 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10026 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10028 esac
10029 # Ok, now we have the path, separated by spaces, we can step through it
10030 # and add multilib dir if necessary.
10031 lt_tmp_lt_search_path_spec=
10032 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10033 for lt_sys_path in $lt_search_path_spec; do
10034 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10035 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10036 else
10037 test -d "$lt_sys_path" && \
10038 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10040 done
10041 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10042 BEGIN {RS=" "; FS="/|\n";} {
10043 lt_foo="";
10044 lt_count=0;
10045 for (lt_i = NF; lt_i > 0; lt_i--) {
10046 if ($lt_i != "" && $lt_i != ".") {
10047 if ($lt_i == "..") {
10048 lt_count++;
10049 } else {
10050 if (lt_count == 0) {
10051 lt_foo="/" $lt_i lt_foo;
10052 } else {
10053 lt_count--;
10058 if (lt_foo != "") { lt_freq[lt_foo]++; }
10059 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10061 # AWK program above erroneously prepends '/' to C:/dos/paths
10062 # for these hosts.
10063 case $host_os in
10064 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10065 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10066 esac
10067 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10068 else
10069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10071 library_names_spec=
10072 libname_spec='lib$name'
10073 soname_spec=
10074 shrext_cmds=".so"
10075 postinstall_cmds=
10076 postuninstall_cmds=
10077 finish_cmds=
10078 finish_eval=
10079 shlibpath_var=
10080 shlibpath_overrides_runpath=unknown
10081 version_type=none
10082 dynamic_linker="$host_os ld.so"
10083 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10084 need_lib_prefix=unknown
10085 hardcode_into_libs=no
10087 # when you set need_version to no, make sure it does not cause -set_version
10088 # flags to be left without arguments
10089 need_version=unknown
10091 case $host_os in
10092 aix3*)
10093 version_type=linux
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10095 shlibpath_var=LIBPATH
10097 # AIX 3 has no versioning support, so we append a major version to the name.
10098 soname_spec='${libname}${release}${shared_ext}$major'
10101 aix[4-9]*)
10102 version_type=linux
10103 need_lib_prefix=no
10104 need_version=no
10105 hardcode_into_libs=yes
10106 if test "$host_cpu" = ia64; then
10107 # AIX 5 supports IA64
10108 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10109 shlibpath_var=LD_LIBRARY_PATH
10110 else
10111 # With GCC up to 2.95.x, collect2 would create an import file
10112 # for dependence libraries. The import file would start with
10113 # the line `#! .'. This would cause the generated library to
10114 # depend on `.', always an invalid library. This was fixed in
10115 # development snapshots of GCC prior to 3.0.
10116 case $host_os in
10117 aix4 | aix4.[01] | aix4.[01].*)
10118 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10119 echo ' yes '
10120 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10122 else
10123 can_build_shared=no
10126 esac
10127 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10128 # soname into executable. Probably we can add versioning support to
10129 # collect2, so additional links can be useful in future.
10130 if test "$aix_use_runtimelinking" = yes; then
10131 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10132 # instead of lib<name>.a to let people know that these are not
10133 # typical AIX shared libraries.
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 else
10136 # We preserve .a as extension for shared libraries through AIX4.2
10137 # and later when we are not doing run time linking.
10138 library_names_spec='${libname}${release}.a $libname.a'
10139 soname_spec='${libname}${release}${shared_ext}$major'
10141 shlibpath_var=LIBPATH
10145 amigaos*)
10146 case $host_cpu in
10147 powerpc)
10148 # Since July 2007 AmigaOS4 officially supports .so libraries.
10149 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10152 m68k)
10153 library_names_spec='$libname.ixlibrary $libname.a'
10154 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10155 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'
10157 esac
10160 beos*)
10161 library_names_spec='${libname}${shared_ext}'
10162 dynamic_linker="$host_os ld.so"
10163 shlibpath_var=LIBRARY_PATH
10166 bsdi[45]*)
10167 version_type=linux
10168 need_version=no
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170 soname_spec='${libname}${release}${shared_ext}$major'
10171 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10174 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10175 # the default ld.so.conf also contains /usr/contrib/lib and
10176 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10177 # libtool to hard-code these into programs
10180 cygwin* | mingw* | pw32* | cegcc*)
10181 version_type=windows
10182 shrext_cmds=".dll"
10183 need_version=no
10184 need_lib_prefix=no
10186 case $GCC,$host_os in
10187 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10188 library_names_spec='$libname.dll.a'
10189 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10190 postinstall_cmds='base_file=`basename \${file}`~
10191 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10192 dldir=$destdir/`dirname \$dlpath`~
10193 test -d \$dldir || mkdir -p \$dldir~
10194 $install_prog $dir/$dlname \$dldir/$dlname~
10195 chmod a+x \$dldir/$dlname~
10196 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10197 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10199 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10200 dlpath=$dir/\$dldll~
10201 $RM \$dlpath'
10202 shlibpath_overrides_runpath=yes
10204 case $host_os in
10205 cygwin*)
10206 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10207 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10209 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10211 mingw* | cegcc*)
10212 # MinGW DLLs use traditional 'lib' prefix
10213 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10215 pw32*)
10216 # pw32 DLLs use 'pw' prefix rather than 'lib'
10217 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10219 esac
10223 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10225 esac
10226 dynamic_linker='Win32 ld.exe'
10227 # FIXME: first we should search . and the directory the executable is in
10228 shlibpath_var=PATH
10231 darwin* | rhapsody*)
10232 dynamic_linker="$host_os dyld"
10233 version_type=darwin
10234 need_lib_prefix=no
10235 need_version=no
10236 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10237 soname_spec='${libname}${release}${major}$shared_ext'
10238 shlibpath_overrides_runpath=yes
10239 shlibpath_var=DYLD_LIBRARY_PATH
10240 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10242 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10243 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10246 dgux*)
10247 version_type=linux
10248 need_lib_prefix=no
10249 need_version=no
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 shlibpath_var=LD_LIBRARY_PATH
10255 freebsd* | dragonfly*)
10256 # DragonFly does not have aout. When/if they implement a new
10257 # versioning mechanism, adjust this.
10258 if test -x /usr/bin/objformat; then
10259 objformat=`/usr/bin/objformat`
10260 else
10261 case $host_os in
10262 freebsd[23].*) objformat=aout ;;
10263 *) objformat=elf ;;
10264 esac
10266 version_type=freebsd-$objformat
10267 case $version_type in
10268 freebsd-elf*)
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10270 need_version=no
10271 need_lib_prefix=no
10273 freebsd-*)
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10275 need_version=yes
10277 esac
10278 shlibpath_var=LD_LIBRARY_PATH
10279 case $host_os in
10280 freebsd2.*)
10281 shlibpath_overrides_runpath=yes
10283 freebsd3.[01]* | freebsdelf3.[01]*)
10284 shlibpath_overrides_runpath=yes
10285 hardcode_into_libs=yes
10287 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10288 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10289 shlibpath_overrides_runpath=no
10290 hardcode_into_libs=yes
10292 *) # from 4.6 on, and DragonFly
10293 shlibpath_overrides_runpath=yes
10294 hardcode_into_libs=yes
10296 esac
10299 gnu*)
10300 version_type=linux
10301 need_lib_prefix=no
10302 need_version=no
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 hardcode_into_libs=yes
10309 haiku*)
10310 version_type=linux
10311 need_lib_prefix=no
10312 need_version=no
10313 dynamic_linker="$host_os runtime_loader"
10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10315 soname_spec='${libname}${release}${shared_ext}$major'
10316 shlibpath_var=LIBRARY_PATH
10317 shlibpath_overrides_runpath=yes
10318 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10319 hardcode_into_libs=yes
10322 hpux9* | hpux10* | hpux11*)
10323 # Give a soname corresponding to the major version so that dld.sl refuses to
10324 # link against other versions.
10325 version_type=sunos
10326 need_lib_prefix=no
10327 need_version=no
10328 case $host_cpu in
10329 ia64*)
10330 shrext_cmds='.so'
10331 hardcode_into_libs=yes
10332 dynamic_linker="$host_os dld.so"
10333 shlibpath_var=LD_LIBRARY_PATH
10334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10336 soname_spec='${libname}${release}${shared_ext}$major'
10337 if test "X$HPUX_IA64_MODE" = X32; then
10338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10339 else
10340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10344 hppa*64*)
10345 shrext_cmds='.sl'
10346 hardcode_into_libs=yes
10347 dynamic_linker="$host_os dld.sl"
10348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10356 shrext_cmds='.sl'
10357 dynamic_linker="$host_os dld.sl"
10358 shlibpath_var=SHLIB_PATH
10359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 soname_spec='${libname}${release}${shared_ext}$major'
10363 esac
10364 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10365 postinstall_cmds='chmod 555 $lib'
10366 # or fails outright, so override atomically:
10367 install_override_mode=555
10370 interix[3-9]*)
10371 version_type=linux
10372 need_lib_prefix=no
10373 need_version=no
10374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10375 soname_spec='${libname}${release}${shared_ext}$major'
10376 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=no
10379 hardcode_into_libs=yes
10382 irix5* | irix6* | nonstopux*)
10383 case $host_os in
10384 nonstopux*) version_type=nonstopux ;;
10386 if test "$lt_cv_prog_gnu_ld" = yes; then
10387 version_type=linux
10388 else
10389 version_type=irix
10390 fi ;;
10391 esac
10392 need_lib_prefix=no
10393 need_version=no
10394 soname_spec='${libname}${release}${shared_ext}$major'
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10396 case $host_os in
10397 irix5* | nonstopux*)
10398 libsuff= shlibsuff=
10401 case $LD in # libtool.m4 will add one of these switches to LD
10402 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10403 libsuff= shlibsuff= libmagic=32-bit;;
10404 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10405 libsuff=32 shlibsuff=N32 libmagic=N32;;
10406 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10407 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10408 *) libsuff= shlibsuff= libmagic=never-match;;
10409 esac
10411 esac
10412 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10413 shlibpath_overrides_runpath=no
10414 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10415 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10416 hardcode_into_libs=yes
10419 # No shared lib support for Linux oldld, aout, or coff.
10420 linux*oldld* | linux*aout* | linux*coff*)
10421 dynamic_linker=no
10424 # This must be Linux ELF.
10425 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10426 version_type=linux
10427 need_lib_prefix=no
10428 need_version=no
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430 soname_spec='${libname}${release}${shared_ext}$major'
10431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10432 shlibpath_var=LD_LIBRARY_PATH
10433 shlibpath_overrides_runpath=no
10435 # Some binutils ld are patched to set DT_RUNPATH
10436 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10437 $as_echo_n "(cached) " >&6
10438 else
10439 lt_cv_shlibpath_overrides_runpath=no
10440 save_LDFLAGS=$LDFLAGS
10441 save_libdir=$libdir
10442 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10443 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10445 /* end confdefs.h. */
10448 main ()
10452 return 0;
10454 _ACEOF
10455 if ac_fn_c_try_link "$LINENO"; then :
10456 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10457 lt_cv_shlibpath_overrides_runpath=yes
10460 rm -f core conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10462 LDFLAGS=$save_LDFLAGS
10463 libdir=$save_libdir
10467 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10469 # This implies no fast_install, which is unacceptable.
10470 # Some rework will be needed to allow for fast_install
10471 # before this can be enabled.
10472 hardcode_into_libs=yes
10474 # Append ld.so.conf contents to the search path
10475 if test -f /etc/ld.so.conf; then
10476 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' ' '`
10477 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10480 # We used to test for /lib/ld.so.1 and disable shared libraries on
10481 # powerpc, because MkLinux only supported shared libraries with the
10482 # GNU dynamic linker. Since this was broken with cross compilers,
10483 # most powerpc-linux boxes support dynamic linking these days and
10484 # people can always --disable-shared, the test was removed, and we
10485 # assume the GNU/Linux dynamic linker is in use.
10486 dynamic_linker='GNU/Linux ld.so'
10489 netbsd*)
10490 version_type=sunos
10491 need_lib_prefix=no
10492 need_version=no
10493 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10496 dynamic_linker='NetBSD (a.out) ld.so'
10497 else
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10499 soname_spec='${libname}${release}${shared_ext}$major'
10500 dynamic_linker='NetBSD ld.elf_so'
10502 shlibpath_var=LD_LIBRARY_PATH
10503 shlibpath_overrides_runpath=yes
10504 hardcode_into_libs=yes
10507 newsos6)
10508 version_type=linux
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510 shlibpath_var=LD_LIBRARY_PATH
10511 shlibpath_overrides_runpath=yes
10514 *nto* | *qnx*)
10515 version_type=qnx
10516 need_lib_prefix=no
10517 need_version=no
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10519 soname_spec='${libname}${release}${shared_ext}$major'
10520 shlibpath_var=LD_LIBRARY_PATH
10521 shlibpath_overrides_runpath=no
10522 hardcode_into_libs=yes
10523 dynamic_linker='ldqnx.so'
10526 openbsd*)
10527 version_type=sunos
10528 sys_lib_dlsearch_path_spec="/usr/lib"
10529 need_lib_prefix=no
10530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10531 case $host_os in
10532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10533 *) need_version=no ;;
10534 esac
10535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10537 shlibpath_var=LD_LIBRARY_PATH
10538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10539 case $host_os in
10540 openbsd2.[89] | openbsd2.[89].*)
10541 shlibpath_overrides_runpath=no
10544 shlibpath_overrides_runpath=yes
10546 esac
10547 else
10548 shlibpath_overrides_runpath=yes
10552 os2*)
10553 libname_spec='$name'
10554 shrext_cmds=".dll"
10555 need_lib_prefix=no
10556 library_names_spec='$libname${shared_ext} $libname.a'
10557 dynamic_linker='OS/2 ld.exe'
10558 shlibpath_var=LIBPATH
10561 osf3* | osf4* | osf5*)
10562 version_type=osf
10563 need_lib_prefix=no
10564 need_version=no
10565 soname_spec='${libname}${release}${shared_ext}$major'
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10567 shlibpath_var=LD_LIBRARY_PATH
10568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10572 rdos*)
10573 dynamic_linker=no
10576 solaris*)
10577 version_type=linux
10578 need_lib_prefix=no
10579 need_version=no
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 shlibpath_overrides_runpath=yes
10584 hardcode_into_libs=yes
10585 # ldd complains unless libraries are executable
10586 postinstall_cmds='chmod +x $lib'
10589 sunos4*)
10590 version_type=sunos
10591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10592 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10593 shlibpath_var=LD_LIBRARY_PATH
10594 shlibpath_overrides_runpath=yes
10595 if test "$with_gnu_ld" = yes; then
10596 need_lib_prefix=no
10598 need_version=yes
10601 sysv4 | sysv4.3*)
10602 version_type=linux
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604 soname_spec='${libname}${release}${shared_ext}$major'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 case $host_vendor in
10607 sni)
10608 shlibpath_overrides_runpath=no
10609 need_lib_prefix=no
10610 runpath_var=LD_RUN_PATH
10612 siemens)
10613 need_lib_prefix=no
10615 motorola)
10616 need_lib_prefix=no
10617 need_version=no
10618 shlibpath_overrides_runpath=no
10619 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10621 esac
10624 sysv4*MP*)
10625 if test -d /usr/nec ;then
10626 version_type=linux
10627 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10628 soname_spec='$libname${shared_ext}.$major'
10629 shlibpath_var=LD_LIBRARY_PATH
10633 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10634 version_type=freebsd-elf
10635 need_lib_prefix=no
10636 need_version=no
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 shlibpath_var=LD_LIBRARY_PATH
10640 shlibpath_overrides_runpath=yes
10641 hardcode_into_libs=yes
10642 if test "$with_gnu_ld" = yes; then
10643 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10644 else
10645 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10646 case $host_os in
10647 sco3.2v5*)
10648 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10650 esac
10652 sys_lib_dlsearch_path_spec='/usr/lib'
10655 tpf*)
10656 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10657 version_type=linux
10658 need_lib_prefix=no
10659 need_version=no
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10661 shlibpath_var=LD_LIBRARY_PATH
10662 shlibpath_overrides_runpath=no
10663 hardcode_into_libs=yes
10666 uts4*)
10667 version_type=linux
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 shlibpath_var=LD_LIBRARY_PATH
10674 dynamic_linker=no
10676 esac
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10678 $as_echo "$dynamic_linker" >&6; }
10679 test "$dynamic_linker" = no && can_build_shared=no
10681 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10682 if test "$GCC" = yes; then
10683 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10686 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10687 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10689 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10690 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10785 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10786 hardcode_action=
10787 if test -n "$hardcode_libdir_flag_spec" ||
10788 test -n "$runpath_var" ||
10789 test "X$hardcode_automatic" = "Xyes" ; then
10791 # We can hardcode non-existent directories.
10792 if test "$hardcode_direct" != no &&
10793 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10794 # have to relink, otherwise we might link with an installed library
10795 # when we should be linking with a yet-to-be-installed one
10796 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10797 test "$hardcode_minus_L" != no; then
10798 # Linking always hardcodes the temporary library directory.
10799 hardcode_action=relink
10800 else
10801 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10802 hardcode_action=immediate
10804 else
10805 # We cannot hardcode anything, or else we can only hardcode existing
10806 # directories.
10807 hardcode_action=unsupported
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10810 $as_echo "$hardcode_action" >&6; }
10812 if test "$hardcode_action" = relink ||
10813 test "$inherit_rpath" = yes; then
10814 # Fast installation is not supported
10815 enable_fast_install=no
10816 elif test "$shlibpath_overrides_runpath" = yes ||
10817 test "$enable_shared" = no; then
10818 # Fast installation is not necessary
10819 enable_fast_install=needless
10827 if test "x$enable_dlopen" != xyes; then
10828 enable_dlopen=unknown
10829 enable_dlopen_self=unknown
10830 enable_dlopen_self_static=unknown
10831 else
10832 lt_cv_dlopen=no
10833 lt_cv_dlopen_libs=
10835 case $host_os in
10836 beos*)
10837 lt_cv_dlopen="load_add_on"
10838 lt_cv_dlopen_libs=
10839 lt_cv_dlopen_self=yes
10842 mingw* | pw32* | cegcc*)
10843 lt_cv_dlopen="LoadLibrary"
10844 lt_cv_dlopen_libs=
10847 cygwin*)
10848 lt_cv_dlopen="dlopen"
10849 lt_cv_dlopen_libs=
10852 darwin*)
10853 # if libdl is installed we need to link against it
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10855 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10856 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10857 $as_echo_n "(cached) " >&6
10858 else
10859 ac_check_lib_save_LIBS=$LIBS
10860 LIBS="-ldl $LIBS"
10861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10864 /* Override any GCC internal prototype to avoid an error.
10865 Use char because int might match the return type of a GCC
10866 builtin and then its argument prototype would still apply. */
10867 #ifdef __cplusplus
10868 extern "C"
10869 #endif
10870 char dlopen ();
10872 main ()
10874 return dlopen ();
10876 return 0;
10878 _ACEOF
10879 if ac_fn_c_try_link "$LINENO"; then :
10880 ac_cv_lib_dl_dlopen=yes
10881 else
10882 ac_cv_lib_dl_dlopen=no
10884 rm -f core conftest.err conftest.$ac_objext \
10885 conftest$ac_exeext conftest.$ac_ext
10886 LIBS=$ac_check_lib_save_LIBS
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10889 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10890 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10891 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10892 else
10894 lt_cv_dlopen="dyld"
10895 lt_cv_dlopen_libs=
10896 lt_cv_dlopen_self=yes
10903 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10904 if test "x$ac_cv_func_shl_load" = x""yes; then :
10905 lt_cv_dlopen="shl_load"
10906 else
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10908 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10909 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 ac_check_lib_save_LIBS=$LIBS
10913 LIBS="-ldld $LIBS"
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10917 /* Override any GCC internal prototype to avoid an error.
10918 Use char because int might match the return type of a GCC
10919 builtin and then its argument prototype would still apply. */
10920 #ifdef __cplusplus
10921 extern "C"
10922 #endif
10923 char shl_load ();
10925 main ()
10927 return shl_load ();
10929 return 0;
10931 _ACEOF
10932 if ac_fn_c_try_link "$LINENO"; then :
10933 ac_cv_lib_dld_shl_load=yes
10934 else
10935 ac_cv_lib_dld_shl_load=no
10937 rm -f core conftest.err conftest.$ac_objext \
10938 conftest$ac_exeext conftest.$ac_ext
10939 LIBS=$ac_check_lib_save_LIBS
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10942 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10943 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10944 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10945 else
10946 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10947 if test "x$ac_cv_func_dlopen" = x""yes; then :
10948 lt_cv_dlopen="dlopen"
10949 else
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10951 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10952 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10953 $as_echo_n "(cached) " >&6
10954 else
10955 ac_check_lib_save_LIBS=$LIBS
10956 LIBS="-ldl $LIBS"
10957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958 /* end confdefs.h. */
10960 /* Override any GCC internal prototype to avoid an error.
10961 Use char because int might match the return type of a GCC
10962 builtin and then its argument prototype would still apply. */
10963 #ifdef __cplusplus
10964 extern "C"
10965 #endif
10966 char dlopen ();
10968 main ()
10970 return dlopen ();
10972 return 0;
10974 _ACEOF
10975 if ac_fn_c_try_link "$LINENO"; then :
10976 ac_cv_lib_dl_dlopen=yes
10977 else
10978 ac_cv_lib_dl_dlopen=no
10980 rm -f core conftest.err conftest.$ac_objext \
10981 conftest$ac_exeext conftest.$ac_ext
10982 LIBS=$ac_check_lib_save_LIBS
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10985 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10986 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10987 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10988 else
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10990 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10991 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10993 else
10994 ac_check_lib_save_LIBS=$LIBS
10995 LIBS="-lsvld $LIBS"
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10999 /* Override any GCC internal prototype to avoid an error.
11000 Use char because int might match the return type of a GCC
11001 builtin and then its argument prototype would still apply. */
11002 #ifdef __cplusplus
11003 extern "C"
11004 #endif
11005 char dlopen ();
11007 main ()
11009 return dlopen ();
11011 return 0;
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"; then :
11015 ac_cv_lib_svld_dlopen=yes
11016 else
11017 ac_cv_lib_svld_dlopen=no
11019 rm -f core conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext conftest.$ac_ext
11021 LIBS=$ac_check_lib_save_LIBS
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11024 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11025 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11027 else
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11029 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11030 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 ac_check_lib_save_LIBS=$LIBS
11034 LIBS="-ldld $LIBS"
11035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11038 /* Override any GCC internal prototype to avoid an error.
11039 Use char because int might match the return type of a GCC
11040 builtin and then its argument prototype would still apply. */
11041 #ifdef __cplusplus
11042 extern "C"
11043 #endif
11044 char dld_link ();
11046 main ()
11048 return dld_link ();
11050 return 0;
11052 _ACEOF
11053 if ac_fn_c_try_link "$LINENO"; then :
11054 ac_cv_lib_dld_dld_link=yes
11055 else
11056 ac_cv_lib_dld_dld_link=no
11058 rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060 LIBS=$ac_check_lib_save_LIBS
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11063 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11064 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11065 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11084 esac
11086 if test "x$lt_cv_dlopen" != xno; then
11087 enable_dlopen=yes
11088 else
11089 enable_dlopen=no
11092 case $lt_cv_dlopen in
11093 dlopen)
11094 save_CPPFLAGS="$CPPFLAGS"
11095 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11097 save_LDFLAGS="$LDFLAGS"
11098 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11100 save_LIBS="$LIBS"
11101 LIBS="$lt_cv_dlopen_libs $LIBS"
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11104 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11105 if test "${lt_cv_dlopen_self+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 if test "$cross_compiling" = yes; then :
11109 lt_cv_dlopen_self=cross
11110 else
11111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11112 lt_status=$lt_dlunknown
11113 cat > conftest.$ac_ext <<_LT_EOF
11114 #line 11114 "configure"
11115 #include "confdefs.h"
11117 #if HAVE_DLFCN_H
11118 #include <dlfcn.h>
11119 #endif
11121 #include <stdio.h>
11123 #ifdef RTLD_GLOBAL
11124 # define LT_DLGLOBAL RTLD_GLOBAL
11125 #else
11126 # ifdef DL_GLOBAL
11127 # define LT_DLGLOBAL DL_GLOBAL
11128 # else
11129 # define LT_DLGLOBAL 0
11130 # endif
11131 #endif
11133 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11134 find out it does not work in some platform. */
11135 #ifndef LT_DLLAZY_OR_NOW
11136 # ifdef RTLD_LAZY
11137 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11138 # else
11139 # ifdef DL_LAZY
11140 # define LT_DLLAZY_OR_NOW DL_LAZY
11141 # else
11142 # ifdef RTLD_NOW
11143 # define LT_DLLAZY_OR_NOW RTLD_NOW
11144 # else
11145 # ifdef DL_NOW
11146 # define LT_DLLAZY_OR_NOW DL_NOW
11147 # else
11148 # define LT_DLLAZY_OR_NOW 0
11149 # endif
11150 # endif
11151 # endif
11152 # endif
11153 #endif
11155 /* When -fvisbility=hidden is used, assume the code has been annotated
11156 correspondingly for the symbols needed. */
11157 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11158 void fnord () __attribute__((visibility("default")));
11159 #endif
11161 void fnord () { int i=42; }
11162 int main ()
11164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11165 int status = $lt_dlunknown;
11167 if (self)
11169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11170 else
11172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11173 else puts (dlerror ());
11175 /* dlclose (self); */
11177 else
11178 puts (dlerror ());
11180 return status;
11182 _LT_EOF
11183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11184 (eval $ac_link) 2>&5
11185 ac_status=$?
11186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11187 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11188 (./conftest; exit; ) >&5 2>/dev/null
11189 lt_status=$?
11190 case x$lt_status in
11191 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11192 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11193 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11194 esac
11195 else :
11196 # compilation failed
11197 lt_cv_dlopen_self=no
11200 rm -fr conftest*
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11205 $as_echo "$lt_cv_dlopen_self" >&6; }
11207 if test "x$lt_cv_dlopen_self" = xyes; then
11208 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11210 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11211 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 if test "$cross_compiling" = yes; then :
11215 lt_cv_dlopen_self_static=cross
11216 else
11217 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11218 lt_status=$lt_dlunknown
11219 cat > conftest.$ac_ext <<_LT_EOF
11220 #line 11220 "configure"
11221 #include "confdefs.h"
11223 #if HAVE_DLFCN_H
11224 #include <dlfcn.h>
11225 #endif
11227 #include <stdio.h>
11229 #ifdef RTLD_GLOBAL
11230 # define LT_DLGLOBAL RTLD_GLOBAL
11231 #else
11232 # ifdef DL_GLOBAL
11233 # define LT_DLGLOBAL DL_GLOBAL
11234 # else
11235 # define LT_DLGLOBAL 0
11236 # endif
11237 #endif
11239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11240 find out it does not work in some platform. */
11241 #ifndef LT_DLLAZY_OR_NOW
11242 # ifdef RTLD_LAZY
11243 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11244 # else
11245 # ifdef DL_LAZY
11246 # define LT_DLLAZY_OR_NOW DL_LAZY
11247 # else
11248 # ifdef RTLD_NOW
11249 # define LT_DLLAZY_OR_NOW RTLD_NOW
11250 # else
11251 # ifdef DL_NOW
11252 # define LT_DLLAZY_OR_NOW DL_NOW
11253 # else
11254 # define LT_DLLAZY_OR_NOW 0
11255 # endif
11256 # endif
11257 # endif
11258 # endif
11259 #endif
11261 /* When -fvisbility=hidden is used, assume the code has been annotated
11262 correspondingly for the symbols needed. */
11263 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11264 void fnord () __attribute__((visibility("default")));
11265 #endif
11267 void fnord () { int i=42; }
11268 int main ()
11270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11271 int status = $lt_dlunknown;
11273 if (self)
11275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11276 else
11278 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11279 else puts (dlerror ());
11281 /* dlclose (self); */
11283 else
11284 puts (dlerror ());
11286 return status;
11288 _LT_EOF
11289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11290 (eval $ac_link) 2>&5
11291 ac_status=$?
11292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11293 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11294 (./conftest; exit; ) >&5 2>/dev/null
11295 lt_status=$?
11296 case x$lt_status in
11297 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11298 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11299 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11300 esac
11301 else :
11302 # compilation failed
11303 lt_cv_dlopen_self_static=no
11306 rm -fr conftest*
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11311 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11314 CPPFLAGS="$save_CPPFLAGS"
11315 LDFLAGS="$save_LDFLAGS"
11316 LIBS="$save_LIBS"
11318 esac
11320 case $lt_cv_dlopen_self in
11321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11322 *) enable_dlopen_self=unknown ;;
11323 esac
11325 case $lt_cv_dlopen_self_static in
11326 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11327 *) enable_dlopen_self_static=unknown ;;
11328 esac
11347 striplib=
11348 old_striplib=
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11350 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11351 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11352 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11353 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11355 $as_echo "yes" >&6; }
11356 else
11357 # FIXME - insert some real tests, host_os isn't really good enough
11358 case $host_os in
11359 darwin*)
11360 if test -n "$STRIP" ; then
11361 striplib="$STRIP -x"
11362 old_striplib="$STRIP -S"
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11364 $as_echo "yes" >&6; }
11365 else
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11374 esac
11388 # Report which library types will actually be built
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11390 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11392 $as_echo "$can_build_shared" >&6; }
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11395 $as_echo_n "checking whether to build shared libraries... " >&6; }
11396 test "$can_build_shared" = "no" && enable_shared=no
11398 # On AIX, shared libraries and static libraries use the same namespace, and
11399 # are all built from PIC.
11400 case $host_os in
11401 aix3*)
11402 test "$enable_shared" = yes && enable_static=no
11403 if test -n "$RANLIB"; then
11404 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11405 postinstall_cmds='$RANLIB $lib'
11409 aix[4-9]*)
11410 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11411 test "$enable_shared" = yes && enable_static=no
11414 esac
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11416 $as_echo "$enable_shared" >&6; }
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11419 $as_echo_n "checking whether to build static libraries... " >&6; }
11420 # Make sure either enable_shared or enable_static is yes.
11421 test "$enable_shared" = yes || enable_static=yes
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11423 $as_echo "$enable_static" >&6; }
11429 ac_ext=c
11430 ac_cpp='$CPP $CPPFLAGS'
11431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11435 CC="$lt_save_CC"
11449 ac_config_commands="$ac_config_commands libtool"
11454 # Only expand once:
11460 case $host in
11461 *-cygwin* | *-mingw*)
11462 # 'host' will be top-level target in the case of a target lib,
11463 # we must compare to with_cross_host to decide if this is a native
11464 # or cross-compiler and select where to install dlls appropriately.
11465 if test -n "$with_cross_host" &&
11466 test x"$with_cross_host" != x"no"; then
11467 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11468 else
11469 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11473 lt_host_flags=
11475 esac
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11483 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11484 # Check whether --enable-maintainer-mode was given.
11485 if test "${enable_maintainer_mode+set}" = set; then :
11486 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11487 else
11488 USE_MAINTAINER_MODE=no
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11492 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11493 if test $USE_MAINTAINER_MODE = yes; then
11494 MAINTAINER_MODE_TRUE=
11495 MAINTAINER_MODE_FALSE='#'
11496 else
11497 MAINTAINER_MODE_TRUE='#'
11498 MAINTAINER_MODE_FALSE=
11501 MAINT=$MAINTAINER_MODE_TRUE
11505 # For libtool versioning info, format is CURRENT:REVISION:AGE
11506 libtool_VERSION=2:0:1
11509 # Check for used threading-model
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
11511 $as_echo_n "checking for thread model used by GCC... " >&6; }
11512 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
11514 $as_echo "$target_thread_file" >&6; }
11516 # Get target configury.
11517 . ${srcdir}/configure.tgt
11518 if test -n "$UNSUPPORTED"; then
11519 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
11522 # Disable fallbacks to __sync routines from libgcc. Otherwise we'll
11523 # make silly decisions about what the cpu can do.
11524 CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS"
11526 # Check header files.
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11528 $as_echo_n "checking for ANSI C header files... " >&6; }
11529 if test "${ac_cv_header_stdc+set}" = set; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h. */
11534 #include <stdlib.h>
11535 #include <stdarg.h>
11536 #include <string.h>
11537 #include <float.h>
11540 main ()
11544 return 0;
11546 _ACEOF
11547 if ac_fn_c_try_compile "$LINENO"; then :
11548 ac_cv_header_stdc=yes
11549 else
11550 ac_cv_header_stdc=no
11552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11554 if test $ac_cv_header_stdc = yes; then
11555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h. */
11558 #include <string.h>
11560 _ACEOF
11561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11562 $EGREP "memchr" >/dev/null 2>&1; then :
11564 else
11565 ac_cv_header_stdc=no
11567 rm -f conftest*
11571 if test $ac_cv_header_stdc = yes; then
11572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h. */
11575 #include <stdlib.h>
11577 _ACEOF
11578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11579 $EGREP "free" >/dev/null 2>&1; then :
11581 else
11582 ac_cv_header_stdc=no
11584 rm -f conftest*
11588 if test $ac_cv_header_stdc = yes; then
11589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11590 if test "$cross_compiling" = yes; then :
11592 else
11593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11594 /* end confdefs.h. */
11595 #include <ctype.h>
11596 #include <stdlib.h>
11597 #if ((' ' & 0x0FF) == 0x020)
11598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11600 #else
11601 # define ISLOWER(c) \
11602 (('a' <= (c) && (c) <= 'i') \
11603 || ('j' <= (c) && (c) <= 'r') \
11604 || ('s' <= (c) && (c) <= 'z'))
11605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11606 #endif
11608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11610 main ()
11612 int i;
11613 for (i = 0; i < 256; i++)
11614 if (XOR (islower (i), ISLOWER (i))
11615 || toupper (i) != TOUPPER (i))
11616 return 2;
11617 return 0;
11619 _ACEOF
11620 if ac_fn_c_try_run "$LINENO"; then :
11622 else
11623 ac_cv_header_stdc=no
11625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11626 conftest.$ac_objext conftest.beam conftest.$ac_ext
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11632 $as_echo "$ac_cv_header_stdc" >&6; }
11633 if test $ac_cv_header_stdc = yes; then
11635 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
11640 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
11641 if test "${gcc_cv_header_string+set}" = set; then :
11642 $as_echo_n "(cached) " >&6
11643 else
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11646 #include <string.h>
11647 #include <strings.h>
11649 main ()
11653 return 0;
11655 _ACEOF
11656 if ac_fn_c_try_compile "$LINENO"; then :
11657 gcc_cv_header_string=yes
11658 else
11659 gcc_cv_header_string=no
11661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
11664 $as_echo "$gcc_cv_header_string" >&6; }
11665 if test $gcc_cv_header_string = yes; then
11667 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
11673 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11675 acx_cv_header_stdint=stddef.h
11676 acx_cv_header_stdint_kind="(already complete)"
11677 for i in stdint.h $inttype_headers; do
11678 unset ac_cv_type_uintptr_t
11679 unset ac_cv_type_uintmax_t
11680 unset ac_cv_type_int_least32_t
11681 unset ac_cv_type_int_fast32_t
11682 unset ac_cv_type_uint64_t
11683 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
11684 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
11685 #include <$i>
11687 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
11688 acx_cv_header_stdint=$i
11689 else
11690 continue
11693 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11694 #include <$i>
11696 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11698 else
11699 acx_cv_header_stdint_kind="(mostly complete)"
11702 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
11703 #include <$i>
11705 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
11707 else
11708 acx_cv_header_stdint_kind="(mostly complete)"
11711 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
11712 #include <$i>
11714 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
11716 else
11717 acx_cv_header_stdint_kind="(mostly complete)"
11720 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11721 #include <$i>
11723 if test "x$ac_cv_type_uint64_t" = x""yes; then :
11725 else
11726 acx_cv_header_stdint_kind="(lacks uint64_t)"
11729 break
11730 done
11731 if test "$acx_cv_header_stdint" = stddef.h; then
11732 acx_cv_header_stdint_kind="(lacks uintmax_t)"
11733 for i in stdint.h $inttype_headers; do
11734 unset ac_cv_type_uintptr_t
11735 unset ac_cv_type_uint32_t
11736 unset ac_cv_type_uint64_t
11737 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
11738 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
11739 #include <$i>
11741 if test "x$ac_cv_type_uint32_t" = x""yes; then :
11742 acx_cv_header_stdint=$i
11743 else
11744 continue
11747 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11748 #include <$i>
11750 if test "x$ac_cv_type_uint64_t" = x""yes; then :
11754 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11755 #include <$i>
11757 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11761 break
11762 done
11764 if test "$acx_cv_header_stdint" = stddef.h; then
11765 acx_cv_header_stdint_kind="(u_intXX_t style)"
11766 for i in sys/types.h $inttype_headers; do
11767 unset ac_cv_type_u_int32_t
11768 unset ac_cv_type_u_int64_t
11769 $as_echo_n "looking for u_intXX_t types in $i, " >&6
11770 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
11771 #include <$i>
11773 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
11774 acx_cv_header_stdint=$i
11775 else
11776 continue
11779 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
11780 #include <$i>
11782 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
11786 break
11787 done
11789 if test "$acx_cv_header_stdint" = stddef.h; then
11790 acx_cv_header_stdint_kind="(using manual detection)"
11793 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11794 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11795 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11796 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11797 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11799 # ----------------- Summarize what we found so far
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
11802 $as_echo_n "checking what to include in gstdint.h... " >&6; }
11804 case `$as_basename -- gstdint.h ||
11805 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
11806 Xgstdint.h : 'X\(//\)$' \| \
11807 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
11808 $as_echo X/gstdint.h |
11809 sed '/^.*\/\([^/][^/]*\)\/*$/{
11810 s//\1/
11813 /^X\/\(\/\/\)$/{
11814 s//\1/
11817 /^X\/\(\/\).*/{
11818 s//\1/
11821 s/.*/./; q'` in
11822 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11823 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11824 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11825 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11826 *) ;;
11827 esac
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11830 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
11832 # ----------------- done included file, check C basic types --------
11834 # Lacking an uintptr_t? Test size of void *
11835 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
11836 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
11837 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11838 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11839 # This bug is HP SR number 8606223364.
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11841 $as_echo_n "checking size of void *... " >&6; }
11842 if test "${ac_cv_sizeof_void_p+set}" = set; then :
11843 $as_echo_n "(cached) " >&6
11844 else
11845 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
11847 else
11848 if test "$ac_cv_type_void_p" = yes; then
11849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11851 { as_fn_set_status 77
11852 as_fn_error "cannot compute sizeof (void *)
11853 See \`config.log' for more details." "$LINENO" 5; }; }
11854 else
11855 ac_cv_sizeof_void_p=0
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
11861 $as_echo "$ac_cv_sizeof_void_p" >&6; }
11865 cat >>confdefs.h <<_ACEOF
11866 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11867 _ACEOF
11870 esac
11872 # Lacking an uint64_t? Test size of long
11873 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
11874 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
11875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11877 # This bug is HP SR number 8606223364.
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11879 $as_echo_n "checking size of long... " >&6; }
11880 if test "${ac_cv_sizeof_long+set}" = set; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
11885 else
11886 if test "$ac_cv_type_long" = yes; then
11887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11889 { as_fn_set_status 77
11890 as_fn_error "cannot compute sizeof (long)
11891 See \`config.log' for more details." "$LINENO" 5; }; }
11892 else
11893 ac_cv_sizeof_long=0
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11899 $as_echo "$ac_cv_sizeof_long" >&6; }
11903 cat >>confdefs.h <<_ACEOF
11904 #define SIZEOF_LONG $ac_cv_sizeof_long
11905 _ACEOF
11908 esac
11910 if test $acx_cv_header_stdint = stddef.h; then
11911 # Lacking a good header? Test size of everything and deduce all types.
11912 # The cast to long int works around a bug in the HP C Compiler
11913 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11914 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11915 # This bug is HP SR number 8606223364.
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11917 $as_echo_n "checking size of int... " >&6; }
11918 if test "${ac_cv_sizeof_int+set}" = set; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11923 else
11924 if test "$ac_cv_type_int" = yes; then
11925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11927 { as_fn_set_status 77
11928 as_fn_error "cannot compute sizeof (int)
11929 See \`config.log' for more details." "$LINENO" 5; }; }
11930 else
11931 ac_cv_sizeof_int=0
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11937 $as_echo "$ac_cv_sizeof_int" >&6; }
11941 cat >>confdefs.h <<_ACEOF
11942 #define SIZEOF_INT $ac_cv_sizeof_int
11943 _ACEOF
11946 # The cast to long int works around a bug in the HP C Compiler
11947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11949 # This bug is HP SR number 8606223364.
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
11951 $as_echo_n "checking size of short... " >&6; }
11952 if test "${ac_cv_sizeof_short+set}" = set; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
11957 else
11958 if test "$ac_cv_type_short" = yes; then
11959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11961 { as_fn_set_status 77
11962 as_fn_error "cannot compute sizeof (short)
11963 See \`config.log' for more details." "$LINENO" 5; }; }
11964 else
11965 ac_cv_sizeof_short=0
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
11971 $as_echo "$ac_cv_sizeof_short" >&6; }
11975 cat >>confdefs.h <<_ACEOF
11976 #define SIZEOF_SHORT $ac_cv_sizeof_short
11977 _ACEOF
11980 # The cast to long int works around a bug in the HP C Compiler
11981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11983 # This bug is HP SR number 8606223364.
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11985 $as_echo_n "checking size of char... " >&6; }
11986 if test "${ac_cv_sizeof_char+set}" = set; then :
11987 $as_echo_n "(cached) " >&6
11988 else
11989 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11991 else
11992 if test "$ac_cv_type_char" = yes; then
11993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11995 { as_fn_set_status 77
11996 as_fn_error "cannot compute sizeof (char)
11997 See \`config.log' for more details." "$LINENO" 5; }; }
11998 else
11999 ac_cv_sizeof_char=0
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12005 $as_echo "$ac_cv_sizeof_char" >&6; }
12009 cat >>confdefs.h <<_ACEOF
12010 #define SIZEOF_CHAR $ac_cv_sizeof_char
12011 _ACEOF
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12016 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
12017 case "$ac_cv_sizeof_char" in
12018 1) acx_cv_type_int8_t=char ;;
12019 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
12020 esac
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12022 $as_echo "$acx_cv_type_int8_t" >&6; }
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12025 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
12026 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12027 2:*) acx_cv_type_int16_t=int ;;
12028 *:2) acx_cv_type_int16_t=short ;;
12029 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
12030 esac
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12032 $as_echo "$acx_cv_type_int16_t" >&6; }
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12035 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
12036 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12037 4:*) acx_cv_type_int32_t=int ;;
12038 *:4) acx_cv_type_int32_t=long ;;
12039 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
12040 esac
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12042 $as_echo "$acx_cv_type_int32_t" >&6; }
12045 # These tests are here to make the output prettier
12047 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12048 case "$ac_cv_sizeof_long" in
12049 8) acx_cv_type_int64_t=long ;;
12050 esac
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12052 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12054 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12057 # Now we can use the above types
12059 if test "$ac_cv_type_uintptr_t" != yes; then
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12061 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12062 case $ac_cv_sizeof_void_p in
12063 2) acx_cv_type_intptr_t=int16_t ;;
12064 4) acx_cv_type_intptr_t=int32_t ;;
12065 8) acx_cv_type_intptr_t=int64_t ;;
12066 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12067 esac
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12069 $as_echo "$acx_cv_type_intptr_t" >&6; }
12072 # ----------------- done all checks, emit header -------------
12073 ac_config_commands="$ac_config_commands gstdint.h"
12077 for ac_header in fenv.h
12078 do :
12079 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
12080 if test "x$ac_cv_header_fenv_h" = x""yes; then :
12081 cat >>confdefs.h <<_ACEOF
12082 #define HAVE_FENV_H 1
12083 _ACEOF
12087 done
12090 # Check for common type sizes
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5
12093 $as_echo_n "checking for 1 byte integer... " >&6; }
12094 if test "${libat_cv_have_mode_QI+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12096 else
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098 /* end confdefs.h. */
12099 int x __attribute__((mode(QI)));
12100 _ACEOF
12101 if ac_fn_c_try_compile "$LINENO"; then :
12102 libat_cv_have_mode_QI=yes
12103 else
12104 libat_cv_have_mode_QI=no
12106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5
12109 $as_echo "$libat_cv_have_mode_QI" >&6; }
12111 yesno=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '`
12113 cat >>confdefs.h <<_ACEOF
12114 #define HAVE_INT1 $yesno
12115 _ACEOF
12118 if test x$libat_cv_have_mode_QI = xyes; then
12119 SIZES="$SIZES 1"
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5
12124 $as_echo_n "checking for 2 byte integer... " >&6; }
12125 if test "${libat_cv_have_mode_HI+set}" = set; then :
12126 $as_echo_n "(cached) " >&6
12127 else
12128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129 /* end confdefs.h. */
12130 int x __attribute__((mode(HI)));
12131 _ACEOF
12132 if ac_fn_c_try_compile "$LINENO"; then :
12133 libat_cv_have_mode_HI=yes
12134 else
12135 libat_cv_have_mode_HI=no
12137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5
12140 $as_echo "$libat_cv_have_mode_HI" >&6; }
12142 yesno=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '`
12144 cat >>confdefs.h <<_ACEOF
12145 #define HAVE_INT2 $yesno
12146 _ACEOF
12149 if test x$libat_cv_have_mode_HI = xyes; then
12150 SIZES="$SIZES 2"
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5
12155 $as_echo_n "checking for 4 byte integer... " >&6; }
12156 if test "${libat_cv_have_mode_SI+set}" = set; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12161 int x __attribute__((mode(SI)));
12162 _ACEOF
12163 if ac_fn_c_try_compile "$LINENO"; then :
12164 libat_cv_have_mode_SI=yes
12165 else
12166 libat_cv_have_mode_SI=no
12168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5
12171 $as_echo "$libat_cv_have_mode_SI" >&6; }
12173 yesno=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '`
12175 cat >>confdefs.h <<_ACEOF
12176 #define HAVE_INT4 $yesno
12177 _ACEOF
12180 if test x$libat_cv_have_mode_SI = xyes; then
12181 SIZES="$SIZES 4"
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5
12186 $as_echo_n "checking for 8 byte integer... " >&6; }
12187 if test "${libat_cv_have_mode_DI+set}" = set; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h. */
12192 int x __attribute__((mode(DI)));
12193 _ACEOF
12194 if ac_fn_c_try_compile "$LINENO"; then :
12195 libat_cv_have_mode_DI=yes
12196 else
12197 libat_cv_have_mode_DI=no
12199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5
12202 $as_echo "$libat_cv_have_mode_DI" >&6; }
12204 yesno=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '`
12206 cat >>confdefs.h <<_ACEOF
12207 #define HAVE_INT8 $yesno
12208 _ACEOF
12211 if test x$libat_cv_have_mode_DI = xyes; then
12212 SIZES="$SIZES 8"
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5
12217 $as_echo_n "checking for 16 byte integer... " >&6; }
12218 if test "${libat_cv_have_mode_TI+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h. */
12223 int x __attribute__((mode(TI)));
12224 _ACEOF
12225 if ac_fn_c_try_compile "$LINENO"; then :
12226 libat_cv_have_mode_TI=yes
12227 else
12228 libat_cv_have_mode_TI=no
12230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5
12233 $as_echo "$libat_cv_have_mode_TI" >&6; }
12235 yesno=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '`
12237 cat >>confdefs.h <<_ACEOF
12238 #define HAVE_INT16 $yesno
12239 _ACEOF
12242 if test x$libat_cv_have_mode_TI = xyes; then
12243 SIZES="$SIZES 16"
12248 # Check for compiler builtins of atomic operations.
12250 # Do link tests if possible, instead asm tests, limited to some platforms
12251 # see discussion in PR target/40134, PR libstdc++/40133 and the thread
12252 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
12253 atomic_builtins_link_tests=no
12254 if test x$gcc_no_link != xyes; then
12255 # Can do link tests. Limit to some tested platforms
12256 case "$host" in
12257 *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
12258 atomic_builtins_link_tests=yes
12260 esac
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5
12266 $as_echo_n "checking for __atomic_load/store for size 1... " >&6; }
12267 if test "${libat_cv_have_at_ldst_1+set}" = set; then :
12268 $as_echo_n "(cached) " >&6
12269 else
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12275 main ()
12277 typedef int T __attribute__((mode(QI)));
12278 T *x; volatile T sink; asm("" : "=g"(x));
12279 sink = __atomic_load_n(x, 0);
12280 __atomic_store_n(x, sink, 0);
12282 return 0;
12284 _ACEOF
12285 if test x$atomic_builtins_link_tests = xyes; then
12286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12287 (eval $ac_link) 2>&5
12288 ac_status=$?
12289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12290 test $ac_status = 0; }; then
12291 eval libat_cv_have_at_ldst_1=yes
12292 else
12293 eval libat_cv_have_at_ldst_1=no
12295 else
12296 old_CFLAGS="$CFLAGS"
12297 # Compile unoptimized.
12298 CFLAGS="$CFLAGS -O0 -S"
12299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12300 (eval $ac_compile) 2>&5
12301 ac_status=$?
12302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12303 test $ac_status = 0; }; then
12304 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12305 eval libat_cv_have_at_ldst_1=no
12306 else
12307 eval libat_cv_have_at_ldst_1=yes
12309 else
12310 eval libat_cv_have_at_ldst_1=no
12312 CFLAGS="$old_CFLAGS"
12314 rm -f conftest*
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5
12318 $as_echo "$libat_cv_have_at_ldst_1" >&6; }
12321 yesno=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '`
12323 cat >>confdefs.h <<_ACEOF
12324 #define HAVE_ATOMIC_LDST_1 $yesno
12325 _ACEOF
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5
12333 $as_echo_n "checking for __atomic_load/store for size 2... " >&6; }
12334 if test "${libat_cv_have_at_ldst_2+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12342 main ()
12344 typedef int T __attribute__((mode(HI)));
12345 T *x; volatile T sink; asm("" : "=g"(x));
12346 sink = __atomic_load_n(x, 0);
12347 __atomic_store_n(x, sink, 0);
12349 return 0;
12351 _ACEOF
12352 if test x$atomic_builtins_link_tests = xyes; then
12353 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12354 (eval $ac_link) 2>&5
12355 ac_status=$?
12356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12357 test $ac_status = 0; }; then
12358 eval libat_cv_have_at_ldst_2=yes
12359 else
12360 eval libat_cv_have_at_ldst_2=no
12362 else
12363 old_CFLAGS="$CFLAGS"
12364 # Compile unoptimized.
12365 CFLAGS="$CFLAGS -O0 -S"
12366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12367 (eval $ac_compile) 2>&5
12368 ac_status=$?
12369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12370 test $ac_status = 0; }; then
12371 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12372 eval libat_cv_have_at_ldst_2=no
12373 else
12374 eval libat_cv_have_at_ldst_2=yes
12376 else
12377 eval libat_cv_have_at_ldst_2=no
12379 CFLAGS="$old_CFLAGS"
12381 rm -f conftest*
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5
12385 $as_echo "$libat_cv_have_at_ldst_2" >&6; }
12388 yesno=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '`
12390 cat >>confdefs.h <<_ACEOF
12391 #define HAVE_ATOMIC_LDST_2 $yesno
12392 _ACEOF
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5
12400 $as_echo_n "checking for __atomic_load/store for size 4... " >&6; }
12401 if test "${libat_cv_have_at_ldst_4+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12403 else
12405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12406 /* end confdefs.h. */
12409 main ()
12411 typedef int T __attribute__((mode(SI)));
12412 T *x; volatile T sink; asm("" : "=g"(x));
12413 sink = __atomic_load_n(x, 0);
12414 __atomic_store_n(x, sink, 0);
12416 return 0;
12418 _ACEOF
12419 if test x$atomic_builtins_link_tests = xyes; then
12420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12421 (eval $ac_link) 2>&5
12422 ac_status=$?
12423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12424 test $ac_status = 0; }; then
12425 eval libat_cv_have_at_ldst_4=yes
12426 else
12427 eval libat_cv_have_at_ldst_4=no
12429 else
12430 old_CFLAGS="$CFLAGS"
12431 # Compile unoptimized.
12432 CFLAGS="$CFLAGS -O0 -S"
12433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12434 (eval $ac_compile) 2>&5
12435 ac_status=$?
12436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12437 test $ac_status = 0; }; then
12438 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12439 eval libat_cv_have_at_ldst_4=no
12440 else
12441 eval libat_cv_have_at_ldst_4=yes
12443 else
12444 eval libat_cv_have_at_ldst_4=no
12446 CFLAGS="$old_CFLAGS"
12448 rm -f conftest*
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5
12452 $as_echo "$libat_cv_have_at_ldst_4" >&6; }
12455 yesno=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '`
12457 cat >>confdefs.h <<_ACEOF
12458 #define HAVE_ATOMIC_LDST_4 $yesno
12459 _ACEOF
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5
12467 $as_echo_n "checking for __atomic_load/store for size 8... " >&6; }
12468 if test "${libat_cv_have_at_ldst_8+set}" = set; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12473 /* end confdefs.h. */
12476 main ()
12478 typedef int T __attribute__((mode(DI)));
12479 T *x; volatile T sink; asm("" : "=g"(x));
12480 sink = __atomic_load_n(x, 0);
12481 __atomic_store_n(x, sink, 0);
12483 return 0;
12485 _ACEOF
12486 if test x$atomic_builtins_link_tests = xyes; then
12487 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12488 (eval $ac_link) 2>&5
12489 ac_status=$?
12490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12491 test $ac_status = 0; }; then
12492 eval libat_cv_have_at_ldst_8=yes
12493 else
12494 eval libat_cv_have_at_ldst_8=no
12496 else
12497 old_CFLAGS="$CFLAGS"
12498 # Compile unoptimized.
12499 CFLAGS="$CFLAGS -O0 -S"
12500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12501 (eval $ac_compile) 2>&5
12502 ac_status=$?
12503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12504 test $ac_status = 0; }; then
12505 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12506 eval libat_cv_have_at_ldst_8=no
12507 else
12508 eval libat_cv_have_at_ldst_8=yes
12510 else
12511 eval libat_cv_have_at_ldst_8=no
12513 CFLAGS="$old_CFLAGS"
12515 rm -f conftest*
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5
12519 $as_echo "$libat_cv_have_at_ldst_8" >&6; }
12522 yesno=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '`
12524 cat >>confdefs.h <<_ACEOF
12525 #define HAVE_ATOMIC_LDST_8 $yesno
12526 _ACEOF
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5
12534 $as_echo_n "checking for __atomic_load/store for size 16... " >&6; }
12535 if test "${libat_cv_have_at_ldst_16+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
12537 else
12539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12540 /* end confdefs.h. */
12543 main ()
12545 typedef int T __attribute__((mode(TI)));
12546 T *x; volatile T sink; asm("" : "=g"(x));
12547 sink = __atomic_load_n(x, 0);
12548 __atomic_store_n(x, sink, 0);
12550 return 0;
12552 _ACEOF
12553 if test x$atomic_builtins_link_tests = xyes; then
12554 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12555 (eval $ac_link) 2>&5
12556 ac_status=$?
12557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12558 test $ac_status = 0; }; then
12559 eval libat_cv_have_at_ldst_16=yes
12560 else
12561 eval libat_cv_have_at_ldst_16=no
12563 else
12564 old_CFLAGS="$CFLAGS"
12565 # Compile unoptimized.
12566 CFLAGS="$CFLAGS -O0 -S"
12567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12568 (eval $ac_compile) 2>&5
12569 ac_status=$?
12570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12571 test $ac_status = 0; }; then
12572 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12573 eval libat_cv_have_at_ldst_16=no
12574 else
12575 eval libat_cv_have_at_ldst_16=yes
12577 else
12578 eval libat_cv_have_at_ldst_16=no
12580 CFLAGS="$old_CFLAGS"
12582 rm -f conftest*
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5
12586 $as_echo "$libat_cv_have_at_ldst_16" >&6; }
12589 yesno=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '`
12591 cat >>confdefs.h <<_ACEOF
12592 #define HAVE_ATOMIC_LDST_16 $yesno
12593 _ACEOF
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5
12602 $as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; }
12603 if test "${libat_cv_have_at_tas_1+set}" = set; then :
12604 $as_echo_n "(cached) " >&6
12605 else
12607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h. */
12611 main ()
12613 typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12614 __atomic_test_and_set(x, 0);
12616 return 0;
12618 _ACEOF
12619 if test x$atomic_builtins_link_tests = xyes; then
12620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12621 (eval $ac_link) 2>&5
12622 ac_status=$?
12623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12624 test $ac_status = 0; }; then
12625 eval libat_cv_have_at_tas_1=yes
12626 else
12627 eval libat_cv_have_at_tas_1=no
12629 else
12630 old_CFLAGS="$CFLAGS"
12631 # Compile unoptimized.
12632 CFLAGS="$CFLAGS -O0 -S"
12633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12634 (eval $ac_compile) 2>&5
12635 ac_status=$?
12636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12637 test $ac_status = 0; }; then
12638 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12639 eval libat_cv_have_at_tas_1=no
12640 else
12641 eval libat_cv_have_at_tas_1=yes
12643 else
12644 eval libat_cv_have_at_tas_1=no
12646 CFLAGS="$old_CFLAGS"
12648 rm -f conftest*
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5
12652 $as_echo "$libat_cv_have_at_tas_1" >&6; }
12655 yesno=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '`
12657 cat >>confdefs.h <<_ACEOF
12658 #define HAVE_ATOMIC_TAS_1 $yesno
12659 _ACEOF
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5
12667 $as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; }
12668 if test "${libat_cv_have_at_tas_2+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
12670 else
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12676 main ()
12678 typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
12679 __atomic_test_and_set(x, 0);
12681 return 0;
12683 _ACEOF
12684 if test x$atomic_builtins_link_tests = xyes; then
12685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12686 (eval $ac_link) 2>&5
12687 ac_status=$?
12688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12689 test $ac_status = 0; }; then
12690 eval libat_cv_have_at_tas_2=yes
12691 else
12692 eval libat_cv_have_at_tas_2=no
12694 else
12695 old_CFLAGS="$CFLAGS"
12696 # Compile unoptimized.
12697 CFLAGS="$CFLAGS -O0 -S"
12698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12699 (eval $ac_compile) 2>&5
12700 ac_status=$?
12701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12702 test $ac_status = 0; }; then
12703 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12704 eval libat_cv_have_at_tas_2=no
12705 else
12706 eval libat_cv_have_at_tas_2=yes
12708 else
12709 eval libat_cv_have_at_tas_2=no
12711 CFLAGS="$old_CFLAGS"
12713 rm -f conftest*
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5
12717 $as_echo "$libat_cv_have_at_tas_2" >&6; }
12720 yesno=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '`
12722 cat >>confdefs.h <<_ACEOF
12723 #define HAVE_ATOMIC_TAS_2 $yesno
12724 _ACEOF
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5
12732 $as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; }
12733 if test "${libat_cv_have_at_tas_4+set}" = set; then :
12734 $as_echo_n "(cached) " >&6
12735 else
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h. */
12741 main ()
12743 typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
12744 __atomic_test_and_set(x, 0);
12746 return 0;
12748 _ACEOF
12749 if test x$atomic_builtins_link_tests = xyes; then
12750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12751 (eval $ac_link) 2>&5
12752 ac_status=$?
12753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12754 test $ac_status = 0; }; then
12755 eval libat_cv_have_at_tas_4=yes
12756 else
12757 eval libat_cv_have_at_tas_4=no
12759 else
12760 old_CFLAGS="$CFLAGS"
12761 # Compile unoptimized.
12762 CFLAGS="$CFLAGS -O0 -S"
12763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12764 (eval $ac_compile) 2>&5
12765 ac_status=$?
12766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12767 test $ac_status = 0; }; then
12768 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12769 eval libat_cv_have_at_tas_4=no
12770 else
12771 eval libat_cv_have_at_tas_4=yes
12773 else
12774 eval libat_cv_have_at_tas_4=no
12776 CFLAGS="$old_CFLAGS"
12778 rm -f conftest*
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5
12782 $as_echo "$libat_cv_have_at_tas_4" >&6; }
12785 yesno=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '`
12787 cat >>confdefs.h <<_ACEOF
12788 #define HAVE_ATOMIC_TAS_4 $yesno
12789 _ACEOF
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5
12797 $as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; }
12798 if test "${libat_cv_have_at_tas_8+set}" = set; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12806 main ()
12808 typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
12809 __atomic_test_and_set(x, 0);
12811 return 0;
12813 _ACEOF
12814 if test x$atomic_builtins_link_tests = xyes; then
12815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12816 (eval $ac_link) 2>&5
12817 ac_status=$?
12818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12819 test $ac_status = 0; }; then
12820 eval libat_cv_have_at_tas_8=yes
12821 else
12822 eval libat_cv_have_at_tas_8=no
12824 else
12825 old_CFLAGS="$CFLAGS"
12826 # Compile unoptimized.
12827 CFLAGS="$CFLAGS -O0 -S"
12828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12829 (eval $ac_compile) 2>&5
12830 ac_status=$?
12831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12832 test $ac_status = 0; }; then
12833 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12834 eval libat_cv_have_at_tas_8=no
12835 else
12836 eval libat_cv_have_at_tas_8=yes
12838 else
12839 eval libat_cv_have_at_tas_8=no
12841 CFLAGS="$old_CFLAGS"
12843 rm -f conftest*
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5
12847 $as_echo "$libat_cv_have_at_tas_8" >&6; }
12850 yesno=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '`
12852 cat >>confdefs.h <<_ACEOF
12853 #define HAVE_ATOMIC_TAS_8 $yesno
12854 _ACEOF
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5
12862 $as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; }
12863 if test "${libat_cv_have_at_tas_16+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
12865 else
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12871 main ()
12873 typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
12874 __atomic_test_and_set(x, 0);
12876 return 0;
12878 _ACEOF
12879 if test x$atomic_builtins_link_tests = xyes; then
12880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12881 (eval $ac_link) 2>&5
12882 ac_status=$?
12883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12884 test $ac_status = 0; }; then
12885 eval libat_cv_have_at_tas_16=yes
12886 else
12887 eval libat_cv_have_at_tas_16=no
12889 else
12890 old_CFLAGS="$CFLAGS"
12891 # Compile unoptimized.
12892 CFLAGS="$CFLAGS -O0 -S"
12893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12894 (eval $ac_compile) 2>&5
12895 ac_status=$?
12896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12897 test $ac_status = 0; }; then
12898 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12899 eval libat_cv_have_at_tas_16=no
12900 else
12901 eval libat_cv_have_at_tas_16=yes
12903 else
12904 eval libat_cv_have_at_tas_16=no
12906 CFLAGS="$old_CFLAGS"
12908 rm -f conftest*
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5
12912 $as_echo "$libat_cv_have_at_tas_16" >&6; }
12915 yesno=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '`
12917 cat >>confdefs.h <<_ACEOF
12918 #define HAVE_ATOMIC_TAS_16 $yesno
12919 _ACEOF
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5
12928 $as_echo_n "checking for __atomic_exchange for size 1... " >&6; }
12929 if test "${libat_cv_have_at_exch_1+set}" = set; then :
12930 $as_echo_n "(cached) " >&6
12931 else
12933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12937 main ()
12939 typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12940 __atomic_exchange_n(x, 0, 0);
12942 return 0;
12944 _ACEOF
12945 if test x$atomic_builtins_link_tests = xyes; then
12946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12947 (eval $ac_link) 2>&5
12948 ac_status=$?
12949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12950 test $ac_status = 0; }; then
12951 eval libat_cv_have_at_exch_1=yes
12952 else
12953 eval libat_cv_have_at_exch_1=no
12955 else
12956 old_CFLAGS="$CFLAGS"
12957 # Compile unoptimized.
12958 CFLAGS="$CFLAGS -O0 -S"
12959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12960 (eval $ac_compile) 2>&5
12961 ac_status=$?
12962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12963 test $ac_status = 0; }; then
12964 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12965 eval libat_cv_have_at_exch_1=no
12966 else
12967 eval libat_cv_have_at_exch_1=yes
12969 else
12970 eval libat_cv_have_at_exch_1=no
12972 CFLAGS="$old_CFLAGS"
12974 rm -f conftest*
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5
12978 $as_echo "$libat_cv_have_at_exch_1" >&6; }
12981 yesno=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '`
12983 cat >>confdefs.h <<_ACEOF
12984 #define HAVE_ATOMIC_EXCHANGE_1 $yesno
12985 _ACEOF
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5
12993 $as_echo_n "checking for __atomic_exchange for size 2... " >&6; }
12994 if test "${libat_cv_have_at_exch_2+set}" = set; then :
12995 $as_echo_n "(cached) " >&6
12996 else
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13002 main ()
13004 typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
13005 __atomic_exchange_n(x, 0, 0);
13007 return 0;
13009 _ACEOF
13010 if test x$atomic_builtins_link_tests = xyes; then
13011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13012 (eval $ac_link) 2>&5
13013 ac_status=$?
13014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13015 test $ac_status = 0; }; then
13016 eval libat_cv_have_at_exch_2=yes
13017 else
13018 eval libat_cv_have_at_exch_2=no
13020 else
13021 old_CFLAGS="$CFLAGS"
13022 # Compile unoptimized.
13023 CFLAGS="$CFLAGS -O0 -S"
13024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13025 (eval $ac_compile) 2>&5
13026 ac_status=$?
13027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13028 test $ac_status = 0; }; then
13029 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13030 eval libat_cv_have_at_exch_2=no
13031 else
13032 eval libat_cv_have_at_exch_2=yes
13034 else
13035 eval libat_cv_have_at_exch_2=no
13037 CFLAGS="$old_CFLAGS"
13039 rm -f conftest*
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5
13043 $as_echo "$libat_cv_have_at_exch_2" >&6; }
13046 yesno=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '`
13048 cat >>confdefs.h <<_ACEOF
13049 #define HAVE_ATOMIC_EXCHANGE_2 $yesno
13050 _ACEOF
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5
13058 $as_echo_n "checking for __atomic_exchange for size 4... " >&6; }
13059 if test "${libat_cv_have_at_exch_4+set}" = set; then :
13060 $as_echo_n "(cached) " >&6
13061 else
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13067 main ()
13069 typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13070 __atomic_exchange_n(x, 0, 0);
13072 return 0;
13074 _ACEOF
13075 if test x$atomic_builtins_link_tests = xyes; then
13076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13077 (eval $ac_link) 2>&5
13078 ac_status=$?
13079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13080 test $ac_status = 0; }; then
13081 eval libat_cv_have_at_exch_4=yes
13082 else
13083 eval libat_cv_have_at_exch_4=no
13085 else
13086 old_CFLAGS="$CFLAGS"
13087 # Compile unoptimized.
13088 CFLAGS="$CFLAGS -O0 -S"
13089 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13090 (eval $ac_compile) 2>&5
13091 ac_status=$?
13092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13093 test $ac_status = 0; }; then
13094 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13095 eval libat_cv_have_at_exch_4=no
13096 else
13097 eval libat_cv_have_at_exch_4=yes
13099 else
13100 eval libat_cv_have_at_exch_4=no
13102 CFLAGS="$old_CFLAGS"
13104 rm -f conftest*
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5
13108 $as_echo "$libat_cv_have_at_exch_4" >&6; }
13111 yesno=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '`
13113 cat >>confdefs.h <<_ACEOF
13114 #define HAVE_ATOMIC_EXCHANGE_4 $yesno
13115 _ACEOF
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5
13123 $as_echo_n "checking for __atomic_exchange for size 8... " >&6; }
13124 if test "${libat_cv_have_at_exch_8+set}" = set; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129 /* end confdefs.h. */
13132 main ()
13134 typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13135 __atomic_exchange_n(x, 0, 0);
13137 return 0;
13139 _ACEOF
13140 if test x$atomic_builtins_link_tests = xyes; then
13141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13142 (eval $ac_link) 2>&5
13143 ac_status=$?
13144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13145 test $ac_status = 0; }; then
13146 eval libat_cv_have_at_exch_8=yes
13147 else
13148 eval libat_cv_have_at_exch_8=no
13150 else
13151 old_CFLAGS="$CFLAGS"
13152 # Compile unoptimized.
13153 CFLAGS="$CFLAGS -O0 -S"
13154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13155 (eval $ac_compile) 2>&5
13156 ac_status=$?
13157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13158 test $ac_status = 0; }; then
13159 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13160 eval libat_cv_have_at_exch_8=no
13161 else
13162 eval libat_cv_have_at_exch_8=yes
13164 else
13165 eval libat_cv_have_at_exch_8=no
13167 CFLAGS="$old_CFLAGS"
13169 rm -f conftest*
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5
13173 $as_echo "$libat_cv_have_at_exch_8" >&6; }
13176 yesno=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '`
13178 cat >>confdefs.h <<_ACEOF
13179 #define HAVE_ATOMIC_EXCHANGE_8 $yesno
13180 _ACEOF
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5
13188 $as_echo_n "checking for __atomic_exchange for size 16... " >&6; }
13189 if test "${libat_cv_have_at_exch_16+set}" = set; then :
13190 $as_echo_n "(cached) " >&6
13191 else
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13197 main ()
13199 typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13200 __atomic_exchange_n(x, 0, 0);
13202 return 0;
13204 _ACEOF
13205 if test x$atomic_builtins_link_tests = xyes; then
13206 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13207 (eval $ac_link) 2>&5
13208 ac_status=$?
13209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13210 test $ac_status = 0; }; then
13211 eval libat_cv_have_at_exch_16=yes
13212 else
13213 eval libat_cv_have_at_exch_16=no
13215 else
13216 old_CFLAGS="$CFLAGS"
13217 # Compile unoptimized.
13218 CFLAGS="$CFLAGS -O0 -S"
13219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13220 (eval $ac_compile) 2>&5
13221 ac_status=$?
13222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13223 test $ac_status = 0; }; then
13224 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13225 eval libat_cv_have_at_exch_16=no
13226 else
13227 eval libat_cv_have_at_exch_16=yes
13229 else
13230 eval libat_cv_have_at_exch_16=no
13232 CFLAGS="$old_CFLAGS"
13234 rm -f conftest*
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5
13238 $as_echo "$libat_cv_have_at_exch_16" >&6; }
13241 yesno=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '`
13243 cat >>confdefs.h <<_ACEOF
13244 #define HAVE_ATOMIC_EXCHANGE_16 $yesno
13245 _ACEOF
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5
13254 $as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; }
13255 if test "${libat_cv_have_at_cas_1+set}" = set; then :
13256 $as_echo_n "(cached) " >&6
13257 else
13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13263 main ()
13265 typedef int T __attribute__((mode(QI))); T *x, *y;
13266 asm("" : "=g"(x), "=g"(y));
13267 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13269 return 0;
13271 _ACEOF
13272 if test x$atomic_builtins_link_tests = xyes; then
13273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13274 (eval $ac_link) 2>&5
13275 ac_status=$?
13276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13277 test $ac_status = 0; }; then
13278 eval libat_cv_have_at_cas_1=yes
13279 else
13280 eval libat_cv_have_at_cas_1=no
13282 else
13283 old_CFLAGS="$CFLAGS"
13284 # Compile unoptimized.
13285 CFLAGS="$CFLAGS -O0 -S"
13286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13287 (eval $ac_compile) 2>&5
13288 ac_status=$?
13289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13290 test $ac_status = 0; }; then
13291 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13292 eval libat_cv_have_at_cas_1=no
13293 else
13294 eval libat_cv_have_at_cas_1=yes
13296 else
13297 eval libat_cv_have_at_cas_1=no
13299 CFLAGS="$old_CFLAGS"
13301 rm -f conftest*
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5
13305 $as_echo "$libat_cv_have_at_cas_1" >&6; }
13308 yesno=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '`
13310 cat >>confdefs.h <<_ACEOF
13311 #define HAVE_ATOMIC_CAS_1 $yesno
13312 _ACEOF
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5
13320 $as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; }
13321 if test "${libat_cv_have_at_cas_2+set}" = set; then :
13322 $as_echo_n "(cached) " >&6
13323 else
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13329 main ()
13331 typedef int T __attribute__((mode(HI))); T *x, *y;
13332 asm("" : "=g"(x), "=g"(y));
13333 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13335 return 0;
13337 _ACEOF
13338 if test x$atomic_builtins_link_tests = xyes; then
13339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13340 (eval $ac_link) 2>&5
13341 ac_status=$?
13342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13343 test $ac_status = 0; }; then
13344 eval libat_cv_have_at_cas_2=yes
13345 else
13346 eval libat_cv_have_at_cas_2=no
13348 else
13349 old_CFLAGS="$CFLAGS"
13350 # Compile unoptimized.
13351 CFLAGS="$CFLAGS -O0 -S"
13352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13353 (eval $ac_compile) 2>&5
13354 ac_status=$?
13355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13356 test $ac_status = 0; }; then
13357 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13358 eval libat_cv_have_at_cas_2=no
13359 else
13360 eval libat_cv_have_at_cas_2=yes
13362 else
13363 eval libat_cv_have_at_cas_2=no
13365 CFLAGS="$old_CFLAGS"
13367 rm -f conftest*
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5
13371 $as_echo "$libat_cv_have_at_cas_2" >&6; }
13374 yesno=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '`
13376 cat >>confdefs.h <<_ACEOF
13377 #define HAVE_ATOMIC_CAS_2 $yesno
13378 _ACEOF
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5
13386 $as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; }
13387 if test "${libat_cv_have_at_cas_4+set}" = set; then :
13388 $as_echo_n "(cached) " >&6
13389 else
13391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13392 /* end confdefs.h. */
13395 main ()
13397 typedef int T __attribute__((mode(SI))); T *x, *y;
13398 asm("" : "=g"(x), "=g"(y));
13399 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13401 return 0;
13403 _ACEOF
13404 if test x$atomic_builtins_link_tests = xyes; then
13405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13406 (eval $ac_link) 2>&5
13407 ac_status=$?
13408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13409 test $ac_status = 0; }; then
13410 eval libat_cv_have_at_cas_4=yes
13411 else
13412 eval libat_cv_have_at_cas_4=no
13414 else
13415 old_CFLAGS="$CFLAGS"
13416 # Compile unoptimized.
13417 CFLAGS="$CFLAGS -O0 -S"
13418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13419 (eval $ac_compile) 2>&5
13420 ac_status=$?
13421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13422 test $ac_status = 0; }; then
13423 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13424 eval libat_cv_have_at_cas_4=no
13425 else
13426 eval libat_cv_have_at_cas_4=yes
13428 else
13429 eval libat_cv_have_at_cas_4=no
13431 CFLAGS="$old_CFLAGS"
13433 rm -f conftest*
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5
13437 $as_echo "$libat_cv_have_at_cas_4" >&6; }
13440 yesno=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '`
13442 cat >>confdefs.h <<_ACEOF
13443 #define HAVE_ATOMIC_CAS_4 $yesno
13444 _ACEOF
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5
13452 $as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; }
13453 if test "${libat_cv_have_at_cas_8+set}" = set; then :
13454 $as_echo_n "(cached) " >&6
13455 else
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13461 main ()
13463 typedef int T __attribute__((mode(DI))); T *x, *y;
13464 asm("" : "=g"(x), "=g"(y));
13465 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13467 return 0;
13469 _ACEOF
13470 if test x$atomic_builtins_link_tests = xyes; then
13471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13472 (eval $ac_link) 2>&5
13473 ac_status=$?
13474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13475 test $ac_status = 0; }; then
13476 eval libat_cv_have_at_cas_8=yes
13477 else
13478 eval libat_cv_have_at_cas_8=no
13480 else
13481 old_CFLAGS="$CFLAGS"
13482 # Compile unoptimized.
13483 CFLAGS="$CFLAGS -O0 -S"
13484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13485 (eval $ac_compile) 2>&5
13486 ac_status=$?
13487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13488 test $ac_status = 0; }; then
13489 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13490 eval libat_cv_have_at_cas_8=no
13491 else
13492 eval libat_cv_have_at_cas_8=yes
13494 else
13495 eval libat_cv_have_at_cas_8=no
13497 CFLAGS="$old_CFLAGS"
13499 rm -f conftest*
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5
13503 $as_echo "$libat_cv_have_at_cas_8" >&6; }
13506 yesno=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '`
13508 cat >>confdefs.h <<_ACEOF
13509 #define HAVE_ATOMIC_CAS_8 $yesno
13510 _ACEOF
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5
13518 $as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; }
13519 if test "${libat_cv_have_at_cas_16+set}" = set; then :
13520 $as_echo_n "(cached) " >&6
13521 else
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13527 main ()
13529 typedef int T __attribute__((mode(TI))); T *x, *y;
13530 asm("" : "=g"(x), "=g"(y));
13531 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13533 return 0;
13535 _ACEOF
13536 if test x$atomic_builtins_link_tests = xyes; then
13537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13538 (eval $ac_link) 2>&5
13539 ac_status=$?
13540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13541 test $ac_status = 0; }; then
13542 eval libat_cv_have_at_cas_16=yes
13543 else
13544 eval libat_cv_have_at_cas_16=no
13546 else
13547 old_CFLAGS="$CFLAGS"
13548 # Compile unoptimized.
13549 CFLAGS="$CFLAGS -O0 -S"
13550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13551 (eval $ac_compile) 2>&5
13552 ac_status=$?
13553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13554 test $ac_status = 0; }; then
13555 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13556 eval libat_cv_have_at_cas_16=no
13557 else
13558 eval libat_cv_have_at_cas_16=yes
13560 else
13561 eval libat_cv_have_at_cas_16=no
13563 CFLAGS="$old_CFLAGS"
13565 rm -f conftest*
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5
13569 $as_echo "$libat_cv_have_at_cas_16" >&6; }
13572 yesno=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '`
13574 cat >>confdefs.h <<_ACEOF
13575 #define HAVE_ATOMIC_CAS_16 $yesno
13576 _ACEOF
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5
13585 $as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; }
13586 if test "${libat_cv_have_at_fadd_1+set}" = set; then :
13587 $as_echo_n "(cached) " >&6
13588 else
13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13594 main ()
13596 typedef int T __attribute__((mode(QI))); T *x, y;
13597 asm("" : "=g"(x), "=g"(y));
13598 __atomic_fetch_add (x, y, 0);
13599 __atomic_add_fetch (x, y, 0);
13601 return 0;
13603 _ACEOF
13604 if test x$atomic_builtins_link_tests = xyes; then
13605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13606 (eval $ac_link) 2>&5
13607 ac_status=$?
13608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13609 test $ac_status = 0; }; then
13610 eval libat_cv_have_at_fadd_1=yes
13611 else
13612 eval libat_cv_have_at_fadd_1=no
13614 else
13615 old_CFLAGS="$CFLAGS"
13616 # Compile unoptimized.
13617 CFLAGS="$CFLAGS -O0 -S"
13618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13619 (eval $ac_compile) 2>&5
13620 ac_status=$?
13621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13622 test $ac_status = 0; }; then
13623 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13624 eval libat_cv_have_at_fadd_1=no
13625 else
13626 eval libat_cv_have_at_fadd_1=yes
13628 else
13629 eval libat_cv_have_at_fadd_1=no
13631 CFLAGS="$old_CFLAGS"
13633 rm -f conftest*
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5
13637 $as_echo "$libat_cv_have_at_fadd_1" >&6; }
13640 yesno=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '`
13642 cat >>confdefs.h <<_ACEOF
13643 #define HAVE_ATOMIC_FETCH_ADD_1 $yesno
13644 _ACEOF
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5
13652 $as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; }
13653 if test "${libat_cv_have_at_fadd_2+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h. */
13661 main ()
13663 typedef int T __attribute__((mode(HI))); T *x, y;
13664 asm("" : "=g"(x), "=g"(y));
13665 __atomic_fetch_add (x, y, 0);
13666 __atomic_add_fetch (x, y, 0);
13668 return 0;
13670 _ACEOF
13671 if test x$atomic_builtins_link_tests = xyes; then
13672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13673 (eval $ac_link) 2>&5
13674 ac_status=$?
13675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13676 test $ac_status = 0; }; then
13677 eval libat_cv_have_at_fadd_2=yes
13678 else
13679 eval libat_cv_have_at_fadd_2=no
13681 else
13682 old_CFLAGS="$CFLAGS"
13683 # Compile unoptimized.
13684 CFLAGS="$CFLAGS -O0 -S"
13685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13686 (eval $ac_compile) 2>&5
13687 ac_status=$?
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13689 test $ac_status = 0; }; then
13690 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13691 eval libat_cv_have_at_fadd_2=no
13692 else
13693 eval libat_cv_have_at_fadd_2=yes
13695 else
13696 eval libat_cv_have_at_fadd_2=no
13698 CFLAGS="$old_CFLAGS"
13700 rm -f conftest*
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5
13704 $as_echo "$libat_cv_have_at_fadd_2" >&6; }
13707 yesno=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '`
13709 cat >>confdefs.h <<_ACEOF
13710 #define HAVE_ATOMIC_FETCH_ADD_2 $yesno
13711 _ACEOF
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5
13719 $as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; }
13720 if test "${libat_cv_have_at_fadd_4+set}" = set; then :
13721 $as_echo_n "(cached) " >&6
13722 else
13724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h. */
13728 main ()
13730 typedef int T __attribute__((mode(SI))); T *x, y;
13731 asm("" : "=g"(x), "=g"(y));
13732 __atomic_fetch_add (x, y, 0);
13733 __atomic_add_fetch (x, y, 0);
13735 return 0;
13737 _ACEOF
13738 if test x$atomic_builtins_link_tests = xyes; then
13739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13740 (eval $ac_link) 2>&5
13741 ac_status=$?
13742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13743 test $ac_status = 0; }; then
13744 eval libat_cv_have_at_fadd_4=yes
13745 else
13746 eval libat_cv_have_at_fadd_4=no
13748 else
13749 old_CFLAGS="$CFLAGS"
13750 # Compile unoptimized.
13751 CFLAGS="$CFLAGS -O0 -S"
13752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13753 (eval $ac_compile) 2>&5
13754 ac_status=$?
13755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13756 test $ac_status = 0; }; then
13757 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13758 eval libat_cv_have_at_fadd_4=no
13759 else
13760 eval libat_cv_have_at_fadd_4=yes
13762 else
13763 eval libat_cv_have_at_fadd_4=no
13765 CFLAGS="$old_CFLAGS"
13767 rm -f conftest*
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5
13771 $as_echo "$libat_cv_have_at_fadd_4" >&6; }
13774 yesno=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '`
13776 cat >>confdefs.h <<_ACEOF
13777 #define HAVE_ATOMIC_FETCH_ADD_4 $yesno
13778 _ACEOF
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5
13786 $as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; }
13787 if test "${libat_cv_have_at_fadd_8+set}" = set; then :
13788 $as_echo_n "(cached) " >&6
13789 else
13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13795 main ()
13797 typedef int T __attribute__((mode(DI))); T *x, y;
13798 asm("" : "=g"(x), "=g"(y));
13799 __atomic_fetch_add (x, y, 0);
13800 __atomic_add_fetch (x, y, 0);
13802 return 0;
13804 _ACEOF
13805 if test x$atomic_builtins_link_tests = xyes; then
13806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13807 (eval $ac_link) 2>&5
13808 ac_status=$?
13809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13810 test $ac_status = 0; }; then
13811 eval libat_cv_have_at_fadd_8=yes
13812 else
13813 eval libat_cv_have_at_fadd_8=no
13815 else
13816 old_CFLAGS="$CFLAGS"
13817 # Compile unoptimized.
13818 CFLAGS="$CFLAGS -O0 -S"
13819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13820 (eval $ac_compile) 2>&5
13821 ac_status=$?
13822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13823 test $ac_status = 0; }; then
13824 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13825 eval libat_cv_have_at_fadd_8=no
13826 else
13827 eval libat_cv_have_at_fadd_8=yes
13829 else
13830 eval libat_cv_have_at_fadd_8=no
13832 CFLAGS="$old_CFLAGS"
13834 rm -f conftest*
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5
13838 $as_echo "$libat_cv_have_at_fadd_8" >&6; }
13841 yesno=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '`
13843 cat >>confdefs.h <<_ACEOF
13844 #define HAVE_ATOMIC_FETCH_ADD_8 $yesno
13845 _ACEOF
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5
13853 $as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; }
13854 if test "${libat_cv_have_at_fadd_16+set}" = set; then :
13855 $as_echo_n "(cached) " >&6
13856 else
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13862 main ()
13864 typedef int T __attribute__((mode(TI))); T *x, y;
13865 asm("" : "=g"(x), "=g"(y));
13866 __atomic_fetch_add (x, y, 0);
13867 __atomic_add_fetch (x, y, 0);
13869 return 0;
13871 _ACEOF
13872 if test x$atomic_builtins_link_tests = xyes; then
13873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13874 (eval $ac_link) 2>&5
13875 ac_status=$?
13876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13877 test $ac_status = 0; }; then
13878 eval libat_cv_have_at_fadd_16=yes
13879 else
13880 eval libat_cv_have_at_fadd_16=no
13882 else
13883 old_CFLAGS="$CFLAGS"
13884 # Compile unoptimized.
13885 CFLAGS="$CFLAGS -O0 -S"
13886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13887 (eval $ac_compile) 2>&5
13888 ac_status=$?
13889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13890 test $ac_status = 0; }; then
13891 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13892 eval libat_cv_have_at_fadd_16=no
13893 else
13894 eval libat_cv_have_at_fadd_16=yes
13896 else
13897 eval libat_cv_have_at_fadd_16=no
13899 CFLAGS="$old_CFLAGS"
13901 rm -f conftest*
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5
13905 $as_echo "$libat_cv_have_at_fadd_16" >&6; }
13908 yesno=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '`
13910 cat >>confdefs.h <<_ACEOF
13911 #define HAVE_ATOMIC_FETCH_ADD_16 $yesno
13912 _ACEOF
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5
13921 $as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; }
13922 if test "${libat_cv_have_at_fop_1+set}" = set; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h. */
13930 main ()
13932 typedef int T __attribute__((mode(QI))); T *x, y;
13933 asm("" : "=g"(x), "=g"(y));
13934 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
13935 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
13936 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
13937 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
13938 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
13939 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
13941 return 0;
13943 _ACEOF
13944 if test x$atomic_builtins_link_tests = xyes; then
13945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13946 (eval $ac_link) 2>&5
13947 ac_status=$?
13948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13949 test $ac_status = 0; }; then
13950 eval libat_cv_have_at_fop_1=yes
13951 else
13952 eval libat_cv_have_at_fop_1=no
13954 else
13955 old_CFLAGS="$CFLAGS"
13956 # Compile unoptimized.
13957 CFLAGS="$CFLAGS -O0 -S"
13958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13959 (eval $ac_compile) 2>&5
13960 ac_status=$?
13961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13962 test $ac_status = 0; }; then
13963 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13964 eval libat_cv_have_at_fop_1=no
13965 else
13966 eval libat_cv_have_at_fop_1=yes
13968 else
13969 eval libat_cv_have_at_fop_1=no
13971 CFLAGS="$old_CFLAGS"
13973 rm -f conftest*
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5
13977 $as_echo "$libat_cv_have_at_fop_1" >&6; }
13980 yesno=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '`
13982 cat >>confdefs.h <<_ACEOF
13983 #define HAVE_ATOMIC_FETCH_OP_1 $yesno
13984 _ACEOF
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5
13992 $as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; }
13993 if test "${libat_cv_have_at_fop_2+set}" = set; then :
13994 $as_echo_n "(cached) " >&6
13995 else
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
14001 main ()
14003 typedef int T __attribute__((mode(HI))); T *x, y;
14004 asm("" : "=g"(x), "=g"(y));
14005 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14006 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14007 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14008 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14009 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14010 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14012 return 0;
14014 _ACEOF
14015 if test x$atomic_builtins_link_tests = xyes; then
14016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14017 (eval $ac_link) 2>&5
14018 ac_status=$?
14019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14020 test $ac_status = 0; }; then
14021 eval libat_cv_have_at_fop_2=yes
14022 else
14023 eval libat_cv_have_at_fop_2=no
14025 else
14026 old_CFLAGS="$CFLAGS"
14027 # Compile unoptimized.
14028 CFLAGS="$CFLAGS -O0 -S"
14029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14030 (eval $ac_compile) 2>&5
14031 ac_status=$?
14032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14033 test $ac_status = 0; }; then
14034 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14035 eval libat_cv_have_at_fop_2=no
14036 else
14037 eval libat_cv_have_at_fop_2=yes
14039 else
14040 eval libat_cv_have_at_fop_2=no
14042 CFLAGS="$old_CFLAGS"
14044 rm -f conftest*
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5
14048 $as_echo "$libat_cv_have_at_fop_2" >&6; }
14051 yesno=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '`
14053 cat >>confdefs.h <<_ACEOF
14054 #define HAVE_ATOMIC_FETCH_OP_2 $yesno
14055 _ACEOF
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5
14063 $as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; }
14064 if test "${libat_cv_have_at_fop_4+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14066 else
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14072 main ()
14074 typedef int T __attribute__((mode(SI))); T *x, y;
14075 asm("" : "=g"(x), "=g"(y));
14076 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14077 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14078 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14079 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14080 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14081 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14083 return 0;
14085 _ACEOF
14086 if test x$atomic_builtins_link_tests = xyes; then
14087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14088 (eval $ac_link) 2>&5
14089 ac_status=$?
14090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14091 test $ac_status = 0; }; then
14092 eval libat_cv_have_at_fop_4=yes
14093 else
14094 eval libat_cv_have_at_fop_4=no
14096 else
14097 old_CFLAGS="$CFLAGS"
14098 # Compile unoptimized.
14099 CFLAGS="$CFLAGS -O0 -S"
14100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14101 (eval $ac_compile) 2>&5
14102 ac_status=$?
14103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14104 test $ac_status = 0; }; then
14105 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14106 eval libat_cv_have_at_fop_4=no
14107 else
14108 eval libat_cv_have_at_fop_4=yes
14110 else
14111 eval libat_cv_have_at_fop_4=no
14113 CFLAGS="$old_CFLAGS"
14115 rm -f conftest*
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5
14119 $as_echo "$libat_cv_have_at_fop_4" >&6; }
14122 yesno=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '`
14124 cat >>confdefs.h <<_ACEOF
14125 #define HAVE_ATOMIC_FETCH_OP_4 $yesno
14126 _ACEOF
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5
14134 $as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; }
14135 if test "${libat_cv_have_at_fop_8+set}" = set; then :
14136 $as_echo_n "(cached) " >&6
14137 else
14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14143 main ()
14145 typedef int T __attribute__((mode(DI))); T *x, y;
14146 asm("" : "=g"(x), "=g"(y));
14147 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14148 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14149 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14150 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14151 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14152 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14154 return 0;
14156 _ACEOF
14157 if test x$atomic_builtins_link_tests = xyes; then
14158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14159 (eval $ac_link) 2>&5
14160 ac_status=$?
14161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14162 test $ac_status = 0; }; then
14163 eval libat_cv_have_at_fop_8=yes
14164 else
14165 eval libat_cv_have_at_fop_8=no
14167 else
14168 old_CFLAGS="$CFLAGS"
14169 # Compile unoptimized.
14170 CFLAGS="$CFLAGS -O0 -S"
14171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14172 (eval $ac_compile) 2>&5
14173 ac_status=$?
14174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14175 test $ac_status = 0; }; then
14176 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14177 eval libat_cv_have_at_fop_8=no
14178 else
14179 eval libat_cv_have_at_fop_8=yes
14181 else
14182 eval libat_cv_have_at_fop_8=no
14184 CFLAGS="$old_CFLAGS"
14186 rm -f conftest*
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5
14190 $as_echo "$libat_cv_have_at_fop_8" >&6; }
14193 yesno=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '`
14195 cat >>confdefs.h <<_ACEOF
14196 #define HAVE_ATOMIC_FETCH_OP_8 $yesno
14197 _ACEOF
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5
14205 $as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; }
14206 if test "${libat_cv_have_at_fop_16+set}" = set; then :
14207 $as_echo_n "(cached) " >&6
14208 else
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14214 main ()
14216 typedef int T __attribute__((mode(TI))); T *x, y;
14217 asm("" : "=g"(x), "=g"(y));
14218 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14219 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14220 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14221 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14222 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14223 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14225 return 0;
14227 _ACEOF
14228 if test x$atomic_builtins_link_tests = xyes; then
14229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14230 (eval $ac_link) 2>&5
14231 ac_status=$?
14232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14233 test $ac_status = 0; }; then
14234 eval libat_cv_have_at_fop_16=yes
14235 else
14236 eval libat_cv_have_at_fop_16=no
14238 else
14239 old_CFLAGS="$CFLAGS"
14240 # Compile unoptimized.
14241 CFLAGS="$CFLAGS -O0 -S"
14242 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14243 (eval $ac_compile) 2>&5
14244 ac_status=$?
14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246 test $ac_status = 0; }; then
14247 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14248 eval libat_cv_have_at_fop_16=no
14249 else
14250 eval libat_cv_have_at_fop_16=yes
14252 else
14253 eval libat_cv_have_at_fop_16=no
14255 CFLAGS="$old_CFLAGS"
14257 rm -f conftest*
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5
14261 $as_echo "$libat_cv_have_at_fop_16" >&6; }
14264 yesno=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '`
14266 cat >>confdefs.h <<_ACEOF
14267 #define HAVE_ATOMIC_FETCH_OP_16 $yesno
14268 _ACEOF
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14276 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14277 if test "${ac_cv_c_bigendian+set}" = set; then :
14278 $as_echo_n "(cached) " >&6
14279 else
14280 ac_cv_c_bigendian=unknown
14281 # See if we're dealing with a universal compiler.
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14284 #ifndef __APPLE_CC__
14285 not a universal capable compiler
14286 #endif
14287 typedef int dummy;
14289 _ACEOF
14290 if ac_fn_c_try_compile "$LINENO"; then :
14292 # Check for potential -arch flags. It is not universal unless
14293 # there are at least two -arch flags with different values.
14294 ac_arch=
14295 ac_prev=
14296 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14297 if test -n "$ac_prev"; then
14298 case $ac_word in
14299 i?86 | x86_64 | ppc | ppc64)
14300 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14301 ac_arch=$ac_word
14302 else
14303 ac_cv_c_bigendian=universal
14304 break
14307 esac
14308 ac_prev=
14309 elif test "x$ac_word" = "x-arch"; then
14310 ac_prev=arch
14312 done
14314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315 if test $ac_cv_c_bigendian = unknown; then
14316 # See if sys/param.h defines the BYTE_ORDER macro.
14317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14318 /* end confdefs.h. */
14319 #include <sys/types.h>
14320 #include <sys/param.h>
14323 main ()
14325 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14326 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14327 && LITTLE_ENDIAN)
14328 bogus endian macros
14329 #endif
14332 return 0;
14334 _ACEOF
14335 if ac_fn_c_try_compile "$LINENO"; then :
14336 # It does; now see whether it defined to BIG_ENDIAN or not.
14337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14338 /* end confdefs.h. */
14339 #include <sys/types.h>
14340 #include <sys/param.h>
14343 main ()
14345 #if BYTE_ORDER != BIG_ENDIAN
14346 not big endian
14347 #endif
14350 return 0;
14352 _ACEOF
14353 if ac_fn_c_try_compile "$LINENO"; then :
14354 ac_cv_c_bigendian=yes
14355 else
14356 ac_cv_c_bigendian=no
14358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14362 if test $ac_cv_c_bigendian = unknown; then
14363 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 #include <limits.h>
14369 main ()
14371 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14372 bogus endian macros
14373 #endif
14376 return 0;
14378 _ACEOF
14379 if ac_fn_c_try_compile "$LINENO"; then :
14380 # It does; now see whether it defined to _BIG_ENDIAN or not.
14381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14382 /* end confdefs.h. */
14383 #include <limits.h>
14386 main ()
14388 #ifndef _BIG_ENDIAN
14389 not big endian
14390 #endif
14393 return 0;
14395 _ACEOF
14396 if ac_fn_c_try_compile "$LINENO"; then :
14397 ac_cv_c_bigendian=yes
14398 else
14399 ac_cv_c_bigendian=no
14401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 if test $ac_cv_c_bigendian = unknown; then
14406 # Compile a test program.
14407 if test "$cross_compiling" = yes; then :
14408 # Try to guess by grepping values from an object file.
14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14411 short int ascii_mm[] =
14412 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14413 short int ascii_ii[] =
14414 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14415 int use_ascii (int i) {
14416 return ascii_mm[i] + ascii_ii[i];
14418 short int ebcdic_ii[] =
14419 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14420 short int ebcdic_mm[] =
14421 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14422 int use_ebcdic (int i) {
14423 return ebcdic_mm[i] + ebcdic_ii[i];
14425 extern int foo;
14428 main ()
14430 return use_ascii (foo) == use_ebcdic (foo);
14432 return 0;
14434 _ACEOF
14435 if ac_fn_c_try_compile "$LINENO"; then :
14436 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14437 ac_cv_c_bigendian=yes
14439 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14440 if test "$ac_cv_c_bigendian" = unknown; then
14441 ac_cv_c_bigendian=no
14442 else
14443 # finding both strings is unlikely to happen, but who knows?
14444 ac_cv_c_bigendian=unknown
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 else
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451 /* end confdefs.h. */
14452 $ac_includes_default
14454 main ()
14457 /* Are we little or big endian? From Harbison&Steele. */
14458 union
14460 long int l;
14461 char c[sizeof (long int)];
14462 } u;
14463 u.l = 1;
14464 return u.c[sizeof (long int) - 1] == 1;
14467 return 0;
14469 _ACEOF
14470 if ac_fn_c_try_run "$LINENO"; then :
14471 ac_cv_c_bigendian=no
14472 else
14473 ac_cv_c_bigendian=yes
14475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14476 conftest.$ac_objext conftest.beam conftest.$ac_ext
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14482 $as_echo "$ac_cv_c_bigendian" >&6; }
14483 case $ac_cv_c_bigendian in #(
14484 yes)
14485 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14486 ;; #(
14488 ;; #(
14489 universal)
14491 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14493 ;; #(
14495 as_fn_error "unknown endianness
14496 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14497 esac
14499 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5
14504 $as_echo_n "checking for the word size... " >&6; }
14505 if test "${libat_cv_wordsize+set}" = set; then :
14506 $as_echo_n "(cached) " >&6
14507 else
14508 if ac_fn_c_compute_int "$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then :
14510 else
14511 as_fn_error "Could not determine word size." "$LINENO" 5
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5
14516 $as_echo "$libat_cv_wordsize" >&6; }
14518 cat >>confdefs.h <<_ACEOF
14519 #define WORDSIZE $libat_cv_wordsize
14520 _ACEOF
14524 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14525 # In case the pthread.h system header is not found, this test will fail.
14526 case " $config_path " in
14527 *" posix "*)
14528 XPCFLAGS=""
14529 CFLAGS="$CFLAGS -pthread"
14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14532 #include <pthread.h>
14533 void *g(void *d) { return NULL; }
14535 main ()
14537 pthread_t t; pthread_create(&t,NULL,g,NULL);
14539 return 0;
14541 _ACEOF
14542 if ac_fn_c_try_link "$LINENO"; then :
14543 XPCFLAGS=" -pthread"
14544 else
14545 CFLAGS="$save_CFLAGS $XCFLAGS" LIBS="-lpthread $LIBS"
14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547 /* end confdefs.h. */
14548 #include <pthread.h>
14549 void *g(void *d) { return NULL; }
14551 main ()
14553 pthread_t t; pthread_create(&t,NULL,g,NULL);
14555 return 0;
14557 _ACEOF
14558 if ac_fn_c_try_link "$LINENO"; then :
14560 else
14561 as_fn_error "Pthreads are required to build libatomic" "$LINENO" 5
14563 rm -f core conftest.err conftest.$ac_objext \
14564 conftest$ac_exeext conftest.$ac_ext
14566 rm -f core conftest.err conftest.$ac_objext \
14567 conftest$ac_exeext conftest.$ac_ext
14568 CFLAGS="$save_CFLAGS $XPCFLAGS"
14570 esac
14572 # See what sort of export controls are available.
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
14575 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
14576 if test "${libat_cv_have_attribute_visibility+set}" = set; then :
14577 $as_echo_n "(cached) " >&6
14578 else
14580 save_CFLAGS="$CFLAGS"
14581 CFLAGS="$CFLAGS -Werror"
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 void __attribute__((visibility("hidden"))) foo(void) { }
14586 main ()
14590 return 0;
14592 _ACEOF
14593 if ac_fn_c_try_compile "$LINENO"; then :
14594 libat_cv_have_attribute_visibility=yes
14595 else
14596 libat_cv_have_attribute_visibility=no
14598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14599 CFLAGS="$save_CFLAGS"
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5
14602 $as_echo "$libat_cv_have_attribute_visibility" >&6; }
14603 if test $libat_cv_have_attribute_visibility = yes; then
14605 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
14610 $as_echo_n "checking whether the target supports dllexport... " >&6; }
14611 if test "${libat_cv_have_attribute_dllexport+set}" = set; then :
14612 $as_echo_n "(cached) " >&6
14613 else
14615 save_CFLAGS="$CFLAGS"
14616 CFLAGS="$CFLAGS -Werror"
14617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14618 /* end confdefs.h. */
14619 void __attribute__((dllexport)) foo(void) { }
14621 main ()
14625 return 0;
14627 _ACEOF
14628 if ac_fn_c_try_compile "$LINENO"; then :
14629 libat_cv_have_attribute_dllexport=yes
14630 else
14631 libat_cv_have_attribute_dllexport=no
14633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14634 CFLAGS="$save_CFLAGS"
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5
14637 $as_echo "$libat_cv_have_attribute_dllexport" >&6; }
14638 if test $libat_cv_have_attribute_dllexport = yes; then
14640 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
14645 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
14646 if test "${libat_cv_have_attribute_alias+set}" = set; then :
14647 $as_echo_n "(cached) " >&6
14648 else
14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14653 void foo(void) { }
14654 extern void bar(void) __attribute__((alias("foo")));
14656 main ()
14658 bar();
14660 return 0;
14662 _ACEOF
14663 if ac_fn_c_try_link "$LINENO"; then :
14664 libat_cv_have_attribute_alias=yes
14665 else
14666 libat_cv_have_attribute_alias=no
14668 rm -f core conftest.err conftest.$ac_objext \
14669 conftest$ac_exeext conftest.$ac_ext
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5
14672 $as_echo "$libat_cv_have_attribute_alias" >&6; }
14673 if test $libat_cv_have_attribute_alias = yes; then
14675 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
14678 if test x$try_ifunc = xyes; then
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5
14681 $as_echo_n "checking whether the target supports the ifunc attribute... " >&6; }
14682 if test "${libat_cv_have_ifunc+set}" = set; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14686 save_CFLAGS="$CFLAGS"
14687 CFLAGS="$CFLAGS -Werror"
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14691 int foo_alt(void) { return 0; }
14692 void *foo_sel(void) { return foo_alt; }
14693 int foo(void) __attribute__((ifunc("foo_sel")));
14695 main ()
14697 return foo();
14699 return 0;
14701 _ACEOF
14702 if ac_fn_c_try_link "$LINENO"; then :
14703 libat_cv_have_ifunc=yes
14704 else
14705 libat_cv_have_ifunc=no
14707 rm -f core conftest.err conftest.$ac_objext \
14708 conftest$ac_exeext conftest.$ac_ext
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5
14711 $as_echo "$libat_cv_have_ifunc" >&6; }
14713 yesno=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '`
14715 cat >>confdefs.h <<_ACEOF
14716 #define HAVE_IFUNC $yesno
14717 _ACEOF
14723 # Check linker support.
14726 # Check whether --with-gnu-ld was given.
14727 if test "${with_gnu_ld+set}" = set; then :
14728 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14729 else
14730 with_gnu_ld=no
14733 ac_prog=ld
14734 if test "$GCC" = yes; then
14735 # Check if gcc -print-prog-name=ld gives a path.
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14737 $as_echo_n "checking for ld used by $CC... " >&6; }
14738 case $host in
14739 *-*-mingw*)
14740 # gcc leaves a trailing carriage return which upsets mingw
14741 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14743 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14744 esac
14745 case $ac_prog in
14746 # Accept absolute paths.
14747 [\\/]* | ?:[\\/]*)
14748 re_direlt='/[^/][^/]*/\.\./'
14749 # Canonicalize the pathname of ld
14750 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14751 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14752 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14753 done
14754 test -z "$LD" && LD="$ac_prog"
14757 # If it fails, then pretend we aren't using GCC.
14758 ac_prog=ld
14761 # If it is relative, then search for the first ld in PATH.
14762 with_gnu_ld=unknown
14764 esac
14765 elif test "$with_gnu_ld" = yes; then
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14767 $as_echo_n "checking for GNU ld... " >&6; }
14768 else
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14770 $as_echo_n "checking for non-GNU ld... " >&6; }
14772 if test "${lt_cv_path_LD+set}" = set; then :
14773 $as_echo_n "(cached) " >&6
14774 else
14775 if test -z "$LD"; then
14776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14777 for ac_dir in $PATH; do
14778 IFS="$lt_save_ifs"
14779 test -z "$ac_dir" && ac_dir=.
14780 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14781 lt_cv_path_LD="$ac_dir/$ac_prog"
14782 # Check to see if the program is GNU ld. I'd rather use --version,
14783 # but apparently some variants of GNU ld only accept -v.
14784 # Break only if it was the GNU/non-GNU ld that we prefer.
14785 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14786 *GNU* | *'with BFD'*)
14787 test "$with_gnu_ld" != no && break
14790 test "$with_gnu_ld" != yes && break
14792 esac
14794 done
14795 IFS="$lt_save_ifs"
14796 else
14797 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14801 LD="$lt_cv_path_LD"
14802 if test -n "$LD"; then
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14804 $as_echo "$LD" >&6; }
14805 else
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14807 $as_echo "no" >&6; }
14809 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14811 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14812 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14813 $as_echo_n "(cached) " >&6
14814 else
14815 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14816 case `$LD -v 2>&1 </dev/null` in
14817 *GNU* | *'with BFD'*)
14818 lt_cv_prog_gnu_ld=yes
14821 lt_cv_prog_gnu_ld=no
14823 esac
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14826 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14827 with_gnu_ld=$lt_cv_prog_gnu_ld
14835 # If we're not using GNU ld, then there's no point in even trying these
14836 # tests. Check for that first. We should have already tested for gld
14837 # by now (in libtool), but require it now just to be safe...
14838 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
14839 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
14843 # The name set by libtool depends on the version of libtool. Shame on us
14844 # for depending on an impl detail, but c'est la vie. Older versions used
14845 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
14846 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
14847 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
14848 # set (hence we're using an older libtool), then set it.
14849 if test x${with_gnu_ld+set} != xset; then
14850 if test x${ac_cv_prog_gnu_ld+set} != xset; then
14851 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
14852 with_gnu_ld=no
14853 else
14854 with_gnu_ld=$ac_cv_prog_gnu_ld
14858 # Start by getting the version number. I think the libtool test already
14859 # does some of this, but throws away the result.
14860 libat_ld_is_gold=no
14861 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
14862 libat_ld_is_gold=yes
14865 ldver=`$LD --version 2>/dev/null |
14866 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'`
14868 libat_gnu_ld_version=`echo $ldver | \
14869 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
14871 # Set --gc-sections.
14872 if test "$with_gnu_ld" = "notbroken"; then
14873 # GNU ld it is! Joy and bunny rabbits!
14875 # All these tests are for C++; save the language and the compiler flags.
14876 # Need to do this so that g++ won't try to link in libstdc++
14877 ac_test_CFLAGS="${CFLAGS+set}"
14878 ac_save_CFLAGS="$CFLAGS"
14879 CFLAGS='-x c++ -Wl,--gc-sections'
14881 # Check for -Wl,--gc-sections
14882 # XXX This test is broken at the moment, as symbols required for linking
14883 # are now in libsupc++ (not built yet). In addition, this test has
14884 # cored on solaris in the past. In addition, --gc-sections doesn't
14885 # really work at the moment (keeps on discarding used sections, first
14886 # .eh_frame and now some of the glibc sections for iconv).
14887 # Bzzzzt. Thanks for playing, maybe next time.
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
14889 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
14890 if test "$cross_compiling" = yes; then :
14891 ac_sectionLDflags=yes
14892 else
14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14894 /* end confdefs.h. */
14896 int main(void)
14898 try { throw 1; }
14899 catch (...) { };
14900 return 0;
14903 _ACEOF
14904 if ac_fn_c_try_run "$LINENO"; then :
14905 ac_sectionLDflags=yes
14906 else
14907 ac_sectionLDflags=no
14909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14910 conftest.$ac_objext conftest.beam conftest.$ac_ext
14913 if test "$ac_test_CFLAGS" = set; then
14914 CFLAGS="$ac_save_CFLAGS"
14915 else
14916 # this is the suspicious part
14917 CFLAGS=''
14919 if test "$ac_sectionLDflags" = "yes"; then
14920 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
14923 $as_echo "$ac_sectionLDflags" >&6; }
14926 # Set linker optimization flags.
14927 if test x"$with_gnu_ld" = x"yes"; then
14928 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
14936 # Check whether --enable-symvers was given.
14937 if test "${enable_symvers+set}" = set; then :
14938 enableval=$enable_symvers;
14939 case "$enableval" in
14940 yes|no|gnu*|sun) ;;
14941 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
14942 esac
14944 else
14945 enable_symvers=yes
14950 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
14951 # don't know enough about $LD to do tricks...
14954 # Turn a 'yes' into a suitable default.
14955 if test x$enable_symvers = xyes ; then
14956 # FIXME The following test is too strict, in theory.
14957 if test $enable_shared = no || test "x$LD" = x; then
14958 enable_symvers=no
14959 else
14960 if test $with_gnu_ld = yes ; then
14961 enable_symvers=gnu
14962 else
14963 case ${target_os} in
14964 # Sun symbol versioning exists since Solaris 2.5.
14965 solaris2.[5-9]* | solaris2.1[0-9]*)
14966 enable_symvers=sun ;;
14968 enable_symvers=no ;;
14969 esac
14974 # Check if 'sun' was requested on non-Solaris 2 platforms.
14975 if test x$enable_symvers = xsun ; then
14976 case ${target_os} in
14977 solaris2*)
14978 # All fine.
14981 # Unlikely to work.
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
14983 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
14985 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
14987 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
14988 enable_symvers=no
14990 esac
14993 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
14994 if test $enable_symvers != no; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
14996 $as_echo_n "checking for shared libgcc... " >&6; }
14997 ac_save_CFLAGS="$CFLAGS"
14998 CFLAGS=' -lgcc_s'
14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15003 main ()
15005 return 0;
15007 return 0;
15009 _ACEOF
15010 if ac_fn_c_try_link "$LINENO"; then :
15011 libat_shared_libgcc=yes
15012 else
15013 libat_shared_libgcc=no
15015 rm -f core conftest.err conftest.$ac_objext \
15016 conftest$ac_exeext conftest.$ac_ext
15017 CFLAGS="$ac_save_CFLAGS"
15018 if test $libat_shared_libgcc = no; then
15019 cat > conftest.c <<EOF
15020 int main (void) { return 0; }
15022 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15023 -shared -shared-libgcc -o conftest.so \
15024 conftest.c -v 2>&1 >/dev/null \
15025 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15026 rm -f conftest.c conftest.so
15027 if test x${libat_libgcc_s_suffix+set} = xset; then
15028 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15033 main ()
15035 return 0;
15037 return 0;
15039 _ACEOF
15040 if ac_fn_c_try_link "$LINENO"; then :
15041 libat_shared_libgcc=yes
15043 rm -f core conftest.err conftest.$ac_objext \
15044 conftest$ac_exeext conftest.$ac_ext
15045 CFLAGS="$ac_save_CFLAGS"
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
15049 $as_echo "$libat_shared_libgcc" >&6; }
15052 # For GNU ld, we need at least this version. The format is described in
15053 # LIBAT_CHECK_LINKER_FEATURES above.
15054 libat_min_gnu_ld_version=21400
15055 # XXXXXXXXXXX libat_gnu_ld_version=21390
15057 # Check to see if unspecified "yes" value can win, given results above.
15058 # Change "yes" into either "no" or a style name.
15059 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
15060 if test $with_gnu_ld = yes; then
15061 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
15062 enable_symvers=gnu
15063 elif test $libat_ld_is_gold = yes ; then
15064 enable_symvers=gnu
15065 else
15066 # The right tools, the right setup, but too old. Fallbacks?
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
15068 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15070 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15072 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
15074 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
15075 if test $libat_gnu_ld_version -ge 21200 ; then
15076 # Globbing fix is present, proper block support is not.
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15078 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15079 enable_symvers=no
15080 else
15081 # 2.11 or older.
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15083 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15084 enable_symvers=no
15087 elif test $enable_symvers = sun; then
15088 : All interesting versions of Sun ld support sun style symbol versioning.
15089 else
15090 # just fail for now
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15092 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15094 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15096 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15098 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15099 enable_symvers=no
15102 if test $enable_symvers = gnu; then
15104 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15108 if test $enable_symvers != no; then
15109 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
15110 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
15111 else
15112 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
15113 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
15116 if test $enable_symvers = gnu; then
15117 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15118 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15119 else
15120 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15121 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15124 if test $enable_symvers = sun; then
15125 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15126 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15127 else
15128 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15129 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15133 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15136 # Cleanup and exit.
15137 CFLAGS="$save_CFLAGS"
15138 cat >confcache <<\_ACEOF
15139 # This file is a shell script that caches the results of configure
15140 # tests run on this system so they can be shared between configure
15141 # scripts and configure runs, see configure's option --config-cache.
15142 # It is not useful on other systems. If it contains results you don't
15143 # want to keep, you may remove or edit it.
15145 # config.status only pays attention to the cache file if you give it
15146 # the --recheck option to rerun configure.
15148 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15149 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15150 # following values.
15152 _ACEOF
15154 # The following way of writing the cache mishandles newlines in values,
15155 # but we know of no workaround that is simple, portable, and efficient.
15156 # So, we kill variables containing newlines.
15157 # Ultrix sh set writes to stderr and can't be redirected directly,
15158 # and sets the high bit in the cache file unless we assign to the vars.
15160 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15161 eval ac_val=\$$ac_var
15162 case $ac_val in #(
15163 *${as_nl}*)
15164 case $ac_var in #(
15165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15166 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15167 esac
15168 case $ac_var in #(
15169 _ | IFS | as_nl) ;; #(
15170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15171 *) { eval $ac_var=; unset $ac_var;} ;;
15172 esac ;;
15173 esac
15174 done
15176 (set) 2>&1 |
15177 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15178 *${as_nl}ac_space=\ *)
15179 # `set' does not quote correctly, so add quotes: double-quote
15180 # substitution turns \\\\ into \\, and sed turns \\ into \.
15181 sed -n \
15182 "s/'/'\\\\''/g;
15183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15184 ;; #(
15186 # `set' quotes correctly as required by POSIX, so do not add quotes.
15187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15189 esac |
15190 sort
15192 sed '
15193 /^ac_cv_env_/b end
15194 t clear
15195 :clear
15196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15197 t end
15198 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15199 :end' >>confcache
15200 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15201 if test -w "$cache_file"; then
15202 test "x$cache_file" != "x/dev/null" &&
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15204 $as_echo "$as_me: updating cache $cache_file" >&6;}
15205 cat confcache >$cache_file
15206 else
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15208 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15211 rm -f confcache
15213 # Add -Wall -Werror if we are using GCC.
15214 if test "x$GCC" = "xyes"; then
15215 XCFLAGS="$XCFLAGS -Wall -Werror"
15218 XCFLAGS="$XCFLAGS $XPCFLAGS"
15226 if test x$libat_cv_have_ifunc = xyes; then
15227 HAVE_IFUNC_TRUE=
15228 HAVE_IFUNC_FALSE='#'
15229 else
15230 HAVE_IFUNC_TRUE='#'
15231 HAVE_IFUNC_FALSE=
15234 if expr "$config_path" : ".* linux/arm .*" > /dev/null; then
15235 ARCH_ARM_LINUX_TRUE=
15236 ARCH_ARM_LINUX_FALSE='#'
15237 else
15238 ARCH_ARM_LINUX_TRUE='#'
15239 ARCH_ARM_LINUX_FALSE=
15242 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x4; then
15243 ARCH_I386_TRUE=
15244 ARCH_I386_FALSE='#'
15245 else
15246 ARCH_I386_TRUE='#'
15247 ARCH_I386_FALSE=
15250 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x8; then
15251 ARCH_X86_64_TRUE=
15252 ARCH_X86_64_FALSE='#'
15253 else
15254 ARCH_X86_64_TRUE='#'
15255 ARCH_X86_64_FALSE=
15259 if test ${multilib} = yes; then
15260 multilib_arg="--enable-multilib"
15261 else
15262 multilib_arg=
15265 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15267 cat >confcache <<\_ACEOF
15268 # This file is a shell script that caches the results of configure
15269 # tests run on this system so they can be shared between configure
15270 # scripts and configure runs, see configure's option --config-cache.
15271 # It is not useful on other systems. If it contains results you don't
15272 # want to keep, you may remove or edit it.
15274 # config.status only pays attention to the cache file if you give it
15275 # the --recheck option to rerun configure.
15277 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15278 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15279 # following values.
15281 _ACEOF
15283 # The following way of writing the cache mishandles newlines in values,
15284 # but we know of no workaround that is simple, portable, and efficient.
15285 # So, we kill variables containing newlines.
15286 # Ultrix sh set writes to stderr and can't be redirected directly,
15287 # and sets the high bit in the cache file unless we assign to the vars.
15289 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15290 eval ac_val=\$$ac_var
15291 case $ac_val in #(
15292 *${as_nl}*)
15293 case $ac_var in #(
15294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15296 esac
15297 case $ac_var in #(
15298 _ | IFS | as_nl) ;; #(
15299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15300 *) { eval $ac_var=; unset $ac_var;} ;;
15301 esac ;;
15302 esac
15303 done
15305 (set) 2>&1 |
15306 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15307 *${as_nl}ac_space=\ *)
15308 # `set' does not quote correctly, so add quotes: double-quote
15309 # substitution turns \\\\ into \\, and sed turns \\ into \.
15310 sed -n \
15311 "s/'/'\\\\''/g;
15312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15313 ;; #(
15315 # `set' quotes correctly as required by POSIX, so do not add quotes.
15316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15318 esac |
15319 sort
15321 sed '
15322 /^ac_cv_env_/b end
15323 t clear
15324 :clear
15325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15326 t end
15327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15328 :end' >>confcache
15329 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15330 if test -w "$cache_file"; then
15331 test "x$cache_file" != "x/dev/null" &&
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15333 $as_echo "$as_me: updating cache $cache_file" >&6;}
15334 cat confcache >$cache_file
15335 else
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15337 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15340 rm -f confcache
15342 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15343 # Let make expand exec_prefix.
15344 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15346 DEFS=-DHAVE_CONFIG_H
15348 ac_libobjs=
15349 ac_ltlibobjs=
15350 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15351 # 1. Remove the extension, and $U if already installed.
15352 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15353 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15354 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15355 # will be set to the directory where LIBOBJS objects are built.
15356 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15357 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15358 done
15359 LIBOBJS=$ac_libobjs
15361 LTLIBOBJS=$ac_ltlibobjs
15364 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
15365 as_fn_error "conditional \"GENINSRC\" was never defined.
15366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15368 if test -n "$EXEEXT"; then
15369 am__EXEEXT_TRUE=
15370 am__EXEEXT_FALSE='#'
15371 else
15372 am__EXEEXT_TRUE='#'
15373 am__EXEEXT_FALSE=
15376 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15377 as_fn_error "conditional \"AMDEP\" was never defined.
15378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15380 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15381 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15384 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15385 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
15386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15388 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15389 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15393 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
15394 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
15395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15397 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
15398 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
15399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15401 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
15402 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
15403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15405 if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then
15406 as_fn_error "conditional \"HAVE_IFUNC\" was never defined.
15407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15409 if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then
15410 as_fn_error "conditional \"ARCH_ARM_LINUX\" was never defined.
15411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15413 if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then
15414 as_fn_error "conditional \"ARCH_I386\" was never defined.
15415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15417 if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
15418 as_fn_error "conditional \"ARCH_X86_64\" was never defined.
15419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15422 : ${CONFIG_STATUS=./config.status}
15423 ac_write_fail=0
15424 ac_clean_files_save=$ac_clean_files
15425 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15427 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15428 as_write_fail=0
15429 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15430 #! $SHELL
15431 # Generated by $as_me.
15432 # Run this file to recreate the current configuration.
15433 # Compiler output produced by configure, useful for debugging
15434 # configure, is in config.log if it exists.
15436 debug=false
15437 ac_cs_recheck=false
15438 ac_cs_silent=false
15440 SHELL=\${CONFIG_SHELL-$SHELL}
15441 export SHELL
15442 _ASEOF
15443 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15444 ## -------------------- ##
15445 ## M4sh Initialization. ##
15446 ## -------------------- ##
15448 # Be more Bourne compatible
15449 DUALCASE=1; export DUALCASE # for MKS sh
15450 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15451 emulate sh
15452 NULLCMD=:
15453 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15454 # is contrary to our usage. Disable this feature.
15455 alias -g '${1+"$@"}'='"$@"'
15456 setopt NO_GLOB_SUBST
15457 else
15458 case `(set -o) 2>/dev/null` in #(
15459 *posix*) :
15460 set -o posix ;; #(
15461 *) :
15463 esac
15467 as_nl='
15469 export as_nl
15470 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15471 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15472 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15473 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15474 # Prefer a ksh shell builtin over an external printf program on Solaris,
15475 # but without wasting forks for bash or zsh.
15476 if test -z "$BASH_VERSION$ZSH_VERSION" \
15477 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15478 as_echo='print -r --'
15479 as_echo_n='print -rn --'
15480 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15481 as_echo='printf %s\n'
15482 as_echo_n='printf %s'
15483 else
15484 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15485 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15486 as_echo_n='/usr/ucb/echo -n'
15487 else
15488 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15489 as_echo_n_body='eval
15490 arg=$1;
15491 case $arg in #(
15492 *"$as_nl"*)
15493 expr "X$arg" : "X\\(.*\\)$as_nl";
15494 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15495 esac;
15496 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15498 export as_echo_n_body
15499 as_echo_n='sh -c $as_echo_n_body as_echo'
15501 export as_echo_body
15502 as_echo='sh -c $as_echo_body as_echo'
15505 # The user is always right.
15506 if test "${PATH_SEPARATOR+set}" != set; then
15507 PATH_SEPARATOR=:
15508 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15509 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15510 PATH_SEPARATOR=';'
15515 # IFS
15516 # We need space, tab and new line, in precisely that order. Quoting is
15517 # there to prevent editors from complaining about space-tab.
15518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15519 # splitting by setting IFS to empty value.)
15520 IFS=" "" $as_nl"
15522 # Find who we are. Look in the path if we contain no directory separator.
15523 case $0 in #((
15524 *[\\/]* ) as_myself=$0 ;;
15525 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15526 for as_dir in $PATH
15528 IFS=$as_save_IFS
15529 test -z "$as_dir" && as_dir=.
15530 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15531 done
15532 IFS=$as_save_IFS
15535 esac
15536 # We did not find ourselves, most probably we were run as `sh COMMAND'
15537 # in which case we are not to be found in the path.
15538 if test "x$as_myself" = x; then
15539 as_myself=$0
15541 if test ! -f "$as_myself"; then
15542 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15543 exit 1
15546 # Unset variables that we do not need and which cause bugs (e.g. in
15547 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15548 # suppresses any "Segmentation fault" message there. '((' could
15549 # trigger a bug in pdksh 5.2.14.
15550 for as_var in BASH_ENV ENV MAIL MAILPATH
15551 do eval test x\${$as_var+set} = xset \
15552 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15553 done
15554 PS1='$ '
15555 PS2='> '
15556 PS4='+ '
15558 # NLS nuisances.
15559 LC_ALL=C
15560 export LC_ALL
15561 LANGUAGE=C
15562 export LANGUAGE
15564 # CDPATH.
15565 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15568 # as_fn_error ERROR [LINENO LOG_FD]
15569 # ---------------------------------
15570 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15571 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15572 # script with status $?, using 1 if that was 0.
15573 as_fn_error ()
15575 as_status=$?; test $as_status -eq 0 && as_status=1
15576 if test "$3"; then
15577 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15578 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15580 $as_echo "$as_me: error: $1" >&2
15581 as_fn_exit $as_status
15582 } # as_fn_error
15585 # as_fn_set_status STATUS
15586 # -----------------------
15587 # Set $? to STATUS, without forking.
15588 as_fn_set_status ()
15590 return $1
15591 } # as_fn_set_status
15593 # as_fn_exit STATUS
15594 # -----------------
15595 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15596 as_fn_exit ()
15598 set +e
15599 as_fn_set_status $1
15600 exit $1
15601 } # as_fn_exit
15603 # as_fn_unset VAR
15604 # ---------------
15605 # Portably unset VAR.
15606 as_fn_unset ()
15608 { eval $1=; unset $1;}
15610 as_unset=as_fn_unset
15611 # as_fn_append VAR VALUE
15612 # ----------------------
15613 # Append the text in VALUE to the end of the definition contained in VAR. Take
15614 # advantage of any shell optimizations that allow amortized linear growth over
15615 # repeated appends, instead of the typical quadratic growth present in naive
15616 # implementations.
15617 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15618 eval 'as_fn_append ()
15620 eval $1+=\$2
15622 else
15623 as_fn_append ()
15625 eval $1=\$$1\$2
15627 fi # as_fn_append
15629 # as_fn_arith ARG...
15630 # ------------------
15631 # Perform arithmetic evaluation on the ARGs, and store the result in the
15632 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15633 # must be portable across $(()) and expr.
15634 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15635 eval 'as_fn_arith ()
15637 as_val=$(( $* ))
15639 else
15640 as_fn_arith ()
15642 as_val=`expr "$@" || test $? -eq 1`
15644 fi # as_fn_arith
15647 if expr a : '\(a\)' >/dev/null 2>&1 &&
15648 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15649 as_expr=expr
15650 else
15651 as_expr=false
15654 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15655 as_basename=basename
15656 else
15657 as_basename=false
15660 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15661 as_dirname=dirname
15662 else
15663 as_dirname=false
15666 as_me=`$as_basename -- "$0" ||
15667 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15668 X"$0" : 'X\(//\)$' \| \
15669 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15670 $as_echo X/"$0" |
15671 sed '/^.*\/\([^/][^/]*\)\/*$/{
15672 s//\1/
15675 /^X\/\(\/\/\)$/{
15676 s//\1/
15679 /^X\/\(\/\).*/{
15680 s//\1/
15683 s/.*/./; q'`
15685 # Avoid depending upon Character Ranges.
15686 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15687 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15688 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15689 as_cr_digits='0123456789'
15690 as_cr_alnum=$as_cr_Letters$as_cr_digits
15692 ECHO_C= ECHO_N= ECHO_T=
15693 case `echo -n x` in #(((((
15694 -n*)
15695 case `echo 'xy\c'` in
15696 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15697 xy) ECHO_C='\c';;
15698 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15699 ECHO_T=' ';;
15700 esac;;
15702 ECHO_N='-n';;
15703 esac
15705 rm -f conf$$ conf$$.exe conf$$.file
15706 if test -d conf$$.dir; then
15707 rm -f conf$$.dir/conf$$.file
15708 else
15709 rm -f conf$$.dir
15710 mkdir conf$$.dir 2>/dev/null
15712 if (echo >conf$$.file) 2>/dev/null; then
15713 if ln -s conf$$.file conf$$ 2>/dev/null; then
15714 as_ln_s='ln -s'
15715 # ... but there are two gotchas:
15716 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15717 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15718 # In both cases, we have to default to `cp -p'.
15719 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15720 as_ln_s='cp -p'
15721 elif ln conf$$.file conf$$ 2>/dev/null; then
15722 as_ln_s=ln
15723 else
15724 as_ln_s='cp -p'
15726 else
15727 as_ln_s='cp -p'
15729 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15730 rmdir conf$$.dir 2>/dev/null
15733 # as_fn_mkdir_p
15734 # -------------
15735 # Create "$as_dir" as a directory, including parents if necessary.
15736 as_fn_mkdir_p ()
15739 case $as_dir in #(
15740 -*) as_dir=./$as_dir;;
15741 esac
15742 test -d "$as_dir" || eval $as_mkdir_p || {
15743 as_dirs=
15744 while :; do
15745 case $as_dir in #(
15746 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15747 *) as_qdir=$as_dir;;
15748 esac
15749 as_dirs="'$as_qdir' $as_dirs"
15750 as_dir=`$as_dirname -- "$as_dir" ||
15751 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15752 X"$as_dir" : 'X\(//\)[^/]' \| \
15753 X"$as_dir" : 'X\(//\)$' \| \
15754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15755 $as_echo X"$as_dir" |
15756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15757 s//\1/
15760 /^X\(\/\/\)[^/].*/{
15761 s//\1/
15764 /^X\(\/\/\)$/{
15765 s//\1/
15768 /^X\(\/\).*/{
15769 s//\1/
15772 s/.*/./; q'`
15773 test -d "$as_dir" && break
15774 done
15775 test -z "$as_dirs" || eval "mkdir $as_dirs"
15776 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15779 } # as_fn_mkdir_p
15780 if mkdir -p . 2>/dev/null; then
15781 as_mkdir_p='mkdir -p "$as_dir"'
15782 else
15783 test -d ./-p && rmdir ./-p
15784 as_mkdir_p=false
15787 if test -x / >/dev/null 2>&1; then
15788 as_test_x='test -x'
15789 else
15790 if ls -dL / >/dev/null 2>&1; then
15791 as_ls_L_option=L
15792 else
15793 as_ls_L_option=
15795 as_test_x='
15796 eval sh -c '\''
15797 if test -d "$1"; then
15798 test -d "$1/.";
15799 else
15800 case $1 in #(
15801 -*)set "./$1";;
15802 esac;
15803 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15804 ???[sx]*):;;*)false;;esac;fi
15805 '\'' sh
15808 as_executable_p=$as_test_x
15810 # Sed expression to map a string onto a valid CPP name.
15811 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15813 # Sed expression to map a string onto a valid variable name.
15814 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15817 exec 6>&1
15818 ## ----------------------------------- ##
15819 ## Main body of $CONFIG_STATUS script. ##
15820 ## ----------------------------------- ##
15821 _ASEOF
15822 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15825 # Save the log message, to keep $0 and so on meaningful, and to
15826 # report actual input values of CONFIG_FILES etc. instead of their
15827 # values after options handling.
15828 ac_log="
15829 This file was extended by GNU Atomic Library $as_me 1.0, which was
15830 generated by GNU Autoconf 2.64. Invocation command line was
15832 CONFIG_FILES = $CONFIG_FILES
15833 CONFIG_HEADERS = $CONFIG_HEADERS
15834 CONFIG_LINKS = $CONFIG_LINKS
15835 CONFIG_COMMANDS = $CONFIG_COMMANDS
15836 $ $0 $@
15838 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15841 _ACEOF
15843 case $ac_config_files in *"
15844 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15845 esac
15847 case $ac_config_headers in *"
15848 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15849 esac
15852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15853 # Files that config.status was made for.
15854 config_files="$ac_config_files"
15855 config_headers="$ac_config_headers"
15856 config_commands="$ac_config_commands"
15858 _ACEOF
15860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15861 ac_cs_usage="\
15862 \`$as_me' instantiates files and other configuration actions
15863 from templates according to the current configuration. Unless the files
15864 and actions are specified as TAGs, all are instantiated by default.
15866 Usage: $0 [OPTION]... [TAG]...
15868 -h, --help print this help, then exit
15869 -V, --version print version number and configuration settings, then exit
15870 -q, --quiet, --silent
15871 do not print progress messages
15872 -d, --debug don't remove temporary files
15873 --recheck update $as_me by reconfiguring in the same conditions
15874 --file=FILE[:TEMPLATE]
15875 instantiate the configuration file FILE
15876 --header=FILE[:TEMPLATE]
15877 instantiate the configuration header FILE
15879 Configuration files:
15880 $config_files
15882 Configuration headers:
15883 $config_headers
15885 Configuration commands:
15886 $config_commands
15888 Report bugs to the package provider.
15889 GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
15890 General help using GNU software: <http://www.gnu.org/gethelp/>."
15892 _ACEOF
15893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15894 ac_cs_version="\\
15895 GNU Atomic Library config.status 1.0
15896 configured by $0, generated by GNU Autoconf 2.64,
15897 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15899 Copyright (C) 2009 Free Software Foundation, Inc.
15900 This config.status script is free software; the Free Software Foundation
15901 gives unlimited permission to copy, distribute and modify it."
15903 ac_pwd='$ac_pwd'
15904 srcdir='$srcdir'
15905 INSTALL='$INSTALL'
15906 MKDIR_P='$MKDIR_P'
15907 AWK='$AWK'
15908 test -n "\$AWK" || AWK=awk
15909 _ACEOF
15911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15912 # The default lists apply if the user does not specify any file.
15913 ac_need_defaults=:
15914 while test $# != 0
15916 case $1 in
15917 --*=*)
15918 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15919 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15920 ac_shift=:
15923 ac_option=$1
15924 ac_optarg=$2
15925 ac_shift=shift
15927 esac
15929 case $ac_option in
15930 # Handling of the options.
15931 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15932 ac_cs_recheck=: ;;
15933 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15934 $as_echo "$ac_cs_version"; exit ;;
15935 --debug | --debu | --deb | --de | --d | -d )
15936 debug=: ;;
15937 --file | --fil | --fi | --f )
15938 $ac_shift
15939 case $ac_optarg in
15940 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15941 esac
15942 as_fn_append CONFIG_FILES " '$ac_optarg'"
15943 ac_need_defaults=false;;
15944 --header | --heade | --head | --hea )
15945 $ac_shift
15946 case $ac_optarg in
15947 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15948 esac
15949 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15950 ac_need_defaults=false;;
15951 --he | --h)
15952 # Conflict between --help and --header
15953 as_fn_error "ambiguous option: \`$1'
15954 Try \`$0 --help' for more information.";;
15955 --help | --hel | -h )
15956 $as_echo "$ac_cs_usage"; exit ;;
15957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15958 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15959 ac_cs_silent=: ;;
15961 # This is an error.
15962 -*) as_fn_error "unrecognized option: \`$1'
15963 Try \`$0 --help' for more information." ;;
15965 *) as_fn_append ac_config_targets " $1"
15966 ac_need_defaults=false ;;
15968 esac
15969 shift
15970 done
15972 ac_configure_extra_args=
15974 if $ac_cs_silent; then
15975 exec 6>/dev/null
15976 ac_configure_extra_args="$ac_configure_extra_args --silent"
15979 _ACEOF
15980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15981 if \$ac_cs_recheck; then
15982 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15983 shift
15984 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15985 CONFIG_SHELL='$SHELL'
15986 export CONFIG_SHELL
15987 exec "\$@"
15990 _ACEOF
15991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15992 exec 5>>config.log
15994 echo
15995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15996 ## Running $as_me. ##
15997 _ASBOX
15998 $as_echo "$ac_log"
15999 } >&5
16001 _ACEOF
16002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16004 # INIT-COMMANDS
16007 srcdir="$srcdir"
16008 host="$host"
16009 target="$target"
16010 with_multisubdir="$with_multisubdir"
16011 with_multisrctop="$with_multisrctop"
16012 with_target_subdir="$with_target_subdir"
16013 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16014 multi_basedir="$multi_basedir"
16015 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16016 CC="$CC"
16017 CXX="$CXX"
16018 GFORTRAN="$GFORTRAN"
16019 GCJ="$GCJ"
16020 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16023 # The HP-UX ksh and POSIX shell print the target directory to stdout
16024 # if CDPATH is set.
16025 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16027 sed_quote_subst='$sed_quote_subst'
16028 double_quote_subst='$double_quote_subst'
16029 delay_variable_subst='$delay_variable_subst'
16030 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16031 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16032 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16033 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16034 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16035 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16036 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16037 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16038 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16039 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16040 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16041 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16042 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16043 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16044 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16045 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16046 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16047 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16048 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16049 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16050 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16051 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16052 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16053 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16054 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16055 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16056 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16057 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16058 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16059 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16060 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16061 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16062 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16063 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16064 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16065 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16066 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16067 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16068 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16069 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16070 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16071 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16072 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16073 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16074 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16075 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16076 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16077 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16078 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"`'
16079 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16080 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16081 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16082 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16083 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16084 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16085 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16086 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16087 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16088 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16089 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16090 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16091 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16092 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16093 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16094 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16095 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16096 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16097 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16098 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16099 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16100 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16101 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16102 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16103 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16104 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16105 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16106 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16107 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16108 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16109 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16110 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16111 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16112 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16113 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16114 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16115 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16116 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16117 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16118 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16119 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16120 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16121 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16122 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16123 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16124 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16125 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16126 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16127 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16128 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16129 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16130 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16131 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16132 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16133 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16134 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16135 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16136 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16137 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16138 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16139 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16140 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16141 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16142 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16143 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16144 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16145 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16146 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16147 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16148 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16149 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16151 LTCC='$LTCC'
16152 LTCFLAGS='$LTCFLAGS'
16153 compiler='$compiler_DEFAULT'
16155 # A function that is used when there is no print builtin or printf.
16156 func_fallback_echo ()
16158 eval 'cat <<_LTECHO_EOF
16160 _LTECHO_EOF'
16163 # Quote evaled strings.
16164 for var in SHELL \
16165 ECHO \
16166 SED \
16167 GREP \
16168 EGREP \
16169 FGREP \
16170 LD \
16171 NM \
16172 LN_S \
16173 lt_SP2NL \
16174 lt_NL2SP \
16175 reload_flag \
16176 OBJDUMP \
16177 deplibs_check_method \
16178 file_magic_cmd \
16179 AR \
16180 AR_FLAGS \
16181 STRIP \
16182 RANLIB \
16183 CC \
16184 CFLAGS \
16185 compiler \
16186 lt_cv_sys_global_symbol_pipe \
16187 lt_cv_sys_global_symbol_to_cdecl \
16188 lt_cv_sys_global_symbol_to_c_name_address \
16189 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16190 lt_prog_compiler_no_builtin_flag \
16191 lt_prog_compiler_wl \
16192 lt_prog_compiler_pic \
16193 lt_prog_compiler_static \
16194 lt_cv_prog_compiler_c_o \
16195 need_locks \
16196 DSYMUTIL \
16197 NMEDIT \
16198 LIPO \
16199 OTOOL \
16200 OTOOL64 \
16201 shrext_cmds \
16202 export_dynamic_flag_spec \
16203 whole_archive_flag_spec \
16204 compiler_needs_object \
16205 with_gnu_ld \
16206 allow_undefined_flag \
16207 no_undefined_flag \
16208 hardcode_libdir_flag_spec \
16209 hardcode_libdir_flag_spec_ld \
16210 hardcode_libdir_separator \
16211 fix_srcfile_path \
16212 exclude_expsyms \
16213 include_expsyms \
16214 file_list_spec \
16215 variables_saved_for_relink \
16216 libname_spec \
16217 library_names_spec \
16218 soname_spec \
16219 install_override_mode \
16220 finish_eval \
16221 old_striplib \
16222 striplib; do
16223 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16224 *[\\\\\\\`\\"\\\$]*)
16225 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16228 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16230 esac
16231 done
16233 # Double-quote double-evaled strings.
16234 for var in reload_cmds \
16235 old_postinstall_cmds \
16236 old_postuninstall_cmds \
16237 old_archive_cmds \
16238 extract_expsyms_cmds \
16239 old_archive_from_new_cmds \
16240 old_archive_from_expsyms_cmds \
16241 archive_cmds \
16242 archive_expsym_cmds \
16243 module_cmds \
16244 module_expsym_cmds \
16245 export_symbols_cmds \
16246 prelink_cmds \
16247 postinstall_cmds \
16248 postuninstall_cmds \
16249 finish_cmds \
16250 sys_lib_search_path_spec \
16251 sys_lib_dlsearch_path_spec; do
16252 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16253 *[\\\\\\\`\\"\\\$]*)
16254 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16257 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16259 esac
16260 done
16262 ac_aux_dir='$ac_aux_dir'
16263 xsi_shell='$xsi_shell'
16264 lt_shell_append='$lt_shell_append'
16266 # See if we are running on zsh, and set the options which allow our
16267 # commands through without removal of \ escapes INIT.
16268 if test -n "\${ZSH_VERSION+set}" ; then
16269 setopt NO_GLOB_SUBST
16273 PACKAGE='$PACKAGE'
16274 VERSION='$VERSION'
16275 TIMESTAMP='$TIMESTAMP'
16276 RM='$RM'
16277 ofile='$ofile'
16282 GCC="$GCC"
16283 CC="$CC"
16284 acx_cv_header_stdint="$acx_cv_header_stdint"
16285 acx_cv_type_int8_t="$acx_cv_type_int8_t"
16286 acx_cv_type_int16_t="$acx_cv_type_int16_t"
16287 acx_cv_type_int32_t="$acx_cv_type_int32_t"
16288 acx_cv_type_int64_t="$acx_cv_type_int64_t"
16289 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16290 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16291 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16292 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16293 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16294 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16295 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16296 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16297 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16300 _ACEOF
16302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16304 # Handling of arguments.
16305 for ac_config_target in $ac_config_targets
16307 case $ac_config_target in
16308 "auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-config.h" ;;
16309 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16310 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16311 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16312 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
16313 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16314 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16316 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16317 esac
16318 done
16321 # If the user did not use the arguments to specify the items to instantiate,
16322 # then the envvar interface is used. Set only those that are not.
16323 # We use the long form for the default assignment because of an extremely
16324 # bizarre bug on SunOS 4.1.3.
16325 if $ac_need_defaults; then
16326 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16327 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16328 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16331 # Have a temporary directory for convenience. Make it in the build tree
16332 # simply because there is no reason against having it here, and in addition,
16333 # creating and moving files from /tmp can sometimes cause problems.
16334 # Hook for its removal unless debugging.
16335 # Note that there is a small window in which the directory will not be cleaned:
16336 # after its creation but before its name has been assigned to `$tmp'.
16337 $debug ||
16339 tmp=
16340 trap 'exit_status=$?
16341 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16343 trap 'as_fn_exit 1' 1 2 13 15
16345 # Create a (secure) tmp directory for tmp files.
16348 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16349 test -n "$tmp" && test -d "$tmp"
16350 } ||
16352 tmp=./conf$$-$RANDOM
16353 (umask 077 && mkdir "$tmp")
16354 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16356 # Set up the scripts for CONFIG_FILES section.
16357 # No need to generate them if there are no CONFIG_FILES.
16358 # This happens for instance with `./config.status config.h'.
16359 if test -n "$CONFIG_FILES"; then
16362 ac_cr=`echo X | tr X '\015'`
16363 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16364 # But we know of no other shell where ac_cr would be empty at this
16365 # point, so we can use a bashism as a fallback.
16366 if test "x$ac_cr" = x; then
16367 eval ac_cr=\$\'\\r\'
16369 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16370 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16371 ac_cs_awk_cr='\r'
16372 else
16373 ac_cs_awk_cr=$ac_cr
16376 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16377 _ACEOF
16381 echo "cat >conf$$subs.awk <<_ACEOF" &&
16382 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16383 echo "_ACEOF"
16384 } >conf$$subs.sh ||
16385 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16386 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16387 ac_delim='%!_!# '
16388 for ac_last_try in false false false false false :; do
16389 . ./conf$$subs.sh ||
16390 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16392 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16393 if test $ac_delim_n = $ac_delim_num; then
16394 break
16395 elif $ac_last_try; then
16396 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16397 else
16398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16400 done
16401 rm -f conf$$subs.sh
16403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16404 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16405 _ACEOF
16406 sed -n '
16408 s/^/S["/; s/!.*/"]=/
16411 s/^[^!]*!//
16412 :repl
16413 t repl
16414 s/'"$ac_delim"'$//
16415 t delim
16418 s/\(.\{148\}\).*/\1/
16419 t more1
16420 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16423 b repl
16424 :more1
16425 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16428 s/.\{148\}//
16429 t nl
16430 :delim
16432 s/\(.\{148\}\).*/\1/
16433 t more2
16434 s/["\\]/\\&/g; s/^/"/; s/$/"/
16437 :more2
16438 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16441 s/.\{148\}//
16442 t delim
16443 ' <conf$$subs.awk | sed '
16444 /^[^""]/{
16446 s/\n//
16448 ' >>$CONFIG_STATUS || ac_write_fail=1
16449 rm -f conf$$subs.awk
16450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16451 _ACAWK
16452 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16453 for (key in S) S_is_set[key] = 1
16454 FS = "\a"
16458 line = $ 0
16459 nfields = split(line, field, "@")
16460 substed = 0
16461 len = length(field[1])
16462 for (i = 2; i < nfields; i++) {
16463 key = field[i]
16464 keylen = length(key)
16465 if (S_is_set[key]) {
16466 value = S[key]
16467 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16468 len += length(value) + length(field[++i])
16469 substed = 1
16470 } else
16471 len += 1 + keylen
16474 print line
16477 _ACAWK
16478 _ACEOF
16479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16480 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16481 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16482 else
16484 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16485 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16486 _ACEOF
16488 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16489 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16490 # trailing colons and then remove the whole line if VPATH becomes empty
16491 # (actually we leave an empty line to preserve line numbers).
16492 if test "x$srcdir" = x.; then
16493 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16494 s/:*\$(srcdir):*/:/
16495 s/:*\${srcdir}:*/:/
16496 s/:*@srcdir@:*/:/
16497 s/^\([^=]*=[ ]*\):*/\1/
16498 s/:*$//
16499 s/^[^=]*=[ ]*$//
16503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504 fi # test -n "$CONFIG_FILES"
16506 # Set up the scripts for CONFIG_HEADERS section.
16507 # No need to generate them if there are no CONFIG_HEADERS.
16508 # This happens for instance with `./config.status Makefile'.
16509 if test -n "$CONFIG_HEADERS"; then
16510 cat >"$tmp/defines.awk" <<\_ACAWK ||
16511 BEGIN {
16512 _ACEOF
16514 # Transform confdefs.h into an awk script `defines.awk', embedded as
16515 # here-document in config.status, that substitutes the proper values into
16516 # config.h.in to produce config.h.
16518 # Create a delimiter string that does not exist in confdefs.h, to ease
16519 # handling of long lines.
16520 ac_delim='%!_!# '
16521 for ac_last_try in false false :; do
16522 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16523 if test -z "$ac_t"; then
16524 break
16525 elif $ac_last_try; then
16526 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16527 else
16528 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16530 done
16532 # For the awk script, D is an array of macro values keyed by name,
16533 # likewise P contains macro parameters if any. Preserve backslash
16534 # newline sequences.
16536 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16537 sed -n '
16538 s/.\{148\}/&'"$ac_delim"'/g
16539 t rset
16540 :rset
16541 s/^[ ]*#[ ]*define[ ][ ]*/ /
16542 t def
16544 :def
16545 s/\\$//
16546 t bsnl
16547 s/["\\]/\\&/g
16548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16549 D["\1"]=" \3"/p
16550 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16552 :bsnl
16553 s/["\\]/\\&/g
16554 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16555 D["\1"]=" \3\\\\\\n"\\/p
16556 t cont
16557 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16558 t cont
16560 :cont
16562 s/.\{148\}/&'"$ac_delim"'/g
16563 t clear
16564 :clear
16565 s/\\$//
16566 t bsnlc
16567 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16569 :bsnlc
16570 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16571 b cont
16572 ' <confdefs.h | sed '
16573 s/'"$ac_delim"'/"\\\
16574 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16577 for (key in D) D_is_set[key] = 1
16578 FS = "\a"
16580 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16581 line = \$ 0
16582 split(line, arg, " ")
16583 if (arg[1] == "#") {
16584 defundef = arg[2]
16585 mac1 = arg[3]
16586 } else {
16587 defundef = substr(arg[1], 2)
16588 mac1 = arg[2]
16590 split(mac1, mac2, "(") #)
16591 macro = mac2[1]
16592 prefix = substr(line, 1, index(line, defundef) - 1)
16593 if (D_is_set[macro]) {
16594 # Preserve the white space surrounding the "#".
16595 print prefix "define", macro P[macro] D[macro]
16596 next
16597 } else {
16598 # Replace #undef with comments. This is necessary, for example,
16599 # in the case of _POSIX_SOURCE, which is predefined and required
16600 # on some systems where configure will not decide to define it.
16601 if (defundef == "undef") {
16602 print "/*", prefix defundef, macro, "*/"
16603 next
16607 { print }
16608 _ACAWK
16609 _ACEOF
16610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16611 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16612 fi # test -n "$CONFIG_HEADERS"
16615 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16616 shift
16617 for ac_tag
16619 case $ac_tag in
16620 :[FHLC]) ac_mode=$ac_tag; continue;;
16621 esac
16622 case $ac_mode$ac_tag in
16623 :[FHL]*:*);;
16624 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16625 :[FH]-) ac_tag=-:-;;
16626 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16627 esac
16628 ac_save_IFS=$IFS
16629 IFS=:
16630 set x $ac_tag
16631 IFS=$ac_save_IFS
16632 shift
16633 ac_file=$1
16634 shift
16636 case $ac_mode in
16637 :L) ac_source=$1;;
16638 :[FH])
16639 ac_file_inputs=
16640 for ac_f
16642 case $ac_f in
16643 -) ac_f="$tmp/stdin";;
16644 *) # Look for the file first in the build tree, then in the source tree
16645 # (if the path is not absolute). The absolute path cannot be DOS-style,
16646 # because $ac_f cannot contain `:'.
16647 test -f "$ac_f" ||
16648 case $ac_f in
16649 [\\/$]*) false;;
16650 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16651 esac ||
16652 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16653 esac
16654 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16655 as_fn_append ac_file_inputs " '$ac_f'"
16656 done
16658 # Let's still pretend it is `configure' which instantiates (i.e., don't
16659 # use $as_me), people would be surprised to read:
16660 # /* config.h. Generated by config.status. */
16661 configure_input='Generated from '`
16662 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16663 `' by configure.'
16664 if test x"$ac_file" != x-; then
16665 configure_input="$ac_file. $configure_input"
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16667 $as_echo "$as_me: creating $ac_file" >&6;}
16669 # Neutralize special characters interpreted by sed in replacement strings.
16670 case $configure_input in #(
16671 *\&* | *\|* | *\\* )
16672 ac_sed_conf_input=`$as_echo "$configure_input" |
16673 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16674 *) ac_sed_conf_input=$configure_input;;
16675 esac
16677 case $ac_tag in
16678 *:-:* | *:-) cat >"$tmp/stdin" \
16679 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16680 esac
16682 esac
16684 ac_dir=`$as_dirname -- "$ac_file" ||
16685 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16686 X"$ac_file" : 'X\(//\)[^/]' \| \
16687 X"$ac_file" : 'X\(//\)$' \| \
16688 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16689 $as_echo X"$ac_file" |
16690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16691 s//\1/
16694 /^X\(\/\/\)[^/].*/{
16695 s//\1/
16698 /^X\(\/\/\)$/{
16699 s//\1/
16702 /^X\(\/\).*/{
16703 s//\1/
16706 s/.*/./; q'`
16707 as_dir="$ac_dir"; as_fn_mkdir_p
16708 ac_builddir=.
16710 case "$ac_dir" in
16711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16714 # A ".." for each directory in $ac_dir_suffix.
16715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16716 case $ac_top_builddir_sub in
16717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16719 esac ;;
16720 esac
16721 ac_abs_top_builddir=$ac_pwd
16722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16723 # for backward compatibility:
16724 ac_top_builddir=$ac_top_build_prefix
16726 case $srcdir in
16727 .) # We are building in place.
16728 ac_srcdir=.
16729 ac_top_srcdir=$ac_top_builddir_sub
16730 ac_abs_top_srcdir=$ac_pwd ;;
16731 [\\/]* | ?:[\\/]* ) # Absolute name.
16732 ac_srcdir=$srcdir$ac_dir_suffix;
16733 ac_top_srcdir=$srcdir
16734 ac_abs_top_srcdir=$srcdir ;;
16735 *) # Relative name.
16736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16737 ac_top_srcdir=$ac_top_build_prefix$srcdir
16738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16739 esac
16740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16743 case $ac_mode in
16746 # CONFIG_FILE
16749 case $INSTALL in
16750 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16751 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16752 esac
16753 ac_MKDIR_P=$MKDIR_P
16754 case $MKDIR_P in
16755 [\\/$]* | ?:[\\/]* ) ;;
16756 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16757 esac
16758 _ACEOF
16760 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16761 # If the template does not know about datarootdir, expand it.
16762 # FIXME: This hack should be removed a few years after 2.60.
16763 ac_datarootdir_hack=; ac_datarootdir_seen=
16764 ac_sed_dataroot='
16765 /datarootdir/ {
16769 /@datadir@/p
16770 /@docdir@/p
16771 /@infodir@/p
16772 /@localedir@/p
16773 /@mandir@/p'
16774 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16775 *datarootdir*) ac_datarootdir_seen=yes;;
16776 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16778 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16779 _ACEOF
16780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16781 ac_datarootdir_hack='
16782 s&@datadir@&$datadir&g
16783 s&@docdir@&$docdir&g
16784 s&@infodir@&$infodir&g
16785 s&@localedir@&$localedir&g
16786 s&@mandir@&$mandir&g
16787 s&\\\${datarootdir}&$datarootdir&g' ;;
16788 esac
16789 _ACEOF
16791 # Neutralize VPATH when `$srcdir' = `.'.
16792 # Shell code in configure.ac might set extrasub.
16793 # FIXME: do we really want to maintain this feature?
16794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16795 ac_sed_extra="$ac_vpsub
16796 $extrasub
16797 _ACEOF
16798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16801 s|@configure_input@|$ac_sed_conf_input|;t t
16802 s&@top_builddir@&$ac_top_builddir_sub&;t t
16803 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16804 s&@srcdir@&$ac_srcdir&;t t
16805 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16806 s&@top_srcdir@&$ac_top_srcdir&;t t
16807 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16808 s&@builddir@&$ac_builddir&;t t
16809 s&@abs_builddir@&$ac_abs_builddir&;t t
16810 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16811 s&@INSTALL@&$ac_INSTALL&;t t
16812 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16813 $ac_datarootdir_hack
16815 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16816 || as_fn_error "could not create $ac_file" "$LINENO" 5
16818 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16819 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16820 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16822 which seems to be undefined. Please make sure it is defined." >&5
16823 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16824 which seems to be undefined. Please make sure it is defined." >&2;}
16826 rm -f "$tmp/stdin"
16827 case $ac_file in
16828 -) cat "$tmp/out" && rm -f "$tmp/out";;
16829 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16830 esac \
16831 || as_fn_error "could not create $ac_file" "$LINENO" 5
16835 # CONFIG_HEADER
16837 if test x"$ac_file" != x-; then
16839 $as_echo "/* $configure_input */" \
16840 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16841 } >"$tmp/config.h" \
16842 || as_fn_error "could not create $ac_file" "$LINENO" 5
16843 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16845 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16846 else
16847 rm -f "$ac_file"
16848 mv "$tmp/config.h" "$ac_file" \
16849 || as_fn_error "could not create $ac_file" "$LINENO" 5
16851 else
16852 $as_echo "/* $configure_input */" \
16853 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16854 || as_fn_error "could not create -" "$LINENO" 5
16856 # Compute "$ac_file"'s index in $config_headers.
16857 _am_arg="$ac_file"
16858 _am_stamp_count=1
16859 for _am_header in $config_headers :; do
16860 case $_am_header in
16861 $_am_arg | $_am_arg:* )
16862 break ;;
16864 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16865 esac
16866 done
16867 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16868 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16869 X"$_am_arg" : 'X\(//\)[^/]' \| \
16870 X"$_am_arg" : 'X\(//\)$' \| \
16871 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16872 $as_echo X"$_am_arg" |
16873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16874 s//\1/
16877 /^X\(\/\/\)[^/].*/{
16878 s//\1/
16881 /^X\(\/\/\)$/{
16882 s//\1/
16885 /^X\(\/\).*/{
16886 s//\1/
16889 s/.*/./; q'`/stamp-h$_am_stamp_count
16892 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16893 $as_echo "$as_me: executing $ac_file commands" >&6;}
16895 esac
16898 case $ac_file$ac_mode in
16899 "default-1":C)
16900 # Only add multilib support code if we just rebuilt the top-level
16901 # Makefile.
16902 case " $CONFIG_FILES " in
16903 *" Makefile "*)
16904 ac_file=Makefile . ${multi_basedir}/config-ml.in
16906 esac ;;
16907 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16908 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16909 # are listed without --file. Let's play safe and only enable the eval
16910 # if we detect the quoting.
16911 case $CONFIG_FILES in
16912 *\'*) eval set x "$CONFIG_FILES" ;;
16913 *) set x $CONFIG_FILES ;;
16914 esac
16915 shift
16916 for mf
16918 # Strip MF so we end up with the name of the file.
16919 mf=`echo "$mf" | sed -e 's/:.*$//'`
16920 # Check whether this is an Automake generated Makefile or not.
16921 # We used to match only the files named `Makefile.in', but
16922 # some people rename them; so instead we look at the file content.
16923 # Grep'ing the first line is not enough: some people post-process
16924 # each Makefile.in and add a new line on top of each file to say so.
16925 # Grep'ing the whole file is not good either: AIX grep has a line
16926 # limit of 2048, but all sed's we know have understand at least 4000.
16927 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16928 dirpart=`$as_dirname -- "$mf" ||
16929 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16930 X"$mf" : 'X\(//\)[^/]' \| \
16931 X"$mf" : 'X\(//\)$' \| \
16932 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16933 $as_echo X"$mf" |
16934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16935 s//\1/
16938 /^X\(\/\/\)[^/].*/{
16939 s//\1/
16942 /^X\(\/\/\)$/{
16943 s//\1/
16946 /^X\(\/\).*/{
16947 s//\1/
16950 s/.*/./; q'`
16951 else
16952 continue
16954 # Extract the definition of DEPDIR, am__include, and am__quote
16955 # from the Makefile without running `make'.
16956 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16957 test -z "$DEPDIR" && continue
16958 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16959 test -z "am__include" && continue
16960 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16961 # When using ansi2knr, U may be empty or an underscore; expand it
16962 U=`sed -n 's/^U = //p' < "$mf"`
16963 # Find all dependency output files, they are included files with
16964 # $(DEPDIR) in their names. We invoke sed twice because it is the
16965 # simplest approach to changing $(DEPDIR) to its actual value in the
16966 # expansion.
16967 for file in `sed -n "
16968 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16969 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16970 # Make sure the directory exists.
16971 test -f "$dirpart/$file" && continue
16972 fdir=`$as_dirname -- "$file" ||
16973 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16974 X"$file" : 'X\(//\)[^/]' \| \
16975 X"$file" : 'X\(//\)$' \| \
16976 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16977 $as_echo X"$file" |
16978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16979 s//\1/
16982 /^X\(\/\/\)[^/].*/{
16983 s//\1/
16986 /^X\(\/\/\)$/{
16987 s//\1/
16990 /^X\(\/\).*/{
16991 s//\1/
16994 s/.*/./; q'`
16995 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16996 # echo "creating $dirpart/$file"
16997 echo '# dummy' > "$dirpart/$file"
16998 done
16999 done
17002 "libtool":C)
17004 # See if we are running on zsh, and set the options which allow our
17005 # commands through without removal of \ escapes.
17006 if test -n "${ZSH_VERSION+set}" ; then
17007 setopt NO_GLOB_SUBST
17010 cfgfile="${ofile}T"
17011 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17012 $RM "$cfgfile"
17014 cat <<_LT_EOF >> "$cfgfile"
17015 #! $SHELL
17017 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17018 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17020 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17022 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17023 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17024 # Written by Gordon Matzigkeit, 1996
17026 # This file is part of GNU Libtool.
17028 # GNU Libtool is free software; you can redistribute it and/or
17029 # modify it under the terms of the GNU General Public License as
17030 # published by the Free Software Foundation; either version 2 of
17031 # the License, or (at your option) any later version.
17033 # As a special exception to the GNU General Public License,
17034 # if you distribute this file as part of a program or library that
17035 # is built using GNU Libtool, you may include this file under the
17036 # same distribution terms that you use for the rest of that program.
17038 # GNU Libtool is distributed in the hope that it will be useful,
17039 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17040 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17041 # GNU General Public License for more details.
17043 # You should have received a copy of the GNU General Public License
17044 # along with GNU Libtool; see the file COPYING. If not, a copy
17045 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17046 # obtained by writing to the Free Software Foundation, Inc.,
17047 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17050 # The names of the tagged configurations supported by this script.
17051 available_tags=""
17053 # ### BEGIN LIBTOOL CONFIG
17055 # Which release of libtool.m4 was used?
17056 macro_version=$macro_version
17057 macro_revision=$macro_revision
17059 # Whether or not to build shared libraries.
17060 build_libtool_libs=$enable_shared
17062 # Whether or not to build static libraries.
17063 build_old_libs=$enable_static
17065 # What type of objects to build.
17066 pic_mode=$pic_mode
17068 # Whether or not to optimize for fast installation.
17069 fast_install=$enable_fast_install
17071 # Shell to use when invoking shell scripts.
17072 SHELL=$lt_SHELL
17074 # An echo program that protects backslashes.
17075 ECHO=$lt_ECHO
17077 # The host system.
17078 host_alias=$host_alias
17079 host=$host
17080 host_os=$host_os
17082 # The build system.
17083 build_alias=$build_alias
17084 build=$build
17085 build_os=$build_os
17087 # A sed program that does not truncate output.
17088 SED=$lt_SED
17090 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17091 Xsed="\$SED -e 1s/^X//"
17093 # A grep program that handles long lines.
17094 GREP=$lt_GREP
17096 # An ERE matcher.
17097 EGREP=$lt_EGREP
17099 # A literal string matcher.
17100 FGREP=$lt_FGREP
17102 # A BSD- or MS-compatible name lister.
17103 NM=$lt_NM
17105 # Whether we need soft or hard links.
17106 LN_S=$lt_LN_S
17108 # What is the maximum length of a command?
17109 max_cmd_len=$max_cmd_len
17111 # Object file suffix (normally "o").
17112 objext=$ac_objext
17114 # Executable file suffix (normally "").
17115 exeext=$exeext
17117 # whether the shell understands "unset".
17118 lt_unset=$lt_unset
17120 # turn spaces into newlines.
17121 SP2NL=$lt_lt_SP2NL
17123 # turn newlines into spaces.
17124 NL2SP=$lt_lt_NL2SP
17126 # An object symbol dumper.
17127 OBJDUMP=$lt_OBJDUMP
17129 # Method to check whether dependent libraries are shared objects.
17130 deplibs_check_method=$lt_deplibs_check_method
17132 # Command to use when deplibs_check_method == "file_magic".
17133 file_magic_cmd=$lt_file_magic_cmd
17135 # The archiver.
17136 AR=$lt_AR
17137 AR_FLAGS=$lt_AR_FLAGS
17139 # A symbol stripping program.
17140 STRIP=$lt_STRIP
17142 # Commands used to install an old-style archive.
17143 RANLIB=$lt_RANLIB
17144 old_postinstall_cmds=$lt_old_postinstall_cmds
17145 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17147 # Whether to use a lock for old archive extraction.
17148 lock_old_archive_extraction=$lock_old_archive_extraction
17150 # A C compiler.
17151 LTCC=$lt_CC
17153 # LTCC compiler flags.
17154 LTCFLAGS=$lt_CFLAGS
17156 # Take the output of nm and produce a listing of raw symbols and C names.
17157 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17159 # Transform the output of nm in a proper C declaration.
17160 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17162 # Transform the output of nm in a C name address pair.
17163 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17165 # Transform the output of nm in a C name address pair when lib prefix is needed.
17166 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17168 # The name of the directory that contains temporary libtool files.
17169 objdir=$objdir
17171 # Used to examine libraries when file_magic_cmd begins with "file".
17172 MAGIC_CMD=$MAGIC_CMD
17174 # Must we lock files when doing compilation?
17175 need_locks=$lt_need_locks
17177 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17178 DSYMUTIL=$lt_DSYMUTIL
17180 # Tool to change global to local symbols on Mac OS X.
17181 NMEDIT=$lt_NMEDIT
17183 # Tool to manipulate fat objects and archives on Mac OS X.
17184 LIPO=$lt_LIPO
17186 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17187 OTOOL=$lt_OTOOL
17189 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17190 OTOOL64=$lt_OTOOL64
17192 # Old archive suffix (normally "a").
17193 libext=$libext
17195 # Shared library suffix (normally ".so").
17196 shrext_cmds=$lt_shrext_cmds
17198 # The commands to extract the exported symbol list from a shared archive.
17199 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17201 # Variables whose values should be saved in libtool wrapper scripts and
17202 # restored at link time.
17203 variables_saved_for_relink=$lt_variables_saved_for_relink
17205 # Do we need the "lib" prefix for modules?
17206 need_lib_prefix=$need_lib_prefix
17208 # Do we need a version for libraries?
17209 need_version=$need_version
17211 # Library versioning type.
17212 version_type=$version_type
17214 # Shared library runtime path variable.
17215 runpath_var=$runpath_var
17217 # Shared library path variable.
17218 shlibpath_var=$shlibpath_var
17220 # Is shlibpath searched before the hard-coded library search path?
17221 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17223 # Format of library name prefix.
17224 libname_spec=$lt_libname_spec
17226 # List of archive names. First name is the real one, the rest are links.
17227 # The last name is the one that the linker finds with -lNAME
17228 library_names_spec=$lt_library_names_spec
17230 # The coded name of the library, if different from the real name.
17231 soname_spec=$lt_soname_spec
17233 # Permission mode override for installation of shared libraries.
17234 install_override_mode=$lt_install_override_mode
17236 # Command to use after installation of a shared archive.
17237 postinstall_cmds=$lt_postinstall_cmds
17239 # Command to use after uninstallation of a shared archive.
17240 postuninstall_cmds=$lt_postuninstall_cmds
17242 # Commands used to finish a libtool library installation in a directory.
17243 finish_cmds=$lt_finish_cmds
17245 # As "finish_cmds", except a single script fragment to be evaled but
17246 # not shown.
17247 finish_eval=$lt_finish_eval
17249 # Whether we should hardcode library paths into libraries.
17250 hardcode_into_libs=$hardcode_into_libs
17252 # Compile-time system search path for libraries.
17253 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17255 # Run-time system search path for libraries.
17256 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17258 # Whether dlopen is supported.
17259 dlopen_support=$enable_dlopen
17261 # Whether dlopen of programs is supported.
17262 dlopen_self=$enable_dlopen_self
17264 # Whether dlopen of statically linked programs is supported.
17265 dlopen_self_static=$enable_dlopen_self_static
17267 # Commands to strip libraries.
17268 old_striplib=$lt_old_striplib
17269 striplib=$lt_striplib
17272 # The linker used to build libraries.
17273 LD=$lt_LD
17275 # How to create reloadable object files.
17276 reload_flag=$lt_reload_flag
17277 reload_cmds=$lt_reload_cmds
17279 # Commands used to build an old-style archive.
17280 old_archive_cmds=$lt_old_archive_cmds
17282 # A language specific compiler.
17283 CC=$lt_compiler
17285 # Is the compiler the GNU compiler?
17286 with_gcc=$GCC
17288 # Compiler flag to turn off builtin functions.
17289 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17291 # How to pass a linker flag through the compiler.
17292 wl=$lt_lt_prog_compiler_wl
17294 # Additional compiler flags for building library objects.
17295 pic_flag=$lt_lt_prog_compiler_pic
17297 # Compiler flag to prevent dynamic linking.
17298 link_static_flag=$lt_lt_prog_compiler_static
17300 # Does compiler simultaneously support -c and -o options?
17301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17303 # Whether or not to add -lc for building shared libraries.
17304 build_libtool_need_lc=$archive_cmds_need_lc
17306 # Whether or not to disallow shared libs when runtime libs are static.
17307 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17309 # Compiler flag to allow reflexive dlopens.
17310 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17312 # Compiler flag to generate shared objects directly from archives.
17313 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17315 # Whether the compiler copes with passing no objects directly.
17316 compiler_needs_object=$lt_compiler_needs_object
17318 # Create an old-style archive from a shared archive.
17319 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17321 # Create a temporary old-style archive to link instead of a shared archive.
17322 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17324 # Commands used to build a shared archive.
17325 archive_cmds=$lt_archive_cmds
17326 archive_expsym_cmds=$lt_archive_expsym_cmds
17328 # Commands used to build a loadable module if different from building
17329 # a shared archive.
17330 module_cmds=$lt_module_cmds
17331 module_expsym_cmds=$lt_module_expsym_cmds
17333 # Whether we are building with GNU ld or not.
17334 with_gnu_ld=$lt_with_gnu_ld
17336 # Flag that allows shared libraries with undefined symbols to be built.
17337 allow_undefined_flag=$lt_allow_undefined_flag
17339 # Flag that enforces no undefined symbols.
17340 no_undefined_flag=$lt_no_undefined_flag
17342 # Flag to hardcode \$libdir into a binary during linking.
17343 # This must work even if \$libdir does not exist
17344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17346 # If ld is used when linking, flag to hardcode \$libdir into a binary
17347 # during linking. This must work even if \$libdir does not exist.
17348 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17350 # Whether we need a single "-rpath" flag with a separated argument.
17351 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17353 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17354 # DIR into the resulting binary.
17355 hardcode_direct=$hardcode_direct
17357 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17358 # DIR into the resulting binary and the resulting library dependency is
17359 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17360 # library is relocated.
17361 hardcode_direct_absolute=$hardcode_direct_absolute
17363 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17364 # into the resulting binary.
17365 hardcode_minus_L=$hardcode_minus_L
17367 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17368 # into the resulting binary.
17369 hardcode_shlibpath_var=$hardcode_shlibpath_var
17371 # Set to "yes" if building a shared library automatically hardcodes DIR
17372 # into the library and all subsequent libraries and executables linked
17373 # against it.
17374 hardcode_automatic=$hardcode_automatic
17376 # Set to yes if linker adds runtime paths of dependent libraries
17377 # to runtime path list.
17378 inherit_rpath=$inherit_rpath
17380 # Whether libtool must link a program against all its dependency libraries.
17381 link_all_deplibs=$link_all_deplibs
17383 # Fix the shell variable \$srcfile for the compiler.
17384 fix_srcfile_path=$lt_fix_srcfile_path
17386 # Set to "yes" if exported symbols are required.
17387 always_export_symbols=$always_export_symbols
17389 # The commands to list exported symbols.
17390 export_symbols_cmds=$lt_export_symbols_cmds
17392 # Symbols that should not be listed in the preloaded symbols.
17393 exclude_expsyms=$lt_exclude_expsyms
17395 # Symbols that must always be exported.
17396 include_expsyms=$lt_include_expsyms
17398 # Commands necessary for linking programs (against libraries) with templates.
17399 prelink_cmds=$lt_prelink_cmds
17401 # Specify filename containing input files.
17402 file_list_spec=$lt_file_list_spec
17404 # How to hardcode a shared library path into an executable.
17405 hardcode_action=$hardcode_action
17407 # ### END LIBTOOL CONFIG
17409 _LT_EOF
17411 case $host_os in
17412 aix3*)
17413 cat <<\_LT_EOF >> "$cfgfile"
17414 # AIX sometimes has problems with the GCC collect2 program. For some
17415 # reason, if we set the COLLECT_NAMES environment variable, the problems
17416 # vanish in a puff of smoke.
17417 if test "X${COLLECT_NAMES+set}" != Xset; then
17418 COLLECT_NAMES=
17419 export COLLECT_NAMES
17421 _LT_EOF
17423 esac
17426 ltmain="$ac_aux_dir/ltmain.sh"
17429 # We use sed instead of cat because bash on DJGPP gets confused if
17430 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17431 # text mode, it properly converts lines to CR/LF. This bash problem
17432 # is reportedly fixed, but why not run on old versions too?
17433 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17434 || (rm -f "$cfgfile"; exit 1)
17436 case $xsi_shell in
17437 yes)
17438 cat << \_LT_EOF >> "$cfgfile"
17440 # func_dirname file append nondir_replacement
17441 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17442 # otherwise set result to NONDIR_REPLACEMENT.
17443 func_dirname ()
17445 case ${1} in
17446 */*) func_dirname_result="${1%/*}${2}" ;;
17447 * ) func_dirname_result="${3}" ;;
17448 esac
17451 # func_basename file
17452 func_basename ()
17454 func_basename_result="${1##*/}"
17457 # func_dirname_and_basename file append nondir_replacement
17458 # perform func_basename and func_dirname in a single function
17459 # call:
17460 # dirname: Compute the dirname of FILE. If nonempty,
17461 # add APPEND to the result, otherwise set result
17462 # to NONDIR_REPLACEMENT.
17463 # value returned in "$func_dirname_result"
17464 # basename: Compute filename of FILE.
17465 # value retuned in "$func_basename_result"
17466 # Implementation must be kept synchronized with func_dirname
17467 # and func_basename. For efficiency, we do not delegate to
17468 # those functions but instead duplicate the functionality here.
17469 func_dirname_and_basename ()
17471 case ${1} in
17472 */*) func_dirname_result="${1%/*}${2}" ;;
17473 * ) func_dirname_result="${3}" ;;
17474 esac
17475 func_basename_result="${1##*/}"
17478 # func_stripname prefix suffix name
17479 # strip PREFIX and SUFFIX off of NAME.
17480 # PREFIX and SUFFIX must not contain globbing or regex special
17481 # characters, hashes, percent signs, but SUFFIX may contain a leading
17482 # dot (in which case that matches only a dot).
17483 func_stripname ()
17485 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17486 # positional parameters, so assign one to ordinary parameter first.
17487 func_stripname_result=${3}
17488 func_stripname_result=${func_stripname_result#"${1}"}
17489 func_stripname_result=${func_stripname_result%"${2}"}
17492 # func_opt_split
17493 func_opt_split ()
17495 func_opt_split_opt=${1%%=*}
17496 func_opt_split_arg=${1#*=}
17499 # func_lo2o object
17500 func_lo2o ()
17502 case ${1} in
17503 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17504 *) func_lo2o_result=${1} ;;
17505 esac
17508 # func_xform libobj-or-source
17509 func_xform ()
17511 func_xform_result=${1%.*}.lo
17514 # func_arith arithmetic-term...
17515 func_arith ()
17517 func_arith_result=$(( $* ))
17520 # func_len string
17521 # STRING may not start with a hyphen.
17522 func_len ()
17524 func_len_result=${#1}
17527 _LT_EOF
17529 *) # Bourne compatible functions.
17530 cat << \_LT_EOF >> "$cfgfile"
17532 # func_dirname file append nondir_replacement
17533 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17534 # otherwise set result to NONDIR_REPLACEMENT.
17535 func_dirname ()
17537 # Extract subdirectory from the argument.
17538 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17539 if test "X$func_dirname_result" = "X${1}"; then
17540 func_dirname_result="${3}"
17541 else
17542 func_dirname_result="$func_dirname_result${2}"
17546 # func_basename file
17547 func_basename ()
17549 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17553 # func_stripname prefix suffix name
17554 # strip PREFIX and SUFFIX off of NAME.
17555 # PREFIX and SUFFIX must not contain globbing or regex special
17556 # characters, hashes, percent signs, but SUFFIX may contain a leading
17557 # dot (in which case that matches only a dot).
17558 # func_strip_suffix prefix name
17559 func_stripname ()
17561 case ${2} in
17562 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17563 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17564 esac
17567 # sed scripts:
17568 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17569 my_sed_long_arg='1s/^-[^=]*=//'
17571 # func_opt_split
17572 func_opt_split ()
17574 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17575 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17578 # func_lo2o object
17579 func_lo2o ()
17581 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17584 # func_xform libobj-or-source
17585 func_xform ()
17587 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17590 # func_arith arithmetic-term...
17591 func_arith ()
17593 func_arith_result=`expr "$@"`
17596 # func_len string
17597 # STRING may not start with a hyphen.
17598 func_len ()
17600 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17603 _LT_EOF
17604 esac
17606 case $lt_shell_append in
17607 yes)
17608 cat << \_LT_EOF >> "$cfgfile"
17610 # func_append var value
17611 # Append VALUE to the end of shell variable VAR.
17612 func_append ()
17614 eval "$1+=\$2"
17616 _LT_EOF
17619 cat << \_LT_EOF >> "$cfgfile"
17621 # func_append var value
17622 # Append VALUE to the end of shell variable VAR.
17623 func_append ()
17625 eval "$1=\$$1\$2"
17628 _LT_EOF
17630 esac
17633 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17634 || (rm -f "$cfgfile"; exit 1)
17636 mv -f "$cfgfile" "$ofile" ||
17637 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17638 chmod +x "$ofile"
17641 "gstdint.h":C)
17642 if test "$GCC" = yes; then
17643 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
17644 else
17645 echo "/* generated for $CC */" > tmp-stdint.h
17648 sed 's/^ *//' >> tmp-stdint.h <<EOF
17650 #ifndef GCC_GENERATED_STDINT_H
17651 #define GCC_GENERATED_STDINT_H 1
17653 #include <sys/types.h>
17656 if test "$acx_cv_header_stdint" != stdint.h; then
17657 echo "#include <stddef.h>" >> tmp-stdint.h
17659 if test "$acx_cv_header_stdint" != stddef.h; then
17660 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
17663 sed 's/^ *//' >> tmp-stdint.h <<EOF
17664 /* glibc uses these symbols as guards to prevent redefinitions. */
17665 #ifdef __int8_t_defined
17666 #define _INT8_T
17667 #define _INT16_T
17668 #define _INT32_T
17669 #endif
17670 #ifdef __uint32_t_defined
17671 #define _UINT32_T
17672 #endif
17676 # ----------------- done header, emit basic int types -------------
17677 if test "$acx_cv_header_stdint" = stddef.h; then
17678 sed 's/^ *//' >> tmp-stdint.h <<EOF
17680 #ifndef _UINT8_T
17681 #define _UINT8_T
17682 #ifndef __uint8_t_defined
17683 #define __uint8_t_defined
17684 #ifndef uint8_t
17685 typedef unsigned $acx_cv_type_int8_t uint8_t;
17686 #endif
17687 #endif
17688 #endif
17690 #ifndef _UINT16_T
17691 #define _UINT16_T
17692 #ifndef __uint16_t_defined
17693 #define __uint16_t_defined
17694 #ifndef uint16_t
17695 typedef unsigned $acx_cv_type_int16_t uint16_t;
17696 #endif
17697 #endif
17698 #endif
17700 #ifndef _UINT32_T
17701 #define _UINT32_T
17702 #ifndef __uint32_t_defined
17703 #define __uint32_t_defined
17704 #ifndef uint32_t
17705 typedef unsigned $acx_cv_type_int32_t uint32_t;
17706 #endif
17707 #endif
17708 #endif
17710 #ifndef _INT8_T
17711 #define _INT8_T
17712 #ifndef __int8_t_defined
17713 #define __int8_t_defined
17714 #ifndef int8_t
17715 typedef $acx_cv_type_int8_t int8_t;
17716 #endif
17717 #endif
17718 #endif
17720 #ifndef _INT16_T
17721 #define _INT16_T
17722 #ifndef __int16_t_defined
17723 #define __int16_t_defined
17724 #ifndef int16_t
17725 typedef $acx_cv_type_int16_t int16_t;
17726 #endif
17727 #endif
17728 #endif
17730 #ifndef _INT32_T
17731 #define _INT32_T
17732 #ifndef __int32_t_defined
17733 #define __int32_t_defined
17734 #ifndef int32_t
17735 typedef $acx_cv_type_int32_t int32_t;
17736 #endif
17737 #endif
17738 #endif
17740 elif test "$ac_cv_type_u_int32_t" = yes; then
17741 sed 's/^ *//' >> tmp-stdint.h <<EOF
17743 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
17744 #ifndef _INT8_T
17745 #define _INT8_T
17746 #endif
17747 #ifndef _INT16_T
17748 #define _INT16_T
17749 #endif
17750 #ifndef _INT32_T
17751 #define _INT32_T
17752 #endif
17754 #ifndef _UINT8_T
17755 #define _UINT8_T
17756 #ifndef __uint8_t_defined
17757 #define __uint8_t_defined
17758 #ifndef uint8_t
17759 typedef u_int8_t uint8_t;
17760 #endif
17761 #endif
17762 #endif
17764 #ifndef _UINT16_T
17765 #define _UINT16_T
17766 #ifndef __uint16_t_defined
17767 #define __uint16_t_defined
17768 #ifndef uint16_t
17769 typedef u_int16_t uint16_t;
17770 #endif
17771 #endif
17772 #endif
17774 #ifndef _UINT32_T
17775 #define _UINT32_T
17776 #ifndef __uint32_t_defined
17777 #define __uint32_t_defined
17778 #ifndef uint32_t
17779 typedef u_int32_t uint32_t;
17780 #endif
17781 #endif
17782 #endif
17784 else
17785 sed 's/^ *//' >> tmp-stdint.h <<EOF
17787 /* Some systems have guard macros to prevent redefinitions, define them. */
17788 #ifndef _INT8_T
17789 #define _INT8_T
17790 #endif
17791 #ifndef _INT16_T
17792 #define _INT16_T
17793 #endif
17794 #ifndef _INT32_T
17795 #define _INT32_T
17796 #endif
17797 #ifndef _UINT8_T
17798 #define _UINT8_T
17799 #endif
17800 #ifndef _UINT16_T
17801 #define _UINT16_T
17802 #endif
17803 #ifndef _UINT32_T
17804 #define _UINT32_T
17805 #endif
17809 # ------------- done basic int types, emit int64_t types ------------
17810 if test "$ac_cv_type_uint64_t" = yes; then
17811 sed 's/^ *//' >> tmp-stdint.h <<EOF
17813 /* system headers have good uint64_t and int64_t */
17814 #ifndef _INT64_T
17815 #define _INT64_T
17816 #endif
17817 #ifndef _UINT64_T
17818 #define _UINT64_T
17819 #endif
17821 elif test "$ac_cv_type_u_int64_t" = yes; then
17822 sed 's/^ *//' >> tmp-stdint.h <<EOF
17824 /* system headers have an u_int64_t (and int64_t) */
17825 #ifndef _INT64_T
17826 #define _INT64_T
17827 #endif
17828 #ifndef _UINT64_T
17829 #define _UINT64_T
17830 #ifndef __uint64_t_defined
17831 #define __uint64_t_defined
17832 #ifndef uint64_t
17833 typedef u_int64_t uint64_t;
17834 #endif
17835 #endif
17836 #endif
17838 elif test -n "$acx_cv_type_int64_t"; then
17839 sed 's/^ *//' >> tmp-stdint.h <<EOF
17841 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
17842 #ifndef _INT64_T
17843 #define _INT64_T
17844 #ifndef int64_t
17845 typedef $acx_cv_type_int64_t int64_t;
17846 #endif
17847 #endif
17848 #ifndef _UINT64_T
17849 #define _UINT64_T
17850 #ifndef __uint64_t_defined
17851 #define __uint64_t_defined
17852 #ifndef uint64_t
17853 typedef unsigned $acx_cv_type_int64_t uint64_t;
17854 #endif
17855 #endif
17856 #endif
17858 else
17859 sed 's/^ *//' >> tmp-stdint.h <<EOF
17861 /* some common heuristics for int64_t, using compiler-specific tests */
17862 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
17863 #ifndef _INT64_T
17864 #define _INT64_T
17865 #ifndef __int64_t_defined
17866 #ifndef int64_t
17867 typedef long long int64_t;
17868 #endif
17869 #endif
17870 #endif
17871 #ifndef _UINT64_T
17872 #define _UINT64_T
17873 #ifndef uint64_t
17874 typedef unsigned long long uint64_t;
17875 #endif
17876 #endif
17878 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
17879 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
17880 does not implement __extension__. But that compiler doesn't define
17881 __GNUC_MINOR__. */
17882 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
17883 # define __extension__
17884 # endif
17886 # ifndef _INT64_T
17887 # define _INT64_T
17888 # ifndef int64_t
17889 __extension__ typedef long long int64_t;
17890 # endif
17891 # endif
17892 # ifndef _UINT64_T
17893 # define _UINT64_T
17894 # ifndef uint64_t
17895 __extension__ typedef unsigned long long uint64_t;
17896 # endif
17897 # endif
17899 #elif !defined __STRICT_ANSI__
17900 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
17902 # ifndef _INT64_T
17903 # define _INT64_T
17904 # ifndef int64_t
17905 typedef __int64 int64_t;
17906 # endif
17907 # endif
17908 # ifndef _UINT64_T
17909 # define _UINT64_T
17910 # ifndef uint64_t
17911 typedef unsigned __int64 uint64_t;
17912 # endif
17913 # endif
17914 # endif /* compiler */
17916 #endif /* ANSI version */
17920 # ------------- done int64_t types, emit intptr types ------------
17921 if test "$ac_cv_type_uintptr_t" != yes; then
17922 sed 's/^ *//' >> tmp-stdint.h <<EOF
17924 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
17925 #ifndef __uintptr_t_defined
17926 #ifndef uintptr_t
17927 typedef u$acx_cv_type_intptr_t uintptr_t;
17928 #endif
17929 #endif
17930 #ifndef __intptr_t_defined
17931 #ifndef intptr_t
17932 typedef $acx_cv_type_intptr_t intptr_t;
17933 #endif
17934 #endif
17938 # ------------- done intptr types, emit int_least types ------------
17939 if test "$ac_cv_type_int_least32_t" != yes; then
17940 sed 's/^ *//' >> tmp-stdint.h <<EOF
17942 /* Define int_least types */
17943 typedef int8_t int_least8_t;
17944 typedef int16_t int_least16_t;
17945 typedef int32_t int_least32_t;
17946 #ifdef _INT64_T
17947 typedef int64_t int_least64_t;
17948 #endif
17950 typedef uint8_t uint_least8_t;
17951 typedef uint16_t uint_least16_t;
17952 typedef uint32_t uint_least32_t;
17953 #ifdef _UINT64_T
17954 typedef uint64_t uint_least64_t;
17955 #endif
17959 # ------------- done intptr types, emit int_fast types ------------
17960 if test "$ac_cv_type_int_fast32_t" != yes; then
17961 sed 's/^ *//' >> tmp-stdint.h <<EOF
17963 /* Define int_fast types. short is often slow */
17964 typedef int8_t int_fast8_t;
17965 typedef int int_fast16_t;
17966 typedef int32_t int_fast32_t;
17967 #ifdef _INT64_T
17968 typedef int64_t int_fast64_t;
17969 #endif
17971 typedef uint8_t uint_fast8_t;
17972 typedef unsigned int uint_fast16_t;
17973 typedef uint32_t uint_fast32_t;
17974 #ifdef _UINT64_T
17975 typedef uint64_t uint_fast64_t;
17976 #endif
17980 if test "$ac_cv_type_uintmax_t" != yes; then
17981 sed 's/^ *//' >> tmp-stdint.h <<EOF
17983 /* Define intmax based on what we found */
17984 #ifndef intmax_t
17985 #ifdef _INT64_T
17986 typedef int64_t intmax_t;
17987 #else
17988 typedef long intmax_t;
17989 #endif
17990 #endif
17991 #ifndef uintmax_t
17992 #ifdef _UINT64_T
17993 typedef uint64_t uintmax_t;
17994 #else
17995 typedef unsigned long uintmax_t;
17996 #endif
17997 #endif
18001 sed 's/^ *//' >> tmp-stdint.h <<EOF
18003 #endif /* GCC_GENERATED_STDINT_H */
18006 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
18007 rm -f tmp-stdint.h
18008 else
18009 mv -f tmp-stdint.h gstdint.h
18014 esac
18015 done # for ac_tag
18018 as_fn_exit 0
18019 _ACEOF
18020 ac_clean_files=$ac_clean_files_save
18022 test $ac_write_fail = 0 ||
18023 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18026 # configure is writing to config.log, and then calls config.status.
18027 # config.status does its own redirection, appending to config.log.
18028 # Unfortunately, on DOS this fails, as config.log is still kept open
18029 # by configure, so config.status won't be able to write to it; its
18030 # output is simply discarded. So we exec the FD to /dev/null,
18031 # effectively closing config.log, so it can be properly (re)opened and
18032 # appended to by config.status. When coming back to configure, we
18033 # need to make the FD available again.
18034 if test "$no_create" != yes; then
18035 ac_cs_success=:
18036 ac_config_status_args=
18037 test "$silent" = yes &&
18038 ac_config_status_args="$ac_config_status_args --quiet"
18039 exec 5>/dev/null
18040 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18041 exec 5>>config.log
18042 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18043 # would make configure fail if this is the last instruction.
18044 $ac_cs_success || as_fn_exit $?
18046 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18048 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}