2014-04-14 Richard Biener <rguenther@suse.de>
[official-gcc.git] / libatomic / configure
blobd707b096c2ecbc5ac9bb9049cdbd0a555839935e
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
631 OTOOL64
632 OTOOL
633 LIPO
634 NMEDIT
635 DSYMUTIL
636 OBJDUMP
637 LN_S
638 ac_ct_DUMPBIN
639 DUMPBIN
641 FGREP
642 EGREP
643 GREP
645 LIBTOOL
646 PERL
647 RANLIB
650 am__fastdepCCAS_FALSE
651 am__fastdepCCAS_TRUE
652 CCASDEPMODE
653 CCASFLAGS
654 CCAS
655 am__fastdepCC_FALSE
656 am__fastdepCC_TRUE
657 CCDEPMODE
658 AMDEPBACKSLASH
659 AMDEP_FALSE
660 AMDEP_TRUE
661 am__quote
662 am__include
663 DEPDIR
664 OBJEXT
665 EXEEXT
666 ac_ct_CC
667 CPPFLAGS
668 LDFLAGS
669 CFLAGS
671 toolexeclibdir
672 toolexecdir
673 multi_basedir
674 am__untar
675 am__tar
676 AMTAR
677 am__leading_dot
678 SET_MAKE
680 mkdir_p
681 MKDIR_P
682 INSTALL_STRIP_PROGRAM
683 STRIP
684 install_sh
685 MAKEINFO
686 AUTOHEADER
687 AUTOMAKE
688 AUTOCONF
689 ACLOCAL
690 VERSION
691 PACKAGE
692 CYGPATH_W
693 am__isrc
694 INSTALL_DATA
695 INSTALL_SCRIPT
696 INSTALL_PROGRAM
697 target_os
698 target_vendor
699 target_cpu
700 target
701 host_os
702 host_vendor
703 host_cpu
704 host
705 build_os
706 build_vendor
707 build_cpu
708 build
709 GENINSRC_FALSE
710 GENINSRC_TRUE
711 target_alias
712 host_alias
713 build_alias
714 LIBS
715 ECHO_T
716 ECHO_N
717 ECHO_C
718 DEFS
719 mandir
720 localedir
721 libdir
722 psdir
723 pdfdir
724 dvidir
725 htmldir
726 infodir
727 docdir
728 oldincludedir
729 includedir
730 localstatedir
731 sharedstatedir
732 sysconfdir
733 datadir
734 datarootdir
735 libexecdir
736 sbindir
737 bindir
738 program_transform_name
739 prefix
740 exec_prefix
741 PACKAGE_URL
742 PACKAGE_BUGREPORT
743 PACKAGE_STRING
744 PACKAGE_VERSION
745 PACKAGE_TARNAME
746 PACKAGE_NAME
747 PATH_SEPARATOR
748 SHELL'
749 ac_subst_files=''
750 ac_user_opts='
751 enable_option_checking
752 enable_version_specific_runtime_libs
753 enable_generated_files_in_srcdir
754 enable_multilib
755 enable_dependency_tracking
756 enable_shared
757 enable_static
758 with_pic
759 enable_fast_install
760 with_gnu_ld
761 enable_libtool_lock
762 enable_maintainer_mode
763 enable_symvers
765 ac_precious_vars='build_alias
766 host_alias
767 target_alias
769 CPPFLAGS'
772 # Initialize some variables set by options.
773 ac_init_help=
774 ac_init_version=false
775 ac_unrecognized_opts=
776 ac_unrecognized_sep=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
779 cache_file=/dev/null
780 exec_prefix=NONE
781 no_create=
782 no_recursion=
783 prefix=NONE
784 program_prefix=NONE
785 program_suffix=NONE
786 program_transform_name=s,x,x,
787 silent=
788 site=
789 srcdir=
790 verbose=
791 x_includes=NONE
792 x_libraries=NONE
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811 infodir='${datarootdir}/info'
812 htmldir='${docdir}'
813 dvidir='${docdir}'
814 pdfdir='${docdir}'
815 psdir='${docdir}'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
820 ac_prev=
821 ac_dashdash=
822 for ac_option
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\$ac_option
827 ac_prev=
828 continue
831 case $ac_option in
832 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
833 *) ac_optarg=yes ;;
834 esac
836 # Accept the important Cygnus configure options, so we can diagnose typos.
838 case $ac_dashdash$ac_option in
840 ac_dashdash=yes ;;
842 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 ac_prev=bindir ;;
844 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
845 bindir=$ac_optarg ;;
847 -build | --build | --buil | --bui | --bu)
848 ac_prev=build_alias ;;
849 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
850 build_alias=$ac_optarg ;;
852 -cache-file | --cache-file | --cache-fil | --cache-fi \
853 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
854 ac_prev=cache_file ;;
855 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
856 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
857 cache_file=$ac_optarg ;;
859 --config-cache | -C)
860 cache_file=config.cache ;;
862 -datadir | --datadir | --datadi | --datad)
863 ac_prev=datadir ;;
864 -datadir=* | --datadir=* | --datadi=* | --datad=*)
865 datadir=$ac_optarg ;;
867 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
868 | --dataroo | --dataro | --datar)
869 ac_prev=datarootdir ;;
870 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
871 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
872 datarootdir=$ac_optarg ;;
874 -disable-* | --disable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
883 "enable_$ac_useropt"
884 "*) ;;
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
887 esac
888 eval enable_$ac_useropt=no ;;
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
900 -enable-* | --enable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=\$ac_optarg ;;
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
927 with_gas=yes ;;
929 -help | --help | --hel | --he | -h)
930 ac_init_help=long ;;
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 ac_prev=htmldir ;;
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 | --ht=*)
945 htmldir=$ac_optarg ;;
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 ac_prev=infodir ;;
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
959 -libdir | --libdir | --libdi | --libd)
960 ac_prev=libdir ;;
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
962 libdir=$ac_optarg ;;
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
971 -localedir | --localedir | --localedi | --localed | --locale)
972 ac_prev=localedir ;;
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 ac_prev=mandir ;;
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 mandir=$ac_optarg ;;
988 -nfp | --nfp | --nf)
989 # Obsolete; use --without-fp.
990 with_fp=no ;;
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
994 no_create=yes ;;
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 no_recursion=yes ;;
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 ac_prev=prefix ;;
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 ac_prev=pdfdir ;;
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1050 -psdir | --psdir | --psdi | --psd | --ps)
1051 ac_prev=psdir ;;
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 psdir=$ac_optarg ;;
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 silent=yes ;;
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 ac_prev=sbindir ;;
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 | --sbi=* | --sb=*)
1063 sbindir=$ac_optarg ;;
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1068 | --sha | --sh)
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 | --sha=* | --sh=*)
1074 sharedstatedir=$ac_optarg ;;
1076 -site | --site | --sit)
1077 ac_prev=site ;;
1078 -site=* | --site=* | --sit=*)
1079 site=$ac_optarg ;;
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 ac_prev=srcdir ;;
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 verbose=yes ;;
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1104 -with-* | --with-*)
1105 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108 as_fn_error "invalid package name: $ac_useropt"
1109 ac_useropt_orig=$ac_useropt
1110 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111 case $ac_user_opts in
1113 "with_$ac_useropt"
1114 "*) ;;
1115 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1116 ac_unrecognized_sep=', ';;
1117 esac
1118 eval with_$ac_useropt=\$ac_optarg ;;
1120 -without-* | --without-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=no ;;
1136 --x)
1137 # Obsolete; use --with-x.
1138 with_x=yes ;;
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1154 -*) as_fn_error "unrecognized option: \`$ac_option'
1155 Try \`$0 --help' for more information."
1158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 case $ac_envvar in #(
1162 '' | [0-9]* | *[!_$as_cr_alnum]* )
1163 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1164 esac
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176 esac
1177 done
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 as_fn_error "missing argument to $ac_option"
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1186 no) ;;
1187 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1188 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1189 esac
1192 # Check all directory arguments for consistency.
1193 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1194 datadir sysconfdir sharedstatedir localstatedir includedir \
1195 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1196 libdir localedir mandir
1198 eval ac_val=\$$ac_var
1199 # Remove trailing slashes.
1200 case $ac_val in
1201 */ )
1202 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1203 eval $ac_var=\$ac_val;;
1204 esac
1205 # Be sure to have absolute directory names.
1206 case $ac_val in
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1209 esac
1210 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1211 done
1213 # There might be people who depend on the old broken behavior: `$host'
1214 # used to hold the argument of --host etc.
1215 # FIXME: To remove some day.
1216 build=$build_alias
1217 host=$host_alias
1218 target=$target_alias
1220 # FIXME: To remove some day.
1221 if test "x$host_alias" != x; then
1222 if test "x$build_alias" = x; then
1223 cross_compiling=maybe
1224 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1225 If a cross compiler is detected then cross compile mode will be used." >&2
1226 elif test "x$build_alias" != "x$host_alias"; then
1227 cross_compiling=yes
1231 ac_tool_prefix=
1232 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234 test "$silent" = yes && exec 6>/dev/null
1237 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238 ac_ls_di=`ls -di .` &&
1239 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240 as_fn_error "working directory cannot be determined"
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 as_fn_error "pwd does not report name of working directory"
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 s//\1/
1259 /^X\(\/\/\)[^/].*/{
1260 s//\1/
1263 /^X\(\/\/\)$/{
1264 s//\1/
1267 /^X\(\/\).*/{
1268 s//\1/
1271 s/.*/./; q'`
1272 srcdir=$ac_confdir
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 srcdir=..
1276 else
1277 ac_srcdir_defaulted=no
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1283 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 ac_abs_confdir=`(
1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1286 pwd)`
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1289 srcdir=.
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1294 case $srcdir in
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296 esac
1297 for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302 done
1305 # Report the --help message.
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1310 cat <<_ACEOF
1311 \`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems.
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1318 Defaults for the options are specified in brackets.
1320 Configuration:
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1335 [PREFIX]
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1342 For better control, use the options below.
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1364 _ACEOF
1366 cat <<\_ACEOF
1368 Program names:
1369 --program-prefix=PREFIX prepend PREFIX to installed program names
1370 --program-suffix=SUFFIX append SUFFIX to installed program names
1371 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1373 System types:
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1376 --target=TARGET configure for building compilers for TARGET [HOST]
1377 _ACEOF
1380 if test -n "$ac_init_help"; then
1381 case $ac_init_help in
1382 short | recursive ) echo "Configuration of GNU Atomic Library 1.0:";;
1383 esac
1384 cat <<\_ACEOF
1386 Optional Features:
1387 --disable-option-checking ignore unrecognized --enable/--with options
1388 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1389 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1390 --enable-version-specific-runtime-libs
1391 Specify that runtime libraries should be installed
1392 in a compiler-specific directory [default=no]
1393 --enable-generated-files-in-srcdir
1394 put copies of generated files in source dir intended
1395 for creating source tarballs for users without
1396 texinfo bison or flex. [default=no]
1397 --enable-multilib build many library versions (default)
1398 --disable-dependency-tracking speeds up one-time build
1399 --enable-dependency-tracking do not reject slow dependency extractors
1400 --enable-shared[=PKGS] build shared libraries [default=yes]
1401 --enable-static[=PKGS] build static libraries [default=yes]
1402 --enable-fast-install[=PKGS]
1403 optimize for fast installation [default=yes]
1404 --disable-libtool-lock avoid locking (might break parallel builds)
1405 --enable-maintainer-mode enable make rules and dependencies not useful
1406 (and sometimes confusing) to the casual installer
1407 --enable-symvers=STYLE enables symbol versioning of the shared library
1408 [default=yes]
1410 Optional Packages:
1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1413 --with-pic try to use only PIC/non-PIC objects [default=use
1414 both]
1415 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1417 Some influential environment variables:
1418 CC C compiler command
1419 CFLAGS C compiler flags
1420 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1421 nonstandard directory <lib dir>
1422 LIBS libraries to pass to the linker, e.g. -l<library>
1423 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1424 you have headers in a nonstandard directory <include dir>
1425 CCAS assembler compiler command (defaults to CC)
1426 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1427 CPP C preprocessor
1429 Use these variables to override the choices made by `configure' or to help
1430 it to find libraries and programs with nonstandard names/locations.
1432 Report bugs to the package provider.
1433 GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
1434 General help using GNU software: <http://www.gnu.org/gethelp/>.
1435 _ACEOF
1436 ac_status=$?
1439 if test "$ac_init_help" = "recursive"; then
1440 # If there are subdirs, report their specific --help.
1441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442 test -d "$ac_dir" ||
1443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1444 continue
1445 ac_builddir=.
1447 case "$ac_dir" in
1448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1451 # A ".." for each directory in $ac_dir_suffix.
1452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1453 case $ac_top_builddir_sub in
1454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1456 esac ;;
1457 esac
1458 ac_abs_top_builddir=$ac_pwd
1459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1460 # for backward compatibility:
1461 ac_top_builddir=$ac_top_build_prefix
1463 case $srcdir in
1464 .) # We are building in place.
1465 ac_srcdir=.
1466 ac_top_srcdir=$ac_top_builddir_sub
1467 ac_abs_top_srcdir=$ac_pwd ;;
1468 [\\/]* | ?:[\\/]* ) # Absolute name.
1469 ac_srcdir=$srcdir$ac_dir_suffix;
1470 ac_top_srcdir=$srcdir
1471 ac_abs_top_srcdir=$srcdir ;;
1472 *) # Relative name.
1473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1474 ac_top_srcdir=$ac_top_build_prefix$srcdir
1475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476 esac
1477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479 cd "$ac_dir" || { ac_status=$?; continue; }
1480 # Check for guested configure.
1481 if test -f "$ac_srcdir/configure.gnu"; then
1482 echo &&
1483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1484 elif test -f "$ac_srcdir/configure"; then
1485 echo &&
1486 $SHELL "$ac_srcdir/configure" --help=recursive
1487 else
1488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489 fi || ac_status=$?
1490 cd "$ac_pwd" || { ac_status=$?; break; }
1491 done
1494 test -n "$ac_init_help" && exit $ac_status
1495 if $ac_init_version; then
1496 cat <<\_ACEOF
1497 GNU Atomic Library configure 1.0
1498 generated by GNU Autoconf 2.64
1500 Copyright (C) 2009 Free Software Foundation, Inc.
1501 This configure script is free software; the Free Software Foundation
1502 gives unlimited permission to copy, distribute and modify it.
1503 _ACEOF
1504 exit
1507 ## ------------------------ ##
1508 ## Autoconf initialization. ##
1509 ## ------------------------ ##
1511 # ac_fn_c_try_compile LINENO
1512 # --------------------------
1513 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1514 ac_fn_c_try_compile ()
1516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1517 rm -f conftest.$ac_objext
1518 if { { ac_try="$ac_compile"
1519 case "(($ac_try" in
1520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1521 *) ac_try_echo=$ac_try;;
1522 esac
1523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1524 $as_echo "$ac_try_echo"; } >&5
1525 (eval "$ac_compile") 2>conftest.err
1526 ac_status=$?
1527 if test -s conftest.err; then
1528 grep -v '^ *+' conftest.err >conftest.er1
1529 cat conftest.er1 >&5
1530 mv -f conftest.er1 conftest.err
1532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1533 test $ac_status = 0; } && {
1534 test -z "$ac_c_werror_flag" ||
1535 test ! -s conftest.err
1536 } && test -s conftest.$ac_objext; then :
1537 ac_retval=0
1538 else
1539 $as_echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1542 ac_retval=1
1544 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1545 return $ac_retval
1547 } # ac_fn_c_try_compile
1549 # ac_fn_c_try_link LINENO
1550 # -----------------------
1551 # Try to link conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_link ()
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext conftest$ac_exeext
1556 if { { ac_try="$ac_link"
1557 case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_link") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest$ac_exeext && {
1575 test "$cross_compiling" = yes ||
1576 $as_test_x conftest$ac_exeext
1577 }; then :
1578 ac_retval=0
1579 else
1580 $as_echo "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1583 ac_retval=1
1585 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1586 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1587 # interfere with the next link command; also delete a directory that is
1588 # left behind by Apple's compiler. We do this before executing the actions.
1589 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1591 return $ac_retval
1593 } # ac_fn_c_try_link
1595 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1596 # -------------------------------------------------------
1597 # Tests whether HEADER exists and can be compiled using the include files in
1598 # INCLUDES, setting the cache variable VAR accordingly.
1599 ac_fn_c_check_header_compile ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1603 $as_echo_n "checking for $2... " >&6; }
1604 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1605 $as_echo_n "(cached) " >&6
1606 else
1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h. */
1610 #include <$2>
1611 _ACEOF
1612 if ac_fn_c_try_compile "$LINENO"; then :
1613 eval "$3=yes"
1614 else
1615 eval "$3=no"
1617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619 eval ac_res=\$$3
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621 $as_echo "$ac_res" >&6; }
1622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624 } # ac_fn_c_check_header_compile
1626 # ac_fn_c_try_cpp LINENO
1627 # ----------------------
1628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_cpp ()
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_cpp conftest.$ac_ext"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } >/dev/null && {
1648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 }; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1656 ac_retval=1
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659 return $ac_retval
1661 } # ac_fn_c_try_cpp
1663 # ac_fn_c_try_run LINENO
1664 # ----------------------
1665 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1666 # that executables *can* be run.
1667 ac_fn_c_try_run ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_link"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_link") 2>&5
1678 ac_status=$?
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1681 { { case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_try") 2>&5
1688 ac_status=$?
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; }; }; then :
1691 ac_retval=0
1692 else
1693 $as_echo "$as_me: program exited with status $ac_status" >&5
1694 $as_echo "$as_me: failed program was:" >&5
1695 sed 's/^/| /' conftest.$ac_ext >&5
1697 ac_retval=$ac_status
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701 return $ac_retval
1703 } # ac_fn_c_try_run
1705 # ac_fn_c_check_func LINENO FUNC VAR
1706 # ----------------------------------
1707 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1708 ac_fn_c_check_func ()
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1714 $as_echo_n "(cached) " >&6
1715 else
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1718 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1720 #define $2 innocuous_$2
1722 /* System header to define __stub macros and hopefully few prototypes,
1723 which can conflict with char $2 (); below.
1724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1725 <limits.h> exists even on freestanding compilers. */
1727 #ifdef __STDC__
1728 # include <limits.h>
1729 #else
1730 # include <assert.h>
1731 #endif
1733 #undef $2
1735 /* Override any GCC internal prototype to avoid an error.
1736 Use char because int might match the return type of a GCC
1737 builtin and then its argument prototype would still apply. */
1738 #ifdef __cplusplus
1739 extern "C"
1740 #endif
1741 char $2 ();
1742 /* The GNU C library defines this for functions which it implements
1743 to always fail with ENOSYS. Some functions are actually named
1744 something starting with __ and the normal name is an alias. */
1745 #if defined __stub_$2 || defined __stub___$2
1746 choke me
1747 #endif
1750 main ()
1752 return $2 ();
1754 return 0;
1756 _ACEOF
1757 if ac_fn_c_try_link "$LINENO"; then :
1758 eval "$3=yes"
1759 else
1760 eval "$3=no"
1762 rm -f core conftest.err conftest.$ac_objext \
1763 conftest$ac_exeext conftest.$ac_ext
1765 eval ac_res=\$$3
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770 } # ac_fn_c_check_func
1772 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1773 # -------------------------------------------
1774 # Tests whether TYPE exists after having included INCLUDES, setting cache
1775 # variable VAR accordingly.
1776 ac_fn_c_check_type ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1782 $as_echo_n "(cached) " >&6
1783 else
1784 eval "$3=no"
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1789 main ()
1791 if (sizeof ($2))
1792 return 0;
1794 return 0;
1796 _ACEOF
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1799 /* end confdefs.h. */
1802 main ()
1804 if (sizeof (($2)))
1805 return 0;
1807 return 0;
1809 _ACEOF
1810 if ac_fn_c_try_compile "$LINENO"; then :
1812 else
1813 eval "$3=yes"
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 eval ac_res=\$$3
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1821 $as_echo "$ac_res" >&6; }
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 } # ac_fn_c_check_type
1826 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1827 # --------------------------------------------
1828 # Tries to find the compile-time value of EXPR in a program that includes
1829 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1830 # computed
1831 ac_fn_c_compute_int ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 if test "$cross_compiling" = yes; then
1835 # Depending upon the size, compute the lo and hi bounds.
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1840 main ()
1842 static int test_array [1 - 2 * !(($2) >= 0)];
1843 test_array [0] = 0
1846 return 0;
1848 _ACEOF
1849 if ac_fn_c_try_compile "$LINENO"; then :
1850 ac_lo=0 ac_mid=0
1851 while :; do
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1856 main ()
1858 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1859 test_array [0] = 0
1862 return 0;
1864 _ACEOF
1865 if ac_fn_c_try_compile "$LINENO"; then :
1866 ac_hi=$ac_mid; break
1867 else
1868 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1869 if test $ac_lo -le $ac_mid; then
1870 ac_lo= ac_hi=
1871 break
1873 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 done
1877 else
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1882 main ()
1884 static int test_array [1 - 2 * !(($2) < 0)];
1885 test_array [0] = 0
1888 return 0;
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 ac_hi=-1 ac_mid=-1
1893 while :; do
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1898 main ()
1900 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1901 test_array [0] = 0
1904 return 0;
1906 _ACEOF
1907 if ac_fn_c_try_compile "$LINENO"; then :
1908 ac_lo=$ac_mid; break
1909 else
1910 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1911 if test $ac_mid -le $ac_hi; then
1912 ac_lo= ac_hi=
1913 break
1915 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918 done
1919 else
1920 ac_lo= ac_hi=
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 # Binary search between lo and hi bounds.
1926 while test "x$ac_lo" != "x$ac_hi"; do
1927 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1932 main ()
1934 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1935 test_array [0] = 0
1938 return 0;
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_hi=$ac_mid
1943 else
1944 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 done
1948 case $ac_lo in #((
1949 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1950 '') ac_retval=1 ;;
1951 esac
1952 else
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1956 static long int longval () { return $2; }
1957 static unsigned long int ulongval () { return $2; }
1958 #include <stdio.h>
1959 #include <stdlib.h>
1961 main ()
1964 FILE *f = fopen ("conftest.val", "w");
1965 if (! f)
1966 return 1;
1967 if (($2) < 0)
1969 long int i = longval ();
1970 if (i != ($2))
1971 return 1;
1972 fprintf (f, "%ld", i);
1974 else
1976 unsigned long int i = ulongval ();
1977 if (i != ($2))
1978 return 1;
1979 fprintf (f, "%lu", i);
1981 /* Do not output a trailing newline, as this causes \r\n confusion
1982 on some platforms. */
1983 return ferror (f) || fclose (f) != 0;
1986 return 0;
1988 _ACEOF
1989 if ac_fn_c_try_run "$LINENO"; then :
1990 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1991 else
1992 ac_retval=1
1994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1995 conftest.$ac_objext conftest.beam conftest.$ac_ext
1996 rm -f conftest.val
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000 return $ac_retval
2002 } # ac_fn_c_compute_int
2004 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2007 # the include files in INCLUDES and setting the cache variable VAR
2008 # accordingly.
2009 ac_fn_c_check_header_mongrel ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2016 $as_echo_n "(cached) " >&6
2018 eval ac_res=\$$3
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 else
2022 # Is the header compilable?
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2024 $as_echo_n "checking $2 usability... " >&6; }
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2028 #include <$2>
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 ac_header_compiler=yes
2032 else
2033 ac_header_compiler=no
2035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2037 $as_echo "$ac_header_compiler" >&6; }
2039 # Is the header present?
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2041 $as_echo_n "checking $2 presence... " >&6; }
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2044 #include <$2>
2045 _ACEOF
2046 if ac_fn_c_try_cpp "$LINENO"; then :
2047 ac_header_preproc=yes
2048 else
2049 ac_header_preproc=no
2051 rm -f conftest.err conftest.$ac_ext
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2053 $as_echo "$ac_header_preproc" >&6; }
2055 # So? What about this header?
2056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2057 yes:no: )
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2059 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2061 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063 no:yes:* )
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2065 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2067 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2069 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2071 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2073 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2075 esac
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2079 $as_echo_n "(cached) " >&6
2080 else
2081 eval "$3=\$ac_header_compiler"
2083 eval ac_res=\$$3
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2087 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2089 } # ac_fn_c_check_header_mongrel
2090 cat >config.log <<_ACEOF
2091 This file contains any messages produced by compilers while
2092 running configure, to aid debugging if configure makes a mistake.
2094 It was created by GNU Atomic Library $as_me 1.0, which was
2095 generated by GNU Autoconf 2.64. Invocation command line was
2097 $ $0 $@
2099 _ACEOF
2100 exec 5>>config.log
2102 cat <<_ASUNAME
2103 ## --------- ##
2104 ## Platform. ##
2105 ## --------- ##
2107 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2108 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2109 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2110 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2111 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2113 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2114 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2116 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2117 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2118 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2119 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2120 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2121 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2122 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2124 _ASUNAME
2126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 for as_dir in $PATH
2129 IFS=$as_save_IFS
2130 test -z "$as_dir" && as_dir=.
2131 $as_echo "PATH: $as_dir"
2132 done
2133 IFS=$as_save_IFS
2135 } >&5
2137 cat >&5 <<_ACEOF
2140 ## ----------- ##
2141 ## Core tests. ##
2142 ## ----------- ##
2144 _ACEOF
2147 # Keep a trace of the command line.
2148 # Strip out --no-create and --no-recursion so they do not pile up.
2149 # Strip out --silent because we don't want to record it for future runs.
2150 # Also quote any args containing shell meta-characters.
2151 # Make two passes to allow for proper duplicate-argument suppression.
2152 ac_configure_args=
2153 ac_configure_args0=
2154 ac_configure_args1=
2155 ac_must_keep_next=false
2156 for ac_pass in 1 2
2158 for ac_arg
2160 case $ac_arg in
2161 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2162 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2163 | -silent | --silent | --silen | --sile | --sil)
2164 continue ;;
2165 *\'*)
2166 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2167 esac
2168 case $ac_pass in
2169 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2171 as_fn_append ac_configure_args1 " '$ac_arg'"
2172 if test $ac_must_keep_next = true; then
2173 ac_must_keep_next=false # Got value, back to normal.
2174 else
2175 case $ac_arg in
2176 *=* | --config-cache | -C | -disable-* | --disable-* \
2177 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2178 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2179 | -with-* | --with-* | -without-* | --without-* | --x)
2180 case "$ac_configure_args0 " in
2181 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2182 esac
2184 -* ) ac_must_keep_next=true ;;
2185 esac
2187 as_fn_append ac_configure_args " '$ac_arg'"
2189 esac
2190 done
2191 done
2192 { ac_configure_args0=; unset ac_configure_args0;}
2193 { ac_configure_args1=; unset ac_configure_args1;}
2195 # When interrupted or exit'd, cleanup temporary files, and complete
2196 # config.log. We remove comments because anyway the quotes in there
2197 # would cause problems or look ugly.
2198 # WARNING: Use '\'' to represent an apostrophe within the trap.
2199 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2200 trap 'exit_status=$?
2201 # Save into config.log some information that might help in debugging.
2203 echo
2205 cat <<\_ASBOX
2206 ## ---------------- ##
2207 ## Cache variables. ##
2208 ## ---------------- ##
2209 _ASBOX
2210 echo
2211 # The following way of writing the cache mishandles newlines in values,
2213 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2214 eval ac_val=\$$ac_var
2215 case $ac_val in #(
2216 *${as_nl}*)
2217 case $ac_var in #(
2218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2219 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2220 esac
2221 case $ac_var in #(
2222 _ | IFS | as_nl) ;; #(
2223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2224 *) { eval $ac_var=; unset $ac_var;} ;;
2225 esac ;;
2226 esac
2227 done
2228 (set) 2>&1 |
2229 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2230 *${as_nl}ac_space=\ *)
2231 sed -n \
2232 "s/'\''/'\''\\\\'\'''\''/g;
2233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2234 ;; #(
2236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2238 esac |
2239 sort
2241 echo
2243 cat <<\_ASBOX
2244 ## ----------------- ##
2245 ## Output variables. ##
2246 ## ----------------- ##
2247 _ASBOX
2248 echo
2249 for ac_var in $ac_subst_vars
2251 eval ac_val=\$$ac_var
2252 case $ac_val in
2253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2254 esac
2255 $as_echo "$ac_var='\''$ac_val'\''"
2256 done | sort
2257 echo
2259 if test -n "$ac_subst_files"; then
2260 cat <<\_ASBOX
2261 ## ------------------- ##
2262 ## File substitutions. ##
2263 ## ------------------- ##
2264 _ASBOX
2265 echo
2266 for ac_var in $ac_subst_files
2268 eval ac_val=\$$ac_var
2269 case $ac_val in
2270 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2271 esac
2272 $as_echo "$ac_var='\''$ac_val'\''"
2273 done | sort
2274 echo
2277 if test -s confdefs.h; then
2278 cat <<\_ASBOX
2279 ## ----------- ##
2280 ## confdefs.h. ##
2281 ## ----------- ##
2282 _ASBOX
2283 echo
2284 cat confdefs.h
2285 echo
2287 test "$ac_signal" != 0 &&
2288 $as_echo "$as_me: caught signal $ac_signal"
2289 $as_echo "$as_me: exit $exit_status"
2290 } >&5
2291 rm -f core *.core core.conftest.* &&
2292 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2293 exit $exit_status
2295 for ac_signal in 1 2 13 15; do
2296 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2297 done
2298 ac_signal=0
2300 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2301 rm -f -r conftest* confdefs.h
2303 $as_echo "/* confdefs.h */" > confdefs.h
2305 # Predefined preprocessor variables.
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_NAME "$PACKAGE_NAME"
2309 _ACEOF
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2313 _ACEOF
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2317 _ACEOF
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_STRING "$PACKAGE_STRING"
2321 _ACEOF
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2325 _ACEOF
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_URL "$PACKAGE_URL"
2329 _ACEOF
2332 # Let the site file select an alternate cache file if it wants to.
2333 # Prefer an explicitly selected file to automatically selected ones.
2334 ac_site_file1=NONE
2335 ac_site_file2=NONE
2336 if test -n "$CONFIG_SITE"; then
2337 ac_site_file1=$CONFIG_SITE
2338 elif test "x$prefix" != xNONE; then
2339 ac_site_file1=$prefix/share/config.site
2340 ac_site_file2=$prefix/etc/config.site
2341 else
2342 ac_site_file1=$ac_default_prefix/share/config.site
2343 ac_site_file2=$ac_default_prefix/etc/config.site
2345 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2347 test "x$ac_site_file" = xNONE && continue
2348 if test -r "$ac_site_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2350 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2351 sed 's/^/| /' "$ac_site_file" >&5
2352 . "$ac_site_file"
2354 done
2356 if test -r "$cache_file"; then
2357 # Some versions of bash will fail to source /dev/null (special
2358 # files actually), so we avoid doing that.
2359 if test -f "$cache_file"; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2361 $as_echo "$as_me: loading cache $cache_file" >&6;}
2362 case $cache_file in
2363 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2364 *) . "./$cache_file";;
2365 esac
2367 else
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2369 $as_echo "$as_me: creating cache $cache_file" >&6;}
2370 >$cache_file
2373 # Check that the precious variables saved in the cache have kept the same
2374 # value.
2375 ac_cache_corrupted=false
2376 for ac_var in $ac_precious_vars; do
2377 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2378 eval ac_new_set=\$ac_env_${ac_var}_set
2379 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2380 eval ac_new_val=\$ac_env_${ac_var}_value
2381 case $ac_old_set,$ac_new_set in
2382 set,)
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2384 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2385 ac_cache_corrupted=: ;;
2386 ,set)
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2388 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2389 ac_cache_corrupted=: ;;
2390 ,);;
2392 if test "x$ac_old_val" != "x$ac_new_val"; then
2393 # differences in whitespace do not lead to failure.
2394 ac_old_val_w=`echo x $ac_old_val`
2395 ac_new_val_w=`echo x $ac_new_val`
2396 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2398 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2399 ac_cache_corrupted=:
2400 else
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2402 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2403 eval $ac_var=\$ac_old_val
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2406 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2408 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2409 fi;;
2410 esac
2411 # Pass precious variables to config.status.
2412 if test "$ac_new_set" = set; then
2413 case $ac_new_val in
2414 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2415 *) ac_arg=$ac_var=$ac_new_val ;;
2416 esac
2417 case " $ac_configure_args " in
2418 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2419 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2420 esac
2422 done
2423 if $ac_cache_corrupted; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2427 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2428 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2430 ## -------------------- ##
2431 ## Main body of script. ##
2432 ## -------------------- ##
2434 ac_ext=c
2435 ac_cpp='$CPP $CPPFLAGS'
2436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444 ac_config_headers="$ac_config_headers auto-config.h"
2447 # -------
2448 # Options
2449 # -------
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2452 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2453 # Check whether --enable-version-specific-runtime-libs was given.
2454 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2455 enableval=$enable_version_specific_runtime_libs;
2456 case "$enableval" in
2457 yes|no) ;;
2458 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2459 esac
2461 else
2462 enable_version_specific_runtime_libs=no
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2467 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2469 # We would like our source tree to be readonly. However when releases or
2470 # pre-releases are generated, the flex/bison generated files as well as the
2471 # various formats of manuals need to be included along with the rest of the
2472 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2473 # just that.
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2475 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2476 # Check whether --enable-generated-files-in-srcdir was given.
2477 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2478 enableval=$enable_generated_files_in_srcdir;
2479 case "$enableval" in
2480 yes|no) ;;
2481 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2482 esac
2484 else
2485 enable_generated_files_in_srcdir=no
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2490 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2491 if test "$enable_generated_files_in_srcdir" = yes; then
2492 GENINSRC_TRUE=
2493 GENINSRC_FALSE='#'
2494 else
2495 GENINSRC_TRUE='#'
2496 GENINSRC_FALSE=
2501 # -------
2503 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2505 # You will slowly go insane if you do not grok the following fact: when
2506 # building this library, the top-level /target/ becomes the library's /host/.
2508 # configure then causes --target to default to --host, exactly like any
2509 # other package using autoconf. Therefore, 'target' and 'host' will
2510 # always be the same. This makes sense both for native and cross compilers
2511 # just think about it for a little while. :-)
2513 # Also, if this library is being configured as part of a cross compiler, the
2514 # top-level configure script will pass the "real" host as $with_cross_host.
2516 # Do not delete or change the following two lines. For why, see
2517 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2518 ac_aux_dir=
2519 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2520 for ac_t in install-sh install.sh shtool; do
2521 if test -f "$ac_dir/$ac_t"; then
2522 ac_aux_dir=$ac_dir
2523 ac_install_sh="$ac_aux_dir/$ac_t -c"
2524 break 2
2526 done
2527 done
2528 if test -z "$ac_aux_dir"; then
2529 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2532 # These three variables are undocumented and unsupported,
2533 # and are intended to be withdrawn in a future Autoconf release.
2534 # They can cause serious problems if a builder's source tree is in a directory
2535 # whose full name contains unusual characters.
2536 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2537 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2538 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2541 # Make sure we can run config.sub.
2542 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2543 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2546 $as_echo_n "checking build system type... " >&6; }
2547 if test "${ac_cv_build+set}" = set; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 ac_build_alias=$build_alias
2551 test "x$ac_build_alias" = x &&
2552 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2553 test "x$ac_build_alias" = x &&
2554 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2555 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2556 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2560 $as_echo "$ac_cv_build" >&6; }
2561 case $ac_cv_build in
2562 *-*-*) ;;
2563 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2564 esac
2565 build=$ac_cv_build
2566 ac_save_IFS=$IFS; IFS='-'
2567 set x $ac_cv_build
2568 shift
2569 build_cpu=$1
2570 build_vendor=$2
2571 shift; shift
2572 # Remember, the first character of IFS is used to create $*,
2573 # except with old shells:
2574 build_os=$*
2575 IFS=$ac_save_IFS
2576 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2580 $as_echo_n "checking host system type... " >&6; }
2581 if test "${ac_cv_host+set}" = set; then :
2582 $as_echo_n "(cached) " >&6
2583 else
2584 if test "x$host_alias" = x; then
2585 ac_cv_host=$ac_cv_build
2586 else
2587 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2588 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2593 $as_echo "$ac_cv_host" >&6; }
2594 case $ac_cv_host in
2595 *-*-*) ;;
2596 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2597 esac
2598 host=$ac_cv_host
2599 ac_save_IFS=$IFS; IFS='-'
2600 set x $ac_cv_host
2601 shift
2602 host_cpu=$1
2603 host_vendor=$2
2604 shift; shift
2605 # Remember, the first character of IFS is used to create $*,
2606 # except with old shells:
2607 host_os=$*
2608 IFS=$ac_save_IFS
2609 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2613 $as_echo_n "checking target system type... " >&6; }
2614 if test "${ac_cv_target+set}" = set; then :
2615 $as_echo_n "(cached) " >&6
2616 else
2617 if test "x$target_alias" = x; then
2618 ac_cv_target=$ac_cv_host
2619 else
2620 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2621 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2626 $as_echo "$ac_cv_target" >&6; }
2627 case $ac_cv_target in
2628 *-*-*) ;;
2629 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2630 esac
2631 target=$ac_cv_target
2632 ac_save_IFS=$IFS; IFS='-'
2633 set x $ac_cv_target
2634 shift
2635 target_cpu=$1
2636 target_vendor=$2
2637 shift; shift
2638 # Remember, the first character of IFS is used to create $*,
2639 # except with old shells:
2640 target_os=$*
2641 IFS=$ac_save_IFS
2642 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2645 # The aliases save the names the user supplied, while $host etc.
2646 # will get canonicalized.
2647 test -n "$target_alias" &&
2648 test "$program_prefix$program_suffix$program_transform_name" = \
2649 NONENONEs,x,x, &&
2650 program_prefix=${target_alias}-
2652 target_alias=${target_alias-$host_alias}
2654 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2655 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2656 # 1.9.0: minimum required version
2657 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2658 # of other PACKAGE_* variables will, however, and there's nothing
2659 # we can do about that; they come from AC_INIT).
2660 # no-dist: we don't want 'dist' and related rules.
2661 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2662 # file in the top srcdir, etc, etc), so stop complaining.
2663 # -Wall: turns on all automake warnings...
2664 # -Wno-portability: ...except this one, since GNU make is required.
2665 # -Wno-override: ... and this one, since we do want this in testsuite.
2666 am__api_version='1.11'
2668 # Find a good install program. We prefer a C program (faster),
2669 # so one script is as good as another. But avoid the broken or
2670 # incompatible versions:
2671 # SysV /etc/install, /usr/sbin/install
2672 # SunOS /usr/etc/install
2673 # IRIX /sbin/install
2674 # AIX /bin/install
2675 # AmigaOS /C/install, which installs bootblocks on floppy discs
2676 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2677 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2678 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2679 # OS/2's system install, which has a completely different semantic
2680 # ./install, which can be erroneously created by make from ./install.sh.
2681 # Reject install programs that cannot install multiple files.
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2683 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2684 if test -z "$INSTALL"; then
2685 if test "${ac_cv_path_install+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 # Account for people who put trailing slashes in PATH elements.
2694 case $as_dir/ in #((
2695 ./ | .// | /[cC]/* | \
2696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2697 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2698 /usr/ucb/* ) ;;
2700 # OSF1 and SCO ODT 3.0 have their own names for install.
2701 # Don't use installbsd from OSF since it installs stuff as root
2702 # by default.
2703 for ac_prog in ginstall scoinst install; do
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2706 if test $ac_prog = install &&
2707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2708 # AIX install. It has an incompatible calling convention.
2710 elif test $ac_prog = install &&
2711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 # program-specific install script used by HP pwplus--don't use.
2714 else
2715 rm -rf conftest.one conftest.two conftest.dir
2716 echo one > conftest.one
2717 echo two > conftest.two
2718 mkdir conftest.dir
2719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2720 test -s conftest.one && test -s conftest.two &&
2721 test -s conftest.dir/conftest.one &&
2722 test -s conftest.dir/conftest.two
2723 then
2724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2725 break 3
2729 done
2730 done
2732 esac
2734 done
2735 IFS=$as_save_IFS
2737 rm -rf conftest.one conftest.two conftest.dir
2740 if test "${ac_cv_path_install+set}" = set; then
2741 INSTALL=$ac_cv_path_install
2742 else
2743 # As a last resort, use the slow shell script. Don't cache a
2744 # value for INSTALL within a source directory, because that will
2745 # break other packages using the cache if that directory is
2746 # removed, or if the value is a relative name.
2747 INSTALL=$ac_install_sh
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2751 $as_echo "$INSTALL" >&6; }
2753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2754 # It thinks the first close brace ends the variable substitution.
2755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2762 $as_echo_n "checking whether build environment is sane... " >&6; }
2763 # Just in case
2764 sleep 1
2765 echo timestamp > conftest.file
2766 # Reject unsafe characters in $srcdir or the absolute working directory
2767 # name. Accept space and tab only in the latter.
2768 am_lf='
2770 case `pwd` in
2771 *[\\\"\#\$\&\'\`$am_lf]*)
2772 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2773 esac
2774 case $srcdir in
2775 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2776 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2777 esac
2779 # Do `set' in a subshell so we don't clobber the current shell's
2780 # arguments. Must try -L first in case configure is actually a
2781 # symlink; some systems play weird games with the mod time of symlinks
2782 # (eg FreeBSD returns the mod time of the symlink's containing
2783 # directory).
2784 if (
2785 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2786 if test "$*" = "X"; then
2787 # -L didn't work.
2788 set X `ls -t "$srcdir/configure" conftest.file`
2790 rm -f conftest.file
2791 if test "$*" != "X $srcdir/configure conftest.file" \
2792 && test "$*" != "X conftest.file $srcdir/configure"; then
2794 # If neither matched, then we have a broken ls. This can happen
2795 # if, for instance, CONFIG_SHELL is bash and it inherits a
2796 # broken ls alias from the environment. This has actually
2797 # happened. Such a system could not be considered "sane".
2798 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2799 alias in your environment" "$LINENO" 5
2802 test "$2" = conftest.file
2804 then
2805 # Ok.
2807 else
2808 as_fn_error "newly created file is older than distributed files!
2809 Check your system clock" "$LINENO" 5
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2812 $as_echo "yes" >&6; }
2813 test "$program_prefix" != NONE &&
2814 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2815 # Use a double $ so make ignores it.
2816 test "$program_suffix" != NONE &&
2817 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2818 # Double any \ or $.
2819 # By default was `s,x,x', remove it if useless.
2820 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2821 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2823 # expand $ac_aux_dir to an absolute path
2824 am_aux_dir=`cd $ac_aux_dir && pwd`
2826 if test x"${MISSING+set}" != xset; then
2827 case $am_aux_dir in
2828 *\ * | *\ *)
2829 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2831 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2832 esac
2834 # Use eval to expand $SHELL
2835 if eval "$MISSING --run true"; then
2836 am_missing_run="$MISSING --run "
2837 else
2838 am_missing_run=
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2840 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2843 if test x"${install_sh}" != xset; then
2844 case $am_aux_dir in
2845 *\ * | *\ *)
2846 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2848 install_sh="\${SHELL} $am_aux_dir/install-sh"
2849 esac
2852 # Installed binaries are usually stripped using `strip' when the user
2853 # run `make install-strip'. However `strip' might not be the right
2854 # tool to use in cross-compilation environments, therefore Automake
2855 # will honor the `STRIP' environment variable to overrule this program.
2856 if test "$cross_compiling" != no; then
2857 if test -n "$ac_tool_prefix"; then
2858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2859 set dummy ${ac_tool_prefix}strip; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if test "${ac_cv_prog_STRIP+set}" = set; then :
2863 $as_echo_n "(cached) " >&6
2864 else
2865 if test -n "$STRIP"; then
2866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2867 else
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 for as_dir in $PATH
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 break 2
2879 done
2880 done
2881 IFS=$as_save_IFS
2885 STRIP=$ac_cv_prog_STRIP
2886 if test -n "$STRIP"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2888 $as_echo "$STRIP" >&6; }
2889 else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2896 if test -z "$ac_cv_prog_STRIP"; then
2897 ac_ct_STRIP=$STRIP
2898 # Extract the first word of "strip", so it can be a program name with args.
2899 set dummy strip; ac_word=$2
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2901 $as_echo_n "checking for $ac_word... " >&6; }
2902 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 if test -n "$ac_ct_STRIP"; then
2906 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2907 else
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_exec_ext in '' $ac_executable_extensions; do
2914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915 ac_cv_prog_ac_ct_STRIP="strip"
2916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2917 break 2
2919 done
2920 done
2921 IFS=$as_save_IFS
2925 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2926 if test -n "$ac_ct_STRIP"; then
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2928 $as_echo "$ac_ct_STRIP" >&6; }
2929 else
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931 $as_echo "no" >&6; }
2934 if test "x$ac_ct_STRIP" = x; then
2935 STRIP=":"
2936 else
2937 case $cross_compiling:$ac_tool_warned in
2938 yes:)
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2941 ac_tool_warned=yes ;;
2942 esac
2943 STRIP=$ac_ct_STRIP
2945 else
2946 STRIP="$ac_cv_prog_STRIP"
2950 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2953 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2954 if test -z "$MKDIR_P"; then
2955 if test "${ac_cv_path_mkdir+set}" = set; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_prog in mkdir gmkdir; do
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2966 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2967 'mkdir (GNU coreutils) '* | \
2968 'mkdir (coreutils) '* | \
2969 'mkdir (fileutils) '4.1*)
2970 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2971 break 3;;
2972 esac
2973 done
2974 done
2975 done
2976 IFS=$as_save_IFS
2980 if test "${ac_cv_path_mkdir+set}" = set; then
2981 MKDIR_P="$ac_cv_path_mkdir -p"
2982 else
2983 # As a last resort, use the slow shell script. Don't cache a
2984 # value for MKDIR_P within a source directory, because that will
2985 # break other packages using the cache if that directory is
2986 # removed, or if the value is a relative name.
2987 test -d ./--version && rmdir ./--version
2988 MKDIR_P="$ac_install_sh -d"
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2992 $as_echo "$MKDIR_P" >&6; }
2994 mkdir_p="$MKDIR_P"
2995 case $mkdir_p in
2996 [\\/$]* | ?:[\\/]*) ;;
2997 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2998 esac
3000 for ac_prog in gawk mawk nawk awk
3002 # Extract the first word of "$ac_prog", so it can be a program name with args.
3003 set dummy $ac_prog; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if test "${ac_cv_prog_AWK+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$AWK"; then
3010 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 ac_cv_prog_AWK="$ac_prog"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3023 done
3024 done
3025 IFS=$as_save_IFS
3029 AWK=$ac_cv_prog_AWK
3030 if test -n "$AWK"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3032 $as_echo "$AWK" >&6; }
3033 else
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3039 test -n "$AWK" && break
3040 done
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3043 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3044 set x ${MAKE-make}
3045 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3046 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 cat >conftest.make <<\_ACEOF
3050 SHELL = /bin/sh
3051 all:
3052 @echo '@@@%%%=$(MAKE)=@@@%%%'
3053 _ACEOF
3054 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3055 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3056 *@@@%%%=?*=@@@%%%*)
3057 eval ac_cv_prog_make_${ac_make}_set=yes;;
3059 eval ac_cv_prog_make_${ac_make}_set=no;;
3060 esac
3061 rm -f conftest.make
3063 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3065 $as_echo "yes" >&6; }
3066 SET_MAKE=
3067 else
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 SET_MAKE="MAKE=${MAKE-make}"
3073 rm -rf .tst 2>/dev/null
3074 mkdir .tst 2>/dev/null
3075 if test -d .tst; then
3076 am__leading_dot=.
3077 else
3078 am__leading_dot=_
3080 rmdir .tst 2>/dev/null
3082 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3083 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3084 # is not polluted with repeated "-I."
3085 am__isrc=' -I$(srcdir)'
3086 # test to see if srcdir already configured
3087 if test -f $srcdir/config.status; then
3088 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3092 # test whether we have cygpath
3093 if test -z "$CYGPATH_W"; then
3094 if (cygpath --version) >/dev/null 2>/dev/null; then
3095 CYGPATH_W='cygpath -w'
3096 else
3097 CYGPATH_W=echo
3102 # Define the identity of the package.
3103 PACKAGE='libatomic'
3104 VERSION='1.0'
3107 cat >>confdefs.h <<_ACEOF
3108 #define PACKAGE "$PACKAGE"
3109 _ACEOF
3112 cat >>confdefs.h <<_ACEOF
3113 #define VERSION "$VERSION"
3114 _ACEOF
3116 # Some tools Automake needs.
3118 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3121 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3124 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3127 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3130 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3132 # We need awk for the "check" target. The system "awk" is bad on
3133 # some platforms.
3134 # Always define AMTAR for backward compatibility.
3136 AMTAR=${AMTAR-"${am_missing_run}tar"}
3138 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3144 # Default to --enable-multilib
3145 # Check whether --enable-multilib was given.
3146 if test "${enable_multilib+set}" = set; then :
3147 enableval=$enable_multilib; case "$enableval" in
3148 yes) multilib=yes ;;
3149 no) multilib=no ;;
3150 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3151 esac
3152 else
3153 multilib=yes
3157 # We may get other options which we leave undocumented:
3158 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3159 # See config-ml.in if you want the gory details.
3161 if test "$srcdir" = "."; then
3162 if test "$with_target_subdir" != "."; then
3163 multi_basedir="$srcdir/$with_multisrctop../.."
3164 else
3165 multi_basedir="$srcdir/$with_multisrctop.."
3167 else
3168 multi_basedir="$srcdir/.."
3172 # Even if the default multilib is not a cross compilation,
3173 # it may be that some of the other multilibs are.
3174 if test $cross_compiling = no && test $multilib = yes \
3175 && test "x${with_multisubdir}" != x ; then
3176 cross_compiling=maybe
3179 ac_config_commands="$ac_config_commands default-1"
3182 # Calculate toolexeclibdir
3183 # Also toolexecdir, though it's only used in toolexeclibdir
3184 case ${enable_version_specific_runtime_libs} in
3185 yes)
3186 # Need the gcc compiler version to know where to install libraries
3187 # and header files if --enable-version-specific-runtime-libs option
3188 # is selected.
3189 toolexecdir='$(libdir)/gcc/$(target_alias)'
3190 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3193 if test -n "$with_cross_host" &&
3194 test x"$with_cross_host" != x"no"; then
3195 # Install a library built with a cross compiler in tooldir, not libdir.
3196 toolexecdir='$(exec_prefix)/$(target_alias)'
3197 toolexeclibdir='$(toolexecdir)/lib'
3198 else
3199 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3200 toolexeclibdir='$(libdir)'
3202 multi_os_directory=`$CC -print-multi-os-directory`
3203 case $multi_os_directory in
3204 .) ;; # Avoid trailing /.
3205 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3206 esac
3208 esac
3212 # Check the compiler.
3213 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3214 # We must force CC to /not/ be precious variables; otherwise
3215 # the wrong, non-multilib-adjusted value will be used in multilibs.
3216 # As a side effect, we have to subst CFLAGS ourselves.
3220 ac_ext=c
3221 ac_cpp='$CPP $CPPFLAGS'
3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225 if test -n "$ac_tool_prefix"; then
3226 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3227 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if test "${ac_cv_prog_CC+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3245 break 2
3247 done
3248 done
3249 IFS=$as_save_IFS
3253 CC=$ac_cv_prog_CC
3254 if test -n "$CC"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3256 $as_echo "$CC" >&6; }
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3264 if test -z "$ac_cv_prog_CC"; then
3265 ac_ct_CC=$CC
3266 # Extract the first word of "gcc", so it can be a program name with args.
3267 set dummy gcc; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 if test -n "$ac_ct_CC"; then
3274 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_prog_ac_ct_CC="gcc"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3287 done
3288 done
3289 IFS=$as_save_IFS
3293 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3294 if test -n "$ac_ct_CC"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3296 $as_echo "$ac_ct_CC" >&6; }
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3302 if test "x$ac_ct_CC" = x; then
3303 CC=""
3304 else
3305 case $cross_compiling:$ac_tool_warned in
3306 yes:)
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309 ac_tool_warned=yes ;;
3310 esac
3311 CC=$ac_ct_CC
3313 else
3314 CC="$ac_cv_prog_CC"
3317 if test -z "$CC"; then
3318 if test -n "$ac_tool_prefix"; then
3319 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3320 set dummy ${ac_tool_prefix}cc; ac_word=$2
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 $as_echo_n "checking for $ac_word... " >&6; }
3323 if test "${ac_cv_prog_CC+set}" = set; then :
3324 $as_echo_n "(cached) " >&6
3325 else
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC="$CC" # Let the user override the test.
3328 else
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3336 ac_cv_prog_CC="${ac_tool_prefix}cc"
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3340 done
3341 done
3342 IFS=$as_save_IFS
3346 CC=$ac_cv_prog_CC
3347 if test -n "$CC"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349 $as_echo "$CC" >&6; }
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3358 if test -z "$CC"; then
3359 # Extract the first word of "cc", so it can be a program name with args.
3360 set dummy cc; ac_word=$2
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3362 $as_echo_n "checking for $ac_word... " >&6; }
3363 if test "${ac_cv_prog_CC+set}" = set; then :
3364 $as_echo_n "(cached) " >&6
3365 else
3366 if test -n "$CC"; then
3367 ac_cv_prog_CC="$CC" # Let the user override the test.
3368 else
3369 ac_prog_rejected=no
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3378 ac_prog_rejected=yes
3379 continue
3381 ac_cv_prog_CC="cc"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3385 done
3386 done
3387 IFS=$as_save_IFS
3389 if test $ac_prog_rejected = yes; then
3390 # We found a bogon in the path, so make sure we never use it.
3391 set dummy $ac_cv_prog_CC
3392 shift
3393 if test $# != 0; then
3394 # We chose a different compiler from the bogus one.
3395 # However, it has the same basename, so the bogon will be chosen
3396 # first if we set CC to just the basename; use the full file name.
3397 shift
3398 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3403 CC=$ac_cv_prog_CC
3404 if test -n "$CC"; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 $as_echo "$CC" >&6; }
3407 else
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 $as_echo "no" >&6; }
3414 if test -z "$CC"; then
3415 if test -n "$ac_tool_prefix"; then
3416 for ac_prog in cl.exe
3418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if test "${ac_cv_prog_CC+set}" = set; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 if test -n "$CC"; then
3426 ac_cv_prog_CC="$CC" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3431 IFS=$as_save_IFS
3432 test -z "$as_dir" && as_dir=.
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3435 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 break 2
3439 done
3440 done
3441 IFS=$as_save_IFS
3445 CC=$ac_cv_prog_CC
3446 if test -n "$CC"; then
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448 $as_echo "$CC" >&6; }
3449 else
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3455 test -n "$CC" && break
3456 done
3458 if test -z "$CC"; then
3459 ac_ct_CC=$CC
3460 for ac_prog in cl.exe
3462 # Extract the first word of "$ac_prog", so it can be a program name with args.
3463 set dummy $ac_prog; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 if test -n "$ac_ct_CC"; then
3470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_ac_ct_CC="$ac_prog"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3483 done
3484 done
3485 IFS=$as_save_IFS
3489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3490 if test -n "$ac_ct_CC"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3492 $as_echo "$ac_ct_CC" >&6; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3499 test -n "$ac_ct_CC" && break
3500 done
3502 if test "x$ac_ct_CC" = x; then
3503 CC=""
3504 else
3505 case $cross_compiling:$ac_tool_warned in
3506 yes:)
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3509 ac_tool_warned=yes ;;
3510 esac
3511 CC=$ac_ct_CC
3518 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error "no acceptable C compiler found in \$PATH
3521 See \`config.log' for more details." "$LINENO" 5; }
3523 # Provide some information about the compiler.
3524 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3525 set X $ac_compile
3526 ac_compiler=$2
3527 for ac_option in --version -v -V -qversion; do
3528 { { ac_try="$ac_compiler $ac_option >&5"
3529 case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532 esac
3533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3534 $as_echo "$ac_try_echo"; } >&5
3535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3536 ac_status=$?
3537 if test -s conftest.err; then
3538 sed '10a\
3539 ... rest of stderr output deleted ...
3540 10q' conftest.err >conftest.er1
3541 cat conftest.er1 >&5
3542 rm -f conftest.er1 conftest.err
3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545 test $ac_status = 0; }
3546 done
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3552 main ()
3556 return 0;
3558 _ACEOF
3559 ac_clean_files_save=$ac_clean_files
3560 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3561 # Try to create an executable without -o first, disregard a.out.
3562 # It will help us diagnose broken compilers, and finding out an intuition
3563 # of exeext.
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3565 $as_echo_n "checking for C compiler default output file name... " >&6; }
3566 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3568 # The possible output files:
3569 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3571 ac_rmfiles=
3572 for ac_file in $ac_files
3574 case $ac_file in
3575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3576 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3577 esac
3578 done
3579 rm -f $ac_rmfiles
3581 if { { ac_try="$ac_link_default"
3582 case "(($ac_try" in
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3585 esac
3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 $as_echo "$ac_try_echo"; } >&5
3588 (eval "$ac_link_default") 2>&5
3589 ac_status=$?
3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591 test $ac_status = 0; }; then :
3592 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3593 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3594 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3595 # so that the user can short-circuit this test for compilers unknown to
3596 # Autoconf.
3597 for ac_file in $ac_files ''
3599 test -f "$ac_file" || continue
3600 case $ac_file in
3601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3603 [ab].out )
3604 # We found the default executable, but exeext='' is most
3605 # certainly right.
3606 break;;
3607 *.* )
3608 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3609 then :; else
3610 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612 # We set ac_cv_exeext here because the later test for it is not
3613 # safe: cross compilers may not add the suffix if given an `-o'
3614 # argument, so we may need to know it at that point already.
3615 # Even if this section looks crufty: it has the advantage of
3616 # actually working.
3617 break;;
3619 break;;
3620 esac
3621 done
3622 test "$ac_cv_exeext" = no && ac_cv_exeext=
3624 else
3625 ac_file=''
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3628 $as_echo "$ac_file" >&6; }
3629 if test -z "$ac_file"; then :
3630 $as_echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3635 { as_fn_set_status 77
3636 as_fn_error "C compiler cannot create executables
3637 See \`config.log' for more details." "$LINENO" 5; }; }
3639 ac_exeext=$ac_cv_exeext
3641 # Check that the compiler produces executables we can run. If not, either
3642 # the compiler is broken, or we cross compile.
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3644 $as_echo_n "checking whether the C compiler works... " >&6; }
3645 # If not cross compiling, check that we can run a simple program.
3646 if test "$cross_compiling" != yes; then
3647 if { ac_try='./$ac_file'
3648 { { case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654 (eval "$ac_try") 2>&5
3655 ac_status=$?
3656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657 test $ac_status = 0; }; }; then
3658 cross_compiling=no
3659 else
3660 if test "$cross_compiling" = maybe; then
3661 cross_compiling=yes
3662 else
3663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 as_fn_error "cannot run C compiled programs.
3666 If you meant to cross compile, use \`--host'.
3667 See \`config.log' for more details." "$LINENO" 5; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3672 $as_echo "yes" >&6; }
3674 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3675 ac_clean_files=$ac_clean_files_save
3676 # Check that the compiler produces executables we can run. If not, either
3677 # the compiler is broken, or we cross compile.
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3679 $as_echo_n "checking whether we are cross compiling... " >&6; }
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3681 $as_echo "$cross_compiling" >&6; }
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3684 $as_echo_n "checking for suffix of executables... " >&6; }
3685 if { { ac_try="$ac_link"
3686 case "(($ac_try" in
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3689 esac
3690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3691 $as_echo "$ac_try_echo"; } >&5
3692 (eval "$ac_link") 2>&5
3693 ac_status=$?
3694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3695 test $ac_status = 0; }; then :
3696 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3697 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3698 # work properly (i.e., refer to `conftest.exe'), while it won't with
3699 # `rm'.
3700 for ac_file in conftest.exe conftest conftest.*; do
3701 test -f "$ac_file" || continue
3702 case $ac_file in
3703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3704 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3705 break;;
3706 * ) break;;
3707 esac
3708 done
3709 else
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error "cannot compute suffix of executables: cannot compile and link
3713 See \`config.log' for more details." "$LINENO" 5; }
3715 rm -f conftest$ac_cv_exeext
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3717 $as_echo "$ac_cv_exeext" >&6; }
3719 rm -f conftest.$ac_ext
3720 EXEEXT=$ac_cv_exeext
3721 ac_exeext=$EXEEXT
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3723 $as_echo_n "checking for suffix of object files... " >&6; }
3724 if test "${ac_cv_objext+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
3726 else
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3731 main ()
3735 return 0;
3737 _ACEOF
3738 rm -f conftest.o conftest.obj
3739 if { { ac_try="$ac_compile"
3740 case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743 esac
3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745 $as_echo "$ac_try_echo"; } >&5
3746 (eval "$ac_compile") 2>&5
3747 ac_status=$?
3748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749 test $ac_status = 0; }; then :
3750 for ac_file in conftest.o conftest.obj conftest.*; do
3751 test -f "$ac_file" || continue;
3752 case $ac_file in
3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3755 break;;
3756 esac
3757 done
3758 else
3759 $as_echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error "cannot compute suffix of object files: cannot compile
3765 See \`config.log' for more details." "$LINENO" 5; }
3767 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3770 $as_echo "$ac_cv_objext" >&6; }
3771 OBJEXT=$ac_cv_objext
3772 ac_objext=$OBJEXT
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3774 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3775 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3782 main ()
3784 #ifndef __GNUC__
3785 choke me
3786 #endif
3789 return 0;
3791 _ACEOF
3792 if ac_fn_c_try_compile "$LINENO"; then :
3793 ac_compiler_gnu=yes
3794 else
3795 ac_compiler_gnu=no
3797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3798 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3802 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3803 if test $ac_compiler_gnu = yes; then
3804 GCC=yes
3805 else
3806 GCC=
3808 ac_test_CFLAGS=${CFLAGS+set}
3809 ac_save_CFLAGS=$CFLAGS
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3811 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3812 if test "${ac_cv_prog_cc_g+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 ac_save_c_werror_flag=$ac_c_werror_flag
3816 ac_c_werror_flag=yes
3817 ac_cv_prog_cc_g=no
3818 CFLAGS="-g"
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3823 main ()
3827 return 0;
3829 _ACEOF
3830 if ac_fn_c_try_compile "$LINENO"; then :
3831 ac_cv_prog_cc_g=yes
3832 else
3833 CFLAGS=""
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3838 main ()
3842 return 0;
3844 _ACEOF
3845 if ac_fn_c_try_compile "$LINENO"; then :
3847 else
3848 ac_c_werror_flag=$ac_save_c_werror_flag
3849 CFLAGS="-g"
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3854 main ()
3858 return 0;
3860 _ACEOF
3861 if ac_fn_c_try_compile "$LINENO"; then :
3862 ac_cv_prog_cc_g=yes
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3869 ac_c_werror_flag=$ac_save_c_werror_flag
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3872 $as_echo "$ac_cv_prog_cc_g" >&6; }
3873 if test "$ac_test_CFLAGS" = set; then
3874 CFLAGS=$ac_save_CFLAGS
3875 elif test $ac_cv_prog_cc_g = yes; then
3876 if test "$GCC" = yes; then
3877 CFLAGS="-g -O2"
3878 else
3879 CFLAGS="-g"
3881 else
3882 if test "$GCC" = yes; then
3883 CFLAGS="-O2"
3884 else
3885 CFLAGS=
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3890 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
3892 else
3893 ac_cv_prog_cc_c89=no
3894 ac_save_CC=$CC
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896 /* end confdefs.h. */
3897 #include <stdarg.h>
3898 #include <stdio.h>
3899 #include <sys/types.h>
3900 #include <sys/stat.h>
3901 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3902 struct buf { int x; };
3903 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3904 static char *e (p, i)
3905 char **p;
3906 int i;
3908 return p[i];
3910 static char *f (char * (*g) (char **, int), char **p, ...)
3912 char *s;
3913 va_list v;
3914 va_start (v,p);
3915 s = g (p, va_arg (v,int));
3916 va_end (v);
3917 return s;
3920 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3921 function prototypes and stuff, but not '\xHH' hex character constants.
3922 These don't provoke an error unfortunately, instead are silently treated
3923 as 'x'. The following induces an error, until -std is added to get
3924 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3925 array size at least. It's necessary to write '\x00'==0 to get something
3926 that's true only with -std. */
3927 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3929 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3930 inside strings and character constants. */
3931 #define FOO(x) 'x'
3932 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3934 int test (int i, double x);
3935 struct s1 {int (*f) (int a);};
3936 struct s2 {int (*f) (double a);};
3937 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3938 int argc;
3939 char **argv;
3941 main ()
3943 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3945 return 0;
3947 _ACEOF
3948 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3949 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3951 CC="$ac_save_CC $ac_arg"
3952 if ac_fn_c_try_compile "$LINENO"; then :
3953 ac_cv_prog_cc_c89=$ac_arg
3955 rm -f core conftest.err conftest.$ac_objext
3956 test "x$ac_cv_prog_cc_c89" != "xno" && break
3957 done
3958 rm -f conftest.$ac_ext
3959 CC=$ac_save_CC
3962 # AC_CACHE_VAL
3963 case "x$ac_cv_prog_cc_c89" in
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3966 $as_echo "none needed" >&6; } ;;
3967 xno)
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3969 $as_echo "unsupported" >&6; } ;;
3971 CC="$CC $ac_cv_prog_cc_c89"
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3973 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3974 esac
3975 if test "x$ac_cv_prog_cc_c89" != xno; then :
3979 ac_ext=c
3980 ac_cpp='$CPP $CPPFLAGS'
3981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984 DEPDIR="${am__leading_dot}deps"
3986 ac_config_commands="$ac_config_commands depfiles"
3989 am_make=${MAKE-make}
3990 cat > confinc << 'END'
3991 am__doit:
3992 @echo this is the am__doit target
3993 .PHONY: am__doit
3995 # If we don't find an include directive, just comment out the code.
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3997 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3998 am__include="#"
3999 am__quote=
4000 _am_result=none
4001 # First try GNU make style include.
4002 echo "include confinc" > confmf
4003 # Ignore all kinds of additional output from `make'.
4004 case `$am_make -s -f confmf 2> /dev/null` in #(
4005 *the\ am__doit\ target*)
4006 am__include=include
4007 am__quote=
4008 _am_result=GNU
4010 esac
4011 # Now try BSD make style include.
4012 if test "$am__include" = "#"; then
4013 echo '.include "confinc"' > confmf
4014 case `$am_make -s -f confmf 2> /dev/null` in #(
4015 *the\ am__doit\ target*)
4016 am__include=.include
4017 am__quote="\""
4018 _am_result=BSD
4020 esac
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4025 $as_echo "$_am_result" >&6; }
4026 rm -f confinc confmf
4028 # Check whether --enable-dependency-tracking was given.
4029 if test "${enable_dependency_tracking+set}" = set; then :
4030 enableval=$enable_dependency_tracking;
4033 if test "x$enable_dependency_tracking" != xno; then
4034 am_depcomp="$ac_aux_dir/depcomp"
4035 AMDEPBACKSLASH='\'
4037 if test "x$enable_dependency_tracking" != xno; then
4038 AMDEP_TRUE=
4039 AMDEP_FALSE='#'
4040 else
4041 AMDEP_TRUE='#'
4042 AMDEP_FALSE=
4047 depcc="$CC" am_compiler_list=
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4050 $as_echo_n "checking dependency style of $depcc... " >&6; }
4051 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4055 # We make a subdir and do the tests there. Otherwise we can end up
4056 # making bogus files that we don't know about and never remove. For
4057 # instance it was reported that on HP-UX the gcc test will end up
4058 # making a dummy file named `D' -- because `-MD' means `put the output
4059 # in D'.
4060 mkdir conftest.dir
4061 # Copy depcomp to subdir because otherwise we won't find it if we're
4062 # using a relative directory.
4063 cp "$am_depcomp" conftest.dir
4064 cd conftest.dir
4065 # We will build objects and dependencies in a subdirectory because
4066 # it helps to detect inapplicable dependency modes. For instance
4067 # both Tru64's cc and ICC support -MD to output dependencies as a
4068 # side effect of compilation, but ICC will put the dependencies in
4069 # the current directory while Tru64 will put them in the object
4070 # directory.
4071 mkdir sub
4073 am_cv_CC_dependencies_compiler_type=none
4074 if test "$am_compiler_list" = ""; then
4075 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4077 am__universal=false
4078 case " $depcc " in #(
4079 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4080 esac
4082 for depmode in $am_compiler_list; do
4083 # Setup a source with many dependencies, because some compilers
4084 # like to wrap large dependency lists on column 80 (with \), and
4085 # we should not choose a depcomp mode which is confused by this.
4087 # We need to recreate these files for each test, as the compiler may
4088 # overwrite some of them when testing with obscure command lines.
4089 # This happens at least with the AIX C compiler.
4090 : > sub/conftest.c
4091 for i in 1 2 3 4 5 6; do
4092 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4093 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4094 # Solaris 8's {/usr,}/bin/sh.
4095 touch sub/conftst$i.h
4096 done
4097 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4099 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4100 # mode. It turns out that the SunPro C++ compiler does not properly
4101 # handle `-M -o', and we need to detect this. Also, some Intel
4102 # versions had trouble with output in subdirs
4103 am__obj=sub/conftest.${OBJEXT-o}
4104 am__minus_obj="-o $am__obj"
4105 case $depmode in
4106 gcc)
4107 # This depmode causes a compiler race in universal mode.
4108 test "$am__universal" = false || continue
4110 nosideeffect)
4111 # after this tag, mechanisms are not by side-effect, so they'll
4112 # only be used when explicitly requested
4113 if test "x$enable_dependency_tracking" = xyes; then
4114 continue
4115 else
4116 break
4119 msvisualcpp | msvcmsys)
4120 # This compiler won't grok `-c -o', but also, the minuso test has
4121 # not run yet. These depmodes are late enough in the game, and
4122 # so weak that their functioning should not be impacted.
4123 am__obj=conftest.${OBJEXT-o}
4124 am__minus_obj=
4126 none) break ;;
4127 esac
4128 if depmode=$depmode \
4129 source=sub/conftest.c object=$am__obj \
4130 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4131 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4132 >/dev/null 2>conftest.err &&
4133 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4134 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4135 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4136 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4137 # icc doesn't choke on unknown options, it will just issue warnings
4138 # or remarks (even with -Werror). So we grep stderr for any message
4139 # that says an option was ignored or not supported.
4140 # When given -MP, icc 7.0 and 7.1 complain thusly:
4141 # icc: Command line warning: ignoring option '-M'; no argument required
4142 # The diagnosis changed in icc 8.0:
4143 # icc: Command line remark: option '-MP' not supported
4144 if (grep 'ignoring option' conftest.err ||
4145 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4146 am_cv_CC_dependencies_compiler_type=$depmode
4147 break
4150 done
4152 cd ..
4153 rm -rf conftest.dir
4154 else
4155 am_cv_CC_dependencies_compiler_type=none
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4160 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4161 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4164 test "x$enable_dependency_tracking" != xno \
4165 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4166 am__fastdepCC_TRUE=
4167 am__fastdepCC_FALSE='#'
4168 else
4169 am__fastdepCC_TRUE='#'
4170 am__fastdepCC_FALSE=
4174 # By default we simply use the C compiler to build assembly code.
4176 test "${CCAS+set}" = set || CCAS=$CC
4177 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4181 depcc="$CCAS" am_compiler_list=
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4184 $as_echo_n "checking dependency style of $depcc... " >&6; }
4185 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4189 # We make a subdir and do the tests there. Otherwise we can end up
4190 # making bogus files that we don't know about and never remove. For
4191 # instance it was reported that on HP-UX the gcc test will end up
4192 # making a dummy file named `D' -- because `-MD' means `put the output
4193 # in D'.
4194 mkdir conftest.dir
4195 # Copy depcomp to subdir because otherwise we won't find it if we're
4196 # using a relative directory.
4197 cp "$am_depcomp" conftest.dir
4198 cd conftest.dir
4199 # We will build objects and dependencies in a subdirectory because
4200 # it helps to detect inapplicable dependency modes. For instance
4201 # both Tru64's cc and ICC support -MD to output dependencies as a
4202 # side effect of compilation, but ICC will put the dependencies in
4203 # the current directory while Tru64 will put them in the object
4204 # directory.
4205 mkdir sub
4207 am_cv_CCAS_dependencies_compiler_type=none
4208 if test "$am_compiler_list" = ""; then
4209 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4211 am__universal=false
4214 for depmode in $am_compiler_list; do
4215 # Setup a source with many dependencies, because some compilers
4216 # like to wrap large dependency lists on column 80 (with \), and
4217 # we should not choose a depcomp mode which is confused by this.
4219 # We need to recreate these files for each test, as the compiler may
4220 # overwrite some of them when testing with obscure command lines.
4221 # This happens at least with the AIX C compiler.
4222 : > sub/conftest.c
4223 for i in 1 2 3 4 5 6; do
4224 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4225 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4226 # Solaris 8's {/usr,}/bin/sh.
4227 touch sub/conftst$i.h
4228 done
4229 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4231 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4232 # mode. It turns out that the SunPro C++ compiler does not properly
4233 # handle `-M -o', and we need to detect this. Also, some Intel
4234 # versions had trouble with output in subdirs
4235 am__obj=sub/conftest.${OBJEXT-o}
4236 am__minus_obj="-o $am__obj"
4237 case $depmode in
4238 gcc)
4239 # This depmode causes a compiler race in universal mode.
4240 test "$am__universal" = false || continue
4242 nosideeffect)
4243 # after this tag, mechanisms are not by side-effect, so they'll
4244 # only be used when explicitly requested
4245 if test "x$enable_dependency_tracking" = xyes; then
4246 continue
4247 else
4248 break
4251 msvisualcpp | msvcmsys)
4252 # This compiler won't grok `-c -o', but also, the minuso test has
4253 # not run yet. These depmodes are late enough in the game, and
4254 # so weak that their functioning should not be impacted.
4255 am__obj=conftest.${OBJEXT-o}
4256 am__minus_obj=
4258 none) break ;;
4259 esac
4260 if depmode=$depmode \
4261 source=sub/conftest.c object=$am__obj \
4262 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4263 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4264 >/dev/null 2>conftest.err &&
4265 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4266 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4267 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4268 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4269 # icc doesn't choke on unknown options, it will just issue warnings
4270 # or remarks (even with -Werror). So we grep stderr for any message
4271 # that says an option was ignored or not supported.
4272 # When given -MP, icc 7.0 and 7.1 complain thusly:
4273 # icc: Command line warning: ignoring option '-M'; no argument required
4274 # The diagnosis changed in icc 8.0:
4275 # icc: Command line remark: option '-MP' not supported
4276 if (grep 'ignoring option' conftest.err ||
4277 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4278 am_cv_CCAS_dependencies_compiler_type=$depmode
4279 break
4282 done
4284 cd ..
4285 rm -rf conftest.dir
4286 else
4287 am_cv_CCAS_dependencies_compiler_type=none
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4292 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4293 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4296 test "x$enable_dependency_tracking" != xno \
4297 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4298 am__fastdepCCAS_TRUE=
4299 am__fastdepCCAS_FALSE='#'
4300 else
4301 am__fastdepCCAS_TRUE='#'
4302 am__fastdepCCAS_FALSE=
4310 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4311 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4312 # in both places for now and restore CFLAGS at the end of config.
4313 save_CFLAGS="$CFLAGS"
4315 # Find other programs we need.
4316 if test -n "$ac_tool_prefix"; then
4317 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4318 set dummy ${ac_tool_prefix}ar; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if test "${ac_cv_prog_AR+set}" = set; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 if test -n "$AR"; then
4325 ac_cv_prog_AR="$AR" # Let the user override the test.
4326 else
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH
4330 IFS=$as_save_IFS
4331 test -z "$as_dir" && as_dir=.
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334 ac_cv_prog_AR="${ac_tool_prefix}ar"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 break 2
4338 done
4339 done
4340 IFS=$as_save_IFS
4344 AR=$ac_cv_prog_AR
4345 if test -n "$AR"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4347 $as_echo "$AR" >&6; }
4348 else
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4355 if test -z "$ac_cv_prog_AR"; then
4356 ac_ct_AR=$AR
4357 # Extract the first word of "ar", so it can be a program name with args.
4358 set dummy ar; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 if test -n "$ac_ct_AR"; then
4365 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374 ac_cv_prog_ac_ct_AR="ar"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 break 2
4378 done
4379 done
4380 IFS=$as_save_IFS
4384 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4385 if test -n "$ac_ct_AR"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4387 $as_echo "$ac_ct_AR" >&6; }
4388 else
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4393 if test "x$ac_ct_AR" = x; then
4394 AR=""
4395 else
4396 case $cross_compiling:$ac_tool_warned in
4397 yes:)
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4400 ac_tool_warned=yes ;;
4401 esac
4402 AR=$ac_ct_AR
4404 else
4405 AR="$ac_cv_prog_AR"
4408 if test -n "$ac_tool_prefix"; then
4409 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4410 set dummy ${ac_tool_prefix}nm; ac_word=$2
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412 $as_echo_n "checking for $ac_word... " >&6; }
4413 if test "${ac_cv_prog_NM+set}" = set; then :
4414 $as_echo_n "(cached) " >&6
4415 else
4416 if test -n "$NM"; then
4417 ac_cv_prog_NM="$NM" # Let the user override the test.
4418 else
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4426 ac_cv_prog_NM="${ac_tool_prefix}nm"
4427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 break 2
4430 done
4431 done
4432 IFS=$as_save_IFS
4436 NM=$ac_cv_prog_NM
4437 if test -n "$NM"; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4439 $as_echo "$NM" >&6; }
4440 else
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442 $as_echo "no" >&6; }
4447 if test -z "$ac_cv_prog_NM"; then
4448 ac_ct_NM=$NM
4449 # Extract the first word of "nm", so it can be a program name with args.
4450 set dummy nm; ac_word=$2
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452 $as_echo_n "checking for $ac_word... " >&6; }
4453 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 if test -n "$ac_ct_NM"; then
4457 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4458 else
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 ac_cv_prog_ac_ct_NM="nm"
4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4470 done
4471 done
4472 IFS=$as_save_IFS
4476 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4477 if test -n "$ac_ct_NM"; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4479 $as_echo "$ac_ct_NM" >&6; }
4480 else
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482 $as_echo "no" >&6; }
4485 if test "x$ac_ct_NM" = x; then
4486 NM=""
4487 else
4488 case $cross_compiling:$ac_tool_warned in
4489 yes:)
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4492 ac_tool_warned=yes ;;
4493 esac
4494 NM=$ac_ct_NM
4496 else
4497 NM="$ac_cv_prog_NM"
4500 if test -n "$ac_tool_prefix"; then
4501 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4502 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504 $as_echo_n "checking for $ac_word... " >&6; }
4505 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
4507 else
4508 if test -n "$RANLIB"; then
4509 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4522 done
4523 done
4524 IFS=$as_save_IFS
4528 RANLIB=$ac_cv_prog_RANLIB
4529 if test -n "$RANLIB"; then
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4531 $as_echo "$RANLIB" >&6; }
4532 else
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4539 if test -z "$ac_cv_prog_RANLIB"; then
4540 ac_ct_RANLIB=$RANLIB
4541 # Extract the first word of "ranlib", so it can be a program name with args.
4542 set dummy ranlib; ac_word=$2
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544 $as_echo_n "checking for $ac_word... " >&6; }
4545 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4546 $as_echo_n "(cached) " >&6
4547 else
4548 if test -n "$ac_ct_RANLIB"; then
4549 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4550 else
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 for as_dir in $PATH
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4558 ac_cv_prog_ac_ct_RANLIB="ranlib"
4559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 break 2
4562 done
4563 done
4564 IFS=$as_save_IFS
4568 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4569 if test -n "$ac_ct_RANLIB"; then
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4571 $as_echo "$ac_ct_RANLIB" >&6; }
4572 else
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4574 $as_echo "no" >&6; }
4577 if test "x$ac_ct_RANLIB" = x; then
4578 RANLIB="ranlib-not-found-in-path-error"
4579 else
4580 case $cross_compiling:$ac_tool_warned in
4581 yes:)
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4584 ac_tool_warned=yes ;;
4585 esac
4586 RANLIB=$ac_ct_RANLIB
4588 else
4589 RANLIB="$ac_cv_prog_RANLIB"
4592 # Extract the first word of "perl", so it can be a program name with args.
4593 set dummy perl; ac_word=$2
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595 $as_echo_n "checking for $ac_word... " >&6; }
4596 if test "${ac_cv_path_PERL+set}" = set; then :
4597 $as_echo_n "(cached) " >&6
4598 else
4599 case $PERL in
4600 [\\/]* | ?:[\\/]*)
4601 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4615 done
4616 done
4617 IFS=$as_save_IFS
4619 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4621 esac
4623 PERL=$ac_cv_path_PERL
4624 if test -n "$PERL"; then
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4626 $as_echo "$PERL" >&6; }
4627 else
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629 $as_echo "no" >&6; }
4635 # Configure libtool
4636 case `pwd` in
4637 *\ * | *\ *)
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4639 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4640 esac
4644 macro_version='2.2.7a'
4645 macro_revision='1.3134'
4659 ltmain="$ac_aux_dir/ltmain.sh"
4661 # Backslashify metacharacters that are still active within
4662 # double-quoted strings.
4663 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4665 # Same as above, but do not quote variable references.
4666 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4668 # Sed substitution to delay expansion of an escaped shell variable in a
4669 # double_quote_subst'ed string.
4670 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4672 # Sed substitution to delay expansion of an escaped single quote.
4673 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4675 # Sed substitution to avoid accidental globbing in evaled expressions
4676 no_glob_subst='s/\*/\\\*/g'
4678 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4679 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4680 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4683 $as_echo_n "checking how to print strings... " >&6; }
4684 # Test print first, because it will be a builtin if present.
4685 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4686 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4687 ECHO='print -r --'
4688 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4689 ECHO='printf %s\n'
4690 else
4691 # Use this function as a fallback that always works.
4692 func_fallback_echo ()
4694 eval 'cat <<_LTECHO_EOF
4696 _LTECHO_EOF'
4698 ECHO='func_fallback_echo'
4701 # func_echo_all arg...
4702 # Invoke $ECHO with all args, space-separated.
4703 func_echo_all ()
4705 $ECHO ""
4708 case "$ECHO" in
4709 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4710 $as_echo "printf" >&6; } ;;
4711 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4712 $as_echo "print -r" >&6; } ;;
4713 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4714 $as_echo "cat" >&6; } ;;
4715 esac
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4731 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4732 if test "${ac_cv_path_SED+set}" = set; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4736 for ac_i in 1 2 3 4 5 6 7; do
4737 ac_script="$ac_script$as_nl$ac_script"
4738 done
4739 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4740 { ac_script=; unset ac_script;}
4741 if test -z "$SED"; then
4742 ac_path_SED_found=false
4743 # Loop through the user's path and test for each of PROGNAME-LIST
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_prog in sed gsed; do
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4752 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4753 # Check for GNU ac_path_SED and select it if it is found.
4754 # Check for GNU $ac_path_SED
4755 case `"$ac_path_SED" --version 2>&1` in
4756 *GNU*)
4757 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4759 ac_count=0
4760 $as_echo_n 0123456789 >"conftest.in"
4761 while :
4763 cat "conftest.in" "conftest.in" >"conftest.tmp"
4764 mv "conftest.tmp" "conftest.in"
4765 cp "conftest.in" "conftest.nl"
4766 $as_echo '' >> "conftest.nl"
4767 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4769 as_fn_arith $ac_count + 1 && ac_count=$as_val
4770 if test $ac_count -gt ${ac_path_SED_max-0}; then
4771 # Best one so far, save it but keep looking for a better one
4772 ac_cv_path_SED="$ac_path_SED"
4773 ac_path_SED_max=$ac_count
4775 # 10*(2^10) chars as input seems more than enough
4776 test $ac_count -gt 10 && break
4777 done
4778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4779 esac
4781 $ac_path_SED_found && break 3
4782 done
4783 done
4784 done
4785 IFS=$as_save_IFS
4786 if test -z "$ac_cv_path_SED"; then
4787 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4789 else
4790 ac_cv_path_SED=$SED
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4795 $as_echo "$ac_cv_path_SED" >&6; }
4796 SED="$ac_cv_path_SED"
4797 rm -f conftest.sed
4799 test -z "$SED" && SED=sed
4800 Xsed="$SED -e 1s/^X//"
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4813 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4814 if test "${ac_cv_path_GREP+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 if test -z "$GREP"; then
4818 ac_path_GREP_found=false
4819 # Loop through the user's path and test for each of PROGNAME-LIST
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_prog in grep ggrep; do
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4828 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4829 # Check for GNU ac_path_GREP and select it if it is found.
4830 # Check for GNU $ac_path_GREP
4831 case `"$ac_path_GREP" --version 2>&1` in
4832 *GNU*)
4833 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4835 ac_count=0
4836 $as_echo_n 0123456789 >"conftest.in"
4837 while :
4839 cat "conftest.in" "conftest.in" >"conftest.tmp"
4840 mv "conftest.tmp" "conftest.in"
4841 cp "conftest.in" "conftest.nl"
4842 $as_echo 'GREP' >> "conftest.nl"
4843 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4844 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4845 as_fn_arith $ac_count + 1 && ac_count=$as_val
4846 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4847 # Best one so far, save it but keep looking for a better one
4848 ac_cv_path_GREP="$ac_path_GREP"
4849 ac_path_GREP_max=$ac_count
4851 # 10*(2^10) chars as input seems more than enough
4852 test $ac_count -gt 10 && break
4853 done
4854 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4855 esac
4857 $ac_path_GREP_found && break 3
4858 done
4859 done
4860 done
4861 IFS=$as_save_IFS
4862 if test -z "$ac_cv_path_GREP"; then
4863 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4865 else
4866 ac_cv_path_GREP=$GREP
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4871 $as_echo "$ac_cv_path_GREP" >&6; }
4872 GREP="$ac_cv_path_GREP"
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4876 $as_echo_n "checking for egrep... " >&6; }
4877 if test "${ac_cv_path_EGREP+set}" = set; then :
4878 $as_echo_n "(cached) " >&6
4879 else
4880 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4881 then ac_cv_path_EGREP="$GREP -E"
4882 else
4883 if test -z "$EGREP"; then
4884 ac_path_EGREP_found=false
4885 # Loop through the user's path and test for each of PROGNAME-LIST
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4889 IFS=$as_save_IFS
4890 test -z "$as_dir" && as_dir=.
4891 for ac_prog in egrep; do
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4894 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4895 # Check for GNU ac_path_EGREP and select it if it is found.
4896 # Check for GNU $ac_path_EGREP
4897 case `"$ac_path_EGREP" --version 2>&1` in
4898 *GNU*)
4899 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4901 ac_count=0
4902 $as_echo_n 0123456789 >"conftest.in"
4903 while :
4905 cat "conftest.in" "conftest.in" >"conftest.tmp"
4906 mv "conftest.tmp" "conftest.in"
4907 cp "conftest.in" "conftest.nl"
4908 $as_echo 'EGREP' >> "conftest.nl"
4909 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4911 as_fn_arith $ac_count + 1 && ac_count=$as_val
4912 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4913 # Best one so far, save it but keep looking for a better one
4914 ac_cv_path_EGREP="$ac_path_EGREP"
4915 ac_path_EGREP_max=$ac_count
4917 # 10*(2^10) chars as input seems more than enough
4918 test $ac_count -gt 10 && break
4919 done
4920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4921 esac
4923 $ac_path_EGREP_found && break 3
4924 done
4925 done
4926 done
4927 IFS=$as_save_IFS
4928 if test -z "$ac_cv_path_EGREP"; then
4929 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4931 else
4932 ac_cv_path_EGREP=$EGREP
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4938 $as_echo "$ac_cv_path_EGREP" >&6; }
4939 EGREP="$ac_cv_path_EGREP"
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4943 $as_echo_n "checking for fgrep... " >&6; }
4944 if test "${ac_cv_path_FGREP+set}" = set; then :
4945 $as_echo_n "(cached) " >&6
4946 else
4947 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4948 then ac_cv_path_FGREP="$GREP -F"
4949 else
4950 if test -z "$FGREP"; then
4951 ac_path_FGREP_found=false
4952 # Loop through the user's path and test for each of PROGNAME-LIST
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_prog in fgrep; do
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4961 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4962 # Check for GNU ac_path_FGREP and select it if it is found.
4963 # Check for GNU $ac_path_FGREP
4964 case `"$ac_path_FGREP" --version 2>&1` in
4965 *GNU*)
4966 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4968 ac_count=0
4969 $as_echo_n 0123456789 >"conftest.in"
4970 while :
4972 cat "conftest.in" "conftest.in" >"conftest.tmp"
4973 mv "conftest.tmp" "conftest.in"
4974 cp "conftest.in" "conftest.nl"
4975 $as_echo 'FGREP' >> "conftest.nl"
4976 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4977 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4978 as_fn_arith $ac_count + 1 && ac_count=$as_val
4979 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4980 # Best one so far, save it but keep looking for a better one
4981 ac_cv_path_FGREP="$ac_path_FGREP"
4982 ac_path_FGREP_max=$ac_count
4984 # 10*(2^10) chars as input seems more than enough
4985 test $ac_count -gt 10 && break
4986 done
4987 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4988 esac
4990 $ac_path_FGREP_found && break 3
4991 done
4992 done
4993 done
4994 IFS=$as_save_IFS
4995 if test -z "$ac_cv_path_FGREP"; then
4996 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4998 else
4999 ac_cv_path_FGREP=$FGREP
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5005 $as_echo "$ac_cv_path_FGREP" >&6; }
5006 FGREP="$ac_cv_path_FGREP"
5009 test -z "$GREP" && GREP=grep
5029 # Check whether --with-gnu-ld was given.
5030 if test "${with_gnu_ld+set}" = set; then :
5031 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5032 else
5033 with_gnu_ld=no
5036 ac_prog=ld
5037 if test "$GCC" = yes; then
5038 # Check if gcc -print-prog-name=ld gives a path.
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5040 $as_echo_n "checking for ld used by $CC... " >&6; }
5041 case $host in
5042 *-*-mingw*)
5043 # gcc leaves a trailing carriage return which upsets mingw
5044 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5046 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5047 esac
5048 case $ac_prog in
5049 # Accept absolute paths.
5050 [\\/]* | ?:[\\/]*)
5051 re_direlt='/[^/][^/]*/\.\./'
5052 # Canonicalize the pathname of ld
5053 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5054 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5055 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5056 done
5057 test -z "$LD" && LD="$ac_prog"
5060 # If it fails, then pretend we aren't using GCC.
5061 ac_prog=ld
5064 # If it is relative, then search for the first ld in PATH.
5065 with_gnu_ld=unknown
5067 esac
5068 elif test "$with_gnu_ld" = yes; then
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5070 $as_echo_n "checking for GNU ld... " >&6; }
5071 else
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5073 $as_echo_n "checking for non-GNU ld... " >&6; }
5075 if test "${lt_cv_path_LD+set}" = set; then :
5076 $as_echo_n "(cached) " >&6
5077 else
5078 if test -z "$LD"; then
5079 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5080 for ac_dir in $PATH; do
5081 IFS="$lt_save_ifs"
5082 test -z "$ac_dir" && ac_dir=.
5083 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5084 lt_cv_path_LD="$ac_dir/$ac_prog"
5085 # Check to see if the program is GNU ld. I'd rather use --version,
5086 # but apparently some variants of GNU ld only accept -v.
5087 # Break only if it was the GNU/non-GNU ld that we prefer.
5088 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5089 *GNU* | *'with BFD'*)
5090 test "$with_gnu_ld" != no && break
5093 test "$with_gnu_ld" != yes && break
5095 esac
5097 done
5098 IFS="$lt_save_ifs"
5099 else
5100 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5104 LD="$lt_cv_path_LD"
5105 if test -n "$LD"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5107 $as_echo "$LD" >&6; }
5108 else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5112 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5114 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5115 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5119 case `$LD -v 2>&1 </dev/null` in
5120 *GNU* | *'with BFD'*)
5121 lt_cv_prog_gnu_ld=yes
5124 lt_cv_prog_gnu_ld=no
5126 esac
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5129 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5130 with_gnu_ld=$lt_cv_prog_gnu_ld
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5141 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5142 if test "${lt_cv_path_NM+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5144 else
5145 if test -n "$NM"; then
5146 # Let the user override the test.
5147 lt_cv_path_NM="$NM"
5148 else
5149 lt_nm_to_check="${ac_tool_prefix}nm"
5150 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5151 lt_nm_to_check="$lt_nm_to_check nm"
5153 for lt_tmp_nm in $lt_nm_to_check; do
5154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5155 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5156 IFS="$lt_save_ifs"
5157 test -z "$ac_dir" && ac_dir=.
5158 tmp_nm="$ac_dir/$lt_tmp_nm"
5159 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5160 # Check to see if the nm accepts a BSD-compat flag.
5161 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5162 # nm: unknown option "B" ignored
5163 # Tru64's nm complains that /dev/null is an invalid object file
5164 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5165 */dev/null* | *'Invalid file or object type'*)
5166 lt_cv_path_NM="$tmp_nm -B"
5167 break
5170 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5171 */dev/null*)
5172 lt_cv_path_NM="$tmp_nm -p"
5173 break
5176 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5177 continue # so that we can try to find one that supports BSD flags
5179 esac
5181 esac
5183 done
5184 IFS="$lt_save_ifs"
5185 done
5186 : ${lt_cv_path_NM=no}
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5190 $as_echo "$lt_cv_path_NM" >&6; }
5191 if test "$lt_cv_path_NM" != "no"; then
5192 NM="$lt_cv_path_NM"
5193 else
5194 # Didn't find any BSD compatible name lister, look for dumpbin.
5195 if test -n "$DUMPBIN"; then :
5196 # Let the user override the test.
5197 else
5198 if test -n "$ac_tool_prefix"; then
5199 for ac_prog in dumpbin "link -dump"
5201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test -n "$DUMPBIN"; then
5209 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5222 done
5223 done
5224 IFS=$as_save_IFS
5228 DUMPBIN=$ac_cv_prog_DUMPBIN
5229 if test -n "$DUMPBIN"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5231 $as_echo "$DUMPBIN" >&6; }
5232 else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5238 test -n "$DUMPBIN" && break
5239 done
5241 if test -z "$DUMPBIN"; then
5242 ac_ct_DUMPBIN=$DUMPBIN
5243 for ac_prog in dumpbin "link -dump"
5245 # Extract the first word of "$ac_prog", so it can be a program name with args.
5246 set dummy $ac_prog; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -n "$ac_ct_DUMPBIN"; then
5253 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5272 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5273 if test -n "$ac_ct_DUMPBIN"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5275 $as_echo "$ac_ct_DUMPBIN" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5282 test -n "$ac_ct_DUMPBIN" && break
5283 done
5285 if test "x$ac_ct_DUMPBIN" = x; then
5286 DUMPBIN=":"
5287 else
5288 case $cross_compiling:$ac_tool_warned in
5289 yes:)
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5292 ac_tool_warned=yes ;;
5293 esac
5294 DUMPBIN=$ac_ct_DUMPBIN
5298 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5299 *COFF*)
5300 DUMPBIN="$DUMPBIN -symbols"
5303 DUMPBIN=:
5305 esac
5308 if test "$DUMPBIN" != ":"; then
5309 NM="$DUMPBIN"
5312 test -z "$NM" && NM=nm
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5320 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5321 if test "${lt_cv_nm_interface+set}" = set; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 lt_cv_nm_interface="BSD nm"
5325 echo "int some_variable = 0;" > conftest.$ac_ext
5326 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5327 (eval "$ac_compile" 2>conftest.err)
5328 cat conftest.err >&5
5329 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5330 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5331 cat conftest.err >&5
5332 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5333 cat conftest.out >&5
5334 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5335 lt_cv_nm_interface="MS dumpbin"
5337 rm -f conftest*
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5340 $as_echo "$lt_cv_nm_interface" >&6; }
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5343 $as_echo_n "checking whether ln -s works... " >&6; }
5344 LN_S=$as_ln_s
5345 if test "$LN_S" = "ln -s"; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5347 $as_echo "yes" >&6; }
5348 else
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5350 $as_echo "no, using $LN_S" >&6; }
5353 # find the maximum length of command line arguments
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5355 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5356 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5360 teststring="ABCD"
5362 case $build_os in
5363 msdosdjgpp*)
5364 # On DJGPP, this test can blow up pretty badly due to problems in libc
5365 # (any single argument exceeding 2000 bytes causes a buffer overrun
5366 # during glob expansion). Even if it were fixed, the result of this
5367 # check would be larger than it should be.
5368 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5371 gnu*)
5372 # Under GNU Hurd, this test is not required because there is
5373 # no limit to the length of command line arguments.
5374 # Libtool will interpret -1 as no limit whatsoever
5375 lt_cv_sys_max_cmd_len=-1;
5378 cygwin* | mingw* | cegcc*)
5379 # On Win9x/ME, this test blows up -- it succeeds, but takes
5380 # about 5 minutes as the teststring grows exponentially.
5381 # Worse, since 9x/ME are not pre-emptively multitasking,
5382 # you end up with a "frozen" computer, even though with patience
5383 # the test eventually succeeds (with a max line length of 256k).
5384 # Instead, let's just punt: use the minimum linelength reported by
5385 # all of the supported platforms: 8192 (on NT/2K/XP).
5386 lt_cv_sys_max_cmd_len=8192;
5389 mint*)
5390 # On MiNT this can take a long time and run out of memory.
5391 lt_cv_sys_max_cmd_len=8192;
5394 amigaos*)
5395 # On AmigaOS with pdksh, this test takes hours, literally.
5396 # So we just punt and use a minimum line length of 8192.
5397 lt_cv_sys_max_cmd_len=8192;
5400 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5401 # This has been around since 386BSD, at least. Likely further.
5402 if test -x /sbin/sysctl; then
5403 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5404 elif test -x /usr/sbin/sysctl; then
5405 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5406 else
5407 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5409 # And add a safety zone
5410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5414 interix*)
5415 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5416 lt_cv_sys_max_cmd_len=196608
5419 osf*)
5420 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5421 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5422 # nice to cause kernel panics so lets avoid the loop below.
5423 # First set a reasonable default.
5424 lt_cv_sys_max_cmd_len=16384
5426 if test -x /sbin/sysconfig; then
5427 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5428 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5429 esac
5432 sco3.2v5*)
5433 lt_cv_sys_max_cmd_len=102400
5435 sysv5* | sco5v6* | sysv4.2uw2*)
5436 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5437 if test -n "$kargmax"; then
5438 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5439 else
5440 lt_cv_sys_max_cmd_len=32768
5444 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5445 if test -n "$lt_cv_sys_max_cmd_len"; then
5446 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5447 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5448 else
5449 # Make teststring a little bigger before we do anything with it.
5450 # a 1K string should be a reasonable start.
5451 for i in 1 2 3 4 5 6 7 8 ; do
5452 teststring=$teststring$teststring
5453 done
5454 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5455 # If test is not a shell built-in, we'll probably end up computing a
5456 # maximum length that is only half of the actual maximum length, but
5457 # we can't tell.
5458 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5459 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5460 test $i != 17 # 1/2 MB should be enough
5462 i=`expr $i + 1`
5463 teststring=$teststring$teststring
5464 done
5465 # Only check the string length outside the loop.
5466 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5467 teststring=
5468 # Add a significant safety factor because C++ compilers can tack on
5469 # massive amounts of additional arguments before passing them to the
5470 # linker. It appears as though 1/2 is a usable value.
5471 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5474 esac
5478 if test -n $lt_cv_sys_max_cmd_len ; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5480 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5483 $as_echo "none" >&6; }
5485 max_cmd_len=$lt_cv_sys_max_cmd_len
5492 : ${CP="cp -f"}
5493 : ${MV="mv -f"}
5494 : ${RM="rm -f"}
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5497 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5498 # Try some XSI features
5499 xsi_shell=no
5500 ( _lt_dummy="a/b/c"
5501 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5502 = c,a/b,, \
5503 && eval 'test $(( 1 + 1 )) -eq 2 \
5504 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5505 && xsi_shell=yes
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5507 $as_echo "$xsi_shell" >&6; }
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5511 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5512 lt_shell_append=no
5513 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5514 >/dev/null 2>&1 \
5515 && lt_shell_append=yes
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5517 $as_echo "$lt_shell_append" >&6; }
5520 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5521 lt_unset=unset
5522 else
5523 lt_unset=false
5530 # test EBCDIC or ASCII
5531 case `echo X|tr X '\101'` in
5532 A) # ASCII based system
5533 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5534 lt_SP2NL='tr \040 \012'
5535 lt_NL2SP='tr \015\012 \040\040'
5537 *) # EBCDIC based system
5538 lt_SP2NL='tr \100 \n'
5539 lt_NL2SP='tr \r\n \100\100'
5541 esac
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5552 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5553 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 lt_cv_ld_reload_flag='-r'
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5559 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5560 reload_flag=$lt_cv_ld_reload_flag
5561 case $reload_flag in
5562 "" | " "*) ;;
5563 *) reload_flag=" $reload_flag" ;;
5564 esac
5565 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5566 case $host_os in
5567 darwin*)
5568 if test "$GCC" = yes; then
5569 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5570 else
5571 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5574 esac
5584 if test -n "$ac_tool_prefix"; then
5585 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5586 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 if test -n "$OBJDUMP"; then
5593 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_exec_ext in '' $ac_executable_extensions; do
5601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5602 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 break 2
5606 done
5607 done
5608 IFS=$as_save_IFS
5612 OBJDUMP=$ac_cv_prog_OBJDUMP
5613 if test -n "$OBJDUMP"; then
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5615 $as_echo "$OBJDUMP" >&6; }
5616 else
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5623 if test -z "$ac_cv_prog_OBJDUMP"; then
5624 ac_ct_OBJDUMP=$OBJDUMP
5625 # Extract the first word of "objdump", so it can be a program name with args.
5626 set dummy objdump; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5631 else
5632 if test -n "$ac_ct_OBJDUMP"; then
5633 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5638 IFS=$as_save_IFS
5639 test -z "$as_dir" && as_dir=.
5640 for ac_exec_ext in '' $ac_executable_extensions; do
5641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 break 2
5646 done
5647 done
5648 IFS=$as_save_IFS
5652 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5653 if test -n "$ac_ct_OBJDUMP"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5655 $as_echo "$ac_ct_OBJDUMP" >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5661 if test "x$ac_ct_OBJDUMP" = x; then
5662 OBJDUMP="false"
5663 else
5664 case $cross_compiling:$ac_tool_warned in
5665 yes:)
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5668 ac_tool_warned=yes ;;
5669 esac
5670 OBJDUMP=$ac_ct_OBJDUMP
5672 else
5673 OBJDUMP="$ac_cv_prog_OBJDUMP"
5676 test -z "$OBJDUMP" && OBJDUMP=objdump
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5687 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5688 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 lt_cv_file_magic_cmd='$MAGIC_CMD'
5692 lt_cv_file_magic_test_file=
5693 lt_cv_deplibs_check_method='unknown'
5694 # Need to set the preceding variable on all platforms that support
5695 # interlibrary dependencies.
5696 # 'none' -- dependencies not supported.
5697 # `unknown' -- same as none, but documents that we really don't know.
5698 # 'pass_all' -- all dependencies passed with no checks.
5699 # 'test_compile' -- check by making test program.
5700 # 'file_magic [[regex]]' -- check by looking for files in library path
5701 # which responds to the $file_magic_cmd with a given extended regex.
5702 # If you have `file' or equivalent on your system and you're not sure
5703 # whether `pass_all' will *always* work, you probably want this one.
5705 case $host_os in
5706 aix[4-9]*)
5707 lt_cv_deplibs_check_method=pass_all
5710 beos*)
5711 lt_cv_deplibs_check_method=pass_all
5714 bsdi[45]*)
5715 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5716 lt_cv_file_magic_cmd='/usr/bin/file -L'
5717 lt_cv_file_magic_test_file=/shlib/libc.so
5720 cygwin*)
5721 # func_win32_libid is a shell function defined in ltmain.sh
5722 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5723 lt_cv_file_magic_cmd='func_win32_libid'
5726 mingw* | pw32*)
5727 # Base MSYS/MinGW do not provide the 'file' command needed by
5728 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5729 # unless we find 'file', for example because we are cross-compiling.
5730 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5731 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5732 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5733 lt_cv_file_magic_cmd='func_win32_libid'
5734 else
5735 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5736 lt_cv_file_magic_cmd='$OBJDUMP -f'
5740 cegcc*)
5741 # use the weaker test based on 'objdump'. See mingw*.
5742 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5743 lt_cv_file_magic_cmd='$OBJDUMP -f'
5746 darwin* | rhapsody*)
5747 lt_cv_deplibs_check_method=pass_all
5750 freebsd* | dragonfly*)
5751 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5752 case $host_cpu in
5753 i*86 )
5754 # Not sure whether the presence of OpenBSD here was a mistake.
5755 # Let's accept both of them until this is cleared up.
5756 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5757 lt_cv_file_magic_cmd=/usr/bin/file
5758 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5760 esac
5761 else
5762 lt_cv_deplibs_check_method=pass_all
5766 gnu*)
5767 lt_cv_deplibs_check_method=pass_all
5770 haiku*)
5771 lt_cv_deplibs_check_method=pass_all
5774 hpux10.20* | hpux11*)
5775 lt_cv_file_magic_cmd=/usr/bin/file
5776 case $host_cpu in
5777 ia64*)
5778 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5779 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5781 hppa*64*)
5782 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]'
5783 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5786 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5787 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5789 esac
5792 interix[3-9]*)
5793 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5797 irix5* | irix6* | nonstopux*)
5798 case $LD in
5799 *-32|*"-32 ") libmagic=32-bit;;
5800 *-n32|*"-n32 ") libmagic=N32;;
5801 *-64|*"-64 ") libmagic=64-bit;;
5802 *) libmagic=never-match;;
5803 esac
5804 lt_cv_deplibs_check_method=pass_all
5807 # This must be Linux ELF.
5808 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5809 lt_cv_deplibs_check_method=pass_all
5812 netbsd*)
5813 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5814 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5815 else
5816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5820 newos6*)
5821 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5822 lt_cv_file_magic_cmd=/usr/bin/file
5823 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5826 *nto* | *qnx*)
5827 lt_cv_deplibs_check_method=pass_all
5830 openbsd*)
5831 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5833 else
5834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5838 osf3* | osf4* | osf5*)
5839 lt_cv_deplibs_check_method=pass_all
5842 rdos*)
5843 lt_cv_deplibs_check_method=pass_all
5846 solaris*)
5847 lt_cv_deplibs_check_method=pass_all
5850 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5851 lt_cv_deplibs_check_method=pass_all
5854 sysv4 | sysv4.3*)
5855 case $host_vendor in
5856 motorola)
5857 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]'
5858 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5860 ncr)
5861 lt_cv_deplibs_check_method=pass_all
5863 sequent)
5864 lt_cv_file_magic_cmd='/bin/file'
5865 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5867 sni)
5868 lt_cv_file_magic_cmd='/bin/file'
5869 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5870 lt_cv_file_magic_test_file=/lib/libc.so
5872 siemens)
5873 lt_cv_deplibs_check_method=pass_all
5876 lt_cv_deplibs_check_method=pass_all
5878 esac
5881 tpf*)
5882 lt_cv_deplibs_check_method=pass_all
5884 esac
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5888 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5889 file_magic_cmd=$lt_cv_file_magic_cmd
5890 deplibs_check_method=$lt_cv_deplibs_check_method
5891 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5904 if test -n "$ac_tool_prefix"; then
5905 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5906 set dummy ${ac_tool_prefix}ar; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if test "${ac_cv_prog_AR+set}" = set; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 if test -n "$AR"; then
5913 ac_cv_prog_AR="$AR" # Let the user override the test.
5914 else
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922 ac_cv_prog_AR="${ac_tool_prefix}ar"
5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 break 2
5926 done
5927 done
5928 IFS=$as_save_IFS
5932 AR=$ac_cv_prog_AR
5933 if test -n "$AR"; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5935 $as_echo "$AR" >&6; }
5936 else
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 $as_echo "no" >&6; }
5943 if test -z "$ac_cv_prog_AR"; then
5944 ac_ct_AR=$AR
5945 # Extract the first word of "ar", so it can be a program name with args.
5946 set dummy ar; ac_word=$2
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 $as_echo_n "checking for $ac_word... " >&6; }
5949 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 if test -n "$ac_ct_AR"; then
5953 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
5961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962 ac_cv_prog_ac_ct_AR="ar"
5963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 break 2
5966 done
5967 done
5968 IFS=$as_save_IFS
5972 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5973 if test -n "$ac_ct_AR"; then
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5975 $as_echo "$ac_ct_AR" >&6; }
5976 else
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5981 if test "x$ac_ct_AR" = x; then
5982 AR="false"
5983 else
5984 case $cross_compiling:$ac_tool_warned in
5985 yes:)
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5988 ac_tool_warned=yes ;;
5989 esac
5990 AR=$ac_ct_AR
5992 else
5993 AR="$ac_cv_prog_AR"
5996 test -z "$AR" && AR=ar
5997 test -z "$AR_FLAGS" && AR_FLAGS=cru
6009 if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}strip; ac_word=$2
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6013 $as_echo_n "checking for $ac_word... " >&6; }
6014 if test "${ac_cv_prog_STRIP+set}" = set; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 if test -n "$STRIP"; then
6018 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6019 else
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 for as_dir in $PATH
6023 IFS=$as_save_IFS
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6027 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6029 break 2
6031 done
6032 done
6033 IFS=$as_save_IFS
6037 STRIP=$ac_cv_prog_STRIP
6038 if test -n "$STRIP"; then
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6040 $as_echo "$STRIP" >&6; }
6041 else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6043 $as_echo "no" >&6; }
6048 if test -z "$ac_cv_prog_STRIP"; then
6049 ac_ct_STRIP=$STRIP
6050 # Extract the first word of "strip", so it can be a program name with args.
6051 set dummy strip; ac_word=$2
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 $as_echo_n "checking for $ac_word... " >&6; }
6054 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 if test -n "$ac_ct_STRIP"; then
6058 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_prog_ac_ct_STRIP="strip"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6071 done
6072 done
6073 IFS=$as_save_IFS
6077 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6078 if test -n "$ac_ct_STRIP"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6080 $as_echo "$ac_ct_STRIP" >&6; }
6081 else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 $as_echo "no" >&6; }
6086 if test "x$ac_ct_STRIP" = x; then
6087 STRIP=":"
6088 else
6089 case $cross_compiling:$ac_tool_warned in
6090 yes:)
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6093 ac_tool_warned=yes ;;
6094 esac
6095 STRIP=$ac_ct_STRIP
6097 else
6098 STRIP="$ac_cv_prog_STRIP"
6101 test -z "$STRIP" && STRIP=:
6108 if test -n "$ac_tool_prefix"; then
6109 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6110 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6114 $as_echo_n "(cached) " >&6
6115 else
6116 if test -n "$RANLIB"; then
6117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6118 else
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6122 IFS=$as_save_IFS
6123 test -z "$as_dir" && as_dir=.
6124 for ac_exec_ext in '' $ac_executable_extensions; do
6125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6126 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6128 break 2
6130 done
6131 done
6132 IFS=$as_save_IFS
6136 RANLIB=$ac_cv_prog_RANLIB
6137 if test -n "$RANLIB"; then
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6139 $as_echo "$RANLIB" >&6; }
6140 else
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6142 $as_echo "no" >&6; }
6147 if test -z "$ac_cv_prog_RANLIB"; then
6148 ac_ct_RANLIB=$RANLIB
6149 # Extract the first word of "ranlib", so it can be a program name with args.
6150 set dummy ranlib; ac_word=$2
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152 $as_echo_n "checking for $ac_word... " >&6; }
6153 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 if test -n "$ac_ct_RANLIB"; then
6157 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6162 IFS=$as_save_IFS
6163 test -z "$as_dir" && as_dir=.
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6166 ac_cv_prog_ac_ct_RANLIB="ranlib"
6167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168 break 2
6170 done
6171 done
6172 IFS=$as_save_IFS
6176 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6177 if test -n "$ac_ct_RANLIB"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6179 $as_echo "$ac_ct_RANLIB" >&6; }
6180 else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6185 if test "x$ac_ct_RANLIB" = x; then
6186 RANLIB=":"
6187 else
6188 case $cross_compiling:$ac_tool_warned in
6189 yes:)
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6192 ac_tool_warned=yes ;;
6193 esac
6194 RANLIB=$ac_ct_RANLIB
6196 else
6197 RANLIB="$ac_cv_prog_RANLIB"
6200 test -z "$RANLIB" && RANLIB=:
6207 # Determine commands to create old-style static archives.
6208 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6209 old_postinstall_cmds='chmod 644 $oldlib'
6210 old_postuninstall_cmds=
6212 if test -n "$RANLIB"; then
6213 case $host_os in
6214 openbsd*)
6215 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6218 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6220 esac
6221 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6224 case $host_os in
6225 darwin*)
6226 lock_old_archive_extraction=yes ;;
6228 lock_old_archive_extraction=no ;;
6229 esac
6269 # If no C compiler was specified, use CC.
6270 LTCC=${LTCC-"$CC"}
6272 # If no C compiler flags were specified, use CFLAGS.
6273 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6275 # Allow CC to be a program name with arguments.
6276 compiler=$CC
6279 # Check for command to grab the raw symbol name followed by C symbol from nm.
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6281 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6282 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6283 $as_echo_n "(cached) " >&6
6284 else
6286 # These are sane defaults that work on at least a few old systems.
6287 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6289 # Character class describing NM global symbol codes.
6290 symcode='[BCDEGRST]'
6292 # Regexp to match symbols that can be accessed directly from C.
6293 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6295 # Define system-specific variables.
6296 case $host_os in
6297 aix*)
6298 symcode='[BCDT]'
6300 cygwin* | mingw* | pw32* | cegcc*)
6301 symcode='[ABCDGISTW]'
6303 hpux*)
6304 if test "$host_cpu" = ia64; then
6305 symcode='[ABCDEGRST]'
6308 irix* | nonstopux*)
6309 symcode='[BCDEGRST]'
6311 osf*)
6312 symcode='[BCDEGQRST]'
6314 solaris*)
6315 symcode='[BDRT]'
6317 sco3.2v5*)
6318 symcode='[DT]'
6320 sysv4.2uw2*)
6321 symcode='[DT]'
6323 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6324 symcode='[ABDT]'
6326 sysv4)
6327 symcode='[DFNSTU]'
6329 esac
6331 # If we're using GNU nm, then use its standard symbol codes.
6332 case `$NM -V 2>&1` in
6333 *GNU* | *'with BFD'*)
6334 symcode='[ABCDGIRSTW]' ;;
6335 esac
6337 # Transform an extracted symbol line into a proper C declaration.
6338 # Some systems (esp. on ia64) link data and code symbols differently,
6339 # so use this general approach.
6340 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6342 # Transform an extracted symbol line into symbol name and symbol address
6343 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6344 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'"
6346 # Handle CRLF in mingw tool chain
6347 opt_cr=
6348 case $build_os in
6349 mingw*)
6350 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6352 esac
6354 # Try without a prefix underscore, then with it.
6355 for ac_symprfx in "" "_"; do
6357 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6358 symxfrm="\\1 $ac_symprfx\\2 \\2"
6360 # Write the raw and C identifiers.
6361 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6362 # Fake it for dumpbin and say T for any non-static function
6363 # and D for any global variable.
6364 # Also find C++ and __fastcall symbols from MSVC++,
6365 # which start with @ or ?.
6366 lt_cv_sys_global_symbol_pipe="$AWK '"\
6367 " {last_section=section; section=\$ 3};"\
6368 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6369 " \$ 0!~/External *\|/{next};"\
6370 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6371 " {if(hide[section]) next};"\
6372 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6373 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6374 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6375 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6376 " ' prfx=^$ac_symprfx"
6377 else
6378 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6381 # Check to see that the pipe works correctly.
6382 pipe_works=no
6384 rm -f conftest*
6385 cat > conftest.$ac_ext <<_LT_EOF
6386 #ifdef __cplusplus
6387 extern "C" {
6388 #endif
6389 char nm_test_var;
6390 void nm_test_func(void);
6391 void nm_test_func(void){}
6392 #ifdef __cplusplus
6394 #endif
6395 int main(){nm_test_var='a';nm_test_func();return(0);}
6396 _LT_EOF
6398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6399 (eval $ac_compile) 2>&5
6400 ac_status=$?
6401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6402 test $ac_status = 0; }; then
6403 # Now try to grab the symbols.
6404 nlist=conftest.nm
6405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6406 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6407 ac_status=$?
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; } && test -s "$nlist"; then
6410 # Try sorting and uniquifying the output.
6411 if sort "$nlist" | uniq > "$nlist"T; then
6412 mv -f "$nlist"T "$nlist"
6413 else
6414 rm -f "$nlist"T
6417 # Make sure that we snagged all the symbols we need.
6418 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6419 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6420 cat <<_LT_EOF > conftest.$ac_ext
6421 #ifdef __cplusplus
6422 extern "C" {
6423 #endif
6425 _LT_EOF
6426 # Now generate the symbol file.
6427 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6429 cat <<_LT_EOF >> conftest.$ac_ext
6431 /* The mapping between symbol names and symbols. */
6432 const struct {
6433 const char *name;
6434 void *address;
6436 lt__PROGRAM__LTX_preloaded_symbols[] =
6438 { "@PROGRAM@", (void *) 0 },
6439 _LT_EOF
6440 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6441 cat <<\_LT_EOF >> conftest.$ac_ext
6442 {0, (void *) 0}
6445 /* This works around a problem in FreeBSD linker */
6446 #ifdef FREEBSD_WORKAROUND
6447 static const void *lt_preloaded_setup() {
6448 return lt__PROGRAM__LTX_preloaded_symbols;
6450 #endif
6452 #ifdef __cplusplus
6454 #endif
6455 _LT_EOF
6456 # Now try linking the two files.
6457 mv conftest.$ac_objext conftstm.$ac_objext
6458 lt_save_LIBS="$LIBS"
6459 lt_save_CFLAGS="$CFLAGS"
6460 LIBS="conftstm.$ac_objext"
6461 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6463 (eval $ac_link) 2>&5
6464 ac_status=$?
6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6467 pipe_works=yes
6469 LIBS="$lt_save_LIBS"
6470 CFLAGS="$lt_save_CFLAGS"
6471 else
6472 echo "cannot find nm_test_func in $nlist" >&5
6474 else
6475 echo "cannot find nm_test_var in $nlist" >&5
6477 else
6478 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6480 else
6481 echo "$progname: failed program was:" >&5
6482 cat conftest.$ac_ext >&5
6484 rm -rf conftest* conftst*
6486 # Do not use the global_symbol_pipe unless it works.
6487 if test "$pipe_works" = yes; then
6488 break
6489 else
6490 lt_cv_sys_global_symbol_pipe=
6492 done
6496 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6497 lt_cv_sys_global_symbol_to_cdecl=
6499 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6501 $as_echo "failed" >&6; }
6502 else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6504 $as_echo "ok" >&6; }
6529 # Check whether --enable-libtool-lock was given.
6530 if test "${enable_libtool_lock+set}" = set; then :
6531 enableval=$enable_libtool_lock;
6534 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6536 # Some flags need to be propagated to the compiler or linker for good
6537 # libtool support.
6538 case $host in
6539 ia64-*-hpux*)
6540 # Find out which ABI we are using.
6541 echo 'int i;' > conftest.$ac_ext
6542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6543 (eval $ac_compile) 2>&5
6544 ac_status=$?
6545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6546 test $ac_status = 0; }; then
6547 case `/usr/bin/file conftest.$ac_objext` in
6548 *ELF-32*)
6549 HPUX_IA64_MODE="32"
6551 *ELF-64*)
6552 HPUX_IA64_MODE="64"
6554 esac
6556 rm -rf conftest*
6558 *-*-irix6*)
6559 # Find out which ABI we are using.
6560 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6561 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6562 (eval $ac_compile) 2>&5
6563 ac_status=$?
6564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6565 test $ac_status = 0; }; then
6566 if test "$lt_cv_prog_gnu_ld" = yes; then
6567 case `/usr/bin/file conftest.$ac_objext` in
6568 *32-bit*)
6569 LD="${LD-ld} -melf32bsmip"
6571 *N32*)
6572 LD="${LD-ld} -melf32bmipn32"
6574 *64-bit*)
6575 LD="${LD-ld} -melf64bmip"
6577 esac
6578 else
6579 case `/usr/bin/file conftest.$ac_objext` in
6580 *32-bit*)
6581 LD="${LD-ld} -32"
6583 *N32*)
6584 LD="${LD-ld} -n32"
6586 *64-bit*)
6587 LD="${LD-ld} -64"
6589 esac
6592 rm -rf conftest*
6595 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6596 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6597 # Find out which ABI we are using.
6598 echo 'int i;' > conftest.$ac_ext
6599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6600 (eval $ac_compile) 2>&5
6601 ac_status=$?
6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603 test $ac_status = 0; }; then
6604 case `/usr/bin/file conftest.o` in
6605 *32-bit*)
6606 case $host in
6607 x86_64-*kfreebsd*-gnu)
6608 LD="${LD-ld} -m elf_i386_fbsd"
6610 x86_64-*linux*)
6611 case `/usr/bin/file conftest.o` in
6612 *x86-64*)
6613 LD="${LD-ld} -m elf32_x86_64"
6616 LD="${LD-ld} -m elf_i386"
6618 esac
6620 powerpc64le-*linux*)
6621 LD="${LD-ld} -m elf32lppclinux"
6623 powerpc64-*linux*)
6624 LD="${LD-ld} -m elf32ppclinux"
6626 s390x-*linux*)
6627 LD="${LD-ld} -m elf_s390"
6629 sparc64-*linux*)
6630 LD="${LD-ld} -m elf32_sparc"
6632 esac
6634 *64-bit*)
6635 case $host in
6636 x86_64-*kfreebsd*-gnu)
6637 LD="${LD-ld} -m elf_x86_64_fbsd"
6639 x86_64-*linux*)
6640 LD="${LD-ld} -m elf_x86_64"
6642 powerpcle-*linux*)
6643 LD="${LD-ld} -m elf64lppc"
6645 powerpc-*linux*)
6646 LD="${LD-ld} -m elf64ppc"
6648 s390*-*linux*|s390*-*tpf*)
6649 LD="${LD-ld} -m elf64_s390"
6651 sparc*-*linux*)
6652 LD="${LD-ld} -m elf64_sparc"
6654 esac
6656 esac
6658 rm -rf conftest*
6661 *-*-sco3.2v5*)
6662 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6663 SAVE_CFLAGS="$CFLAGS"
6664 CFLAGS="$CFLAGS -belf"
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6666 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6667 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6668 $as_echo_n "(cached) " >&6
6669 else
6670 ac_ext=c
6671 ac_cpp='$CPP $CPPFLAGS'
6672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6680 main ()
6684 return 0;
6686 _ACEOF
6687 if ac_fn_c_try_link "$LINENO"; then :
6688 lt_cv_cc_needs_belf=yes
6689 else
6690 lt_cv_cc_needs_belf=no
6692 rm -f core conftest.err conftest.$ac_objext \
6693 conftest$ac_exeext conftest.$ac_ext
6694 ac_ext=c
6695 ac_cpp='$CPP $CPPFLAGS'
6696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6702 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6703 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6704 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6705 CFLAGS="$SAVE_CFLAGS"
6708 sparc*-*solaris*)
6709 # Find out which ABI we are using.
6710 echo 'int i;' > conftest.$ac_ext
6711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6712 (eval $ac_compile) 2>&5
6713 ac_status=$?
6714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715 test $ac_status = 0; }; then
6716 case `/usr/bin/file conftest.o` in
6717 *64-bit*)
6718 case $lt_cv_prog_gnu_ld in
6719 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6721 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6722 LD="${LD-ld} -64"
6725 esac
6727 esac
6729 rm -rf conftest*
6731 esac
6733 need_locks="$enable_libtool_lock"
6736 case $host_os in
6737 rhapsody* | darwin*)
6738 if test -n "$ac_tool_prefix"; then
6739 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6740 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6744 $as_echo_n "(cached) " >&6
6745 else
6746 if test -n "$DSYMUTIL"; then
6747 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6760 done
6761 done
6762 IFS=$as_save_IFS
6766 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6767 if test -n "$DSYMUTIL"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6769 $as_echo "$DSYMUTIL" >&6; }
6770 else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6777 if test -z "$ac_cv_prog_DSYMUTIL"; then
6778 ac_ct_DSYMUTIL=$DSYMUTIL
6779 # Extract the first word of "dsymutil", so it can be a program name with args.
6780 set dummy dsymutil; ac_word=$2
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6782 $as_echo_n "checking for $ac_word... " >&6; }
6783 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6784 $as_echo_n "(cached) " >&6
6785 else
6786 if test -n "$ac_ct_DSYMUTIL"; then
6787 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6788 else
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6790 for as_dir in $PATH
6792 IFS=$as_save_IFS
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6798 break 2
6800 done
6801 done
6802 IFS=$as_save_IFS
6806 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6807 if test -n "$ac_ct_DSYMUTIL"; then
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6809 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6810 else
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6815 if test "x$ac_ct_DSYMUTIL" = x; then
6816 DSYMUTIL=":"
6817 else
6818 case $cross_compiling:$ac_tool_warned in
6819 yes:)
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6822 ac_tool_warned=yes ;;
6823 esac
6824 DSYMUTIL=$ac_ct_DSYMUTIL
6826 else
6827 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6830 if test -n "$ac_tool_prefix"; then
6831 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6832 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test -n "$NMEDIT"; then
6839 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
6847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6848 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6852 done
6853 done
6854 IFS=$as_save_IFS
6858 NMEDIT=$ac_cv_prog_NMEDIT
6859 if test -n "$NMEDIT"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6861 $as_echo "$NMEDIT" >&6; }
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6869 if test -z "$ac_cv_prog_NMEDIT"; then
6870 ac_ct_NMEDIT=$NMEDIT
6871 # Extract the first word of "nmedit", so it can be a program name with args.
6872 set dummy nmedit; ac_word=$2
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6874 $as_echo_n "checking for $ac_word... " >&6; }
6875 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 if test -n "$ac_ct_NMEDIT"; then
6879 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6884 IFS=$as_save_IFS
6885 test -z "$as_dir" && as_dir=.
6886 for ac_exec_ext in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 break 2
6892 done
6893 done
6894 IFS=$as_save_IFS
6898 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6899 if test -n "$ac_ct_NMEDIT"; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6901 $as_echo "$ac_ct_NMEDIT" >&6; }
6902 else
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6907 if test "x$ac_ct_NMEDIT" = x; then
6908 NMEDIT=":"
6909 else
6910 case $cross_compiling:$ac_tool_warned in
6911 yes:)
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6914 ac_tool_warned=yes ;;
6915 esac
6916 NMEDIT=$ac_ct_NMEDIT
6918 else
6919 NMEDIT="$ac_cv_prog_NMEDIT"
6922 if test -n "$ac_tool_prefix"; then
6923 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6924 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if test "${ac_cv_prog_LIPO+set}" = set; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 if test -n "$LIPO"; then
6931 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6944 done
6945 done
6946 IFS=$as_save_IFS
6950 LIPO=$ac_cv_prog_LIPO
6951 if test -n "$LIPO"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6953 $as_echo "$LIPO" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6961 if test -z "$ac_cv_prog_LIPO"; then
6962 ac_ct_LIPO=$LIPO
6963 # Extract the first word of "lipo", so it can be a program name with args.
6964 set dummy lipo; ac_word=$2
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6966 $as_echo_n "checking for $ac_word... " >&6; }
6967 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6968 $as_echo_n "(cached) " >&6
6969 else
6970 if test -n "$ac_ct_LIPO"; then
6971 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6972 else
6973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6974 for as_dir in $PATH
6976 IFS=$as_save_IFS
6977 test -z "$as_dir" && as_dir=.
6978 for ac_exec_ext in '' $ac_executable_extensions; do
6979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6980 ac_cv_prog_ac_ct_LIPO="lipo"
6981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6982 break 2
6984 done
6985 done
6986 IFS=$as_save_IFS
6990 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6991 if test -n "$ac_ct_LIPO"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6993 $as_echo "$ac_ct_LIPO" >&6; }
6994 else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 $as_echo "no" >&6; }
6999 if test "x$ac_ct_LIPO" = x; then
7000 LIPO=":"
7001 else
7002 case $cross_compiling:$ac_tool_warned in
7003 yes:)
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7006 ac_tool_warned=yes ;;
7007 esac
7008 LIPO=$ac_ct_LIPO
7010 else
7011 LIPO="$ac_cv_prog_LIPO"
7014 if test -n "$ac_tool_prefix"; then
7015 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7016 set dummy ${ac_tool_prefix}otool; ac_word=$2
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7018 $as_echo_n "checking for $ac_word... " >&6; }
7019 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7020 $as_echo_n "(cached) " >&6
7021 else
7022 if test -n "$OTOOL"; then
7023 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7024 else
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
7030 for ac_exec_ext in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7032 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 break 2
7036 done
7037 done
7038 IFS=$as_save_IFS
7042 OTOOL=$ac_cv_prog_OTOOL
7043 if test -n "$OTOOL"; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7045 $as_echo "$OTOOL" >&6; }
7046 else
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7048 $as_echo "no" >&6; }
7053 if test -z "$ac_cv_prog_OTOOL"; then
7054 ac_ct_OTOOL=$OTOOL
7055 # Extract the first word of "otool", so it can be a program name with args.
7056 set dummy otool; ac_word=$2
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7058 $as_echo_n "checking for $ac_word... " >&6; }
7059 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7060 $as_echo_n "(cached) " >&6
7061 else
7062 if test -n "$ac_ct_OTOOL"; then
7063 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7064 else
7065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7068 IFS=$as_save_IFS
7069 test -z "$as_dir" && as_dir=.
7070 for ac_exec_ext in '' $ac_executable_extensions; do
7071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7072 ac_cv_prog_ac_ct_OTOOL="otool"
7073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 break 2
7076 done
7077 done
7078 IFS=$as_save_IFS
7082 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7083 if test -n "$ac_ct_OTOOL"; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7085 $as_echo "$ac_ct_OTOOL" >&6; }
7086 else
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7091 if test "x$ac_ct_OTOOL" = x; then
7092 OTOOL=":"
7093 else
7094 case $cross_compiling:$ac_tool_warned in
7095 yes:)
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7098 ac_tool_warned=yes ;;
7099 esac
7100 OTOOL=$ac_ct_OTOOL
7102 else
7103 OTOOL="$ac_cv_prog_OTOOL"
7106 if test -n "$ac_tool_prefix"; then
7107 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7108 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7114 if test -n "$OTOOL64"; then
7115 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7124 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7128 done
7129 done
7130 IFS=$as_save_IFS
7134 OTOOL64=$ac_cv_prog_OTOOL64
7135 if test -n "$OTOOL64"; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7137 $as_echo "$OTOOL64" >&6; }
7138 else
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7145 if test -z "$ac_cv_prog_OTOOL64"; then
7146 ac_ct_OTOOL64=$OTOOL64
7147 # Extract the first word of "otool64", so it can be a program name with args.
7148 set dummy otool64; ac_word=$2
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150 $as_echo_n "checking for $ac_word... " >&6; }
7151 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7152 $as_echo_n "(cached) " >&6
7153 else
7154 if test -n "$ac_ct_OTOOL64"; then
7155 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7156 else
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7160 IFS=$as_save_IFS
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7164 ac_cv_prog_ac_ct_OTOOL64="otool64"
7165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 break 2
7168 done
7169 done
7170 IFS=$as_save_IFS
7174 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7175 if test -n "$ac_ct_OTOOL64"; then
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7177 $as_echo "$ac_ct_OTOOL64" >&6; }
7178 else
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180 $as_echo "no" >&6; }
7183 if test "x$ac_ct_OTOOL64" = x; then
7184 OTOOL64=":"
7185 else
7186 case $cross_compiling:$ac_tool_warned in
7187 yes:)
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7190 ac_tool_warned=yes ;;
7191 esac
7192 OTOOL64=$ac_ct_OTOOL64
7194 else
7195 OTOOL64="$ac_cv_prog_OTOOL64"
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7225 $as_echo_n "checking for -single_module linker flag... " >&6; }
7226 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 lt_cv_apple_cc_single_mod=no
7230 if test -z "${LT_MULTI_MODULE}"; then
7231 # By default we will add the -single_module flag. You can override
7232 # by either setting the environment variable LT_MULTI_MODULE
7233 # non-empty at configure time, or by adding -multi_module to the
7234 # link flags.
7235 rm -rf libconftest.dylib*
7236 echo "int foo(void){return 1;}" > conftest.c
7237 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7238 -dynamiclib -Wl,-single_module conftest.c" >&5
7239 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7240 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7241 _lt_result=$?
7242 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7243 lt_cv_apple_cc_single_mod=yes
7244 else
7245 cat conftest.err >&5
7247 rm -rf libconftest.dylib*
7248 rm -f conftest.*
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7252 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7254 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7255 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 lt_cv_ld_exported_symbols_list=no
7259 save_LDFLAGS=$LDFLAGS
7260 echo "_main" > conftest.sym
7261 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7266 main ()
7270 return 0;
7272 _ACEOF
7273 if ac_fn_c_try_link "$LINENO"; then :
7274 lt_cv_ld_exported_symbols_list=yes
7275 else
7276 lt_cv_ld_exported_symbols_list=no
7278 rm -f core conftest.err conftest.$ac_objext \
7279 conftest$ac_exeext conftest.$ac_ext
7280 LDFLAGS="$save_LDFLAGS"
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7284 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7286 $as_echo_n "checking for -force_load linker flag... " >&6; }
7287 if test "${lt_cv_ld_force_load+set}" = set; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 lt_cv_ld_force_load=no
7291 cat > conftest.c << _LT_EOF
7292 int forced_loaded() { return 2;}
7293 _LT_EOF
7294 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7295 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7296 echo "$AR cru libconftest.a conftest.o" >&5
7297 $AR cru libconftest.a conftest.o 2>&5
7298 cat > conftest.c << _LT_EOF
7299 int main() { return 0;}
7300 _LT_EOF
7301 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7302 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7303 _lt_result=$?
7304 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7305 lt_cv_ld_force_load=yes
7306 else
7307 cat conftest.err >&5
7309 rm -f conftest.err libconftest.a conftest conftest.c
7310 rm -rf conftest.dSYM
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7314 $as_echo "$lt_cv_ld_force_load" >&6; }
7315 case $host_os in
7316 rhapsody* | darwin1.[012])
7317 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7318 darwin1.*)
7319 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7320 darwin*) # darwin 5.x on
7321 # if running on 10.5 or later, the deployment target defaults
7322 # to the OS version, if on x86, and 10.4, the deployment
7323 # target defaults to 10.4. Don't you love it?
7324 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7325 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7326 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7327 10.[012]*)
7328 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7329 10.*)
7330 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7331 esac
7333 esac
7334 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7335 _lt_dar_single_mod='$single_module'
7337 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7338 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7339 else
7340 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7342 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7343 _lt_dsymutil='~$DSYMUTIL $lib || :'
7344 else
7345 _lt_dsymutil=
7348 esac
7350 ac_ext=c
7351 ac_cpp='$CPP $CPPFLAGS'
7352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7356 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7357 # On Suns, sometimes $CPP names a directory.
7358 if test -n "$CPP" && test -d "$CPP"; then
7359 CPP=
7361 if test -z "$CPP"; then
7362 if test "${ac_cv_prog_CPP+set}" = set; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7365 # Double quotes because CPP needs to be expanded
7366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7368 ac_preproc_ok=false
7369 for ac_c_preproc_warn_flag in '' yes
7371 # Use a header file that comes with gcc, so configuring glibc
7372 # with a fresh cross-compiler works.
7373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7374 # <limits.h> exists even on freestanding compilers.
7375 # On the NeXT, cc -E runs the code through the compiler's parser,
7376 # not just through cpp. "Syntax error" is here to catch this case.
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 #ifdef __STDC__
7380 # include <limits.h>
7381 #else
7382 # include <assert.h>
7383 #endif
7384 Syntax error
7385 _ACEOF
7386 if ac_fn_c_try_cpp "$LINENO"; then :
7388 else
7389 # Broken: fails on valid input.
7390 continue
7392 rm -f conftest.err conftest.$ac_ext
7394 # OK, works on sane cases. Now check whether nonexistent headers
7395 # can be detected and how.
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398 #include <ac_nonexistent.h>
7399 _ACEOF
7400 if ac_fn_c_try_cpp "$LINENO"; then :
7401 # Broken: success on invalid input.
7402 continue
7403 else
7404 # Passes both tests.
7405 ac_preproc_ok=:
7406 break
7408 rm -f conftest.err conftest.$ac_ext
7410 done
7411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7412 rm -f conftest.err conftest.$ac_ext
7413 if $ac_preproc_ok; then :
7414 break
7417 done
7418 ac_cv_prog_CPP=$CPP
7421 CPP=$ac_cv_prog_CPP
7422 else
7423 ac_cv_prog_CPP=$CPP
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7426 $as_echo "$CPP" >&6; }
7427 ac_preproc_ok=false
7428 for ac_c_preproc_warn_flag in '' yes
7430 # Use a header file that comes with gcc, so configuring glibc
7431 # with a fresh cross-compiler works.
7432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7433 # <limits.h> exists even on freestanding compilers.
7434 # On the NeXT, cc -E runs the code through the compiler's parser,
7435 # not just through cpp. "Syntax error" is here to catch this case.
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7438 #ifdef __STDC__
7439 # include <limits.h>
7440 #else
7441 # include <assert.h>
7442 #endif
7443 Syntax error
7444 _ACEOF
7445 if ac_fn_c_try_cpp "$LINENO"; then :
7447 else
7448 # Broken: fails on valid input.
7449 continue
7451 rm -f conftest.err conftest.$ac_ext
7453 # OK, works on sane cases. Now check whether nonexistent headers
7454 # can be detected and how.
7455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456 /* end confdefs.h. */
7457 #include <ac_nonexistent.h>
7458 _ACEOF
7459 if ac_fn_c_try_cpp "$LINENO"; then :
7460 # Broken: success on invalid input.
7461 continue
7462 else
7463 # Passes both tests.
7464 ac_preproc_ok=:
7465 break
7467 rm -f conftest.err conftest.$ac_ext
7469 done
7470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7471 rm -f conftest.err conftest.$ac_ext
7472 if $ac_preproc_ok; then :
7474 else
7475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7477 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7478 See \`config.log' for more details." "$LINENO" 5; }
7481 ac_ext=c
7482 ac_cpp='$CPP $CPPFLAGS'
7483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7489 $as_echo_n "checking for ANSI C header files... " >&6; }
7490 if test "${ac_cv_header_stdc+set}" = set; then :
7491 $as_echo_n "(cached) " >&6
7492 else
7493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7494 /* end confdefs.h. */
7495 #include <stdlib.h>
7496 #include <stdarg.h>
7497 #include <string.h>
7498 #include <float.h>
7501 main ()
7505 return 0;
7507 _ACEOF
7508 if ac_fn_c_try_compile "$LINENO"; then :
7509 ac_cv_header_stdc=yes
7510 else
7511 ac_cv_header_stdc=no
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 if test $ac_cv_header_stdc = yes; then
7516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 #include <string.h>
7521 _ACEOF
7522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7523 $EGREP "memchr" >/dev/null 2>&1; then :
7525 else
7526 ac_cv_header_stdc=no
7528 rm -f conftest*
7532 if test $ac_cv_header_stdc = yes; then
7533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7536 #include <stdlib.h>
7538 _ACEOF
7539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7540 $EGREP "free" >/dev/null 2>&1; then :
7542 else
7543 ac_cv_header_stdc=no
7545 rm -f conftest*
7549 if test $ac_cv_header_stdc = yes; then
7550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7551 if test "$cross_compiling" = yes; then :
7553 else
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556 #include <ctype.h>
7557 #include <stdlib.h>
7558 #if ((' ' & 0x0FF) == 0x020)
7559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7561 #else
7562 # define ISLOWER(c) \
7563 (('a' <= (c) && (c) <= 'i') \
7564 || ('j' <= (c) && (c) <= 'r') \
7565 || ('s' <= (c) && (c) <= 'z'))
7566 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7567 #endif
7569 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7571 main ()
7573 int i;
7574 for (i = 0; i < 256; i++)
7575 if (XOR (islower (i), ISLOWER (i))
7576 || toupper (i) != TOUPPER (i))
7577 return 2;
7578 return 0;
7580 _ACEOF
7581 if ac_fn_c_try_run "$LINENO"; then :
7583 else
7584 ac_cv_header_stdc=no
7586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7587 conftest.$ac_objext conftest.beam conftest.$ac_ext
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7593 $as_echo "$ac_cv_header_stdc" >&6; }
7594 if test $ac_cv_header_stdc = yes; then
7596 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7600 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7601 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7602 inttypes.h stdint.h unistd.h
7603 do :
7604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7605 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7607 eval as_val=\$$as_ac_Header
7608 if test "x$as_val" = x""yes; then :
7609 cat >>confdefs.h <<_ACEOF
7610 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7611 _ACEOF
7615 done
7618 for ac_header in dlfcn.h
7619 do :
7620 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7622 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7623 cat >>confdefs.h <<_ACEOF
7624 #define HAVE_DLFCN_H 1
7625 _ACEOF
7629 done
7635 # Set options
7639 enable_dlopen=no
7642 enable_win32_dll=no
7645 # Check whether --enable-shared was given.
7646 if test "${enable_shared+set}" = set; then :
7647 enableval=$enable_shared; p=${PACKAGE-default}
7648 case $enableval in
7649 yes) enable_shared=yes ;;
7650 no) enable_shared=no ;;
7652 enable_shared=no
7653 # Look at the argument we got. We use all the common list separators.
7654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7655 for pkg in $enableval; do
7656 IFS="$lt_save_ifs"
7657 if test "X$pkg" = "X$p"; then
7658 enable_shared=yes
7660 done
7661 IFS="$lt_save_ifs"
7663 esac
7664 else
7665 enable_shared=yes
7676 # Check whether --enable-static was given.
7677 if test "${enable_static+set}" = set; then :
7678 enableval=$enable_static; p=${PACKAGE-default}
7679 case $enableval in
7680 yes) enable_static=yes ;;
7681 no) enable_static=no ;;
7683 enable_static=no
7684 # Look at the argument we got. We use all the common list separators.
7685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7686 for pkg in $enableval; do
7687 IFS="$lt_save_ifs"
7688 if test "X$pkg" = "X$p"; then
7689 enable_static=yes
7691 done
7692 IFS="$lt_save_ifs"
7694 esac
7695 else
7696 enable_static=yes
7708 # Check whether --with-pic was given.
7709 if test "${with_pic+set}" = set; then :
7710 withval=$with_pic; pic_mode="$withval"
7711 else
7712 pic_mode=default
7716 test -z "$pic_mode" && pic_mode=default
7724 # Check whether --enable-fast-install was given.
7725 if test "${enable_fast_install+set}" = set; then :
7726 enableval=$enable_fast_install; p=${PACKAGE-default}
7727 case $enableval in
7728 yes) enable_fast_install=yes ;;
7729 no) enable_fast_install=no ;;
7731 enable_fast_install=no
7732 # Look at the argument we got. We use all the common list separators.
7733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7734 for pkg in $enableval; do
7735 IFS="$lt_save_ifs"
7736 if test "X$pkg" = "X$p"; then
7737 enable_fast_install=yes
7739 done
7740 IFS="$lt_save_ifs"
7742 esac
7743 else
7744 enable_fast_install=yes
7757 # This can be used to rebuild libtool when needed
7758 LIBTOOL_DEPS="$ltmain"
7760 # Always use our own libtool.
7761 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7788 test -z "$LN_S" && LN_S="ln -s"
7803 if test -n "${ZSH_VERSION+set}" ; then
7804 setopt NO_GLOB_SUBST
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7808 $as_echo_n "checking for objdir... " >&6; }
7809 if test "${lt_cv_objdir+set}" = set; then :
7810 $as_echo_n "(cached) " >&6
7811 else
7812 rm -f .libs 2>/dev/null
7813 mkdir .libs 2>/dev/null
7814 if test -d .libs; then
7815 lt_cv_objdir=.libs
7816 else
7817 # MS-DOS does not allow filenames that begin with a dot.
7818 lt_cv_objdir=_libs
7820 rmdir .libs 2>/dev/null
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7823 $as_echo "$lt_cv_objdir" >&6; }
7824 objdir=$lt_cv_objdir
7830 cat >>confdefs.h <<_ACEOF
7831 #define LT_OBJDIR "$lt_cv_objdir/"
7832 _ACEOF
7837 case $host_os in
7838 aix3*)
7839 # AIX sometimes has problems with the GCC collect2 program. For some
7840 # reason, if we set the COLLECT_NAMES environment variable, the problems
7841 # vanish in a puff of smoke.
7842 if test "X${COLLECT_NAMES+set}" != Xset; then
7843 COLLECT_NAMES=
7844 export COLLECT_NAMES
7847 esac
7849 # Global variables:
7850 ofile=libtool
7851 can_build_shared=yes
7853 # All known linkers require a `.a' archive for static linking (except MSVC,
7854 # which needs '.lib').
7855 libext=a
7857 with_gnu_ld="$lt_cv_prog_gnu_ld"
7859 old_CC="$CC"
7860 old_CFLAGS="$CFLAGS"
7862 # Set sane defaults for various variables
7863 test -z "$CC" && CC=cc
7864 test -z "$LTCC" && LTCC=$CC
7865 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7866 test -z "$LD" && LD=ld
7867 test -z "$ac_objext" && ac_objext=o
7869 for cc_temp in $compiler""; do
7870 case $cc_temp in
7871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7873 \-*) ;;
7874 *) break;;
7875 esac
7876 done
7877 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7880 # Only perform the check for file, if the check method requires it
7881 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7882 case $deplibs_check_method in
7883 file_magic*)
7884 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7886 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7887 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7888 $as_echo_n "(cached) " >&6
7889 else
7890 case $MAGIC_CMD in
7891 [\\/*] | ?:[\\/]*)
7892 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7895 lt_save_MAGIC_CMD="$MAGIC_CMD"
7896 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7897 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7898 for ac_dir in $ac_dummy; do
7899 IFS="$lt_save_ifs"
7900 test -z "$ac_dir" && ac_dir=.
7901 if test -f $ac_dir/${ac_tool_prefix}file; then
7902 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7903 if test -n "$file_magic_test_file"; then
7904 case $deplibs_check_method in
7905 "file_magic "*)
7906 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7908 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7909 $EGREP "$file_magic_regex" > /dev/null; then
7911 else
7912 cat <<_LT_EOF 1>&2
7914 *** Warning: the command libtool uses to detect shared libraries,
7915 *** $file_magic_cmd, produces output that libtool cannot recognize.
7916 *** The result is that libtool may fail to recognize shared libraries
7917 *** as such. This will affect the creation of libtool libraries that
7918 *** depend on shared libraries, but programs linked with such libtool
7919 *** libraries will work regardless of this problem. Nevertheless, you
7920 *** may want to report the problem to your system manager and/or to
7921 *** bug-libtool@gnu.org
7923 _LT_EOF
7924 fi ;;
7925 esac
7927 break
7929 done
7930 IFS="$lt_save_ifs"
7931 MAGIC_CMD="$lt_save_MAGIC_CMD"
7933 esac
7936 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7937 if test -n "$MAGIC_CMD"; then
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7939 $as_echo "$MAGIC_CMD" >&6; }
7940 else
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942 $as_echo "no" >&6; }
7949 if test -z "$lt_cv_path_MAGIC_CMD"; then
7950 if test -n "$ac_tool_prefix"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7952 $as_echo_n "checking for file... " >&6; }
7953 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
7955 else
7956 case $MAGIC_CMD in
7957 [\\/*] | ?:[\\/]*)
7958 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7961 lt_save_MAGIC_CMD="$MAGIC_CMD"
7962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7963 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7964 for ac_dir in $ac_dummy; do
7965 IFS="$lt_save_ifs"
7966 test -z "$ac_dir" && ac_dir=.
7967 if test -f $ac_dir/file; then
7968 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7969 if test -n "$file_magic_test_file"; then
7970 case $deplibs_check_method in
7971 "file_magic "*)
7972 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7973 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7974 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7975 $EGREP "$file_magic_regex" > /dev/null; then
7977 else
7978 cat <<_LT_EOF 1>&2
7980 *** Warning: the command libtool uses to detect shared libraries,
7981 *** $file_magic_cmd, produces output that libtool cannot recognize.
7982 *** The result is that libtool may fail to recognize shared libraries
7983 *** as such. This will affect the creation of libtool libraries that
7984 *** depend on shared libraries, but programs linked with such libtool
7985 *** libraries will work regardless of this problem. Nevertheless, you
7986 *** may want to report the problem to your system manager and/or to
7987 *** bug-libtool@gnu.org
7989 _LT_EOF
7990 fi ;;
7991 esac
7993 break
7995 done
7996 IFS="$lt_save_ifs"
7997 MAGIC_CMD="$lt_save_MAGIC_CMD"
7999 esac
8002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8003 if test -n "$MAGIC_CMD"; then
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8005 $as_echo "$MAGIC_CMD" >&6; }
8006 else
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8012 else
8013 MAGIC_CMD=:
8019 esac
8021 # Use C for the default configuration in the libtool script
8023 lt_save_CC="$CC"
8024 ac_ext=c
8025 ac_cpp='$CPP $CPPFLAGS'
8026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8031 # Source file extension for C test sources.
8032 ac_ext=c
8034 # Object file extension for compiled C test sources.
8035 objext=o
8036 objext=$objext
8038 # Code to be used in simple compile tests
8039 lt_simple_compile_test_code="int some_variable = 0;"
8041 # Code to be used in simple link tests
8042 lt_simple_link_test_code='int main(){return(0);}'
8050 # If no C compiler was specified, use CC.
8051 LTCC=${LTCC-"$CC"}
8053 # If no C compiler flags were specified, use CFLAGS.
8054 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8056 # Allow CC to be a program name with arguments.
8057 compiler=$CC
8059 # Save the default compiler, since it gets overwritten when the other
8060 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8061 compiler_DEFAULT=$CC
8063 # save warnings/boilerplate of simple test code
8064 ac_outfile=conftest.$ac_objext
8065 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8066 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8067 _lt_compiler_boilerplate=`cat conftest.err`
8068 $RM conftest*
8070 ac_outfile=conftest.$ac_objext
8071 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8072 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8073 _lt_linker_boilerplate=`cat conftest.err`
8074 $RM -r conftest*
8077 ## CAVEAT EMPTOR:
8078 ## There is no encapsulation within the following macros, do not change
8079 ## the running order or otherwise move them around unless you know exactly
8080 ## what you are doing...
8081 if test -n "$compiler"; then
8083 lt_prog_compiler_no_builtin_flag=
8085 if test "$GCC" = yes; then
8086 case $cc_basename in
8087 nvcc*)
8088 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8090 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8091 esac
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8094 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8095 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 lt_cv_prog_compiler_rtti_exceptions=no
8099 ac_outfile=conftest.$ac_objext
8100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8101 lt_compiler_flag="-fno-rtti -fno-exceptions"
8102 # Insert the option either (1) after the last *FLAGS variable, or
8103 # (2) before a word containing "conftest.", or (3) at the end.
8104 # Note that $ac_compile itself does not contain backslashes and begins
8105 # with a dollar sign (not a hyphen), so the echo should work correctly.
8106 # The option is referenced via a variable to avoid confusing sed.
8107 lt_compile=`echo "$ac_compile" | $SED \
8108 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8109 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8110 -e 's:$: $lt_compiler_flag:'`
8111 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8112 (eval "$lt_compile" 2>conftest.err)
8113 ac_status=$?
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 if (exit $ac_status) && test -s "$ac_outfile"; then
8117 # The compiler can only warn and ignore the option if not recognized
8118 # So say no if there are warnings other than the usual output.
8119 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8120 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8121 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8122 lt_cv_prog_compiler_rtti_exceptions=yes
8125 $RM conftest*
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8129 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8131 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8132 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8133 else
8144 lt_prog_compiler_wl=
8145 lt_prog_compiler_pic=
8146 lt_prog_compiler_static=
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8149 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8151 if test "$GCC" = yes; then
8152 lt_prog_compiler_wl='-Wl,'
8153 lt_prog_compiler_static='-static'
8155 case $host_os in
8156 aix*)
8157 # All AIX code is PIC.
8158 if test "$host_cpu" = ia64; then
8159 # AIX 5 now supports IA64 processor
8160 lt_prog_compiler_static='-Bstatic'
8162 lt_prog_compiler_pic='-fPIC'
8165 amigaos*)
8166 case $host_cpu in
8167 powerpc)
8168 # see comment about AmigaOS4 .so support
8169 lt_prog_compiler_pic='-fPIC'
8171 m68k)
8172 # FIXME: we need at least 68020 code to build shared libraries, but
8173 # adding the `-m68020' flag to GCC prevents building anything better,
8174 # like `-m68040'.
8175 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8177 esac
8180 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8181 # PIC is the default for these OSes.
8184 mingw* | cygwin* | pw32* | os2* | cegcc*)
8185 # This hack is so that the source file can tell whether it is being
8186 # built for inclusion in a dll (and should export symbols for example).
8187 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8188 # (--disable-auto-import) libraries
8189 lt_prog_compiler_pic='-DDLL_EXPORT'
8192 darwin* | rhapsody*)
8193 # PIC is the default on this platform
8194 # Common symbols not allowed in MH_DYLIB files
8195 lt_prog_compiler_pic='-fno-common'
8198 haiku*)
8199 # PIC is the default for Haiku.
8200 # The "-static" flag exists, but is broken.
8201 lt_prog_compiler_static=
8204 hpux*)
8205 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8206 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8207 # sets the default TLS model and affects inlining.
8208 case $host_cpu in
8209 hppa*64*)
8210 # +Z the default
8213 lt_prog_compiler_pic='-fPIC'
8215 esac
8218 interix[3-9]*)
8219 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8220 # Instead, we relocate shared libraries at runtime.
8223 msdosdjgpp*)
8224 # Just because we use GCC doesn't mean we suddenly get shared libraries
8225 # on systems that don't support them.
8226 lt_prog_compiler_can_build_shared=no
8227 enable_shared=no
8230 *nto* | *qnx*)
8231 # QNX uses GNU C++, but need to define -shared option too, otherwise
8232 # it will coredump.
8233 lt_prog_compiler_pic='-fPIC -shared'
8236 sysv4*MP*)
8237 if test -d /usr/nec; then
8238 lt_prog_compiler_pic=-Kconform_pic
8243 lt_prog_compiler_pic='-fPIC'
8245 esac
8247 case $cc_basename in
8248 nvcc*) # Cuda Compiler Driver 2.2
8249 lt_prog_compiler_wl='-Xlinker '
8250 lt_prog_compiler_pic='-Xcompiler -fPIC'
8252 esac
8253 else
8254 # PORTME Check for flag to pass linker flags through the system compiler.
8255 case $host_os in
8256 aix*)
8257 lt_prog_compiler_wl='-Wl,'
8258 if test "$host_cpu" = ia64; then
8259 # AIX 5 now supports IA64 processor
8260 lt_prog_compiler_static='-Bstatic'
8261 else
8262 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8266 mingw* | cygwin* | pw32* | os2* | cegcc*)
8267 # This hack is so that the source file can tell whether it is being
8268 # built for inclusion in a dll (and should export symbols for example).
8269 lt_prog_compiler_pic='-DDLL_EXPORT'
8272 hpux9* | hpux10* | hpux11*)
8273 lt_prog_compiler_wl='-Wl,'
8274 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8275 # not for PA HP-UX.
8276 case $host_cpu in
8277 hppa*64*|ia64*)
8278 # +Z the default
8281 lt_prog_compiler_pic='+Z'
8283 esac
8284 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8285 lt_prog_compiler_static='${wl}-a ${wl}archive'
8288 irix5* | irix6* | nonstopux*)
8289 lt_prog_compiler_wl='-Wl,'
8290 # PIC (with -KPIC) is the default.
8291 lt_prog_compiler_static='-non_shared'
8294 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8295 case $cc_basename in
8296 # old Intel for x86_64 which still supported -KPIC.
8297 ecc*)
8298 lt_prog_compiler_wl='-Wl,'
8299 lt_prog_compiler_pic='-KPIC'
8300 lt_prog_compiler_static='-static'
8302 # icc used to be incompatible with GCC.
8303 # ICC 10 doesn't accept -KPIC any more.
8304 icc* | ifort*)
8305 lt_prog_compiler_wl='-Wl,'
8306 lt_prog_compiler_pic='-fPIC'
8307 lt_prog_compiler_static='-static'
8309 # Lahey Fortran 8.1.
8310 lf95*)
8311 lt_prog_compiler_wl='-Wl,'
8312 lt_prog_compiler_pic='--shared'
8313 lt_prog_compiler_static='--static'
8315 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8316 # Portland Group compilers (*not* the Pentium gcc compiler,
8317 # which looks to be a dead project)
8318 lt_prog_compiler_wl='-Wl,'
8319 lt_prog_compiler_pic='-fpic'
8320 lt_prog_compiler_static='-Bstatic'
8322 ccc*)
8323 lt_prog_compiler_wl='-Wl,'
8324 # All Alpha code is PIC.
8325 lt_prog_compiler_static='-non_shared'
8327 xl* | bgxl* | bgf* | mpixl*)
8328 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8329 lt_prog_compiler_wl='-Wl,'
8330 lt_prog_compiler_pic='-qpic'
8331 lt_prog_compiler_static='-qstaticlink'
8334 case `$CC -V 2>&1 | sed 5q` in
8335 *Sun\ F* | *Sun*Fortran*)
8336 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8337 lt_prog_compiler_pic='-KPIC'
8338 lt_prog_compiler_static='-Bstatic'
8339 lt_prog_compiler_wl=''
8341 *Sun\ C*)
8342 # Sun C 5.9
8343 lt_prog_compiler_pic='-KPIC'
8344 lt_prog_compiler_static='-Bstatic'
8345 lt_prog_compiler_wl='-Wl,'
8347 esac
8349 esac
8352 newsos6)
8353 lt_prog_compiler_pic='-KPIC'
8354 lt_prog_compiler_static='-Bstatic'
8357 *nto* | *qnx*)
8358 # QNX uses GNU C++, but need to define -shared option too, otherwise
8359 # it will coredump.
8360 lt_prog_compiler_pic='-fPIC -shared'
8363 osf3* | osf4* | osf5*)
8364 lt_prog_compiler_wl='-Wl,'
8365 # All OSF/1 code is PIC.
8366 lt_prog_compiler_static='-non_shared'
8369 rdos*)
8370 lt_prog_compiler_static='-non_shared'
8373 solaris*)
8374 lt_prog_compiler_pic='-KPIC'
8375 lt_prog_compiler_static='-Bstatic'
8376 case $cc_basename in
8377 f77* | f90* | f95*)
8378 lt_prog_compiler_wl='-Qoption ld ';;
8380 lt_prog_compiler_wl='-Wl,';;
8381 esac
8384 sunos4*)
8385 lt_prog_compiler_wl='-Qoption ld '
8386 lt_prog_compiler_pic='-PIC'
8387 lt_prog_compiler_static='-Bstatic'
8390 sysv4 | sysv4.2uw2* | sysv4.3*)
8391 lt_prog_compiler_wl='-Wl,'
8392 lt_prog_compiler_pic='-KPIC'
8393 lt_prog_compiler_static='-Bstatic'
8396 sysv4*MP*)
8397 if test -d /usr/nec ;then
8398 lt_prog_compiler_pic='-Kconform_pic'
8399 lt_prog_compiler_static='-Bstatic'
8403 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8404 lt_prog_compiler_wl='-Wl,'
8405 lt_prog_compiler_pic='-KPIC'
8406 lt_prog_compiler_static='-Bstatic'
8409 unicos*)
8410 lt_prog_compiler_wl='-Wl,'
8411 lt_prog_compiler_can_build_shared=no
8414 uts4*)
8415 lt_prog_compiler_pic='-pic'
8416 lt_prog_compiler_static='-Bstatic'
8420 lt_prog_compiler_can_build_shared=no
8422 esac
8425 case $host_os in
8426 # For platforms which do not support PIC, -DPIC is meaningless:
8427 *djgpp*)
8428 lt_prog_compiler_pic=
8431 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8433 esac
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8435 $as_echo "$lt_prog_compiler_pic" >&6; }
8443 # Check to make sure the PIC flag actually works.
8445 if test -n "$lt_prog_compiler_pic"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8447 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8448 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 lt_cv_prog_compiler_pic_works=no
8452 ac_outfile=conftest.$ac_objext
8453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8454 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8455 # Insert the option either (1) after the last *FLAGS variable, or
8456 # (2) before a word containing "conftest.", or (3) at the end.
8457 # Note that $ac_compile itself does not contain backslashes and begins
8458 # with a dollar sign (not a hyphen), so the echo should work correctly.
8459 # The option is referenced via a variable to avoid confusing sed.
8460 lt_compile=`echo "$ac_compile" | $SED \
8461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8463 -e 's:$: $lt_compiler_flag:'`
8464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8465 (eval "$lt_compile" 2>conftest.err)
8466 ac_status=$?
8467 cat conftest.err >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 if (exit $ac_status) && test -s "$ac_outfile"; then
8470 # The compiler can only warn and ignore the option if not recognized
8471 # So say no if there are warnings other than the usual output.
8472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8475 lt_cv_prog_compiler_pic_works=yes
8478 $RM conftest*
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8482 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8484 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8485 case $lt_prog_compiler_pic in
8486 "" | " "*) ;;
8487 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8488 esac
8489 else
8490 lt_prog_compiler_pic=
8491 lt_prog_compiler_can_build_shared=no
8502 # Check to make sure the static flag actually works.
8504 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8506 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8507 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8508 $as_echo_n "(cached) " >&6
8509 else
8510 lt_cv_prog_compiler_static_works=no
8511 save_LDFLAGS="$LDFLAGS"
8512 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8513 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8515 # The linker can only warn and ignore the option if not recognized
8516 # So say no if there are warnings
8517 if test -s conftest.err; then
8518 # Append any errors to the config.log.
8519 cat conftest.err 1>&5
8520 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8522 if diff conftest.exp conftest.er2 >/dev/null; then
8523 lt_cv_prog_compiler_static_works=yes
8525 else
8526 lt_cv_prog_compiler_static_works=yes
8529 $RM -r conftest*
8530 LDFLAGS="$save_LDFLAGS"
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8534 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8536 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8538 else
8539 lt_prog_compiler_static=
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8549 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8550 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 lt_cv_prog_compiler_c_o=no
8554 $RM -r conftest 2>/dev/null
8555 mkdir conftest
8556 cd conftest
8557 mkdir out
8558 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8560 lt_compiler_flag="-o out/conftest2.$ac_objext"
8561 # Insert the option either (1) after the last *FLAGS variable, or
8562 # (2) before a word containing "conftest.", or (3) at the end.
8563 # Note that $ac_compile itself does not contain backslashes and begins
8564 # with a dollar sign (not a hyphen), so the echo should work correctly.
8565 lt_compile=`echo "$ac_compile" | $SED \
8566 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8567 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8568 -e 's:$: $lt_compiler_flag:'`
8569 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8570 (eval "$lt_compile" 2>out/conftest.err)
8571 ac_status=$?
8572 cat out/conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8575 then
8576 # The compiler can only warn and ignore the option if not recognized
8577 # So say no if there are warnings
8578 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8579 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8580 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8581 lt_cv_prog_compiler_c_o=yes
8584 chmod u+w . 2>&5
8585 $RM conftest*
8586 # SGI C++ compiler will create directory out/ii_files/ for
8587 # template instantiation
8588 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8589 $RM out/* && rmdir out
8590 cd ..
8591 $RM -r conftest
8592 $RM conftest*
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8596 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8604 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8605 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 lt_cv_prog_compiler_c_o=no
8609 $RM -r conftest 2>/dev/null
8610 mkdir conftest
8611 cd conftest
8612 mkdir out
8613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8615 lt_compiler_flag="-o out/conftest2.$ac_objext"
8616 # Insert the option either (1) after the last *FLAGS variable, or
8617 # (2) before a word containing "conftest.", or (3) at the end.
8618 # Note that $ac_compile itself does not contain backslashes and begins
8619 # with a dollar sign (not a hyphen), so the echo should work correctly.
8620 lt_compile=`echo "$ac_compile" | $SED \
8621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8623 -e 's:$: $lt_compiler_flag:'`
8624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8625 (eval "$lt_compile" 2>out/conftest.err)
8626 ac_status=$?
8627 cat out/conftest.err >&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8630 then
8631 # The compiler can only warn and ignore the option if not recognized
8632 # So say no if there are warnings
8633 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8634 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8635 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8636 lt_cv_prog_compiler_c_o=yes
8639 chmod u+w . 2>&5
8640 $RM conftest*
8641 # SGI C++ compiler will create directory out/ii_files/ for
8642 # template instantiation
8643 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8644 $RM out/* && rmdir out
8645 cd ..
8646 $RM -r conftest
8647 $RM conftest*
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8651 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8656 hard_links="nottested"
8657 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8658 # do not overwrite the value of need_locks provided by the user
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8660 $as_echo_n "checking if we can lock with hard links... " >&6; }
8661 hard_links=yes
8662 $RM conftest*
8663 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8664 touch conftest.a
8665 ln conftest.a conftest.b 2>&5 || hard_links=no
8666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8668 $as_echo "$hard_links" >&6; }
8669 if test "$hard_links" = no; then
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8671 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8672 need_locks=warn
8674 else
8675 need_locks=no
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8684 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8686 runpath_var=
8687 allow_undefined_flag=
8688 always_export_symbols=no
8689 archive_cmds=
8690 archive_expsym_cmds=
8691 compiler_needs_object=no
8692 enable_shared_with_static_runtimes=no
8693 export_dynamic_flag_spec=
8694 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8695 hardcode_automatic=no
8696 hardcode_direct=no
8697 hardcode_direct_absolute=no
8698 hardcode_libdir_flag_spec=
8699 hardcode_libdir_flag_spec_ld=
8700 hardcode_libdir_separator=
8701 hardcode_minus_L=no
8702 hardcode_shlibpath_var=unsupported
8703 inherit_rpath=no
8704 link_all_deplibs=unknown
8705 module_cmds=
8706 module_expsym_cmds=
8707 old_archive_from_new_cmds=
8708 old_archive_from_expsyms_cmds=
8709 thread_safe_flag_spec=
8710 whole_archive_flag_spec=
8711 # include_expsyms should be a list of space-separated symbols to be *always*
8712 # included in the symbol list
8713 include_expsyms=
8714 # exclude_expsyms can be an extended regexp of symbols to exclude
8715 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8716 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8717 # as well as any symbol that contains `d'.
8718 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8719 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8720 # platforms (ab)use it in PIC code, but their linkers get confused if
8721 # the symbol is explicitly referenced. Since portable code cannot
8722 # rely on this symbol name, it's probably fine to never include it in
8723 # preloaded symbol tables.
8724 # Exclude shared library initialization/finalization symbols.
8725 extract_expsyms_cmds=
8727 case $host_os in
8728 cygwin* | mingw* | pw32* | cegcc*)
8729 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8730 # When not using gcc, we currently assume that we are using
8731 # Microsoft Visual C++.
8732 if test "$GCC" != yes; then
8733 with_gnu_ld=no
8736 interix*)
8737 # we just hope/assume this is gcc and not c89 (= MSVC++)
8738 with_gnu_ld=yes
8740 openbsd*)
8741 with_gnu_ld=no
8743 esac
8745 ld_shlibs=yes
8747 # On some targets, GNU ld is compatible enough with the native linker
8748 # that we're better off using the native interface for both.
8749 lt_use_gnu_ld_interface=no
8750 if test "$with_gnu_ld" = yes; then
8751 case $host_os in
8752 aix*)
8753 # The AIX port of GNU ld has always aspired to compatibility
8754 # with the native linker. However, as the warning in the GNU ld
8755 # block says, versions before 2.19.5* couldn't really create working
8756 # shared libraries, regardless of the interface used.
8757 case `$LD -v 2>&1` in
8758 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8759 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8760 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8762 lt_use_gnu_ld_interface=yes
8764 esac
8767 lt_use_gnu_ld_interface=yes
8769 esac
8772 if test "$lt_use_gnu_ld_interface" = yes; then
8773 # If archive_cmds runs LD, not CC, wlarc should be empty
8774 wlarc='${wl}'
8776 # Set some defaults for GNU ld with shared library support. These
8777 # are reset later if shared libraries are not supported. Putting them
8778 # here allows them to be overridden if necessary.
8779 runpath_var=LD_RUN_PATH
8780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8781 export_dynamic_flag_spec='${wl}--export-dynamic'
8782 # ancient GNU ld didn't support --whole-archive et. al.
8783 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8784 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8785 else
8786 whole_archive_flag_spec=
8788 supports_anon_versioning=no
8789 case `$LD -v 2>&1` in
8790 *GNU\ gold*) supports_anon_versioning=yes ;;
8791 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8792 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8793 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8794 *\ 2.11.*) ;; # other 2.11 versions
8795 *) supports_anon_versioning=yes ;;
8796 esac
8798 # See if GNU ld supports shared libraries.
8799 case $host_os in
8800 aix[3-9]*)
8801 # On AIX/PPC, the GNU linker is very broken
8802 if test "$host_cpu" != ia64; then
8803 ld_shlibs=no
8804 cat <<_LT_EOF 1>&2
8806 *** Warning: the GNU linker, at least up to release 2.19, is reported
8807 *** to be unable to reliably create shared libraries on AIX.
8808 *** Therefore, libtool is disabling shared libraries support. If you
8809 *** really care for shared libraries, you may want to install binutils
8810 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8811 *** You will then need to restart the configuration process.
8813 _LT_EOF
8817 amigaos*)
8818 case $host_cpu in
8819 powerpc)
8820 # see comment about AmigaOS4 .so support
8821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8822 archive_expsym_cmds=''
8824 m68k)
8825 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)'
8826 hardcode_libdir_flag_spec='-L$libdir'
8827 hardcode_minus_L=yes
8829 esac
8832 beos*)
8833 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8834 allow_undefined_flag=unsupported
8835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8836 # support --undefined. This deserves some investigation. FIXME
8837 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838 else
8839 ld_shlibs=no
8843 cygwin* | mingw* | pw32* | cegcc*)
8844 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8845 # as there is no search path for DLLs.
8846 hardcode_libdir_flag_spec='-L$libdir'
8847 export_dynamic_flag_spec='${wl}--export-all-symbols'
8848 allow_undefined_flag=unsupported
8849 always_export_symbols=no
8850 enable_shared_with_static_runtimes=yes
8851 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8853 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8854 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8855 # If the export-symbols file already is a .def file (1st line
8856 # is EXPORTS), use it as is; otherwise, prepend...
8857 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8858 cp $export_symbols $output_objdir/$soname.def;
8859 else
8860 echo EXPORTS > $output_objdir/$soname.def;
8861 cat $export_symbols >> $output_objdir/$soname.def;
8863 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8864 else
8865 ld_shlibs=no
8869 haiku*)
8870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8871 link_all_deplibs=yes
8874 interix[3-9]*)
8875 hardcode_direct=no
8876 hardcode_shlibpath_var=no
8877 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8878 export_dynamic_flag_spec='${wl}-E'
8879 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8880 # Instead, shared libraries are loaded at an image base (0x10000000 by
8881 # default) and relocated if they conflict, which is a slow very memory
8882 # consuming and fragmenting process. To avoid this, we pick a random,
8883 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8884 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8885 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8886 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'
8889 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8890 tmp_diet=no
8891 if test "$host_os" = linux-dietlibc; then
8892 case $cc_basename in
8893 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8894 esac
8896 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8897 && test "$tmp_diet" = no
8898 then
8899 tmp_addflag=
8900 tmp_sharedflag='-shared'
8901 case $cc_basename,$host_cpu in
8902 pgcc*) # Portland Group C compiler
8903 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'
8904 tmp_addflag=' $pic_flag'
8906 pgf77* | pgf90* | pgf95* | pgfortran*)
8907 # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
8910 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8911 tmp_addflag=' -i_dynamic' ;;
8912 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8913 tmp_addflag=' -i_dynamic -nofor_main' ;;
8914 ifc* | ifort*) # Intel Fortran compiler
8915 tmp_addflag=' -nofor_main' ;;
8916 lf95*) # Lahey Fortran 8.1
8917 whole_archive_flag_spec=
8918 tmp_sharedflag='--shared' ;;
8919 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8920 tmp_sharedflag='-qmkshrobj'
8921 tmp_addflag= ;;
8922 nvcc*) # Cuda Compiler Driver 2.2
8923 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'
8924 compiler_needs_object=yes
8926 esac
8927 case `$CC -V 2>&1 | sed 5q` in
8928 *Sun\ C*) # Sun C 5.9
8929 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'
8930 compiler_needs_object=yes
8931 tmp_sharedflag='-G' ;;
8932 *Sun\ F*) # Sun Fortran 8.3
8933 tmp_sharedflag='-G' ;;
8934 esac
8935 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8937 if test "x$supports_anon_versioning" = xyes; then
8938 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8939 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8940 echo "local: *; };" >> $output_objdir/$libname.ver~
8941 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8944 case $cc_basename in
8945 xlf* | bgf* | bgxlf* | mpixlf*)
8946 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8947 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8948 hardcode_libdir_flag_spec=
8949 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8950 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8951 if test "x$supports_anon_versioning" = xyes; then
8952 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8954 echo "local: *; };" >> $output_objdir/$libname.ver~
8955 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8958 esac
8959 else
8960 ld_shlibs=no
8964 netbsd*)
8965 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8966 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8967 wlarc=
8968 else
8969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8974 solaris*)
8975 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8976 ld_shlibs=no
8977 cat <<_LT_EOF 1>&2
8979 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8980 *** create shared libraries on Solaris systems. Therefore, libtool
8981 *** is disabling shared libraries support. We urge you to upgrade GNU
8982 *** binutils to release 2.9.1 or newer. Another option is to modify
8983 *** your PATH or compiler configuration so that the native linker is
8984 *** used, and then restart.
8986 _LT_EOF
8987 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8988 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8990 else
8991 ld_shlibs=no
8995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8996 case `$LD -v 2>&1` in
8997 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8998 ld_shlibs=no
8999 cat <<_LT_EOF 1>&2
9001 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9002 *** reliably create shared libraries on SCO systems. Therefore, libtool
9003 *** is disabling shared libraries support. We urge you to upgrade GNU
9004 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9005 *** your PATH or compiler configuration so that the native linker is
9006 *** used, and then restart.
9008 _LT_EOF
9011 # For security reasons, it is highly recommended that you always
9012 # use absolute paths for naming shared libraries, and exclude the
9013 # DT_RUNPATH tag from executables and libraries. But doing so
9014 # requires that you compile everything twice, which is a pain.
9015 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9018 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9019 else
9020 ld_shlibs=no
9023 esac
9026 sunos4*)
9027 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9028 wlarc=
9029 hardcode_direct=yes
9030 hardcode_shlibpath_var=no
9034 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9037 else
9038 ld_shlibs=no
9041 esac
9043 if test "$ld_shlibs" = no; then
9044 runpath_var=
9045 hardcode_libdir_flag_spec=
9046 export_dynamic_flag_spec=
9047 whole_archive_flag_spec=
9049 else
9050 # PORTME fill in a description of your system's linker (not GNU ld)
9051 case $host_os in
9052 aix3*)
9053 allow_undefined_flag=unsupported
9054 always_export_symbols=yes
9055 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'
9056 # Note: this linker hardcodes the directories in LIBPATH if there
9057 # are no directories specified by -L.
9058 hardcode_minus_L=yes
9059 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9060 # Neither direct hardcoding nor static linking is supported with a
9061 # broken collect2.
9062 hardcode_direct=unsupported
9066 aix[4-9]*)
9067 if test "$host_cpu" = ia64; then
9068 # On IA64, the linker does run time linking by default, so we don't
9069 # have to do anything special.
9070 aix_use_runtimelinking=no
9071 exp_sym_flag='-Bexport'
9072 no_entry_flag=""
9073 else
9074 # If we're using GNU nm, then we don't want the "-C" option.
9075 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9076 # Also, AIX nm treats weak defined symbols like other global
9077 # defined symbols, whereas GNU nm marks them as "W".
9078 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9079 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'
9080 else
9081 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'
9083 aix_use_runtimelinking=no
9085 # Test if we are trying to use run time linking or normal
9086 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9087 # need to do runtime linking.
9088 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9089 for ld_flag in $LDFLAGS; do
9090 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9091 aix_use_runtimelinking=yes
9092 break
9094 done
9096 esac
9098 exp_sym_flag='-bexport'
9099 no_entry_flag='-bnoentry'
9102 # When large executables or shared objects are built, AIX ld can
9103 # have problems creating the table of contents. If linking a library
9104 # or program results in "error TOC overflow" add -mminimal-toc to
9105 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9106 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9108 archive_cmds=''
9109 hardcode_direct=yes
9110 hardcode_direct_absolute=yes
9111 hardcode_libdir_separator=':'
9112 link_all_deplibs=yes
9113 file_list_spec='${wl}-f,'
9115 if test "$GCC" = yes; then
9116 case $host_os in aix4.[012]|aix4.[012].*)
9117 # We only want to do this on AIX 4.2 and lower, the check
9118 # below for broken collect2 doesn't work under 4.3+
9119 collect2name=`${CC} -print-prog-name=collect2`
9120 if test -f "$collect2name" &&
9121 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9122 then
9123 # We have reworked collect2
9125 else
9126 # We have old collect2
9127 hardcode_direct=unsupported
9128 # It fails to find uninstalled libraries when the uninstalled
9129 # path is not listed in the libpath. Setting hardcode_minus_L
9130 # to unsupported forces relinking
9131 hardcode_minus_L=yes
9132 hardcode_libdir_flag_spec='-L$libdir'
9133 hardcode_libdir_separator=
9136 esac
9137 shared_flag='-shared'
9138 if test "$aix_use_runtimelinking" = yes; then
9139 shared_flag="$shared_flag "'${wl}-G'
9141 else
9142 # not using gcc
9143 if test "$host_cpu" = ia64; then
9144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9145 # chokes on -Wl,-G. The following line is correct:
9146 shared_flag='-G'
9147 else
9148 if test "$aix_use_runtimelinking" = yes; then
9149 shared_flag='${wl}-G'
9150 else
9151 shared_flag='${wl}-bM:SRE'
9156 export_dynamic_flag_spec='${wl}-bexpall'
9157 # It seems that -bexpall does not export symbols beginning with
9158 # underscore (_), so it is better to generate a list of symbols to export.
9159 always_export_symbols=yes
9160 if test "$aix_use_runtimelinking" = yes; then
9161 # Warning - without using the other runtime loading flags (-brtl),
9162 # -berok will link without error, but may produce a broken library.
9163 allow_undefined_flag='-berok'
9164 # Determine the default libpath from the value encoded in an
9165 # empty executable.
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9170 main ()
9174 return 0;
9176 _ACEOF
9177 if ac_fn_c_try_link "$LINENO"; then :
9179 lt_aix_libpath_sed='
9180 /Import File Strings/,/^$/ {
9181 /^0/ {
9182 s/^0 *\(.*\)$/\1/
9186 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9187 # Check for a 64-bit object if we didn't find anything.
9188 if test -z "$aix_libpath"; then
9189 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9192 rm -f core conftest.err conftest.$ac_objext \
9193 conftest$ac_exeext conftest.$ac_ext
9194 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9196 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9197 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"
9198 else
9199 if test "$host_cpu" = ia64; then
9200 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9201 allow_undefined_flag="-z nodefs"
9202 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"
9203 else
9204 # Determine the default libpath from the value encoded in an
9205 # empty executable.
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9210 main ()
9214 return 0;
9216 _ACEOF
9217 if ac_fn_c_try_link "$LINENO"; then :
9219 lt_aix_libpath_sed='
9220 /Import File Strings/,/^$/ {
9221 /^0/ {
9222 s/^0 *\(.*\)$/\1/
9226 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9227 # Check for a 64-bit object if we didn't find anything.
9228 if test -z "$aix_libpath"; then
9229 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9232 rm -f core conftest.err conftest.$ac_objext \
9233 conftest$ac_exeext conftest.$ac_ext
9234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9236 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9237 # Warning - without using the other run time loading flags,
9238 # -berok will link without error, but may produce a broken library.
9239 no_undefined_flag=' ${wl}-bernotok'
9240 allow_undefined_flag=' ${wl}-berok'
9241 if test "$with_gnu_ld" = yes; then
9242 # We only use this code for GNU lds that support --whole-archive.
9243 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9244 else
9245 # Exported symbols can be pulled into shared objects from archives
9246 whole_archive_flag_spec='$convenience'
9248 archive_cmds_need_lc=yes
9249 # This is similar to how AIX traditionally builds its shared libraries.
9250 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'
9255 amigaos*)
9256 case $host_cpu in
9257 powerpc)
9258 # see comment about AmigaOS4 .so support
9259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260 archive_expsym_cmds=''
9262 m68k)
9263 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)'
9264 hardcode_libdir_flag_spec='-L$libdir'
9265 hardcode_minus_L=yes
9267 esac
9270 bsdi[45]*)
9271 export_dynamic_flag_spec=-rdynamic
9274 cygwin* | mingw* | pw32* | cegcc*)
9275 # When not using gcc, we currently assume that we are using
9276 # Microsoft Visual C++.
9277 # hardcode_libdir_flag_spec is actually meaningless, as there is
9278 # no search path for DLLs.
9279 hardcode_libdir_flag_spec=' '
9280 allow_undefined_flag=unsupported
9281 # Tell ltmain to make .lib files, not .a files.
9282 libext=lib
9283 # Tell ltmain to make .dll files, not .so files.
9284 shrext_cmds=".dll"
9285 # FIXME: Setting linknames here is a bad hack.
9286 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9287 # The linker will automatically build a .lib file if we build a DLL.
9288 old_archive_from_new_cmds='true'
9289 # FIXME: Should let the user specify the lib program.
9290 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9291 fix_srcfile_path='`cygpath -w "$srcfile"`'
9292 enable_shared_with_static_runtimes=yes
9295 darwin* | rhapsody*)
9298 archive_cmds_need_lc=no
9299 hardcode_direct=no
9300 hardcode_automatic=yes
9301 hardcode_shlibpath_var=unsupported
9302 if test "$lt_cv_ld_force_load" = "yes"; then
9303 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\"`'
9304 else
9305 whole_archive_flag_spec=''
9307 link_all_deplibs=yes
9308 allow_undefined_flag="$_lt_dar_allow_undefined"
9309 case $cc_basename in
9310 ifort*) _lt_dar_can_shared=yes ;;
9311 *) _lt_dar_can_shared=$GCC ;;
9312 esac
9313 if test "$_lt_dar_can_shared" = "yes"; then
9314 output_verbose_link_cmd=func_echo_all
9315 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9316 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9317 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}"
9318 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}"
9320 else
9321 ld_shlibs=no
9326 dgux*)
9327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9328 hardcode_libdir_flag_spec='-L$libdir'
9329 hardcode_shlibpath_var=no
9332 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9333 # support. Future versions do this automatically, but an explicit c++rt0.o
9334 # does not break anything, and helps significantly (at the cost of a little
9335 # extra space).
9336 freebsd2.2*)
9337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9338 hardcode_libdir_flag_spec='-R$libdir'
9339 hardcode_direct=yes
9340 hardcode_shlibpath_var=no
9343 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9344 freebsd2.*)
9345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9346 hardcode_direct=yes
9347 hardcode_minus_L=yes
9348 hardcode_shlibpath_var=no
9351 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9352 freebsd* | dragonfly*)
9353 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9354 hardcode_libdir_flag_spec='-R$libdir'
9355 hardcode_direct=yes
9356 hardcode_shlibpath_var=no
9359 hpux9*)
9360 if test "$GCC" = yes; then
9361 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'
9362 else
9363 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'
9365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9366 hardcode_libdir_separator=:
9367 hardcode_direct=yes
9369 # hardcode_minus_L: Not really in the search PATH,
9370 # but as the default location of the library.
9371 hardcode_minus_L=yes
9372 export_dynamic_flag_spec='${wl}-E'
9375 hpux10*)
9376 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9377 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9378 else
9379 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9381 if test "$with_gnu_ld" = no; then
9382 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9383 hardcode_libdir_flag_spec_ld='+b $libdir'
9384 hardcode_libdir_separator=:
9385 hardcode_direct=yes
9386 hardcode_direct_absolute=yes
9387 export_dynamic_flag_spec='${wl}-E'
9388 # hardcode_minus_L: Not really in the search PATH,
9389 # but as the default location of the library.
9390 hardcode_minus_L=yes
9394 hpux11*)
9395 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9396 case $host_cpu in
9397 hppa*64*)
9398 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 ia64*)
9401 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9404 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9406 esac
9407 else
9408 case $host_cpu in
9409 hppa*64*)
9410 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 ia64*)
9413 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9417 # Older versions of the 11.00 compiler do not understand -b yet
9418 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9420 $as_echo_n "checking if $CC understands -b... " >&6; }
9421 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 lt_cv_prog_compiler__b=no
9425 save_LDFLAGS="$LDFLAGS"
9426 LDFLAGS="$LDFLAGS -b"
9427 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9429 # The linker can only warn and ignore the option if not recognized
9430 # So say no if there are warnings
9431 if test -s conftest.err; then
9432 # Append any errors to the config.log.
9433 cat conftest.err 1>&5
9434 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9436 if diff conftest.exp conftest.er2 >/dev/null; then
9437 lt_cv_prog_compiler__b=yes
9439 else
9440 lt_cv_prog_compiler__b=yes
9443 $RM -r conftest*
9444 LDFLAGS="$save_LDFLAGS"
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9448 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9450 if test x"$lt_cv_prog_compiler__b" = xyes; then
9451 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9452 else
9453 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9457 esac
9459 if test "$with_gnu_ld" = no; then
9460 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9461 hardcode_libdir_separator=:
9463 case $host_cpu in
9464 hppa*64*|ia64*)
9465 hardcode_direct=no
9466 hardcode_shlibpath_var=no
9469 hardcode_direct=yes
9470 hardcode_direct_absolute=yes
9471 export_dynamic_flag_spec='${wl}-E'
9473 # hardcode_minus_L: Not really in the search PATH,
9474 # but as the default location of the library.
9475 hardcode_minus_L=yes
9477 esac
9481 irix5* | irix6* | nonstopux*)
9482 if test "$GCC" = yes; then
9483 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'
9484 # Try to use the -exported_symbol ld option, if it does not
9485 # work, assume that -exports_file does not work either and
9486 # implicitly export all symbols.
9487 save_LDFLAGS="$LDFLAGS"
9488 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490 /* end confdefs.h. */
9491 int foo(void) {}
9492 _ACEOF
9493 if ac_fn_c_try_link "$LINENO"; then :
9494 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'
9497 rm -f core conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
9499 LDFLAGS="$save_LDFLAGS"
9500 else
9501 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'
9502 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'
9504 archive_cmds_need_lc='no'
9505 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9506 hardcode_libdir_separator=:
9507 inherit_rpath=yes
9508 link_all_deplibs=yes
9511 netbsd*)
9512 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9513 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9514 else
9515 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9517 hardcode_libdir_flag_spec='-R$libdir'
9518 hardcode_direct=yes
9519 hardcode_shlibpath_var=no
9522 newsos6)
9523 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9524 hardcode_direct=yes
9525 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9526 hardcode_libdir_separator=:
9527 hardcode_shlibpath_var=no
9530 *nto* | *qnx*)
9533 openbsd*)
9534 if test -f /usr/libexec/ld.so; then
9535 hardcode_direct=yes
9536 hardcode_shlibpath_var=no
9537 hardcode_direct_absolute=yes
9538 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9539 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9540 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9541 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9542 export_dynamic_flag_spec='${wl}-E'
9543 else
9544 case $host_os in
9545 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9546 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9547 hardcode_libdir_flag_spec='-R$libdir'
9550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9551 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9553 esac
9555 else
9556 ld_shlibs=no
9560 os2*)
9561 hardcode_libdir_flag_spec='-L$libdir'
9562 hardcode_minus_L=yes
9563 allow_undefined_flag=unsupported
9564 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'
9565 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9568 osf3*)
9569 if test "$GCC" = yes; then
9570 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9571 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'
9572 else
9573 allow_undefined_flag=' -expect_unresolved \*'
9574 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'
9576 archive_cmds_need_lc='no'
9577 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9578 hardcode_libdir_separator=:
9581 osf4* | osf5*) # as osf3* with the addition of -msym flag
9582 if test "$GCC" = yes; then
9583 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9584 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'
9585 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9586 else
9587 allow_undefined_flag=' -expect_unresolved \*'
9588 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'
9589 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~
9590 $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'
9592 # Both c and cxx compiler support -rpath directly
9593 hardcode_libdir_flag_spec='-rpath $libdir'
9595 archive_cmds_need_lc='no'
9596 hardcode_libdir_separator=:
9599 solaris*)
9600 no_undefined_flag=' -z defs'
9601 if test "$GCC" = yes; then
9602 wlarc='${wl}'
9603 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9605 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9606 else
9607 case `$CC -V 2>&1` in
9608 *"Compilers 5.0"*)
9609 wlarc=''
9610 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9612 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9615 wlarc='${wl}'
9616 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9617 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9618 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9620 esac
9622 hardcode_libdir_flag_spec='-R$libdir'
9623 hardcode_shlibpath_var=no
9624 case $host_os in
9625 solaris2.[0-5] | solaris2.[0-5].*) ;;
9627 # The compiler driver will combine and reorder linker options,
9628 # but understands `-z linker_flag'. GCC discards it without `$wl',
9629 # but is careful enough not to reorder.
9630 # Supported since Solaris 2.6 (maybe 2.5.1?)
9631 if test "$GCC" = yes; then
9632 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9633 else
9634 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9637 esac
9638 link_all_deplibs=yes
9641 sunos4*)
9642 if test "x$host_vendor" = xsequent; then
9643 # Use $CC to link under sequent, because it throws in some extra .o
9644 # files that make .init and .fini sections work.
9645 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9646 else
9647 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_libdir_flag_spec='-L$libdir'
9650 hardcode_direct=yes
9651 hardcode_minus_L=yes
9652 hardcode_shlibpath_var=no
9655 sysv4)
9656 case $host_vendor in
9657 sni)
9658 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9659 hardcode_direct=yes # is this really true???
9661 siemens)
9662 ## LD is ld it makes a PLAMLIB
9663 ## CC just makes a GrossModule.
9664 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9665 reload_cmds='$CC -r -o $output$reload_objs'
9666 hardcode_direct=no
9668 motorola)
9669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9672 esac
9673 runpath_var='LD_RUN_PATH'
9674 hardcode_shlibpath_var=no
9677 sysv4.3*)
9678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_shlibpath_var=no
9680 export_dynamic_flag_spec='-Bexport'
9683 sysv4*MP*)
9684 if test -d /usr/nec; then
9685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9686 hardcode_shlibpath_var=no
9687 runpath_var=LD_RUN_PATH
9688 hardcode_runpath_var=yes
9689 ld_shlibs=yes
9693 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9694 no_undefined_flag='${wl}-z,text'
9695 archive_cmds_need_lc=no
9696 hardcode_shlibpath_var=no
9697 runpath_var='LD_RUN_PATH'
9699 if test "$GCC" = yes; then
9700 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9701 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 else
9703 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9708 sysv5* | sco3.2v5* | sco5v6*)
9709 # Note: We can NOT use -z defs as we might desire, because we do not
9710 # link with -lc, and that would cause any symbols used from libc to
9711 # always be unresolved, which means just about no library would
9712 # ever link correctly. If we're not using GNU ld we use -z text
9713 # though, which does catch some bad symbols but isn't as heavy-handed
9714 # as -z defs.
9715 no_undefined_flag='${wl}-z,text'
9716 allow_undefined_flag='${wl}-z,nodefs'
9717 archive_cmds_need_lc=no
9718 hardcode_shlibpath_var=no
9719 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9720 hardcode_libdir_separator=':'
9721 link_all_deplibs=yes
9722 export_dynamic_flag_spec='${wl}-Bexport'
9723 runpath_var='LD_RUN_PATH'
9725 if test "$GCC" = yes; then
9726 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 else
9729 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 uts4*)
9735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_libdir_flag_spec='-L$libdir'
9737 hardcode_shlibpath_var=no
9741 ld_shlibs=no
9743 esac
9745 if test x$host_vendor = xsni; then
9746 case $host in
9747 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9748 export_dynamic_flag_spec='${wl}-Blargedynsym'
9750 esac
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9755 $as_echo "$ld_shlibs" >&6; }
9756 test "$ld_shlibs" = no && can_build_shared=no
9758 with_gnu_ld=$with_gnu_ld
9775 # Do we need to explicitly link libc?
9777 case "x$archive_cmds_need_lc" in
9778 x|xyes)
9779 # Assume -lc should be added
9780 archive_cmds_need_lc=yes
9782 if test "$enable_shared" = yes && test "$GCC" = yes; then
9783 case $archive_cmds in
9784 *'~'*)
9785 # FIXME: we may have to deal with multi-command sequences.
9787 '$CC '*)
9788 # Test whether the compiler implicitly links with -lc since on some
9789 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9790 # to ld, don't add -lc before -lgcc.
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9792 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9793 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 $RM conftest*
9797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9800 (eval $ac_compile) 2>&5
9801 ac_status=$?
9802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9803 test $ac_status = 0; } 2>conftest.err; then
9804 soname=conftest
9805 lib=conftest
9806 libobjs=conftest.$ac_objext
9807 deplibs=
9808 wl=$lt_prog_compiler_wl
9809 pic_flag=$lt_prog_compiler_pic
9810 compiler_flags=-v
9811 linker_flags=-v
9812 verstring=
9813 output_objdir=.
9814 libname=conftest
9815 lt_save_allow_undefined_flag=$allow_undefined_flag
9816 allow_undefined_flag=
9817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9818 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9819 ac_status=$?
9820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9821 test $ac_status = 0; }
9822 then
9823 lt_cv_archive_cmds_need_lc=no
9824 else
9825 lt_cv_archive_cmds_need_lc=yes
9827 allow_undefined_flag=$lt_save_allow_undefined_flag
9828 else
9829 cat conftest.err 1>&5
9831 $RM conftest*
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9835 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9836 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9838 esac
9841 esac
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10000 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10002 if test "$GCC" = yes; then
10003 case $host_os in
10004 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10005 *) lt_awk_arg="/^libraries:/" ;;
10006 esac
10007 case $host_os in
10008 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10009 *) lt_sed_strip_eq="s,=/,/,g" ;;
10010 esac
10011 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10012 case $lt_search_path_spec in
10013 *\;*)
10014 # if the path contains ";" then we assume it to be the separator
10015 # otherwise default to the standard path separator (i.e. ":") - it is
10016 # assumed that no part of a normal pathname contains ";" but that should
10017 # okay in the real world where ";" in dirpaths is itself problematic.
10018 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10021 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10023 esac
10024 # Ok, now we have the path, separated by spaces, we can step through it
10025 # and add multilib dir if necessary.
10026 lt_tmp_lt_search_path_spec=
10027 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10028 for lt_sys_path in $lt_search_path_spec; do
10029 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10030 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10031 else
10032 test -d "$lt_sys_path" && \
10033 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10035 done
10036 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10037 BEGIN {RS=" "; FS="/|\n";} {
10038 lt_foo="";
10039 lt_count=0;
10040 for (lt_i = NF; lt_i > 0; lt_i--) {
10041 if ($lt_i != "" && $lt_i != ".") {
10042 if ($lt_i == "..") {
10043 lt_count++;
10044 } else {
10045 if (lt_count == 0) {
10046 lt_foo="/" $lt_i lt_foo;
10047 } else {
10048 lt_count--;
10053 if (lt_foo != "") { lt_freq[lt_foo]++; }
10054 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10056 # AWK program above erroneously prepends '/' to C:/dos/paths
10057 # for these hosts.
10058 case $host_os in
10059 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10060 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10061 esac
10062 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10063 else
10064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10066 library_names_spec=
10067 libname_spec='lib$name'
10068 soname_spec=
10069 shrext_cmds=".so"
10070 postinstall_cmds=
10071 postuninstall_cmds=
10072 finish_cmds=
10073 finish_eval=
10074 shlibpath_var=
10075 shlibpath_overrides_runpath=unknown
10076 version_type=none
10077 dynamic_linker="$host_os ld.so"
10078 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10079 need_lib_prefix=unknown
10080 hardcode_into_libs=no
10082 # when you set need_version to no, make sure it does not cause -set_version
10083 # flags to be left without arguments
10084 need_version=unknown
10086 case $host_os in
10087 aix3*)
10088 version_type=linux
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10090 shlibpath_var=LIBPATH
10092 # AIX 3 has no versioning support, so we append a major version to the name.
10093 soname_spec='${libname}${release}${shared_ext}$major'
10096 aix[4-9]*)
10097 version_type=linux
10098 need_lib_prefix=no
10099 need_version=no
10100 hardcode_into_libs=yes
10101 if test "$host_cpu" = ia64; then
10102 # AIX 5 supports IA64
10103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 else
10106 # With GCC up to 2.95.x, collect2 would create an import file
10107 # for dependence libraries. The import file would start with
10108 # the line `#! .'. This would cause the generated library to
10109 # depend on `.', always an invalid library. This was fixed in
10110 # development snapshots of GCC prior to 3.0.
10111 case $host_os in
10112 aix4 | aix4.[01] | aix4.[01].*)
10113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10114 echo ' yes '
10115 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10117 else
10118 can_build_shared=no
10121 esac
10122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10123 # soname into executable. Probably we can add versioning support to
10124 # collect2, so additional links can be useful in future.
10125 if test "$aix_use_runtimelinking" = yes; then
10126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10127 # instead of lib<name>.a to let people know that these are not
10128 # typical AIX shared libraries.
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 else
10131 # We preserve .a as extension for shared libraries through AIX4.2
10132 # and later when we are not doing run time linking.
10133 library_names_spec='${libname}${release}.a $libname.a'
10134 soname_spec='${libname}${release}${shared_ext}$major'
10136 shlibpath_var=LIBPATH
10140 amigaos*)
10141 case $host_cpu in
10142 powerpc)
10143 # Since July 2007 AmigaOS4 officially supports .so libraries.
10144 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 m68k)
10148 library_names_spec='$libname.ixlibrary $libname.a'
10149 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10150 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'
10152 esac
10155 beos*)
10156 library_names_spec='${libname}${shared_ext}'
10157 dynamic_linker="$host_os ld.so"
10158 shlibpath_var=LIBRARY_PATH
10161 bsdi[45]*)
10162 version_type=linux
10163 need_version=no
10164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10165 soname_spec='${libname}${release}${shared_ext}$major'
10166 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10167 shlibpath_var=LD_LIBRARY_PATH
10168 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10169 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10170 # the default ld.so.conf also contains /usr/contrib/lib and
10171 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10172 # libtool to hard-code these into programs
10175 cygwin* | mingw* | pw32* | cegcc*)
10176 version_type=windows
10177 shrext_cmds=".dll"
10178 need_version=no
10179 need_lib_prefix=no
10181 case $GCC,$host_os in
10182 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10183 library_names_spec='$libname.dll.a'
10184 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10185 postinstall_cmds='base_file=`basename \${file}`~
10186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10187 dldir=$destdir/`dirname \$dlpath`~
10188 test -d \$dldir || mkdir -p \$dldir~
10189 $install_prog $dir/$dlname \$dldir/$dlname~
10190 chmod a+x \$dldir/$dlname~
10191 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10192 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10195 dlpath=$dir/\$dldll~
10196 $RM \$dlpath'
10197 shlibpath_overrides_runpath=yes
10199 case $host_os in
10200 cygwin*)
10201 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10202 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10204 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10206 mingw* | cegcc*)
10207 # MinGW DLLs use traditional 'lib' prefix
10208 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10210 pw32*)
10211 # pw32 DLLs use 'pw' prefix rather than 'lib'
10212 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10214 esac
10218 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10220 esac
10221 dynamic_linker='Win32 ld.exe'
10222 # FIXME: first we should search . and the directory the executable is in
10223 shlibpath_var=PATH
10226 darwin* | rhapsody*)
10227 dynamic_linker="$host_os dyld"
10228 version_type=darwin
10229 need_lib_prefix=no
10230 need_version=no
10231 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10232 soname_spec='${libname}${release}${major}$shared_ext'
10233 shlibpath_overrides_runpath=yes
10234 shlibpath_var=DYLD_LIBRARY_PATH
10235 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10237 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10238 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10241 dgux*)
10242 version_type=linux
10243 need_lib_prefix=no
10244 need_version=no
10245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10246 soname_spec='${libname}${release}${shared_ext}$major'
10247 shlibpath_var=LD_LIBRARY_PATH
10250 freebsd* | dragonfly*)
10251 # DragonFly does not have aout. When/if they implement a new
10252 # versioning mechanism, adjust this.
10253 if test -x /usr/bin/objformat; then
10254 objformat=`/usr/bin/objformat`
10255 else
10256 case $host_os in
10257 freebsd[23].*) objformat=aout ;;
10258 *) objformat=elf ;;
10259 esac
10261 version_type=freebsd-$objformat
10262 case $version_type in
10263 freebsd-elf*)
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10265 need_version=no
10266 need_lib_prefix=no
10268 freebsd-*)
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10270 need_version=yes
10272 esac
10273 shlibpath_var=LD_LIBRARY_PATH
10274 case $host_os in
10275 freebsd2.*)
10276 shlibpath_overrides_runpath=yes
10278 freebsd3.[01]* | freebsdelf3.[01]*)
10279 shlibpath_overrides_runpath=yes
10280 hardcode_into_libs=yes
10282 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10283 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10284 shlibpath_overrides_runpath=no
10285 hardcode_into_libs=yes
10287 *) # from 4.6 on, and DragonFly
10288 shlibpath_overrides_runpath=yes
10289 hardcode_into_libs=yes
10291 esac
10294 gnu*)
10295 version_type=linux
10296 need_lib_prefix=no
10297 need_version=no
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 hardcode_into_libs=yes
10304 haiku*)
10305 version_type=linux
10306 need_lib_prefix=no
10307 need_version=no
10308 dynamic_linker="$host_os runtime_loader"
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10310 soname_spec='${libname}${release}${shared_ext}$major'
10311 shlibpath_var=LIBRARY_PATH
10312 shlibpath_overrides_runpath=yes
10313 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10314 hardcode_into_libs=yes
10317 hpux9* | hpux10* | hpux11*)
10318 # Give a soname corresponding to the major version so that dld.sl refuses to
10319 # link against other versions.
10320 version_type=sunos
10321 need_lib_prefix=no
10322 need_version=no
10323 case $host_cpu in
10324 ia64*)
10325 shrext_cmds='.so'
10326 hardcode_into_libs=yes
10327 dynamic_linker="$host_os dld.so"
10328 shlibpath_var=LD_LIBRARY_PATH
10329 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 if test "X$HPUX_IA64_MODE" = X32; then
10333 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10334 else
10335 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10337 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10339 hppa*64*)
10340 shrext_cmds='.sl'
10341 hardcode_into_libs=yes
10342 dynamic_linker="$host_os dld.sl"
10343 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10344 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10348 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10351 shrext_cmds='.sl'
10352 dynamic_linker="$host_os dld.sl"
10353 shlibpath_var=SHLIB_PATH
10354 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 soname_spec='${libname}${release}${shared_ext}$major'
10358 esac
10359 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10360 postinstall_cmds='chmod 555 $lib'
10361 # or fails outright, so override atomically:
10362 install_override_mode=555
10365 interix[3-9]*)
10366 version_type=linux
10367 need_lib_prefix=no
10368 need_version=no
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10370 soname_spec='${libname}${release}${shared_ext}$major'
10371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10372 shlibpath_var=LD_LIBRARY_PATH
10373 shlibpath_overrides_runpath=no
10374 hardcode_into_libs=yes
10377 irix5* | irix6* | nonstopux*)
10378 case $host_os in
10379 nonstopux*) version_type=nonstopux ;;
10381 if test "$lt_cv_prog_gnu_ld" = yes; then
10382 version_type=linux
10383 else
10384 version_type=irix
10385 fi ;;
10386 esac
10387 need_lib_prefix=no
10388 need_version=no
10389 soname_spec='${libname}${release}${shared_ext}$major'
10390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10391 case $host_os in
10392 irix5* | nonstopux*)
10393 libsuff= shlibsuff=
10396 case $LD in # libtool.m4 will add one of these switches to LD
10397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10398 libsuff= shlibsuff= libmagic=32-bit;;
10399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10400 libsuff=32 shlibsuff=N32 libmagic=N32;;
10401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10403 *) libsuff= shlibsuff= libmagic=never-match;;
10404 esac
10406 esac
10407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10408 shlibpath_overrides_runpath=no
10409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10411 hardcode_into_libs=yes
10414 # No shared lib support for Linux oldld, aout, or coff.
10415 linux*oldld* | linux*aout* | linux*coff*)
10416 dynamic_linker=no
10419 # This must be Linux ELF.
10420 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10421 version_type=linux
10422 need_lib_prefix=no
10423 need_version=no
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 shlibpath_overrides_runpath=no
10430 # Some binutils ld are patched to set DT_RUNPATH
10431 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10432 $as_echo_n "(cached) " >&6
10433 else
10434 lt_cv_shlibpath_overrides_runpath=no
10435 save_LDFLAGS=$LDFLAGS
10436 save_libdir=$libdir
10437 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10438 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10443 main ()
10447 return 0;
10449 _ACEOF
10450 if ac_fn_c_try_link "$LINENO"; then :
10451 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10452 lt_cv_shlibpath_overrides_runpath=yes
10455 rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
10457 LDFLAGS=$save_LDFLAGS
10458 libdir=$save_libdir
10462 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10464 # This implies no fast_install, which is unacceptable.
10465 # Some rework will be needed to allow for fast_install
10466 # before this can be enabled.
10467 hardcode_into_libs=yes
10469 # Append ld.so.conf contents to the search path
10470 if test -f /etc/ld.so.conf; then
10471 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' ' '`
10472 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10475 # We used to test for /lib/ld.so.1 and disable shared libraries on
10476 # powerpc, because MkLinux only supported shared libraries with the
10477 # GNU dynamic linker. Since this was broken with cross compilers,
10478 # most powerpc-linux boxes support dynamic linking these days and
10479 # people can always --disable-shared, the test was removed, and we
10480 # assume the GNU/Linux dynamic linker is in use.
10481 dynamic_linker='GNU/Linux ld.so'
10484 netbsd*)
10485 version_type=sunos
10486 need_lib_prefix=no
10487 need_version=no
10488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10491 dynamic_linker='NetBSD (a.out) ld.so'
10492 else
10493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10494 soname_spec='${libname}${release}${shared_ext}$major'
10495 dynamic_linker='NetBSD ld.elf_so'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 shlibpath_overrides_runpath=yes
10499 hardcode_into_libs=yes
10502 newsos6)
10503 version_type=linux
10504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505 shlibpath_var=LD_LIBRARY_PATH
10506 shlibpath_overrides_runpath=yes
10509 *nto* | *qnx*)
10510 version_type=qnx
10511 need_lib_prefix=no
10512 need_version=no
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 shlibpath_var=LD_LIBRARY_PATH
10516 shlibpath_overrides_runpath=no
10517 hardcode_into_libs=yes
10518 dynamic_linker='ldqnx.so'
10521 openbsd*)
10522 version_type=sunos
10523 sys_lib_dlsearch_path_spec="/usr/lib"
10524 need_lib_prefix=no
10525 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10526 case $host_os in
10527 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10528 *) need_version=no ;;
10529 esac
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10534 case $host_os in
10535 openbsd2.[89] | openbsd2.[89].*)
10536 shlibpath_overrides_runpath=no
10539 shlibpath_overrides_runpath=yes
10541 esac
10542 else
10543 shlibpath_overrides_runpath=yes
10547 os2*)
10548 libname_spec='$name'
10549 shrext_cmds=".dll"
10550 need_lib_prefix=no
10551 library_names_spec='$libname${shared_ext} $libname.a'
10552 dynamic_linker='OS/2 ld.exe'
10553 shlibpath_var=LIBPATH
10556 osf3* | osf4* | osf5*)
10557 version_type=osf
10558 need_lib_prefix=no
10559 need_version=no
10560 soname_spec='${libname}${release}${shared_ext}$major'
10561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10562 shlibpath_var=LD_LIBRARY_PATH
10563 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10564 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10567 rdos*)
10568 dynamic_linker=no
10571 solaris*)
10572 version_type=linux
10573 need_lib_prefix=no
10574 need_version=no
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 shlibpath_var=LD_LIBRARY_PATH
10578 shlibpath_overrides_runpath=yes
10579 hardcode_into_libs=yes
10580 # ldd complains unless libraries are executable
10581 postinstall_cmds='chmod +x $lib'
10584 sunos4*)
10585 version_type=sunos
10586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10587 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10588 shlibpath_var=LD_LIBRARY_PATH
10589 shlibpath_overrides_runpath=yes
10590 if test "$with_gnu_ld" = yes; then
10591 need_lib_prefix=no
10593 need_version=yes
10596 sysv4 | sysv4.3*)
10597 version_type=linux
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599 soname_spec='${libname}${release}${shared_ext}$major'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 case $host_vendor in
10602 sni)
10603 shlibpath_overrides_runpath=no
10604 need_lib_prefix=no
10605 runpath_var=LD_RUN_PATH
10607 siemens)
10608 need_lib_prefix=no
10610 motorola)
10611 need_lib_prefix=no
10612 need_version=no
10613 shlibpath_overrides_runpath=no
10614 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10616 esac
10619 sysv4*MP*)
10620 if test -d /usr/nec ;then
10621 version_type=linux
10622 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10623 soname_spec='$libname${shared_ext}.$major'
10624 shlibpath_var=LD_LIBRARY_PATH
10628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10629 version_type=freebsd-elf
10630 need_lib_prefix=no
10631 need_version=no
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 shlibpath_var=LD_LIBRARY_PATH
10635 shlibpath_overrides_runpath=yes
10636 hardcode_into_libs=yes
10637 if test "$with_gnu_ld" = yes; then
10638 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10639 else
10640 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10641 case $host_os in
10642 sco3.2v5*)
10643 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10645 esac
10647 sys_lib_dlsearch_path_spec='/usr/lib'
10650 tpf*)
10651 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10652 version_type=linux
10653 need_lib_prefix=no
10654 need_version=no
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656 shlibpath_var=LD_LIBRARY_PATH
10657 shlibpath_overrides_runpath=no
10658 hardcode_into_libs=yes
10661 uts4*)
10662 version_type=linux
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10664 soname_spec='${libname}${release}${shared_ext}$major'
10665 shlibpath_var=LD_LIBRARY_PATH
10669 dynamic_linker=no
10671 esac
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10673 $as_echo "$dynamic_linker" >&6; }
10674 test "$dynamic_linker" = no && can_build_shared=no
10676 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10677 if test "$GCC" = yes; then
10678 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10681 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10682 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10684 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10685 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10780 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10781 hardcode_action=
10782 if test -n "$hardcode_libdir_flag_spec" ||
10783 test -n "$runpath_var" ||
10784 test "X$hardcode_automatic" = "Xyes" ; then
10786 # We can hardcode non-existent directories.
10787 if test "$hardcode_direct" != no &&
10788 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10789 # have to relink, otherwise we might link with an installed library
10790 # when we should be linking with a yet-to-be-installed one
10791 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10792 test "$hardcode_minus_L" != no; then
10793 # Linking always hardcodes the temporary library directory.
10794 hardcode_action=relink
10795 else
10796 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10797 hardcode_action=immediate
10799 else
10800 # We cannot hardcode anything, or else we can only hardcode existing
10801 # directories.
10802 hardcode_action=unsupported
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10805 $as_echo "$hardcode_action" >&6; }
10807 if test "$hardcode_action" = relink ||
10808 test "$inherit_rpath" = yes; then
10809 # Fast installation is not supported
10810 enable_fast_install=no
10811 elif test "$shlibpath_overrides_runpath" = yes ||
10812 test "$enable_shared" = no; then
10813 # Fast installation is not necessary
10814 enable_fast_install=needless
10822 if test "x$enable_dlopen" != xyes; then
10823 enable_dlopen=unknown
10824 enable_dlopen_self=unknown
10825 enable_dlopen_self_static=unknown
10826 else
10827 lt_cv_dlopen=no
10828 lt_cv_dlopen_libs=
10830 case $host_os in
10831 beos*)
10832 lt_cv_dlopen="load_add_on"
10833 lt_cv_dlopen_libs=
10834 lt_cv_dlopen_self=yes
10837 mingw* | pw32* | cegcc*)
10838 lt_cv_dlopen="LoadLibrary"
10839 lt_cv_dlopen_libs=
10842 cygwin*)
10843 lt_cv_dlopen="dlopen"
10844 lt_cv_dlopen_libs=
10847 darwin*)
10848 # if libdl is installed we need to link against it
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10850 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10851 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-ldl $LIBS"
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 char dlopen ();
10867 main ()
10869 return dlopen ();
10871 return 0;
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"; then :
10875 ac_cv_lib_dl_dlopen=yes
10876 else
10877 ac_cv_lib_dl_dlopen=no
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10884 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10885 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10887 else
10889 lt_cv_dlopen="dyld"
10890 lt_cv_dlopen_libs=
10891 lt_cv_dlopen_self=yes
10898 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10899 if test "x$ac_cv_func_shl_load" = x""yes; then :
10900 lt_cv_dlopen="shl_load"
10901 else
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10903 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10904 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
10906 else
10907 ac_check_lib_save_LIBS=$LIBS
10908 LIBS="-ldld $LIBS"
10909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10910 /* end confdefs.h. */
10912 /* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10915 #ifdef __cplusplus
10916 extern "C"
10917 #endif
10918 char shl_load ();
10920 main ()
10922 return shl_load ();
10924 return 0;
10926 _ACEOF
10927 if ac_fn_c_try_link "$LINENO"; then :
10928 ac_cv_lib_dld_shl_load=yes
10929 else
10930 ac_cv_lib_dld_shl_load=no
10932 rm -f core conftest.err conftest.$ac_objext \
10933 conftest$ac_exeext conftest.$ac_ext
10934 LIBS=$ac_check_lib_save_LIBS
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10937 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10938 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10939 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10940 else
10941 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10942 if test "x$ac_cv_func_dlopen" = x""yes; then :
10943 lt_cv_dlopen="dlopen"
10944 else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10946 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10947 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10948 $as_echo_n "(cached) " >&6
10949 else
10950 ac_check_lib_save_LIBS=$LIBS
10951 LIBS="-ldl $LIBS"
10952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h. */
10955 /* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10958 #ifdef __cplusplus
10959 extern "C"
10960 #endif
10961 char dlopen ();
10963 main ()
10965 return dlopen ();
10967 return 0;
10969 _ACEOF
10970 if ac_fn_c_try_link "$LINENO"; then :
10971 ac_cv_lib_dl_dlopen=yes
10972 else
10973 ac_cv_lib_dl_dlopen=no
10975 rm -f core conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
10977 LIBS=$ac_check_lib_save_LIBS
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10980 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10981 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10982 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10983 else
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10985 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10986 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 ac_check_lib_save_LIBS=$LIBS
10990 LIBS="-lsvld $LIBS"
10991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992 /* end confdefs.h. */
10994 /* Override any GCC internal prototype to avoid an error.
10995 Use char because int might match the return type of a GCC
10996 builtin and then its argument prototype would still apply. */
10997 #ifdef __cplusplus
10998 extern "C"
10999 #endif
11000 char dlopen ();
11002 main ()
11004 return dlopen ();
11006 return 0;
11008 _ACEOF
11009 if ac_fn_c_try_link "$LINENO"; then :
11010 ac_cv_lib_svld_dlopen=yes
11011 else
11012 ac_cv_lib_svld_dlopen=no
11014 rm -f core conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11019 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11020 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11022 else
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11024 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11025 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
11027 else
11028 ac_check_lib_save_LIBS=$LIBS
11029 LIBS="-ldld $LIBS"
11030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11031 /* end confdefs.h. */
11033 /* Override any GCC internal prototype to avoid an error.
11034 Use char because int might match the return type of a GCC
11035 builtin and then its argument prototype would still apply. */
11036 #ifdef __cplusplus
11037 extern "C"
11038 #endif
11039 char dld_link ();
11041 main ()
11043 return dld_link ();
11045 return 0;
11047 _ACEOF
11048 if ac_fn_c_try_link "$LINENO"; then :
11049 ac_cv_lib_dld_dld_link=yes
11050 else
11051 ac_cv_lib_dld_dld_link=no
11053 rm -f core conftest.err conftest.$ac_objext \
11054 conftest$ac_exeext conftest.$ac_ext
11055 LIBS=$ac_check_lib_save_LIBS
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11058 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11059 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11060 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11079 esac
11081 if test "x$lt_cv_dlopen" != xno; then
11082 enable_dlopen=yes
11083 else
11084 enable_dlopen=no
11087 case $lt_cv_dlopen in
11088 dlopen)
11089 save_CPPFLAGS="$CPPFLAGS"
11090 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11092 save_LDFLAGS="$LDFLAGS"
11093 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11095 save_LIBS="$LIBS"
11096 LIBS="$lt_cv_dlopen_libs $LIBS"
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11099 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11100 if test "${lt_cv_dlopen_self+set}" = set; then :
11101 $as_echo_n "(cached) " >&6
11102 else
11103 if test "$cross_compiling" = yes; then :
11104 lt_cv_dlopen_self=cross
11105 else
11106 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11107 lt_status=$lt_dlunknown
11108 cat > conftest.$ac_ext <<_LT_EOF
11109 #line 11109 "configure"
11110 #include "confdefs.h"
11112 #if HAVE_DLFCN_H
11113 #include <dlfcn.h>
11114 #endif
11116 #include <stdio.h>
11118 #ifdef RTLD_GLOBAL
11119 # define LT_DLGLOBAL RTLD_GLOBAL
11120 #else
11121 # ifdef DL_GLOBAL
11122 # define LT_DLGLOBAL DL_GLOBAL
11123 # else
11124 # define LT_DLGLOBAL 0
11125 # endif
11126 #endif
11128 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11129 find out it does not work in some platform. */
11130 #ifndef LT_DLLAZY_OR_NOW
11131 # ifdef RTLD_LAZY
11132 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11133 # else
11134 # ifdef DL_LAZY
11135 # define LT_DLLAZY_OR_NOW DL_LAZY
11136 # else
11137 # ifdef RTLD_NOW
11138 # define LT_DLLAZY_OR_NOW RTLD_NOW
11139 # else
11140 # ifdef DL_NOW
11141 # define LT_DLLAZY_OR_NOW DL_NOW
11142 # else
11143 # define LT_DLLAZY_OR_NOW 0
11144 # endif
11145 # endif
11146 # endif
11147 # endif
11148 #endif
11150 /* When -fvisbility=hidden is used, assume the code has been annotated
11151 correspondingly for the symbols needed. */
11152 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11153 void fnord () __attribute__((visibility("default")));
11154 #endif
11156 void fnord () { int i=42; }
11157 int main ()
11159 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11160 int status = $lt_dlunknown;
11162 if (self)
11164 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11165 else
11167 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11168 else puts (dlerror ());
11170 /* dlclose (self); */
11172 else
11173 puts (dlerror ());
11175 return status;
11177 _LT_EOF
11178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11179 (eval $ac_link) 2>&5
11180 ac_status=$?
11181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11182 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11183 (./conftest; exit; ) >&5 2>/dev/null
11184 lt_status=$?
11185 case x$lt_status in
11186 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11187 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11188 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11189 esac
11190 else :
11191 # compilation failed
11192 lt_cv_dlopen_self=no
11195 rm -fr conftest*
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11200 $as_echo "$lt_cv_dlopen_self" >&6; }
11202 if test "x$lt_cv_dlopen_self" = xyes; then
11203 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11205 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11206 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11207 $as_echo_n "(cached) " >&6
11208 else
11209 if test "$cross_compiling" = yes; then :
11210 lt_cv_dlopen_self_static=cross
11211 else
11212 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11213 lt_status=$lt_dlunknown
11214 cat > conftest.$ac_ext <<_LT_EOF
11215 #line 11215 "configure"
11216 #include "confdefs.h"
11218 #if HAVE_DLFCN_H
11219 #include <dlfcn.h>
11220 #endif
11222 #include <stdio.h>
11224 #ifdef RTLD_GLOBAL
11225 # define LT_DLGLOBAL RTLD_GLOBAL
11226 #else
11227 # ifdef DL_GLOBAL
11228 # define LT_DLGLOBAL DL_GLOBAL
11229 # else
11230 # define LT_DLGLOBAL 0
11231 # endif
11232 #endif
11234 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11235 find out it does not work in some platform. */
11236 #ifndef LT_DLLAZY_OR_NOW
11237 # ifdef RTLD_LAZY
11238 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11239 # else
11240 # ifdef DL_LAZY
11241 # define LT_DLLAZY_OR_NOW DL_LAZY
11242 # else
11243 # ifdef RTLD_NOW
11244 # define LT_DLLAZY_OR_NOW RTLD_NOW
11245 # else
11246 # ifdef DL_NOW
11247 # define LT_DLLAZY_OR_NOW DL_NOW
11248 # else
11249 # define LT_DLLAZY_OR_NOW 0
11250 # endif
11251 # endif
11252 # endif
11253 # endif
11254 #endif
11256 /* When -fvisbility=hidden is used, assume the code has been annotated
11257 correspondingly for the symbols needed. */
11258 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11259 void fnord () __attribute__((visibility("default")));
11260 #endif
11262 void fnord () { int i=42; }
11263 int main ()
11265 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11266 int status = $lt_dlunknown;
11268 if (self)
11270 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11271 else
11273 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11274 else puts (dlerror ());
11276 /* dlclose (self); */
11278 else
11279 puts (dlerror ());
11281 return status;
11283 _LT_EOF
11284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11285 (eval $ac_link) 2>&5
11286 ac_status=$?
11287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11288 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11289 (./conftest; exit; ) >&5 2>/dev/null
11290 lt_status=$?
11291 case x$lt_status in
11292 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11293 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11294 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11295 esac
11296 else :
11297 # compilation failed
11298 lt_cv_dlopen_self_static=no
11301 rm -fr conftest*
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11306 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11309 CPPFLAGS="$save_CPPFLAGS"
11310 LDFLAGS="$save_LDFLAGS"
11311 LIBS="$save_LIBS"
11313 esac
11315 case $lt_cv_dlopen_self in
11316 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11317 *) enable_dlopen_self=unknown ;;
11318 esac
11320 case $lt_cv_dlopen_self_static in
11321 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11322 *) enable_dlopen_self_static=unknown ;;
11323 esac
11342 striplib=
11343 old_striplib=
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11345 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11346 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11347 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11348 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11350 $as_echo "yes" >&6; }
11351 else
11352 # FIXME - insert some real tests, host_os isn't really good enough
11353 case $host_os in
11354 darwin*)
11355 if test -n "$STRIP" ; then
11356 striplib="$STRIP -x"
11357 old_striplib="$STRIP -S"
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11359 $as_echo "yes" >&6; }
11360 else
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11367 $as_echo "no" >&6; }
11369 esac
11383 # Report which library types will actually be built
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11385 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11387 $as_echo "$can_build_shared" >&6; }
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11390 $as_echo_n "checking whether to build shared libraries... " >&6; }
11391 test "$can_build_shared" = "no" && enable_shared=no
11393 # On AIX, shared libraries and static libraries use the same namespace, and
11394 # are all built from PIC.
11395 case $host_os in
11396 aix3*)
11397 test "$enable_shared" = yes && enable_static=no
11398 if test -n "$RANLIB"; then
11399 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11400 postinstall_cmds='$RANLIB $lib'
11404 aix[4-9]*)
11405 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11406 test "$enable_shared" = yes && enable_static=no
11409 esac
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11411 $as_echo "$enable_shared" >&6; }
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11414 $as_echo_n "checking whether to build static libraries... " >&6; }
11415 # Make sure either enable_shared or enable_static is yes.
11416 test "$enable_shared" = yes || enable_static=yes
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11418 $as_echo "$enable_static" >&6; }
11424 ac_ext=c
11425 ac_cpp='$CPP $CPPFLAGS'
11426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11430 CC="$lt_save_CC"
11444 ac_config_commands="$ac_config_commands libtool"
11449 # Only expand once:
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11456 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11457 # Check whether --enable-maintainer-mode was given.
11458 if test "${enable_maintainer_mode+set}" = set; then :
11459 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11460 else
11461 USE_MAINTAINER_MODE=no
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11465 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11466 if test $USE_MAINTAINER_MODE = yes; then
11467 MAINTAINER_MODE_TRUE=
11468 MAINTAINER_MODE_FALSE='#'
11469 else
11470 MAINTAINER_MODE_TRUE='#'
11471 MAINTAINER_MODE_FALSE=
11474 MAINT=$MAINTAINER_MODE_TRUE
11478 # For libtool versioning info, format is CURRENT:REVISION:AGE
11479 libtool_VERSION=2:0:1
11482 # Get target configury.
11483 . ${srcdir}/configure.tgt
11484 if test -n "$UNSUPPORTED"; then
11485 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
11488 # Disable fallbacks to __sync routines from libgcc. Otherwise we'll
11489 # make silly decisions about what the cpu can do.
11490 CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS"
11492 # Check header files.
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11494 $as_echo_n "checking for ANSI C header files... " >&6; }
11495 if test "${ac_cv_header_stdc+set}" = set; then :
11496 $as_echo_n "(cached) " >&6
11497 else
11498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11499 /* end confdefs.h. */
11500 #include <stdlib.h>
11501 #include <stdarg.h>
11502 #include <string.h>
11503 #include <float.h>
11506 main ()
11510 return 0;
11512 _ACEOF
11513 if ac_fn_c_try_compile "$LINENO"; then :
11514 ac_cv_header_stdc=yes
11515 else
11516 ac_cv_header_stdc=no
11518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11520 if test $ac_cv_header_stdc = yes; then
11521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11524 #include <string.h>
11526 _ACEOF
11527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11528 $EGREP "memchr" >/dev/null 2>&1; then :
11530 else
11531 ac_cv_header_stdc=no
11533 rm -f conftest*
11537 if test $ac_cv_header_stdc = yes; then
11538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11540 /* end confdefs.h. */
11541 #include <stdlib.h>
11543 _ACEOF
11544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11545 $EGREP "free" >/dev/null 2>&1; then :
11547 else
11548 ac_cv_header_stdc=no
11550 rm -f conftest*
11554 if test $ac_cv_header_stdc = yes; then
11555 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11556 if test "$cross_compiling" = yes; then :
11558 else
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11561 #include <ctype.h>
11562 #include <stdlib.h>
11563 #if ((' ' & 0x0FF) == 0x020)
11564 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11565 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11566 #else
11567 # define ISLOWER(c) \
11568 (('a' <= (c) && (c) <= 'i') \
11569 || ('j' <= (c) && (c) <= 'r') \
11570 || ('s' <= (c) && (c) <= 'z'))
11571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11572 #endif
11574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11576 main ()
11578 int i;
11579 for (i = 0; i < 256; i++)
11580 if (XOR (islower (i), ISLOWER (i))
11581 || toupper (i) != TOUPPER (i))
11582 return 2;
11583 return 0;
11585 _ACEOF
11586 if ac_fn_c_try_run "$LINENO"; then :
11588 else
11589 ac_cv_header_stdc=no
11591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11592 conftest.$ac_objext conftest.beam conftest.$ac_ext
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11598 $as_echo "$ac_cv_header_stdc" >&6; }
11599 if test $ac_cv_header_stdc = yes; then
11601 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
11606 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
11607 if test "${gcc_cv_header_string+set}" = set; then :
11608 $as_echo_n "(cached) " >&6
11609 else
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11612 #include <string.h>
11613 #include <strings.h>
11615 main ()
11619 return 0;
11621 _ACEOF
11622 if ac_fn_c_try_compile "$LINENO"; then :
11623 gcc_cv_header_string=yes
11624 else
11625 gcc_cv_header_string=no
11627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
11630 $as_echo "$gcc_cv_header_string" >&6; }
11631 if test $gcc_cv_header_string = yes; then
11633 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
11639 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11641 acx_cv_header_stdint=stddef.h
11642 acx_cv_header_stdint_kind="(already complete)"
11643 for i in stdint.h $inttype_headers; do
11644 unset ac_cv_type_uintptr_t
11645 unset ac_cv_type_uintmax_t
11646 unset ac_cv_type_int_least32_t
11647 unset ac_cv_type_int_fast32_t
11648 unset ac_cv_type_uint64_t
11649 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
11650 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
11651 #include <$i>
11653 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
11654 acx_cv_header_stdint=$i
11655 else
11656 continue
11659 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11660 #include <$i>
11662 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11664 else
11665 acx_cv_header_stdint_kind="(mostly complete)"
11668 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
11669 #include <$i>
11671 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
11673 else
11674 acx_cv_header_stdint_kind="(mostly complete)"
11677 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
11678 #include <$i>
11680 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
11682 else
11683 acx_cv_header_stdint_kind="(mostly complete)"
11686 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11687 #include <$i>
11689 if test "x$ac_cv_type_uint64_t" = x""yes; then :
11691 else
11692 acx_cv_header_stdint_kind="(lacks uint64_t)"
11695 break
11696 done
11697 if test "$acx_cv_header_stdint" = stddef.h; then
11698 acx_cv_header_stdint_kind="(lacks uintmax_t)"
11699 for i in stdint.h $inttype_headers; do
11700 unset ac_cv_type_uintptr_t
11701 unset ac_cv_type_uint32_t
11702 unset ac_cv_type_uint64_t
11703 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
11704 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
11705 #include <$i>
11707 if test "x$ac_cv_type_uint32_t" = x""yes; then :
11708 acx_cv_header_stdint=$i
11709 else
11710 continue
11713 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11714 #include <$i>
11716 if test "x$ac_cv_type_uint64_t" = x""yes; then :
11720 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11721 #include <$i>
11723 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11727 break
11728 done
11730 if test "$acx_cv_header_stdint" = stddef.h; then
11731 acx_cv_header_stdint_kind="(u_intXX_t style)"
11732 for i in sys/types.h $inttype_headers; do
11733 unset ac_cv_type_u_int32_t
11734 unset ac_cv_type_u_int64_t
11735 $as_echo_n "looking for u_intXX_t types in $i, " >&6
11736 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
11737 #include <$i>
11739 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
11740 acx_cv_header_stdint=$i
11741 else
11742 continue
11745 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
11746 #include <$i>
11748 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
11752 break
11753 done
11755 if test "$acx_cv_header_stdint" = stddef.h; then
11756 acx_cv_header_stdint_kind="(using manual detection)"
11759 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11760 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11761 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11762 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11763 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11765 # ----------------- Summarize what we found so far
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
11768 $as_echo_n "checking what to include in gstdint.h... " >&6; }
11770 case `$as_basename -- gstdint.h ||
11771 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
11772 Xgstdint.h : 'X\(//\)$' \| \
11773 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
11774 $as_echo X/gstdint.h |
11775 sed '/^.*\/\([^/][^/]*\)\/*$/{
11776 s//\1/
11779 /^X\/\(\/\/\)$/{
11780 s//\1/
11783 /^X\/\(\/\).*/{
11784 s//\1/
11787 s/.*/./; q'` in
11788 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11789 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11790 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11791 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11792 *) ;;
11793 esac
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11796 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
11798 # ----------------- done included file, check C basic types --------
11800 # Lacking an uintptr_t? Test size of void *
11801 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
11802 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
11803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11805 # This bug is HP SR number 8606223364.
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11807 $as_echo_n "checking size of void *... " >&6; }
11808 if test "${ac_cv_sizeof_void_p+set}" = set; then :
11809 $as_echo_n "(cached) " >&6
11810 else
11811 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
11813 else
11814 if test "$ac_cv_type_void_p" = yes; then
11815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11817 { as_fn_set_status 77
11818 as_fn_error "cannot compute sizeof (void *)
11819 See \`config.log' for more details." "$LINENO" 5; }; }
11820 else
11821 ac_cv_sizeof_void_p=0
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
11827 $as_echo "$ac_cv_sizeof_void_p" >&6; }
11831 cat >>confdefs.h <<_ACEOF
11832 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11833 _ACEOF
11836 esac
11838 # Lacking an uint64_t? Test size of long
11839 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
11840 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
11841 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11842 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11843 # This bug is HP SR number 8606223364.
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11845 $as_echo_n "checking size of long... " >&6; }
11846 if test "${ac_cv_sizeof_long+set}" = set; then :
11847 $as_echo_n "(cached) " >&6
11848 else
11849 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
11851 else
11852 if test "$ac_cv_type_long" = yes; then
11853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11855 { as_fn_set_status 77
11856 as_fn_error "cannot compute sizeof (long)
11857 See \`config.log' for more details." "$LINENO" 5; }; }
11858 else
11859 ac_cv_sizeof_long=0
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11865 $as_echo "$ac_cv_sizeof_long" >&6; }
11869 cat >>confdefs.h <<_ACEOF
11870 #define SIZEOF_LONG $ac_cv_sizeof_long
11871 _ACEOF
11874 esac
11876 if test $acx_cv_header_stdint = stddef.h; then
11877 # Lacking a good header? Test size of everything and deduce all types.
11878 # The cast to long int works around a bug in the HP C Compiler
11879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11881 # This bug is HP SR number 8606223364.
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11883 $as_echo_n "checking size of int... " >&6; }
11884 if test "${ac_cv_sizeof_int+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
11886 else
11887 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11889 else
11890 if test "$ac_cv_type_int" = yes; then
11891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11893 { as_fn_set_status 77
11894 as_fn_error "cannot compute sizeof (int)
11895 See \`config.log' for more details." "$LINENO" 5; }; }
11896 else
11897 ac_cv_sizeof_int=0
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11903 $as_echo "$ac_cv_sizeof_int" >&6; }
11907 cat >>confdefs.h <<_ACEOF
11908 #define SIZEOF_INT $ac_cv_sizeof_int
11909 _ACEOF
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 short" >&5
11917 $as_echo_n "checking size of short... " >&6; }
11918 if test "${ac_cv_sizeof_short+set}" = set; then :
11919 $as_echo_n "(cached) " >&6
11920 else
11921 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
11923 else
11924 if test "$ac_cv_type_short" = 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 (short)
11929 See \`config.log' for more details." "$LINENO" 5; }; }
11930 else
11931 ac_cv_sizeof_short=0
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
11937 $as_echo "$ac_cv_sizeof_short" >&6; }
11941 cat >>confdefs.h <<_ACEOF
11942 #define SIZEOF_SHORT $ac_cv_sizeof_short
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 char" >&5
11951 $as_echo_n "checking size of char... " >&6; }
11952 if test "${ac_cv_sizeof_char+set}" = set; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11957 else
11958 if test "$ac_cv_type_char" = 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 (char)
11963 See \`config.log' for more details." "$LINENO" 5; }; }
11964 else
11965 ac_cv_sizeof_char=0
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11971 $as_echo "$ac_cv_sizeof_char" >&6; }
11975 cat >>confdefs.h <<_ACEOF
11976 #define SIZEOF_CHAR $ac_cv_sizeof_char
11977 _ACEOF
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
11982 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
11983 case "$ac_cv_sizeof_char" in
11984 1) acx_cv_type_int8_t=char ;;
11985 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
11986 esac
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
11988 $as_echo "$acx_cv_type_int8_t" >&6; }
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
11991 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
11992 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
11993 2:*) acx_cv_type_int16_t=int ;;
11994 *:2) acx_cv_type_int16_t=short ;;
11995 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
11996 esac
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
11998 $as_echo "$acx_cv_type_int16_t" >&6; }
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12001 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
12002 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12003 4:*) acx_cv_type_int32_t=int ;;
12004 *:4) acx_cv_type_int32_t=long ;;
12005 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
12006 esac
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12008 $as_echo "$acx_cv_type_int32_t" >&6; }
12011 # These tests are here to make the output prettier
12013 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12014 case "$ac_cv_sizeof_long" in
12015 8) acx_cv_type_int64_t=long ;;
12016 esac
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12018 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12020 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12023 # Now we can use the above types
12025 if test "$ac_cv_type_uintptr_t" != yes; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12027 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12028 case $ac_cv_sizeof_void_p in
12029 2) acx_cv_type_intptr_t=int16_t ;;
12030 4) acx_cv_type_intptr_t=int32_t ;;
12031 8) acx_cv_type_intptr_t=int64_t ;;
12032 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12033 esac
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12035 $as_echo "$acx_cv_type_intptr_t" >&6; }
12038 # ----------------- done all checks, emit header -------------
12039 ac_config_commands="$ac_config_commands gstdint.h"
12043 for ac_header in fenv.h
12044 do :
12045 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
12046 if test "x$ac_cv_header_fenv_h" = x""yes; then :
12047 cat >>confdefs.h <<_ACEOF
12048 #define HAVE_FENV_H 1
12049 _ACEOF
12053 done
12056 # Check for common type sizes
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5
12059 $as_echo_n "checking for 1 byte integer... " >&6; }
12060 if test "${libat_cv_have_mode_QI+set}" = set; then :
12061 $as_echo_n "(cached) " >&6
12062 else
12063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064 /* end confdefs.h. */
12065 int x __attribute__((mode(QI)));
12066 _ACEOF
12067 if ac_fn_c_try_compile "$LINENO"; then :
12068 libat_cv_have_mode_QI=yes
12069 else
12070 libat_cv_have_mode_QI=no
12072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5
12075 $as_echo "$libat_cv_have_mode_QI" >&6; }
12077 yesno=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '`
12079 cat >>confdefs.h <<_ACEOF
12080 #define HAVE_INT1 $yesno
12081 _ACEOF
12084 if test x$libat_cv_have_mode_QI = xyes; then
12085 SIZES="$SIZES 1"
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5
12090 $as_echo_n "checking for 2 byte integer... " >&6; }
12091 if test "${libat_cv_have_mode_HI+set}" = set; then :
12092 $as_echo_n "(cached) " >&6
12093 else
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12096 int x __attribute__((mode(HI)));
12097 _ACEOF
12098 if ac_fn_c_try_compile "$LINENO"; then :
12099 libat_cv_have_mode_HI=yes
12100 else
12101 libat_cv_have_mode_HI=no
12103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5
12106 $as_echo "$libat_cv_have_mode_HI" >&6; }
12108 yesno=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '`
12110 cat >>confdefs.h <<_ACEOF
12111 #define HAVE_INT2 $yesno
12112 _ACEOF
12115 if test x$libat_cv_have_mode_HI = xyes; then
12116 SIZES="$SIZES 2"
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5
12121 $as_echo_n "checking for 4 byte integer... " >&6; }
12122 if test "${libat_cv_have_mode_SI+set}" = set; then :
12123 $as_echo_n "(cached) " >&6
12124 else
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12127 int x __attribute__((mode(SI)));
12128 _ACEOF
12129 if ac_fn_c_try_compile "$LINENO"; then :
12130 libat_cv_have_mode_SI=yes
12131 else
12132 libat_cv_have_mode_SI=no
12134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5
12137 $as_echo "$libat_cv_have_mode_SI" >&6; }
12139 yesno=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '`
12141 cat >>confdefs.h <<_ACEOF
12142 #define HAVE_INT4 $yesno
12143 _ACEOF
12146 if test x$libat_cv_have_mode_SI = xyes; then
12147 SIZES="$SIZES 4"
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5
12152 $as_echo_n "checking for 8 byte integer... " >&6; }
12153 if test "${libat_cv_have_mode_DI+set}" = set; then :
12154 $as_echo_n "(cached) " >&6
12155 else
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12158 int x __attribute__((mode(DI)));
12159 _ACEOF
12160 if ac_fn_c_try_compile "$LINENO"; then :
12161 libat_cv_have_mode_DI=yes
12162 else
12163 libat_cv_have_mode_DI=no
12165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5
12168 $as_echo "$libat_cv_have_mode_DI" >&6; }
12170 yesno=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '`
12172 cat >>confdefs.h <<_ACEOF
12173 #define HAVE_INT8 $yesno
12174 _ACEOF
12177 if test x$libat_cv_have_mode_DI = xyes; then
12178 SIZES="$SIZES 8"
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5
12183 $as_echo_n "checking for 16 byte integer... " >&6; }
12184 if test "${libat_cv_have_mode_TI+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12189 int x __attribute__((mode(TI)));
12190 _ACEOF
12191 if ac_fn_c_try_compile "$LINENO"; then :
12192 libat_cv_have_mode_TI=yes
12193 else
12194 libat_cv_have_mode_TI=no
12196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5
12199 $as_echo "$libat_cv_have_mode_TI" >&6; }
12201 yesno=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '`
12203 cat >>confdefs.h <<_ACEOF
12204 #define HAVE_INT16 $yesno
12205 _ACEOF
12208 if test x$libat_cv_have_mode_TI = xyes; then
12209 SIZES="$SIZES 16"
12214 # Check for compiler builtins of atomic operations.
12216 # Do link tests if possible, instead asm tests, limited to some platforms
12217 # see discussion in PR target/40134, PR libstdc++/40133 and the thread
12218 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
12219 atomic_builtins_link_tests=no
12220 if test x$gcc_no_link != xyes; then
12221 # Can do link tests. Limit to some tested platforms
12222 case "$host" in
12223 *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
12224 atomic_builtins_link_tests=yes
12226 esac
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5
12232 $as_echo_n "checking for __atomic_load/store for size 1... " >&6; }
12233 if test "${libat_cv_have_at_ldst_1+set}" = set; then :
12234 $as_echo_n "(cached) " >&6
12235 else
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12241 main ()
12243 typedef int T __attribute__((mode(QI)));
12244 T *x; volatile T sink; asm("" : "=g"(x));
12245 sink = __atomic_load_n(x, 0);
12246 __atomic_store_n(x, sink, 0);
12248 return 0;
12250 _ACEOF
12251 if test x$atomic_builtins_link_tests = xyes; then
12252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12253 (eval $ac_link) 2>&5
12254 ac_status=$?
12255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12256 test $ac_status = 0; }; then
12257 eval libat_cv_have_at_ldst_1=yes
12258 else
12259 eval libat_cv_have_at_ldst_1=no
12261 else
12262 old_CFLAGS="$CFLAGS"
12263 # Compile unoptimized.
12264 CFLAGS="$CFLAGS -O0 -S"
12265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12266 (eval $ac_compile) 2>&5
12267 ac_status=$?
12268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12269 test $ac_status = 0; }; then
12270 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12271 eval libat_cv_have_at_ldst_1=no
12272 else
12273 eval libat_cv_have_at_ldst_1=yes
12275 else
12276 eval libat_cv_have_at_ldst_1=no
12278 CFLAGS="$old_CFLAGS"
12280 rm -f conftest*
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5
12284 $as_echo "$libat_cv_have_at_ldst_1" >&6; }
12287 yesno=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '`
12289 cat >>confdefs.h <<_ACEOF
12290 #define HAVE_ATOMIC_LDST_1 $yesno
12291 _ACEOF
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5
12299 $as_echo_n "checking for __atomic_load/store for size 2... " >&6; }
12300 if test "${libat_cv_have_at_ldst_2+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h. */
12308 main ()
12310 typedef int T __attribute__((mode(HI)));
12311 T *x; volatile T sink; asm("" : "=g"(x));
12312 sink = __atomic_load_n(x, 0);
12313 __atomic_store_n(x, sink, 0);
12315 return 0;
12317 _ACEOF
12318 if test x$atomic_builtins_link_tests = xyes; then
12319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12320 (eval $ac_link) 2>&5
12321 ac_status=$?
12322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12323 test $ac_status = 0; }; then
12324 eval libat_cv_have_at_ldst_2=yes
12325 else
12326 eval libat_cv_have_at_ldst_2=no
12328 else
12329 old_CFLAGS="$CFLAGS"
12330 # Compile unoptimized.
12331 CFLAGS="$CFLAGS -O0 -S"
12332 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12333 (eval $ac_compile) 2>&5
12334 ac_status=$?
12335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12336 test $ac_status = 0; }; then
12337 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12338 eval libat_cv_have_at_ldst_2=no
12339 else
12340 eval libat_cv_have_at_ldst_2=yes
12342 else
12343 eval libat_cv_have_at_ldst_2=no
12345 CFLAGS="$old_CFLAGS"
12347 rm -f conftest*
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5
12351 $as_echo "$libat_cv_have_at_ldst_2" >&6; }
12354 yesno=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '`
12356 cat >>confdefs.h <<_ACEOF
12357 #define HAVE_ATOMIC_LDST_2 $yesno
12358 _ACEOF
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5
12366 $as_echo_n "checking for __atomic_load/store for size 4... " >&6; }
12367 if test "${libat_cv_have_at_ldst_4+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12375 main ()
12377 typedef int T __attribute__((mode(SI)));
12378 T *x; volatile T sink; asm("" : "=g"(x));
12379 sink = __atomic_load_n(x, 0);
12380 __atomic_store_n(x, sink, 0);
12382 return 0;
12384 _ACEOF
12385 if test x$atomic_builtins_link_tests = xyes; then
12386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12387 (eval $ac_link) 2>&5
12388 ac_status=$?
12389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12390 test $ac_status = 0; }; then
12391 eval libat_cv_have_at_ldst_4=yes
12392 else
12393 eval libat_cv_have_at_ldst_4=no
12395 else
12396 old_CFLAGS="$CFLAGS"
12397 # Compile unoptimized.
12398 CFLAGS="$CFLAGS -O0 -S"
12399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12400 (eval $ac_compile) 2>&5
12401 ac_status=$?
12402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12403 test $ac_status = 0; }; then
12404 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12405 eval libat_cv_have_at_ldst_4=no
12406 else
12407 eval libat_cv_have_at_ldst_4=yes
12409 else
12410 eval libat_cv_have_at_ldst_4=no
12412 CFLAGS="$old_CFLAGS"
12414 rm -f conftest*
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5
12418 $as_echo "$libat_cv_have_at_ldst_4" >&6; }
12421 yesno=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '`
12423 cat >>confdefs.h <<_ACEOF
12424 #define HAVE_ATOMIC_LDST_4 $yesno
12425 _ACEOF
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5
12433 $as_echo_n "checking for __atomic_load/store for size 8... " >&6; }
12434 if test "${libat_cv_have_at_ldst_8+set}" = set; then :
12435 $as_echo_n "(cached) " >&6
12436 else
12438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h. */
12442 main ()
12444 typedef int T __attribute__((mode(DI)));
12445 T *x; volatile T sink; asm("" : "=g"(x));
12446 sink = __atomic_load_n(x, 0);
12447 __atomic_store_n(x, sink, 0);
12449 return 0;
12451 _ACEOF
12452 if test x$atomic_builtins_link_tests = xyes; then
12453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12454 (eval $ac_link) 2>&5
12455 ac_status=$?
12456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12457 test $ac_status = 0; }; then
12458 eval libat_cv_have_at_ldst_8=yes
12459 else
12460 eval libat_cv_have_at_ldst_8=no
12462 else
12463 old_CFLAGS="$CFLAGS"
12464 # Compile unoptimized.
12465 CFLAGS="$CFLAGS -O0 -S"
12466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12467 (eval $ac_compile) 2>&5
12468 ac_status=$?
12469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12470 test $ac_status = 0; }; then
12471 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12472 eval libat_cv_have_at_ldst_8=no
12473 else
12474 eval libat_cv_have_at_ldst_8=yes
12476 else
12477 eval libat_cv_have_at_ldst_8=no
12479 CFLAGS="$old_CFLAGS"
12481 rm -f conftest*
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5
12485 $as_echo "$libat_cv_have_at_ldst_8" >&6; }
12488 yesno=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '`
12490 cat >>confdefs.h <<_ACEOF
12491 #define HAVE_ATOMIC_LDST_8 $yesno
12492 _ACEOF
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5
12500 $as_echo_n "checking for __atomic_load/store for size 16... " >&6; }
12501 if test "${libat_cv_have_at_ldst_16+set}" = set; then :
12502 $as_echo_n "(cached) " >&6
12503 else
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12509 main ()
12511 typedef int T __attribute__((mode(TI)));
12512 T *x; volatile T sink; asm("" : "=g"(x));
12513 sink = __atomic_load_n(x, 0);
12514 __atomic_store_n(x, sink, 0);
12516 return 0;
12518 _ACEOF
12519 if test x$atomic_builtins_link_tests = xyes; then
12520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12521 (eval $ac_link) 2>&5
12522 ac_status=$?
12523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12524 test $ac_status = 0; }; then
12525 eval libat_cv_have_at_ldst_16=yes
12526 else
12527 eval libat_cv_have_at_ldst_16=no
12529 else
12530 old_CFLAGS="$CFLAGS"
12531 # Compile unoptimized.
12532 CFLAGS="$CFLAGS -O0 -S"
12533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12534 (eval $ac_compile) 2>&5
12535 ac_status=$?
12536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12537 test $ac_status = 0; }; then
12538 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12539 eval libat_cv_have_at_ldst_16=no
12540 else
12541 eval libat_cv_have_at_ldst_16=yes
12543 else
12544 eval libat_cv_have_at_ldst_16=no
12546 CFLAGS="$old_CFLAGS"
12548 rm -f conftest*
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5
12552 $as_echo "$libat_cv_have_at_ldst_16" >&6; }
12555 yesno=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '`
12557 cat >>confdefs.h <<_ACEOF
12558 #define HAVE_ATOMIC_LDST_16 $yesno
12559 _ACEOF
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5
12568 $as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; }
12569 if test "${libat_cv_have_at_tas_1+set}" = set; then :
12570 $as_echo_n "(cached) " >&6
12571 else
12573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12577 main ()
12579 typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12580 __atomic_test_and_set(x, 0);
12582 return 0;
12584 _ACEOF
12585 if test x$atomic_builtins_link_tests = xyes; then
12586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12587 (eval $ac_link) 2>&5
12588 ac_status=$?
12589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12590 test $ac_status = 0; }; then
12591 eval libat_cv_have_at_tas_1=yes
12592 else
12593 eval libat_cv_have_at_tas_1=no
12595 else
12596 old_CFLAGS="$CFLAGS"
12597 # Compile unoptimized.
12598 CFLAGS="$CFLAGS -O0 -S"
12599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12600 (eval $ac_compile) 2>&5
12601 ac_status=$?
12602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603 test $ac_status = 0; }; then
12604 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12605 eval libat_cv_have_at_tas_1=no
12606 else
12607 eval libat_cv_have_at_tas_1=yes
12609 else
12610 eval libat_cv_have_at_tas_1=no
12612 CFLAGS="$old_CFLAGS"
12614 rm -f conftest*
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5
12618 $as_echo "$libat_cv_have_at_tas_1" >&6; }
12621 yesno=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '`
12623 cat >>confdefs.h <<_ACEOF
12624 #define HAVE_ATOMIC_TAS_1 $yesno
12625 _ACEOF
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5
12633 $as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; }
12634 if test "${libat_cv_have_at_tas_2+set}" = set; then :
12635 $as_echo_n "(cached) " >&6
12636 else
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12642 main ()
12644 typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
12645 __atomic_test_and_set(x, 0);
12647 return 0;
12649 _ACEOF
12650 if test x$atomic_builtins_link_tests = xyes; then
12651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12652 (eval $ac_link) 2>&5
12653 ac_status=$?
12654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12655 test $ac_status = 0; }; then
12656 eval libat_cv_have_at_tas_2=yes
12657 else
12658 eval libat_cv_have_at_tas_2=no
12660 else
12661 old_CFLAGS="$CFLAGS"
12662 # Compile unoptimized.
12663 CFLAGS="$CFLAGS -O0 -S"
12664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12665 (eval $ac_compile) 2>&5
12666 ac_status=$?
12667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12668 test $ac_status = 0; }; then
12669 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12670 eval libat_cv_have_at_tas_2=no
12671 else
12672 eval libat_cv_have_at_tas_2=yes
12674 else
12675 eval libat_cv_have_at_tas_2=no
12677 CFLAGS="$old_CFLAGS"
12679 rm -f conftest*
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5
12683 $as_echo "$libat_cv_have_at_tas_2" >&6; }
12686 yesno=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '`
12688 cat >>confdefs.h <<_ACEOF
12689 #define HAVE_ATOMIC_TAS_2 $yesno
12690 _ACEOF
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5
12698 $as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; }
12699 if test "${libat_cv_have_at_tas_4+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12707 main ()
12709 typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
12710 __atomic_test_and_set(x, 0);
12712 return 0;
12714 _ACEOF
12715 if test x$atomic_builtins_link_tests = xyes; then
12716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12717 (eval $ac_link) 2>&5
12718 ac_status=$?
12719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12720 test $ac_status = 0; }; then
12721 eval libat_cv_have_at_tas_4=yes
12722 else
12723 eval libat_cv_have_at_tas_4=no
12725 else
12726 old_CFLAGS="$CFLAGS"
12727 # Compile unoptimized.
12728 CFLAGS="$CFLAGS -O0 -S"
12729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12730 (eval $ac_compile) 2>&5
12731 ac_status=$?
12732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12733 test $ac_status = 0; }; then
12734 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12735 eval libat_cv_have_at_tas_4=no
12736 else
12737 eval libat_cv_have_at_tas_4=yes
12739 else
12740 eval libat_cv_have_at_tas_4=no
12742 CFLAGS="$old_CFLAGS"
12744 rm -f conftest*
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5
12748 $as_echo "$libat_cv_have_at_tas_4" >&6; }
12751 yesno=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '`
12753 cat >>confdefs.h <<_ACEOF
12754 #define HAVE_ATOMIC_TAS_4 $yesno
12755 _ACEOF
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5
12763 $as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; }
12764 if test "${libat_cv_have_at_tas_8+set}" = set; then :
12765 $as_echo_n "(cached) " >&6
12766 else
12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12769 /* end confdefs.h. */
12772 main ()
12774 typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
12775 __atomic_test_and_set(x, 0);
12777 return 0;
12779 _ACEOF
12780 if test x$atomic_builtins_link_tests = xyes; then
12781 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12782 (eval $ac_link) 2>&5
12783 ac_status=$?
12784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12785 test $ac_status = 0; }; then
12786 eval libat_cv_have_at_tas_8=yes
12787 else
12788 eval libat_cv_have_at_tas_8=no
12790 else
12791 old_CFLAGS="$CFLAGS"
12792 # Compile unoptimized.
12793 CFLAGS="$CFLAGS -O0 -S"
12794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12795 (eval $ac_compile) 2>&5
12796 ac_status=$?
12797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12798 test $ac_status = 0; }; then
12799 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12800 eval libat_cv_have_at_tas_8=no
12801 else
12802 eval libat_cv_have_at_tas_8=yes
12804 else
12805 eval libat_cv_have_at_tas_8=no
12807 CFLAGS="$old_CFLAGS"
12809 rm -f conftest*
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5
12813 $as_echo "$libat_cv_have_at_tas_8" >&6; }
12816 yesno=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '`
12818 cat >>confdefs.h <<_ACEOF
12819 #define HAVE_ATOMIC_TAS_8 $yesno
12820 _ACEOF
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5
12828 $as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; }
12829 if test "${libat_cv_have_at_tas_16+set}" = set; then :
12830 $as_echo_n "(cached) " >&6
12831 else
12833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12834 /* end confdefs.h. */
12837 main ()
12839 typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
12840 __atomic_test_and_set(x, 0);
12842 return 0;
12844 _ACEOF
12845 if test x$atomic_builtins_link_tests = xyes; then
12846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12847 (eval $ac_link) 2>&5
12848 ac_status=$?
12849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12850 test $ac_status = 0; }; then
12851 eval libat_cv_have_at_tas_16=yes
12852 else
12853 eval libat_cv_have_at_tas_16=no
12855 else
12856 old_CFLAGS="$CFLAGS"
12857 # Compile unoptimized.
12858 CFLAGS="$CFLAGS -O0 -S"
12859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12860 (eval $ac_compile) 2>&5
12861 ac_status=$?
12862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12863 test $ac_status = 0; }; then
12864 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12865 eval libat_cv_have_at_tas_16=no
12866 else
12867 eval libat_cv_have_at_tas_16=yes
12869 else
12870 eval libat_cv_have_at_tas_16=no
12872 CFLAGS="$old_CFLAGS"
12874 rm -f conftest*
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5
12878 $as_echo "$libat_cv_have_at_tas_16" >&6; }
12881 yesno=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '`
12883 cat >>confdefs.h <<_ACEOF
12884 #define HAVE_ATOMIC_TAS_16 $yesno
12885 _ACEOF
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5
12894 $as_echo_n "checking for __atomic_exchange for size 1... " >&6; }
12895 if test "${libat_cv_have_at_exch_1+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
12897 else
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h. */
12903 main ()
12905 typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12906 __atomic_exchange_n(x, 0, 0);
12908 return 0;
12910 _ACEOF
12911 if test x$atomic_builtins_link_tests = xyes; then
12912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12913 (eval $ac_link) 2>&5
12914 ac_status=$?
12915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12916 test $ac_status = 0; }; then
12917 eval libat_cv_have_at_exch_1=yes
12918 else
12919 eval libat_cv_have_at_exch_1=no
12921 else
12922 old_CFLAGS="$CFLAGS"
12923 # Compile unoptimized.
12924 CFLAGS="$CFLAGS -O0 -S"
12925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12926 (eval $ac_compile) 2>&5
12927 ac_status=$?
12928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12929 test $ac_status = 0; }; then
12930 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12931 eval libat_cv_have_at_exch_1=no
12932 else
12933 eval libat_cv_have_at_exch_1=yes
12935 else
12936 eval libat_cv_have_at_exch_1=no
12938 CFLAGS="$old_CFLAGS"
12940 rm -f conftest*
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5
12944 $as_echo "$libat_cv_have_at_exch_1" >&6; }
12947 yesno=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '`
12949 cat >>confdefs.h <<_ACEOF
12950 #define HAVE_ATOMIC_EXCHANGE_1 $yesno
12951 _ACEOF
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5
12959 $as_echo_n "checking for __atomic_exchange for size 2... " >&6; }
12960 if test "${libat_cv_have_at_exch_2+set}" = set; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12968 main ()
12970 typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
12971 __atomic_exchange_n(x, 0, 0);
12973 return 0;
12975 _ACEOF
12976 if test x$atomic_builtins_link_tests = xyes; then
12977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12978 (eval $ac_link) 2>&5
12979 ac_status=$?
12980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12981 test $ac_status = 0; }; then
12982 eval libat_cv_have_at_exch_2=yes
12983 else
12984 eval libat_cv_have_at_exch_2=no
12986 else
12987 old_CFLAGS="$CFLAGS"
12988 # Compile unoptimized.
12989 CFLAGS="$CFLAGS -O0 -S"
12990 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12991 (eval $ac_compile) 2>&5
12992 ac_status=$?
12993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12994 test $ac_status = 0; }; then
12995 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12996 eval libat_cv_have_at_exch_2=no
12997 else
12998 eval libat_cv_have_at_exch_2=yes
13000 else
13001 eval libat_cv_have_at_exch_2=no
13003 CFLAGS="$old_CFLAGS"
13005 rm -f conftest*
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5
13009 $as_echo "$libat_cv_have_at_exch_2" >&6; }
13012 yesno=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '`
13014 cat >>confdefs.h <<_ACEOF
13015 #define HAVE_ATOMIC_EXCHANGE_2 $yesno
13016 _ACEOF
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5
13024 $as_echo_n "checking for __atomic_exchange for size 4... " >&6; }
13025 if test "${libat_cv_have_at_exch_4+set}" = set; then :
13026 $as_echo_n "(cached) " >&6
13027 else
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13033 main ()
13035 typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13036 __atomic_exchange_n(x, 0, 0);
13038 return 0;
13040 _ACEOF
13041 if test x$atomic_builtins_link_tests = xyes; then
13042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13043 (eval $ac_link) 2>&5
13044 ac_status=$?
13045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13046 test $ac_status = 0; }; then
13047 eval libat_cv_have_at_exch_4=yes
13048 else
13049 eval libat_cv_have_at_exch_4=no
13051 else
13052 old_CFLAGS="$CFLAGS"
13053 # Compile unoptimized.
13054 CFLAGS="$CFLAGS -O0 -S"
13055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13056 (eval $ac_compile) 2>&5
13057 ac_status=$?
13058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13059 test $ac_status = 0; }; then
13060 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13061 eval libat_cv_have_at_exch_4=no
13062 else
13063 eval libat_cv_have_at_exch_4=yes
13065 else
13066 eval libat_cv_have_at_exch_4=no
13068 CFLAGS="$old_CFLAGS"
13070 rm -f conftest*
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5
13074 $as_echo "$libat_cv_have_at_exch_4" >&6; }
13077 yesno=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '`
13079 cat >>confdefs.h <<_ACEOF
13080 #define HAVE_ATOMIC_EXCHANGE_4 $yesno
13081 _ACEOF
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5
13089 $as_echo_n "checking for __atomic_exchange for size 8... " >&6; }
13090 if test "${libat_cv_have_at_exch_8+set}" = set; then :
13091 $as_echo_n "(cached) " >&6
13092 else
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13098 main ()
13100 typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13101 __atomic_exchange_n(x, 0, 0);
13103 return 0;
13105 _ACEOF
13106 if test x$atomic_builtins_link_tests = xyes; then
13107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13108 (eval $ac_link) 2>&5
13109 ac_status=$?
13110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13111 test $ac_status = 0; }; then
13112 eval libat_cv_have_at_exch_8=yes
13113 else
13114 eval libat_cv_have_at_exch_8=no
13116 else
13117 old_CFLAGS="$CFLAGS"
13118 # Compile unoptimized.
13119 CFLAGS="$CFLAGS -O0 -S"
13120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13121 (eval $ac_compile) 2>&5
13122 ac_status=$?
13123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13124 test $ac_status = 0; }; then
13125 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13126 eval libat_cv_have_at_exch_8=no
13127 else
13128 eval libat_cv_have_at_exch_8=yes
13130 else
13131 eval libat_cv_have_at_exch_8=no
13133 CFLAGS="$old_CFLAGS"
13135 rm -f conftest*
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5
13139 $as_echo "$libat_cv_have_at_exch_8" >&6; }
13142 yesno=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '`
13144 cat >>confdefs.h <<_ACEOF
13145 #define HAVE_ATOMIC_EXCHANGE_8 $yesno
13146 _ACEOF
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5
13154 $as_echo_n "checking for __atomic_exchange for size 16... " >&6; }
13155 if test "${libat_cv_have_at_exch_16+set}" = set; then :
13156 $as_echo_n "(cached) " >&6
13157 else
13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13163 main ()
13165 typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13166 __atomic_exchange_n(x, 0, 0);
13168 return 0;
13170 _ACEOF
13171 if test x$atomic_builtins_link_tests = xyes; then
13172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13173 (eval $ac_link) 2>&5
13174 ac_status=$?
13175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13176 test $ac_status = 0; }; then
13177 eval libat_cv_have_at_exch_16=yes
13178 else
13179 eval libat_cv_have_at_exch_16=no
13181 else
13182 old_CFLAGS="$CFLAGS"
13183 # Compile unoptimized.
13184 CFLAGS="$CFLAGS -O0 -S"
13185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13186 (eval $ac_compile) 2>&5
13187 ac_status=$?
13188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13189 test $ac_status = 0; }; then
13190 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13191 eval libat_cv_have_at_exch_16=no
13192 else
13193 eval libat_cv_have_at_exch_16=yes
13195 else
13196 eval libat_cv_have_at_exch_16=no
13198 CFLAGS="$old_CFLAGS"
13200 rm -f conftest*
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5
13204 $as_echo "$libat_cv_have_at_exch_16" >&6; }
13207 yesno=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '`
13209 cat >>confdefs.h <<_ACEOF
13210 #define HAVE_ATOMIC_EXCHANGE_16 $yesno
13211 _ACEOF
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5
13220 $as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; }
13221 if test "${libat_cv_have_at_cas_1+set}" = set; then :
13222 $as_echo_n "(cached) " >&6
13223 else
13225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h. */
13229 main ()
13231 typedef int T __attribute__((mode(QI))); T *x, *y;
13232 asm("" : "=g"(x), "=g"(y));
13233 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13235 return 0;
13237 _ACEOF
13238 if test x$atomic_builtins_link_tests = xyes; then
13239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13240 (eval $ac_link) 2>&5
13241 ac_status=$?
13242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13243 test $ac_status = 0; }; then
13244 eval libat_cv_have_at_cas_1=yes
13245 else
13246 eval libat_cv_have_at_cas_1=no
13248 else
13249 old_CFLAGS="$CFLAGS"
13250 # Compile unoptimized.
13251 CFLAGS="$CFLAGS -O0 -S"
13252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13253 (eval $ac_compile) 2>&5
13254 ac_status=$?
13255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13256 test $ac_status = 0; }; then
13257 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13258 eval libat_cv_have_at_cas_1=no
13259 else
13260 eval libat_cv_have_at_cas_1=yes
13262 else
13263 eval libat_cv_have_at_cas_1=no
13265 CFLAGS="$old_CFLAGS"
13267 rm -f conftest*
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5
13271 $as_echo "$libat_cv_have_at_cas_1" >&6; }
13274 yesno=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '`
13276 cat >>confdefs.h <<_ACEOF
13277 #define HAVE_ATOMIC_CAS_1 $yesno
13278 _ACEOF
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5
13286 $as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; }
13287 if test "${libat_cv_have_at_cas_2+set}" = set; then :
13288 $as_echo_n "(cached) " >&6
13289 else
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13295 main ()
13297 typedef int T __attribute__((mode(HI))); T *x, *y;
13298 asm("" : "=g"(x), "=g"(y));
13299 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13301 return 0;
13303 _ACEOF
13304 if test x$atomic_builtins_link_tests = xyes; then
13305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13306 (eval $ac_link) 2>&5
13307 ac_status=$?
13308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13309 test $ac_status = 0; }; then
13310 eval libat_cv_have_at_cas_2=yes
13311 else
13312 eval libat_cv_have_at_cas_2=no
13314 else
13315 old_CFLAGS="$CFLAGS"
13316 # Compile unoptimized.
13317 CFLAGS="$CFLAGS -O0 -S"
13318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13319 (eval $ac_compile) 2>&5
13320 ac_status=$?
13321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13322 test $ac_status = 0; }; then
13323 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13324 eval libat_cv_have_at_cas_2=no
13325 else
13326 eval libat_cv_have_at_cas_2=yes
13328 else
13329 eval libat_cv_have_at_cas_2=no
13331 CFLAGS="$old_CFLAGS"
13333 rm -f conftest*
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5
13337 $as_echo "$libat_cv_have_at_cas_2" >&6; }
13340 yesno=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '`
13342 cat >>confdefs.h <<_ACEOF
13343 #define HAVE_ATOMIC_CAS_2 $yesno
13344 _ACEOF
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5
13352 $as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; }
13353 if test "${libat_cv_have_at_cas_4+set}" = set; then :
13354 $as_echo_n "(cached) " >&6
13355 else
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13361 main ()
13363 typedef int T __attribute__((mode(SI))); T *x, *y;
13364 asm("" : "=g"(x), "=g"(y));
13365 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13367 return 0;
13369 _ACEOF
13370 if test x$atomic_builtins_link_tests = xyes; then
13371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13372 (eval $ac_link) 2>&5
13373 ac_status=$?
13374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13375 test $ac_status = 0; }; then
13376 eval libat_cv_have_at_cas_4=yes
13377 else
13378 eval libat_cv_have_at_cas_4=no
13380 else
13381 old_CFLAGS="$CFLAGS"
13382 # Compile unoptimized.
13383 CFLAGS="$CFLAGS -O0 -S"
13384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13385 (eval $ac_compile) 2>&5
13386 ac_status=$?
13387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13388 test $ac_status = 0; }; then
13389 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13390 eval libat_cv_have_at_cas_4=no
13391 else
13392 eval libat_cv_have_at_cas_4=yes
13394 else
13395 eval libat_cv_have_at_cas_4=no
13397 CFLAGS="$old_CFLAGS"
13399 rm -f conftest*
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5
13403 $as_echo "$libat_cv_have_at_cas_4" >&6; }
13406 yesno=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '`
13408 cat >>confdefs.h <<_ACEOF
13409 #define HAVE_ATOMIC_CAS_4 $yesno
13410 _ACEOF
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5
13418 $as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; }
13419 if test "${libat_cv_have_at_cas_8+set}" = set; then :
13420 $as_echo_n "(cached) " >&6
13421 else
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13427 main ()
13429 typedef int T __attribute__((mode(DI))); T *x, *y;
13430 asm("" : "=g"(x), "=g"(y));
13431 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13433 return 0;
13435 _ACEOF
13436 if test x$atomic_builtins_link_tests = xyes; then
13437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13438 (eval $ac_link) 2>&5
13439 ac_status=$?
13440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13441 test $ac_status = 0; }; then
13442 eval libat_cv_have_at_cas_8=yes
13443 else
13444 eval libat_cv_have_at_cas_8=no
13446 else
13447 old_CFLAGS="$CFLAGS"
13448 # Compile unoptimized.
13449 CFLAGS="$CFLAGS -O0 -S"
13450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13451 (eval $ac_compile) 2>&5
13452 ac_status=$?
13453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13454 test $ac_status = 0; }; then
13455 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13456 eval libat_cv_have_at_cas_8=no
13457 else
13458 eval libat_cv_have_at_cas_8=yes
13460 else
13461 eval libat_cv_have_at_cas_8=no
13463 CFLAGS="$old_CFLAGS"
13465 rm -f conftest*
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5
13469 $as_echo "$libat_cv_have_at_cas_8" >&6; }
13472 yesno=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '`
13474 cat >>confdefs.h <<_ACEOF
13475 #define HAVE_ATOMIC_CAS_8 $yesno
13476 _ACEOF
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5
13484 $as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; }
13485 if test "${libat_cv_have_at_cas_16+set}" = set; then :
13486 $as_echo_n "(cached) " >&6
13487 else
13489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490 /* end confdefs.h. */
13493 main ()
13495 typedef int T __attribute__((mode(TI))); T *x, *y;
13496 asm("" : "=g"(x), "=g"(y));
13497 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13499 return 0;
13501 _ACEOF
13502 if test x$atomic_builtins_link_tests = xyes; then
13503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13504 (eval $ac_link) 2>&5
13505 ac_status=$?
13506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13507 test $ac_status = 0; }; then
13508 eval libat_cv_have_at_cas_16=yes
13509 else
13510 eval libat_cv_have_at_cas_16=no
13512 else
13513 old_CFLAGS="$CFLAGS"
13514 # Compile unoptimized.
13515 CFLAGS="$CFLAGS -O0 -S"
13516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13517 (eval $ac_compile) 2>&5
13518 ac_status=$?
13519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13520 test $ac_status = 0; }; then
13521 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13522 eval libat_cv_have_at_cas_16=no
13523 else
13524 eval libat_cv_have_at_cas_16=yes
13526 else
13527 eval libat_cv_have_at_cas_16=no
13529 CFLAGS="$old_CFLAGS"
13531 rm -f conftest*
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5
13535 $as_echo "$libat_cv_have_at_cas_16" >&6; }
13538 yesno=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '`
13540 cat >>confdefs.h <<_ACEOF
13541 #define HAVE_ATOMIC_CAS_16 $yesno
13542 _ACEOF
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5
13551 $as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; }
13552 if test "${libat_cv_have_at_fadd_1+set}" = set; then :
13553 $as_echo_n "(cached) " >&6
13554 else
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13560 main ()
13562 typedef int T __attribute__((mode(QI))); T *x, y;
13563 asm("" : "=g"(x), "=g"(y));
13564 __atomic_fetch_add (x, y, 0);
13565 __atomic_add_fetch (x, y, 0);
13567 return 0;
13569 _ACEOF
13570 if test x$atomic_builtins_link_tests = xyes; then
13571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13572 (eval $ac_link) 2>&5
13573 ac_status=$?
13574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13575 test $ac_status = 0; }; then
13576 eval libat_cv_have_at_fadd_1=yes
13577 else
13578 eval libat_cv_have_at_fadd_1=no
13580 else
13581 old_CFLAGS="$CFLAGS"
13582 # Compile unoptimized.
13583 CFLAGS="$CFLAGS -O0 -S"
13584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13585 (eval $ac_compile) 2>&5
13586 ac_status=$?
13587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13588 test $ac_status = 0; }; then
13589 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13590 eval libat_cv_have_at_fadd_1=no
13591 else
13592 eval libat_cv_have_at_fadd_1=yes
13594 else
13595 eval libat_cv_have_at_fadd_1=no
13597 CFLAGS="$old_CFLAGS"
13599 rm -f conftest*
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5
13603 $as_echo "$libat_cv_have_at_fadd_1" >&6; }
13606 yesno=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '`
13608 cat >>confdefs.h <<_ACEOF
13609 #define HAVE_ATOMIC_FETCH_ADD_1 $yesno
13610 _ACEOF
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5
13618 $as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; }
13619 if test "${libat_cv_have_at_fadd_2+set}" = set; then :
13620 $as_echo_n "(cached) " >&6
13621 else
13623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624 /* end confdefs.h. */
13627 main ()
13629 typedef int T __attribute__((mode(HI))); T *x, y;
13630 asm("" : "=g"(x), "=g"(y));
13631 __atomic_fetch_add (x, y, 0);
13632 __atomic_add_fetch (x, y, 0);
13634 return 0;
13636 _ACEOF
13637 if test x$atomic_builtins_link_tests = xyes; then
13638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13639 (eval $ac_link) 2>&5
13640 ac_status=$?
13641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13642 test $ac_status = 0; }; then
13643 eval libat_cv_have_at_fadd_2=yes
13644 else
13645 eval libat_cv_have_at_fadd_2=no
13647 else
13648 old_CFLAGS="$CFLAGS"
13649 # Compile unoptimized.
13650 CFLAGS="$CFLAGS -O0 -S"
13651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13652 (eval $ac_compile) 2>&5
13653 ac_status=$?
13654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13655 test $ac_status = 0; }; then
13656 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13657 eval libat_cv_have_at_fadd_2=no
13658 else
13659 eval libat_cv_have_at_fadd_2=yes
13661 else
13662 eval libat_cv_have_at_fadd_2=no
13664 CFLAGS="$old_CFLAGS"
13666 rm -f conftest*
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5
13670 $as_echo "$libat_cv_have_at_fadd_2" >&6; }
13673 yesno=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '`
13675 cat >>confdefs.h <<_ACEOF
13676 #define HAVE_ATOMIC_FETCH_ADD_2 $yesno
13677 _ACEOF
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5
13685 $as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; }
13686 if test "${libat_cv_have_at_fadd_4+set}" = set; then :
13687 $as_echo_n "(cached) " >&6
13688 else
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13694 main ()
13696 typedef int T __attribute__((mode(SI))); T *x, y;
13697 asm("" : "=g"(x), "=g"(y));
13698 __atomic_fetch_add (x, y, 0);
13699 __atomic_add_fetch (x, y, 0);
13701 return 0;
13703 _ACEOF
13704 if test x$atomic_builtins_link_tests = xyes; then
13705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13706 (eval $ac_link) 2>&5
13707 ac_status=$?
13708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13709 test $ac_status = 0; }; then
13710 eval libat_cv_have_at_fadd_4=yes
13711 else
13712 eval libat_cv_have_at_fadd_4=no
13714 else
13715 old_CFLAGS="$CFLAGS"
13716 # Compile unoptimized.
13717 CFLAGS="$CFLAGS -O0 -S"
13718 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13719 (eval $ac_compile) 2>&5
13720 ac_status=$?
13721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13722 test $ac_status = 0; }; then
13723 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13724 eval libat_cv_have_at_fadd_4=no
13725 else
13726 eval libat_cv_have_at_fadd_4=yes
13728 else
13729 eval libat_cv_have_at_fadd_4=no
13731 CFLAGS="$old_CFLAGS"
13733 rm -f conftest*
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5
13737 $as_echo "$libat_cv_have_at_fadd_4" >&6; }
13740 yesno=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '`
13742 cat >>confdefs.h <<_ACEOF
13743 #define HAVE_ATOMIC_FETCH_ADD_4 $yesno
13744 _ACEOF
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5
13752 $as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; }
13753 if test "${libat_cv_have_at_fadd_8+set}" = set; then :
13754 $as_echo_n "(cached) " >&6
13755 else
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13761 main ()
13763 typedef int T __attribute__((mode(DI))); T *x, y;
13764 asm("" : "=g"(x), "=g"(y));
13765 __atomic_fetch_add (x, y, 0);
13766 __atomic_add_fetch (x, y, 0);
13768 return 0;
13770 _ACEOF
13771 if test x$atomic_builtins_link_tests = xyes; then
13772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13773 (eval $ac_link) 2>&5
13774 ac_status=$?
13775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13776 test $ac_status = 0; }; then
13777 eval libat_cv_have_at_fadd_8=yes
13778 else
13779 eval libat_cv_have_at_fadd_8=no
13781 else
13782 old_CFLAGS="$CFLAGS"
13783 # Compile unoptimized.
13784 CFLAGS="$CFLAGS -O0 -S"
13785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13786 (eval $ac_compile) 2>&5
13787 ac_status=$?
13788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13789 test $ac_status = 0; }; then
13790 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13791 eval libat_cv_have_at_fadd_8=no
13792 else
13793 eval libat_cv_have_at_fadd_8=yes
13795 else
13796 eval libat_cv_have_at_fadd_8=no
13798 CFLAGS="$old_CFLAGS"
13800 rm -f conftest*
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5
13804 $as_echo "$libat_cv_have_at_fadd_8" >&6; }
13807 yesno=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '`
13809 cat >>confdefs.h <<_ACEOF
13810 #define HAVE_ATOMIC_FETCH_ADD_8 $yesno
13811 _ACEOF
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5
13819 $as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; }
13820 if test "${libat_cv_have_at_fadd_16+set}" = set; then :
13821 $as_echo_n "(cached) " >&6
13822 else
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13828 main ()
13830 typedef int T __attribute__((mode(TI))); T *x, y;
13831 asm("" : "=g"(x), "=g"(y));
13832 __atomic_fetch_add (x, y, 0);
13833 __atomic_add_fetch (x, y, 0);
13835 return 0;
13837 _ACEOF
13838 if test x$atomic_builtins_link_tests = xyes; then
13839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13840 (eval $ac_link) 2>&5
13841 ac_status=$?
13842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13843 test $ac_status = 0; }; then
13844 eval libat_cv_have_at_fadd_16=yes
13845 else
13846 eval libat_cv_have_at_fadd_16=no
13848 else
13849 old_CFLAGS="$CFLAGS"
13850 # Compile unoptimized.
13851 CFLAGS="$CFLAGS -O0 -S"
13852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13853 (eval $ac_compile) 2>&5
13854 ac_status=$?
13855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13856 test $ac_status = 0; }; then
13857 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13858 eval libat_cv_have_at_fadd_16=no
13859 else
13860 eval libat_cv_have_at_fadd_16=yes
13862 else
13863 eval libat_cv_have_at_fadd_16=no
13865 CFLAGS="$old_CFLAGS"
13867 rm -f conftest*
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5
13871 $as_echo "$libat_cv_have_at_fadd_16" >&6; }
13874 yesno=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '`
13876 cat >>confdefs.h <<_ACEOF
13877 #define HAVE_ATOMIC_FETCH_ADD_16 $yesno
13878 _ACEOF
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5
13887 $as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; }
13888 if test "${libat_cv_have_at_fop_1+set}" = set; then :
13889 $as_echo_n "(cached) " >&6
13890 else
13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893 /* end confdefs.h. */
13896 main ()
13898 typedef int T __attribute__((mode(QI))); T *x, y;
13899 asm("" : "=g"(x), "=g"(y));
13900 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
13901 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
13902 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
13903 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
13904 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
13905 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
13907 return 0;
13909 _ACEOF
13910 if test x$atomic_builtins_link_tests = xyes; then
13911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13912 (eval $ac_link) 2>&5
13913 ac_status=$?
13914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13915 test $ac_status = 0; }; then
13916 eval libat_cv_have_at_fop_1=yes
13917 else
13918 eval libat_cv_have_at_fop_1=no
13920 else
13921 old_CFLAGS="$CFLAGS"
13922 # Compile unoptimized.
13923 CFLAGS="$CFLAGS -O0 -S"
13924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13925 (eval $ac_compile) 2>&5
13926 ac_status=$?
13927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13928 test $ac_status = 0; }; then
13929 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13930 eval libat_cv_have_at_fop_1=no
13931 else
13932 eval libat_cv_have_at_fop_1=yes
13934 else
13935 eval libat_cv_have_at_fop_1=no
13937 CFLAGS="$old_CFLAGS"
13939 rm -f conftest*
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5
13943 $as_echo "$libat_cv_have_at_fop_1" >&6; }
13946 yesno=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '`
13948 cat >>confdefs.h <<_ACEOF
13949 #define HAVE_ATOMIC_FETCH_OP_1 $yesno
13950 _ACEOF
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5
13958 $as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; }
13959 if test "${libat_cv_have_at_fop_2+set}" = set; then :
13960 $as_echo_n "(cached) " >&6
13961 else
13963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13964 /* end confdefs.h. */
13967 main ()
13969 typedef int T __attribute__((mode(HI))); T *x, y;
13970 asm("" : "=g"(x), "=g"(y));
13971 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
13972 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
13973 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
13974 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
13975 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
13976 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
13978 return 0;
13980 _ACEOF
13981 if test x$atomic_builtins_link_tests = xyes; then
13982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13983 (eval $ac_link) 2>&5
13984 ac_status=$?
13985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13986 test $ac_status = 0; }; then
13987 eval libat_cv_have_at_fop_2=yes
13988 else
13989 eval libat_cv_have_at_fop_2=no
13991 else
13992 old_CFLAGS="$CFLAGS"
13993 # Compile unoptimized.
13994 CFLAGS="$CFLAGS -O0 -S"
13995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13996 (eval $ac_compile) 2>&5
13997 ac_status=$?
13998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13999 test $ac_status = 0; }; then
14000 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14001 eval libat_cv_have_at_fop_2=no
14002 else
14003 eval libat_cv_have_at_fop_2=yes
14005 else
14006 eval libat_cv_have_at_fop_2=no
14008 CFLAGS="$old_CFLAGS"
14010 rm -f conftest*
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5
14014 $as_echo "$libat_cv_have_at_fop_2" >&6; }
14017 yesno=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '`
14019 cat >>confdefs.h <<_ACEOF
14020 #define HAVE_ATOMIC_FETCH_OP_2 $yesno
14021 _ACEOF
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5
14029 $as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; }
14030 if test "${libat_cv_have_at_fop_4+set}" = set; then :
14031 $as_echo_n "(cached) " >&6
14032 else
14034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h. */
14038 main ()
14040 typedef int T __attribute__((mode(SI))); T *x, y;
14041 asm("" : "=g"(x), "=g"(y));
14042 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14043 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14044 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14045 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14046 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14047 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14049 return 0;
14051 _ACEOF
14052 if test x$atomic_builtins_link_tests = xyes; then
14053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14054 (eval $ac_link) 2>&5
14055 ac_status=$?
14056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14057 test $ac_status = 0; }; then
14058 eval libat_cv_have_at_fop_4=yes
14059 else
14060 eval libat_cv_have_at_fop_4=no
14062 else
14063 old_CFLAGS="$CFLAGS"
14064 # Compile unoptimized.
14065 CFLAGS="$CFLAGS -O0 -S"
14066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14067 (eval $ac_compile) 2>&5
14068 ac_status=$?
14069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14070 test $ac_status = 0; }; then
14071 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14072 eval libat_cv_have_at_fop_4=no
14073 else
14074 eval libat_cv_have_at_fop_4=yes
14076 else
14077 eval libat_cv_have_at_fop_4=no
14079 CFLAGS="$old_CFLAGS"
14081 rm -f conftest*
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5
14085 $as_echo "$libat_cv_have_at_fop_4" >&6; }
14088 yesno=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '`
14090 cat >>confdefs.h <<_ACEOF
14091 #define HAVE_ATOMIC_FETCH_OP_4 $yesno
14092 _ACEOF
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5
14100 $as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; }
14101 if test "${libat_cv_have_at_fop_8+set}" = set; then :
14102 $as_echo_n "(cached) " >&6
14103 else
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14109 main ()
14111 typedef int T __attribute__((mode(DI))); T *x, y;
14112 asm("" : "=g"(x), "=g"(y));
14113 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14114 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14115 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14116 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14117 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14118 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14120 return 0;
14122 _ACEOF
14123 if test x$atomic_builtins_link_tests = xyes; then
14124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14125 (eval $ac_link) 2>&5
14126 ac_status=$?
14127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14128 test $ac_status = 0; }; then
14129 eval libat_cv_have_at_fop_8=yes
14130 else
14131 eval libat_cv_have_at_fop_8=no
14133 else
14134 old_CFLAGS="$CFLAGS"
14135 # Compile unoptimized.
14136 CFLAGS="$CFLAGS -O0 -S"
14137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14138 (eval $ac_compile) 2>&5
14139 ac_status=$?
14140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14141 test $ac_status = 0; }; then
14142 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14143 eval libat_cv_have_at_fop_8=no
14144 else
14145 eval libat_cv_have_at_fop_8=yes
14147 else
14148 eval libat_cv_have_at_fop_8=no
14150 CFLAGS="$old_CFLAGS"
14152 rm -f conftest*
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5
14156 $as_echo "$libat_cv_have_at_fop_8" >&6; }
14159 yesno=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '`
14161 cat >>confdefs.h <<_ACEOF
14162 #define HAVE_ATOMIC_FETCH_OP_8 $yesno
14163 _ACEOF
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5
14171 $as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; }
14172 if test "${libat_cv_have_at_fop_16+set}" = set; then :
14173 $as_echo_n "(cached) " >&6
14174 else
14176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h. */
14180 main ()
14182 typedef int T __attribute__((mode(TI))); T *x, y;
14183 asm("" : "=g"(x), "=g"(y));
14184 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14185 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14186 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14187 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14188 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14189 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14191 return 0;
14193 _ACEOF
14194 if test x$atomic_builtins_link_tests = xyes; then
14195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14196 (eval $ac_link) 2>&5
14197 ac_status=$?
14198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14199 test $ac_status = 0; }; then
14200 eval libat_cv_have_at_fop_16=yes
14201 else
14202 eval libat_cv_have_at_fop_16=no
14204 else
14205 old_CFLAGS="$CFLAGS"
14206 # Compile unoptimized.
14207 CFLAGS="$CFLAGS -O0 -S"
14208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14209 (eval $ac_compile) 2>&5
14210 ac_status=$?
14211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14212 test $ac_status = 0; }; then
14213 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14214 eval libat_cv_have_at_fop_16=no
14215 else
14216 eval libat_cv_have_at_fop_16=yes
14218 else
14219 eval libat_cv_have_at_fop_16=no
14221 CFLAGS="$old_CFLAGS"
14223 rm -f conftest*
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5
14227 $as_echo "$libat_cv_have_at_fop_16" >&6; }
14230 yesno=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '`
14232 cat >>confdefs.h <<_ACEOF
14233 #define HAVE_ATOMIC_FETCH_OP_16 $yesno
14234 _ACEOF
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14242 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14243 if test "${ac_cv_c_bigendian+set}" = set; then :
14244 $as_echo_n "(cached) " >&6
14245 else
14246 ac_cv_c_bigendian=unknown
14247 # See if we're dealing with a universal compiler.
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250 #ifndef __APPLE_CC__
14251 not a universal capable compiler
14252 #endif
14253 typedef int dummy;
14255 _ACEOF
14256 if ac_fn_c_try_compile "$LINENO"; then :
14258 # Check for potential -arch flags. It is not universal unless
14259 # there are at least two -arch flags with different values.
14260 ac_arch=
14261 ac_prev=
14262 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14263 if test -n "$ac_prev"; then
14264 case $ac_word in
14265 i?86 | x86_64 | ppc | ppc64)
14266 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14267 ac_arch=$ac_word
14268 else
14269 ac_cv_c_bigendian=universal
14270 break
14273 esac
14274 ac_prev=
14275 elif test "x$ac_word" = "x-arch"; then
14276 ac_prev=arch
14278 done
14280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14281 if test $ac_cv_c_bigendian = unknown; then
14282 # See if sys/param.h defines the BYTE_ORDER macro.
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14285 #include <sys/types.h>
14286 #include <sys/param.h>
14289 main ()
14291 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14292 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14293 && LITTLE_ENDIAN)
14294 bogus endian macros
14295 #endif
14298 return 0;
14300 _ACEOF
14301 if ac_fn_c_try_compile "$LINENO"; then :
14302 # It does; now see whether it defined to BIG_ENDIAN or not.
14303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14304 /* end confdefs.h. */
14305 #include <sys/types.h>
14306 #include <sys/param.h>
14309 main ()
14311 #if BYTE_ORDER != BIG_ENDIAN
14312 not big endian
14313 #endif
14316 return 0;
14318 _ACEOF
14319 if ac_fn_c_try_compile "$LINENO"; then :
14320 ac_cv_c_bigendian=yes
14321 else
14322 ac_cv_c_bigendian=no
14324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14328 if test $ac_cv_c_bigendian = unknown; then
14329 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14332 #include <limits.h>
14335 main ()
14337 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14338 bogus endian macros
14339 #endif
14342 return 0;
14344 _ACEOF
14345 if ac_fn_c_try_compile "$LINENO"; then :
14346 # It does; now see whether it defined to _BIG_ENDIAN or not.
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14349 #include <limits.h>
14352 main ()
14354 #ifndef _BIG_ENDIAN
14355 not big endian
14356 #endif
14359 return 0;
14361 _ACEOF
14362 if ac_fn_c_try_compile "$LINENO"; then :
14363 ac_cv_c_bigendian=yes
14364 else
14365 ac_cv_c_bigendian=no
14367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14371 if test $ac_cv_c_bigendian = unknown; then
14372 # Compile a test program.
14373 if test "$cross_compiling" = yes; then :
14374 # Try to guess by grepping values from an object file.
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377 short int ascii_mm[] =
14378 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14379 short int ascii_ii[] =
14380 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14381 int use_ascii (int i) {
14382 return ascii_mm[i] + ascii_ii[i];
14384 short int ebcdic_ii[] =
14385 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14386 short int ebcdic_mm[] =
14387 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14388 int use_ebcdic (int i) {
14389 return ebcdic_mm[i] + ebcdic_ii[i];
14391 extern int foo;
14394 main ()
14396 return use_ascii (foo) == use_ebcdic (foo);
14398 return 0;
14400 _ACEOF
14401 if ac_fn_c_try_compile "$LINENO"; then :
14402 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14403 ac_cv_c_bigendian=yes
14405 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14406 if test "$ac_cv_c_bigendian" = unknown; then
14407 ac_cv_c_bigendian=no
14408 else
14409 # finding both strings is unlikely to happen, but who knows?
14410 ac_cv_c_bigendian=unknown
14414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14415 else
14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14418 $ac_includes_default
14420 main ()
14423 /* Are we little or big endian? From Harbison&Steele. */
14424 union
14426 long int l;
14427 char c[sizeof (long int)];
14428 } u;
14429 u.l = 1;
14430 return u.c[sizeof (long int) - 1] == 1;
14433 return 0;
14435 _ACEOF
14436 if ac_fn_c_try_run "$LINENO"; then :
14437 ac_cv_c_bigendian=no
14438 else
14439 ac_cv_c_bigendian=yes
14441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14442 conftest.$ac_objext conftest.beam conftest.$ac_ext
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14448 $as_echo "$ac_cv_c_bigendian" >&6; }
14449 case $ac_cv_c_bigendian in #(
14450 yes)
14451 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14452 ;; #(
14454 ;; #(
14455 universal)
14457 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14459 ;; #(
14461 as_fn_error "unknown endianness
14462 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14463 esac
14465 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5
14470 $as_echo_n "checking for the word size... " >&6; }
14471 if test "${libat_cv_wordsize+set}" = set; then :
14472 $as_echo_n "(cached) " >&6
14473 else
14474 if ac_fn_c_compute_int "$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then :
14476 else
14477 as_fn_error "Could not determine word size." "$LINENO" 5
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5
14482 $as_echo "$libat_cv_wordsize" >&6; }
14484 cat >>confdefs.h <<_ACEOF
14485 #define WORDSIZE $libat_cv_wordsize
14486 _ACEOF
14490 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14491 # In case the pthread.h system header is not found, this test will fail.
14492 case " $config_path " in
14493 *" posix "*)
14494 XPCFLAGS=""
14495 CFLAGS="$CFLAGS -pthread"
14496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497 /* end confdefs.h. */
14498 #include <pthread.h>
14499 void *g(void *d) { return NULL; }
14501 main ()
14503 pthread_t t; pthread_create(&t,NULL,g,NULL);
14505 return 0;
14507 _ACEOF
14508 if ac_fn_c_try_link "$LINENO"; then :
14509 XPCFLAGS=" -pthread"
14510 else
14511 CFLAGS="$save_CFLAGS $XCFLAGS" LIBS="-lpthread $LIBS"
14512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513 /* end confdefs.h. */
14514 #include <pthread.h>
14515 void *g(void *d) { return NULL; }
14517 main ()
14519 pthread_t t; pthread_create(&t,NULL,g,NULL);
14521 return 0;
14523 _ACEOF
14524 if ac_fn_c_try_link "$LINENO"; then :
14526 else
14527 as_fn_error "Pthreads are required to build libatomic" "$LINENO" 5
14529 rm -f core conftest.err conftest.$ac_objext \
14530 conftest$ac_exeext conftest.$ac_ext
14532 rm -f core conftest.err conftest.$ac_objext \
14533 conftest$ac_exeext conftest.$ac_ext
14534 CFLAGS="$save_CFLAGS $XPCFLAGS"
14536 esac
14538 # See what sort of export controls are available.
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
14541 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
14542 if test "${libat_cv_have_attribute_visibility+set}" = set; then :
14543 $as_echo_n "(cached) " >&6
14544 else
14546 save_CFLAGS="$CFLAGS"
14547 CFLAGS="$CFLAGS -Werror"
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14550 void __attribute__((visibility("hidden"))) foo(void) { }
14552 main ()
14556 return 0;
14558 _ACEOF
14559 if ac_fn_c_try_compile "$LINENO"; then :
14560 libat_cv_have_attribute_visibility=yes
14561 else
14562 libat_cv_have_attribute_visibility=no
14564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14565 CFLAGS="$save_CFLAGS"
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5
14568 $as_echo "$libat_cv_have_attribute_visibility" >&6; }
14569 if test $libat_cv_have_attribute_visibility = yes; then
14571 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
14576 $as_echo_n "checking whether the target supports dllexport... " >&6; }
14577 if test "${libat_cv_have_attribute_dllexport+set}" = set; then :
14578 $as_echo_n "(cached) " >&6
14579 else
14581 save_CFLAGS="$CFLAGS"
14582 CFLAGS="$CFLAGS -Werror"
14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14585 void __attribute__((dllexport)) foo(void) { }
14587 main ()
14591 return 0;
14593 _ACEOF
14594 if ac_fn_c_try_compile "$LINENO"; then :
14595 libat_cv_have_attribute_dllexport=yes
14596 else
14597 libat_cv_have_attribute_dllexport=no
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 CFLAGS="$save_CFLAGS"
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5
14603 $as_echo "$libat_cv_have_attribute_dllexport" >&6; }
14604 if test $libat_cv_have_attribute_dllexport = yes; then
14606 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
14611 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
14612 if test "${libat_cv_have_attribute_alias+set}" = set; then :
14613 $as_echo_n "(cached) " >&6
14614 else
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14619 void foo(void) { }
14620 extern void bar(void) __attribute__((alias("foo")));
14622 main ()
14624 bar();
14626 return 0;
14628 _ACEOF
14629 if ac_fn_c_try_link "$LINENO"; then :
14630 libat_cv_have_attribute_alias=yes
14631 else
14632 libat_cv_have_attribute_alias=no
14634 rm -f core conftest.err conftest.$ac_objext \
14635 conftest$ac_exeext conftest.$ac_ext
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5
14638 $as_echo "$libat_cv_have_attribute_alias" >&6; }
14639 if test $libat_cv_have_attribute_alias = yes; then
14641 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
14644 if test x$try_ifunc = xyes; then
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5
14647 $as_echo_n "checking whether the target supports the ifunc attribute... " >&6; }
14648 if test "${libat_cv_have_ifunc+set}" = set; then :
14649 $as_echo_n "(cached) " >&6
14650 else
14652 save_CFLAGS="$CFLAGS"
14653 CFLAGS="$CFLAGS -Werror"
14654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14655 /* end confdefs.h. */
14657 int foo_alt(void) { return 0; }
14658 void *foo_sel(void) { return foo_alt; }
14659 int foo(void) __attribute__((ifunc("foo_sel")));
14661 main ()
14663 return foo();
14665 return 0;
14667 _ACEOF
14668 if ac_fn_c_try_link "$LINENO"; then :
14669 libat_cv_have_ifunc=yes
14670 else
14671 libat_cv_have_ifunc=no
14673 rm -f core conftest.err conftest.$ac_objext \
14674 conftest$ac_exeext conftest.$ac_ext
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5
14677 $as_echo "$libat_cv_have_ifunc" >&6; }
14679 yesno=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '`
14681 cat >>confdefs.h <<_ACEOF
14682 #define HAVE_IFUNC $yesno
14683 _ACEOF
14689 # Check linker support.
14692 # Check whether --with-gnu-ld was given.
14693 if test "${with_gnu_ld+set}" = set; then :
14694 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14695 else
14696 with_gnu_ld=no
14699 ac_prog=ld
14700 if test "$GCC" = yes; then
14701 # Check if gcc -print-prog-name=ld gives a path.
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14703 $as_echo_n "checking for ld used by $CC... " >&6; }
14704 case $host in
14705 *-*-mingw*)
14706 # gcc leaves a trailing carriage return which upsets mingw
14707 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14709 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14710 esac
14711 case $ac_prog in
14712 # Accept absolute paths.
14713 [\\/]* | ?:[\\/]*)
14714 re_direlt='/[^/][^/]*/\.\./'
14715 # Canonicalize the pathname of ld
14716 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14717 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14718 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14719 done
14720 test -z "$LD" && LD="$ac_prog"
14723 # If it fails, then pretend we aren't using GCC.
14724 ac_prog=ld
14727 # If it is relative, then search for the first ld in PATH.
14728 with_gnu_ld=unknown
14730 esac
14731 elif test "$with_gnu_ld" = yes; then
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14733 $as_echo_n "checking for GNU ld... " >&6; }
14734 else
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14736 $as_echo_n "checking for non-GNU ld... " >&6; }
14738 if test "${lt_cv_path_LD+set}" = set; then :
14739 $as_echo_n "(cached) " >&6
14740 else
14741 if test -z "$LD"; then
14742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14743 for ac_dir in $PATH; do
14744 IFS="$lt_save_ifs"
14745 test -z "$ac_dir" && ac_dir=.
14746 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14747 lt_cv_path_LD="$ac_dir/$ac_prog"
14748 # Check to see if the program is GNU ld. I'd rather use --version,
14749 # but apparently some variants of GNU ld only accept -v.
14750 # Break only if it was the GNU/non-GNU ld that we prefer.
14751 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14752 *GNU* | *'with BFD'*)
14753 test "$with_gnu_ld" != no && break
14756 test "$with_gnu_ld" != yes && break
14758 esac
14760 done
14761 IFS="$lt_save_ifs"
14762 else
14763 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14767 LD="$lt_cv_path_LD"
14768 if test -n "$LD"; then
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14770 $as_echo "$LD" >&6; }
14771 else
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14773 $as_echo "no" >&6; }
14775 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14777 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14778 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14779 $as_echo_n "(cached) " >&6
14780 else
14781 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14782 case `$LD -v 2>&1 </dev/null` in
14783 *GNU* | *'with BFD'*)
14784 lt_cv_prog_gnu_ld=yes
14787 lt_cv_prog_gnu_ld=no
14789 esac
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14792 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14793 with_gnu_ld=$lt_cv_prog_gnu_ld
14801 # If we're not using GNU ld, then there's no point in even trying these
14802 # tests. Check for that first. We should have already tested for gld
14803 # by now (in libtool), but require it now just to be safe...
14804 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
14805 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
14809 # The name set by libtool depends on the version of libtool. Shame on us
14810 # for depending on an impl detail, but c'est la vie. Older versions used
14811 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
14812 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
14813 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
14814 # set (hence we're using an older libtool), then set it.
14815 if test x${with_gnu_ld+set} != xset; then
14816 if test x${ac_cv_prog_gnu_ld+set} != xset; then
14817 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
14818 with_gnu_ld=no
14819 else
14820 with_gnu_ld=$ac_cv_prog_gnu_ld
14824 # Start by getting the version number. I think the libtool test already
14825 # does some of this, but throws away the result.
14826 libat_ld_is_gold=no
14827 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
14828 libat_ld_is_gold=yes
14831 ldver=`$LD --version 2>/dev/null |
14832 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'`
14834 libat_gnu_ld_version=`echo $ldver | \
14835 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
14837 # Set --gc-sections.
14838 if test "$with_gnu_ld" = "notbroken"; then
14839 # GNU ld it is! Joy and bunny rabbits!
14841 # All these tests are for C++; save the language and the compiler flags.
14842 # Need to do this so that g++ won't try to link in libstdc++
14843 ac_test_CFLAGS="${CFLAGS+set}"
14844 ac_save_CFLAGS="$CFLAGS"
14845 CFLAGS='-x c++ -Wl,--gc-sections'
14847 # Check for -Wl,--gc-sections
14848 # XXX This test is broken at the moment, as symbols required for linking
14849 # are now in libsupc++ (not built yet). In addition, this test has
14850 # cored on solaris in the past. In addition, --gc-sections doesn't
14851 # really work at the moment (keeps on discarding used sections, first
14852 # .eh_frame and now some of the glibc sections for iconv).
14853 # Bzzzzt. Thanks for playing, maybe next time.
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
14855 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
14856 if test "$cross_compiling" = yes; then :
14857 ac_sectionLDflags=yes
14858 else
14859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860 /* end confdefs.h. */
14862 int main(void)
14864 try { throw 1; }
14865 catch (...) { };
14866 return 0;
14869 _ACEOF
14870 if ac_fn_c_try_run "$LINENO"; then :
14871 ac_sectionLDflags=yes
14872 else
14873 ac_sectionLDflags=no
14875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14876 conftest.$ac_objext conftest.beam conftest.$ac_ext
14879 if test "$ac_test_CFLAGS" = set; then
14880 CFLAGS="$ac_save_CFLAGS"
14881 else
14882 # this is the suspicious part
14883 CFLAGS=''
14885 if test "$ac_sectionLDflags" = "yes"; then
14886 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
14889 $as_echo "$ac_sectionLDflags" >&6; }
14892 # Set linker optimization flags.
14893 if test x"$with_gnu_ld" = x"yes"; then
14894 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
14902 # Check whether --enable-symvers was given.
14903 if test "${enable_symvers+set}" = set; then :
14904 enableval=$enable_symvers;
14905 case "$enableval" in
14906 yes|no|gnu*|sun) ;;
14907 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
14908 esac
14910 else
14911 enable_symvers=yes
14916 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
14917 # don't know enough about $LD to do tricks...
14920 # Turn a 'yes' into a suitable default.
14921 if test x$enable_symvers = xyes ; then
14922 # FIXME The following test is too strict, in theory.
14923 if test $enable_shared = no || test "x$LD" = x; then
14924 enable_symvers=no
14925 else
14926 if test $with_gnu_ld = yes ; then
14927 enable_symvers=gnu
14928 else
14929 case ${target_os} in
14930 # Sun symbol versioning exists since Solaris 2.5.
14931 solaris2.[5-9]* | solaris2.1[0-9]*)
14932 enable_symvers=sun ;;
14934 enable_symvers=no ;;
14935 esac
14940 # Check if 'sun' was requested on non-Solaris 2 platforms.
14941 if test x$enable_symvers = xsun ; then
14942 case ${target_os} in
14943 solaris2*)
14944 # All fine.
14947 # Unlikely to work.
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
14949 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
14951 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
14953 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
14954 enable_symvers=no
14956 esac
14959 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
14960 if test $enable_symvers != no; then
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
14962 $as_echo_n "checking for shared libgcc... " >&6; }
14963 ac_save_CFLAGS="$CFLAGS"
14964 CFLAGS=' -lgcc_s'
14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14969 main ()
14971 return 0;
14973 return 0;
14975 _ACEOF
14976 if ac_fn_c_try_link "$LINENO"; then :
14977 libat_shared_libgcc=yes
14978 else
14979 libat_shared_libgcc=no
14981 rm -f core conftest.err conftest.$ac_objext \
14982 conftest$ac_exeext conftest.$ac_ext
14983 CFLAGS="$ac_save_CFLAGS"
14984 if test $libat_shared_libgcc = no; then
14985 cat > conftest.c <<EOF
14986 int main (void) { return 0; }
14988 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
14989 -shared -shared-libgcc -o conftest.so \
14990 conftest.c -v 2>&1 >/dev/null \
14991 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
14992 rm -f conftest.c conftest.so
14993 if test x${libat_libgcc_s_suffix+set} = xset; then
14994 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
14995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14996 /* end confdefs.h. */
14999 main ()
15001 return 0;
15003 return 0;
15005 _ACEOF
15006 if ac_fn_c_try_link "$LINENO"; then :
15007 libat_shared_libgcc=yes
15009 rm -f core conftest.err conftest.$ac_objext \
15010 conftest$ac_exeext conftest.$ac_ext
15011 CFLAGS="$ac_save_CFLAGS"
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
15015 $as_echo "$libat_shared_libgcc" >&6; }
15018 # For GNU ld, we need at least this version. The format is described in
15019 # LIBAT_CHECK_LINKER_FEATURES above.
15020 libat_min_gnu_ld_version=21400
15021 # XXXXXXXXXXX libat_gnu_ld_version=21390
15023 # Check to see if unspecified "yes" value can win, given results above.
15024 # Change "yes" into either "no" or a style name.
15025 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
15026 if test $with_gnu_ld = yes; then
15027 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
15028 enable_symvers=gnu
15029 elif test $libat_ld_is_gold = yes ; then
15030 enable_symvers=gnu
15031 else
15032 # The right tools, the right setup, but too old. Fallbacks?
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
15034 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15036 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15038 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
15040 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
15041 if test $libat_gnu_ld_version -ge 21200 ; then
15042 # Globbing fix is present, proper block support is not.
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15044 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15045 enable_symvers=no
15046 else
15047 # 2.11 or older.
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15049 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15050 enable_symvers=no
15053 elif test $enable_symvers = sun; then
15054 : All interesting versions of Sun ld support sun style symbol versioning.
15055 else
15056 # just fail for now
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15058 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15060 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15062 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15064 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15065 enable_symvers=no
15068 if test $enable_symvers = gnu; then
15070 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15074 if test $enable_symvers != no; then
15075 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
15076 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
15077 else
15078 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
15079 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
15082 if test $enable_symvers = gnu; then
15083 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15084 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15085 else
15086 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15087 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15090 if test $enable_symvers = sun; then
15091 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15092 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15093 else
15094 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15095 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15099 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15102 # Cleanup and exit.
15103 CFLAGS="$save_CFLAGS"
15104 cat >confcache <<\_ACEOF
15105 # This file is a shell script that caches the results of configure
15106 # tests run on this system so they can be shared between configure
15107 # scripts and configure runs, see configure's option --config-cache.
15108 # It is not useful on other systems. If it contains results you don't
15109 # want to keep, you may remove or edit it.
15111 # config.status only pays attention to the cache file if you give it
15112 # the --recheck option to rerun configure.
15114 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15115 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15116 # following values.
15118 _ACEOF
15120 # The following way of writing the cache mishandles newlines in values,
15121 # but we know of no workaround that is simple, portable, and efficient.
15122 # So, we kill variables containing newlines.
15123 # Ultrix sh set writes to stderr and can't be redirected directly,
15124 # and sets the high bit in the cache file unless we assign to the vars.
15126 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15127 eval ac_val=\$$ac_var
15128 case $ac_val in #(
15129 *${as_nl}*)
15130 case $ac_var in #(
15131 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15132 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15133 esac
15134 case $ac_var in #(
15135 _ | IFS | as_nl) ;; #(
15136 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15137 *) { eval $ac_var=; unset $ac_var;} ;;
15138 esac ;;
15139 esac
15140 done
15142 (set) 2>&1 |
15143 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15144 *${as_nl}ac_space=\ *)
15145 # `set' does not quote correctly, so add quotes: double-quote
15146 # substitution turns \\\\ into \\, and sed turns \\ into \.
15147 sed -n \
15148 "s/'/'\\\\''/g;
15149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15150 ;; #(
15152 # `set' quotes correctly as required by POSIX, so do not add quotes.
15153 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15155 esac |
15156 sort
15158 sed '
15159 /^ac_cv_env_/b end
15160 t clear
15161 :clear
15162 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15163 t end
15164 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15165 :end' >>confcache
15166 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15167 if test -w "$cache_file"; then
15168 test "x$cache_file" != "x/dev/null" &&
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15170 $as_echo "$as_me: updating cache $cache_file" >&6;}
15171 cat confcache >$cache_file
15172 else
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15174 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15177 rm -f confcache
15179 # Add -Wall -Werror if we are using GCC.
15180 if test "x$GCC" = "xyes"; then
15181 XCFLAGS="$XCFLAGS -Wall -Werror"
15184 XCFLAGS="$XCFLAGS $XPCFLAGS"
15192 if test x$libat_cv_have_ifunc = xyes; then
15193 HAVE_IFUNC_TRUE=
15194 HAVE_IFUNC_FALSE='#'
15195 else
15196 HAVE_IFUNC_TRUE='#'
15197 HAVE_IFUNC_FALSE=
15200 if expr "$config_path" : ".* linux/arm .*" > /dev/null; then
15201 ARCH_ARM_LINUX_TRUE=
15202 ARCH_ARM_LINUX_FALSE='#'
15203 else
15204 ARCH_ARM_LINUX_TRUE='#'
15205 ARCH_ARM_LINUX_FALSE=
15208 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x4; then
15209 ARCH_I386_TRUE=
15210 ARCH_I386_FALSE='#'
15211 else
15212 ARCH_I386_TRUE='#'
15213 ARCH_I386_FALSE=
15216 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x8; then
15217 ARCH_X86_64_TRUE=
15218 ARCH_X86_64_FALSE='#'
15219 else
15220 ARCH_X86_64_TRUE='#'
15221 ARCH_X86_64_FALSE=
15225 if test ${multilib} = yes; then
15226 multilib_arg="--enable-multilib"
15227 else
15228 multilib_arg=
15231 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15233 cat >confcache <<\_ACEOF
15234 # This file is a shell script that caches the results of configure
15235 # tests run on this system so they can be shared between configure
15236 # scripts and configure runs, see configure's option --config-cache.
15237 # It is not useful on other systems. If it contains results you don't
15238 # want to keep, you may remove or edit it.
15240 # config.status only pays attention to the cache file if you give it
15241 # the --recheck option to rerun configure.
15243 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15244 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15245 # following values.
15247 _ACEOF
15249 # The following way of writing the cache mishandles newlines in values,
15250 # but we know of no workaround that is simple, portable, and efficient.
15251 # So, we kill variables containing newlines.
15252 # Ultrix sh set writes to stderr and can't be redirected directly,
15253 # and sets the high bit in the cache file unless we assign to the vars.
15255 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15256 eval ac_val=\$$ac_var
15257 case $ac_val in #(
15258 *${as_nl}*)
15259 case $ac_var in #(
15260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15261 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15262 esac
15263 case $ac_var in #(
15264 _ | IFS | as_nl) ;; #(
15265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15266 *) { eval $ac_var=; unset $ac_var;} ;;
15267 esac ;;
15268 esac
15269 done
15271 (set) 2>&1 |
15272 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15273 *${as_nl}ac_space=\ *)
15274 # `set' does not quote correctly, so add quotes: double-quote
15275 # substitution turns \\\\ into \\, and sed turns \\ into \.
15276 sed -n \
15277 "s/'/'\\\\''/g;
15278 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15279 ;; #(
15281 # `set' quotes correctly as required by POSIX, so do not add quotes.
15282 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15284 esac |
15285 sort
15287 sed '
15288 /^ac_cv_env_/b end
15289 t clear
15290 :clear
15291 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15292 t end
15293 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15294 :end' >>confcache
15295 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15296 if test -w "$cache_file"; then
15297 test "x$cache_file" != "x/dev/null" &&
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15299 $as_echo "$as_me: updating cache $cache_file" >&6;}
15300 cat confcache >$cache_file
15301 else
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15303 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15306 rm -f confcache
15308 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15309 # Let make expand exec_prefix.
15310 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15312 DEFS=-DHAVE_CONFIG_H
15314 ac_libobjs=
15315 ac_ltlibobjs=
15316 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15317 # 1. Remove the extension, and $U if already installed.
15318 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15319 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15320 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15321 # will be set to the directory where LIBOBJS objects are built.
15322 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15323 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15324 done
15325 LIBOBJS=$ac_libobjs
15327 LTLIBOBJS=$ac_ltlibobjs
15330 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
15331 as_fn_error "conditional \"GENINSRC\" was never defined.
15332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15334 if test -n "$EXEEXT"; then
15335 am__EXEEXT_TRUE=
15336 am__EXEEXT_FALSE='#'
15337 else
15338 am__EXEEXT_TRUE='#'
15339 am__EXEEXT_FALSE=
15342 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15343 as_fn_error "conditional \"AMDEP\" was never defined.
15344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15346 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15347 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15350 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15351 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
15352 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15354 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15355 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15359 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
15360 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
15361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15363 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
15364 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
15365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15367 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
15368 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
15369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15371 if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then
15372 as_fn_error "conditional \"HAVE_IFUNC\" was never defined.
15373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15375 if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then
15376 as_fn_error "conditional \"ARCH_ARM_LINUX\" was never defined.
15377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15379 if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then
15380 as_fn_error "conditional \"ARCH_I386\" was never defined.
15381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15383 if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
15384 as_fn_error "conditional \"ARCH_X86_64\" was never defined.
15385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15388 : ${CONFIG_STATUS=./config.status}
15389 ac_write_fail=0
15390 ac_clean_files_save=$ac_clean_files
15391 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15393 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15394 as_write_fail=0
15395 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15396 #! $SHELL
15397 # Generated by $as_me.
15398 # Run this file to recreate the current configuration.
15399 # Compiler output produced by configure, useful for debugging
15400 # configure, is in config.log if it exists.
15402 debug=false
15403 ac_cs_recheck=false
15404 ac_cs_silent=false
15406 SHELL=\${CONFIG_SHELL-$SHELL}
15407 export SHELL
15408 _ASEOF
15409 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15410 ## -------------------- ##
15411 ## M4sh Initialization. ##
15412 ## -------------------- ##
15414 # Be more Bourne compatible
15415 DUALCASE=1; export DUALCASE # for MKS sh
15416 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15417 emulate sh
15418 NULLCMD=:
15419 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15420 # is contrary to our usage. Disable this feature.
15421 alias -g '${1+"$@"}'='"$@"'
15422 setopt NO_GLOB_SUBST
15423 else
15424 case `(set -o) 2>/dev/null` in #(
15425 *posix*) :
15426 set -o posix ;; #(
15427 *) :
15429 esac
15433 as_nl='
15435 export as_nl
15436 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15437 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15438 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15439 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15440 # Prefer a ksh shell builtin over an external printf program on Solaris,
15441 # but without wasting forks for bash or zsh.
15442 if test -z "$BASH_VERSION$ZSH_VERSION" \
15443 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15444 as_echo='print -r --'
15445 as_echo_n='print -rn --'
15446 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15447 as_echo='printf %s\n'
15448 as_echo_n='printf %s'
15449 else
15450 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15451 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15452 as_echo_n='/usr/ucb/echo -n'
15453 else
15454 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15455 as_echo_n_body='eval
15456 arg=$1;
15457 case $arg in #(
15458 *"$as_nl"*)
15459 expr "X$arg" : "X\\(.*\\)$as_nl";
15460 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15461 esac;
15462 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15464 export as_echo_n_body
15465 as_echo_n='sh -c $as_echo_n_body as_echo'
15467 export as_echo_body
15468 as_echo='sh -c $as_echo_body as_echo'
15471 # The user is always right.
15472 if test "${PATH_SEPARATOR+set}" != set; then
15473 PATH_SEPARATOR=:
15474 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15475 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15476 PATH_SEPARATOR=';'
15481 # IFS
15482 # We need space, tab and new line, in precisely that order. Quoting is
15483 # there to prevent editors from complaining about space-tab.
15484 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15485 # splitting by setting IFS to empty value.)
15486 IFS=" "" $as_nl"
15488 # Find who we are. Look in the path if we contain no directory separator.
15489 case $0 in #((
15490 *[\\/]* ) as_myself=$0 ;;
15491 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15492 for as_dir in $PATH
15494 IFS=$as_save_IFS
15495 test -z "$as_dir" && as_dir=.
15496 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15497 done
15498 IFS=$as_save_IFS
15501 esac
15502 # We did not find ourselves, most probably we were run as `sh COMMAND'
15503 # in which case we are not to be found in the path.
15504 if test "x$as_myself" = x; then
15505 as_myself=$0
15507 if test ! -f "$as_myself"; then
15508 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15509 exit 1
15512 # Unset variables that we do not need and which cause bugs (e.g. in
15513 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15514 # suppresses any "Segmentation fault" message there. '((' could
15515 # trigger a bug in pdksh 5.2.14.
15516 for as_var in BASH_ENV ENV MAIL MAILPATH
15517 do eval test x\${$as_var+set} = xset \
15518 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15519 done
15520 PS1='$ '
15521 PS2='> '
15522 PS4='+ '
15524 # NLS nuisances.
15525 LC_ALL=C
15526 export LC_ALL
15527 LANGUAGE=C
15528 export LANGUAGE
15530 # CDPATH.
15531 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15534 # as_fn_error ERROR [LINENO LOG_FD]
15535 # ---------------------------------
15536 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15537 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15538 # script with status $?, using 1 if that was 0.
15539 as_fn_error ()
15541 as_status=$?; test $as_status -eq 0 && as_status=1
15542 if test "$3"; then
15543 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15544 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15546 $as_echo "$as_me: error: $1" >&2
15547 as_fn_exit $as_status
15548 } # as_fn_error
15551 # as_fn_set_status STATUS
15552 # -----------------------
15553 # Set $? to STATUS, without forking.
15554 as_fn_set_status ()
15556 return $1
15557 } # as_fn_set_status
15559 # as_fn_exit STATUS
15560 # -----------------
15561 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15562 as_fn_exit ()
15564 set +e
15565 as_fn_set_status $1
15566 exit $1
15567 } # as_fn_exit
15569 # as_fn_unset VAR
15570 # ---------------
15571 # Portably unset VAR.
15572 as_fn_unset ()
15574 { eval $1=; unset $1;}
15576 as_unset=as_fn_unset
15577 # as_fn_append VAR VALUE
15578 # ----------------------
15579 # Append the text in VALUE to the end of the definition contained in VAR. Take
15580 # advantage of any shell optimizations that allow amortized linear growth over
15581 # repeated appends, instead of the typical quadratic growth present in naive
15582 # implementations.
15583 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15584 eval 'as_fn_append ()
15586 eval $1+=\$2
15588 else
15589 as_fn_append ()
15591 eval $1=\$$1\$2
15593 fi # as_fn_append
15595 # as_fn_arith ARG...
15596 # ------------------
15597 # Perform arithmetic evaluation on the ARGs, and store the result in the
15598 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15599 # must be portable across $(()) and expr.
15600 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15601 eval 'as_fn_arith ()
15603 as_val=$(( $* ))
15605 else
15606 as_fn_arith ()
15608 as_val=`expr "$@" || test $? -eq 1`
15610 fi # as_fn_arith
15613 if expr a : '\(a\)' >/dev/null 2>&1 &&
15614 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15615 as_expr=expr
15616 else
15617 as_expr=false
15620 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15621 as_basename=basename
15622 else
15623 as_basename=false
15626 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15627 as_dirname=dirname
15628 else
15629 as_dirname=false
15632 as_me=`$as_basename -- "$0" ||
15633 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15634 X"$0" : 'X\(//\)$' \| \
15635 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15636 $as_echo X/"$0" |
15637 sed '/^.*\/\([^/][^/]*\)\/*$/{
15638 s//\1/
15641 /^X\/\(\/\/\)$/{
15642 s//\1/
15645 /^X\/\(\/\).*/{
15646 s//\1/
15649 s/.*/./; q'`
15651 # Avoid depending upon Character Ranges.
15652 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15653 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15654 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15655 as_cr_digits='0123456789'
15656 as_cr_alnum=$as_cr_Letters$as_cr_digits
15658 ECHO_C= ECHO_N= ECHO_T=
15659 case `echo -n x` in #(((((
15660 -n*)
15661 case `echo 'xy\c'` in
15662 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15663 xy) ECHO_C='\c';;
15664 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15665 ECHO_T=' ';;
15666 esac;;
15668 ECHO_N='-n';;
15669 esac
15671 rm -f conf$$ conf$$.exe conf$$.file
15672 if test -d conf$$.dir; then
15673 rm -f conf$$.dir/conf$$.file
15674 else
15675 rm -f conf$$.dir
15676 mkdir conf$$.dir 2>/dev/null
15678 if (echo >conf$$.file) 2>/dev/null; then
15679 if ln -s conf$$.file conf$$ 2>/dev/null; then
15680 as_ln_s='ln -s'
15681 # ... but there are two gotchas:
15682 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15683 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15684 # In both cases, we have to default to `cp -p'.
15685 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15686 as_ln_s='cp -p'
15687 elif ln conf$$.file conf$$ 2>/dev/null; then
15688 as_ln_s=ln
15689 else
15690 as_ln_s='cp -p'
15692 else
15693 as_ln_s='cp -p'
15695 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15696 rmdir conf$$.dir 2>/dev/null
15699 # as_fn_mkdir_p
15700 # -------------
15701 # Create "$as_dir" as a directory, including parents if necessary.
15702 as_fn_mkdir_p ()
15705 case $as_dir in #(
15706 -*) as_dir=./$as_dir;;
15707 esac
15708 test -d "$as_dir" || eval $as_mkdir_p || {
15709 as_dirs=
15710 while :; do
15711 case $as_dir in #(
15712 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15713 *) as_qdir=$as_dir;;
15714 esac
15715 as_dirs="'$as_qdir' $as_dirs"
15716 as_dir=`$as_dirname -- "$as_dir" ||
15717 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15718 X"$as_dir" : 'X\(//\)[^/]' \| \
15719 X"$as_dir" : 'X\(//\)$' \| \
15720 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15721 $as_echo X"$as_dir" |
15722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15723 s//\1/
15726 /^X\(\/\/\)[^/].*/{
15727 s//\1/
15730 /^X\(\/\/\)$/{
15731 s//\1/
15734 /^X\(\/\).*/{
15735 s//\1/
15738 s/.*/./; q'`
15739 test -d "$as_dir" && break
15740 done
15741 test -z "$as_dirs" || eval "mkdir $as_dirs"
15742 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15745 } # as_fn_mkdir_p
15746 if mkdir -p . 2>/dev/null; then
15747 as_mkdir_p='mkdir -p "$as_dir"'
15748 else
15749 test -d ./-p && rmdir ./-p
15750 as_mkdir_p=false
15753 if test -x / >/dev/null 2>&1; then
15754 as_test_x='test -x'
15755 else
15756 if ls -dL / >/dev/null 2>&1; then
15757 as_ls_L_option=L
15758 else
15759 as_ls_L_option=
15761 as_test_x='
15762 eval sh -c '\''
15763 if test -d "$1"; then
15764 test -d "$1/.";
15765 else
15766 case $1 in #(
15767 -*)set "./$1";;
15768 esac;
15769 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15770 ???[sx]*):;;*)false;;esac;fi
15771 '\'' sh
15774 as_executable_p=$as_test_x
15776 # Sed expression to map a string onto a valid CPP name.
15777 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15779 # Sed expression to map a string onto a valid variable name.
15780 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15783 exec 6>&1
15784 ## ----------------------------------- ##
15785 ## Main body of $CONFIG_STATUS script. ##
15786 ## ----------------------------------- ##
15787 _ASEOF
15788 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15791 # Save the log message, to keep $0 and so on meaningful, and to
15792 # report actual input values of CONFIG_FILES etc. instead of their
15793 # values after options handling.
15794 ac_log="
15795 This file was extended by GNU Atomic Library $as_me 1.0, which was
15796 generated by GNU Autoconf 2.64. Invocation command line was
15798 CONFIG_FILES = $CONFIG_FILES
15799 CONFIG_HEADERS = $CONFIG_HEADERS
15800 CONFIG_LINKS = $CONFIG_LINKS
15801 CONFIG_COMMANDS = $CONFIG_COMMANDS
15802 $ $0 $@
15804 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15807 _ACEOF
15809 case $ac_config_files in *"
15810 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15811 esac
15813 case $ac_config_headers in *"
15814 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15815 esac
15818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15819 # Files that config.status was made for.
15820 config_files="$ac_config_files"
15821 config_headers="$ac_config_headers"
15822 config_commands="$ac_config_commands"
15824 _ACEOF
15826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15827 ac_cs_usage="\
15828 \`$as_me' instantiates files and other configuration actions
15829 from templates according to the current configuration. Unless the files
15830 and actions are specified as TAGs, all are instantiated by default.
15832 Usage: $0 [OPTION]... [TAG]...
15834 -h, --help print this help, then exit
15835 -V, --version print version number and configuration settings, then exit
15836 -q, --quiet, --silent
15837 do not print progress messages
15838 -d, --debug don't remove temporary files
15839 --recheck update $as_me by reconfiguring in the same conditions
15840 --file=FILE[:TEMPLATE]
15841 instantiate the configuration file FILE
15842 --header=FILE[:TEMPLATE]
15843 instantiate the configuration header FILE
15845 Configuration files:
15846 $config_files
15848 Configuration headers:
15849 $config_headers
15851 Configuration commands:
15852 $config_commands
15854 Report bugs to the package provider.
15855 GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
15856 General help using GNU software: <http://www.gnu.org/gethelp/>."
15858 _ACEOF
15859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15860 ac_cs_version="\\
15861 GNU Atomic Library config.status 1.0
15862 configured by $0, generated by GNU Autoconf 2.64,
15863 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15865 Copyright (C) 2009 Free Software Foundation, Inc.
15866 This config.status script is free software; the Free Software Foundation
15867 gives unlimited permission to copy, distribute and modify it."
15869 ac_pwd='$ac_pwd'
15870 srcdir='$srcdir'
15871 INSTALL='$INSTALL'
15872 MKDIR_P='$MKDIR_P'
15873 AWK='$AWK'
15874 test -n "\$AWK" || AWK=awk
15875 _ACEOF
15877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15878 # The default lists apply if the user does not specify any file.
15879 ac_need_defaults=:
15880 while test $# != 0
15882 case $1 in
15883 --*=*)
15884 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15885 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15886 ac_shift=:
15889 ac_option=$1
15890 ac_optarg=$2
15891 ac_shift=shift
15893 esac
15895 case $ac_option in
15896 # Handling of the options.
15897 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15898 ac_cs_recheck=: ;;
15899 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15900 $as_echo "$ac_cs_version"; exit ;;
15901 --debug | --debu | --deb | --de | --d | -d )
15902 debug=: ;;
15903 --file | --fil | --fi | --f )
15904 $ac_shift
15905 case $ac_optarg in
15906 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15907 esac
15908 as_fn_append CONFIG_FILES " '$ac_optarg'"
15909 ac_need_defaults=false;;
15910 --header | --heade | --head | --hea )
15911 $ac_shift
15912 case $ac_optarg in
15913 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15914 esac
15915 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15916 ac_need_defaults=false;;
15917 --he | --h)
15918 # Conflict between --help and --header
15919 as_fn_error "ambiguous option: \`$1'
15920 Try \`$0 --help' for more information.";;
15921 --help | --hel | -h )
15922 $as_echo "$ac_cs_usage"; exit ;;
15923 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15924 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15925 ac_cs_silent=: ;;
15927 # This is an error.
15928 -*) as_fn_error "unrecognized option: \`$1'
15929 Try \`$0 --help' for more information." ;;
15931 *) as_fn_append ac_config_targets " $1"
15932 ac_need_defaults=false ;;
15934 esac
15935 shift
15936 done
15938 ac_configure_extra_args=
15940 if $ac_cs_silent; then
15941 exec 6>/dev/null
15942 ac_configure_extra_args="$ac_configure_extra_args --silent"
15945 _ACEOF
15946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15947 if \$ac_cs_recheck; then
15948 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15949 shift
15950 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15951 CONFIG_SHELL='$SHELL'
15952 export CONFIG_SHELL
15953 exec "\$@"
15956 _ACEOF
15957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15958 exec 5>>config.log
15960 echo
15961 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15962 ## Running $as_me. ##
15963 _ASBOX
15964 $as_echo "$ac_log"
15965 } >&5
15967 _ACEOF
15968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15970 # INIT-COMMANDS
15973 srcdir="$srcdir"
15974 host="$host"
15975 target="$target"
15976 with_multisubdir="$with_multisubdir"
15977 with_multisrctop="$with_multisrctop"
15978 with_target_subdir="$with_target_subdir"
15979 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15980 multi_basedir="$multi_basedir"
15981 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15982 CC="$CC"
15983 CXX="$CXX"
15984 GFORTRAN="$GFORTRAN"
15985 GCJ="$GCJ"
15986 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15989 # The HP-UX ksh and POSIX shell print the target directory to stdout
15990 # if CDPATH is set.
15991 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15993 sed_quote_subst='$sed_quote_subst'
15994 double_quote_subst='$double_quote_subst'
15995 delay_variable_subst='$delay_variable_subst'
15996 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15997 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15998 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15999 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16000 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16001 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16002 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16003 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16004 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16005 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16006 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16007 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16008 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16009 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16010 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16011 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16012 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16013 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16014 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16015 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16016 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16017 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16018 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16019 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16020 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16021 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16022 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16023 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16024 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16025 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16026 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16027 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16028 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16029 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16030 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16031 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16032 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16033 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16034 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16035 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16036 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16037 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16038 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16039 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16040 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16041 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16042 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16043 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16044 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"`'
16045 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16046 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16047 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16048 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16049 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16050 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16051 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16052 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16053 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16054 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16055 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16056 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16057 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16058 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16059 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16060 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16061 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16062 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16063 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16064 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16065 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16066 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16067 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16068 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16069 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16070 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16071 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16072 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16073 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16074 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16075 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16076 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16077 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16078 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16079 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16080 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16081 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16082 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16083 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16084 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16085 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16086 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16087 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16088 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16089 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16090 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16091 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16092 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16093 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16094 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16095 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16096 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16097 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16098 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16099 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16100 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16101 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16102 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16103 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16104 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16105 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16106 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16107 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16108 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16109 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16110 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16111 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16112 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16113 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16114 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16115 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16117 LTCC='$LTCC'
16118 LTCFLAGS='$LTCFLAGS'
16119 compiler='$compiler_DEFAULT'
16121 # A function that is used when there is no print builtin or printf.
16122 func_fallback_echo ()
16124 eval 'cat <<_LTECHO_EOF
16126 _LTECHO_EOF'
16129 # Quote evaled strings.
16130 for var in SHELL \
16131 ECHO \
16132 SED \
16133 GREP \
16134 EGREP \
16135 FGREP \
16136 LD \
16137 NM \
16138 LN_S \
16139 lt_SP2NL \
16140 lt_NL2SP \
16141 reload_flag \
16142 OBJDUMP \
16143 deplibs_check_method \
16144 file_magic_cmd \
16145 AR \
16146 AR_FLAGS \
16147 STRIP \
16148 RANLIB \
16149 CC \
16150 CFLAGS \
16151 compiler \
16152 lt_cv_sys_global_symbol_pipe \
16153 lt_cv_sys_global_symbol_to_cdecl \
16154 lt_cv_sys_global_symbol_to_c_name_address \
16155 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16156 lt_prog_compiler_no_builtin_flag \
16157 lt_prog_compiler_wl \
16158 lt_prog_compiler_pic \
16159 lt_prog_compiler_static \
16160 lt_cv_prog_compiler_c_o \
16161 need_locks \
16162 DSYMUTIL \
16163 NMEDIT \
16164 LIPO \
16165 OTOOL \
16166 OTOOL64 \
16167 shrext_cmds \
16168 export_dynamic_flag_spec \
16169 whole_archive_flag_spec \
16170 compiler_needs_object \
16171 with_gnu_ld \
16172 allow_undefined_flag \
16173 no_undefined_flag \
16174 hardcode_libdir_flag_spec \
16175 hardcode_libdir_flag_spec_ld \
16176 hardcode_libdir_separator \
16177 fix_srcfile_path \
16178 exclude_expsyms \
16179 include_expsyms \
16180 file_list_spec \
16181 variables_saved_for_relink \
16182 libname_spec \
16183 library_names_spec \
16184 soname_spec \
16185 install_override_mode \
16186 finish_eval \
16187 old_striplib \
16188 striplib; do
16189 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16190 *[\\\\\\\`\\"\\\$]*)
16191 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16194 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16196 esac
16197 done
16199 # Double-quote double-evaled strings.
16200 for var in reload_cmds \
16201 old_postinstall_cmds \
16202 old_postuninstall_cmds \
16203 old_archive_cmds \
16204 extract_expsyms_cmds \
16205 old_archive_from_new_cmds \
16206 old_archive_from_expsyms_cmds \
16207 archive_cmds \
16208 archive_expsym_cmds \
16209 module_cmds \
16210 module_expsym_cmds \
16211 export_symbols_cmds \
16212 prelink_cmds \
16213 postinstall_cmds \
16214 postuninstall_cmds \
16215 finish_cmds \
16216 sys_lib_search_path_spec \
16217 sys_lib_dlsearch_path_spec; do
16218 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16219 *[\\\\\\\`\\"\\\$]*)
16220 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16223 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16225 esac
16226 done
16228 ac_aux_dir='$ac_aux_dir'
16229 xsi_shell='$xsi_shell'
16230 lt_shell_append='$lt_shell_append'
16232 # See if we are running on zsh, and set the options which allow our
16233 # commands through without removal of \ escapes INIT.
16234 if test -n "\${ZSH_VERSION+set}" ; then
16235 setopt NO_GLOB_SUBST
16239 PACKAGE='$PACKAGE'
16240 VERSION='$VERSION'
16241 TIMESTAMP='$TIMESTAMP'
16242 RM='$RM'
16243 ofile='$ofile'
16248 GCC="$GCC"
16249 CC="$CC"
16250 acx_cv_header_stdint="$acx_cv_header_stdint"
16251 acx_cv_type_int8_t="$acx_cv_type_int8_t"
16252 acx_cv_type_int16_t="$acx_cv_type_int16_t"
16253 acx_cv_type_int32_t="$acx_cv_type_int32_t"
16254 acx_cv_type_int64_t="$acx_cv_type_int64_t"
16255 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16256 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16257 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16258 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16259 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16260 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16261 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16262 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16263 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16266 _ACEOF
16268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16270 # Handling of arguments.
16271 for ac_config_target in $ac_config_targets
16273 case $ac_config_target in
16274 "auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-config.h" ;;
16275 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16276 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16277 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16278 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
16279 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16280 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16282 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16283 esac
16284 done
16287 # If the user did not use the arguments to specify the items to instantiate,
16288 # then the envvar interface is used. Set only those that are not.
16289 # We use the long form for the default assignment because of an extremely
16290 # bizarre bug on SunOS 4.1.3.
16291 if $ac_need_defaults; then
16292 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16293 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16294 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16297 # Have a temporary directory for convenience. Make it in the build tree
16298 # simply because there is no reason against having it here, and in addition,
16299 # creating and moving files from /tmp can sometimes cause problems.
16300 # Hook for its removal unless debugging.
16301 # Note that there is a small window in which the directory will not be cleaned:
16302 # after its creation but before its name has been assigned to `$tmp'.
16303 $debug ||
16305 tmp=
16306 trap 'exit_status=$?
16307 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16309 trap 'as_fn_exit 1' 1 2 13 15
16311 # Create a (secure) tmp directory for tmp files.
16314 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16315 test -n "$tmp" && test -d "$tmp"
16316 } ||
16318 tmp=./conf$$-$RANDOM
16319 (umask 077 && mkdir "$tmp")
16320 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16322 # Set up the scripts for CONFIG_FILES section.
16323 # No need to generate them if there are no CONFIG_FILES.
16324 # This happens for instance with `./config.status config.h'.
16325 if test -n "$CONFIG_FILES"; then
16328 ac_cr=`echo X | tr X '\015'`
16329 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16330 # But we know of no other shell where ac_cr would be empty at this
16331 # point, so we can use a bashism as a fallback.
16332 if test "x$ac_cr" = x; then
16333 eval ac_cr=\$\'\\r\'
16335 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16336 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16337 ac_cs_awk_cr='\r'
16338 else
16339 ac_cs_awk_cr=$ac_cr
16342 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16343 _ACEOF
16347 echo "cat >conf$$subs.awk <<_ACEOF" &&
16348 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16349 echo "_ACEOF"
16350 } >conf$$subs.sh ||
16351 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16352 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16353 ac_delim='%!_!# '
16354 for ac_last_try in false false false false false :; do
16355 . ./conf$$subs.sh ||
16356 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16358 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16359 if test $ac_delim_n = $ac_delim_num; then
16360 break
16361 elif $ac_last_try; then
16362 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16363 else
16364 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16366 done
16367 rm -f conf$$subs.sh
16369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16370 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16371 _ACEOF
16372 sed -n '
16374 s/^/S["/; s/!.*/"]=/
16377 s/^[^!]*!//
16378 :repl
16379 t repl
16380 s/'"$ac_delim"'$//
16381 t delim
16384 s/\(.\{148\}\).*/\1/
16385 t more1
16386 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16389 b repl
16390 :more1
16391 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16394 s/.\{148\}//
16395 t nl
16396 :delim
16398 s/\(.\{148\}\).*/\1/
16399 t more2
16400 s/["\\]/\\&/g; s/^/"/; s/$/"/
16403 :more2
16404 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16407 s/.\{148\}//
16408 t delim
16409 ' <conf$$subs.awk | sed '
16410 /^[^""]/{
16412 s/\n//
16414 ' >>$CONFIG_STATUS || ac_write_fail=1
16415 rm -f conf$$subs.awk
16416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16417 _ACAWK
16418 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16419 for (key in S) S_is_set[key] = 1
16420 FS = "\a"
16424 line = $ 0
16425 nfields = split(line, field, "@")
16426 substed = 0
16427 len = length(field[1])
16428 for (i = 2; i < nfields; i++) {
16429 key = field[i]
16430 keylen = length(key)
16431 if (S_is_set[key]) {
16432 value = S[key]
16433 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16434 len += length(value) + length(field[++i])
16435 substed = 1
16436 } else
16437 len += 1 + keylen
16440 print line
16443 _ACAWK
16444 _ACEOF
16445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16446 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16447 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16448 else
16450 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16451 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16452 _ACEOF
16454 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16455 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16456 # trailing colons and then remove the whole line if VPATH becomes empty
16457 # (actually we leave an empty line to preserve line numbers).
16458 if test "x$srcdir" = x.; then
16459 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16460 s/:*\$(srcdir):*/:/
16461 s/:*\${srcdir}:*/:/
16462 s/:*@srcdir@:*/:/
16463 s/^\([^=]*=[ ]*\):*/\1/
16464 s/:*$//
16465 s/^[^=]*=[ ]*$//
16469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16470 fi # test -n "$CONFIG_FILES"
16472 # Set up the scripts for CONFIG_HEADERS section.
16473 # No need to generate them if there are no CONFIG_HEADERS.
16474 # This happens for instance with `./config.status Makefile'.
16475 if test -n "$CONFIG_HEADERS"; then
16476 cat >"$tmp/defines.awk" <<\_ACAWK ||
16477 BEGIN {
16478 _ACEOF
16480 # Transform confdefs.h into an awk script `defines.awk', embedded as
16481 # here-document in config.status, that substitutes the proper values into
16482 # config.h.in to produce config.h.
16484 # Create a delimiter string that does not exist in confdefs.h, to ease
16485 # handling of long lines.
16486 ac_delim='%!_!# '
16487 for ac_last_try in false false :; do
16488 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16489 if test -z "$ac_t"; then
16490 break
16491 elif $ac_last_try; then
16492 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16493 else
16494 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16496 done
16498 # For the awk script, D is an array of macro values keyed by name,
16499 # likewise P contains macro parameters if any. Preserve backslash
16500 # newline sequences.
16502 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16503 sed -n '
16504 s/.\{148\}/&'"$ac_delim"'/g
16505 t rset
16506 :rset
16507 s/^[ ]*#[ ]*define[ ][ ]*/ /
16508 t def
16510 :def
16511 s/\\$//
16512 t bsnl
16513 s/["\\]/\\&/g
16514 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16515 D["\1"]=" \3"/p
16516 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16518 :bsnl
16519 s/["\\]/\\&/g
16520 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16521 D["\1"]=" \3\\\\\\n"\\/p
16522 t cont
16523 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16524 t cont
16526 :cont
16528 s/.\{148\}/&'"$ac_delim"'/g
16529 t clear
16530 :clear
16531 s/\\$//
16532 t bsnlc
16533 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16535 :bsnlc
16536 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16537 b cont
16538 ' <confdefs.h | sed '
16539 s/'"$ac_delim"'/"\\\
16540 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16543 for (key in D) D_is_set[key] = 1
16544 FS = "\a"
16546 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16547 line = \$ 0
16548 split(line, arg, " ")
16549 if (arg[1] == "#") {
16550 defundef = arg[2]
16551 mac1 = arg[3]
16552 } else {
16553 defundef = substr(arg[1], 2)
16554 mac1 = arg[2]
16556 split(mac1, mac2, "(") #)
16557 macro = mac2[1]
16558 prefix = substr(line, 1, index(line, defundef) - 1)
16559 if (D_is_set[macro]) {
16560 # Preserve the white space surrounding the "#".
16561 print prefix "define", macro P[macro] D[macro]
16562 next
16563 } else {
16564 # Replace #undef with comments. This is necessary, for example,
16565 # in the case of _POSIX_SOURCE, which is predefined and required
16566 # on some systems where configure will not decide to define it.
16567 if (defundef == "undef") {
16568 print "/*", prefix defundef, macro, "*/"
16569 next
16573 { print }
16574 _ACAWK
16575 _ACEOF
16576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16577 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16578 fi # test -n "$CONFIG_HEADERS"
16581 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16582 shift
16583 for ac_tag
16585 case $ac_tag in
16586 :[FHLC]) ac_mode=$ac_tag; continue;;
16587 esac
16588 case $ac_mode$ac_tag in
16589 :[FHL]*:*);;
16590 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16591 :[FH]-) ac_tag=-:-;;
16592 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16593 esac
16594 ac_save_IFS=$IFS
16595 IFS=:
16596 set x $ac_tag
16597 IFS=$ac_save_IFS
16598 shift
16599 ac_file=$1
16600 shift
16602 case $ac_mode in
16603 :L) ac_source=$1;;
16604 :[FH])
16605 ac_file_inputs=
16606 for ac_f
16608 case $ac_f in
16609 -) ac_f="$tmp/stdin";;
16610 *) # Look for the file first in the build tree, then in the source tree
16611 # (if the path is not absolute). The absolute path cannot be DOS-style,
16612 # because $ac_f cannot contain `:'.
16613 test -f "$ac_f" ||
16614 case $ac_f in
16615 [\\/$]*) false;;
16616 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16617 esac ||
16618 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16619 esac
16620 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16621 as_fn_append ac_file_inputs " '$ac_f'"
16622 done
16624 # Let's still pretend it is `configure' which instantiates (i.e., don't
16625 # use $as_me), people would be surprised to read:
16626 # /* config.h. Generated by config.status. */
16627 configure_input='Generated from '`
16628 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16629 `' by configure.'
16630 if test x"$ac_file" != x-; then
16631 configure_input="$ac_file. $configure_input"
16632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16633 $as_echo "$as_me: creating $ac_file" >&6;}
16635 # Neutralize special characters interpreted by sed in replacement strings.
16636 case $configure_input in #(
16637 *\&* | *\|* | *\\* )
16638 ac_sed_conf_input=`$as_echo "$configure_input" |
16639 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16640 *) ac_sed_conf_input=$configure_input;;
16641 esac
16643 case $ac_tag in
16644 *:-:* | *:-) cat >"$tmp/stdin" \
16645 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16646 esac
16648 esac
16650 ac_dir=`$as_dirname -- "$ac_file" ||
16651 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16652 X"$ac_file" : 'X\(//\)[^/]' \| \
16653 X"$ac_file" : 'X\(//\)$' \| \
16654 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16655 $as_echo X"$ac_file" |
16656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16657 s//\1/
16660 /^X\(\/\/\)[^/].*/{
16661 s//\1/
16664 /^X\(\/\/\)$/{
16665 s//\1/
16668 /^X\(\/\).*/{
16669 s//\1/
16672 s/.*/./; q'`
16673 as_dir="$ac_dir"; as_fn_mkdir_p
16674 ac_builddir=.
16676 case "$ac_dir" in
16677 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16679 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16680 # A ".." for each directory in $ac_dir_suffix.
16681 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16682 case $ac_top_builddir_sub in
16683 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16684 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16685 esac ;;
16686 esac
16687 ac_abs_top_builddir=$ac_pwd
16688 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16689 # for backward compatibility:
16690 ac_top_builddir=$ac_top_build_prefix
16692 case $srcdir in
16693 .) # We are building in place.
16694 ac_srcdir=.
16695 ac_top_srcdir=$ac_top_builddir_sub
16696 ac_abs_top_srcdir=$ac_pwd ;;
16697 [\\/]* | ?:[\\/]* ) # Absolute name.
16698 ac_srcdir=$srcdir$ac_dir_suffix;
16699 ac_top_srcdir=$srcdir
16700 ac_abs_top_srcdir=$srcdir ;;
16701 *) # Relative name.
16702 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16703 ac_top_srcdir=$ac_top_build_prefix$srcdir
16704 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16705 esac
16706 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16709 case $ac_mode in
16712 # CONFIG_FILE
16715 case $INSTALL in
16716 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16717 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16718 esac
16719 ac_MKDIR_P=$MKDIR_P
16720 case $MKDIR_P in
16721 [\\/$]* | ?:[\\/]* ) ;;
16722 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16723 esac
16724 _ACEOF
16726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16727 # If the template does not know about datarootdir, expand it.
16728 # FIXME: This hack should be removed a few years after 2.60.
16729 ac_datarootdir_hack=; ac_datarootdir_seen=
16730 ac_sed_dataroot='
16731 /datarootdir/ {
16735 /@datadir@/p
16736 /@docdir@/p
16737 /@infodir@/p
16738 /@localedir@/p
16739 /@mandir@/p'
16740 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16741 *datarootdir*) ac_datarootdir_seen=yes;;
16742 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16744 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16745 _ACEOF
16746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16747 ac_datarootdir_hack='
16748 s&@datadir@&$datadir&g
16749 s&@docdir@&$docdir&g
16750 s&@infodir@&$infodir&g
16751 s&@localedir@&$localedir&g
16752 s&@mandir@&$mandir&g
16753 s&\\\${datarootdir}&$datarootdir&g' ;;
16754 esac
16755 _ACEOF
16757 # Neutralize VPATH when `$srcdir' = `.'.
16758 # Shell code in configure.ac might set extrasub.
16759 # FIXME: do we really want to maintain this feature?
16760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16761 ac_sed_extra="$ac_vpsub
16762 $extrasub
16763 _ACEOF
16764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16766 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16767 s|@configure_input@|$ac_sed_conf_input|;t t
16768 s&@top_builddir@&$ac_top_builddir_sub&;t t
16769 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16770 s&@srcdir@&$ac_srcdir&;t t
16771 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16772 s&@top_srcdir@&$ac_top_srcdir&;t t
16773 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16774 s&@builddir@&$ac_builddir&;t t
16775 s&@abs_builddir@&$ac_abs_builddir&;t t
16776 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16777 s&@INSTALL@&$ac_INSTALL&;t t
16778 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16779 $ac_datarootdir_hack
16781 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16782 || as_fn_error "could not create $ac_file" "$LINENO" 5
16784 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16785 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16786 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16788 which seems to be undefined. Please make sure it is defined." >&5
16789 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16790 which seems to be undefined. Please make sure it is defined." >&2;}
16792 rm -f "$tmp/stdin"
16793 case $ac_file in
16794 -) cat "$tmp/out" && rm -f "$tmp/out";;
16795 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16796 esac \
16797 || as_fn_error "could not create $ac_file" "$LINENO" 5
16801 # CONFIG_HEADER
16803 if test x"$ac_file" != x-; then
16805 $as_echo "/* $configure_input */" \
16806 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16807 } >"$tmp/config.h" \
16808 || as_fn_error "could not create $ac_file" "$LINENO" 5
16809 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16811 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16812 else
16813 rm -f "$ac_file"
16814 mv "$tmp/config.h" "$ac_file" \
16815 || as_fn_error "could not create $ac_file" "$LINENO" 5
16817 else
16818 $as_echo "/* $configure_input */" \
16819 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16820 || as_fn_error "could not create -" "$LINENO" 5
16822 # Compute "$ac_file"'s index in $config_headers.
16823 _am_arg="$ac_file"
16824 _am_stamp_count=1
16825 for _am_header in $config_headers :; do
16826 case $_am_header in
16827 $_am_arg | $_am_arg:* )
16828 break ;;
16830 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16831 esac
16832 done
16833 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16834 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16835 X"$_am_arg" : 'X\(//\)[^/]' \| \
16836 X"$_am_arg" : 'X\(//\)$' \| \
16837 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16838 $as_echo X"$_am_arg" |
16839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16840 s//\1/
16843 /^X\(\/\/\)[^/].*/{
16844 s//\1/
16847 /^X\(\/\/\)$/{
16848 s//\1/
16851 /^X\(\/\).*/{
16852 s//\1/
16855 s/.*/./; q'`/stamp-h$_am_stamp_count
16858 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16859 $as_echo "$as_me: executing $ac_file commands" >&6;}
16861 esac
16864 case $ac_file$ac_mode in
16865 "default-1":C)
16866 # Only add multilib support code if we just rebuilt the top-level
16867 # Makefile.
16868 case " $CONFIG_FILES " in
16869 *" Makefile "*)
16870 ac_file=Makefile . ${multi_basedir}/config-ml.in
16872 esac ;;
16873 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16874 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16875 # are listed without --file. Let's play safe and only enable the eval
16876 # if we detect the quoting.
16877 case $CONFIG_FILES in
16878 *\'*) eval set x "$CONFIG_FILES" ;;
16879 *) set x $CONFIG_FILES ;;
16880 esac
16881 shift
16882 for mf
16884 # Strip MF so we end up with the name of the file.
16885 mf=`echo "$mf" | sed -e 's/:.*$//'`
16886 # Check whether this is an Automake generated Makefile or not.
16887 # We used to match only the files named `Makefile.in', but
16888 # some people rename them; so instead we look at the file content.
16889 # Grep'ing the first line is not enough: some people post-process
16890 # each Makefile.in and add a new line on top of each file to say so.
16891 # Grep'ing the whole file is not good either: AIX grep has a line
16892 # limit of 2048, but all sed's we know have understand at least 4000.
16893 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16894 dirpart=`$as_dirname -- "$mf" ||
16895 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16896 X"$mf" : 'X\(//\)[^/]' \| \
16897 X"$mf" : 'X\(//\)$' \| \
16898 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16899 $as_echo X"$mf" |
16900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16901 s//\1/
16904 /^X\(\/\/\)[^/].*/{
16905 s//\1/
16908 /^X\(\/\/\)$/{
16909 s//\1/
16912 /^X\(\/\).*/{
16913 s//\1/
16916 s/.*/./; q'`
16917 else
16918 continue
16920 # Extract the definition of DEPDIR, am__include, and am__quote
16921 # from the Makefile without running `make'.
16922 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16923 test -z "$DEPDIR" && continue
16924 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16925 test -z "am__include" && continue
16926 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16927 # When using ansi2knr, U may be empty or an underscore; expand it
16928 U=`sed -n 's/^U = //p' < "$mf"`
16929 # Find all dependency output files, they are included files with
16930 # $(DEPDIR) in their names. We invoke sed twice because it is the
16931 # simplest approach to changing $(DEPDIR) to its actual value in the
16932 # expansion.
16933 for file in `sed -n "
16934 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16935 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16936 # Make sure the directory exists.
16937 test -f "$dirpart/$file" && continue
16938 fdir=`$as_dirname -- "$file" ||
16939 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16940 X"$file" : 'X\(//\)[^/]' \| \
16941 X"$file" : 'X\(//\)$' \| \
16942 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16943 $as_echo X"$file" |
16944 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16945 s//\1/
16948 /^X\(\/\/\)[^/].*/{
16949 s//\1/
16952 /^X\(\/\/\)$/{
16953 s//\1/
16956 /^X\(\/\).*/{
16957 s//\1/
16960 s/.*/./; q'`
16961 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16962 # echo "creating $dirpart/$file"
16963 echo '# dummy' > "$dirpart/$file"
16964 done
16965 done
16968 "libtool":C)
16970 # See if we are running on zsh, and set the options which allow our
16971 # commands through without removal of \ escapes.
16972 if test -n "${ZSH_VERSION+set}" ; then
16973 setopt NO_GLOB_SUBST
16976 cfgfile="${ofile}T"
16977 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16978 $RM "$cfgfile"
16980 cat <<_LT_EOF >> "$cfgfile"
16981 #! $SHELL
16983 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16984 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16985 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16986 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16988 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16989 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16990 # Written by Gordon Matzigkeit, 1996
16992 # This file is part of GNU Libtool.
16994 # GNU Libtool is free software; you can redistribute it and/or
16995 # modify it under the terms of the GNU General Public License as
16996 # published by the Free Software Foundation; either version 2 of
16997 # the License, or (at your option) any later version.
16999 # As a special exception to the GNU General Public License,
17000 # if you distribute this file as part of a program or library that
17001 # is built using GNU Libtool, you may include this file under the
17002 # same distribution terms that you use for the rest of that program.
17004 # GNU Libtool is distributed in the hope that it will be useful,
17005 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17006 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17007 # GNU General Public License for more details.
17009 # You should have received a copy of the GNU General Public License
17010 # along with GNU Libtool; see the file COPYING. If not, a copy
17011 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17012 # obtained by writing to the Free Software Foundation, Inc.,
17013 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17016 # The names of the tagged configurations supported by this script.
17017 available_tags=""
17019 # ### BEGIN LIBTOOL CONFIG
17021 # Which release of libtool.m4 was used?
17022 macro_version=$macro_version
17023 macro_revision=$macro_revision
17025 # Whether or not to build shared libraries.
17026 build_libtool_libs=$enable_shared
17028 # Whether or not to build static libraries.
17029 build_old_libs=$enable_static
17031 # What type of objects to build.
17032 pic_mode=$pic_mode
17034 # Whether or not to optimize for fast installation.
17035 fast_install=$enable_fast_install
17037 # Shell to use when invoking shell scripts.
17038 SHELL=$lt_SHELL
17040 # An echo program that protects backslashes.
17041 ECHO=$lt_ECHO
17043 # The host system.
17044 host_alias=$host_alias
17045 host=$host
17046 host_os=$host_os
17048 # The build system.
17049 build_alias=$build_alias
17050 build=$build
17051 build_os=$build_os
17053 # A sed program that does not truncate output.
17054 SED=$lt_SED
17056 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17057 Xsed="\$SED -e 1s/^X//"
17059 # A grep program that handles long lines.
17060 GREP=$lt_GREP
17062 # An ERE matcher.
17063 EGREP=$lt_EGREP
17065 # A literal string matcher.
17066 FGREP=$lt_FGREP
17068 # A BSD- or MS-compatible name lister.
17069 NM=$lt_NM
17071 # Whether we need soft or hard links.
17072 LN_S=$lt_LN_S
17074 # What is the maximum length of a command?
17075 max_cmd_len=$max_cmd_len
17077 # Object file suffix (normally "o").
17078 objext=$ac_objext
17080 # Executable file suffix (normally "").
17081 exeext=$exeext
17083 # whether the shell understands "unset".
17084 lt_unset=$lt_unset
17086 # turn spaces into newlines.
17087 SP2NL=$lt_lt_SP2NL
17089 # turn newlines into spaces.
17090 NL2SP=$lt_lt_NL2SP
17092 # An object symbol dumper.
17093 OBJDUMP=$lt_OBJDUMP
17095 # Method to check whether dependent libraries are shared objects.
17096 deplibs_check_method=$lt_deplibs_check_method
17098 # Command to use when deplibs_check_method == "file_magic".
17099 file_magic_cmd=$lt_file_magic_cmd
17101 # The archiver.
17102 AR=$lt_AR
17103 AR_FLAGS=$lt_AR_FLAGS
17105 # A symbol stripping program.
17106 STRIP=$lt_STRIP
17108 # Commands used to install an old-style archive.
17109 RANLIB=$lt_RANLIB
17110 old_postinstall_cmds=$lt_old_postinstall_cmds
17111 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17113 # Whether to use a lock for old archive extraction.
17114 lock_old_archive_extraction=$lock_old_archive_extraction
17116 # A C compiler.
17117 LTCC=$lt_CC
17119 # LTCC compiler flags.
17120 LTCFLAGS=$lt_CFLAGS
17122 # Take the output of nm and produce a listing of raw symbols and C names.
17123 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17125 # Transform the output of nm in a proper C declaration.
17126 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17128 # Transform the output of nm in a C name address pair.
17129 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17131 # Transform the output of nm in a C name address pair when lib prefix is needed.
17132 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17134 # The name of the directory that contains temporary libtool files.
17135 objdir=$objdir
17137 # Used to examine libraries when file_magic_cmd begins with "file".
17138 MAGIC_CMD=$MAGIC_CMD
17140 # Must we lock files when doing compilation?
17141 need_locks=$lt_need_locks
17143 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17144 DSYMUTIL=$lt_DSYMUTIL
17146 # Tool to change global to local symbols on Mac OS X.
17147 NMEDIT=$lt_NMEDIT
17149 # Tool to manipulate fat objects and archives on Mac OS X.
17150 LIPO=$lt_LIPO
17152 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17153 OTOOL=$lt_OTOOL
17155 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17156 OTOOL64=$lt_OTOOL64
17158 # Old archive suffix (normally "a").
17159 libext=$libext
17161 # Shared library suffix (normally ".so").
17162 shrext_cmds=$lt_shrext_cmds
17164 # The commands to extract the exported symbol list from a shared archive.
17165 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17167 # Variables whose values should be saved in libtool wrapper scripts and
17168 # restored at link time.
17169 variables_saved_for_relink=$lt_variables_saved_for_relink
17171 # Do we need the "lib" prefix for modules?
17172 need_lib_prefix=$need_lib_prefix
17174 # Do we need a version for libraries?
17175 need_version=$need_version
17177 # Library versioning type.
17178 version_type=$version_type
17180 # Shared library runtime path variable.
17181 runpath_var=$runpath_var
17183 # Shared library path variable.
17184 shlibpath_var=$shlibpath_var
17186 # Is shlibpath searched before the hard-coded library search path?
17187 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17189 # Format of library name prefix.
17190 libname_spec=$lt_libname_spec
17192 # List of archive names. First name is the real one, the rest are links.
17193 # The last name is the one that the linker finds with -lNAME
17194 library_names_spec=$lt_library_names_spec
17196 # The coded name of the library, if different from the real name.
17197 soname_spec=$lt_soname_spec
17199 # Permission mode override for installation of shared libraries.
17200 install_override_mode=$lt_install_override_mode
17202 # Command to use after installation of a shared archive.
17203 postinstall_cmds=$lt_postinstall_cmds
17205 # Command to use after uninstallation of a shared archive.
17206 postuninstall_cmds=$lt_postuninstall_cmds
17208 # Commands used to finish a libtool library installation in a directory.
17209 finish_cmds=$lt_finish_cmds
17211 # As "finish_cmds", except a single script fragment to be evaled but
17212 # not shown.
17213 finish_eval=$lt_finish_eval
17215 # Whether we should hardcode library paths into libraries.
17216 hardcode_into_libs=$hardcode_into_libs
17218 # Compile-time system search path for libraries.
17219 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17221 # Run-time system search path for libraries.
17222 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17224 # Whether dlopen is supported.
17225 dlopen_support=$enable_dlopen
17227 # Whether dlopen of programs is supported.
17228 dlopen_self=$enable_dlopen_self
17230 # Whether dlopen of statically linked programs is supported.
17231 dlopen_self_static=$enable_dlopen_self_static
17233 # Commands to strip libraries.
17234 old_striplib=$lt_old_striplib
17235 striplib=$lt_striplib
17238 # The linker used to build libraries.
17239 LD=$lt_LD
17241 # How to create reloadable object files.
17242 reload_flag=$lt_reload_flag
17243 reload_cmds=$lt_reload_cmds
17245 # Commands used to build an old-style archive.
17246 old_archive_cmds=$lt_old_archive_cmds
17248 # A language specific compiler.
17249 CC=$lt_compiler
17251 # Is the compiler the GNU compiler?
17252 with_gcc=$GCC
17254 # Compiler flag to turn off builtin functions.
17255 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17257 # How to pass a linker flag through the compiler.
17258 wl=$lt_lt_prog_compiler_wl
17260 # Additional compiler flags for building library objects.
17261 pic_flag=$lt_lt_prog_compiler_pic
17263 # Compiler flag to prevent dynamic linking.
17264 link_static_flag=$lt_lt_prog_compiler_static
17266 # Does compiler simultaneously support -c and -o options?
17267 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17269 # Whether or not to add -lc for building shared libraries.
17270 build_libtool_need_lc=$archive_cmds_need_lc
17272 # Whether or not to disallow shared libs when runtime libs are static.
17273 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17275 # Compiler flag to allow reflexive dlopens.
17276 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17278 # Compiler flag to generate shared objects directly from archives.
17279 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17281 # Whether the compiler copes with passing no objects directly.
17282 compiler_needs_object=$lt_compiler_needs_object
17284 # Create an old-style archive from a shared archive.
17285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17287 # Create a temporary old-style archive to link instead of a shared archive.
17288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17290 # Commands used to build a shared archive.
17291 archive_cmds=$lt_archive_cmds
17292 archive_expsym_cmds=$lt_archive_expsym_cmds
17294 # Commands used to build a loadable module if different from building
17295 # a shared archive.
17296 module_cmds=$lt_module_cmds
17297 module_expsym_cmds=$lt_module_expsym_cmds
17299 # Whether we are building with GNU ld or not.
17300 with_gnu_ld=$lt_with_gnu_ld
17302 # Flag that allows shared libraries with undefined symbols to be built.
17303 allow_undefined_flag=$lt_allow_undefined_flag
17305 # Flag that enforces no undefined symbols.
17306 no_undefined_flag=$lt_no_undefined_flag
17308 # Flag to hardcode \$libdir into a binary during linking.
17309 # This must work even if \$libdir does not exist
17310 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17312 # If ld is used when linking, flag to hardcode \$libdir into a binary
17313 # during linking. This must work even if \$libdir does not exist.
17314 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17316 # Whether we need a single "-rpath" flag with a separated argument.
17317 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17319 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17320 # DIR into the resulting binary.
17321 hardcode_direct=$hardcode_direct
17323 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17324 # DIR into the resulting binary and the resulting library dependency is
17325 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17326 # library is relocated.
17327 hardcode_direct_absolute=$hardcode_direct_absolute
17329 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17330 # into the resulting binary.
17331 hardcode_minus_L=$hardcode_minus_L
17333 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17334 # into the resulting binary.
17335 hardcode_shlibpath_var=$hardcode_shlibpath_var
17337 # Set to "yes" if building a shared library automatically hardcodes DIR
17338 # into the library and all subsequent libraries and executables linked
17339 # against it.
17340 hardcode_automatic=$hardcode_automatic
17342 # Set to yes if linker adds runtime paths of dependent libraries
17343 # to runtime path list.
17344 inherit_rpath=$inherit_rpath
17346 # Whether libtool must link a program against all its dependency libraries.
17347 link_all_deplibs=$link_all_deplibs
17349 # Fix the shell variable \$srcfile for the compiler.
17350 fix_srcfile_path=$lt_fix_srcfile_path
17352 # Set to "yes" if exported symbols are required.
17353 always_export_symbols=$always_export_symbols
17355 # The commands to list exported symbols.
17356 export_symbols_cmds=$lt_export_symbols_cmds
17358 # Symbols that should not be listed in the preloaded symbols.
17359 exclude_expsyms=$lt_exclude_expsyms
17361 # Symbols that must always be exported.
17362 include_expsyms=$lt_include_expsyms
17364 # Commands necessary for linking programs (against libraries) with templates.
17365 prelink_cmds=$lt_prelink_cmds
17367 # Specify filename containing input files.
17368 file_list_spec=$lt_file_list_spec
17370 # How to hardcode a shared library path into an executable.
17371 hardcode_action=$hardcode_action
17373 # ### END LIBTOOL CONFIG
17375 _LT_EOF
17377 case $host_os in
17378 aix3*)
17379 cat <<\_LT_EOF >> "$cfgfile"
17380 # AIX sometimes has problems with the GCC collect2 program. For some
17381 # reason, if we set the COLLECT_NAMES environment variable, the problems
17382 # vanish in a puff of smoke.
17383 if test "X${COLLECT_NAMES+set}" != Xset; then
17384 COLLECT_NAMES=
17385 export COLLECT_NAMES
17387 _LT_EOF
17389 esac
17392 ltmain="$ac_aux_dir/ltmain.sh"
17395 # We use sed instead of cat because bash on DJGPP gets confused if
17396 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17397 # text mode, it properly converts lines to CR/LF. This bash problem
17398 # is reportedly fixed, but why not run on old versions too?
17399 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17400 || (rm -f "$cfgfile"; exit 1)
17402 case $xsi_shell in
17403 yes)
17404 cat << \_LT_EOF >> "$cfgfile"
17406 # func_dirname file append nondir_replacement
17407 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17408 # otherwise set result to NONDIR_REPLACEMENT.
17409 func_dirname ()
17411 case ${1} in
17412 */*) func_dirname_result="${1%/*}${2}" ;;
17413 * ) func_dirname_result="${3}" ;;
17414 esac
17417 # func_basename file
17418 func_basename ()
17420 func_basename_result="${1##*/}"
17423 # func_dirname_and_basename file append nondir_replacement
17424 # perform func_basename and func_dirname in a single function
17425 # call:
17426 # dirname: Compute the dirname of FILE. If nonempty,
17427 # add APPEND to the result, otherwise set result
17428 # to NONDIR_REPLACEMENT.
17429 # value returned in "$func_dirname_result"
17430 # basename: Compute filename of FILE.
17431 # value retuned in "$func_basename_result"
17432 # Implementation must be kept synchronized with func_dirname
17433 # and func_basename. For efficiency, we do not delegate to
17434 # those functions but instead duplicate the functionality here.
17435 func_dirname_and_basename ()
17437 case ${1} in
17438 */*) func_dirname_result="${1%/*}${2}" ;;
17439 * ) func_dirname_result="${3}" ;;
17440 esac
17441 func_basename_result="${1##*/}"
17444 # func_stripname prefix suffix name
17445 # strip PREFIX and SUFFIX off of NAME.
17446 # PREFIX and SUFFIX must not contain globbing or regex special
17447 # characters, hashes, percent signs, but SUFFIX may contain a leading
17448 # dot (in which case that matches only a dot).
17449 func_stripname ()
17451 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17452 # positional parameters, so assign one to ordinary parameter first.
17453 func_stripname_result=${3}
17454 func_stripname_result=${func_stripname_result#"${1}"}
17455 func_stripname_result=${func_stripname_result%"${2}"}
17458 # func_opt_split
17459 func_opt_split ()
17461 func_opt_split_opt=${1%%=*}
17462 func_opt_split_arg=${1#*=}
17465 # func_lo2o object
17466 func_lo2o ()
17468 case ${1} in
17469 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17470 *) func_lo2o_result=${1} ;;
17471 esac
17474 # func_xform libobj-or-source
17475 func_xform ()
17477 func_xform_result=${1%.*}.lo
17480 # func_arith arithmetic-term...
17481 func_arith ()
17483 func_arith_result=$(( $* ))
17486 # func_len string
17487 # STRING may not start with a hyphen.
17488 func_len ()
17490 func_len_result=${#1}
17493 _LT_EOF
17495 *) # Bourne compatible functions.
17496 cat << \_LT_EOF >> "$cfgfile"
17498 # func_dirname file append nondir_replacement
17499 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17500 # otherwise set result to NONDIR_REPLACEMENT.
17501 func_dirname ()
17503 # Extract subdirectory from the argument.
17504 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17505 if test "X$func_dirname_result" = "X${1}"; then
17506 func_dirname_result="${3}"
17507 else
17508 func_dirname_result="$func_dirname_result${2}"
17512 # func_basename file
17513 func_basename ()
17515 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17519 # func_stripname prefix suffix name
17520 # strip PREFIX and SUFFIX off of NAME.
17521 # PREFIX and SUFFIX must not contain globbing or regex special
17522 # characters, hashes, percent signs, but SUFFIX may contain a leading
17523 # dot (in which case that matches only a dot).
17524 # func_strip_suffix prefix name
17525 func_stripname ()
17527 case ${2} in
17528 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17529 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17530 esac
17533 # sed scripts:
17534 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17535 my_sed_long_arg='1s/^-[^=]*=//'
17537 # func_opt_split
17538 func_opt_split ()
17540 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17541 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17544 # func_lo2o object
17545 func_lo2o ()
17547 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17550 # func_xform libobj-or-source
17551 func_xform ()
17553 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17556 # func_arith arithmetic-term...
17557 func_arith ()
17559 func_arith_result=`expr "$@"`
17562 # func_len string
17563 # STRING may not start with a hyphen.
17564 func_len ()
17566 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17569 _LT_EOF
17570 esac
17572 case $lt_shell_append in
17573 yes)
17574 cat << \_LT_EOF >> "$cfgfile"
17576 # func_append var value
17577 # Append VALUE to the end of shell variable VAR.
17578 func_append ()
17580 eval "$1+=\$2"
17582 _LT_EOF
17585 cat << \_LT_EOF >> "$cfgfile"
17587 # func_append var value
17588 # Append VALUE to the end of shell variable VAR.
17589 func_append ()
17591 eval "$1=\$$1\$2"
17594 _LT_EOF
17596 esac
17599 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17600 || (rm -f "$cfgfile"; exit 1)
17602 mv -f "$cfgfile" "$ofile" ||
17603 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17604 chmod +x "$ofile"
17607 "gstdint.h":C)
17608 if test "$GCC" = yes; then
17609 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
17610 else
17611 echo "/* generated for $CC */" > tmp-stdint.h
17614 sed 's/^ *//' >> tmp-stdint.h <<EOF
17616 #ifndef GCC_GENERATED_STDINT_H
17617 #define GCC_GENERATED_STDINT_H 1
17619 #include <sys/types.h>
17622 if test "$acx_cv_header_stdint" != stdint.h; then
17623 echo "#include <stddef.h>" >> tmp-stdint.h
17625 if test "$acx_cv_header_stdint" != stddef.h; then
17626 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
17629 sed 's/^ *//' >> tmp-stdint.h <<EOF
17630 /* glibc uses these symbols as guards to prevent redefinitions. */
17631 #ifdef __int8_t_defined
17632 #define _INT8_T
17633 #define _INT16_T
17634 #define _INT32_T
17635 #endif
17636 #ifdef __uint32_t_defined
17637 #define _UINT32_T
17638 #endif
17642 # ----------------- done header, emit basic int types -------------
17643 if test "$acx_cv_header_stdint" = stddef.h; then
17644 sed 's/^ *//' >> tmp-stdint.h <<EOF
17646 #ifndef _UINT8_T
17647 #define _UINT8_T
17648 #ifndef __uint8_t_defined
17649 #define __uint8_t_defined
17650 #ifndef uint8_t
17651 typedef unsigned $acx_cv_type_int8_t uint8_t;
17652 #endif
17653 #endif
17654 #endif
17656 #ifndef _UINT16_T
17657 #define _UINT16_T
17658 #ifndef __uint16_t_defined
17659 #define __uint16_t_defined
17660 #ifndef uint16_t
17661 typedef unsigned $acx_cv_type_int16_t uint16_t;
17662 #endif
17663 #endif
17664 #endif
17666 #ifndef _UINT32_T
17667 #define _UINT32_T
17668 #ifndef __uint32_t_defined
17669 #define __uint32_t_defined
17670 #ifndef uint32_t
17671 typedef unsigned $acx_cv_type_int32_t uint32_t;
17672 #endif
17673 #endif
17674 #endif
17676 #ifndef _INT8_T
17677 #define _INT8_T
17678 #ifndef __int8_t_defined
17679 #define __int8_t_defined
17680 #ifndef int8_t
17681 typedef $acx_cv_type_int8_t int8_t;
17682 #endif
17683 #endif
17684 #endif
17686 #ifndef _INT16_T
17687 #define _INT16_T
17688 #ifndef __int16_t_defined
17689 #define __int16_t_defined
17690 #ifndef int16_t
17691 typedef $acx_cv_type_int16_t int16_t;
17692 #endif
17693 #endif
17694 #endif
17696 #ifndef _INT32_T
17697 #define _INT32_T
17698 #ifndef __int32_t_defined
17699 #define __int32_t_defined
17700 #ifndef int32_t
17701 typedef $acx_cv_type_int32_t int32_t;
17702 #endif
17703 #endif
17704 #endif
17706 elif test "$ac_cv_type_u_int32_t" = yes; then
17707 sed 's/^ *//' >> tmp-stdint.h <<EOF
17709 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
17710 #ifndef _INT8_T
17711 #define _INT8_T
17712 #endif
17713 #ifndef _INT16_T
17714 #define _INT16_T
17715 #endif
17716 #ifndef _INT32_T
17717 #define _INT32_T
17718 #endif
17720 #ifndef _UINT8_T
17721 #define _UINT8_T
17722 #ifndef __uint8_t_defined
17723 #define __uint8_t_defined
17724 #ifndef uint8_t
17725 typedef u_int8_t uint8_t;
17726 #endif
17727 #endif
17728 #endif
17730 #ifndef _UINT16_T
17731 #define _UINT16_T
17732 #ifndef __uint16_t_defined
17733 #define __uint16_t_defined
17734 #ifndef uint16_t
17735 typedef u_int16_t uint16_t;
17736 #endif
17737 #endif
17738 #endif
17740 #ifndef _UINT32_T
17741 #define _UINT32_T
17742 #ifndef __uint32_t_defined
17743 #define __uint32_t_defined
17744 #ifndef uint32_t
17745 typedef u_int32_t uint32_t;
17746 #endif
17747 #endif
17748 #endif
17750 else
17751 sed 's/^ *//' >> tmp-stdint.h <<EOF
17753 /* Some systems have guard macros to prevent redefinitions, define them. */
17754 #ifndef _INT8_T
17755 #define _INT8_T
17756 #endif
17757 #ifndef _INT16_T
17758 #define _INT16_T
17759 #endif
17760 #ifndef _INT32_T
17761 #define _INT32_T
17762 #endif
17763 #ifndef _UINT8_T
17764 #define _UINT8_T
17765 #endif
17766 #ifndef _UINT16_T
17767 #define _UINT16_T
17768 #endif
17769 #ifndef _UINT32_T
17770 #define _UINT32_T
17771 #endif
17775 # ------------- done basic int types, emit int64_t types ------------
17776 if test "$ac_cv_type_uint64_t" = yes; then
17777 sed 's/^ *//' >> tmp-stdint.h <<EOF
17779 /* system headers have good uint64_t and int64_t */
17780 #ifndef _INT64_T
17781 #define _INT64_T
17782 #endif
17783 #ifndef _UINT64_T
17784 #define _UINT64_T
17785 #endif
17787 elif test "$ac_cv_type_u_int64_t" = yes; then
17788 sed 's/^ *//' >> tmp-stdint.h <<EOF
17790 /* system headers have an u_int64_t (and int64_t) */
17791 #ifndef _INT64_T
17792 #define _INT64_T
17793 #endif
17794 #ifndef _UINT64_T
17795 #define _UINT64_T
17796 #ifndef __uint64_t_defined
17797 #define __uint64_t_defined
17798 #ifndef uint64_t
17799 typedef u_int64_t uint64_t;
17800 #endif
17801 #endif
17802 #endif
17804 elif test -n "$acx_cv_type_int64_t"; then
17805 sed 's/^ *//' >> tmp-stdint.h <<EOF
17807 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
17808 #ifndef _INT64_T
17809 #define _INT64_T
17810 #ifndef int64_t
17811 typedef $acx_cv_type_int64_t int64_t;
17812 #endif
17813 #endif
17814 #ifndef _UINT64_T
17815 #define _UINT64_T
17816 #ifndef __uint64_t_defined
17817 #define __uint64_t_defined
17818 #ifndef uint64_t
17819 typedef unsigned $acx_cv_type_int64_t uint64_t;
17820 #endif
17821 #endif
17822 #endif
17824 else
17825 sed 's/^ *//' >> tmp-stdint.h <<EOF
17827 /* some common heuristics for int64_t, using compiler-specific tests */
17828 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
17829 #ifndef _INT64_T
17830 #define _INT64_T
17831 #ifndef __int64_t_defined
17832 #ifndef int64_t
17833 typedef long long int64_t;
17834 #endif
17835 #endif
17836 #endif
17837 #ifndef _UINT64_T
17838 #define _UINT64_T
17839 #ifndef uint64_t
17840 typedef unsigned long long uint64_t;
17841 #endif
17842 #endif
17844 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
17845 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
17846 does not implement __extension__. But that compiler doesn't define
17847 __GNUC_MINOR__. */
17848 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
17849 # define __extension__
17850 # endif
17852 # ifndef _INT64_T
17853 # define _INT64_T
17854 # ifndef int64_t
17855 __extension__ typedef long long int64_t;
17856 # endif
17857 # endif
17858 # ifndef _UINT64_T
17859 # define _UINT64_T
17860 # ifndef uint64_t
17861 __extension__ typedef unsigned long long uint64_t;
17862 # endif
17863 # endif
17865 #elif !defined __STRICT_ANSI__
17866 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
17868 # ifndef _INT64_T
17869 # define _INT64_T
17870 # ifndef int64_t
17871 typedef __int64 int64_t;
17872 # endif
17873 # endif
17874 # ifndef _UINT64_T
17875 # define _UINT64_T
17876 # ifndef uint64_t
17877 typedef unsigned __int64 uint64_t;
17878 # endif
17879 # endif
17880 # endif /* compiler */
17882 #endif /* ANSI version */
17886 # ------------- done int64_t types, emit intptr types ------------
17887 if test "$ac_cv_type_uintptr_t" != yes; then
17888 sed 's/^ *//' >> tmp-stdint.h <<EOF
17890 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
17891 #ifndef __uintptr_t_defined
17892 #ifndef uintptr_t
17893 typedef u$acx_cv_type_intptr_t uintptr_t;
17894 #endif
17895 #endif
17896 #ifndef __intptr_t_defined
17897 #ifndef intptr_t
17898 typedef $acx_cv_type_intptr_t intptr_t;
17899 #endif
17900 #endif
17904 # ------------- done intptr types, emit int_least types ------------
17905 if test "$ac_cv_type_int_least32_t" != yes; then
17906 sed 's/^ *//' >> tmp-stdint.h <<EOF
17908 /* Define int_least types */
17909 typedef int8_t int_least8_t;
17910 typedef int16_t int_least16_t;
17911 typedef int32_t int_least32_t;
17912 #ifdef _INT64_T
17913 typedef int64_t int_least64_t;
17914 #endif
17916 typedef uint8_t uint_least8_t;
17917 typedef uint16_t uint_least16_t;
17918 typedef uint32_t uint_least32_t;
17919 #ifdef _UINT64_T
17920 typedef uint64_t uint_least64_t;
17921 #endif
17925 # ------------- done intptr types, emit int_fast types ------------
17926 if test "$ac_cv_type_int_fast32_t" != yes; then
17927 sed 's/^ *//' >> tmp-stdint.h <<EOF
17929 /* Define int_fast types. short is often slow */
17930 typedef int8_t int_fast8_t;
17931 typedef int int_fast16_t;
17932 typedef int32_t int_fast32_t;
17933 #ifdef _INT64_T
17934 typedef int64_t int_fast64_t;
17935 #endif
17937 typedef uint8_t uint_fast8_t;
17938 typedef unsigned int uint_fast16_t;
17939 typedef uint32_t uint_fast32_t;
17940 #ifdef _UINT64_T
17941 typedef uint64_t uint_fast64_t;
17942 #endif
17946 if test "$ac_cv_type_uintmax_t" != yes; then
17947 sed 's/^ *//' >> tmp-stdint.h <<EOF
17949 /* Define intmax based on what we found */
17950 #ifndef intmax_t
17951 #ifdef _INT64_T
17952 typedef int64_t intmax_t;
17953 #else
17954 typedef long intmax_t;
17955 #endif
17956 #endif
17957 #ifndef uintmax_t
17958 #ifdef _UINT64_T
17959 typedef uint64_t uintmax_t;
17960 #else
17961 typedef unsigned long uintmax_t;
17962 #endif
17963 #endif
17967 sed 's/^ *//' >> tmp-stdint.h <<EOF
17969 #endif /* GCC_GENERATED_STDINT_H */
17972 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
17973 rm -f tmp-stdint.h
17974 else
17975 mv -f tmp-stdint.h gstdint.h
17980 esac
17981 done # for ac_tag
17984 as_fn_exit 0
17985 _ACEOF
17986 ac_clean_files=$ac_clean_files_save
17988 test $ac_write_fail = 0 ||
17989 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17992 # configure is writing to config.log, and then calls config.status.
17993 # config.status does its own redirection, appending to config.log.
17994 # Unfortunately, on DOS this fails, as config.log is still kept open
17995 # by configure, so config.status won't be able to write to it; its
17996 # output is simply discarded. So we exec the FD to /dev/null,
17997 # effectively closing config.log, so it can be properly (re)opened and
17998 # appended to by config.status. When coming back to configure, we
17999 # need to make the FD available again.
18000 if test "$no_create" != yes; then
18001 ac_cs_success=:
18002 ac_config_status_args=
18003 test "$silent" = yes &&
18004 ac_config_status_args="$ac_config_status_args --quiet"
18005 exec 5>/dev/null
18006 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18007 exec 5>>config.log
18008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18009 # would make configure fail if this is the last instruction.
18010 $ac_cs_success || as_fn_exit $?
18012 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18014 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}