target/112280 - properly guard permute query
[official-gcc.git] / libatomic / configure
blobd579bab96f86ce863882d4dc04e59af399b0b9c5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Atomic Library 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='GNU Atomic Library'
589 PACKAGE_TARNAME='libatomic'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='GNU Atomic Library 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libatomic/'
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 get_gcc_base_ver
636 ARCH_X86_64_FALSE
637 ARCH_X86_64_TRUE
638 ARCH_I386_FALSE
639 ARCH_I386_TRUE
640 ARCH_ARM_LINUX_FALSE
641 ARCH_ARM_LINUX_TRUE
642 ARCH_AARCH64_LINUX_FALSE
643 ARCH_AARCH64_LINUX_TRUE
644 HAVE_IFUNC_FALSE
645 HAVE_IFUNC_TRUE
646 tmake_file
647 SIZES
648 XLDFLAGS
649 XCFLAGS
650 config_path
651 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
652 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
653 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
654 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
655 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
656 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
657 OPT_LDFLAGS
658 SECTION_LDFLAGS
659 SYSROOT_CFLAGS_FOR_TARGET
660 enable_aarch64_lse
661 libtool_VERSION
662 ENABLE_DARWIN_AT_RPATH_FALSE
663 ENABLE_DARWIN_AT_RPATH_TRUE
664 MAINT
665 MAINTAINER_MODE_FALSE
666 MAINTAINER_MODE_TRUE
667 enable_static
668 enable_shared
669 lt_host_flags
671 OTOOL64
672 OTOOL
673 LIPO
674 NMEDIT
675 DSYMUTIL
676 OBJDUMP
677 LN_S
678 ac_ct_DUMPBIN
679 DUMPBIN
681 FGREP
682 EGREP
683 GREP
685 LIBTOOL
686 RANLIB
689 am__fastdepCCAS_FALSE
690 am__fastdepCCAS_TRUE
691 CCASDEPMODE
692 CCASFLAGS
693 CCAS
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
711 toolexeclibdir
712 toolexecdir
713 multi_basedir
714 AM_BACKSLASH
715 AM_DEFAULT_VERBOSITY
716 AM_DEFAULT_V
717 AM_V
718 am__untar
719 am__tar
720 AMTAR
721 am__leading_dot
722 SET_MAKE
724 mkdir_p
725 MKDIR_P
726 INSTALL_STRIP_PROGRAM
727 STRIP
728 install_sh
729 MAKEINFO
730 AUTOHEADER
731 AUTOMAKE
732 AUTOCONF
733 ACLOCAL
734 VERSION
735 PACKAGE
736 CYGPATH_W
737 am__isrc
738 INSTALL_DATA
739 INSTALL_SCRIPT
740 INSTALL_PROGRAM
741 target_os
742 target_vendor
743 target_cpu
744 target
745 host_os
746 host_vendor
747 host_cpu
748 host
749 build_os
750 build_vendor
751 build_cpu
752 build
753 GENINSRC_FALSE
754 GENINSRC_TRUE
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files=''
794 ac_user_opts='
795 enable_option_checking
796 enable_version_specific_runtime_libs
797 enable_generated_files_in_srcdir
798 enable_silent_rules
799 enable_multilib
800 with_toolexeclibdir
801 enable_dependency_tracking
802 enable_shared
803 enable_static
804 with_pic
805 enable_fast_install
806 with_gnu_ld
807 enable_libtool_lock
808 enable_darwin_at_rpath
809 enable_maintainer_mode
810 enable_symvers
811 enable_werror
812 enable_cet
813 with_gcc_major_version_only
815 ac_precious_vars='build_alias
816 host_alias
817 target_alias
819 CPPFLAGS'
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
870 ac_prev=
871 ac_dashdash=
872 for ac_option
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
881 case $ac_option in
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *=) ac_optarg= ;;
884 *) ac_optarg=yes ;;
885 esac
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
891 ac_dashdash=yes ;;
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
910 --config-cache | -C)
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1227 esac
1228 done
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 test "$silent" = yes && exec 6>/dev/null
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1312 /^X\(\/\/\)$/{
1313 s//\1/
1316 /^X\(\/\).*/{
1317 s//\1/
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1325 else
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1354 # Report the --help message.
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems.
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1367 Defaults for the options are specified in brackets.
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1391 For better control, use the options below.
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1415 cat <<\_ACEOF
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 --target=TARGET configure for building compilers for TARGET [HOST]
1426 _ACEOF
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of GNU Atomic Library 1.0:";;
1432 esac
1433 cat <<\_ACEOF
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-version-specific-runtime-libs
1440 Specify that runtime libraries should be installed
1441 in a compiler-specific directory [default=no]
1442 --enable-generated-files-in-srcdir
1443 put copies of generated files in source dir intended
1444 for creating source tarballs for users without
1445 texinfo bison or flex. [default=no]
1446 --enable-silent-rules less verbose build output (undo: "make V=1")
1447 --disable-silent-rules verbose build output (undo: "make V=0")
1448 --enable-multilib build many library versions (default)
1449 --enable-dependency-tracking
1450 do not reject slow dependency extractors
1451 --disable-dependency-tracking
1452 speeds up one-time build
1453 --enable-shared[=PKGS] build shared libraries [default=yes]
1454 --enable-static[=PKGS] build static libraries [default=yes]
1455 --enable-fast-install[=PKGS]
1456 optimize for fast installation [default=yes]
1457 --disable-libtool-lock avoid locking (might break parallel builds)
1458 --enable-darwin-at-rpath
1459 install libraries with @rpath/library-name, requires
1460 rpaths to be added to executables
1461 --enable-maintainer-mode
1462 enable make rules and dependencies not useful (and
1463 sometimes confusing) to the casual installer
1464 --enable-symvers=STYLE enables symbol versioning of the shared library
1465 [default=yes]
1466 --disable-werror disable building with -Werror
1467 --enable-cet enable Intel CET in target libraries [default=auto]
1469 Optional Packages:
1470 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1471 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1472 --with-toolexeclibdir=DIR
1473 install libraries built with a cross compiler within
1475 --with-pic try to use only PIC/non-PIC objects [default=use
1476 both]
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1478 --with-gcc-major-version-only
1479 use only GCC major number in filesystem paths
1481 Some influential environment variables:
1482 CC C compiler command
1483 CFLAGS C compiler flags
1484 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1485 nonstandard directory <lib dir>
1486 LIBS libraries to pass to the linker, e.g. -l<library>
1487 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1488 you have headers in a nonstandard directory <include dir>
1489 CCAS assembler compiler command (defaults to CC)
1490 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1491 CPP C preprocessor
1493 Use these variables to override the choices made by `configure' or to help
1494 it to find libraries and programs with nonstandard names/locations.
1496 Report bugs to the package provider.
1497 GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
1498 General help using GNU software: <http://www.gnu.org/gethelp/>.
1499 _ACEOF
1500 ac_status=$?
1503 if test "$ac_init_help" = "recursive"; then
1504 # If there are subdirs, report their specific --help.
1505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506 test -d "$ac_dir" ||
1507 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1508 continue
1509 ac_builddir=.
1511 case "$ac_dir" in
1512 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1515 # A ".." for each directory in $ac_dir_suffix.
1516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517 case $ac_top_builddir_sub in
1518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520 esac ;;
1521 esac
1522 ac_abs_top_builddir=$ac_pwd
1523 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524 # for backward compatibility:
1525 ac_top_builddir=$ac_top_build_prefix
1527 case $srcdir in
1528 .) # We are building in place.
1529 ac_srcdir=.
1530 ac_top_srcdir=$ac_top_builddir_sub
1531 ac_abs_top_srcdir=$ac_pwd ;;
1532 [\\/]* | ?:[\\/]* ) # Absolute name.
1533 ac_srcdir=$srcdir$ac_dir_suffix;
1534 ac_top_srcdir=$srcdir
1535 ac_abs_top_srcdir=$srcdir ;;
1536 *) # Relative name.
1537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538 ac_top_srcdir=$ac_top_build_prefix$srcdir
1539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 esac
1541 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1543 cd "$ac_dir" || { ac_status=$?; continue; }
1544 # Check for guested configure.
1545 if test -f "$ac_srcdir/configure.gnu"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548 elif test -f "$ac_srcdir/configure"; then
1549 echo &&
1550 $SHELL "$ac_srcdir/configure" --help=recursive
1551 else
1552 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 fi || ac_status=$?
1554 cd "$ac_pwd" || { ac_status=$?; break; }
1555 done
1558 test -n "$ac_init_help" && exit $ac_status
1559 if $ac_init_version; then
1560 cat <<\_ACEOF
1561 GNU Atomic Library configure 1.0
1562 generated by GNU Autoconf 2.69
1564 Copyright (C) 2012 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1567 _ACEOF
1568 exit
1571 ## ------------------------ ##
1572 ## Autoconf initialization. ##
1573 ## ------------------------ ##
1575 # ac_fn_c_try_compile LINENO
1576 # --------------------------
1577 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578 ac_fn_c_try_compile ()
1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581 rm -f conftest.$ac_objext
1582 if { { ac_try="$ac_compile"
1583 case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586 esac
1587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588 $as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_compile") 2>conftest.err
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597 test $ac_status = 0; } && {
1598 test -z "$ac_c_werror_flag" ||
1599 test ! -s conftest.err
1600 } && test -s conftest.$ac_objext; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1606 ac_retval=1
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
1611 } # ac_fn_c_try_compile
1613 # ac_fn_c_try_link LINENO
1614 # -----------------------
1615 # Try to link conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_link ()
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 rm -f conftest.$ac_objext conftest$ac_exeext
1620 if { { ac_try="$ac_link"
1621 case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_link") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && {
1636 test -z "$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 } && test -s conftest$ac_exeext && {
1639 test "$cross_compiling" = yes ||
1640 test -x conftest$ac_exeext
1641 }; then :
1642 ac_retval=0
1643 else
1644 $as_echo "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1647 ac_retval=1
1649 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1650 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1651 # interfere with the next link command; also delete a directory that is
1652 # left behind by Apple's compiler. We do this before executing the actions.
1653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status $ac_retval
1657 } # ac_fn_c_try_link
1659 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1660 # -------------------------------------------------------
1661 # Tests whether HEADER exists and can be compiled using the include files in
1662 # INCLUDES, setting the cache variable VAR accordingly.
1663 ac_fn_c_check_header_compile ()
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667 $as_echo_n "checking for $2... " >&6; }
1668 if eval \${$3+:} false; then :
1669 $as_echo_n "(cached) " >&6
1670 else
1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1674 #include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_compile "$LINENO"; then :
1677 eval "$3=yes"
1678 else
1679 eval "$3=no"
1681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 eval ac_res=\$$3
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1685 $as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 } # ac_fn_c_check_header_compile
1690 # ac_fn_c_try_cpp LINENO
1691 # ----------------------
1692 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_cpp ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_cpp conftest.$ac_ext"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } > conftest.i && {
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720 ac_retval=1
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1725 } # ac_fn_c_try_cpp
1727 # ac_fn_c_try_run LINENO
1728 # ----------------------
1729 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1730 # that executables *can* be run.
1731 ac_fn_c_try_run ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_link"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>&5
1742 ac_status=$?
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1745 { { case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_try") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; }; }; then :
1755 ac_retval=0
1756 else
1757 $as_echo "$as_me: program exited with status $ac_status" >&5
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 ac_retval=$ac_status
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1767 } # ac_fn_c_try_run
1769 # ac_fn_c_check_func LINENO FUNC VAR
1770 # ----------------------------------
1771 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1772 ac_fn_c_check_func ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1784 #define $2 innocuous_$2
1786 /* System header to define __stub macros and hopefully few prototypes,
1787 which can conflict with char $2 (); below.
1788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1789 <limits.h> exists even on freestanding compilers. */
1791 #ifdef __STDC__
1792 # include <limits.h>
1793 #else
1794 # include <assert.h>
1795 #endif
1797 #undef $2
1799 /* Override any GCC internal prototype to avoid an error.
1800 Use char because int might match the return type of a GCC
1801 builtin and then its argument prototype would still apply. */
1802 #ifdef __cplusplus
1803 extern "C"
1804 #endif
1805 char $2 ();
1806 /* The GNU C library defines this for functions which it implements
1807 to always fail with ENOSYS. Some functions are actually named
1808 something starting with __ and the normal name is an alias. */
1809 #if defined __stub_$2 || defined __stub___$2
1810 choke me
1811 #endif
1814 main ()
1816 return $2 ();
1818 return 0;
1820 _ACEOF
1821 if ac_fn_c_try_link "$LINENO"; then :
1822 eval "$3=yes"
1823 else
1824 eval "$3=no"
1826 rm -f core conftest.err conftest.$ac_objext \
1827 conftest$ac_exeext conftest.$ac_ext
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 } # ac_fn_c_check_func
1836 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1837 # -------------------------------------------
1838 # Tests whether TYPE exists after having included INCLUDES, setting cache
1839 # variable VAR accordingly.
1840 ac_fn_c_check_type ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 $as_echo_n "checking for $2... " >&6; }
1845 if eval \${$3+:} false; then :
1846 $as_echo_n "(cached) " >&6
1847 else
1848 eval "$3=no"
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1853 main ()
1855 if (sizeof ($2))
1856 return 0;
1858 return 0;
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1866 main ()
1868 if (sizeof (($2)))
1869 return 0;
1871 return 0;
1873 _ACEOF
1874 if ac_fn_c_try_compile "$LINENO"; then :
1876 else
1877 eval "$3=yes"
1879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883 eval ac_res=\$$3
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1885 $as_echo "$ac_res" >&6; }
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 } # ac_fn_c_check_type
1890 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1891 # --------------------------------------------
1892 # Tries to find the compile-time value of EXPR in a program that includes
1893 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1894 # computed
1895 ac_fn_c_compute_int ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if test "$cross_compiling" = yes; then
1899 # Depending upon the size, compute the lo and hi bounds.
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1904 main ()
1906 static int test_array [1 - 2 * !(($2) >= 0)];
1907 test_array [0] = 0;
1908 return test_array [0];
1911 return 0;
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 ac_lo=0 ac_mid=0
1916 while :; do
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1921 main ()
1923 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1924 test_array [0] = 0;
1925 return test_array [0];
1928 return 0;
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 ac_hi=$ac_mid; break
1933 else
1934 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1935 if test $ac_lo -le $ac_mid; then
1936 ac_lo= ac_hi=
1937 break
1939 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 done
1943 else
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1948 main ()
1950 static int test_array [1 - 2 * !(($2) < 0)];
1951 test_array [0] = 0;
1952 return test_array [0];
1955 return 0;
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 ac_hi=-1 ac_mid=-1
1960 while :; do
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1965 main ()
1967 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1968 test_array [0] = 0;
1969 return test_array [0];
1972 return 0;
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_lo=$ac_mid; break
1977 else
1978 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1979 if test $ac_mid -le $ac_hi; then
1980 ac_lo= ac_hi=
1981 break
1983 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 done
1987 else
1988 ac_lo= ac_hi=
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 # Binary search between lo and hi bounds.
1994 while test "x$ac_lo" != "x$ac_hi"; do
1995 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2000 main ()
2002 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2003 test_array [0] = 0;
2004 return test_array [0];
2007 return 0;
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_hi=$ac_mid
2012 else
2013 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016 done
2017 case $ac_lo in #((
2018 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2019 '') ac_retval=1 ;;
2020 esac
2021 else
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2025 static long int longval () { return $2; }
2026 static unsigned long int ulongval () { return $2; }
2027 #include <stdio.h>
2028 #include <stdlib.h>
2030 main ()
2033 FILE *f = fopen ("conftest.val", "w");
2034 if (! f)
2035 return 1;
2036 if (($2) < 0)
2038 long int i = longval ();
2039 if (i != ($2))
2040 return 1;
2041 fprintf (f, "%ld", i);
2043 else
2045 unsigned long int i = ulongval ();
2046 if (i != ($2))
2047 return 1;
2048 fprintf (f, "%lu", i);
2050 /* Do not output a trailing newline, as this causes \r\n confusion
2051 on some platforms. */
2052 return ferror (f) || fclose (f) != 0;
2055 return 0;
2057 _ACEOF
2058 if ac_fn_c_try_run "$LINENO"; then :
2059 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2060 else
2061 ac_retval=1
2063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2064 conftest.$ac_objext conftest.beam conftest.$ac_ext
2065 rm -f conftest.val
2068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069 as_fn_set_status $ac_retval
2071 } # ac_fn_c_compute_int
2073 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2074 # -------------------------------------------------------
2075 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2076 # the include files in INCLUDES and setting the cache variable VAR
2077 # accordingly.
2078 ac_fn_c_check_header_mongrel ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 if eval \${$3+:} false; then :
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2087 eval ac_res=\$$3
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2090 else
2091 # Is the header compilable?
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2093 $as_echo_n "checking $2 usability... " >&6; }
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2097 #include <$2>
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100 ac_header_compiler=yes
2101 else
2102 ac_header_compiler=no
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2106 $as_echo "$ac_header_compiler" >&6; }
2108 # Is the header present?
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2110 $as_echo_n "checking $2 presence... " >&6; }
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112 /* end confdefs.h. */
2113 #include <$2>
2114 _ACEOF
2115 if ac_fn_c_try_cpp "$LINENO"; then :
2116 ac_header_preproc=yes
2117 else
2118 ac_header_preproc=no
2120 rm -f conftest.err conftest.i conftest.$ac_ext
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2122 $as_echo "$ac_header_preproc" >&6; }
2124 # So? What about this header?
2125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2126 yes:no: )
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2128 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2130 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2132 no:yes:* )
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2134 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2136 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2138 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2140 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2142 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2144 esac
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if eval \${$3+:} false; then :
2148 $as_echo_n "(cached) " >&6
2149 else
2150 eval "$3=\$ac_header_compiler"
2152 eval ac_res=\$$3
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 } # ac_fn_c_check_header_mongrel
2159 cat >config.log <<_ACEOF
2160 This file contains any messages produced by compilers while
2161 running configure, to aid debugging if configure makes a mistake.
2163 It was created by GNU Atomic Library $as_me 1.0, which was
2164 generated by GNU Autoconf 2.69. Invocation command line was
2166 $ $0 $@
2168 _ACEOF
2169 exec 5>>config.log
2171 cat <<_ASUNAME
2172 ## --------- ##
2173 ## Platform. ##
2174 ## --------- ##
2176 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2177 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2178 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2179 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2180 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2182 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2183 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2185 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2186 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2187 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2188 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2189 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2190 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2191 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2193 _ASUNAME
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196 for as_dir in $PATH
2198 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=.
2200 $as_echo "PATH: $as_dir"
2201 done
2202 IFS=$as_save_IFS
2204 } >&5
2206 cat >&5 <<_ACEOF
2209 ## ----------- ##
2210 ## Core tests. ##
2211 ## ----------- ##
2213 _ACEOF
2216 # Keep a trace of the command line.
2217 # Strip out --no-create and --no-recursion so they do not pile up.
2218 # Strip out --silent because we don't want to record it for future runs.
2219 # Also quote any args containing shell meta-characters.
2220 # Make two passes to allow for proper duplicate-argument suppression.
2221 ac_configure_args=
2222 ac_configure_args0=
2223 ac_configure_args1=
2224 ac_must_keep_next=false
2225 for ac_pass in 1 2
2227 for ac_arg
2229 case $ac_arg in
2230 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2232 | -silent | --silent | --silen | --sile | --sil)
2233 continue ;;
2234 *\'*)
2235 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236 esac
2237 case $ac_pass in
2238 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2240 as_fn_append ac_configure_args1 " '$ac_arg'"
2241 if test $ac_must_keep_next = true; then
2242 ac_must_keep_next=false # Got value, back to normal.
2243 else
2244 case $ac_arg in
2245 *=* | --config-cache | -C | -disable-* | --disable-* \
2246 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2247 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2248 | -with-* | --with-* | -without-* | --without-* | --x)
2249 case "$ac_configure_args0 " in
2250 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251 esac
2253 -* ) ac_must_keep_next=true ;;
2254 esac
2256 as_fn_append ac_configure_args " '$ac_arg'"
2258 esac
2259 done
2260 done
2261 { ac_configure_args0=; unset ac_configure_args0;}
2262 { ac_configure_args1=; unset ac_configure_args1;}
2264 # When interrupted or exit'd, cleanup temporary files, and complete
2265 # config.log. We remove comments because anyway the quotes in there
2266 # would cause problems or look ugly.
2267 # WARNING: Use '\'' to represent an apostrophe within the trap.
2268 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269 trap 'exit_status=$?
2270 # Save into config.log some information that might help in debugging.
2272 echo
2274 $as_echo "## ---------------- ##
2275 ## Cache variables. ##
2276 ## ---------------- ##"
2277 echo
2278 # The following way of writing the cache mishandles newlines in values,
2280 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2281 eval ac_val=\$$ac_var
2282 case $ac_val in #(
2283 *${as_nl}*)
2284 case $ac_var in #(
2285 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2286 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2287 esac
2288 case $ac_var in #(
2289 _ | IFS | as_nl) ;; #(
2290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2291 *) { eval $ac_var=; unset $ac_var;} ;;
2292 esac ;;
2293 esac
2294 done
2295 (set) 2>&1 |
2296 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2297 *${as_nl}ac_space=\ *)
2298 sed -n \
2299 "s/'\''/'\''\\\\'\'''\''/g;
2300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2301 ;; #(
2303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2305 esac |
2306 sort
2308 echo
2310 $as_echo "## ----------------- ##
2311 ## Output variables. ##
2312 ## ----------------- ##"
2313 echo
2314 for ac_var in $ac_subst_vars
2316 eval ac_val=\$$ac_var
2317 case $ac_val in
2318 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2319 esac
2320 $as_echo "$ac_var='\''$ac_val'\''"
2321 done | sort
2322 echo
2324 if test -n "$ac_subst_files"; then
2325 $as_echo "## ------------------- ##
2326 ## File substitutions. ##
2327 ## ------------------- ##"
2328 echo
2329 for ac_var in $ac_subst_files
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 $as_echo "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2340 if test -s confdefs.h; then
2341 $as_echo "## ----------- ##
2342 ## confdefs.h. ##
2343 ## ----------- ##"
2344 echo
2345 cat confdefs.h
2346 echo
2348 test "$ac_signal" != 0 &&
2349 $as_echo "$as_me: caught signal $ac_signal"
2350 $as_echo "$as_me: exit $exit_status"
2351 } >&5
2352 rm -f core *.core core.conftest.* &&
2353 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2354 exit $exit_status
2356 for ac_signal in 1 2 13 15; do
2357 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2358 done
2359 ac_signal=0
2361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2362 rm -f -r conftest* confdefs.h
2364 $as_echo "/* confdefs.h */" > confdefs.h
2366 # Predefined preprocessor variables.
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_NAME "$PACKAGE_NAME"
2370 _ACEOF
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2374 _ACEOF
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2378 _ACEOF
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_STRING "$PACKAGE_STRING"
2382 _ACEOF
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2386 _ACEOF
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_URL "$PACKAGE_URL"
2390 _ACEOF
2393 # Let the site file select an alternate cache file if it wants to.
2394 # Prefer an explicitly selected file to automatically selected ones.
2395 ac_site_file1=NONE
2396 ac_site_file2=NONE
2397 if test -n "$CONFIG_SITE"; then
2398 # We do not want a PATH search for config.site.
2399 case $CONFIG_SITE in #((
2400 -*) ac_site_file1=./$CONFIG_SITE;;
2401 */*) ac_site_file1=$CONFIG_SITE;;
2402 *) ac_site_file1=./$CONFIG_SITE;;
2403 esac
2404 elif test "x$prefix" != xNONE; then
2405 ac_site_file1=$prefix/share/config.site
2406 ac_site_file2=$prefix/etc/config.site
2407 else
2408 ac_site_file1=$ac_default_prefix/share/config.site
2409 ac_site_file2=$ac_default_prefix/etc/config.site
2411 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2413 test "x$ac_site_file" = xNONE && continue
2414 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2416 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2417 sed 's/^/| /' "$ac_site_file" >&5
2418 . "$ac_site_file" \
2419 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2421 as_fn_error $? "failed to load site script $ac_site_file
2422 See \`config.log' for more details" "$LINENO" 5; }
2424 done
2426 if test -r "$cache_file"; then
2427 # Some versions of bash will fail to source /dev/null (special files
2428 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2429 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2431 $as_echo "$as_me: loading cache $cache_file" >&6;}
2432 case $cache_file in
2433 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2434 *) . "./$cache_file";;
2435 esac
2437 else
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2439 $as_echo "$as_me: creating cache $cache_file" >&6;}
2440 >$cache_file
2443 # Check that the precious variables saved in the cache have kept the same
2444 # value.
2445 ac_cache_corrupted=false
2446 for ac_var in $ac_precious_vars; do
2447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2448 eval ac_new_set=\$ac_env_${ac_var}_set
2449 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2450 eval ac_new_val=\$ac_env_${ac_var}_value
2451 case $ac_old_set,$ac_new_set in
2452 set,)
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2454 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2455 ac_cache_corrupted=: ;;
2456 ,set)
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2458 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2459 ac_cache_corrupted=: ;;
2460 ,);;
2462 if test "x$ac_old_val" != "x$ac_new_val"; then
2463 # differences in whitespace do not lead to failure.
2464 ac_old_val_w=`echo x $ac_old_val`
2465 ac_new_val_w=`echo x $ac_new_val`
2466 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2468 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2469 ac_cache_corrupted=:
2470 else
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2472 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2473 eval $ac_var=\$ac_old_val
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2476 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2478 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2479 fi;;
2480 esac
2481 # Pass precious variables to config.status.
2482 if test "$ac_new_set" = set; then
2483 case $ac_new_val in
2484 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2485 *) ac_arg=$ac_var=$ac_new_val ;;
2486 esac
2487 case " $ac_configure_args " in
2488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2489 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2490 esac
2492 done
2493 if $ac_cache_corrupted; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2497 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2498 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2500 ## -------------------- ##
2501 ## Main body of script. ##
2502 ## -------------------- ##
2504 ac_ext=c
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514 ac_config_headers="$ac_config_headers auto-config.h"
2517 # -------
2518 # Options
2519 # -------
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2522 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2523 # Check whether --enable-version-specific-runtime-libs was given.
2524 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2525 enableval=$enable_version_specific_runtime_libs;
2526 case "$enableval" in
2527 yes|no) ;;
2528 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2529 esac
2531 else
2532 enable_version_specific_runtime_libs=no
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2537 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2539 # We would like our source tree to be readonly. However when releases or
2540 # pre-releases are generated, the flex/bison generated files as well as the
2541 # various formats of manuals need to be included along with the rest of the
2542 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2543 # just that.
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2545 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2546 # Check whether --enable-generated-files-in-srcdir was given.
2547 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2548 enableval=$enable_generated_files_in_srcdir;
2549 case "$enableval" in
2550 yes|no) ;;
2551 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2552 esac
2554 else
2555 enable_generated_files_in_srcdir=no
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2560 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2561 if test "$enable_generated_files_in_srcdir" = yes; then
2562 GENINSRC_TRUE=
2563 GENINSRC_FALSE='#'
2564 else
2565 GENINSRC_TRUE='#'
2566 GENINSRC_FALSE=
2571 # -------
2573 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2575 # You will slowly go insane if you do not grok the following fact: when
2576 # building this library, the top-level /target/ becomes the library's /host/.
2578 # configure then causes --target to default to --host, exactly like any
2579 # other package using autoconf. Therefore, 'target' and 'host' will
2580 # always be the same. This makes sense both for native and cross compilers
2581 # just think about it for a little while. :-)
2583 # Also, if this library is being configured as part of a cross compiler, the
2584 # top-level configure script will pass the "real" host as $with_cross_host.
2586 # Do not delete or change the following two lines. For why, see
2587 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2588 ac_aux_dir=
2589 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2590 if test -f "$ac_dir/install-sh"; then
2591 ac_aux_dir=$ac_dir
2592 ac_install_sh="$ac_aux_dir/install-sh -c"
2593 break
2594 elif test -f "$ac_dir/install.sh"; then
2595 ac_aux_dir=$ac_dir
2596 ac_install_sh="$ac_aux_dir/install.sh -c"
2597 break
2598 elif test -f "$ac_dir/shtool"; then
2599 ac_aux_dir=$ac_dir
2600 ac_install_sh="$ac_aux_dir/shtool install -c"
2601 break
2603 done
2604 if test -z "$ac_aux_dir"; then
2605 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2608 # These three variables are undocumented and unsupported,
2609 # and are intended to be withdrawn in a future Autoconf release.
2610 # They can cause serious problems if a builder's source tree is in a directory
2611 # whose full name contains unusual characters.
2612 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2613 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2614 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2617 # Make sure we can run config.sub.
2618 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2619 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2622 $as_echo_n "checking build system type... " >&6; }
2623 if ${ac_cv_build+:} false; then :
2624 $as_echo_n "(cached) " >&6
2625 else
2626 ac_build_alias=$build_alias
2627 test "x$ac_build_alias" = x &&
2628 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2629 test "x$ac_build_alias" = x &&
2630 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2631 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2632 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2636 $as_echo "$ac_cv_build" >&6; }
2637 case $ac_cv_build in
2638 *-*-*) ;;
2639 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2640 esac
2641 build=$ac_cv_build
2642 ac_save_IFS=$IFS; IFS='-'
2643 set x $ac_cv_build
2644 shift
2645 build_cpu=$1
2646 build_vendor=$2
2647 shift; shift
2648 # Remember, the first character of IFS is used to create $*,
2649 # except with old shells:
2650 build_os=$*
2651 IFS=$ac_save_IFS
2652 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2656 $as_echo_n "checking host system type... " >&6; }
2657 if ${ac_cv_host+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test "x$host_alias" = x; then
2661 ac_cv_host=$ac_cv_build
2662 else
2663 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2664 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2669 $as_echo "$ac_cv_host" >&6; }
2670 case $ac_cv_host in
2671 *-*-*) ;;
2672 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2673 esac
2674 host=$ac_cv_host
2675 ac_save_IFS=$IFS; IFS='-'
2676 set x $ac_cv_host
2677 shift
2678 host_cpu=$1
2679 host_vendor=$2
2680 shift; shift
2681 # Remember, the first character of IFS is used to create $*,
2682 # except with old shells:
2683 host_os=$*
2684 IFS=$ac_save_IFS
2685 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2689 $as_echo_n "checking target system type... " >&6; }
2690 if ${ac_cv_target+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692 else
2693 if test "x$target_alias" = x; then
2694 ac_cv_target=$ac_cv_host
2695 else
2696 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2697 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2702 $as_echo "$ac_cv_target" >&6; }
2703 case $ac_cv_target in
2704 *-*-*) ;;
2705 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2706 esac
2707 target=$ac_cv_target
2708 ac_save_IFS=$IFS; IFS='-'
2709 set x $ac_cv_target
2710 shift
2711 target_cpu=$1
2712 target_vendor=$2
2713 shift; shift
2714 # Remember, the first character of IFS is used to create $*,
2715 # except with old shells:
2716 target_os=$*
2717 IFS=$ac_save_IFS
2718 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2721 # The aliases save the names the user supplied, while $host etc.
2722 # will get canonicalized.
2723 test -n "$target_alias" &&
2724 test "$program_prefix$program_suffix$program_transform_name" = \
2725 NONENONEs,x,x, &&
2726 program_prefix=${target_alias}-
2728 target_alias=${target_alias-$host_alias}
2730 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2731 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2732 # 1.9.0: minimum required version
2733 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2734 # of other PACKAGE_* variables will, however, and there's nothing
2735 # we can do about that; they come from AC_INIT).
2736 # no-dist: we don't want 'dist' and related rules.
2737 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2738 # file in the top srcdir, etc, etc), so stop complaining.
2739 # -Wall: turns on all automake warnings...
2740 # -Wno-portability: ...except this one, since GNU make is required.
2741 # -Wno-override: ... and this one, since we do want this in testsuite.
2742 am__api_version='1.15'
2744 # Find a good install program. We prefer a C program (faster),
2745 # so one script is as good as another. But avoid the broken or
2746 # incompatible versions:
2747 # SysV /etc/install, /usr/sbin/install
2748 # SunOS /usr/etc/install
2749 # IRIX /sbin/install
2750 # AIX /bin/install
2751 # AmigaOS /C/install, which installs bootblocks on floppy discs
2752 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2753 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2754 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2755 # OS/2's system install, which has a completely different semantic
2756 # ./install, which can be erroneously created by make from ./install.sh.
2757 # Reject install programs that cannot install multiple files.
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2759 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2760 if test -z "$INSTALL"; then
2761 if ${ac_cv_path_install+:} false; then :
2762 $as_echo_n "(cached) " >&6
2763 else
2764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 for as_dir in $PATH
2767 IFS=$as_save_IFS
2768 test -z "$as_dir" && as_dir=.
2769 # Account for people who put trailing slashes in PATH elements.
2770 case $as_dir/ in #((
2771 ./ | .// | /[cC]/* | \
2772 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2773 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2774 /usr/ucb/* ) ;;
2776 # OSF1 and SCO ODT 3.0 have their own names for install.
2777 # Don't use installbsd from OSF since it installs stuff as root
2778 # by default.
2779 for ac_prog in ginstall scoinst install; do
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2782 if test $ac_prog = install &&
2783 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2784 # AIX install. It has an incompatible calling convention.
2786 elif test $ac_prog = install &&
2787 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2788 # program-specific install script used by HP pwplus--don't use.
2790 else
2791 rm -rf conftest.one conftest.two conftest.dir
2792 echo one > conftest.one
2793 echo two > conftest.two
2794 mkdir conftest.dir
2795 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2796 test -s conftest.one && test -s conftest.two &&
2797 test -s conftest.dir/conftest.one &&
2798 test -s conftest.dir/conftest.two
2799 then
2800 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2801 break 3
2805 done
2806 done
2808 esac
2810 done
2811 IFS=$as_save_IFS
2813 rm -rf conftest.one conftest.two conftest.dir
2816 if test "${ac_cv_path_install+set}" = set; then
2817 INSTALL=$ac_cv_path_install
2818 else
2819 # As a last resort, use the slow shell script. Don't cache a
2820 # value for INSTALL within a source directory, because that will
2821 # break other packages using the cache if that directory is
2822 # removed, or if the value is a relative name.
2823 INSTALL=$ac_install_sh
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2827 $as_echo "$INSTALL" >&6; }
2829 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2830 # It thinks the first close brace ends the variable substitution.
2831 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2833 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2835 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2838 $as_echo_n "checking whether build environment is sane... " >&6; }
2839 # Reject unsafe characters in $srcdir or the absolute working directory
2840 # name. Accept space and tab only in the latter.
2841 am_lf='
2843 case `pwd` in
2844 *[\\\"\#\$\&\'\`$am_lf]*)
2845 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2846 esac
2847 case $srcdir in
2848 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2849 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2850 esac
2852 # Do 'set' in a subshell so we don't clobber the current shell's
2853 # arguments. Must try -L first in case configure is actually a
2854 # symlink; some systems play weird games with the mod time of symlinks
2855 # (eg FreeBSD returns the mod time of the symlink's containing
2856 # directory).
2857 if (
2858 am_has_slept=no
2859 for am_try in 1 2; do
2860 echo "timestamp, slept: $am_has_slept" > conftest.file
2861 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2862 if test "$*" = "X"; then
2863 # -L didn't work.
2864 set X `ls -t "$srcdir/configure" conftest.file`
2866 if test "$*" != "X $srcdir/configure conftest.file" \
2867 && test "$*" != "X conftest.file $srcdir/configure"; then
2869 # If neither matched, then we have a broken ls. This can happen
2870 # if, for instance, CONFIG_SHELL is bash and it inherits a
2871 # broken ls alias from the environment. This has actually
2872 # happened. Such a system could not be considered "sane".
2873 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2874 alias in your environment" "$LINENO" 5
2876 if test "$2" = conftest.file || test $am_try -eq 2; then
2877 break
2879 # Just in case.
2880 sleep 1
2881 am_has_slept=yes
2882 done
2883 test "$2" = conftest.file
2885 then
2886 # Ok.
2888 else
2889 as_fn_error $? "newly created file is older than distributed files!
2890 Check your system clock" "$LINENO" 5
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2893 $as_echo "yes" >&6; }
2894 # If we didn't sleep, we still need to ensure time stamps of config.status and
2895 # generated files are strictly newer.
2896 am_sleep_pid=
2897 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2898 ( sleep 1 ) &
2899 am_sleep_pid=$!
2902 rm -f conftest.file
2904 test "$program_prefix" != NONE &&
2905 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2906 # Use a double $ so make ignores it.
2907 test "$program_suffix" != NONE &&
2908 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2909 # Double any \ or $.
2910 # By default was `s,x,x', remove it if useless.
2911 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2912 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2914 # Expand $ac_aux_dir to an absolute path.
2915 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2917 if test x"${MISSING+set}" != xset; then
2918 case $am_aux_dir in
2919 *\ * | *\ *)
2920 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2922 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2923 esac
2925 # Use eval to expand $SHELL
2926 if eval "$MISSING --is-lightweight"; then
2927 am_missing_run="$MISSING "
2928 else
2929 am_missing_run=
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2931 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2934 if test x"${install_sh+set}" != xset; then
2935 case $am_aux_dir in
2936 *\ * | *\ *)
2937 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2939 install_sh="\${SHELL} $am_aux_dir/install-sh"
2940 esac
2943 # Installed binaries are usually stripped using 'strip' when the user
2944 # run "make install-strip". However 'strip' might not be the right
2945 # tool to use in cross-compilation environments, therefore Automake
2946 # will honor the 'STRIP' environment variable to overrule this program.
2947 if test "$cross_compiling" != no; then
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2950 set dummy ${ac_tool_prefix}strip; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_STRIP+:} false; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$STRIP"; then
2957 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2970 done
2971 done
2972 IFS=$as_save_IFS
2976 STRIP=$ac_cv_prog_STRIP
2977 if test -n "$STRIP"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2979 $as_echo "$STRIP" >&6; }
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2987 if test -z "$ac_cv_prog_STRIP"; then
2988 ac_ct_STRIP=$STRIP
2989 # Extract the first word of "strip", so it can be a program name with args.
2990 set dummy strip; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -n "$ac_ct_STRIP"; then
2997 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3006 ac_cv_prog_ac_ct_STRIP="strip"
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3010 done
3011 done
3012 IFS=$as_save_IFS
3016 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3017 if test -n "$ac_ct_STRIP"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3019 $as_echo "$ac_ct_STRIP" >&6; }
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3025 if test "x$ac_ct_STRIP" = x; then
3026 STRIP=":"
3027 else
3028 case $cross_compiling:$ac_tool_warned in
3029 yes:)
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3032 ac_tool_warned=yes ;;
3033 esac
3034 STRIP=$ac_ct_STRIP
3036 else
3037 STRIP="$ac_cv_prog_STRIP"
3041 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3044 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3045 if test -z "$MKDIR_P"; then
3046 if ${ac_cv_path_mkdir+:} false; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_prog in mkdir gmkdir; do
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3057 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3058 'mkdir (GNU coreutils) '* | \
3059 'mkdir (coreutils) '* | \
3060 'mkdir (fileutils) '4.1*)
3061 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3062 break 3;;
3063 esac
3064 done
3065 done
3066 done
3067 IFS=$as_save_IFS
3071 test -d ./--version && rmdir ./--version
3072 if test "${ac_cv_path_mkdir+set}" = set; then
3073 MKDIR_P="$ac_cv_path_mkdir -p"
3074 else
3075 # As a last resort, use the slow shell script. Don't cache a
3076 # value for MKDIR_P within a source directory, because that will
3077 # break other packages using the cache if that directory is
3078 # removed, or if the value is a relative name.
3079 MKDIR_P="$ac_install_sh -d"
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3083 $as_echo "$MKDIR_P" >&6; }
3085 for ac_prog in gawk mawk nawk awk
3087 # Extract the first word of "$ac_prog", so it can be a program name with args.
3088 set dummy $ac_prog; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if ${ac_cv_prog_AWK+:} false; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 if test -n "$AWK"; then
3095 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3096 else
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3100 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104 ac_cv_prog_AWK="$ac_prog"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3108 done
3109 done
3110 IFS=$as_save_IFS
3114 AWK=$ac_cv_prog_AWK
3115 if test -n "$AWK"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3117 $as_echo "$AWK" >&6; }
3118 else
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3124 test -n "$AWK" && break
3125 done
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3128 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3129 set x ${MAKE-make}
3130 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3131 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 cat >conftest.make <<\_ACEOF
3135 SHELL = /bin/sh
3136 all:
3137 @echo '@@@%%%=$(MAKE)=@@@%%%'
3138 _ACEOF
3139 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3140 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3141 *@@@%%%=?*=@@@%%%*)
3142 eval ac_cv_prog_make_${ac_make}_set=yes;;
3144 eval ac_cv_prog_make_${ac_make}_set=no;;
3145 esac
3146 rm -f conftest.make
3148 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150 $as_echo "yes" >&6; }
3151 SET_MAKE=
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 SET_MAKE="MAKE=${MAKE-make}"
3158 rm -rf .tst 2>/dev/null
3159 mkdir .tst 2>/dev/null
3160 if test -d .tst; then
3161 am__leading_dot=.
3162 else
3163 am__leading_dot=_
3165 rmdir .tst 2>/dev/null
3167 # Check whether --enable-silent-rules was given.
3168 if test "${enable_silent_rules+set}" = set; then :
3169 enableval=$enable_silent_rules;
3172 case $enable_silent_rules in # (((
3173 yes) AM_DEFAULT_VERBOSITY=0;;
3174 no) AM_DEFAULT_VERBOSITY=1;;
3175 *) AM_DEFAULT_VERBOSITY=1;;
3176 esac
3177 am_make=${MAKE-make}
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3179 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3180 if ${am_cv_make_support_nested_variables+:} false; then :
3181 $as_echo_n "(cached) " >&6
3182 else
3183 if $as_echo 'TRUE=$(BAR$(V))
3184 BAR0=false
3185 BAR1=true
3187 am__doit:
3188 @$(TRUE)
3189 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3190 am_cv_make_support_nested_variables=yes
3191 else
3192 am_cv_make_support_nested_variables=no
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3196 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3197 if test $am_cv_make_support_nested_variables = yes; then
3198 AM_V='$(V)'
3199 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3200 else
3201 AM_V=$AM_DEFAULT_VERBOSITY
3202 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3204 AM_BACKSLASH='\'
3206 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3207 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3208 # is not polluted with repeated "-I."
3209 am__isrc=' -I$(srcdir)'
3210 # test to see if srcdir already configured
3211 if test -f $srcdir/config.status; then
3212 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3216 # test whether we have cygpath
3217 if test -z "$CYGPATH_W"; then
3218 if (cygpath --version) >/dev/null 2>/dev/null; then
3219 CYGPATH_W='cygpath -w'
3220 else
3221 CYGPATH_W=echo
3226 # Define the identity of the package.
3227 PACKAGE='libatomic'
3228 VERSION='1.0'
3231 cat >>confdefs.h <<_ACEOF
3232 #define PACKAGE "$PACKAGE"
3233 _ACEOF
3236 cat >>confdefs.h <<_ACEOF
3237 #define VERSION "$VERSION"
3238 _ACEOF
3240 # Some tools Automake needs.
3242 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3245 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3248 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3251 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3254 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3256 # For better backward compatibility. To be removed once Automake 1.9.x
3257 # dies out for good. For more background, see:
3258 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3259 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3260 mkdir_p='$(MKDIR_P)'
3262 # We need awk for the "check" target (and possibly the TAP driver). The
3263 # system "awk" is bad on some platforms.
3264 # Always define AMTAR for backward compatibility. Yes, it's still used
3265 # in the wild :-( We should find a proper way to deprecate it ...
3266 AMTAR='$${TAR-tar}'
3269 # We'll loop over all known methods to create a tar archive until one works.
3270 _am_tools='gnutar pax cpio none'
3272 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3279 # POSIX will say in a future version that running "rm -f" with no argument
3280 # is OK; and we want to be able to make that assumption in our Makefile
3281 # recipes. So use an aggressive probe to check that the usage we want is
3282 # actually supported "in the wild" to an acceptable degree.
3283 # See automake bug#10828.
3284 # To make any issue more visible, cause the running configure to be aborted
3285 # by default if the 'rm' program in use doesn't match our expectations; the
3286 # user can still override this though.
3287 if rm -f && rm -fr && rm -rf; then : OK; else
3288 cat >&2 <<'END'
3289 Oops!
3291 Your 'rm' program seems unable to run without file operands specified
3292 on the command line, even when the '-f' option is present. This is contrary
3293 to the behaviour of most rm programs out there, and not conforming with
3294 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3296 Please tell bug-automake@gnu.org about your system, including the value
3297 of your $PATH and any error possibly output before this message. This
3298 can help us improve future automake versions.
3301 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3302 echo 'Configuration will proceed anyway, since you have set the' >&2
3303 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3304 echo >&2
3305 else
3306 cat >&2 <<'END'
3307 Aborting the configuration process, to ensure you take notice of the issue.
3309 You can download and install GNU coreutils to get an 'rm' implementation
3310 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3312 If you want to complete the configuration process using your problematic
3313 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3314 to "yes", and re-run configure.
3317 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3321 # Default to --enable-multilib
3322 # Check whether --enable-multilib was given.
3323 if test "${enable_multilib+set}" = set; then :
3324 enableval=$enable_multilib; case "$enableval" in
3325 yes) multilib=yes ;;
3326 no) multilib=no ;;
3327 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3328 esac
3329 else
3330 multilib=yes
3334 # We may get other options which we leave undocumented:
3335 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3336 # See config-ml.in if you want the gory details.
3338 if test "$srcdir" = "."; then
3339 if test "$with_target_subdir" != "."; then
3340 multi_basedir="$srcdir/$with_multisrctop../.."
3341 else
3342 multi_basedir="$srcdir/$with_multisrctop.."
3344 else
3345 multi_basedir="$srcdir/.."
3349 # Even if the default multilib is not a cross compilation,
3350 # it may be that some of the other multilibs are.
3351 if test $cross_compiling = no && test $multilib = yes \
3352 && test "x${with_multisubdir}" != x ; then
3353 cross_compiling=maybe
3356 ac_config_commands="$ac_config_commands default-1"
3360 # Check whether --with-toolexeclibdir was given.
3361 if test "${with_toolexeclibdir+set}" = set; then :
3362 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3366 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3368 esac
3369 else
3370 with_toolexeclibdir=no
3375 # Calculate toolexeclibdir
3376 # Also toolexecdir, though it's only used in toolexeclibdir
3377 case ${enable_version_specific_runtime_libs} in
3378 yes)
3379 # Need the gcc compiler version to know where to install libraries
3380 # and header files if --enable-version-specific-runtime-libs option
3381 # is selected.
3382 toolexecdir='$(libdir)/gcc/$(target_alias)'
3383 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3386 if test -n "$with_cross_host" &&
3387 test x"$with_cross_host" != x"no"; then
3388 # Install a library built with a cross compiler in tooldir, not libdir.
3389 toolexecdir='$(exec_prefix)/$(target_alias)'
3390 case ${with_toolexeclibdir} in
3392 toolexeclibdir='$(toolexecdir)/lib'
3395 toolexeclibdir=${with_toolexeclibdir}
3397 esac
3398 else
3399 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3400 toolexeclibdir='$(libdir)'
3402 multi_os_directory=`$CC -print-multi-os-directory`
3403 case $multi_os_directory in
3404 .) ;; # Avoid trailing /.
3405 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3406 esac
3408 esac
3412 # Check the compiler.
3413 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3414 # We must force CC to /not/ be precious variables; otherwise
3415 # the wrong, non-multilib-adjusted value will be used in multilibs.
3416 # As a side effect, we have to subst CFLAGS ourselves.
3420 ac_ext=c
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425 if test -n "$ac_tool_prefix"; then
3426 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3427 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if ${ac_cv_prog_CC+:} false; then :
3431 $as_echo_n "(cached) " >&6
3432 else
3433 if test -n "$CC"; then
3434 ac_cv_prog_CC="$CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 break 2
3447 done
3448 done
3449 IFS=$as_save_IFS
3453 CC=$ac_cv_prog_CC
3454 if test -n "$CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456 $as_echo "$CC" >&6; }
3457 else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3464 if test -z "$ac_cv_prog_CC"; then
3465 ac_ct_CC=$CC
3466 # Extract the first word of "gcc", so it can be a program name with args.
3467 set dummy gcc; ac_word=$2
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 $as_echo_n "checking for $ac_word... " >&6; }
3470 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 if test -n "$ac_ct_CC"; then
3474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_prog_ac_ct_CC="gcc"
3484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3487 done
3488 done
3489 IFS=$as_save_IFS
3493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3494 if test -n "$ac_ct_CC"; then
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3496 $as_echo "$ac_ct_CC" >&6; }
3497 else
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
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
3513 else
3514 CC="$ac_cv_prog_CC"
3517 if test -z "$CC"; then
3518 if test -n "$ac_tool_prefix"; then
3519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3520 set dummy ${ac_tool_prefix}cc; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if ${ac_cv_prog_CC+:} false; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_CC="${ac_tool_prefix}cc"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3540 done
3541 done
3542 IFS=$as_save_IFS
3546 CC=$ac_cv_prog_CC
3547 if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3550 else
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3558 if test -z "$CC"; then
3559 # Extract the first word of "cc", so it can be a program name with args.
3560 set dummy cc; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if ${ac_cv_prog_CC+:} false; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 if test -n "$CC"; then
3567 ac_cv_prog_CC="$CC" # Let the user override the test.
3568 else
3569 ac_prog_rejected=no
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 for as_dir in $PATH
3573 IFS=$as_save_IFS
3574 test -z "$as_dir" && as_dir=.
3575 for ac_exec_ext in '' $ac_executable_extensions; do
3576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3578 ac_prog_rejected=yes
3579 continue
3581 ac_cv_prog_CC="cc"
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 break 2
3585 done
3586 done
3587 IFS=$as_save_IFS
3589 if test $ac_prog_rejected = yes; then
3590 # We found a bogon in the path, so make sure we never use it.
3591 set dummy $ac_cv_prog_CC
3592 shift
3593 if test $# != 0; then
3594 # We chose a different compiler from the bogus one.
3595 # However, it has the same basename, so the bogon will be chosen
3596 # first if we set CC to just the basename; use the full file name.
3597 shift
3598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3603 CC=$ac_cv_prog_CC
3604 if test -n "$CC"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3606 $as_echo "$CC" >&6; }
3607 else
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3614 if test -z "$CC"; then
3615 if test -n "$ac_tool_prefix"; then
3616 for ac_prog in cl.exe
3618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if ${ac_cv_prog_CC+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 if test -n "$CC"; then
3626 ac_cv_prog_CC="$CC" # Let the user override the test.
3627 else
3628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3631 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 break 2
3639 done
3640 done
3641 IFS=$as_save_IFS
3645 CC=$ac_cv_prog_CC
3646 if test -n "$CC"; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3648 $as_echo "$CC" >&6; }
3649 else
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 $as_echo "no" >&6; }
3655 test -n "$CC" && break
3656 done
3658 if test -z "$CC"; then
3659 ac_ct_CC=$CC
3660 for ac_prog in cl.exe
3662 # Extract the first word of "$ac_prog", so it can be a program name with args.
3663 set dummy $ac_prog; ac_word=$2
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3665 $as_echo_n "checking for $ac_word... " >&6; }
3666 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3667 $as_echo_n "(cached) " >&6
3668 else
3669 if test -n "$ac_ct_CC"; then
3670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3671 else
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3679 ac_cv_prog_ac_ct_CC="$ac_prog"
3680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 break 2
3683 done
3684 done
3685 IFS=$as_save_IFS
3689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3690 if test -n "$ac_ct_CC"; then
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3692 $as_echo "$ac_ct_CC" >&6; }
3693 else
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3695 $as_echo "no" >&6; }
3699 test -n "$ac_ct_CC" && break
3700 done
3702 if test "x$ac_ct_CC" = x; then
3703 CC=""
3704 else
3705 case $cross_compiling:$ac_tool_warned in
3706 yes:)
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3709 ac_tool_warned=yes ;;
3710 esac
3711 CC=$ac_ct_CC
3718 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error $? "no acceptable C compiler found in \$PATH
3721 See \`config.log' for more details" "$LINENO" 5; }
3723 # Provide some information about the compiler.
3724 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3725 set X $ac_compile
3726 ac_compiler=$2
3727 for ac_option in --version -v -V -qversion; do
3728 { { ac_try="$ac_compiler $ac_option >&5"
3729 case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;;
3732 esac
3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734 $as_echo "$ac_try_echo"; } >&5
3735 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3736 ac_status=$?
3737 if test -s conftest.err; then
3738 sed '10a\
3739 ... rest of stderr output deleted ...
3740 10q' conftest.err >conftest.er1
3741 cat conftest.er1 >&5
3743 rm -f conftest.er1 conftest.err
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }
3746 done
3748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3749 /* end confdefs.h. */
3752 main ()
3756 return 0;
3758 _ACEOF
3759 ac_clean_files_save=$ac_clean_files
3760 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3761 # Try to create an executable without -o first, disregard a.out.
3762 # It will help us diagnose broken compilers, and finding out an intuition
3763 # of exeext.
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3765 $as_echo_n "checking whether the C compiler works... " >&6; }
3766 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3768 # The possible output files:
3769 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3771 ac_rmfiles=
3772 for ac_file in $ac_files
3774 case $ac_file in
3775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3776 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3777 esac
3778 done
3779 rm -f $ac_rmfiles
3781 if { { ac_try="$ac_link_default"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3787 $as_echo "$ac_try_echo"; } >&5
3788 (eval "$ac_link_default") 2>&5
3789 ac_status=$?
3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791 test $ac_status = 0; }; then :
3792 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3793 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3794 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3795 # so that the user can short-circuit this test for compilers unknown to
3796 # Autoconf.
3797 for ac_file in $ac_files ''
3799 test -f "$ac_file" || continue
3800 case $ac_file in
3801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3803 [ab].out )
3804 # We found the default executable, but exeext='' is most
3805 # certainly right.
3806 break;;
3807 *.* )
3808 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3809 then :; else
3810 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3812 # We set ac_cv_exeext here because the later test for it is not
3813 # safe: cross compilers may not add the suffix if given an `-o'
3814 # argument, so we may need to know it at that point already.
3815 # Even if this section looks crufty: it has the advantage of
3816 # actually working.
3817 break;;
3819 break;;
3820 esac
3821 done
3822 test "$ac_cv_exeext" = no && ac_cv_exeext=
3824 else
3825 ac_file=''
3827 if test -z "$ac_file"; then :
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3830 $as_echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835 as_fn_error 77 "C compiler cannot create executables
3836 See \`config.log' for more details" "$LINENO" 5; }
3837 else
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3839 $as_echo "yes" >&6; }
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3842 $as_echo_n "checking for C compiler default output file name... " >&6; }
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3844 $as_echo "$ac_file" >&6; }
3845 ac_exeext=$ac_cv_exeext
3847 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3848 ac_clean_files=$ac_clean_files_save
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3850 $as_echo_n "checking for suffix of executables... " >&6; }
3851 if { { ac_try="$ac_link"
3852 case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855 esac
3856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857 $as_echo "$ac_try_echo"; } >&5
3858 (eval "$ac_link") 2>&5
3859 ac_status=$?
3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }; then :
3862 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3863 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3864 # work properly (i.e., refer to `conftest.exe'), while it won't with
3865 # `rm'.
3866 for ac_file in conftest.exe conftest conftest.*; do
3867 test -f "$ac_file" || continue
3868 case $ac_file in
3869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3870 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3871 break;;
3872 * ) break;;
3873 esac
3874 done
3875 else
3876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3879 See \`config.log' for more details" "$LINENO" 5; }
3881 rm -f conftest conftest$ac_cv_exeext
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3883 $as_echo "$ac_cv_exeext" >&6; }
3885 rm -f conftest.$ac_ext
3886 EXEEXT=$ac_cv_exeext
3887 ac_exeext=$EXEEXT
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3890 #include <stdio.h>
3892 main ()
3894 FILE *f = fopen ("conftest.out", "w");
3895 return ferror (f) || fclose (f) != 0;
3898 return 0;
3900 _ACEOF
3901 ac_clean_files="$ac_clean_files conftest.out"
3902 # Check that the compiler produces executables we can run. If not, either
3903 # the compiler is broken, or we cross compile.
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3905 $as_echo_n "checking whether we are cross compiling... " >&6; }
3906 if test "$cross_compiling" != yes; then
3907 { { ac_try="$ac_link"
3908 case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3913 $as_echo "$ac_try_echo"; } >&5
3914 (eval "$ac_link") 2>&5
3915 ac_status=$?
3916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3917 test $ac_status = 0; }
3918 if { ac_try='./conftest$ac_cv_exeext'
3919 { { case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922 esac
3923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924 $as_echo "$ac_try_echo"; } >&5
3925 (eval "$ac_try") 2>&5
3926 ac_status=$?
3927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3928 test $ac_status = 0; }; }; then
3929 cross_compiling=no
3930 else
3931 if test "$cross_compiling" = maybe; then
3932 cross_compiling=yes
3933 else
3934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3936 as_fn_error $? "cannot run C compiled programs.
3937 If you meant to cross compile, use \`--host'.
3938 See \`config.log' for more details" "$LINENO" 5; }
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3943 $as_echo "$cross_compiling" >&6; }
3945 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3946 ac_clean_files=$ac_clean_files_save
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3948 $as_echo_n "checking for suffix of object files... " >&6; }
3949 if ${ac_cv_objext+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3956 main ()
3960 return 0;
3962 _ACEOF
3963 rm -f conftest.o conftest.obj
3964 if { { ac_try="$ac_compile"
3965 case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3968 esac
3969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3970 $as_echo "$ac_try_echo"; } >&5
3971 (eval "$ac_compile") 2>&5
3972 ac_status=$?
3973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3974 test $ac_status = 0; }; then :
3975 for ac_file in conftest.o conftest.obj conftest.*; do
3976 test -f "$ac_file" || continue;
3977 case $ac_file in
3978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3979 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3980 break;;
3981 esac
3982 done
3983 else
3984 $as_echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989 as_fn_error $? "cannot compute suffix of object files: cannot compile
3990 See \`config.log' for more details" "$LINENO" 5; }
3992 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3995 $as_echo "$ac_cv_objext" >&6; }
3996 OBJEXT=$ac_cv_objext
3997 ac_objext=$OBJEXT
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3999 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4000 if ${ac_cv_c_compiler_gnu+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4007 main ()
4009 #ifndef __GNUC__
4010 choke me
4011 #endif
4014 return 0;
4016 _ACEOF
4017 if ac_fn_c_try_compile "$LINENO"; then :
4018 ac_compiler_gnu=yes
4019 else
4020 ac_compiler_gnu=no
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4027 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4028 if test $ac_compiler_gnu = yes; then
4029 GCC=yes
4030 else
4031 GCC=
4033 ac_test_CFLAGS=${CFLAGS+set}
4034 ac_save_CFLAGS=$CFLAGS
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4036 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4037 if ${ac_cv_prog_cc_g+:} false; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 ac_save_c_werror_flag=$ac_c_werror_flag
4041 ac_c_werror_flag=yes
4042 ac_cv_prog_cc_g=no
4043 CFLAGS="-g"
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4048 main ()
4052 return 0;
4054 _ACEOF
4055 if ac_fn_c_try_compile "$LINENO"; then :
4056 ac_cv_prog_cc_g=yes
4057 else
4058 CFLAGS=""
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4063 main ()
4067 return 0;
4069 _ACEOF
4070 if ac_fn_c_try_compile "$LINENO"; then :
4072 else
4073 ac_c_werror_flag=$ac_save_c_werror_flag
4074 CFLAGS="-g"
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4079 main ()
4083 return 0;
4085 _ACEOF
4086 if ac_fn_c_try_compile "$LINENO"; then :
4087 ac_cv_prog_cc_g=yes
4089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 ac_c_werror_flag=$ac_save_c_werror_flag
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4097 $as_echo "$ac_cv_prog_cc_g" >&6; }
4098 if test "$ac_test_CFLAGS" = set; then
4099 CFLAGS=$ac_save_CFLAGS
4100 elif test $ac_cv_prog_cc_g = yes; then
4101 if test "$GCC" = yes; then
4102 CFLAGS="-g -O2"
4103 else
4104 CFLAGS="-g"
4106 else
4107 if test "$GCC" = yes; then
4108 CFLAGS="-O2"
4109 else
4110 CFLAGS=
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4114 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4115 if ${ac_cv_prog_cc_c89+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 ac_cv_prog_cc_c89=no
4119 ac_save_CC=$CC
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122 #include <stdarg.h>
4123 #include <stdio.h>
4124 struct stat;
4125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4126 struct buf { int x; };
4127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4128 static char *e (p, i)
4129 char **p;
4130 int i;
4132 return p[i];
4134 static char *f (char * (*g) (char **, int), char **p, ...)
4136 char *s;
4137 va_list v;
4138 va_start (v,p);
4139 s = g (p, va_arg (v,int));
4140 va_end (v);
4141 return s;
4144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4145 function prototypes and stuff, but not '\xHH' hex character constants.
4146 These don't provoke an error unfortunately, instead are silently treated
4147 as 'x'. The following induces an error, until -std is added to get
4148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4149 array size at least. It's necessary to write '\x00'==0 to get something
4150 that's true only with -std. */
4151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4154 inside strings and character constants. */
4155 #define FOO(x) 'x'
4156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4158 int test (int i, double x);
4159 struct s1 {int (*f) (int a);};
4160 struct s2 {int (*f) (double a);};
4161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4162 int argc;
4163 char **argv;
4165 main ()
4167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4169 return 0;
4171 _ACEOF
4172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4175 CC="$ac_save_CC $ac_arg"
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_prog_cc_c89=$ac_arg
4179 rm -f core conftest.err conftest.$ac_objext
4180 test "x$ac_cv_prog_cc_c89" != "xno" && break
4181 done
4182 rm -f conftest.$ac_ext
4183 CC=$ac_save_CC
4186 # AC_CACHE_VAL
4187 case "x$ac_cv_prog_cc_c89" in
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4190 $as_echo "none needed" >&6; } ;;
4191 xno)
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4193 $as_echo "unsupported" >&6; } ;;
4195 CC="$CC $ac_cv_prog_cc_c89"
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4197 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4198 esac
4199 if test "x$ac_cv_prog_cc_c89" != xno; then :
4203 ac_ext=c
4204 ac_cpp='$CPP $CPPFLAGS'
4205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 ac_ext=c
4210 ac_cpp='$CPP $CPPFLAGS'
4211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4215 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4216 if ${am_cv_prog_cc_c_o+:} false; then :
4217 $as_echo_n "(cached) " >&6
4218 else
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4223 main ()
4227 return 0;
4229 _ACEOF
4230 # Make sure it works both with $CC and with simple cc.
4231 # Following AC_PROG_CC_C_O, we do the test twice because some
4232 # compilers refuse to overwrite an existing .o file with -o,
4233 # though they will create one.
4234 am_cv_prog_cc_c_o=yes
4235 for am_i in 1 2; do
4236 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4237 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4238 ac_status=$?
4239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240 (exit $ac_status); } \
4241 && test -f conftest2.$ac_objext; then
4242 : OK
4243 else
4244 am_cv_prog_cc_c_o=no
4245 break
4247 done
4248 rm -f core conftest*
4249 unset am_i
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4252 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4253 if test "$am_cv_prog_cc_c_o" != yes; then
4254 # Losing compiler, so override with the script.
4255 # FIXME: It is wrong to rewrite CC.
4256 # But if we don't then we get into trouble of one sort or another.
4257 # A longer-term fix would be to have automake use am__CC in this case,
4258 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4259 CC="$am_aux_dir/compile $CC"
4261 ac_ext=c
4262 ac_cpp='$CPP $CPPFLAGS'
4263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4267 DEPDIR="${am__leading_dot}deps"
4269 ac_config_commands="$ac_config_commands depfiles"
4272 am_make=${MAKE-make}
4273 cat > confinc << 'END'
4274 am__doit:
4275 @echo this is the am__doit target
4276 .PHONY: am__doit
4278 # If we don't find an include directive, just comment out the code.
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4280 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4281 am__include="#"
4282 am__quote=
4283 _am_result=none
4284 # First try GNU make style include.
4285 echo "include confinc" > confmf
4286 # Ignore all kinds of additional output from 'make'.
4287 case `$am_make -s -f confmf 2> /dev/null` in #(
4288 *the\ am__doit\ target*)
4289 am__include=include
4290 am__quote=
4291 _am_result=GNU
4293 esac
4294 # Now try BSD make style include.
4295 if test "$am__include" = "#"; then
4296 echo '.include "confinc"' > confmf
4297 case `$am_make -s -f confmf 2> /dev/null` in #(
4298 *the\ am__doit\ target*)
4299 am__include=.include
4300 am__quote="\""
4301 _am_result=BSD
4303 esac
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4308 $as_echo "$_am_result" >&6; }
4309 rm -f confinc confmf
4311 # Check whether --enable-dependency-tracking was given.
4312 if test "${enable_dependency_tracking+set}" = set; then :
4313 enableval=$enable_dependency_tracking;
4316 if test "x$enable_dependency_tracking" != xno; then
4317 am_depcomp="$ac_aux_dir/depcomp"
4318 AMDEPBACKSLASH='\'
4319 am__nodep='_no'
4321 if test "x$enable_dependency_tracking" != xno; then
4322 AMDEP_TRUE=
4323 AMDEP_FALSE='#'
4324 else
4325 AMDEP_TRUE='#'
4326 AMDEP_FALSE=
4331 depcc="$CC" am_compiler_list=
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4334 $as_echo_n "checking dependency style of $depcc... " >&6; }
4335 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4339 # We make a subdir and do the tests there. Otherwise we can end up
4340 # making bogus files that we don't know about and never remove. For
4341 # instance it was reported that on HP-UX the gcc test will end up
4342 # making a dummy file named 'D' -- because '-MD' means "put the output
4343 # in D".
4344 rm -rf conftest.dir
4345 mkdir conftest.dir
4346 # Copy depcomp to subdir because otherwise we won't find it if we're
4347 # using a relative directory.
4348 cp "$am_depcomp" conftest.dir
4349 cd conftest.dir
4350 # We will build objects and dependencies in a subdirectory because
4351 # it helps to detect inapplicable dependency modes. For instance
4352 # both Tru64's cc and ICC support -MD to output dependencies as a
4353 # side effect of compilation, but ICC will put the dependencies in
4354 # the current directory while Tru64 will put them in the object
4355 # directory.
4356 mkdir sub
4358 am_cv_CC_dependencies_compiler_type=none
4359 if test "$am_compiler_list" = ""; then
4360 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4362 am__universal=false
4363 case " $depcc " in #(
4364 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4365 esac
4367 for depmode in $am_compiler_list; do
4368 # Setup a source with many dependencies, because some compilers
4369 # like to wrap large dependency lists on column 80 (with \), and
4370 # we should not choose a depcomp mode which is confused by this.
4372 # We need to recreate these files for each test, as the compiler may
4373 # overwrite some of them when testing with obscure command lines.
4374 # This happens at least with the AIX C compiler.
4375 : > sub/conftest.c
4376 for i in 1 2 3 4 5 6; do
4377 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4378 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4379 # Solaris 10 /bin/sh.
4380 echo '/* dummy */' > sub/conftst$i.h
4381 done
4382 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4384 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4385 # mode. It turns out that the SunPro C++ compiler does not properly
4386 # handle '-M -o', and we need to detect this. Also, some Intel
4387 # versions had trouble with output in subdirs.
4388 am__obj=sub/conftest.${OBJEXT-o}
4389 am__minus_obj="-o $am__obj"
4390 case $depmode in
4391 gcc)
4392 # This depmode causes a compiler race in universal mode.
4393 test "$am__universal" = false || continue
4395 nosideeffect)
4396 # After this tag, mechanisms are not by side-effect, so they'll
4397 # only be used when explicitly requested.
4398 if test "x$enable_dependency_tracking" = xyes; then
4399 continue
4400 else
4401 break
4404 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4405 # This compiler won't grok '-c -o', but also, the minuso test has
4406 # not run yet. These depmodes are late enough in the game, and
4407 # so weak that their functioning should not be impacted.
4408 am__obj=conftest.${OBJEXT-o}
4409 am__minus_obj=
4411 none) break ;;
4412 esac
4413 if depmode=$depmode \
4414 source=sub/conftest.c object=$am__obj \
4415 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4416 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4417 >/dev/null 2>conftest.err &&
4418 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4419 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4420 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4421 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4422 # icc doesn't choke on unknown options, it will just issue warnings
4423 # or remarks (even with -Werror). So we grep stderr for any message
4424 # that says an option was ignored or not supported.
4425 # When given -MP, icc 7.0 and 7.1 complain thusly:
4426 # icc: Command line warning: ignoring option '-M'; no argument required
4427 # The diagnosis changed in icc 8.0:
4428 # icc: Command line remark: option '-MP' not supported
4429 if (grep 'ignoring option' conftest.err ||
4430 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4431 am_cv_CC_dependencies_compiler_type=$depmode
4432 break
4435 done
4437 cd ..
4438 rm -rf conftest.dir
4439 else
4440 am_cv_CC_dependencies_compiler_type=none
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4445 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4446 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4449 test "x$enable_dependency_tracking" != xno \
4450 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4451 am__fastdepCC_TRUE=
4452 am__fastdepCC_FALSE='#'
4453 else
4454 am__fastdepCC_TRUE='#'
4455 am__fastdepCC_FALSE=
4459 # By default we simply use the C compiler to build assembly code.
4461 test "${CCAS+set}" = set || CCAS=$CC
4462 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4466 depcc="$CCAS" am_compiler_list=
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4469 $as_echo_n "checking dependency style of $depcc... " >&6; }
4470 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4474 # We make a subdir and do the tests there. Otherwise we can end up
4475 # making bogus files that we don't know about and never remove. For
4476 # instance it was reported that on HP-UX the gcc test will end up
4477 # making a dummy file named 'D' -- because '-MD' means "put the output
4478 # in D".
4479 rm -rf conftest.dir
4480 mkdir conftest.dir
4481 # Copy depcomp to subdir because otherwise we won't find it if we're
4482 # using a relative directory.
4483 cp "$am_depcomp" conftest.dir
4484 cd conftest.dir
4485 # We will build objects and dependencies in a subdirectory because
4486 # it helps to detect inapplicable dependency modes. For instance
4487 # both Tru64's cc and ICC support -MD to output dependencies as a
4488 # side effect of compilation, but ICC will put the dependencies in
4489 # the current directory while Tru64 will put them in the object
4490 # directory.
4491 mkdir sub
4493 am_cv_CCAS_dependencies_compiler_type=none
4494 if test "$am_compiler_list" = ""; then
4495 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4497 am__universal=false
4500 for depmode in $am_compiler_list; do
4501 # Setup a source with many dependencies, because some compilers
4502 # like to wrap large dependency lists on column 80 (with \), and
4503 # we should not choose a depcomp mode which is confused by this.
4505 # We need to recreate these files for each test, as the compiler may
4506 # overwrite some of them when testing with obscure command lines.
4507 # This happens at least with the AIX C compiler.
4508 : > sub/conftest.c
4509 for i in 1 2 3 4 5 6; do
4510 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4511 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4512 # Solaris 10 /bin/sh.
4513 echo '/* dummy */' > sub/conftst$i.h
4514 done
4515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4517 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4518 # mode. It turns out that the SunPro C++ compiler does not properly
4519 # handle '-M -o', and we need to detect this. Also, some Intel
4520 # versions had trouble with output in subdirs.
4521 am__obj=sub/conftest.${OBJEXT-o}
4522 am__minus_obj="-o $am__obj"
4523 case $depmode in
4524 gcc)
4525 # This depmode causes a compiler race in universal mode.
4526 test "$am__universal" = false || continue
4528 nosideeffect)
4529 # After this tag, mechanisms are not by side-effect, so they'll
4530 # only be used when explicitly requested.
4531 if test "x$enable_dependency_tracking" = xyes; then
4532 continue
4533 else
4534 break
4537 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4538 # This compiler won't grok '-c -o', but also, the minuso test has
4539 # not run yet. These depmodes are late enough in the game, and
4540 # so weak that their functioning should not be impacted.
4541 am__obj=conftest.${OBJEXT-o}
4542 am__minus_obj=
4544 none) break ;;
4545 esac
4546 if depmode=$depmode \
4547 source=sub/conftest.c object=$am__obj \
4548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4549 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4550 >/dev/null 2>conftest.err &&
4551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4553 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4555 # icc doesn't choke on unknown options, it will just issue warnings
4556 # or remarks (even with -Werror). So we grep stderr for any message
4557 # that says an option was ignored or not supported.
4558 # When given -MP, icc 7.0 and 7.1 complain thusly:
4559 # icc: Command line warning: ignoring option '-M'; no argument required
4560 # The diagnosis changed in icc 8.0:
4561 # icc: Command line remark: option '-MP' not supported
4562 if (grep 'ignoring option' conftest.err ||
4563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4564 am_cv_CCAS_dependencies_compiler_type=$depmode
4565 break
4568 done
4570 cd ..
4571 rm -rf conftest.dir
4572 else
4573 am_cv_CCAS_dependencies_compiler_type=none
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4578 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4579 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4582 test "x$enable_dependency_tracking" != xno \
4583 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4584 am__fastdepCCAS_TRUE=
4585 am__fastdepCCAS_FALSE='#'
4586 else
4587 am__fastdepCCAS_TRUE='#'
4588 am__fastdepCCAS_FALSE=
4596 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4597 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4598 # in both places for now and restore CFLAGS at the end of config.
4599 save_CFLAGS="$CFLAGS"
4601 # Find other programs we need.
4602 if test -n "$ac_tool_prefix"; then
4603 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4604 set dummy ${ac_tool_prefix}ar; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if ${ac_cv_prog_AR+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -n "$AR"; then
4611 ac_cv_prog_AR="$AR" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620 ac_cv_prog_AR="${ac_tool_prefix}ar"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4624 done
4625 done
4626 IFS=$as_save_IFS
4630 AR=$ac_cv_prog_AR
4631 if test -n "$AR"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4633 $as_echo "$AR" >&6; }
4634 else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4641 if test -z "$ac_cv_prog_AR"; then
4642 ac_ct_AR=$AR
4643 # Extract the first word of "ar", so it can be a program name with args.
4644 set dummy ar; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -n "$ac_ct_AR"; then
4651 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4660 ac_cv_prog_ac_ct_AR="ar"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4664 done
4665 done
4666 IFS=$as_save_IFS
4670 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4671 if test -n "$ac_ct_AR"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4673 $as_echo "$ac_ct_AR" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4679 if test "x$ac_ct_AR" = x; then
4680 AR=""
4681 else
4682 case $cross_compiling:$ac_tool_warned in
4683 yes:)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4687 esac
4688 AR=$ac_ct_AR
4690 else
4691 AR="$ac_cv_prog_AR"
4694 if test -n "$ac_tool_prefix"; then
4695 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4696 set dummy ${ac_tool_prefix}nm; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if ${ac_cv_prog_NM+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 if test -n "$NM"; then
4703 ac_cv_prog_NM="$NM" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4712 ac_cv_prog_NM="${ac_tool_prefix}nm"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4716 done
4717 done
4718 IFS=$as_save_IFS
4722 NM=$ac_cv_prog_NM
4723 if test -n "$NM"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4725 $as_echo "$NM" >&6; }
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4733 if test -z "$ac_cv_prog_NM"; then
4734 ac_ct_NM=$NM
4735 # Extract the first word of "nm", so it can be a program name with args.
4736 set dummy nm; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if ${ac_cv_prog_ac_ct_NM+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$ac_ct_NM"; then
4743 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752 ac_cv_prog_ac_ct_NM="nm"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4756 done
4757 done
4758 IFS=$as_save_IFS
4762 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4763 if test -n "$ac_ct_NM"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4765 $as_echo "$ac_ct_NM" >&6; }
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4771 if test "x$ac_ct_NM" = x; then
4772 NM=""
4773 else
4774 case $cross_compiling:$ac_tool_warned in
4775 yes:)
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778 ac_tool_warned=yes ;;
4779 esac
4780 NM=$ac_ct_NM
4782 else
4783 NM="$ac_cv_prog_NM"
4786 if test -n "$ac_tool_prefix"; then
4787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4788 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if ${ac_cv_prog_RANLIB+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -n "$RANLIB"; then
4795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4808 done
4809 done
4810 IFS=$as_save_IFS
4814 RANLIB=$ac_cv_prog_RANLIB
4815 if test -n "$RANLIB"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4817 $as_echo "$RANLIB" >&6; }
4818 else
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4825 if test -z "$ac_cv_prog_RANLIB"; then
4826 ac_ct_RANLIB=$RANLIB
4827 # Extract the first word of "ranlib", so it can be a program name with args.
4828 set dummy ranlib; ac_word=$2
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 $as_echo_n "checking for $ac_word... " >&6; }
4831 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 if test -n "$ac_ct_RANLIB"; then
4835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4836 else
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4840 IFS=$as_save_IFS
4841 test -z "$as_dir" && as_dir=.
4842 for ac_exec_ext in '' $ac_executable_extensions; do
4843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4844 ac_cv_prog_ac_ct_RANLIB="ranlib"
4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 break 2
4848 done
4849 done
4850 IFS=$as_save_IFS
4854 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4855 if test -n "$ac_ct_RANLIB"; then
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4857 $as_echo "$ac_ct_RANLIB" >&6; }
4858 else
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4860 $as_echo "no" >&6; }
4863 if test "x$ac_ct_RANLIB" = x; then
4864 RANLIB="ranlib-not-found-in-path-error"
4865 else
4866 case $cross_compiling:$ac_tool_warned in
4867 yes:)
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4870 ac_tool_warned=yes ;;
4871 esac
4872 RANLIB=$ac_ct_RANLIB
4874 else
4875 RANLIB="$ac_cv_prog_RANLIB"
4880 # Configure libtool
4881 case `pwd` in
4882 *\ * | *\ *)
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4884 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4885 esac
4889 macro_version='2.2.7a'
4890 macro_revision='1.3134'
4904 ltmain="$ac_aux_dir/ltmain.sh"
4906 # Backslashify metacharacters that are still active within
4907 # double-quoted strings.
4908 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4910 # Same as above, but do not quote variable references.
4911 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4913 # Sed substitution to delay expansion of an escaped shell variable in a
4914 # double_quote_subst'ed string.
4915 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4917 # Sed substitution to delay expansion of an escaped single quote.
4918 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4920 # Sed substitution to avoid accidental globbing in evaled expressions
4921 no_glob_subst='s/\*/\\\*/g'
4923 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4924 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4925 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4928 $as_echo_n "checking how to print strings... " >&6; }
4929 # Test print first, because it will be a builtin if present.
4930 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4931 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4932 ECHO='print -r --'
4933 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4934 ECHO='printf %s\n'
4935 else
4936 # Use this function as a fallback that always works.
4937 func_fallback_echo ()
4939 eval 'cat <<_LTECHO_EOF
4941 _LTECHO_EOF'
4943 ECHO='func_fallback_echo'
4946 # func_echo_all arg...
4947 # Invoke $ECHO with all args, space-separated.
4948 func_echo_all ()
4950 $ECHO ""
4953 case "$ECHO" in
4954 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4955 $as_echo "printf" >&6; } ;;
4956 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4957 $as_echo "print -r" >&6; } ;;
4958 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4959 $as_echo "cat" >&6; } ;;
4960 esac
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4976 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4977 if ${ac_cv_path_SED+:} false; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4981 for ac_i in 1 2 3 4 5 6 7; do
4982 ac_script="$ac_script$as_nl$ac_script"
4983 done
4984 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4985 { ac_script=; unset ac_script;}
4986 if test -z "$SED"; then
4987 ac_path_SED_found=false
4988 # Loop through the user's path and test for each of PROGNAME-LIST
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_prog in sed gsed; do
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4997 as_fn_executable_p "$ac_path_SED" || continue
4998 # Check for GNU ac_path_SED and select it if it is found.
4999 # Check for GNU $ac_path_SED
5000 case `"$ac_path_SED" --version 2>&1` in
5001 *GNU*)
5002 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5004 ac_count=0
5005 $as_echo_n 0123456789 >"conftest.in"
5006 while :
5008 cat "conftest.in" "conftest.in" >"conftest.tmp"
5009 mv "conftest.tmp" "conftest.in"
5010 cp "conftest.in" "conftest.nl"
5011 $as_echo '' >> "conftest.nl"
5012 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5014 as_fn_arith $ac_count + 1 && ac_count=$as_val
5015 if test $ac_count -gt ${ac_path_SED_max-0}; then
5016 # Best one so far, save it but keep looking for a better one
5017 ac_cv_path_SED="$ac_path_SED"
5018 ac_path_SED_max=$ac_count
5020 # 10*(2^10) chars as input seems more than enough
5021 test $ac_count -gt 10 && break
5022 done
5023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5024 esac
5026 $ac_path_SED_found && break 3
5027 done
5028 done
5029 done
5030 IFS=$as_save_IFS
5031 if test -z "$ac_cv_path_SED"; then
5032 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5034 else
5035 ac_cv_path_SED=$SED
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5040 $as_echo "$ac_cv_path_SED" >&6; }
5041 SED="$ac_cv_path_SED"
5042 rm -f conftest.sed
5044 test -z "$SED" && SED=sed
5045 Xsed="$SED -e 1s/^X//"
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5058 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5059 if ${ac_cv_path_GREP+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -z "$GREP"; then
5063 ac_path_GREP_found=false
5064 # Loop through the user's path and test for each of PROGNAME-LIST
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_prog in grep ggrep; do
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5073 as_fn_executable_p "$ac_path_GREP" || continue
5074 # Check for GNU ac_path_GREP and select it if it is found.
5075 # Check for GNU $ac_path_GREP
5076 case `"$ac_path_GREP" --version 2>&1` in
5077 *GNU*)
5078 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5080 ac_count=0
5081 $as_echo_n 0123456789 >"conftest.in"
5082 while :
5084 cat "conftest.in" "conftest.in" >"conftest.tmp"
5085 mv "conftest.tmp" "conftest.in"
5086 cp "conftest.in" "conftest.nl"
5087 $as_echo 'GREP' >> "conftest.nl"
5088 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5090 as_fn_arith $ac_count + 1 && ac_count=$as_val
5091 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5092 # Best one so far, save it but keep looking for a better one
5093 ac_cv_path_GREP="$ac_path_GREP"
5094 ac_path_GREP_max=$ac_count
5096 # 10*(2^10) chars as input seems more than enough
5097 test $ac_count -gt 10 && break
5098 done
5099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5100 esac
5102 $ac_path_GREP_found && break 3
5103 done
5104 done
5105 done
5106 IFS=$as_save_IFS
5107 if test -z "$ac_cv_path_GREP"; then
5108 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5110 else
5111 ac_cv_path_GREP=$GREP
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5116 $as_echo "$ac_cv_path_GREP" >&6; }
5117 GREP="$ac_cv_path_GREP"
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5121 $as_echo_n "checking for egrep... " >&6; }
5122 if ${ac_cv_path_EGREP+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5126 then ac_cv_path_EGREP="$GREP -E"
5127 else
5128 if test -z "$EGREP"; then
5129 ac_path_EGREP_found=false
5130 # Loop through the user's path and test for each of PROGNAME-LIST
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_prog in egrep; do
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5139 as_fn_executable_p "$ac_path_EGREP" || continue
5140 # Check for GNU ac_path_EGREP and select it if it is found.
5141 # Check for GNU $ac_path_EGREP
5142 case `"$ac_path_EGREP" --version 2>&1` in
5143 *GNU*)
5144 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5146 ac_count=0
5147 $as_echo_n 0123456789 >"conftest.in"
5148 while :
5150 cat "conftest.in" "conftest.in" >"conftest.tmp"
5151 mv "conftest.tmp" "conftest.in"
5152 cp "conftest.in" "conftest.nl"
5153 $as_echo 'EGREP' >> "conftest.nl"
5154 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5155 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5156 as_fn_arith $ac_count + 1 && ac_count=$as_val
5157 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5158 # Best one so far, save it but keep looking for a better one
5159 ac_cv_path_EGREP="$ac_path_EGREP"
5160 ac_path_EGREP_max=$ac_count
5162 # 10*(2^10) chars as input seems more than enough
5163 test $ac_count -gt 10 && break
5164 done
5165 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5166 esac
5168 $ac_path_EGREP_found && break 3
5169 done
5170 done
5171 done
5172 IFS=$as_save_IFS
5173 if test -z "$ac_cv_path_EGREP"; then
5174 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5176 else
5177 ac_cv_path_EGREP=$EGREP
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5183 $as_echo "$ac_cv_path_EGREP" >&6; }
5184 EGREP="$ac_cv_path_EGREP"
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5188 $as_echo_n "checking for fgrep... " >&6; }
5189 if ${ac_cv_path_FGREP+:} false; then :
5190 $as_echo_n "(cached) " >&6
5191 else
5192 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5193 then ac_cv_path_FGREP="$GREP -F"
5194 else
5195 if test -z "$FGREP"; then
5196 ac_path_FGREP_found=false
5197 # Loop through the user's path and test for each of PROGNAME-LIST
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_prog in fgrep; do
5204 for ac_exec_ext in '' $ac_executable_extensions; do
5205 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5206 as_fn_executable_p "$ac_path_FGREP" || continue
5207 # Check for GNU ac_path_FGREP and select it if it is found.
5208 # Check for GNU $ac_path_FGREP
5209 case `"$ac_path_FGREP" --version 2>&1` in
5210 *GNU*)
5211 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5213 ac_count=0
5214 $as_echo_n 0123456789 >"conftest.in"
5215 while :
5217 cat "conftest.in" "conftest.in" >"conftest.tmp"
5218 mv "conftest.tmp" "conftest.in"
5219 cp "conftest.in" "conftest.nl"
5220 $as_echo 'FGREP' >> "conftest.nl"
5221 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5222 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5223 as_fn_arith $ac_count + 1 && ac_count=$as_val
5224 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5225 # Best one so far, save it but keep looking for a better one
5226 ac_cv_path_FGREP="$ac_path_FGREP"
5227 ac_path_FGREP_max=$ac_count
5229 # 10*(2^10) chars as input seems more than enough
5230 test $ac_count -gt 10 && break
5231 done
5232 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5233 esac
5235 $ac_path_FGREP_found && break 3
5236 done
5237 done
5238 done
5239 IFS=$as_save_IFS
5240 if test -z "$ac_cv_path_FGREP"; then
5241 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5243 else
5244 ac_cv_path_FGREP=$FGREP
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5250 $as_echo "$ac_cv_path_FGREP" >&6; }
5251 FGREP="$ac_cv_path_FGREP"
5254 test -z "$GREP" && GREP=grep
5274 # Check whether --with-gnu-ld was given.
5275 if test "${with_gnu_ld+set}" = set; then :
5276 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5277 else
5278 with_gnu_ld=no
5281 ac_prog=ld
5282 if test "$GCC" = yes; then
5283 # Check if gcc -print-prog-name=ld gives a path.
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5285 $as_echo_n "checking for ld used by $CC... " >&6; }
5286 case $host in
5287 *-*-mingw*)
5288 # gcc leaves a trailing carriage return which upsets mingw
5289 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5291 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5292 esac
5293 case $ac_prog in
5294 # Accept absolute paths.
5295 [\\/]* | ?:[\\/]*)
5296 re_direlt='/[^/][^/]*/\.\./'
5297 # Canonicalize the pathname of ld
5298 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5299 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5300 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5301 done
5302 test -z "$LD" && LD="$ac_prog"
5305 # If it fails, then pretend we aren't using GCC.
5306 ac_prog=ld
5309 # If it is relative, then search for the first ld in PATH.
5310 with_gnu_ld=unknown
5312 esac
5313 elif test "$with_gnu_ld" = yes; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5315 $as_echo_n "checking for GNU ld... " >&6; }
5316 else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5318 $as_echo_n "checking for non-GNU ld... " >&6; }
5320 if ${lt_cv_path_LD+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test -z "$LD"; then
5324 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5325 for ac_dir in $PATH; do
5326 IFS="$lt_save_ifs"
5327 test -z "$ac_dir" && ac_dir=.
5328 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5329 lt_cv_path_LD="$ac_dir/$ac_prog"
5330 # Check to see if the program is GNU ld. I'd rather use --version,
5331 # but apparently some variants of GNU ld only accept -v.
5332 # Break only if it was the GNU/non-GNU ld that we prefer.
5333 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5334 *GNU* | *'with BFD'*)
5335 test "$with_gnu_ld" != no && break
5338 test "$with_gnu_ld" != yes && break
5340 esac
5342 done
5343 IFS="$lt_save_ifs"
5344 else
5345 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5349 LD="$lt_cv_path_LD"
5350 if test -n "$LD"; then
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5352 $as_echo "$LD" >&6; }
5353 else
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355 $as_echo "no" >&6; }
5357 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5359 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5360 if ${lt_cv_prog_gnu_ld+:} false; then :
5361 $as_echo_n "(cached) " >&6
5362 else
5363 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5364 case `$LD -v 2>&1 </dev/null` in
5365 *GNU* | *'with BFD'*)
5366 lt_cv_prog_gnu_ld=yes
5369 lt_cv_prog_gnu_ld=no
5371 esac
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5374 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5375 with_gnu_ld=$lt_cv_prog_gnu_ld
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5386 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5387 if ${lt_cv_path_NM+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389 else
5390 if test -n "$NM"; then
5391 # Let the user override the nm to test.
5392 lt_nm_to_check="$NM"
5393 else
5394 lt_nm_to_check="${ac_tool_prefix}nm"
5395 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5396 lt_nm_to_check="$lt_nm_to_check nm"
5399 for lt_tmp_nm in "$lt_nm_to_check"; do
5400 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5401 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5402 IFS="$lt_save_ifs"
5403 test -z "$ac_dir" && ac_dir=.
5404 # Strip out any user-provided options from the nm to test twice,
5405 # the first time to test to see if nm (rather than its options) has
5406 # an explicit path, the second time to yield a file which can be
5407 # nm'ed itself.
5408 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5409 case "$tmp_nm_path" in
5410 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5411 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5412 esac
5413 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5414 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5415 # Check to see if the nm accepts a BSD-compat flag.
5416 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5417 # nm: unknown option "B" ignored
5418 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5419 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5420 break
5423 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5424 *$tmp_nm*)
5425 lt_cv_path_NM="$tmp_nm -p"
5426 break
5429 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5430 continue # so that we can try to find one that supports BSD flags
5432 esac
5434 esac
5436 done
5437 IFS="$lt_save_ifs"
5438 done
5439 : ${lt_cv_path_NM=no}
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5442 $as_echo "$lt_cv_path_NM" >&6; }
5443 if test "$lt_cv_path_NM" != "no"; then
5444 NM="$lt_cv_path_NM"
5445 else
5446 # Didn't find any BSD compatible name lister, look for dumpbin.
5447 if test -n "$DUMPBIN"; then :
5448 # Let the user override the test.
5449 else
5450 if test -n "$ac_tool_prefix"; then
5451 for ac_prog in dumpbin "link -dump"
5453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_DUMPBIN+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 if test -n "$DUMPBIN"; then
5461 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5474 done
5475 done
5476 IFS=$as_save_IFS
5480 DUMPBIN=$ac_cv_prog_DUMPBIN
5481 if test -n "$DUMPBIN"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5483 $as_echo "$DUMPBIN" >&6; }
5484 else
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5490 test -n "$DUMPBIN" && break
5491 done
5493 if test -z "$DUMPBIN"; then
5494 ac_ct_DUMPBIN=$DUMPBIN
5495 for ac_prog in dumpbin "link -dump"
5497 # Extract the first word of "$ac_prog", so it can be a program name with args.
5498 set dummy $ac_prog; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 if test -n "$ac_ct_DUMPBIN"; then
5505 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5518 done
5519 done
5520 IFS=$as_save_IFS
5524 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5525 if test -n "$ac_ct_DUMPBIN"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5527 $as_echo "$ac_ct_DUMPBIN" >&6; }
5528 else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5534 test -n "$ac_ct_DUMPBIN" && break
5535 done
5537 if test "x$ac_ct_DUMPBIN" = x; then
5538 DUMPBIN=":"
5539 else
5540 case $cross_compiling:$ac_tool_warned in
5541 yes:)
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5544 ac_tool_warned=yes ;;
5545 esac
5546 DUMPBIN=$ac_ct_DUMPBIN
5550 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5551 *COFF*)
5552 DUMPBIN="$DUMPBIN -symbols"
5555 DUMPBIN=:
5557 esac
5560 if test "$DUMPBIN" != ":"; then
5561 NM="$DUMPBIN"
5564 test -z "$NM" && NM=nm
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5572 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5573 if ${lt_cv_nm_interface+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 lt_cv_nm_interface="BSD nm"
5577 echo "int some_variable = 0;" > conftest.$ac_ext
5578 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5579 (eval "$ac_compile" 2>conftest.err)
5580 cat conftest.err >&5
5581 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5582 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5583 cat conftest.err >&5
5584 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5585 cat conftest.out >&5
5586 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5587 lt_cv_nm_interface="MS dumpbin"
5589 rm -f conftest*
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5592 $as_echo "$lt_cv_nm_interface" >&6; }
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5595 $as_echo_n "checking whether ln -s works... " >&6; }
5596 LN_S=$as_ln_s
5597 if test "$LN_S" = "ln -s"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5599 $as_echo "yes" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5602 $as_echo "no, using $LN_S" >&6; }
5605 # find the maximum length of command line arguments
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5607 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5608 if ${lt_cv_sys_max_cmd_len+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5612 teststring="ABCD"
5614 case $build_os in
5615 msdosdjgpp*)
5616 # On DJGPP, this test can blow up pretty badly due to problems in libc
5617 # (any single argument exceeding 2000 bytes causes a buffer overrun
5618 # during glob expansion). Even if it were fixed, the result of this
5619 # check would be larger than it should be.
5620 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5623 gnu*)
5624 # Under GNU Hurd, this test is not required because there is
5625 # no limit to the length of command line arguments.
5626 # Libtool will interpret -1 as no limit whatsoever
5627 lt_cv_sys_max_cmd_len=-1;
5630 cygwin* | mingw* | cegcc*)
5631 # On Win9x/ME, this test blows up -- it succeeds, but takes
5632 # about 5 minutes as the teststring grows exponentially.
5633 # Worse, since 9x/ME are not pre-emptively multitasking,
5634 # you end up with a "frozen" computer, even though with patience
5635 # the test eventually succeeds (with a max line length of 256k).
5636 # Instead, let's just punt: use the minimum linelength reported by
5637 # all of the supported platforms: 8192 (on NT/2K/XP).
5638 lt_cv_sys_max_cmd_len=8192;
5641 mint*)
5642 # On MiNT this can take a long time and run out of memory.
5643 lt_cv_sys_max_cmd_len=8192;
5646 amigaos*)
5647 # On AmigaOS with pdksh, this test takes hours, literally.
5648 # So we just punt and use a minimum line length of 8192.
5649 lt_cv_sys_max_cmd_len=8192;
5652 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5653 # This has been around since 386BSD, at least. Likely further.
5654 if test -x /sbin/sysctl; then
5655 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5656 elif test -x /usr/sbin/sysctl; then
5657 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5658 else
5659 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5661 # And add a safety zone
5662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5666 interix*)
5667 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5668 lt_cv_sys_max_cmd_len=196608
5671 osf*)
5672 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5673 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5674 # nice to cause kernel panics so lets avoid the loop below.
5675 # First set a reasonable default.
5676 lt_cv_sys_max_cmd_len=16384
5678 if test -x /sbin/sysconfig; then
5679 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5680 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5681 esac
5684 sco3.2v5*)
5685 lt_cv_sys_max_cmd_len=102400
5687 sysv5* | sco5v6* | sysv4.2uw2*)
5688 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5689 if test -n "$kargmax"; then
5690 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5691 else
5692 lt_cv_sys_max_cmd_len=32768
5696 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5697 if test -n "$lt_cv_sys_max_cmd_len"; then
5698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5700 else
5701 # Make teststring a little bigger before we do anything with it.
5702 # a 1K string should be a reasonable start.
5703 for i in 1 2 3 4 5 6 7 8 ; do
5704 teststring=$teststring$teststring
5705 done
5706 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5707 # If test is not a shell built-in, we'll probably end up computing a
5708 # maximum length that is only half of the actual maximum length, but
5709 # we can't tell.
5710 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5711 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5712 test $i != 17 # 1/2 MB should be enough
5714 i=`expr $i + 1`
5715 teststring=$teststring$teststring
5716 done
5717 # Only check the string length outside the loop.
5718 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5719 teststring=
5720 # Add a significant safety factor because C++ compilers can tack on
5721 # massive amounts of additional arguments before passing them to the
5722 # linker. It appears as though 1/2 is a usable value.
5723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5726 esac
5730 if test -n $lt_cv_sys_max_cmd_len ; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5732 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5733 else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5735 $as_echo "none" >&6; }
5737 max_cmd_len=$lt_cv_sys_max_cmd_len
5744 : ${CP="cp -f"}
5745 : ${MV="mv -f"}
5746 : ${RM="rm -f"}
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5749 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5750 # Try some XSI features
5751 xsi_shell=no
5752 ( _lt_dummy="a/b/c"
5753 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5754 = c,a/b,, \
5755 && eval 'test $(( 1 + 1 )) -eq 2 \
5756 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5757 && xsi_shell=yes
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5759 $as_echo "$xsi_shell" >&6; }
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5763 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5764 lt_shell_append=no
5765 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5766 >/dev/null 2>&1 \
5767 && lt_shell_append=yes
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5769 $as_echo "$lt_shell_append" >&6; }
5772 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5773 lt_unset=unset
5774 else
5775 lt_unset=false
5782 # test EBCDIC or ASCII
5783 case `echo X|tr X '\101'` in
5784 A) # ASCII based system
5785 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5786 lt_SP2NL='tr \040 \012'
5787 lt_NL2SP='tr \015\012 \040\040'
5789 *) # EBCDIC based system
5790 lt_SP2NL='tr \100 \n'
5791 lt_NL2SP='tr \r\n \100\100'
5793 esac
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5804 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5805 if ${lt_cv_ld_reload_flag+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 lt_cv_ld_reload_flag='-r'
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5811 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5812 reload_flag=$lt_cv_ld_reload_flag
5813 case $reload_flag in
5814 "" | " "*) ;;
5815 *) reload_flag=" $reload_flag" ;;
5816 esac
5817 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5818 case $host_os in
5819 darwin*)
5820 if test "$GCC" = yes; then
5821 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5822 else
5823 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5826 esac
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_prog_OBJDUMP+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if test -n "$OBJDUMP"; then
5845 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5858 done
5859 done
5860 IFS=$as_save_IFS
5864 OBJDUMP=$ac_cv_prog_OBJDUMP
5865 if test -n "$OBJDUMP"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5867 $as_echo "$OBJDUMP" >&6; }
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5875 if test -z "$ac_cv_prog_OBJDUMP"; then
5876 ac_ct_OBJDUMP=$OBJDUMP
5877 # Extract the first word of "objdump", so it can be a program name with args.
5878 set dummy objdump; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if test -n "$ac_ct_OBJDUMP"; then
5885 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5898 done
5899 done
5900 IFS=$as_save_IFS
5904 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5905 if test -n "$ac_ct_OBJDUMP"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5907 $as_echo "$ac_ct_OBJDUMP" >&6; }
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5913 if test "x$ac_ct_OBJDUMP" = x; then
5914 OBJDUMP="false"
5915 else
5916 case $cross_compiling:$ac_tool_warned in
5917 yes:)
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5921 esac
5922 OBJDUMP=$ac_ct_OBJDUMP
5924 else
5925 OBJDUMP="$ac_cv_prog_OBJDUMP"
5928 test -z "$OBJDUMP" && OBJDUMP=objdump
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5939 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5940 if ${lt_cv_deplibs_check_method+:} false; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 lt_cv_file_magic_cmd='$MAGIC_CMD'
5944 lt_cv_file_magic_test_file=
5945 lt_cv_deplibs_check_method='unknown'
5946 # Need to set the preceding variable on all platforms that support
5947 # interlibrary dependencies.
5948 # 'none' -- dependencies not supported.
5949 # `unknown' -- same as none, but documents that we really don't know.
5950 # 'pass_all' -- all dependencies passed with no checks.
5951 # 'test_compile' -- check by making test program.
5952 # 'file_magic [[regex]]' -- check by looking for files in library path
5953 # which responds to the $file_magic_cmd with a given extended regex.
5954 # If you have `file' or equivalent on your system and you're not sure
5955 # whether `pass_all' will *always* work, you probably want this one.
5957 case $host_os in
5958 aix[4-9]*)
5959 lt_cv_deplibs_check_method=pass_all
5962 beos*)
5963 lt_cv_deplibs_check_method=pass_all
5966 bsdi[45]*)
5967 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5968 lt_cv_file_magic_cmd='/usr/bin/file -L'
5969 lt_cv_file_magic_test_file=/shlib/libc.so
5972 cygwin*)
5973 # func_win32_libid is a shell function defined in ltmain.sh
5974 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5975 lt_cv_file_magic_cmd='func_win32_libid'
5978 mingw* | pw32*)
5979 # Base MSYS/MinGW do not provide the 'file' command needed by
5980 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5981 # unless we find 'file', for example because we are cross-compiling.
5982 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5983 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5984 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5985 lt_cv_file_magic_cmd='func_win32_libid'
5986 else
5987 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5988 lt_cv_file_magic_cmd='$OBJDUMP -f'
5992 cegcc*)
5993 # use the weaker test based on 'objdump'. See mingw*.
5994 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5995 lt_cv_file_magic_cmd='$OBJDUMP -f'
5998 darwin* | rhapsody*)
5999 lt_cv_deplibs_check_method=pass_all
6002 freebsd* | dragonfly*)
6003 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6004 case $host_cpu in
6005 i*86 )
6006 # Not sure whether the presence of OpenBSD here was a mistake.
6007 # Let's accept both of them until this is cleared up.
6008 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6009 lt_cv_file_magic_cmd=/usr/bin/file
6010 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6012 esac
6013 else
6014 lt_cv_deplibs_check_method=pass_all
6018 gnu*)
6019 lt_cv_deplibs_check_method=pass_all
6022 haiku*)
6023 lt_cv_deplibs_check_method=pass_all
6026 hpux10.20* | hpux11*)
6027 lt_cv_file_magic_cmd=/usr/bin/file
6028 case $host_cpu in
6029 ia64*)
6030 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6031 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6033 hppa*64*)
6034 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]'
6035 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6039 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6041 esac
6044 interix[3-9]*)
6045 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6049 irix5* | irix6* | nonstopux*)
6050 case $LD in
6051 *-32|*"-32 ") libmagic=32-bit;;
6052 *-n32|*"-n32 ") libmagic=N32;;
6053 *-64|*"-64 ") libmagic=64-bit;;
6054 *) libmagic=never-match;;
6055 esac
6056 lt_cv_deplibs_check_method=pass_all
6059 # This must be Linux ELF.
6060 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6061 lt_cv_deplibs_check_method=pass_all
6064 netbsd*)
6065 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6067 else
6068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6072 newos6*)
6073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6074 lt_cv_file_magic_cmd=/usr/bin/file
6075 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6078 *nto* | *qnx*)
6079 lt_cv_deplibs_check_method=pass_all
6082 openbsd*)
6083 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6085 else
6086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6090 osf3* | osf4* | osf5*)
6091 lt_cv_deplibs_check_method=pass_all
6094 rdos*)
6095 lt_cv_deplibs_check_method=pass_all
6098 solaris*)
6099 lt_cv_deplibs_check_method=pass_all
6102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6103 lt_cv_deplibs_check_method=pass_all
6106 sysv4 | sysv4.3*)
6107 case $host_vendor in
6108 motorola)
6109 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]'
6110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6112 ncr)
6113 lt_cv_deplibs_check_method=pass_all
6115 sequent)
6116 lt_cv_file_magic_cmd='/bin/file'
6117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6119 sni)
6120 lt_cv_file_magic_cmd='/bin/file'
6121 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6122 lt_cv_file_magic_test_file=/lib/libc.so
6124 siemens)
6125 lt_cv_deplibs_check_method=pass_all
6128 lt_cv_deplibs_check_method=pass_all
6130 esac
6133 tpf*)
6134 lt_cv_deplibs_check_method=pass_all
6136 vxworks*)
6137 # Assume VxWorks cross toolchains are built on Linux, possibly
6138 # as canadian for Windows hosts.
6139 lt_cv_deplibs_check_method=pass_all
6141 esac
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6145 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6146 file_magic_cmd=$lt_cv_file_magic_cmd
6147 deplibs_check_method=$lt_cv_deplibs_check_method
6148 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6161 plugin_option=
6162 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6163 for plugin in $plugin_names; do
6164 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6165 if test x$plugin_so = x$plugin; then
6166 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6168 if test x$plugin_so != x$plugin; then
6169 plugin_option="--plugin $plugin_so"
6170 break
6172 done
6174 if test -n "$ac_tool_prefix"; then
6175 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6176 set dummy ${ac_tool_prefix}ar; ac_word=$2
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6178 $as_echo_n "checking for $ac_word... " >&6; }
6179 if ${ac_cv_prog_AR+:} false; then :
6180 $as_echo_n "(cached) " >&6
6181 else
6182 if test -n "$AR"; then
6183 ac_cv_prog_AR="$AR" # Let the user override the test.
6184 else
6185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6188 IFS=$as_save_IFS
6189 test -z "$as_dir" && as_dir=.
6190 for ac_exec_ext in '' $ac_executable_extensions; do
6191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6192 ac_cv_prog_AR="${ac_tool_prefix}ar"
6193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194 break 2
6196 done
6197 done
6198 IFS=$as_save_IFS
6202 AR=$ac_cv_prog_AR
6203 if test -n "$AR"; then
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6205 $as_echo "$AR" >&6; }
6206 else
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6208 $as_echo "no" >&6; }
6213 if test -z "$ac_cv_prog_AR"; then
6214 ac_ct_AR=$AR
6215 # Extract the first word of "ar", so it can be a program name with args.
6216 set dummy ar; ac_word=$2
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6218 $as_echo_n "checking for $ac_word... " >&6; }
6219 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6220 $as_echo_n "(cached) " >&6
6221 else
6222 if test -n "$ac_ct_AR"; then
6223 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6224 else
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH
6228 IFS=$as_save_IFS
6229 test -z "$as_dir" && as_dir=.
6230 for ac_exec_ext in '' $ac_executable_extensions; do
6231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6232 ac_cv_prog_ac_ct_AR="ar"
6233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 break 2
6236 done
6237 done
6238 IFS=$as_save_IFS
6242 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6243 if test -n "$ac_ct_AR"; then
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6245 $as_echo "$ac_ct_AR" >&6; }
6246 else
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248 $as_echo "no" >&6; }
6251 if test "x$ac_ct_AR" = x; then
6252 AR="false"
6253 else
6254 case $cross_compiling:$ac_tool_warned in
6255 yes:)
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6258 ac_tool_warned=yes ;;
6259 esac
6260 AR=$ac_ct_AR
6262 else
6263 AR="$ac_cv_prog_AR"
6266 test -z "$AR" && AR=ar
6267 if test -n "$plugin_option"; then
6268 if $AR --help 2>&1 | grep -q "\--plugin"; then
6269 touch conftest.c
6270 $AR $plugin_option rc conftest.a conftest.c
6271 if test "$?" != 0; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6273 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6274 else
6275 AR="$AR $plugin_option"
6277 rm -f conftest.*
6280 test -z "$AR_FLAGS" && AR_FLAGS=cru
6292 if test -n "$ac_tool_prefix"; then
6293 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6294 set dummy ${ac_tool_prefix}strip; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if ${ac_cv_prog_STRIP+:} false; then :
6298 $as_echo_n "(cached) " >&6
6299 else
6300 if test -n "$STRIP"; then
6301 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6314 done
6315 done
6316 IFS=$as_save_IFS
6320 STRIP=$ac_cv_prog_STRIP
6321 if test -n "$STRIP"; then
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6323 $as_echo "$STRIP" >&6; }
6324 else
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6331 if test -z "$ac_cv_prog_STRIP"; then
6332 ac_ct_STRIP=$STRIP
6333 # Extract the first word of "strip", so it can be a program name with args.
6334 set dummy strip; ac_word=$2
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6336 $as_echo_n "checking for $ac_word... " >&6; }
6337 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6338 $as_echo_n "(cached) " >&6
6339 else
6340 if test -n "$ac_ct_STRIP"; then
6341 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6342 else
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350 ac_cv_prog_ac_ct_STRIP="strip"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6354 done
6355 done
6356 IFS=$as_save_IFS
6360 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6361 if test -n "$ac_ct_STRIP"; then
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6363 $as_echo "$ac_ct_STRIP" >&6; }
6364 else
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6366 $as_echo "no" >&6; }
6369 if test "x$ac_ct_STRIP" = x; then
6370 STRIP=":"
6371 else
6372 case $cross_compiling:$ac_tool_warned in
6373 yes:)
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6376 ac_tool_warned=yes ;;
6377 esac
6378 STRIP=$ac_ct_STRIP
6380 else
6381 STRIP="$ac_cv_prog_STRIP"
6384 test -z "$STRIP" && STRIP=:
6391 if test -n "$ac_tool_prefix"; then
6392 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6393 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if ${ac_cv_prog_RANLIB+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 if test -n "$RANLIB"; then
6400 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6413 done
6414 done
6415 IFS=$as_save_IFS
6419 RANLIB=$ac_cv_prog_RANLIB
6420 if test -n "$RANLIB"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6422 $as_echo "$RANLIB" >&6; }
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6430 if test -z "$ac_cv_prog_RANLIB"; then
6431 ac_ct_RANLIB=$RANLIB
6432 # Extract the first word of "ranlib", so it can be a program name with args.
6433 set dummy ranlib; ac_word=$2
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6435 $as_echo_n "checking for $ac_word... " >&6; }
6436 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6437 $as_echo_n "(cached) " >&6
6438 else
6439 if test -n "$ac_ct_RANLIB"; then
6440 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6449 ac_cv_prog_ac_ct_RANLIB="ranlib"
6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6453 done
6454 done
6455 IFS=$as_save_IFS
6459 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6460 if test -n "$ac_ct_RANLIB"; then
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6462 $as_echo "$ac_ct_RANLIB" >&6; }
6463 else
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465 $as_echo "no" >&6; }
6468 if test "x$ac_ct_RANLIB" = x; then
6469 RANLIB=":"
6470 else
6471 case $cross_compiling:$ac_tool_warned in
6472 yes:)
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6475 ac_tool_warned=yes ;;
6476 esac
6477 RANLIB=$ac_ct_RANLIB
6479 else
6480 RANLIB="$ac_cv_prog_RANLIB"
6483 test -z "$RANLIB" && RANLIB=:
6484 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6485 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6486 RANLIB="$RANLIB $plugin_option"
6495 # Determine commands to create old-style static archives.
6496 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6497 old_postinstall_cmds='chmod 644 $oldlib'
6498 old_postuninstall_cmds=
6500 if test -n "$RANLIB"; then
6501 case $host_os in
6502 openbsd*)
6503 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6506 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6508 esac
6509 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6512 case $host_os in
6513 darwin*)
6514 lock_old_archive_extraction=yes ;;
6516 lock_old_archive_extraction=no ;;
6517 esac
6557 # If no C compiler was specified, use CC.
6558 LTCC=${LTCC-"$CC"}
6560 # If no C compiler flags were specified, use CFLAGS.
6561 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6563 # Allow CC to be a program name with arguments.
6564 compiler=$CC
6567 # Check for command to grab the raw symbol name followed by C symbol from nm.
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6569 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6570 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6574 # These are sane defaults that work on at least a few old systems.
6575 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6577 # Character class describing NM global symbol codes.
6578 symcode='[BCDEGRST]'
6580 # Regexp to match symbols that can be accessed directly from C.
6581 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6583 # Define system-specific variables.
6584 case $host_os in
6585 aix*)
6586 symcode='[BCDT]'
6588 cygwin* | mingw* | pw32* | cegcc*)
6589 symcode='[ABCDGISTW]'
6591 hpux*)
6592 if test "$host_cpu" = ia64; then
6593 symcode='[ABCDEGRST]'
6596 irix* | nonstopux*)
6597 symcode='[BCDEGRST]'
6599 osf*)
6600 symcode='[BCDEGQRST]'
6602 solaris*)
6603 symcode='[BCDRT]'
6605 sco3.2v5*)
6606 symcode='[DT]'
6608 sysv4.2uw2*)
6609 symcode='[DT]'
6611 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6612 symcode='[ABDT]'
6614 sysv4)
6615 symcode='[DFNSTU]'
6617 esac
6619 # If we're using GNU nm, then use its standard symbol codes.
6620 case `$NM -V 2>&1` in
6621 *GNU* | *'with BFD'*)
6622 symcode='[ABCDGIRSTW]' ;;
6623 esac
6625 # Transform an extracted symbol line into a proper C declaration.
6626 # Some systems (esp. on ia64) link data and code symbols differently,
6627 # so use this general approach.
6628 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6630 # Transform an extracted symbol line into symbol name and symbol address
6631 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6632 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'"
6634 # Handle CRLF in mingw tool chain
6635 opt_cr=
6636 case $build_os in
6637 mingw*)
6638 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6640 esac
6642 # Try without a prefix underscore, then with it.
6643 for ac_symprfx in "" "_"; do
6645 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6646 symxfrm="\\1 $ac_symprfx\\2 \\2"
6648 # Write the raw and C identifiers.
6649 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6650 # Fake it for dumpbin and say T for any non-static function
6651 # and D for any global variable.
6652 # Also find C++ and __fastcall symbols from MSVC++,
6653 # which start with @ or ?.
6654 lt_cv_sys_global_symbol_pipe="$AWK '"\
6655 " {last_section=section; section=\$ 3};"\
6656 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6657 " \$ 0!~/External *\|/{next};"\
6658 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6659 " {if(hide[section]) next};"\
6660 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6661 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6662 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6663 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6664 " ' prfx=^$ac_symprfx"
6665 else
6666 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6669 # Check to see that the pipe works correctly.
6670 pipe_works=no
6672 rm -f conftest*
6673 cat > conftest.$ac_ext <<_LT_EOF
6674 #ifdef __cplusplus
6675 extern "C" {
6676 #endif
6677 char nm_test_var;
6678 void nm_test_func(void);
6679 void nm_test_func(void){}
6680 #ifdef __cplusplus
6682 #endif
6683 int main(){nm_test_var='a';nm_test_func();return(0);}
6684 _LT_EOF
6686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6687 (eval $ac_compile) 2>&5
6688 ac_status=$?
6689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6690 test $ac_status = 0; }; then
6691 # Now try to grab the symbols.
6692 nlist=conftest.nm
6693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6694 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6695 ac_status=$?
6696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6697 test $ac_status = 0; } && test -s "$nlist"; then
6698 # Try sorting and uniquifying the output.
6699 if sort "$nlist" | uniq > "$nlist"T; then
6700 mv -f "$nlist"T "$nlist"
6701 else
6702 rm -f "$nlist"T
6705 # Make sure that we snagged all the symbols we need.
6706 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6707 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6708 cat <<_LT_EOF > conftest.$ac_ext
6709 #ifdef __cplusplus
6710 extern "C" {
6711 #endif
6713 _LT_EOF
6714 # Now generate the symbol file.
6715 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6717 cat <<_LT_EOF >> conftest.$ac_ext
6719 /* The mapping between symbol names and symbols. */
6720 const struct {
6721 const char *name;
6722 void *address;
6724 lt__PROGRAM__LTX_preloaded_symbols[] =
6726 { "@PROGRAM@", (void *) 0 },
6727 _LT_EOF
6728 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6729 cat <<\_LT_EOF >> conftest.$ac_ext
6730 {0, (void *) 0}
6733 /* This works around a problem in FreeBSD linker */
6734 #ifdef FREEBSD_WORKAROUND
6735 static const void *lt_preloaded_setup() {
6736 return lt__PROGRAM__LTX_preloaded_symbols;
6738 #endif
6740 #ifdef __cplusplus
6742 #endif
6743 _LT_EOF
6744 # Now try linking the two files.
6745 mv conftest.$ac_objext conftstm.$ac_objext
6746 lt_save_LIBS="$LIBS"
6747 lt_save_CFLAGS="$CFLAGS"
6748 LIBS="conftstm.$ac_objext"
6749 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6750 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6751 (eval $ac_link) 2>&5
6752 ac_status=$?
6753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6754 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6755 pipe_works=yes
6757 LIBS="$lt_save_LIBS"
6758 CFLAGS="$lt_save_CFLAGS"
6759 else
6760 echo "cannot find nm_test_func in $nlist" >&5
6762 else
6763 echo "cannot find nm_test_var in $nlist" >&5
6765 else
6766 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6768 else
6769 echo "$progname: failed program was:" >&5
6770 cat conftest.$ac_ext >&5
6772 rm -rf conftest* conftst*
6774 # Do not use the global_symbol_pipe unless it works.
6775 if test "$pipe_works" = yes; then
6776 break
6777 else
6778 lt_cv_sys_global_symbol_pipe=
6780 done
6784 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6785 lt_cv_sys_global_symbol_to_cdecl=
6787 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6789 $as_echo "failed" >&6; }
6790 else
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6792 $as_echo "ok" >&6; }
6817 # Check whether --enable-libtool-lock was given.
6818 if test "${enable_libtool_lock+set}" = set; then :
6819 enableval=$enable_libtool_lock;
6822 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6824 # Some flags need to be propagated to the compiler or linker for good
6825 # libtool support.
6826 case $host in
6827 ia64-*-hpux*)
6828 # Find out which ABI we are using.
6829 echo 'int i;' > conftest.$ac_ext
6830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6831 (eval $ac_compile) 2>&5
6832 ac_status=$?
6833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6834 test $ac_status = 0; }; then
6835 case `/usr/bin/file conftest.$ac_objext` in
6836 *ELF-32*)
6837 HPUX_IA64_MODE="32"
6839 *ELF-64*)
6840 HPUX_IA64_MODE="64"
6842 esac
6844 rm -rf conftest*
6846 *-*-irix6*)
6847 # Find out which ABI we are using.
6848 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6850 (eval $ac_compile) 2>&5
6851 ac_status=$?
6852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6853 test $ac_status = 0; }; then
6854 if test "$lt_cv_prog_gnu_ld" = yes; then
6855 case `/usr/bin/file conftest.$ac_objext` in
6856 *32-bit*)
6857 LD="${LD-ld} -melf32bsmip"
6859 *N32*)
6860 LD="${LD-ld} -melf32bmipn32"
6862 *64-bit*)
6863 LD="${LD-ld} -melf64bmip"
6865 esac
6866 else
6867 case `/usr/bin/file conftest.$ac_objext` in
6868 *32-bit*)
6869 LD="${LD-ld} -32"
6871 *N32*)
6872 LD="${LD-ld} -n32"
6874 *64-bit*)
6875 LD="${LD-ld} -64"
6877 esac
6880 rm -rf conftest*
6883 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6884 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6885 # Find out which ABI we are using.
6886 echo 'int i;' > conftest.$ac_ext
6887 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6888 (eval $ac_compile) 2>&5
6889 ac_status=$?
6890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6891 test $ac_status = 0; }; then
6892 case `/usr/bin/file conftest.o` in
6893 *32-bit*)
6894 case $host in
6895 x86_64-*kfreebsd*-gnu)
6896 LD="${LD-ld} -m elf_i386_fbsd"
6898 x86_64-*linux*)
6899 case `/usr/bin/file conftest.o` in
6900 *x86-64*)
6901 LD="${LD-ld} -m elf32_x86_64"
6904 LD="${LD-ld} -m elf_i386"
6906 esac
6908 powerpc64le-*linux*)
6909 LD="${LD-ld} -m elf32lppclinux"
6911 powerpc64-*linux*)
6912 LD="${LD-ld} -m elf32ppclinux"
6914 s390x-*linux*)
6915 LD="${LD-ld} -m elf_s390"
6917 sparc64-*linux*)
6918 LD="${LD-ld} -m elf32_sparc"
6920 esac
6922 *64-bit*)
6923 case $host in
6924 x86_64-*kfreebsd*-gnu)
6925 LD="${LD-ld} -m elf_x86_64_fbsd"
6927 x86_64-*linux*)
6928 LD="${LD-ld} -m elf_x86_64"
6930 powerpcle-*linux*)
6931 LD="${LD-ld} -m elf64lppc"
6933 powerpc-*linux*)
6934 LD="${LD-ld} -m elf64ppc"
6936 s390*-*linux*|s390*-*tpf*)
6937 LD="${LD-ld} -m elf64_s390"
6939 sparc*-*linux*)
6940 LD="${LD-ld} -m elf64_sparc"
6942 esac
6944 esac
6946 rm -rf conftest*
6949 *-*-sco3.2v5*)
6950 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6951 SAVE_CFLAGS="$CFLAGS"
6952 CFLAGS="$CFLAGS -belf"
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6954 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6955 if ${lt_cv_cc_needs_belf+:} false; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 ac_ext=c
6959 ac_cpp='$CPP $CPPFLAGS'
6960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6968 main ()
6972 return 0;
6974 _ACEOF
6975 if ac_fn_c_try_link "$LINENO"; then :
6976 lt_cv_cc_needs_belf=yes
6977 else
6978 lt_cv_cc_needs_belf=no
6980 rm -f core conftest.err conftest.$ac_objext \
6981 conftest$ac_exeext conftest.$ac_ext
6982 ac_ext=c
6983 ac_cpp='$CPP $CPPFLAGS'
6984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6990 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6991 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6992 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6993 CFLAGS="$SAVE_CFLAGS"
6996 sparc*-*solaris*)
6997 # Find out which ABI we are using.
6998 echo 'int i;' > conftest.$ac_ext
6999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7000 (eval $ac_compile) 2>&5
7001 ac_status=$?
7002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003 test $ac_status = 0; }; then
7004 case `/usr/bin/file conftest.o` in
7005 *64-bit*)
7006 case $lt_cv_prog_gnu_ld in
7007 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7009 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7010 LD="${LD-ld} -64"
7013 esac
7015 esac
7017 rm -rf conftest*
7019 esac
7021 need_locks="$enable_libtool_lock"
7024 case $host_os in
7025 rhapsody* | darwin*)
7026 if test -n "$ac_tool_prefix"; then
7027 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7028 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7030 $as_echo_n "checking for $ac_word... " >&6; }
7031 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 if test -n "$DSYMUTIL"; then
7035 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7036 else
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7040 IFS=$as_save_IFS
7041 test -z "$as_dir" && as_dir=.
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7044 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 break 2
7048 done
7049 done
7050 IFS=$as_save_IFS
7054 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7055 if test -n "$DSYMUTIL"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7057 $as_echo "$DSYMUTIL" >&6; }
7058 else
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7060 $as_echo "no" >&6; }
7065 if test -z "$ac_cv_prog_DSYMUTIL"; then
7066 ac_ct_DSYMUTIL=$DSYMUTIL
7067 # Extract the first word of "dsymutil", so it can be a program name with args.
7068 set dummy dsymutil; ac_word=$2
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7070 $as_echo_n "checking for $ac_word... " >&6; }
7071 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 if test -n "$ac_ct_DSYMUTIL"; then
7075 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7076 else
7077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7080 IFS=$as_save_IFS
7081 test -z "$as_dir" && as_dir=.
7082 for ac_exec_ext in '' $ac_executable_extensions; do
7083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 break 2
7088 done
7089 done
7090 IFS=$as_save_IFS
7094 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7095 if test -n "$ac_ct_DSYMUTIL"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7097 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7098 else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7103 if test "x$ac_ct_DSYMUTIL" = x; then
7104 DSYMUTIL=":"
7105 else
7106 case $cross_compiling:$ac_tool_warned in
7107 yes:)
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7111 esac
7112 DSYMUTIL=$ac_ct_DSYMUTIL
7114 else
7115 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7120 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7122 $as_echo_n "checking for $ac_word... " >&6; }
7123 if ${ac_cv_prog_NMEDIT+:} false; then :
7124 $as_echo_n "(cached) " >&6
7125 else
7126 if test -n "$NMEDIT"; then
7127 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7128 else
7129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7130 for as_dir in $PATH
7132 IFS=$as_save_IFS
7133 test -z "$as_dir" && as_dir=.
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7136 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 break 2
7140 done
7141 done
7142 IFS=$as_save_IFS
7146 NMEDIT=$ac_cv_prog_NMEDIT
7147 if test -n "$NMEDIT"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7149 $as_echo "$NMEDIT" >&6; }
7150 else
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7157 if test -z "$ac_cv_prog_NMEDIT"; then
7158 ac_ct_NMEDIT=$NMEDIT
7159 # Extract the first word of "nmedit", so it can be a program name with args.
7160 set dummy nmedit; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 if test -n "$ac_ct_NMEDIT"; then
7167 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7180 done
7181 done
7182 IFS=$as_save_IFS
7186 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7187 if test -n "$ac_ct_NMEDIT"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7189 $as_echo "$ac_ct_NMEDIT" >&6; }
7190 else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7195 if test "x$ac_ct_NMEDIT" = x; then
7196 NMEDIT=":"
7197 else
7198 case $cross_compiling:$ac_tool_warned in
7199 yes:)
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7202 ac_tool_warned=yes ;;
7203 esac
7204 NMEDIT=$ac_ct_NMEDIT
7206 else
7207 NMEDIT="$ac_cv_prog_NMEDIT"
7210 if test -n "$ac_tool_prefix"; then
7211 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7212 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7214 $as_echo_n "checking for $ac_word... " >&6; }
7215 if ${ac_cv_prog_LIPO+:} false; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 if test -n "$LIPO"; then
7219 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7220 else
7221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7224 IFS=$as_save_IFS
7225 test -z "$as_dir" && as_dir=.
7226 for ac_exec_ext in '' $ac_executable_extensions; do
7227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 break 2
7232 done
7233 done
7234 IFS=$as_save_IFS
7238 LIPO=$ac_cv_prog_LIPO
7239 if test -n "$LIPO"; then
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7241 $as_echo "$LIPO" >&6; }
7242 else
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7244 $as_echo "no" >&6; }
7249 if test -z "$ac_cv_prog_LIPO"; then
7250 ac_ct_LIPO=$LIPO
7251 # Extract the first word of "lipo", so it can be a program name with args.
7252 set dummy lipo; ac_word=$2
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254 $as_echo_n "checking for $ac_word... " >&6; }
7255 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 if test -n "$ac_ct_LIPO"; then
7259 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_ac_ct_LIPO="lipo"
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7272 done
7273 done
7274 IFS=$as_save_IFS
7278 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7279 if test -n "$ac_ct_LIPO"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7281 $as_echo "$ac_ct_LIPO" >&6; }
7282 else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7287 if test "x$ac_ct_LIPO" = x; then
7288 LIPO=":"
7289 else
7290 case $cross_compiling:$ac_tool_warned in
7291 yes:)
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7294 ac_tool_warned=yes ;;
7295 esac
7296 LIPO=$ac_ct_LIPO
7298 else
7299 LIPO="$ac_cv_prog_LIPO"
7302 if test -n "$ac_tool_prefix"; then
7303 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7304 set dummy ${ac_tool_prefix}otool; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_prog_OTOOL+:} false; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310 if test -n "$OTOOL"; then
7311 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7316 IFS=$as_save_IFS
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7320 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322 break 2
7324 done
7325 done
7326 IFS=$as_save_IFS
7330 OTOOL=$ac_cv_prog_OTOOL
7331 if test -n "$OTOOL"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7333 $as_echo "$OTOOL" >&6; }
7334 else
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7341 if test -z "$ac_cv_prog_OTOOL"; then
7342 ac_ct_OTOOL=$OTOOL
7343 # Extract the first word of "otool", so it can be a program name with args.
7344 set dummy otool; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 if test -n "$ac_ct_OTOOL"; then
7351 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7352 else
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_ac_ct_OTOOL="otool"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7364 done
7365 done
7366 IFS=$as_save_IFS
7370 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7371 if test -n "$ac_ct_OTOOL"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7373 $as_echo "$ac_ct_OTOOL" >&6; }
7374 else
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7379 if test "x$ac_ct_OTOOL" = x; then
7380 OTOOL=":"
7381 else
7382 case $cross_compiling:$ac_tool_warned in
7383 yes:)
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7386 ac_tool_warned=yes ;;
7387 esac
7388 OTOOL=$ac_ct_OTOOL
7390 else
7391 OTOOL="$ac_cv_prog_OTOOL"
7394 if test -n "$ac_tool_prefix"; then
7395 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7396 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 $as_echo_n "checking for $ac_word... " >&6; }
7399 if ${ac_cv_prog_OTOOL64+:} false; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 if test -n "$OTOOL64"; then
7403 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7416 done
7417 done
7418 IFS=$as_save_IFS
7422 OTOOL64=$ac_cv_prog_OTOOL64
7423 if test -n "$OTOOL64"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7425 $as_echo "$OTOOL64" >&6; }
7426 else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7433 if test -z "$ac_cv_prog_OTOOL64"; then
7434 ac_ct_OTOOL64=$OTOOL64
7435 # Extract the first word of "otool64", so it can be a program name with args.
7436 set dummy otool64; ac_word=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7440 $as_echo_n "(cached) " >&6
7441 else
7442 if test -n "$ac_ct_OTOOL64"; then
7443 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7444 else
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7452 ac_cv_prog_ac_ct_OTOOL64="otool64"
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7456 done
7457 done
7458 IFS=$as_save_IFS
7462 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7463 if test -n "$ac_ct_OTOOL64"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7465 $as_echo "$ac_ct_OTOOL64" >&6; }
7466 else
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7471 if test "x$ac_ct_OTOOL64" = x; then
7472 OTOOL64=":"
7473 else
7474 case $cross_compiling:$ac_tool_warned in
7475 yes:)
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7478 ac_tool_warned=yes ;;
7479 esac
7480 OTOOL64=$ac_ct_OTOOL64
7482 else
7483 OTOOL64="$ac_cv_prog_OTOOL64"
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7513 $as_echo_n "checking for -single_module linker flag... " >&6; }
7514 if ${lt_cv_apple_cc_single_mod+:} false; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 lt_cv_apple_cc_single_mod=no
7518 if test -z "${LT_MULTI_MODULE}"; then
7519 # By default we will add the -single_module flag. You can override
7520 # by either setting the environment variable LT_MULTI_MODULE
7521 # non-empty at configure time, or by adding -multi_module to the
7522 # link flags.
7523 rm -rf libconftest.dylib*
7524 echo "int foo(void){return 1;}" > conftest.c
7525 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7526 -dynamiclib -Wl,-single_module conftest.c" >&5
7527 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7528 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7529 _lt_result=$?
7530 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7531 lt_cv_apple_cc_single_mod=yes
7532 else
7533 cat conftest.err >&5
7535 rm -rf libconftest.dylib*
7536 rm -f conftest.*
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7540 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7542 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7543 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 lt_cv_ld_exported_symbols_list=no
7547 save_LDFLAGS=$LDFLAGS
7548 echo "_main" > conftest.sym
7549 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7554 main ()
7558 return 0;
7560 _ACEOF
7561 if ac_fn_c_try_link "$LINENO"; then :
7562 lt_cv_ld_exported_symbols_list=yes
7563 else
7564 lt_cv_ld_exported_symbols_list=no
7566 rm -f core conftest.err conftest.$ac_objext \
7567 conftest$ac_exeext conftest.$ac_ext
7568 LDFLAGS="$save_LDFLAGS"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7572 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7574 $as_echo_n "checking for -force_load linker flag... " >&6; }
7575 if ${lt_cv_ld_force_load+:} false; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 lt_cv_ld_force_load=no
7579 cat > conftest.c << _LT_EOF
7580 int forced_loaded() { return 2;}
7581 _LT_EOF
7582 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7583 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7584 echo "$AR cru libconftest.a conftest.o" >&5
7585 $AR cru libconftest.a conftest.o 2>&5
7586 cat > conftest.c << _LT_EOF
7587 int main() { return 0;}
7588 _LT_EOF
7589 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7590 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7591 _lt_result=$?
7592 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7593 lt_cv_ld_force_load=yes
7594 else
7595 cat conftest.err >&5
7597 rm -f conftest.err libconftest.a conftest conftest.c
7598 rm -rf conftest.dSYM
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7602 $as_echo "$lt_cv_ld_force_load" >&6; }
7603 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7604 # build without first building modern cctools / linker.
7605 case $host_cpu-$host_os in
7606 *-rhapsody* | *-darwin1.[012])
7607 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7608 *-darwin1.*)
7609 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7610 *-darwin*)
7611 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7612 # deployment target is forced to an earlier version.
7613 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7614 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
7616 10.[012][,.]*)
7617 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7621 esac
7623 esac
7624 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7625 _lt_dar_single_mod='$single_module'
7627 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7628 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7629 else
7630 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7632 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7633 _lt_dsymutil='~$DSYMUTIL $lib || :'
7634 else
7635 _lt_dsymutil=
7638 esac
7640 ac_ext=c
7641 ac_cpp='$CPP $CPPFLAGS'
7642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7646 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7647 # On Suns, sometimes $CPP names a directory.
7648 if test -n "$CPP" && test -d "$CPP"; then
7649 CPP=
7651 if test -z "$CPP"; then
7652 if ${ac_cv_prog_CPP+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 # Double quotes because CPP needs to be expanded
7656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7658 ac_preproc_ok=false
7659 for ac_c_preproc_warn_flag in '' yes
7661 # Use a header file that comes with gcc, so configuring glibc
7662 # with a fresh cross-compiler works.
7663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7664 # <limits.h> exists even on freestanding compilers.
7665 # On the NeXT, cc -E runs the code through the compiler's parser,
7666 # not just through cpp. "Syntax error" is here to catch this case.
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7669 #ifdef __STDC__
7670 # include <limits.h>
7671 #else
7672 # include <assert.h>
7673 #endif
7674 Syntax error
7675 _ACEOF
7676 if ac_fn_c_try_cpp "$LINENO"; then :
7678 else
7679 # Broken: fails on valid input.
7680 continue
7682 rm -f conftest.err conftest.i conftest.$ac_ext
7684 # OK, works on sane cases. Now check whether nonexistent headers
7685 # can be detected and how.
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7688 #include <ac_nonexistent.h>
7689 _ACEOF
7690 if ac_fn_c_try_cpp "$LINENO"; then :
7691 # Broken: success on invalid input.
7692 continue
7693 else
7694 # Passes both tests.
7695 ac_preproc_ok=:
7696 break
7698 rm -f conftest.err conftest.i conftest.$ac_ext
7700 done
7701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7702 rm -f conftest.i conftest.err conftest.$ac_ext
7703 if $ac_preproc_ok; then :
7704 break
7707 done
7708 ac_cv_prog_CPP=$CPP
7711 CPP=$ac_cv_prog_CPP
7712 else
7713 ac_cv_prog_CPP=$CPP
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7716 $as_echo "$CPP" >&6; }
7717 ac_preproc_ok=false
7718 for ac_c_preproc_warn_flag in '' yes
7720 # Use a header file that comes with gcc, so configuring glibc
7721 # with a fresh cross-compiler works.
7722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7723 # <limits.h> exists even on freestanding compilers.
7724 # On the NeXT, cc -E runs the code through the compiler's parser,
7725 # not just through cpp. "Syntax error" is here to catch this case.
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7728 #ifdef __STDC__
7729 # include <limits.h>
7730 #else
7731 # include <assert.h>
7732 #endif
7733 Syntax error
7734 _ACEOF
7735 if ac_fn_c_try_cpp "$LINENO"; then :
7737 else
7738 # Broken: fails on valid input.
7739 continue
7741 rm -f conftest.err conftest.i conftest.$ac_ext
7743 # OK, works on sane cases. Now check whether nonexistent headers
7744 # can be detected and how.
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7747 #include <ac_nonexistent.h>
7748 _ACEOF
7749 if ac_fn_c_try_cpp "$LINENO"; then :
7750 # Broken: success on invalid input.
7751 continue
7752 else
7753 # Passes both tests.
7754 ac_preproc_ok=:
7755 break
7757 rm -f conftest.err conftest.i conftest.$ac_ext
7759 done
7760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7761 rm -f conftest.i conftest.err conftest.$ac_ext
7762 if $ac_preproc_ok; then :
7764 else
7765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7767 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7768 See \`config.log' for more details" "$LINENO" 5; }
7771 ac_ext=c
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7779 $as_echo_n "checking for ANSI C header files... " >&6; }
7780 if ${ac_cv_header_stdc+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7785 #include <stdlib.h>
7786 #include <stdarg.h>
7787 #include <string.h>
7788 #include <float.h>
7791 main ()
7795 return 0;
7797 _ACEOF
7798 if ac_fn_c_try_compile "$LINENO"; then :
7799 ac_cv_header_stdc=yes
7800 else
7801 ac_cv_header_stdc=no
7803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805 if test $ac_cv_header_stdc = yes; then
7806 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809 #include <string.h>
7811 _ACEOF
7812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7813 $EGREP "memchr" >/dev/null 2>&1; then :
7815 else
7816 ac_cv_header_stdc=no
7818 rm -f conftest*
7822 if test $ac_cv_header_stdc = yes; then
7823 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 #include <stdlib.h>
7828 _ACEOF
7829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7830 $EGREP "free" >/dev/null 2>&1; then :
7832 else
7833 ac_cv_header_stdc=no
7835 rm -f conftest*
7839 if test $ac_cv_header_stdc = yes; then
7840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7841 if test "$cross_compiling" = yes; then :
7843 else
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7846 #include <ctype.h>
7847 #include <stdlib.h>
7848 #if ((' ' & 0x0FF) == 0x020)
7849 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7850 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7851 #else
7852 # define ISLOWER(c) \
7853 (('a' <= (c) && (c) <= 'i') \
7854 || ('j' <= (c) && (c) <= 'r') \
7855 || ('s' <= (c) && (c) <= 'z'))
7856 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7857 #endif
7859 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7861 main ()
7863 int i;
7864 for (i = 0; i < 256; i++)
7865 if (XOR (islower (i), ISLOWER (i))
7866 || toupper (i) != TOUPPER (i))
7867 return 2;
7868 return 0;
7870 _ACEOF
7871 if ac_fn_c_try_run "$LINENO"; then :
7873 else
7874 ac_cv_header_stdc=no
7876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7877 conftest.$ac_objext conftest.beam conftest.$ac_ext
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7883 $as_echo "$ac_cv_header_stdc" >&6; }
7884 if test $ac_cv_header_stdc = yes; then
7886 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7890 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7891 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7892 inttypes.h stdint.h unistd.h
7893 do :
7894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7895 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7897 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7898 cat >>confdefs.h <<_ACEOF
7899 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7900 _ACEOF
7904 done
7907 for ac_header in dlfcn.h
7908 do :
7909 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7911 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7912 cat >>confdefs.h <<_ACEOF
7913 #define HAVE_DLFCN_H 1
7914 _ACEOF
7918 done
7924 # Set options
7928 enable_dlopen=no
7931 enable_win32_dll=no
7934 # Check whether --enable-shared was given.
7935 if test "${enable_shared+set}" = set; then :
7936 enableval=$enable_shared; p=${PACKAGE-default}
7937 case $enableval in
7938 yes) enable_shared=yes ;;
7939 no) enable_shared=no ;;
7941 enable_shared=no
7942 # Look at the argument we got. We use all the common list separators.
7943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7944 for pkg in $enableval; do
7945 IFS="$lt_save_ifs"
7946 if test "X$pkg" = "X$p"; then
7947 enable_shared=yes
7949 done
7950 IFS="$lt_save_ifs"
7952 esac
7953 else
7954 enable_shared=yes
7965 # Check whether --enable-static was given.
7966 if test "${enable_static+set}" = set; then :
7967 enableval=$enable_static; p=${PACKAGE-default}
7968 case $enableval in
7969 yes) enable_static=yes ;;
7970 no) enable_static=no ;;
7972 enable_static=no
7973 # Look at the argument we got. We use all the common list separators.
7974 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7975 for pkg in $enableval; do
7976 IFS="$lt_save_ifs"
7977 if test "X$pkg" = "X$p"; then
7978 enable_static=yes
7980 done
7981 IFS="$lt_save_ifs"
7983 esac
7984 else
7985 enable_static=yes
7997 # Check whether --with-pic was given.
7998 if test "${with_pic+set}" = set; then :
7999 withval=$with_pic; pic_mode="$withval"
8000 else
8001 pic_mode=default
8005 test -z "$pic_mode" && pic_mode=default
8013 # Check whether --enable-fast-install was given.
8014 if test "${enable_fast_install+set}" = set; then :
8015 enableval=$enable_fast_install; p=${PACKAGE-default}
8016 case $enableval in
8017 yes) enable_fast_install=yes ;;
8018 no) enable_fast_install=no ;;
8020 enable_fast_install=no
8021 # Look at the argument we got. We use all the common list separators.
8022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8023 for pkg in $enableval; do
8024 IFS="$lt_save_ifs"
8025 if test "X$pkg" = "X$p"; then
8026 enable_fast_install=yes
8028 done
8029 IFS="$lt_save_ifs"
8031 esac
8032 else
8033 enable_fast_install=yes
8046 # This can be used to rebuild libtool when needed
8047 LIBTOOL_DEPS="$ltmain"
8049 # Always use our own libtool.
8050 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8077 test -z "$LN_S" && LN_S="ln -s"
8092 if test -n "${ZSH_VERSION+set}" ; then
8093 setopt NO_GLOB_SUBST
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8097 $as_echo_n "checking for objdir... " >&6; }
8098 if ${lt_cv_objdir+:} false; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 rm -f .libs 2>/dev/null
8102 mkdir .libs 2>/dev/null
8103 if test -d .libs; then
8104 lt_cv_objdir=.libs
8105 else
8106 # MS-DOS does not allow filenames that begin with a dot.
8107 lt_cv_objdir=_libs
8109 rmdir .libs 2>/dev/null
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8112 $as_echo "$lt_cv_objdir" >&6; }
8113 objdir=$lt_cv_objdir
8119 cat >>confdefs.h <<_ACEOF
8120 #define LT_OBJDIR "$lt_cv_objdir/"
8121 _ACEOF
8126 case $host_os in
8127 aix3*)
8128 # AIX sometimes has problems with the GCC collect2 program. For some
8129 # reason, if we set the COLLECT_NAMES environment variable, the problems
8130 # vanish in a puff of smoke.
8131 if test "X${COLLECT_NAMES+set}" != Xset; then
8132 COLLECT_NAMES=
8133 export COLLECT_NAMES
8136 esac
8138 # Global variables:
8139 ofile=libtool
8140 can_build_shared=yes
8142 # All known linkers require a `.a' archive for static linking (except MSVC,
8143 # which needs '.lib').
8144 libext=a
8146 with_gnu_ld="$lt_cv_prog_gnu_ld"
8148 old_CC="$CC"
8149 old_CFLAGS="$CFLAGS"
8151 # Set sane defaults for various variables
8152 test -z "$CC" && CC=cc
8153 test -z "$LTCC" && LTCC=$CC
8154 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8155 test -z "$LD" && LD=ld
8156 test -z "$ac_objext" && ac_objext=o
8158 for cc_temp in $compiler""; do
8159 case $cc_temp in
8160 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8161 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8162 \-*) ;;
8163 *) break;;
8164 esac
8165 done
8166 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8169 # Only perform the check for file, if the check method requires it
8170 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8171 case $deplibs_check_method in
8172 file_magic*)
8173 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8175 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8176 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 case $MAGIC_CMD in
8180 [\\/*] | ?:[\\/]*)
8181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8184 lt_save_MAGIC_CMD="$MAGIC_CMD"
8185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8186 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8187 for ac_dir in $ac_dummy; do
8188 IFS="$lt_save_ifs"
8189 test -z "$ac_dir" && ac_dir=.
8190 if test -f $ac_dir/${ac_tool_prefix}file; then
8191 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8192 if test -n "$file_magic_test_file"; then
8193 case $deplibs_check_method in
8194 "file_magic "*)
8195 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8196 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8197 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8198 $EGREP "$file_magic_regex" > /dev/null; then
8200 else
8201 cat <<_LT_EOF 1>&2
8203 *** Warning: the command libtool uses to detect shared libraries,
8204 *** $file_magic_cmd, produces output that libtool cannot recognize.
8205 *** The result is that libtool may fail to recognize shared libraries
8206 *** as such. This will affect the creation of libtool libraries that
8207 *** depend on shared libraries, but programs linked with such libtool
8208 *** libraries will work regardless of this problem. Nevertheless, you
8209 *** may want to report the problem to your system manager and/or to
8210 *** bug-libtool@gnu.org
8212 _LT_EOF
8213 fi ;;
8214 esac
8216 break
8218 done
8219 IFS="$lt_save_ifs"
8220 MAGIC_CMD="$lt_save_MAGIC_CMD"
8222 esac
8225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8226 if test -n "$MAGIC_CMD"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8228 $as_echo "$MAGIC_CMD" >&6; }
8229 else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 $as_echo "no" >&6; }
8238 if test -z "$lt_cv_path_MAGIC_CMD"; then
8239 if test -n "$ac_tool_prefix"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8241 $as_echo_n "checking for file... " >&6; }
8242 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8243 $as_echo_n "(cached) " >&6
8244 else
8245 case $MAGIC_CMD in
8246 [\\/*] | ?:[\\/]*)
8247 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8250 lt_save_MAGIC_CMD="$MAGIC_CMD"
8251 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8252 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8253 for ac_dir in $ac_dummy; do
8254 IFS="$lt_save_ifs"
8255 test -z "$ac_dir" && ac_dir=.
8256 if test -f $ac_dir/file; then
8257 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8258 if test -n "$file_magic_test_file"; then
8259 case $deplibs_check_method in
8260 "file_magic "*)
8261 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8262 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8263 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8264 $EGREP "$file_magic_regex" > /dev/null; then
8266 else
8267 cat <<_LT_EOF 1>&2
8269 *** Warning: the command libtool uses to detect shared libraries,
8270 *** $file_magic_cmd, produces output that libtool cannot recognize.
8271 *** The result is that libtool may fail to recognize shared libraries
8272 *** as such. This will affect the creation of libtool libraries that
8273 *** depend on shared libraries, but programs linked with such libtool
8274 *** libraries will work regardless of this problem. Nevertheless, you
8275 *** may want to report the problem to your system manager and/or to
8276 *** bug-libtool@gnu.org
8278 _LT_EOF
8279 fi ;;
8280 esac
8282 break
8284 done
8285 IFS="$lt_save_ifs"
8286 MAGIC_CMD="$lt_save_MAGIC_CMD"
8288 esac
8291 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8292 if test -n "$MAGIC_CMD"; then
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8294 $as_echo "$MAGIC_CMD" >&6; }
8295 else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo "no" >&6; }
8301 else
8302 MAGIC_CMD=:
8308 esac
8310 # Use C for the default configuration in the libtool script
8312 lt_save_CC="$CC"
8313 ac_ext=c
8314 ac_cpp='$CPP $CPPFLAGS'
8315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8320 # Source file extension for C test sources.
8321 ac_ext=c
8323 # Object file extension for compiled C test sources.
8324 objext=o
8325 objext=$objext
8327 # Code to be used in simple compile tests
8328 lt_simple_compile_test_code="int some_variable = 0;"
8330 # Code to be used in simple link tests
8331 lt_simple_link_test_code='int main(){return(0);}'
8339 # If no C compiler was specified, use CC.
8340 LTCC=${LTCC-"$CC"}
8342 # If no C compiler flags were specified, use CFLAGS.
8343 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8345 # Allow CC to be a program name with arguments.
8346 compiler=$CC
8348 # Save the default compiler, since it gets overwritten when the other
8349 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8350 compiler_DEFAULT=$CC
8352 # save warnings/boilerplate of simple test code
8353 ac_outfile=conftest.$ac_objext
8354 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8355 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8356 _lt_compiler_boilerplate=`cat conftest.err`
8357 $RM conftest*
8359 ac_outfile=conftest.$ac_objext
8360 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8361 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8362 _lt_linker_boilerplate=`cat conftest.err`
8363 $RM -r conftest*
8366 ## CAVEAT EMPTOR:
8367 ## There is no encapsulation within the following macros, do not change
8368 ## the running order or otherwise move them around unless you know exactly
8369 ## what you are doing...
8370 if test -n "$compiler"; then
8372 lt_prog_compiler_no_builtin_flag=
8374 if test "$GCC" = yes; then
8375 case $cc_basename in
8376 nvcc*)
8377 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8379 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8380 esac
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8383 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8384 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8385 $as_echo_n "(cached) " >&6
8386 else
8387 lt_cv_prog_compiler_rtti_exceptions=no
8388 ac_outfile=conftest.$ac_objext
8389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8390 lt_compiler_flag="-fno-rtti -fno-exceptions"
8391 # Insert the option either (1) after the last *FLAGS variable, or
8392 # (2) before a word containing "conftest.", or (3) at the end.
8393 # Note that $ac_compile itself does not contain backslashes and begins
8394 # with a dollar sign (not a hyphen), so the echo should work correctly.
8395 # The option is referenced via a variable to avoid confusing sed.
8396 lt_compile=`echo "$ac_compile" | $SED \
8397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8399 -e 's:$: $lt_compiler_flag:'`
8400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8401 (eval "$lt_compile" 2>conftest.err)
8402 ac_status=$?
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 if (exit $ac_status) && test -s "$ac_outfile"; then
8406 # The compiler can only warn and ignore the option if not recognized
8407 # So say no if there are warnings other than the usual output.
8408 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8410 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8411 lt_cv_prog_compiler_rtti_exceptions=yes
8414 $RM conftest*
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8418 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8420 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8421 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8422 else
8433 lt_prog_compiler_wl=
8434 lt_prog_compiler_pic=
8435 lt_prog_compiler_static=
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8438 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8440 if test "$GCC" = yes; then
8441 lt_prog_compiler_wl='-Wl,'
8442 lt_prog_compiler_static='-static'
8444 case $host_os in
8445 aix*)
8446 # All AIX code is PIC.
8447 if test "$host_cpu" = ia64; then
8448 # AIX 5 now supports IA64 processor
8449 lt_prog_compiler_static='-Bstatic'
8451 lt_prog_compiler_pic='-fPIC'
8454 amigaos*)
8455 case $host_cpu in
8456 powerpc)
8457 # see comment about AmigaOS4 .so support
8458 lt_prog_compiler_pic='-fPIC'
8460 m68k)
8461 # FIXME: we need at least 68020 code to build shared libraries, but
8462 # adding the `-m68020' flag to GCC prevents building anything better,
8463 # like `-m68040'.
8464 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8466 esac
8469 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8470 # PIC is the default for these OSes.
8473 mingw* | cygwin* | pw32* | os2* | cegcc*)
8474 # This hack is so that the source file can tell whether it is being
8475 # built for inclusion in a dll (and should export symbols for example).
8476 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8477 # (--disable-auto-import) libraries
8478 lt_prog_compiler_pic='-DDLL_EXPORT'
8481 darwin* | rhapsody*)
8482 # PIC is the default on this platform
8483 # Common symbols not allowed in MH_DYLIB files
8484 lt_prog_compiler_pic='-fno-common'
8487 haiku*)
8488 # PIC is the default for Haiku.
8489 # The "-static" flag exists, but is broken.
8490 lt_prog_compiler_static=
8493 hpux*)
8494 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8495 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8496 # sets the default TLS model and affects inlining.
8497 case $host_cpu in
8498 hppa*64*)
8499 # +Z the default
8502 lt_prog_compiler_pic='-fPIC'
8504 esac
8507 interix[3-9]*)
8508 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8509 # Instead, we relocate shared libraries at runtime.
8512 msdosdjgpp*)
8513 # Just because we use GCC doesn't mean we suddenly get shared libraries
8514 # on systems that don't support them.
8515 lt_prog_compiler_can_build_shared=no
8516 enable_shared=no
8519 *nto* | *qnx*)
8520 # QNX uses GNU C++, but need to define -shared option too, otherwise
8521 # it will coredump.
8522 lt_prog_compiler_pic='-fPIC -shared'
8525 sysv4*MP*)
8526 if test -d /usr/nec; then
8527 lt_prog_compiler_pic=-Kconform_pic
8532 lt_prog_compiler_pic='-fPIC'
8534 esac
8536 case $cc_basename in
8537 nvcc*) # Cuda Compiler Driver 2.2
8538 lt_prog_compiler_wl='-Xlinker '
8539 lt_prog_compiler_pic='-Xcompiler -fPIC'
8541 esac
8542 else
8543 # PORTME Check for flag to pass linker flags through the system compiler.
8544 case $host_os in
8545 aix*)
8546 lt_prog_compiler_wl='-Wl,'
8547 if test "$host_cpu" = ia64; then
8548 # AIX 5 now supports IA64 processor
8549 lt_prog_compiler_static='-Bstatic'
8550 else
8551 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8555 mingw* | cygwin* | pw32* | os2* | cegcc*)
8556 # This hack is so that the source file can tell whether it is being
8557 # built for inclusion in a dll (and should export symbols for example).
8558 lt_prog_compiler_pic='-DDLL_EXPORT'
8561 hpux9* | hpux10* | hpux11*)
8562 lt_prog_compiler_wl='-Wl,'
8563 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8564 # not for PA HP-UX.
8565 case $host_cpu in
8566 hppa*64*|ia64*)
8567 # +Z the default
8570 lt_prog_compiler_pic='+Z'
8572 esac
8573 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8574 lt_prog_compiler_static='${wl}-a ${wl}archive'
8577 irix5* | irix6* | nonstopux*)
8578 lt_prog_compiler_wl='-Wl,'
8579 # PIC (with -KPIC) is the default.
8580 lt_prog_compiler_static='-non_shared'
8583 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8584 case $cc_basename in
8585 # old Intel for x86_64 which still supported -KPIC.
8586 ecc*)
8587 lt_prog_compiler_wl='-Wl,'
8588 lt_prog_compiler_pic='-KPIC'
8589 lt_prog_compiler_static='-static'
8591 # icc used to be incompatible with GCC.
8592 # ICC 10 doesn't accept -KPIC any more.
8593 icc* | ifort*)
8594 lt_prog_compiler_wl='-Wl,'
8595 lt_prog_compiler_pic='-fPIC'
8596 lt_prog_compiler_static='-static'
8598 # Lahey Fortran 8.1.
8599 lf95*)
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_pic='--shared'
8602 lt_prog_compiler_static='--static'
8604 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8605 # Portland Group compilers (*not* the Pentium gcc compiler,
8606 # which looks to be a dead project)
8607 lt_prog_compiler_wl='-Wl,'
8608 lt_prog_compiler_pic='-fpic'
8609 lt_prog_compiler_static='-Bstatic'
8611 ccc*)
8612 lt_prog_compiler_wl='-Wl,'
8613 # All Alpha code is PIC.
8614 lt_prog_compiler_static='-non_shared'
8616 xl* | bgxl* | bgf* | mpixl*)
8617 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8618 lt_prog_compiler_wl='-Wl,'
8619 lt_prog_compiler_pic='-qpic'
8620 lt_prog_compiler_static='-qstaticlink'
8623 case `$CC -V 2>&1 | sed 5q` in
8624 *Sun\ F* | *Sun*Fortran*)
8625 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8626 lt_prog_compiler_pic='-KPIC'
8627 lt_prog_compiler_static='-Bstatic'
8628 lt_prog_compiler_wl=''
8630 *Sun\ C*)
8631 # Sun C 5.9
8632 lt_prog_compiler_pic='-KPIC'
8633 lt_prog_compiler_static='-Bstatic'
8634 lt_prog_compiler_wl='-Wl,'
8636 esac
8638 esac
8641 newsos6)
8642 lt_prog_compiler_pic='-KPIC'
8643 lt_prog_compiler_static='-Bstatic'
8646 *nto* | *qnx*)
8647 # QNX uses GNU C++, but need to define -shared option too, otherwise
8648 # it will coredump.
8649 lt_prog_compiler_pic='-fPIC -shared'
8652 osf3* | osf4* | osf5*)
8653 lt_prog_compiler_wl='-Wl,'
8654 # All OSF/1 code is PIC.
8655 lt_prog_compiler_static='-non_shared'
8658 rdos*)
8659 lt_prog_compiler_static='-non_shared'
8662 solaris*)
8663 lt_prog_compiler_pic='-KPIC'
8664 lt_prog_compiler_static='-Bstatic'
8665 case $cc_basename in
8666 f77* | f90* | f95*)
8667 lt_prog_compiler_wl='-Qoption ld ';;
8669 lt_prog_compiler_wl='-Wl,';;
8670 esac
8673 sunos4*)
8674 lt_prog_compiler_wl='-Qoption ld '
8675 lt_prog_compiler_pic='-PIC'
8676 lt_prog_compiler_static='-Bstatic'
8679 sysv4 | sysv4.2uw2* | sysv4.3*)
8680 lt_prog_compiler_wl='-Wl,'
8681 lt_prog_compiler_pic='-KPIC'
8682 lt_prog_compiler_static='-Bstatic'
8685 sysv4*MP*)
8686 if test -d /usr/nec ;then
8687 lt_prog_compiler_pic='-Kconform_pic'
8688 lt_prog_compiler_static='-Bstatic'
8692 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8693 lt_prog_compiler_wl='-Wl,'
8694 lt_prog_compiler_pic='-KPIC'
8695 lt_prog_compiler_static='-Bstatic'
8698 unicos*)
8699 lt_prog_compiler_wl='-Wl,'
8700 lt_prog_compiler_can_build_shared=no
8703 uts4*)
8704 lt_prog_compiler_pic='-pic'
8705 lt_prog_compiler_static='-Bstatic'
8709 lt_prog_compiler_can_build_shared=no
8711 esac
8714 case $host_os in
8715 # For platforms which do not support PIC, -DPIC is meaningless:
8716 *djgpp*)
8717 lt_prog_compiler_pic=
8720 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8722 esac
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8724 $as_echo "$lt_prog_compiler_pic" >&6; }
8732 # Check to make sure the PIC flag actually works.
8734 if test -n "$lt_prog_compiler_pic"; then
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8736 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8737 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8738 $as_echo_n "(cached) " >&6
8739 else
8740 lt_cv_prog_compiler_pic_works=no
8741 ac_outfile=conftest.$ac_objext
8742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8743 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8744 # Insert the option either (1) after the last *FLAGS variable, or
8745 # (2) before a word containing "conftest.", or (3) at the end.
8746 # Note that $ac_compile itself does not contain backslashes and begins
8747 # with a dollar sign (not a hyphen), so the echo should work correctly.
8748 # The option is referenced via a variable to avoid confusing sed.
8749 lt_compile=`echo "$ac_compile" | $SED \
8750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8752 -e 's:$: $lt_compiler_flag:'`
8753 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8754 (eval "$lt_compile" 2>conftest.err)
8755 ac_status=$?
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 if (exit $ac_status) && test -s "$ac_outfile"; then
8759 # The compiler can only warn and ignore the option if not recognized
8760 # So say no if there are warnings other than the usual output.
8761 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8763 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8764 lt_cv_prog_compiler_pic_works=yes
8767 $RM conftest*
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8771 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8773 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8774 case $lt_prog_compiler_pic in
8775 "" | " "*) ;;
8776 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8777 esac
8778 else
8779 lt_prog_compiler_pic=
8780 lt_prog_compiler_can_build_shared=no
8791 # Check to make sure the static flag actually works.
8793 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8795 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8796 if ${lt_cv_prog_compiler_static_works+:} false; then :
8797 $as_echo_n "(cached) " >&6
8798 else
8799 lt_cv_prog_compiler_static_works=no
8800 save_LDFLAGS="$LDFLAGS"
8801 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8802 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8803 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8804 # The linker can only warn and ignore the option if not recognized
8805 # So say no if there are warnings
8806 if test -s conftest.err; then
8807 # Append any errors to the config.log.
8808 cat conftest.err 1>&5
8809 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8810 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8811 if diff conftest.exp conftest.er2 >/dev/null; then
8812 lt_cv_prog_compiler_static_works=yes
8814 else
8815 lt_cv_prog_compiler_static_works=yes
8818 $RM -r conftest*
8819 LDFLAGS="$save_LDFLAGS"
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8823 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8825 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8827 else
8828 lt_prog_compiler_static=
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8838 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8839 if ${lt_cv_prog_compiler_c_o+:} false; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 lt_cv_prog_compiler_c_o=no
8843 $RM -r conftest 2>/dev/null
8844 mkdir conftest
8845 cd conftest
8846 mkdir out
8847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8849 lt_compiler_flag="-o out/conftest2.$ac_objext"
8850 # Insert the option either (1) after the last *FLAGS variable, or
8851 # (2) before a word containing "conftest.", or (3) at the end.
8852 # Note that $ac_compile itself does not contain backslashes and begins
8853 # with a dollar sign (not a hyphen), so the echo should work correctly.
8854 lt_compile=`echo "$ac_compile" | $SED \
8855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857 -e 's:$: $lt_compiler_flag:'`
8858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8859 (eval "$lt_compile" 2>out/conftest.err)
8860 ac_status=$?
8861 cat out/conftest.err >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8864 then
8865 # The compiler can only warn and ignore the option if not recognized
8866 # So say no if there are warnings
8867 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8868 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8869 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8870 lt_cv_prog_compiler_c_o=yes
8873 chmod u+w . 2>&5
8874 $RM conftest*
8875 # SGI C++ compiler will create directory out/ii_files/ for
8876 # template instantiation
8877 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8878 $RM out/* && rmdir out
8879 cd ..
8880 $RM -r conftest
8881 $RM conftest*
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8885 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8893 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8894 if ${lt_cv_prog_compiler_c_o+:} false; then :
8895 $as_echo_n "(cached) " >&6
8896 else
8897 lt_cv_prog_compiler_c_o=no
8898 $RM -r conftest 2>/dev/null
8899 mkdir conftest
8900 cd conftest
8901 mkdir out
8902 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8904 lt_compiler_flag="-o out/conftest2.$ac_objext"
8905 # Insert the option either (1) after the last *FLAGS variable, or
8906 # (2) before a word containing "conftest.", or (3) at the end.
8907 # Note that $ac_compile itself does not contain backslashes and begins
8908 # with a dollar sign (not a hyphen), so the echo should work correctly.
8909 lt_compile=`echo "$ac_compile" | $SED \
8910 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8911 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8912 -e 's:$: $lt_compiler_flag:'`
8913 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8914 (eval "$lt_compile" 2>out/conftest.err)
8915 ac_status=$?
8916 cat out/conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8919 then
8920 # The compiler can only warn and ignore the option if not recognized
8921 # So say no if there are warnings
8922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8923 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8924 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8925 lt_cv_prog_compiler_c_o=yes
8928 chmod u+w . 2>&5
8929 $RM conftest*
8930 # SGI C++ compiler will create directory out/ii_files/ for
8931 # template instantiation
8932 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8933 $RM out/* && rmdir out
8934 cd ..
8935 $RM -r conftest
8936 $RM conftest*
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8940 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8945 hard_links="nottested"
8946 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8947 # do not overwrite the value of need_locks provided by the user
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8949 $as_echo_n "checking if we can lock with hard links... " >&6; }
8950 hard_links=yes
8951 $RM conftest*
8952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8953 touch conftest.a
8954 ln conftest.a conftest.b 2>&5 || hard_links=no
8955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8957 $as_echo "$hard_links" >&6; }
8958 if test "$hard_links" = no; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8960 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8961 need_locks=warn
8963 else
8964 need_locks=no
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8973 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8975 runpath_var=
8976 allow_undefined_flag=
8977 always_export_symbols=no
8978 archive_cmds=
8979 archive_expsym_cmds=
8980 compiler_needs_object=no
8981 enable_shared_with_static_runtimes=no
8982 export_dynamic_flag_spec=
8983 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8984 hardcode_automatic=no
8985 hardcode_direct=no
8986 hardcode_direct_absolute=no
8987 hardcode_libdir_flag_spec=
8988 hardcode_libdir_flag_spec_ld=
8989 hardcode_libdir_separator=
8990 hardcode_minus_L=no
8991 hardcode_shlibpath_var=unsupported
8992 inherit_rpath=no
8993 link_all_deplibs=unknown
8994 module_cmds=
8995 module_expsym_cmds=
8996 old_archive_from_new_cmds=
8997 old_archive_from_expsyms_cmds=
8998 thread_safe_flag_spec=
8999 whole_archive_flag_spec=
9000 # include_expsyms should be a list of space-separated symbols to be *always*
9001 # included in the symbol list
9002 include_expsyms=
9003 # exclude_expsyms can be an extended regexp of symbols to exclude
9004 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9005 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9006 # as well as any symbol that contains `d'.
9007 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9008 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9009 # platforms (ab)use it in PIC code, but their linkers get confused if
9010 # the symbol is explicitly referenced. Since portable code cannot
9011 # rely on this symbol name, it's probably fine to never include it in
9012 # preloaded symbol tables.
9013 # Exclude shared library initialization/finalization symbols.
9014 extract_expsyms_cmds=
9016 case $host_os in
9017 cygwin* | mingw* | pw32* | cegcc*)
9018 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9019 # When not using gcc, we currently assume that we are using
9020 # Microsoft Visual C++.
9021 if test "$GCC" != yes; then
9022 with_gnu_ld=no
9025 interix*)
9026 # we just hope/assume this is gcc and not c89 (= MSVC++)
9027 with_gnu_ld=yes
9029 openbsd*)
9030 with_gnu_ld=no
9032 esac
9034 ld_shlibs=yes
9036 # On some targets, GNU ld is compatible enough with the native linker
9037 # that we're better off using the native interface for both.
9038 lt_use_gnu_ld_interface=no
9039 if test "$with_gnu_ld" = yes; then
9040 case $host_os in
9041 aix*)
9042 # The AIX port of GNU ld has always aspired to compatibility
9043 # with the native linker. However, as the warning in the GNU ld
9044 # block says, versions before 2.19.5* couldn't really create working
9045 # shared libraries, regardless of the interface used.
9046 case `$LD -v 2>&1` in
9047 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9048 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9049 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9051 lt_use_gnu_ld_interface=yes
9053 esac
9056 lt_use_gnu_ld_interface=yes
9058 esac
9061 if test "$lt_use_gnu_ld_interface" = yes; then
9062 # If archive_cmds runs LD, not CC, wlarc should be empty
9063 wlarc='${wl}'
9065 # Set some defaults for GNU ld with shared library support. These
9066 # are reset later if shared libraries are not supported. Putting them
9067 # here allows them to be overridden if necessary.
9068 runpath_var=LD_RUN_PATH
9069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9070 export_dynamic_flag_spec='${wl}--export-dynamic'
9071 # ancient GNU ld didn't support --whole-archive et. al.
9072 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9073 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9074 else
9075 whole_archive_flag_spec=
9077 supports_anon_versioning=no
9078 case `$LD -v 2>&1` in
9079 *GNU\ gold*) supports_anon_versioning=yes ;;
9080 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9081 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9082 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9083 *\ 2.11.*) ;; # other 2.11 versions
9084 *) supports_anon_versioning=yes ;;
9085 esac
9087 # See if GNU ld supports shared libraries.
9088 case $host_os in
9089 aix[3-9]*)
9090 # On AIX/PPC, the GNU linker is very broken
9091 if test "$host_cpu" != ia64; then
9092 ld_shlibs=no
9093 cat <<_LT_EOF 1>&2
9095 *** Warning: the GNU linker, at least up to release 2.19, is reported
9096 *** to be unable to reliably create shared libraries on AIX.
9097 *** Therefore, libtool is disabling shared libraries support. If you
9098 *** really care for shared libraries, you may want to install binutils
9099 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9100 *** You will then need to restart the configuration process.
9102 _LT_EOF
9106 amigaos*)
9107 case $host_cpu in
9108 powerpc)
9109 # see comment about AmigaOS4 .so support
9110 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9111 archive_expsym_cmds=''
9113 m68k)
9114 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)'
9115 hardcode_libdir_flag_spec='-L$libdir'
9116 hardcode_minus_L=yes
9118 esac
9121 beos*)
9122 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9123 allow_undefined_flag=unsupported
9124 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9125 # support --undefined. This deserves some investigation. FIXME
9126 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9127 else
9128 ld_shlibs=no
9132 cygwin* | mingw* | pw32* | cegcc*)
9133 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9134 # as there is no search path for DLLs.
9135 hardcode_libdir_flag_spec='-L$libdir'
9136 export_dynamic_flag_spec='${wl}--export-all-symbols'
9137 allow_undefined_flag=unsupported
9138 always_export_symbols=no
9139 enable_shared_with_static_runtimes=yes
9140 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9142 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9144 # If the export-symbols file already is a .def file (1st line
9145 # is EXPORTS), use it as is; otherwise, prepend...
9146 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9147 cp $export_symbols $output_objdir/$soname.def;
9148 else
9149 echo EXPORTS > $output_objdir/$soname.def;
9150 cat $export_symbols >> $output_objdir/$soname.def;
9152 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9153 else
9154 ld_shlibs=no
9158 haiku*)
9159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9160 link_all_deplibs=yes
9163 interix[3-9]*)
9164 hardcode_direct=no
9165 hardcode_shlibpath_var=no
9166 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9167 export_dynamic_flag_spec='${wl}-E'
9168 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9169 # Instead, shared libraries are loaded at an image base (0x10000000 by
9170 # default) and relocated if they conflict, which is a slow very memory
9171 # consuming and fragmenting process. To avoid this, we pick a random,
9172 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9173 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9174 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9175 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'
9178 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9179 tmp_diet=no
9180 if test "$host_os" = linux-dietlibc; then
9181 case $cc_basename in
9182 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9183 esac
9185 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9186 && test "$tmp_diet" = no
9187 then
9188 tmp_addflag=' $pic_flag'
9189 tmp_sharedflag='-shared'
9190 case $cc_basename,$host_cpu in
9191 pgcc*) # Portland Group C compiler
9192 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'
9193 tmp_addflag=' $pic_flag'
9195 pgf77* | pgf90* | pgf95* | pgfortran*)
9196 # Portland Group f77 and f90 compilers
9197 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'
9198 tmp_addflag=' $pic_flag -Mnomain' ;;
9199 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9200 tmp_addflag=' -i_dynamic' ;;
9201 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9202 tmp_addflag=' -i_dynamic -nofor_main' ;;
9203 ifc* | ifort*) # Intel Fortran compiler
9204 tmp_addflag=' -nofor_main' ;;
9205 lf95*) # Lahey Fortran 8.1
9206 whole_archive_flag_spec=
9207 tmp_sharedflag='--shared' ;;
9208 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9209 tmp_sharedflag='-qmkshrobj'
9210 tmp_addflag= ;;
9211 nvcc*) # Cuda Compiler Driver 2.2
9212 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'
9213 compiler_needs_object=yes
9215 esac
9216 case `$CC -V 2>&1 | sed 5q` in
9217 *Sun\ C*) # Sun C 5.9
9218 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'
9219 compiler_needs_object=yes
9220 tmp_sharedflag='-G' ;;
9221 *Sun\ F*) # Sun Fortran 8.3
9222 tmp_sharedflag='-G' ;;
9223 esac
9224 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226 if test "x$supports_anon_versioning" = xyes; then
9227 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9228 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9229 echo "local: *; };" >> $output_objdir/$libname.ver~
9230 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9233 case $cc_basename in
9234 xlf* | bgf* | bgxlf* | mpixlf*)
9235 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9236 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9237 hardcode_libdir_flag_spec=
9238 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9239 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9240 if test "x$supports_anon_versioning" = xyes; then
9241 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9242 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9243 echo "local: *; };" >> $output_objdir/$libname.ver~
9244 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9247 esac
9248 else
9249 ld_shlibs=no
9253 netbsd*)
9254 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9255 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9256 wlarc=
9257 else
9258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9263 solaris*)
9264 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9265 ld_shlibs=no
9266 cat <<_LT_EOF 1>&2
9268 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9269 *** create shared libraries on Solaris systems. Therefore, libtool
9270 *** is disabling shared libraries support. We urge you to upgrade GNU
9271 *** binutils to release 2.9.1 or newer. Another option is to modify
9272 *** your PATH or compiler configuration so that the native linker is
9273 *** used, and then restart.
9275 _LT_EOF
9276 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9278 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9279 else
9280 ld_shlibs=no
9284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9285 case `$LD -v 2>&1` in
9286 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9287 ld_shlibs=no
9288 cat <<_LT_EOF 1>&2
9290 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9291 *** reliably create shared libraries on SCO systems. Therefore, libtool
9292 *** is disabling shared libraries support. We urge you to upgrade GNU
9293 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9294 *** your PATH or compiler configuration so that the native linker is
9295 *** used, and then restart.
9297 _LT_EOF
9300 # For security reasons, it is highly recommended that you always
9301 # use absolute paths for naming shared libraries, and exclude the
9302 # DT_RUNPATH tag from executables and libraries. But doing so
9303 # requires that you compile everything twice, which is a pain.
9304 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9305 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9306 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9307 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9308 else
9309 ld_shlibs=no
9312 esac
9315 sunos4*)
9316 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9317 wlarc=
9318 hardcode_direct=yes
9319 hardcode_shlibpath_var=no
9323 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9324 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9325 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9326 else
9327 ld_shlibs=no
9330 esac
9332 if test "$ld_shlibs" = no; then
9333 runpath_var=
9334 hardcode_libdir_flag_spec=
9335 export_dynamic_flag_spec=
9336 whole_archive_flag_spec=
9338 else
9339 # PORTME fill in a description of your system's linker (not GNU ld)
9340 case $host_os in
9341 aix3*)
9342 allow_undefined_flag=unsupported
9343 always_export_symbols=yes
9344 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'
9345 # Note: this linker hardcodes the directories in LIBPATH if there
9346 # are no directories specified by -L.
9347 hardcode_minus_L=yes
9348 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9349 # Neither direct hardcoding nor static linking is supported with a
9350 # broken collect2.
9351 hardcode_direct=unsupported
9355 aix[4-9]*)
9356 if test "$host_cpu" = ia64; then
9357 # On IA64, the linker does run time linking by default, so we don't
9358 # have to do anything special.
9359 aix_use_runtimelinking=no
9360 exp_sym_flag='-Bexport'
9361 no_entry_flag=""
9362 else
9363 # If we're using GNU nm, then we don't want the "-C" option.
9364 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9365 # Also, AIX nm treats weak defined symbols like other global
9366 # defined symbols, whereas GNU nm marks them as "W".
9367 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9368 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'
9369 else
9370 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9372 aix_use_runtimelinking=no
9374 # Test if we are trying to use run time linking or normal
9375 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9376 # need to do runtime linking.
9377 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9378 for ld_flag in $LDFLAGS; do
9379 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9380 aix_use_runtimelinking=yes
9381 break
9383 done
9385 esac
9387 exp_sym_flag='-bexport'
9388 no_entry_flag='-bnoentry'
9391 # When large executables or shared objects are built, AIX ld can
9392 # have problems creating the table of contents. If linking a library
9393 # or program results in "error TOC overflow" add -mminimal-toc to
9394 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9395 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9397 archive_cmds=''
9398 hardcode_direct=yes
9399 hardcode_direct_absolute=yes
9400 hardcode_libdir_separator=':'
9401 link_all_deplibs=yes
9402 file_list_spec='${wl}-f,'
9404 if test "$GCC" = yes; then
9405 case $host_os in aix4.[012]|aix4.[012].*)
9406 # We only want to do this on AIX 4.2 and lower, the check
9407 # below for broken collect2 doesn't work under 4.3+
9408 collect2name=`${CC} -print-prog-name=collect2`
9409 if test -f "$collect2name" &&
9410 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9411 then
9412 # We have reworked collect2
9414 else
9415 # We have old collect2
9416 hardcode_direct=unsupported
9417 # It fails to find uninstalled libraries when the uninstalled
9418 # path is not listed in the libpath. Setting hardcode_minus_L
9419 # to unsupported forces relinking
9420 hardcode_minus_L=yes
9421 hardcode_libdir_flag_spec='-L$libdir'
9422 hardcode_libdir_separator=
9425 esac
9426 shared_flag='-shared'
9427 if test "$aix_use_runtimelinking" = yes; then
9428 shared_flag="$shared_flag "'${wl}-G'
9430 else
9431 # not using gcc
9432 if test "$host_cpu" = ia64; then
9433 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9434 # chokes on -Wl,-G. The following line is correct:
9435 shared_flag='-G'
9436 else
9437 if test "$aix_use_runtimelinking" = yes; then
9438 shared_flag='${wl}-G'
9439 else
9440 shared_flag='${wl}-bM:SRE'
9445 export_dynamic_flag_spec='${wl}-bexpall'
9446 # It seems that -bexpall does not export symbols beginning with
9447 # underscore (_), so it is better to generate a list of symbols to export.
9448 always_export_symbols=yes
9449 if test "$aix_use_runtimelinking" = yes; then
9450 # Warning - without using the other runtime loading flags (-brtl),
9451 # -berok will link without error, but may produce a broken library.
9452 allow_undefined_flag='-berok'
9453 # Determine the default libpath from the value encoded in an
9454 # empty executable.
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9459 main ()
9463 return 0;
9465 _ACEOF
9466 if ac_fn_c_try_link "$LINENO"; then :
9468 lt_aix_libpath_sed='
9469 /Import File Strings/,/^$/ {
9470 /^0/ {
9471 s/^0 *\(.*\)$/\1/
9475 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9476 # Check for a 64-bit object if we didn't find anything.
9477 if test -z "$aix_libpath"; then
9478 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9481 rm -f core conftest.err conftest.$ac_objext \
9482 conftest$ac_exeext conftest.$ac_ext
9483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9485 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9486 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"
9487 else
9488 if test "$host_cpu" = ia64; then
9489 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9490 allow_undefined_flag="-z nodefs"
9491 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"
9492 else
9493 # Determine the default libpath from the value encoded in an
9494 # empty executable.
9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9499 main ()
9503 return 0;
9505 _ACEOF
9506 if ac_fn_c_try_link "$LINENO"; then :
9508 lt_aix_libpath_sed='
9509 /Import File Strings/,/^$/ {
9510 /^0/ {
9511 s/^0 *\(.*\)$/\1/
9515 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9516 # Check for a 64-bit object if we didn't find anything.
9517 if test -z "$aix_libpath"; then
9518 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9521 rm -f core conftest.err conftest.$ac_objext \
9522 conftest$ac_exeext conftest.$ac_ext
9523 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9525 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9526 # Warning - without using the other run time loading flags,
9527 # -berok will link without error, but may produce a broken library.
9528 no_undefined_flag=' ${wl}-bernotok'
9529 allow_undefined_flag=' ${wl}-berok'
9530 if test "$with_gnu_ld" = yes; then
9531 # We only use this code for GNU lds that support --whole-archive.
9532 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9533 else
9534 # Exported symbols can be pulled into shared objects from archives
9535 whole_archive_flag_spec='$convenience'
9537 archive_cmds_need_lc=yes
9538 # This is similar to how AIX traditionally builds its shared libraries.
9539 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'
9544 amigaos*)
9545 case $host_cpu in
9546 powerpc)
9547 # see comment about AmigaOS4 .so support
9548 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9549 archive_expsym_cmds=''
9551 m68k)
9552 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)'
9553 hardcode_libdir_flag_spec='-L$libdir'
9554 hardcode_minus_L=yes
9556 esac
9559 bsdi[45]*)
9560 export_dynamic_flag_spec=-rdynamic
9563 cygwin* | mingw* | pw32* | cegcc*)
9564 # When not using gcc, we currently assume that we are using
9565 # Microsoft Visual C++.
9566 # hardcode_libdir_flag_spec is actually meaningless, as there is
9567 # no search path for DLLs.
9568 hardcode_libdir_flag_spec=' '
9569 allow_undefined_flag=unsupported
9570 # Tell ltmain to make .lib files, not .a files.
9571 libext=lib
9572 # Tell ltmain to make .dll files, not .so files.
9573 shrext_cmds=".dll"
9574 # FIXME: Setting linknames here is a bad hack.
9575 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9576 # The linker will automatically build a .lib file if we build a DLL.
9577 old_archive_from_new_cmds='true'
9578 # FIXME: Should let the user specify the lib program.
9579 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9580 fix_srcfile_path='`cygpath -w "$srcfile"`'
9581 enable_shared_with_static_runtimes=yes
9584 darwin* | rhapsody*)
9588 # Publish an arg to allow the user to select that Darwin host (and target)
9589 # libraries should be given install-names like @rpath/libfoo.dylib. This
9590 # requires that the user of the library then adds an 'rpath' to the DSO that
9591 # needs access.
9592 # NOTE: there are defaults below, for systems that support rpaths. The person
9593 # configuring can override the defaults for any system version that supports
9594 # them - they are, however, forced off for system versions without support.
9595 # Check whether --enable-darwin-at-rpath was given.
9596 if test "${enable_darwin_at_rpath+set}" = set; then :
9597 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
9598 # This is not supported before macOS 10.5 / Darwin9.
9599 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9600 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
9602 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
9603 enable_darwin_at_rpath=no
9605 esac
9607 else
9608 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
9609 # As above, before 10.5 / Darwin9 this does not work.
9610 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
9611 enable_darwin_at_rpath=no
9614 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
9615 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
9616 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
9617 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
9619 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
9620 enable_darwin_at_rpath=yes
9622 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
9623 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
9625 esac
9630 archive_cmds_need_lc=no
9631 hardcode_direct=no
9632 hardcode_automatic=yes
9633 hardcode_shlibpath_var=unsupported
9634 if test "$lt_cv_ld_force_load" = "yes"; then
9635 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\"`'
9636 else
9637 whole_archive_flag_spec=''
9639 link_all_deplibs=yes
9640 allow_undefined_flag="$_lt_dar_allow_undefined"
9641 case $cc_basename in
9642 ifort*) _lt_dar_can_shared=yes ;;
9643 *) _lt_dar_can_shared=$GCC ;;
9644 esac
9645 if test "$_lt_dar_can_shared" = "yes"; then
9646 output_verbose_link_cmd=func_echo_all
9647 _lt_install_name='\$rpath/\$soname'
9648 if test "x$enable_darwin_at_rpath" = "xyes"; then
9649 _lt_install_name='@rpath/\$soname'
9651 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
9652 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9653 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 ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
9654 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}"
9656 else
9657 ld_shlibs=no
9662 dgux*)
9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_libdir_flag_spec='-L$libdir'
9665 hardcode_shlibpath_var=no
9668 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9669 # support. Future versions do this automatically, but an explicit c++rt0.o
9670 # does not break anything, and helps significantly (at the cost of a little
9671 # extra space).
9672 freebsd2.2*)
9673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9674 hardcode_libdir_flag_spec='-R$libdir'
9675 hardcode_direct=yes
9676 hardcode_shlibpath_var=no
9679 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9680 freebsd2.*)
9681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_direct=yes
9683 hardcode_minus_L=yes
9684 hardcode_shlibpath_var=no
9687 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9688 freebsd* | dragonfly*)
9689 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9690 hardcode_libdir_flag_spec='-R$libdir'
9691 hardcode_direct=yes
9692 hardcode_shlibpath_var=no
9695 hpux9*)
9696 if test "$GCC" = yes; then
9697 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'
9698 else
9699 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'
9701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9702 hardcode_libdir_separator=:
9703 hardcode_direct=yes
9705 # hardcode_minus_L: Not really in the search PATH,
9706 # but as the default location of the library.
9707 hardcode_minus_L=yes
9708 export_dynamic_flag_spec='${wl}-E'
9711 hpux10*)
9712 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9713 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9714 else
9715 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9717 if test "$with_gnu_ld" = no; then
9718 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9719 hardcode_libdir_flag_spec_ld='+b $libdir'
9720 hardcode_libdir_separator=:
9721 hardcode_direct=yes
9722 hardcode_direct_absolute=yes
9723 export_dynamic_flag_spec='${wl}-E'
9724 # hardcode_minus_L: Not really in the search PATH,
9725 # but as the default location of the library.
9726 hardcode_minus_L=yes
9730 hpux11*)
9731 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9732 case $host_cpu in
9733 hppa*64*)
9734 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9736 ia64*)
9737 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9740 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9742 esac
9743 else
9744 case $host_cpu in
9745 hppa*64*)
9746 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9748 ia64*)
9749 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9753 # Older versions of the 11.00 compiler do not understand -b yet
9754 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9756 $as_echo_n "checking if $CC understands -b... " >&6; }
9757 if ${lt_cv_prog_compiler__b+:} false; then :
9758 $as_echo_n "(cached) " >&6
9759 else
9760 lt_cv_prog_compiler__b=no
9761 save_LDFLAGS="$LDFLAGS"
9762 LDFLAGS="$LDFLAGS -b"
9763 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9764 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9765 # The linker can only warn and ignore the option if not recognized
9766 # So say no if there are warnings
9767 if test -s conftest.err; then
9768 # Append any errors to the config.log.
9769 cat conftest.err 1>&5
9770 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9771 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9772 if diff conftest.exp conftest.er2 >/dev/null; then
9773 lt_cv_prog_compiler__b=yes
9775 else
9776 lt_cv_prog_compiler__b=yes
9779 $RM -r conftest*
9780 LDFLAGS="$save_LDFLAGS"
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9784 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9786 if test x"$lt_cv_prog_compiler__b" = xyes; then
9787 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9788 else
9789 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9793 esac
9795 if test "$with_gnu_ld" = no; then
9796 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9797 hardcode_libdir_separator=:
9799 case $host_cpu in
9800 hppa*64*|ia64*)
9801 hardcode_direct=no
9802 hardcode_shlibpath_var=no
9805 hardcode_direct=yes
9806 hardcode_direct_absolute=yes
9807 export_dynamic_flag_spec='${wl}-E'
9809 # hardcode_minus_L: Not really in the search PATH,
9810 # but as the default location of the library.
9811 hardcode_minus_L=yes
9813 esac
9817 irix5* | irix6* | nonstopux*)
9818 if test "$GCC" = yes; then
9819 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'
9820 # Try to use the -exported_symbol ld option, if it does not
9821 # work, assume that -exports_file does not work either and
9822 # implicitly export all symbols.
9823 save_LDFLAGS="$LDFLAGS"
9824 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826 /* end confdefs.h. */
9827 int foo(void) {}
9828 _ACEOF
9829 if ac_fn_c_try_link "$LINENO"; then :
9830 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'
9833 rm -f core conftest.err conftest.$ac_objext \
9834 conftest$ac_exeext conftest.$ac_ext
9835 LDFLAGS="$save_LDFLAGS"
9836 else
9837 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'
9838 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'
9840 archive_cmds_need_lc='no'
9841 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9842 hardcode_libdir_separator=:
9843 inherit_rpath=yes
9844 link_all_deplibs=yes
9847 netbsd*)
9848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9850 else
9851 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9853 hardcode_libdir_flag_spec='-R$libdir'
9854 hardcode_direct=yes
9855 hardcode_shlibpath_var=no
9858 newsos6)
9859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9860 hardcode_direct=yes
9861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9862 hardcode_libdir_separator=:
9863 hardcode_shlibpath_var=no
9866 *nto* | *qnx*)
9869 openbsd*)
9870 if test -f /usr/libexec/ld.so; then
9871 hardcode_direct=yes
9872 hardcode_shlibpath_var=no
9873 hardcode_direct_absolute=yes
9874 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9875 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9876 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9877 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9878 export_dynamic_flag_spec='${wl}-E'
9879 else
9880 case $host_os in
9881 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9882 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9883 hardcode_libdir_flag_spec='-R$libdir'
9886 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9887 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9889 esac
9891 else
9892 ld_shlibs=no
9896 os2*)
9897 hardcode_libdir_flag_spec='-L$libdir'
9898 hardcode_minus_L=yes
9899 allow_undefined_flag=unsupported
9900 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'
9901 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9904 osf3*)
9905 if test "$GCC" = yes; then
9906 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9907 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'
9908 else
9909 allow_undefined_flag=' -expect_unresolved \*'
9910 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'
9912 archive_cmds_need_lc='no'
9913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9914 hardcode_libdir_separator=:
9917 osf4* | osf5*) # as osf3* with the addition of -msym flag
9918 if test "$GCC" = yes; then
9919 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9920 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'
9921 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9922 else
9923 allow_undefined_flag=' -expect_unresolved \*'
9924 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'
9925 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~
9926 $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'
9928 # Both c and cxx compiler support -rpath directly
9929 hardcode_libdir_flag_spec='-rpath $libdir'
9931 archive_cmds_need_lc='no'
9932 hardcode_libdir_separator=:
9935 solaris*)
9936 no_undefined_flag=' -z defs'
9937 if test "$GCC" = yes; then
9938 wlarc='${wl}'
9939 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9940 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9941 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9942 else
9943 case `$CC -V 2>&1` in
9944 *"Compilers 5.0"*)
9945 wlarc=''
9946 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9948 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9951 wlarc='${wl}'
9952 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9953 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9954 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9956 esac
9958 hardcode_libdir_flag_spec='-R$libdir'
9959 hardcode_shlibpath_var=no
9960 case $host_os in
9961 solaris2.[0-5] | solaris2.[0-5].*) ;;
9963 # The compiler driver will combine and reorder linker options,
9964 # but understands `-z linker_flag'. GCC discards it without `$wl',
9965 # but is careful enough not to reorder.
9966 # Supported since Solaris 2.6 (maybe 2.5.1?)
9967 if test "$GCC" = yes; then
9968 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9969 else
9970 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9973 esac
9974 link_all_deplibs=yes
9977 sunos4*)
9978 if test "x$host_vendor" = xsequent; then
9979 # Use $CC to link under sequent, because it throws in some extra .o
9980 # files that make .init and .fini sections work.
9981 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9982 else
9983 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9985 hardcode_libdir_flag_spec='-L$libdir'
9986 hardcode_direct=yes
9987 hardcode_minus_L=yes
9988 hardcode_shlibpath_var=no
9991 sysv4)
9992 case $host_vendor in
9993 sni)
9994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9995 hardcode_direct=yes # is this really true???
9997 siemens)
9998 ## LD is ld it makes a PLAMLIB
9999 ## CC just makes a GrossModule.
10000 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10001 reload_cmds='$CC -r -o $output$reload_objs'
10002 hardcode_direct=no
10004 motorola)
10005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10006 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10008 esac
10009 runpath_var='LD_RUN_PATH'
10010 hardcode_shlibpath_var=no
10013 sysv4.3*)
10014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10015 hardcode_shlibpath_var=no
10016 export_dynamic_flag_spec='-Bexport'
10019 sysv4*MP*)
10020 if test -d /usr/nec; then
10021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022 hardcode_shlibpath_var=no
10023 runpath_var=LD_RUN_PATH
10024 hardcode_runpath_var=yes
10025 ld_shlibs=yes
10029 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10030 no_undefined_flag='${wl}-z,text'
10031 archive_cmds_need_lc=no
10032 hardcode_shlibpath_var=no
10033 runpath_var='LD_RUN_PATH'
10035 if test "$GCC" = yes; then
10036 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10037 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 else
10039 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10040 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10044 sysv5* | sco3.2v5* | sco5v6*)
10045 # Note: We can NOT use -z defs as we might desire, because we do not
10046 # link with -lc, and that would cause any symbols used from libc to
10047 # always be unresolved, which means just about no library would
10048 # ever link correctly. If we're not using GNU ld we use -z text
10049 # though, which does catch some bad symbols but isn't as heavy-handed
10050 # as -z defs.
10051 no_undefined_flag='${wl}-z,text'
10052 allow_undefined_flag='${wl}-z,nodefs'
10053 archive_cmds_need_lc=no
10054 hardcode_shlibpath_var=no
10055 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10056 hardcode_libdir_separator=':'
10057 link_all_deplibs=yes
10058 export_dynamic_flag_spec='${wl}-Bexport'
10059 runpath_var='LD_RUN_PATH'
10061 if test "$GCC" = yes; then
10062 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064 else
10065 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10066 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10070 uts4*)
10071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10072 hardcode_libdir_flag_spec='-L$libdir'
10073 hardcode_shlibpath_var=no
10077 ld_shlibs=no
10079 esac
10081 if test x$host_vendor = xsni; then
10082 case $host in
10083 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10084 export_dynamic_flag_spec='${wl}-Blargedynsym'
10086 esac
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10091 $as_echo "$ld_shlibs" >&6; }
10092 test "$ld_shlibs" = no && can_build_shared=no
10094 with_gnu_ld=$with_gnu_ld
10111 # Do we need to explicitly link libc?
10113 case "x$archive_cmds_need_lc" in
10114 x|xyes)
10115 # Assume -lc should be added
10116 archive_cmds_need_lc=yes
10118 if test "$enable_shared" = yes && test "$GCC" = yes; then
10119 case $archive_cmds in
10120 *'~'*)
10121 # FIXME: we may have to deal with multi-command sequences.
10123 '$CC '*)
10124 # Test whether the compiler implicitly links with -lc since on some
10125 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10126 # to ld, don't add -lc before -lgcc.
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10128 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10129 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 $RM conftest*
10133 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10136 (eval $ac_compile) 2>&5
10137 ac_status=$?
10138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10139 test $ac_status = 0; } 2>conftest.err; then
10140 soname=conftest
10141 lib=conftest
10142 libobjs=conftest.$ac_objext
10143 deplibs=
10144 wl=$lt_prog_compiler_wl
10145 pic_flag=$lt_prog_compiler_pic
10146 compiler_flags=-v
10147 linker_flags=-v
10148 verstring=
10149 output_objdir=.
10150 libname=conftest
10151 lt_save_allow_undefined_flag=$allow_undefined_flag
10152 allow_undefined_flag=
10153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10154 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10155 ac_status=$?
10156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10157 test $ac_status = 0; }
10158 then
10159 lt_cv_archive_cmds_need_lc=no
10160 else
10161 lt_cv_archive_cmds_need_lc=yes
10163 allow_undefined_flag=$lt_save_allow_undefined_flag
10164 else
10165 cat conftest.err 1>&5
10167 $RM conftest*
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10171 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10172 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10174 esac
10177 esac
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10336 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10338 if test "$GCC" = yes; then
10339 case $host_os in
10340 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10341 *) lt_awk_arg="/^libraries:/" ;;
10342 esac
10343 case $host_os in
10344 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10345 *) lt_sed_strip_eq="s,=/,/,g" ;;
10346 esac
10347 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10348 case $lt_search_path_spec in
10349 *\;*)
10350 # if the path contains ";" then we assume it to be the separator
10351 # otherwise default to the standard path separator (i.e. ":") - it is
10352 # assumed that no part of a normal pathname contains ";" but that should
10353 # okay in the real world where ";" in dirpaths is itself problematic.
10354 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10357 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10359 esac
10360 # Ok, now we have the path, separated by spaces, we can step through it
10361 # and add multilib dir if necessary.
10362 lt_tmp_lt_search_path_spec=
10363 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10364 for lt_sys_path in $lt_search_path_spec; do
10365 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10366 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10367 else
10368 test -d "$lt_sys_path" && \
10369 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10371 done
10372 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10373 BEGIN {RS=" "; FS="/|\n";} {
10374 lt_foo="";
10375 lt_count=0;
10376 for (lt_i = NF; lt_i > 0; lt_i--) {
10377 if ($lt_i != "" && $lt_i != ".") {
10378 if ($lt_i == "..") {
10379 lt_count++;
10380 } else {
10381 if (lt_count == 0) {
10382 lt_foo="/" $lt_i lt_foo;
10383 } else {
10384 lt_count--;
10389 if (lt_foo != "") { lt_freq[lt_foo]++; }
10390 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10392 # AWK program above erroneously prepends '/' to C:/dos/paths
10393 # for these hosts.
10394 case $host_os in
10395 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10396 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10397 esac
10398 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10399 else
10400 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10402 library_names_spec=
10403 libname_spec='lib$name'
10404 soname_spec=
10405 shrext_cmds=".so"
10406 postinstall_cmds=
10407 postuninstall_cmds=
10408 finish_cmds=
10409 finish_eval=
10410 shlibpath_var=
10411 shlibpath_overrides_runpath=unknown
10412 version_type=none
10413 dynamic_linker="$host_os ld.so"
10414 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10415 need_lib_prefix=unknown
10416 hardcode_into_libs=no
10418 # when you set need_version to no, make sure it does not cause -set_version
10419 # flags to be left without arguments
10420 need_version=unknown
10422 case $host_os in
10423 aix3*)
10424 version_type=linux
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10426 shlibpath_var=LIBPATH
10428 # AIX 3 has no versioning support, so we append a major version to the name.
10429 soname_spec='${libname}${release}${shared_ext}$major'
10432 aix[4-9]*)
10433 version_type=linux
10434 need_lib_prefix=no
10435 need_version=no
10436 hardcode_into_libs=yes
10437 if test "$host_cpu" = ia64; then
10438 # AIX 5 supports IA64
10439 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10440 shlibpath_var=LD_LIBRARY_PATH
10441 else
10442 # With GCC up to 2.95.x, collect2 would create an import file
10443 # for dependence libraries. The import file would start with
10444 # the line `#! .'. This would cause the generated library to
10445 # depend on `.', always an invalid library. This was fixed in
10446 # development snapshots of GCC prior to 3.0.
10447 case $host_os in
10448 aix4 | aix4.[01] | aix4.[01].*)
10449 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10450 echo ' yes '
10451 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10453 else
10454 can_build_shared=no
10457 esac
10458 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10459 # soname into executable. Probably we can add versioning support to
10460 # collect2, so additional links can be useful in future.
10461 if test "$aix_use_runtimelinking" = yes; then
10462 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10463 # instead of lib<name>.a to let people know that these are not
10464 # typical AIX shared libraries.
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 else
10467 # We preserve .a as extension for shared libraries through AIX4.2
10468 # and later when we are not doing run time linking.
10469 library_names_spec='${libname}${release}.a $libname.a'
10470 soname_spec='${libname}${release}${shared_ext}$major'
10472 shlibpath_var=LIBPATH
10476 amigaos*)
10477 case $host_cpu in
10478 powerpc)
10479 # Since July 2007 AmigaOS4 officially supports .so libraries.
10480 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10483 m68k)
10484 library_names_spec='$libname.ixlibrary $libname.a'
10485 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10486 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'
10488 esac
10491 beos*)
10492 library_names_spec='${libname}${shared_ext}'
10493 dynamic_linker="$host_os ld.so"
10494 shlibpath_var=LIBRARY_PATH
10497 bsdi[45]*)
10498 version_type=linux
10499 need_version=no
10500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10501 soname_spec='${libname}${release}${shared_ext}$major'
10502 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10503 shlibpath_var=LD_LIBRARY_PATH
10504 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10505 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10506 # the default ld.so.conf also contains /usr/contrib/lib and
10507 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10508 # libtool to hard-code these into programs
10511 cygwin* | mingw* | pw32* | cegcc*)
10512 version_type=windows
10513 shrext_cmds=".dll"
10514 need_version=no
10515 need_lib_prefix=no
10517 case $GCC,$host_os in
10518 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10519 library_names_spec='$libname.dll.a'
10520 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10521 postinstall_cmds='base_file=`basename \${file}`~
10522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10523 dldir=$destdir/`dirname \$dlpath`~
10524 test -d \$dldir || mkdir -p \$dldir~
10525 $install_prog $dir/$dlname \$dldir/$dlname~
10526 chmod a+x \$dldir/$dlname~
10527 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10528 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10530 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10531 dlpath=$dir/\$dldll~
10532 $RM \$dlpath'
10533 shlibpath_overrides_runpath=yes
10535 case $host_os in
10536 cygwin*)
10537 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10538 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10540 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10542 mingw* | cegcc*)
10543 # MinGW DLLs use traditional 'lib' prefix
10544 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10546 pw32*)
10547 # pw32 DLLs use 'pw' prefix rather than 'lib'
10548 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10550 esac
10554 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10556 esac
10557 dynamic_linker='Win32 ld.exe'
10558 # FIXME: first we should search . and the directory the executable is in
10559 shlibpath_var=PATH
10562 darwin* | rhapsody*)
10563 dynamic_linker="$host_os dyld"
10564 version_type=darwin
10565 need_lib_prefix=no
10566 need_version=no
10567 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10568 soname_spec='${libname}${release}${major}$shared_ext'
10569 shlibpath_overrides_runpath=yes
10570 shlibpath_var=DYLD_LIBRARY_PATH
10571 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10573 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10574 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10577 dgux*)
10578 version_type=linux
10579 need_lib_prefix=no
10580 need_version=no
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10582 soname_spec='${libname}${release}${shared_ext}$major'
10583 shlibpath_var=LD_LIBRARY_PATH
10586 freebsd* | dragonfly*)
10587 # DragonFly does not have aout. When/if they implement a new
10588 # versioning mechanism, adjust this.
10589 if test -x /usr/bin/objformat; then
10590 objformat=`/usr/bin/objformat`
10591 else
10592 case $host_os in
10593 freebsd[23].*) objformat=aout ;;
10594 *) objformat=elf ;;
10595 esac
10597 version_type=freebsd-$objformat
10598 case $version_type in
10599 freebsd-elf*)
10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10601 need_version=no
10602 need_lib_prefix=no
10604 freebsd-*)
10605 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10606 need_version=yes
10608 esac
10609 shlibpath_var=LD_LIBRARY_PATH
10610 case $host_os in
10611 freebsd2.*)
10612 shlibpath_overrides_runpath=yes
10614 freebsd3.[01]* | freebsdelf3.[01]*)
10615 shlibpath_overrides_runpath=yes
10616 hardcode_into_libs=yes
10618 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10619 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10620 shlibpath_overrides_runpath=no
10621 hardcode_into_libs=yes
10623 *) # from 4.6 on, and DragonFly
10624 shlibpath_overrides_runpath=yes
10625 hardcode_into_libs=yes
10627 esac
10630 haiku*)
10631 version_type=linux
10632 need_lib_prefix=no
10633 need_version=no
10634 dynamic_linker="$host_os runtime_loader"
10635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10636 soname_spec='${libname}${release}${shared_ext}$major'
10637 shlibpath_var=LIBRARY_PATH
10638 shlibpath_overrides_runpath=yes
10639 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10640 hardcode_into_libs=yes
10643 hpux9* | hpux10* | hpux11*)
10644 # Give a soname corresponding to the major version so that dld.sl refuses to
10645 # link against other versions.
10646 version_type=sunos
10647 need_lib_prefix=no
10648 need_version=no
10649 case $host_cpu in
10650 ia64*)
10651 shrext_cmds='.so'
10652 hardcode_into_libs=yes
10653 dynamic_linker="$host_os dld.so"
10654 shlibpath_var=LD_LIBRARY_PATH
10655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 soname_spec='${libname}${release}${shared_ext}$major'
10658 if test "X$HPUX_IA64_MODE" = X32; then
10659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10660 else
10661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10665 hppa*64*)
10666 shrext_cmds='.sl'
10667 hardcode_into_libs=yes
10668 dynamic_linker="$host_os dld.sl"
10669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10677 shrext_cmds='.sl'
10678 dynamic_linker="$host_os dld.sl"
10679 shlibpath_var=SHLIB_PATH
10680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682 soname_spec='${libname}${release}${shared_ext}$major'
10684 esac
10685 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10686 postinstall_cmds='chmod 555 $lib'
10687 # or fails outright, so override atomically:
10688 install_override_mode=555
10691 interix[3-9]*)
10692 version_type=linux
10693 need_lib_prefix=no
10694 need_version=no
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10698 shlibpath_var=LD_LIBRARY_PATH
10699 shlibpath_overrides_runpath=no
10700 hardcode_into_libs=yes
10703 irix5* | irix6* | nonstopux*)
10704 case $host_os in
10705 nonstopux*) version_type=nonstopux ;;
10707 if test "$lt_cv_prog_gnu_ld" = yes; then
10708 version_type=linux
10709 else
10710 version_type=irix
10711 fi ;;
10712 esac
10713 need_lib_prefix=no
10714 need_version=no
10715 soname_spec='${libname}${release}${shared_ext}$major'
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10717 case $host_os in
10718 irix5* | nonstopux*)
10719 libsuff= shlibsuff=
10722 case $LD in # libtool.m4 will add one of these switches to LD
10723 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10724 libsuff= shlibsuff= libmagic=32-bit;;
10725 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10726 libsuff=32 shlibsuff=N32 libmagic=N32;;
10727 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10728 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10729 *) libsuff= shlibsuff= libmagic=never-match;;
10730 esac
10732 esac
10733 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10734 shlibpath_overrides_runpath=no
10735 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10736 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10737 hardcode_into_libs=yes
10740 # No shared lib support for Linux oldld, aout, or coff.
10741 linux*oldld* | linux*aout* | linux*coff*)
10742 dynamic_linker=no
10745 # This must be Linux ELF.
10747 # uclinux* changes (here and below) have been submitted to the libtool
10748 # project, but have not yet been accepted: they are GCC-local changes
10749 # for the time being. (See
10750 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10751 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10752 version_type=linux
10753 need_lib_prefix=no
10754 need_version=no
10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10756 soname_spec='${libname}${release}${shared_ext}$major'
10757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10758 shlibpath_var=LD_LIBRARY_PATH
10759 shlibpath_overrides_runpath=no
10761 # Some binutils ld are patched to set DT_RUNPATH
10762 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10765 lt_cv_shlibpath_overrides_runpath=no
10766 save_LDFLAGS=$LDFLAGS
10767 save_libdir=$libdir
10768 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10769 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10774 main ()
10778 return 0;
10780 _ACEOF
10781 if ac_fn_c_try_link "$LINENO"; then :
10782 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10783 lt_cv_shlibpath_overrides_runpath=yes
10786 rm -f core conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
10788 LDFLAGS=$save_LDFLAGS
10789 libdir=$save_libdir
10793 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10795 # This implies no fast_install, which is unacceptable.
10796 # Some rework will be needed to allow for fast_install
10797 # before this can be enabled.
10798 hardcode_into_libs=yes
10800 # Append ld.so.conf contents to the search path
10801 if test -f /etc/ld.so.conf; then
10802 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' ' '`
10803 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10806 # We used to test for /lib/ld.so.1 and disable shared libraries on
10807 # powerpc, because MkLinux only supported shared libraries with the
10808 # GNU dynamic linker. Since this was broken with cross compilers,
10809 # most powerpc-linux boxes support dynamic linking these days and
10810 # people can always --disable-shared, the test was removed, and we
10811 # assume the GNU/Linux dynamic linker is in use.
10812 dynamic_linker='GNU/Linux ld.so'
10815 netbsd*)
10816 version_type=sunos
10817 need_lib_prefix=no
10818 need_version=no
10819 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10822 dynamic_linker='NetBSD (a.out) ld.so'
10823 else
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10825 soname_spec='${libname}${release}${shared_ext}$major'
10826 dynamic_linker='NetBSD ld.elf_so'
10828 shlibpath_var=LD_LIBRARY_PATH
10829 shlibpath_overrides_runpath=yes
10830 hardcode_into_libs=yes
10833 newsos6)
10834 version_type=linux
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10836 shlibpath_var=LD_LIBRARY_PATH
10837 shlibpath_overrides_runpath=yes
10840 *nto* | *qnx*)
10841 version_type=qnx
10842 need_lib_prefix=no
10843 need_version=no
10844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845 soname_spec='${libname}${release}${shared_ext}$major'
10846 shlibpath_var=LD_LIBRARY_PATH
10847 shlibpath_overrides_runpath=no
10848 hardcode_into_libs=yes
10849 dynamic_linker='ldqnx.so'
10852 openbsd*)
10853 version_type=sunos
10854 sys_lib_dlsearch_path_spec="/usr/lib"
10855 need_lib_prefix=no
10856 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10857 case $host_os in
10858 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10859 *) need_version=no ;;
10860 esac
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10862 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10863 shlibpath_var=LD_LIBRARY_PATH
10864 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10865 case $host_os in
10866 openbsd2.[89] | openbsd2.[89].*)
10867 shlibpath_overrides_runpath=no
10870 shlibpath_overrides_runpath=yes
10872 esac
10873 else
10874 shlibpath_overrides_runpath=yes
10878 os2*)
10879 libname_spec='$name'
10880 shrext_cmds=".dll"
10881 need_lib_prefix=no
10882 library_names_spec='$libname${shared_ext} $libname.a'
10883 dynamic_linker='OS/2 ld.exe'
10884 shlibpath_var=LIBPATH
10887 osf3* | osf4* | osf5*)
10888 version_type=osf
10889 need_lib_prefix=no
10890 need_version=no
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10893 shlibpath_var=LD_LIBRARY_PATH
10894 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10895 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10898 rdos*)
10899 dynamic_linker=no
10902 solaris*)
10903 version_type=linux
10904 need_lib_prefix=no
10905 need_version=no
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath=yes
10910 hardcode_into_libs=yes
10911 # ldd complains unless libraries are executable
10912 postinstall_cmds='chmod +x $lib'
10915 sunos4*)
10916 version_type=sunos
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10918 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10919 shlibpath_var=LD_LIBRARY_PATH
10920 shlibpath_overrides_runpath=yes
10921 if test "$with_gnu_ld" = yes; then
10922 need_lib_prefix=no
10924 need_version=yes
10927 sysv4 | sysv4.3*)
10928 version_type=linux
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10930 soname_spec='${libname}${release}${shared_ext}$major'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 case $host_vendor in
10933 sni)
10934 shlibpath_overrides_runpath=no
10935 need_lib_prefix=no
10936 runpath_var=LD_RUN_PATH
10938 siemens)
10939 need_lib_prefix=no
10941 motorola)
10942 need_lib_prefix=no
10943 need_version=no
10944 shlibpath_overrides_runpath=no
10945 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10947 esac
10950 sysv4*MP*)
10951 if test -d /usr/nec ;then
10952 version_type=linux
10953 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10954 soname_spec='$libname${shared_ext}.$major'
10955 shlibpath_var=LD_LIBRARY_PATH
10959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10960 version_type=freebsd-elf
10961 need_lib_prefix=no
10962 need_version=no
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10964 soname_spec='${libname}${release}${shared_ext}$major'
10965 shlibpath_var=LD_LIBRARY_PATH
10966 shlibpath_overrides_runpath=yes
10967 hardcode_into_libs=yes
10968 if test "$with_gnu_ld" = yes; then
10969 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10970 else
10971 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10972 case $host_os in
10973 sco3.2v5*)
10974 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10976 esac
10978 sys_lib_dlsearch_path_spec='/usr/lib'
10981 tpf*)
10982 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10983 version_type=linux
10984 need_lib_prefix=no
10985 need_version=no
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 shlibpath_overrides_runpath=no
10989 hardcode_into_libs=yes
10992 uts4*)
10993 version_type=linux
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995 soname_spec='${libname}${release}${shared_ext}$major'
10996 shlibpath_var=LD_LIBRARY_PATH
10999 # Shared libraries for VwWorks, >= 7 only at this stage
11000 # and (fpic) still incompatible with "large" code models
11001 # in a few configurations. Only for RTP mode in any case,
11002 # and upon explicit request at configure time.
11003 vxworks7*)
11004 dynamic_linker=no
11005 case ${with_multisubdir}-${enable_shared} in
11006 *large*)
11008 *mrtp*-yes)
11009 version_type=linux
11010 need_lib_prefix=no
11011 need_version=no
11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11013 soname_spec='${libname}${release}${shared_ext}$major'
11014 dynamic_linker="$host_os module_loader"
11016 esac
11019 dynamic_linker=no
11021 esac
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11023 $as_echo "$dynamic_linker" >&6; }
11024 test "$dynamic_linker" = no && can_build_shared=no
11026 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11027 if test "$GCC" = yes; then
11028 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11031 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11032 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11034 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11035 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11130 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11131 hardcode_action=
11132 if test -n "$hardcode_libdir_flag_spec" ||
11133 test -n "$runpath_var" ||
11134 test "X$hardcode_automatic" = "Xyes" ; then
11136 # We can hardcode non-existent directories.
11137 if test "$hardcode_direct" != no &&
11138 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11139 # have to relink, otherwise we might link with an installed library
11140 # when we should be linking with a yet-to-be-installed one
11141 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11142 test "$hardcode_minus_L" != no; then
11143 # Linking always hardcodes the temporary library directory.
11144 hardcode_action=relink
11145 else
11146 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11147 hardcode_action=immediate
11149 else
11150 # We cannot hardcode anything, or else we can only hardcode existing
11151 # directories.
11152 hardcode_action=unsupported
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11155 $as_echo "$hardcode_action" >&6; }
11157 if test "$hardcode_action" = relink ||
11158 test "$inherit_rpath" = yes; then
11159 # Fast installation is not supported
11160 enable_fast_install=no
11161 elif test "$shlibpath_overrides_runpath" = yes ||
11162 test "$enable_shared" = no; then
11163 # Fast installation is not necessary
11164 enable_fast_install=needless
11172 if test "x$enable_dlopen" != xyes; then
11173 enable_dlopen=unknown
11174 enable_dlopen_self=unknown
11175 enable_dlopen_self_static=unknown
11176 else
11177 lt_cv_dlopen=no
11178 lt_cv_dlopen_libs=
11180 case $host_os in
11181 beos*)
11182 lt_cv_dlopen="load_add_on"
11183 lt_cv_dlopen_libs=
11184 lt_cv_dlopen_self=yes
11187 mingw* | pw32* | cegcc*)
11188 lt_cv_dlopen="LoadLibrary"
11189 lt_cv_dlopen_libs=
11192 cygwin*)
11193 lt_cv_dlopen="dlopen"
11194 lt_cv_dlopen_libs=
11197 darwin*)
11198 # if libdl is installed we need to link against it
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11200 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11201 if ${ac_cv_lib_dl_dlopen+:} false; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11204 ac_check_lib_save_LIBS=$LIBS
11205 LIBS="-ldl $LIBS"
11206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207 /* end confdefs.h. */
11209 /* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
11212 #ifdef __cplusplus
11213 extern "C"
11214 #endif
11215 char dlopen ();
11217 main ()
11219 return dlopen ();
11221 return 0;
11223 _ACEOF
11224 if ac_fn_c_try_link "$LINENO"; then :
11225 ac_cv_lib_dl_dlopen=yes
11226 else
11227 ac_cv_lib_dl_dlopen=no
11229 rm -f core conftest.err conftest.$ac_objext \
11230 conftest$ac_exeext conftest.$ac_ext
11231 LIBS=$ac_check_lib_save_LIBS
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11234 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11235 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11237 else
11239 lt_cv_dlopen="dyld"
11240 lt_cv_dlopen_libs=
11241 lt_cv_dlopen_self=yes
11248 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11249 if test "x$ac_cv_func_shl_load" = xyes; then :
11250 lt_cv_dlopen="shl_load"
11251 else
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11253 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11254 if ${ac_cv_lib_dld_shl_load+:} false; then :
11255 $as_echo_n "(cached) " >&6
11256 else
11257 ac_check_lib_save_LIBS=$LIBS
11258 LIBS="-ldld $LIBS"
11259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11260 /* end confdefs.h. */
11262 /* Override any GCC internal prototype to avoid an error.
11263 Use char because int might match the return type of a GCC
11264 builtin and then its argument prototype would still apply. */
11265 #ifdef __cplusplus
11266 extern "C"
11267 #endif
11268 char shl_load ();
11270 main ()
11272 return shl_load ();
11274 return 0;
11276 _ACEOF
11277 if ac_fn_c_try_link "$LINENO"; then :
11278 ac_cv_lib_dld_shl_load=yes
11279 else
11280 ac_cv_lib_dld_shl_load=no
11282 rm -f core conftest.err conftest.$ac_objext \
11283 conftest$ac_exeext conftest.$ac_ext
11284 LIBS=$ac_check_lib_save_LIBS
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11287 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11288 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11289 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11290 else
11291 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11292 if test "x$ac_cv_func_dlopen" = xyes; then :
11293 lt_cv_dlopen="dlopen"
11294 else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11296 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11297 if ${ac_cv_lib_dl_dlopen+:} false; then :
11298 $as_echo_n "(cached) " >&6
11299 else
11300 ac_check_lib_save_LIBS=$LIBS
11301 LIBS="-ldl $LIBS"
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char dlopen ();
11313 main ()
11315 return dlopen ();
11317 return 0;
11319 _ACEOF
11320 if ac_fn_c_try_link "$LINENO"; then :
11321 ac_cv_lib_dl_dlopen=yes
11322 else
11323 ac_cv_lib_dl_dlopen=no
11325 rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327 LIBS=$ac_check_lib_save_LIBS
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11330 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11331 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11332 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11333 else
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11335 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11336 if ${ac_cv_lib_svld_dlopen+:} false; then :
11337 $as_echo_n "(cached) " >&6
11338 else
11339 ac_check_lib_save_LIBS=$LIBS
11340 LIBS="-lsvld $LIBS"
11341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11342 /* end confdefs.h. */
11344 /* Override any GCC internal prototype to avoid an error.
11345 Use char because int might match the return type of a GCC
11346 builtin and then its argument prototype would still apply. */
11347 #ifdef __cplusplus
11348 extern "C"
11349 #endif
11350 char dlopen ();
11352 main ()
11354 return dlopen ();
11356 return 0;
11358 _ACEOF
11359 if ac_fn_c_try_link "$LINENO"; then :
11360 ac_cv_lib_svld_dlopen=yes
11361 else
11362 ac_cv_lib_svld_dlopen=no
11364 rm -f core conftest.err conftest.$ac_objext \
11365 conftest$ac_exeext conftest.$ac_ext
11366 LIBS=$ac_check_lib_save_LIBS
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11369 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11370 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11371 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11374 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11375 if ${ac_cv_lib_dld_dld_link+:} false; then :
11376 $as_echo_n "(cached) " >&6
11377 else
11378 ac_check_lib_save_LIBS=$LIBS
11379 LIBS="-ldld $LIBS"
11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11381 /* end confdefs.h. */
11383 /* Override any GCC internal prototype to avoid an error.
11384 Use char because int might match the return type of a GCC
11385 builtin and then its argument prototype would still apply. */
11386 #ifdef __cplusplus
11387 extern "C"
11388 #endif
11389 char dld_link ();
11391 main ()
11393 return dld_link ();
11395 return 0;
11397 _ACEOF
11398 if ac_fn_c_try_link "$LINENO"; then :
11399 ac_cv_lib_dld_dld_link=yes
11400 else
11401 ac_cv_lib_dld_dld_link=no
11403 rm -f core conftest.err conftest.$ac_objext \
11404 conftest$ac_exeext conftest.$ac_ext
11405 LIBS=$ac_check_lib_save_LIBS
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11408 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11409 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11410 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11429 esac
11431 if test "x$lt_cv_dlopen" != xno; then
11432 enable_dlopen=yes
11433 else
11434 enable_dlopen=no
11437 case $lt_cv_dlopen in
11438 dlopen)
11439 save_CPPFLAGS="$CPPFLAGS"
11440 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11442 save_LDFLAGS="$LDFLAGS"
11443 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11445 save_LIBS="$LIBS"
11446 LIBS="$lt_cv_dlopen_libs $LIBS"
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11449 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11450 if ${lt_cv_dlopen_self+:} false; then :
11451 $as_echo_n "(cached) " >&6
11452 else
11453 if test "$cross_compiling" = yes; then :
11454 lt_cv_dlopen_self=cross
11455 else
11456 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11457 lt_status=$lt_dlunknown
11458 cat > conftest.$ac_ext <<_LT_EOF
11459 #line 11459 "configure"
11460 #include "confdefs.h"
11462 #if HAVE_DLFCN_H
11463 #include <dlfcn.h>
11464 #endif
11466 #include <stdio.h>
11468 #ifdef RTLD_GLOBAL
11469 # define LT_DLGLOBAL RTLD_GLOBAL
11470 #else
11471 # ifdef DL_GLOBAL
11472 # define LT_DLGLOBAL DL_GLOBAL
11473 # else
11474 # define LT_DLGLOBAL 0
11475 # endif
11476 #endif
11478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11479 find out it does not work in some platform. */
11480 #ifndef LT_DLLAZY_OR_NOW
11481 # ifdef RTLD_LAZY
11482 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11483 # else
11484 # ifdef DL_LAZY
11485 # define LT_DLLAZY_OR_NOW DL_LAZY
11486 # else
11487 # ifdef RTLD_NOW
11488 # define LT_DLLAZY_OR_NOW RTLD_NOW
11489 # else
11490 # ifdef DL_NOW
11491 # define LT_DLLAZY_OR_NOW DL_NOW
11492 # else
11493 # define LT_DLLAZY_OR_NOW 0
11494 # endif
11495 # endif
11496 # endif
11497 # endif
11498 #endif
11500 /* When -fvisbility=hidden is used, assume the code has been annotated
11501 correspondingly for the symbols needed. */
11502 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11503 void fnord () __attribute__((visibility("default")));
11504 #endif
11506 void fnord () { int i=42; }
11507 int main ()
11509 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11510 int status = $lt_dlunknown;
11512 if (self)
11514 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11515 else
11517 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11518 else puts (dlerror ());
11520 /* dlclose (self); */
11522 else
11523 puts (dlerror ());
11525 return status;
11527 _LT_EOF
11528 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11529 (eval $ac_link) 2>&5
11530 ac_status=$?
11531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11532 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11533 (./conftest; exit; ) >&5 2>/dev/null
11534 lt_status=$?
11535 case x$lt_status in
11536 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11537 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11538 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11539 esac
11540 else :
11541 # compilation failed
11542 lt_cv_dlopen_self=no
11545 rm -fr conftest*
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11550 $as_echo "$lt_cv_dlopen_self" >&6; }
11552 if test "x$lt_cv_dlopen_self" = xyes; then
11553 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11555 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11556 if ${lt_cv_dlopen_self_static+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 if test "$cross_compiling" = yes; then :
11560 lt_cv_dlopen_self_static=cross
11561 else
11562 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11563 lt_status=$lt_dlunknown
11564 cat > conftest.$ac_ext <<_LT_EOF
11565 #line 11565 "configure"
11566 #include "confdefs.h"
11568 #if HAVE_DLFCN_H
11569 #include <dlfcn.h>
11570 #endif
11572 #include <stdio.h>
11574 #ifdef RTLD_GLOBAL
11575 # define LT_DLGLOBAL RTLD_GLOBAL
11576 #else
11577 # ifdef DL_GLOBAL
11578 # define LT_DLGLOBAL DL_GLOBAL
11579 # else
11580 # define LT_DLGLOBAL 0
11581 # endif
11582 #endif
11584 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11585 find out it does not work in some platform. */
11586 #ifndef LT_DLLAZY_OR_NOW
11587 # ifdef RTLD_LAZY
11588 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11589 # else
11590 # ifdef DL_LAZY
11591 # define LT_DLLAZY_OR_NOW DL_LAZY
11592 # else
11593 # ifdef RTLD_NOW
11594 # define LT_DLLAZY_OR_NOW RTLD_NOW
11595 # else
11596 # ifdef DL_NOW
11597 # define LT_DLLAZY_OR_NOW DL_NOW
11598 # else
11599 # define LT_DLLAZY_OR_NOW 0
11600 # endif
11601 # endif
11602 # endif
11603 # endif
11604 #endif
11606 /* When -fvisbility=hidden is used, assume the code has been annotated
11607 correspondingly for the symbols needed. */
11608 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11609 void fnord () __attribute__((visibility("default")));
11610 #endif
11612 void fnord () { int i=42; }
11613 int main ()
11615 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11616 int status = $lt_dlunknown;
11618 if (self)
11620 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11621 else
11623 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11624 else puts (dlerror ());
11626 /* dlclose (self); */
11628 else
11629 puts (dlerror ());
11631 return status;
11633 _LT_EOF
11634 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11635 (eval $ac_link) 2>&5
11636 ac_status=$?
11637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11638 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11639 (./conftest; exit; ) >&5 2>/dev/null
11640 lt_status=$?
11641 case x$lt_status in
11642 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11643 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11644 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11645 esac
11646 else :
11647 # compilation failed
11648 lt_cv_dlopen_self_static=no
11651 rm -fr conftest*
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11656 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11659 CPPFLAGS="$save_CPPFLAGS"
11660 LDFLAGS="$save_LDFLAGS"
11661 LIBS="$save_LIBS"
11663 esac
11665 case $lt_cv_dlopen_self in
11666 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11667 *) enable_dlopen_self=unknown ;;
11668 esac
11670 case $lt_cv_dlopen_self_static in
11671 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11672 *) enable_dlopen_self_static=unknown ;;
11673 esac
11692 striplib=
11693 old_striplib=
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11695 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11696 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11697 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11698 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11700 $as_echo "yes" >&6; }
11701 else
11702 # FIXME - insert some real tests, host_os isn't really good enough
11703 case $host_os in
11704 darwin*)
11705 if test -n "$STRIP" ; then
11706 striplib="$STRIP -x"
11707 old_striplib="$STRIP -S"
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11709 $as_echo "yes" >&6; }
11710 else
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712 $as_echo "no" >&6; }
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717 $as_echo "no" >&6; }
11719 esac
11733 # Report which library types will actually be built
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11735 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11737 $as_echo "$can_build_shared" >&6; }
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11740 $as_echo_n "checking whether to build shared libraries... " >&6; }
11741 test "$can_build_shared" = "no" && enable_shared=no
11743 # On AIX, shared libraries and static libraries use the same namespace, and
11744 # are all built from PIC.
11745 case $host_os in
11746 aix3*)
11747 test "$enable_shared" = yes && enable_static=no
11748 if test -n "$RANLIB"; then
11749 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11750 postinstall_cmds='$RANLIB $lib'
11754 aix[4-9]*)
11755 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11756 test "$enable_shared" = yes && enable_static=no
11759 esac
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11761 $as_echo "$enable_shared" >&6; }
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11764 $as_echo_n "checking whether to build static libraries... " >&6; }
11765 # Make sure either enable_shared or enable_static is yes.
11766 test "$enable_shared" = yes || enable_static=yes
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11768 $as_echo "$enable_static" >&6; }
11774 ac_ext=c
11775 ac_cpp='$CPP $CPPFLAGS'
11776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11780 CC="$lt_save_CC"
11794 ac_config_commands="$ac_config_commands libtool"
11799 # Only expand once:
11805 case $host in
11806 *-cygwin* | *-mingw*)
11807 # 'host' will be top-level target in the case of a target lib,
11808 # we must compare to with_cross_host to decide if this is a native
11809 # or cross-compiler and select where to install dlls appropriately.
11810 if test -n "$with_cross_host" &&
11811 test x"$with_cross_host" != x"no"; then
11812 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11813 else
11814 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11818 lt_host_flags=
11820 esac
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11828 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11829 # Check whether --enable-maintainer-mode was given.
11830 if test "${enable_maintainer_mode+set}" = set; then :
11831 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11832 else
11833 USE_MAINTAINER_MODE=no
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11837 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11838 if test $USE_MAINTAINER_MODE = yes; then
11839 MAINTAINER_MODE_TRUE=
11840 MAINTAINER_MODE_FALSE='#'
11841 else
11842 MAINTAINER_MODE_TRUE='#'
11843 MAINTAINER_MODE_FALSE=
11846 MAINT=$MAINTAINER_MODE_TRUE
11850 if test x$enable_darwin_at_rpath = xyes; then
11851 ENABLE_DARWIN_AT_RPATH_TRUE=
11852 ENABLE_DARWIN_AT_RPATH_FALSE='#'
11853 else
11854 ENABLE_DARWIN_AT_RPATH_TRUE='#'
11855 ENABLE_DARWIN_AT_RPATH_FALSE=
11859 # For libtool versioning info, format is CURRENT:REVISION:AGE
11860 libtool_VERSION=3:0:2
11863 # Check for used threading-model
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
11865 $as_echo_n "checking for thread model used by GCC... " >&6; }
11866 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_thread_file" >&5
11868 $as_echo "$target_thread_file" >&6; }
11870 case "$target" in
11871 *aarch64*)
11872 ac_ext=c
11873 ac_cpp='$CPP $CPPFLAGS'
11874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11878 enable_aarch64_lse=
11879 save_CFLAGS="$CFLAGS"
11880 for real_option in -march=armv8-a+lse; do
11881 # Do the check with the no- prefix removed since gcc silently
11882 # accepts any -Wno-* option on purpose
11883 case $real_option in
11884 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
11885 *) option=$real_option ;;
11886 esac
11887 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
11890 $as_echo_n "checking whether $CC supports $option... " >&6; }
11891 if eval \${$as_acx_Woption+:} false; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894 CFLAGS="$option"
11895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11899 main ()
11903 return 0;
11905 _ACEOF
11906 if ac_fn_c_try_compile "$LINENO"; then :
11907 eval "$as_acx_Woption=yes"
11908 else
11909 eval "$as_acx_Woption=no"
11911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11914 eval ac_res=\$$as_acx_Woption
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11916 $as_echo "$ac_res" >&6; }
11917 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
11918 enable_aarch64_lse="$enable_aarch64_lse${enable_aarch64_lse:+ }$real_option"
11920 done
11921 CFLAGS="$save_CFLAGS"
11922 ac_ext=c
11923 ac_cpp='$CPP $CPPFLAGS'
11924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11930 esac
11934 # Get target configury.
11935 . ${srcdir}/configure.tgt
11936 if test -n "$UNSUPPORTED"; then
11937 as_fn_error $? "Configuration ${target} is unsupported." "$LINENO" 5
11940 # Write out the ifunc resolver arg type.
11942 cat >>confdefs.h <<_ACEOF
11943 #define IFUNC_RESOLVER_ARGS $IFUNC_RESOLVER_ARGS
11944 _ACEOF
11947 # Disable fallbacks to __sync routines from libgcc. Otherwise we'll
11948 # make silly decisions about what the cpu can do.
11949 CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS"
11951 # Check header files.
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11953 $as_echo_n "checking for ANSI C header files... " >&6; }
11954 if ${ac_cv_header_stdc+:} false; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11958 /* end confdefs.h. */
11959 #include <stdlib.h>
11960 #include <stdarg.h>
11961 #include <string.h>
11962 #include <float.h>
11965 main ()
11969 return 0;
11971 _ACEOF
11972 if ac_fn_c_try_compile "$LINENO"; then :
11973 ac_cv_header_stdc=yes
11974 else
11975 ac_cv_header_stdc=no
11977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11979 if test $ac_cv_header_stdc = yes; then
11980 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11983 #include <string.h>
11985 _ACEOF
11986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11987 $EGREP "memchr" >/dev/null 2>&1; then :
11989 else
11990 ac_cv_header_stdc=no
11992 rm -f conftest*
11996 if test $ac_cv_header_stdc = yes; then
11997 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11999 /* end confdefs.h. */
12000 #include <stdlib.h>
12002 _ACEOF
12003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12004 $EGREP "free" >/dev/null 2>&1; then :
12006 else
12007 ac_cv_header_stdc=no
12009 rm -f conftest*
12013 if test $ac_cv_header_stdc = yes; then
12014 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12015 if test "$cross_compiling" = yes; then :
12017 else
12018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019 /* end confdefs.h. */
12020 #include <ctype.h>
12021 #include <stdlib.h>
12022 #if ((' ' & 0x0FF) == 0x020)
12023 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12024 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12025 #else
12026 # define ISLOWER(c) \
12027 (('a' <= (c) && (c) <= 'i') \
12028 || ('j' <= (c) && (c) <= 'r') \
12029 || ('s' <= (c) && (c) <= 'z'))
12030 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12031 #endif
12033 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12035 main ()
12037 int i;
12038 for (i = 0; i < 256; i++)
12039 if (XOR (islower (i), ISLOWER (i))
12040 || toupper (i) != TOUPPER (i))
12041 return 2;
12042 return 0;
12044 _ACEOF
12045 if ac_fn_c_try_run "$LINENO"; then :
12047 else
12048 ac_cv_header_stdc=no
12050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12051 conftest.$ac_objext conftest.beam conftest.$ac_ext
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12057 $as_echo "$ac_cv_header_stdc" >&6; }
12058 if test $ac_cv_header_stdc = yes; then
12060 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
12065 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
12066 if ${gcc_cv_header_string+:} false; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h. */
12071 #include <string.h>
12072 #include <strings.h>
12074 main ()
12078 return 0;
12080 _ACEOF
12081 if ac_fn_c_try_compile "$LINENO"; then :
12082 gcc_cv_header_string=yes
12083 else
12084 gcc_cv_header_string=no
12086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
12089 $as_echo "$gcc_cv_header_string" >&6; }
12090 if test $gcc_cv_header_string = yes; then
12092 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
12098 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12100 acx_cv_header_stdint=stddef.h
12101 acx_cv_header_stdint_kind="(already complete)"
12102 for i in stdint.h $inttype_headers; do
12103 unset ac_cv_type_uintptr_t
12104 unset ac_cv_type_uintmax_t
12105 unset ac_cv_type_int_least32_t
12106 unset ac_cv_type_int_fast32_t
12107 unset ac_cv_type_uint64_t
12108 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12109 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12110 #include <$i>
12112 if test "x$ac_cv_type_uintmax_t" = xyes; then :
12113 acx_cv_header_stdint=$i
12114 else
12115 continue
12118 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12119 #include <$i>
12121 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12123 else
12124 acx_cv_header_stdint_kind="(mostly complete)"
12127 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12128 #include <$i>
12130 if test "x$ac_cv_type_int_least32_t" = xyes; then :
12132 else
12133 acx_cv_header_stdint_kind="(mostly complete)"
12136 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12137 #include <$i>
12139 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
12141 else
12142 acx_cv_header_stdint_kind="(mostly complete)"
12145 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12146 #include <$i>
12148 if test "x$ac_cv_type_uint64_t" = xyes; then :
12150 else
12151 acx_cv_header_stdint_kind="(lacks uint64_t)"
12154 break
12155 done
12156 if test "$acx_cv_header_stdint" = stddef.h; then
12157 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12158 for i in stdint.h $inttype_headers; do
12159 unset ac_cv_type_uintptr_t
12160 unset ac_cv_type_uint32_t
12161 unset ac_cv_type_uint64_t
12162 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12163 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12164 #include <$i>
12166 if test "x$ac_cv_type_uint32_t" = xyes; then :
12167 acx_cv_header_stdint=$i
12168 else
12169 continue
12172 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12173 #include <$i>
12175 if test "x$ac_cv_type_uint64_t" = xyes; then :
12179 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12180 #include <$i>
12182 if test "x$ac_cv_type_uintptr_t" = xyes; then :
12186 break
12187 done
12189 if test "$acx_cv_header_stdint" = stddef.h; then
12190 acx_cv_header_stdint_kind="(u_intXX_t style)"
12191 for i in sys/types.h $inttype_headers; do
12192 unset ac_cv_type_u_int32_t
12193 unset ac_cv_type_u_int64_t
12194 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12195 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12196 #include <$i>
12198 if test "x$ac_cv_type_u_int32_t" = xyes; then :
12199 acx_cv_header_stdint=$i
12200 else
12201 continue
12204 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12205 #include <$i>
12207 if test "x$ac_cv_type_u_int64_t" = xyes; then :
12211 break
12212 done
12214 if test "$acx_cv_header_stdint" = stddef.h; then
12215 acx_cv_header_stdint_kind="(using manual detection)"
12218 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12219 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12220 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12221 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12222 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12224 # ----------------- Summarize what we found so far
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12227 $as_echo_n "checking what to include in gstdint.h... " >&6; }
12229 case `$as_basename -- gstdint.h ||
12230 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12231 Xgstdint.h : 'X\(//\)$' \| \
12232 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12233 $as_echo X/gstdint.h |
12234 sed '/^.*\/\([^/][^/]*\)\/*$/{
12235 s//\1/
12238 /^X\/\(\/\/\)$/{
12239 s//\1/
12242 /^X\/\(\/\).*/{
12243 s//\1/
12246 s/.*/./; q'` in
12247 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12248 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12249 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12250 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12251 *) ;;
12252 esac
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12255 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12257 # ----------------- done included file, check C basic types --------
12259 # Lacking an uintptr_t? Test size of void *
12260 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12261 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12262 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12263 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12264 # This bug is HP SR number 8606223364.
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12266 $as_echo_n "checking size of void *... " >&6; }
12267 if ${ac_cv_sizeof_void_p+:} false; then :
12268 $as_echo_n "(cached) " >&6
12269 else
12270 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12272 else
12273 if test "$ac_cv_type_void_p" = yes; then
12274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12276 as_fn_error 77 "cannot compute sizeof (void *)
12277 See \`config.log' for more details" "$LINENO" 5; }
12278 else
12279 ac_cv_sizeof_void_p=0
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12285 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12289 cat >>confdefs.h <<_ACEOF
12290 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12291 _ACEOF
12294 esac
12296 # Lacking an uint64_t? Test size of long
12297 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12298 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12299 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12300 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12301 # This bug is HP SR number 8606223364.
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12303 $as_echo_n "checking size of long... " >&6; }
12304 if ${ac_cv_sizeof_long+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12309 else
12310 if test "$ac_cv_type_long" = yes; then
12311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12313 as_fn_error 77 "cannot compute sizeof (long)
12314 See \`config.log' for more details" "$LINENO" 5; }
12315 else
12316 ac_cv_sizeof_long=0
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12322 $as_echo "$ac_cv_sizeof_long" >&6; }
12326 cat >>confdefs.h <<_ACEOF
12327 #define SIZEOF_LONG $ac_cv_sizeof_long
12328 _ACEOF
12331 esac
12333 if test $acx_cv_header_stdint = stddef.h; then
12334 # Lacking a good header? Test size of everything and deduce all types.
12335 # The cast to long int works around a bug in the HP C Compiler
12336 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12337 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12338 # This bug is HP SR number 8606223364.
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12340 $as_echo_n "checking size of int... " >&6; }
12341 if ${ac_cv_sizeof_int+:} false; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12346 else
12347 if test "$ac_cv_type_int" = yes; then
12348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12350 as_fn_error 77 "cannot compute sizeof (int)
12351 See \`config.log' for more details" "$LINENO" 5; }
12352 else
12353 ac_cv_sizeof_int=0
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12359 $as_echo "$ac_cv_sizeof_int" >&6; }
12363 cat >>confdefs.h <<_ACEOF
12364 #define SIZEOF_INT $ac_cv_sizeof_int
12365 _ACEOF
12368 # The cast to long int works around a bug in the HP C Compiler
12369 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12370 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12371 # This bug is HP SR number 8606223364.
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12373 $as_echo_n "checking size of short... " >&6; }
12374 if ${ac_cv_sizeof_short+:} false; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12379 else
12380 if test "$ac_cv_type_short" = yes; then
12381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12383 as_fn_error 77 "cannot compute sizeof (short)
12384 See \`config.log' for more details" "$LINENO" 5; }
12385 else
12386 ac_cv_sizeof_short=0
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12392 $as_echo "$ac_cv_sizeof_short" >&6; }
12396 cat >>confdefs.h <<_ACEOF
12397 #define SIZEOF_SHORT $ac_cv_sizeof_short
12398 _ACEOF
12401 # The cast to long int works around a bug in the HP C Compiler
12402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12404 # This bug is HP SR number 8606223364.
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12406 $as_echo_n "checking size of char... " >&6; }
12407 if ${ac_cv_sizeof_char+:} false; then :
12408 $as_echo_n "(cached) " >&6
12409 else
12410 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12412 else
12413 if test "$ac_cv_type_char" = yes; then
12414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12416 as_fn_error 77 "cannot compute sizeof (char)
12417 See \`config.log' for more details" "$LINENO" 5; }
12418 else
12419 ac_cv_sizeof_char=0
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12425 $as_echo "$ac_cv_sizeof_char" >&6; }
12429 cat >>confdefs.h <<_ACEOF
12430 #define SIZEOF_CHAR $ac_cv_sizeof_char
12431 _ACEOF
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12436 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
12437 case "$ac_cv_sizeof_char" in
12438 1) acx_cv_type_int8_t=char ;;
12439 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
12440 esac
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12442 $as_echo "$acx_cv_type_int8_t" >&6; }
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12445 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
12446 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12447 2:*) acx_cv_type_int16_t=int ;;
12448 *:2) acx_cv_type_int16_t=short ;;
12449 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
12450 esac
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12452 $as_echo "$acx_cv_type_int16_t" >&6; }
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12455 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
12456 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12457 4:*) acx_cv_type_int32_t=int ;;
12458 *:4) acx_cv_type_int32_t=long ;;
12459 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
12460 esac
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12462 $as_echo "$acx_cv_type_int32_t" >&6; }
12465 # These tests are here to make the output prettier
12467 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12468 case "$ac_cv_sizeof_long" in
12469 8) acx_cv_type_int64_t=long ;;
12470 esac
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12472 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12474 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12477 # Now we can use the above types
12479 if test "$ac_cv_type_uintptr_t" != yes; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12481 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12482 case $ac_cv_sizeof_void_p in
12483 2) acx_cv_type_intptr_t=int16_t ;;
12484 4) acx_cv_type_intptr_t=int32_t ;;
12485 8) acx_cv_type_intptr_t=int64_t ;;
12486 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12487 esac
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12489 $as_echo "$acx_cv_type_intptr_t" >&6; }
12492 # ----------------- done all checks, emit header -------------
12493 ac_config_commands="$ac_config_commands gstdint.h"
12497 for ac_header in fenv.h
12498 do :
12499 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
12500 if test "x$ac_cv_header_fenv_h" = xyes; then :
12501 cat >>confdefs.h <<_ACEOF
12502 #define HAVE_FENV_H 1
12503 _ACEOF
12507 done
12510 # Check for common type sizes
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5
12513 $as_echo_n "checking for 1 byte integer... " >&6; }
12514 if ${libat_cv_have_mode_QI+:} false; then :
12515 $as_echo_n "(cached) " >&6
12516 else
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12519 int x __attribute__((mode(QI)));
12520 _ACEOF
12521 if ac_fn_c_try_compile "$LINENO"; then :
12522 libat_cv_have_mode_QI=yes
12523 else
12524 libat_cv_have_mode_QI=no
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5
12529 $as_echo "$libat_cv_have_mode_QI" >&6; }
12531 yesno=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '`
12533 cat >>confdefs.h <<_ACEOF
12534 #define HAVE_INT1 $yesno
12535 _ACEOF
12538 if test x$libat_cv_have_mode_QI = xyes; then
12539 SIZES="$SIZES 1"
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5
12544 $as_echo_n "checking for 2 byte integer... " >&6; }
12545 if ${libat_cv_have_mode_HI+:} false; then :
12546 $as_echo_n "(cached) " >&6
12547 else
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12550 int x __attribute__((mode(HI)));
12551 _ACEOF
12552 if ac_fn_c_try_compile "$LINENO"; then :
12553 libat_cv_have_mode_HI=yes
12554 else
12555 libat_cv_have_mode_HI=no
12557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5
12560 $as_echo "$libat_cv_have_mode_HI" >&6; }
12562 yesno=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '`
12564 cat >>confdefs.h <<_ACEOF
12565 #define HAVE_INT2 $yesno
12566 _ACEOF
12569 if test x$libat_cv_have_mode_HI = xyes; then
12570 SIZES="$SIZES 2"
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5
12575 $as_echo_n "checking for 4 byte integer... " >&6; }
12576 if ${libat_cv_have_mode_SI+:} false; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12580 /* end confdefs.h. */
12581 int x __attribute__((mode(SI)));
12582 _ACEOF
12583 if ac_fn_c_try_compile "$LINENO"; then :
12584 libat_cv_have_mode_SI=yes
12585 else
12586 libat_cv_have_mode_SI=no
12588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5
12591 $as_echo "$libat_cv_have_mode_SI" >&6; }
12593 yesno=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '`
12595 cat >>confdefs.h <<_ACEOF
12596 #define HAVE_INT4 $yesno
12597 _ACEOF
12600 if test x$libat_cv_have_mode_SI = xyes; then
12601 SIZES="$SIZES 4"
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5
12606 $as_echo_n "checking for 8 byte integer... " >&6; }
12607 if ${libat_cv_have_mode_DI+:} false; then :
12608 $as_echo_n "(cached) " >&6
12609 else
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h. */
12612 int x __attribute__((mode(DI)));
12613 _ACEOF
12614 if ac_fn_c_try_compile "$LINENO"; then :
12615 libat_cv_have_mode_DI=yes
12616 else
12617 libat_cv_have_mode_DI=no
12619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5
12622 $as_echo "$libat_cv_have_mode_DI" >&6; }
12624 yesno=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '`
12626 cat >>confdefs.h <<_ACEOF
12627 #define HAVE_INT8 $yesno
12628 _ACEOF
12631 if test x$libat_cv_have_mode_DI = xyes; then
12632 SIZES="$SIZES 8"
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5
12637 $as_echo_n "checking for 16 byte integer... " >&6; }
12638 if ${libat_cv_have_mode_TI+:} false; then :
12639 $as_echo_n "(cached) " >&6
12640 else
12641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12642 /* end confdefs.h. */
12643 int x __attribute__((mode(TI)));
12644 _ACEOF
12645 if ac_fn_c_try_compile "$LINENO"; then :
12646 libat_cv_have_mode_TI=yes
12647 else
12648 libat_cv_have_mode_TI=no
12650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5
12653 $as_echo "$libat_cv_have_mode_TI" >&6; }
12655 yesno=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '`
12657 cat >>confdefs.h <<_ACEOF
12658 #define HAVE_INT16 $yesno
12659 _ACEOF
12662 if test x$libat_cv_have_mode_TI = xyes; then
12663 SIZES="$SIZES 16"
12668 # Check for compiler builtins of atomic operations.
12670 # Do link tests if possible, instead asm tests, limited to some platforms
12671 # see discussion in PR target/40134, PR libstdc++/40133 and the thread
12672 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
12673 atomic_builtins_link_tests=no
12674 if test x$gcc_no_link != xyes; then
12675 # Can do link tests. Limit to some tested platforms
12676 case "$host" in
12677 *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
12678 atomic_builtins_link_tests=yes
12680 esac
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5
12686 $as_echo_n "checking for __atomic_load/store for size 1... " >&6; }
12687 if ${libat_cv_have_at_ldst_1+:} false; then :
12688 $as_echo_n "(cached) " >&6
12689 else
12691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692 /* end confdefs.h. */
12695 main ()
12697 typedef int T __attribute__((mode(QI)));
12698 T *x; volatile T sink; asm("" : "=g"(x));
12699 sink = __atomic_load_n(x, 0);
12700 __atomic_store_n(x, sink, 0);
12702 return 0;
12704 _ACEOF
12705 if test x$atomic_builtins_link_tests = xyes; then
12706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12707 (eval $ac_link) 2>&5
12708 ac_status=$?
12709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12710 test $ac_status = 0; }; then
12711 eval libat_cv_have_at_ldst_1=yes
12712 else
12713 eval libat_cv_have_at_ldst_1=no
12715 else
12716 old_CFLAGS="$CFLAGS"
12717 # Compile unoptimized.
12718 CFLAGS="$CFLAGS -O0 -S"
12719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12720 (eval $ac_compile) 2>&5
12721 ac_status=$?
12722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12723 test $ac_status = 0; }; then
12724 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12725 eval libat_cv_have_at_ldst_1=no
12726 else
12727 eval libat_cv_have_at_ldst_1=yes
12729 else
12730 eval libat_cv_have_at_ldst_1=no
12732 CFLAGS="$old_CFLAGS"
12734 rm -f conftest*
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5
12738 $as_echo "$libat_cv_have_at_ldst_1" >&6; }
12741 yesno=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '`
12743 cat >>confdefs.h <<_ACEOF
12744 #define HAVE_ATOMIC_LDST_1 $yesno
12745 _ACEOF
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5
12754 $as_echo_n "checking for __atomic_load/store for size 2... " >&6; }
12755 if ${libat_cv_have_at_ldst_2+:} false; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12763 main ()
12765 typedef int T __attribute__((mode(HI)));
12766 T *x; volatile T sink; asm("" : "=g"(x));
12767 sink = __atomic_load_n(x, 0);
12768 __atomic_store_n(x, sink, 0);
12770 return 0;
12772 _ACEOF
12773 if test x$atomic_builtins_link_tests = xyes; then
12774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12775 (eval $ac_link) 2>&5
12776 ac_status=$?
12777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12778 test $ac_status = 0; }; then
12779 eval libat_cv_have_at_ldst_2=yes
12780 else
12781 eval libat_cv_have_at_ldst_2=no
12783 else
12784 old_CFLAGS="$CFLAGS"
12785 # Compile unoptimized.
12786 CFLAGS="$CFLAGS -O0 -S"
12787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12788 (eval $ac_compile) 2>&5
12789 ac_status=$?
12790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12791 test $ac_status = 0; }; then
12792 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12793 eval libat_cv_have_at_ldst_2=no
12794 else
12795 eval libat_cv_have_at_ldst_2=yes
12797 else
12798 eval libat_cv_have_at_ldst_2=no
12800 CFLAGS="$old_CFLAGS"
12802 rm -f conftest*
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5
12806 $as_echo "$libat_cv_have_at_ldst_2" >&6; }
12809 yesno=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '`
12811 cat >>confdefs.h <<_ACEOF
12812 #define HAVE_ATOMIC_LDST_2 $yesno
12813 _ACEOF
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5
12822 $as_echo_n "checking for __atomic_load/store for size 4... " >&6; }
12823 if ${libat_cv_have_at_ldst_4+:} false; then :
12824 $as_echo_n "(cached) " >&6
12825 else
12827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12828 /* end confdefs.h. */
12831 main ()
12833 typedef int T __attribute__((mode(SI)));
12834 T *x; volatile T sink; asm("" : "=g"(x));
12835 sink = __atomic_load_n(x, 0);
12836 __atomic_store_n(x, sink, 0);
12838 return 0;
12840 _ACEOF
12841 if test x$atomic_builtins_link_tests = xyes; then
12842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12843 (eval $ac_link) 2>&5
12844 ac_status=$?
12845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12846 test $ac_status = 0; }; then
12847 eval libat_cv_have_at_ldst_4=yes
12848 else
12849 eval libat_cv_have_at_ldst_4=no
12851 else
12852 old_CFLAGS="$CFLAGS"
12853 # Compile unoptimized.
12854 CFLAGS="$CFLAGS -O0 -S"
12855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12856 (eval $ac_compile) 2>&5
12857 ac_status=$?
12858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12859 test $ac_status = 0; }; then
12860 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12861 eval libat_cv_have_at_ldst_4=no
12862 else
12863 eval libat_cv_have_at_ldst_4=yes
12865 else
12866 eval libat_cv_have_at_ldst_4=no
12868 CFLAGS="$old_CFLAGS"
12870 rm -f conftest*
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5
12874 $as_echo "$libat_cv_have_at_ldst_4" >&6; }
12877 yesno=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '`
12879 cat >>confdefs.h <<_ACEOF
12880 #define HAVE_ATOMIC_LDST_4 $yesno
12881 _ACEOF
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5
12890 $as_echo_n "checking for __atomic_load/store for size 8... " >&6; }
12891 if ${libat_cv_have_at_ldst_8+:} false; then :
12892 $as_echo_n "(cached) " >&6
12893 else
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12899 main ()
12901 typedef int T __attribute__((mode(DI)));
12902 T *x; volatile T sink; asm("" : "=g"(x));
12903 sink = __atomic_load_n(x, 0);
12904 __atomic_store_n(x, sink, 0);
12906 return 0;
12908 _ACEOF
12909 if test x$atomic_builtins_link_tests = xyes; then
12910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12911 (eval $ac_link) 2>&5
12912 ac_status=$?
12913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12914 test $ac_status = 0; }; then
12915 eval libat_cv_have_at_ldst_8=yes
12916 else
12917 eval libat_cv_have_at_ldst_8=no
12919 else
12920 old_CFLAGS="$CFLAGS"
12921 # Compile unoptimized.
12922 CFLAGS="$CFLAGS -O0 -S"
12923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12924 (eval $ac_compile) 2>&5
12925 ac_status=$?
12926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12927 test $ac_status = 0; }; then
12928 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12929 eval libat_cv_have_at_ldst_8=no
12930 else
12931 eval libat_cv_have_at_ldst_8=yes
12933 else
12934 eval libat_cv_have_at_ldst_8=no
12936 CFLAGS="$old_CFLAGS"
12938 rm -f conftest*
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5
12942 $as_echo "$libat_cv_have_at_ldst_8" >&6; }
12945 yesno=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '`
12947 cat >>confdefs.h <<_ACEOF
12948 #define HAVE_ATOMIC_LDST_8 $yesno
12949 _ACEOF
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5
12958 $as_echo_n "checking for __atomic_load/store for size 16... " >&6; }
12959 if ${libat_cv_have_at_ldst_16+:} false; then :
12960 $as_echo_n "(cached) " >&6
12961 else
12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12967 main ()
12969 typedef int T __attribute__((mode(TI)));
12970 T *x; volatile T sink; asm("" : "=g"(x));
12971 sink = __atomic_load_n(x, 0);
12972 __atomic_store_n(x, sink, 0);
12974 return 0;
12976 _ACEOF
12977 if test x$atomic_builtins_link_tests = xyes; then
12978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12979 (eval $ac_link) 2>&5
12980 ac_status=$?
12981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12982 test $ac_status = 0; }; then
12983 eval libat_cv_have_at_ldst_16=yes
12984 else
12985 eval libat_cv_have_at_ldst_16=no
12987 else
12988 old_CFLAGS="$CFLAGS"
12989 # Compile unoptimized.
12990 CFLAGS="$CFLAGS -O0 -S"
12991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12992 (eval $ac_compile) 2>&5
12993 ac_status=$?
12994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12995 test $ac_status = 0; }; then
12996 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12997 eval libat_cv_have_at_ldst_16=no
12998 else
12999 eval libat_cv_have_at_ldst_16=yes
13001 else
13002 eval libat_cv_have_at_ldst_16=no
13004 CFLAGS="$old_CFLAGS"
13006 rm -f conftest*
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5
13010 $as_echo "$libat_cv_have_at_ldst_16" >&6; }
13013 yesno=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '`
13015 cat >>confdefs.h <<_ACEOF
13016 #define HAVE_ATOMIC_LDST_16 $yesno
13017 _ACEOF
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5
13027 $as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; }
13028 if ${libat_cv_have_at_tas_1+:} false; then :
13029 $as_echo_n "(cached) " >&6
13030 else
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033 /* end confdefs.h. */
13036 main ()
13038 typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
13039 __atomic_test_and_set(x, 0);
13041 return 0;
13043 _ACEOF
13044 if test x$atomic_builtins_link_tests = xyes; then
13045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13046 (eval $ac_link) 2>&5
13047 ac_status=$?
13048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13049 test $ac_status = 0; }; then
13050 eval libat_cv_have_at_tas_1=yes
13051 else
13052 eval libat_cv_have_at_tas_1=no
13054 else
13055 old_CFLAGS="$CFLAGS"
13056 # Compile unoptimized.
13057 CFLAGS="$CFLAGS -O0 -S"
13058 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13059 (eval $ac_compile) 2>&5
13060 ac_status=$?
13061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13062 test $ac_status = 0; }; then
13063 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13064 eval libat_cv_have_at_tas_1=no
13065 else
13066 eval libat_cv_have_at_tas_1=yes
13068 else
13069 eval libat_cv_have_at_tas_1=no
13071 CFLAGS="$old_CFLAGS"
13073 rm -f conftest*
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5
13077 $as_echo "$libat_cv_have_at_tas_1" >&6; }
13080 yesno=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '`
13082 cat >>confdefs.h <<_ACEOF
13083 #define HAVE_ATOMIC_TAS_1 $yesno
13084 _ACEOF
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5
13092 $as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; }
13093 if ${libat_cv_have_at_tas_2+:} false; then :
13094 $as_echo_n "(cached) " >&6
13095 else
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13101 main ()
13103 typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
13104 __atomic_test_and_set(x, 0);
13106 return 0;
13108 _ACEOF
13109 if test x$atomic_builtins_link_tests = xyes; then
13110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13111 (eval $ac_link) 2>&5
13112 ac_status=$?
13113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13114 test $ac_status = 0; }; then
13115 eval libat_cv_have_at_tas_2=yes
13116 else
13117 eval libat_cv_have_at_tas_2=no
13119 else
13120 old_CFLAGS="$CFLAGS"
13121 # Compile unoptimized.
13122 CFLAGS="$CFLAGS -O0 -S"
13123 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13124 (eval $ac_compile) 2>&5
13125 ac_status=$?
13126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13127 test $ac_status = 0; }; then
13128 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13129 eval libat_cv_have_at_tas_2=no
13130 else
13131 eval libat_cv_have_at_tas_2=yes
13133 else
13134 eval libat_cv_have_at_tas_2=no
13136 CFLAGS="$old_CFLAGS"
13138 rm -f conftest*
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5
13142 $as_echo "$libat_cv_have_at_tas_2" >&6; }
13145 yesno=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '`
13147 cat >>confdefs.h <<_ACEOF
13148 #define HAVE_ATOMIC_TAS_2 $yesno
13149 _ACEOF
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5
13157 $as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; }
13158 if ${libat_cv_have_at_tas_4+:} false; then :
13159 $as_echo_n "(cached) " >&6
13160 else
13162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13166 main ()
13168 typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13169 __atomic_test_and_set(x, 0);
13171 return 0;
13173 _ACEOF
13174 if test x$atomic_builtins_link_tests = xyes; then
13175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13176 (eval $ac_link) 2>&5
13177 ac_status=$?
13178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13179 test $ac_status = 0; }; then
13180 eval libat_cv_have_at_tas_4=yes
13181 else
13182 eval libat_cv_have_at_tas_4=no
13184 else
13185 old_CFLAGS="$CFLAGS"
13186 # Compile unoptimized.
13187 CFLAGS="$CFLAGS -O0 -S"
13188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13189 (eval $ac_compile) 2>&5
13190 ac_status=$?
13191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13192 test $ac_status = 0; }; then
13193 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13194 eval libat_cv_have_at_tas_4=no
13195 else
13196 eval libat_cv_have_at_tas_4=yes
13198 else
13199 eval libat_cv_have_at_tas_4=no
13201 CFLAGS="$old_CFLAGS"
13203 rm -f conftest*
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5
13207 $as_echo "$libat_cv_have_at_tas_4" >&6; }
13210 yesno=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '`
13212 cat >>confdefs.h <<_ACEOF
13213 #define HAVE_ATOMIC_TAS_4 $yesno
13214 _ACEOF
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5
13222 $as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; }
13223 if ${libat_cv_have_at_tas_8+:} false; then :
13224 $as_echo_n "(cached) " >&6
13225 else
13227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13228 /* end confdefs.h. */
13231 main ()
13233 typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13234 __atomic_test_and_set(x, 0);
13236 return 0;
13238 _ACEOF
13239 if test x$atomic_builtins_link_tests = xyes; then
13240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13241 (eval $ac_link) 2>&5
13242 ac_status=$?
13243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13244 test $ac_status = 0; }; then
13245 eval libat_cv_have_at_tas_8=yes
13246 else
13247 eval libat_cv_have_at_tas_8=no
13249 else
13250 old_CFLAGS="$CFLAGS"
13251 # Compile unoptimized.
13252 CFLAGS="$CFLAGS -O0 -S"
13253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13254 (eval $ac_compile) 2>&5
13255 ac_status=$?
13256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13257 test $ac_status = 0; }; then
13258 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13259 eval libat_cv_have_at_tas_8=no
13260 else
13261 eval libat_cv_have_at_tas_8=yes
13263 else
13264 eval libat_cv_have_at_tas_8=no
13266 CFLAGS="$old_CFLAGS"
13268 rm -f conftest*
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5
13272 $as_echo "$libat_cv_have_at_tas_8" >&6; }
13275 yesno=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '`
13277 cat >>confdefs.h <<_ACEOF
13278 #define HAVE_ATOMIC_TAS_8 $yesno
13279 _ACEOF
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5
13287 $as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; }
13288 if ${libat_cv_have_at_tas_16+:} false; then :
13289 $as_echo_n "(cached) " >&6
13290 else
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13296 main ()
13298 typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13299 __atomic_test_and_set(x, 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_tas_16=yes
13311 else
13312 eval libat_cv_have_at_tas_16=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_tas_16=no
13325 else
13326 eval libat_cv_have_at_tas_16=yes
13328 else
13329 eval libat_cv_have_at_tas_16=no
13331 CFLAGS="$old_CFLAGS"
13333 rm -f conftest*
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5
13337 $as_echo "$libat_cv_have_at_tas_16" >&6; }
13340 yesno=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '`
13342 cat >>confdefs.h <<_ACEOF
13343 #define HAVE_ATOMIC_TAS_16 $yesno
13344 _ACEOF
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5
13353 $as_echo_n "checking for __atomic_exchange for size 1... " >&6; }
13354 if ${libat_cv_have_at_exch_1+:} false; then :
13355 $as_echo_n "(cached) " >&6
13356 else
13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 /* end confdefs.h. */
13362 main ()
13364 typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
13365 __atomic_exchange_n(x, 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_exch_1=yes
13377 else
13378 eval libat_cv_have_at_exch_1=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_exch_1=no
13391 else
13392 eval libat_cv_have_at_exch_1=yes
13394 else
13395 eval libat_cv_have_at_exch_1=no
13397 CFLAGS="$old_CFLAGS"
13399 rm -f conftest*
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5
13403 $as_echo "$libat_cv_have_at_exch_1" >&6; }
13406 yesno=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '`
13408 cat >>confdefs.h <<_ACEOF
13409 #define HAVE_ATOMIC_EXCHANGE_1 $yesno
13410 _ACEOF
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5
13418 $as_echo_n "checking for __atomic_exchange for size 2... " >&6; }
13419 if ${libat_cv_have_at_exch_2+:} false; 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(HI))); T *x; asm("" : "=g"(x));
13430 __atomic_exchange_n(x, 0, 0);
13432 return 0;
13434 _ACEOF
13435 if test x$atomic_builtins_link_tests = xyes; then
13436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13437 (eval $ac_link) 2>&5
13438 ac_status=$?
13439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13440 test $ac_status = 0; }; then
13441 eval libat_cv_have_at_exch_2=yes
13442 else
13443 eval libat_cv_have_at_exch_2=no
13445 else
13446 old_CFLAGS="$CFLAGS"
13447 # Compile unoptimized.
13448 CFLAGS="$CFLAGS -O0 -S"
13449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13450 (eval $ac_compile) 2>&5
13451 ac_status=$?
13452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13453 test $ac_status = 0; }; then
13454 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13455 eval libat_cv_have_at_exch_2=no
13456 else
13457 eval libat_cv_have_at_exch_2=yes
13459 else
13460 eval libat_cv_have_at_exch_2=no
13462 CFLAGS="$old_CFLAGS"
13464 rm -f conftest*
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5
13468 $as_echo "$libat_cv_have_at_exch_2" >&6; }
13471 yesno=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '`
13473 cat >>confdefs.h <<_ACEOF
13474 #define HAVE_ATOMIC_EXCHANGE_2 $yesno
13475 _ACEOF
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5
13483 $as_echo_n "checking for __atomic_exchange for size 4... " >&6; }
13484 if ${libat_cv_have_at_exch_4+:} false; then :
13485 $as_echo_n "(cached) " >&6
13486 else
13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13492 main ()
13494 typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13495 __atomic_exchange_n(x, 0, 0);
13497 return 0;
13499 _ACEOF
13500 if test x$atomic_builtins_link_tests = xyes; then
13501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13502 (eval $ac_link) 2>&5
13503 ac_status=$?
13504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13505 test $ac_status = 0; }; then
13506 eval libat_cv_have_at_exch_4=yes
13507 else
13508 eval libat_cv_have_at_exch_4=no
13510 else
13511 old_CFLAGS="$CFLAGS"
13512 # Compile unoptimized.
13513 CFLAGS="$CFLAGS -O0 -S"
13514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13515 (eval $ac_compile) 2>&5
13516 ac_status=$?
13517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13518 test $ac_status = 0; }; then
13519 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13520 eval libat_cv_have_at_exch_4=no
13521 else
13522 eval libat_cv_have_at_exch_4=yes
13524 else
13525 eval libat_cv_have_at_exch_4=no
13527 CFLAGS="$old_CFLAGS"
13529 rm -f conftest*
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5
13533 $as_echo "$libat_cv_have_at_exch_4" >&6; }
13536 yesno=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '`
13538 cat >>confdefs.h <<_ACEOF
13539 #define HAVE_ATOMIC_EXCHANGE_4 $yesno
13540 _ACEOF
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5
13548 $as_echo_n "checking for __atomic_exchange for size 8... " >&6; }
13549 if ${libat_cv_have_at_exch_8+:} false; then :
13550 $as_echo_n "(cached) " >&6
13551 else
13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h. */
13557 main ()
13559 typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13560 __atomic_exchange_n(x, 0, 0);
13562 return 0;
13564 _ACEOF
13565 if test x$atomic_builtins_link_tests = xyes; then
13566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13567 (eval $ac_link) 2>&5
13568 ac_status=$?
13569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13570 test $ac_status = 0; }; then
13571 eval libat_cv_have_at_exch_8=yes
13572 else
13573 eval libat_cv_have_at_exch_8=no
13575 else
13576 old_CFLAGS="$CFLAGS"
13577 # Compile unoptimized.
13578 CFLAGS="$CFLAGS -O0 -S"
13579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13580 (eval $ac_compile) 2>&5
13581 ac_status=$?
13582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13583 test $ac_status = 0; }; then
13584 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13585 eval libat_cv_have_at_exch_8=no
13586 else
13587 eval libat_cv_have_at_exch_8=yes
13589 else
13590 eval libat_cv_have_at_exch_8=no
13592 CFLAGS="$old_CFLAGS"
13594 rm -f conftest*
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5
13598 $as_echo "$libat_cv_have_at_exch_8" >&6; }
13601 yesno=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '`
13603 cat >>confdefs.h <<_ACEOF
13604 #define HAVE_ATOMIC_EXCHANGE_8 $yesno
13605 _ACEOF
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5
13613 $as_echo_n "checking for __atomic_exchange for size 16... " >&6; }
13614 if ${libat_cv_have_at_exch_16+:} false; then :
13615 $as_echo_n "(cached) " >&6
13616 else
13618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h. */
13622 main ()
13624 typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13625 __atomic_exchange_n(x, 0, 0);
13627 return 0;
13629 _ACEOF
13630 if test x$atomic_builtins_link_tests = xyes; then
13631 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13632 (eval $ac_link) 2>&5
13633 ac_status=$?
13634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13635 test $ac_status = 0; }; then
13636 eval libat_cv_have_at_exch_16=yes
13637 else
13638 eval libat_cv_have_at_exch_16=no
13640 else
13641 old_CFLAGS="$CFLAGS"
13642 # Compile unoptimized.
13643 CFLAGS="$CFLAGS -O0 -S"
13644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13645 (eval $ac_compile) 2>&5
13646 ac_status=$?
13647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13648 test $ac_status = 0; }; then
13649 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13650 eval libat_cv_have_at_exch_16=no
13651 else
13652 eval libat_cv_have_at_exch_16=yes
13654 else
13655 eval libat_cv_have_at_exch_16=no
13657 CFLAGS="$old_CFLAGS"
13659 rm -f conftest*
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5
13663 $as_echo "$libat_cv_have_at_exch_16" >&6; }
13666 yesno=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '`
13668 cat >>confdefs.h <<_ACEOF
13669 #define HAVE_ATOMIC_EXCHANGE_16 $yesno
13670 _ACEOF
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5
13679 $as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; }
13680 if ${libat_cv_have_at_cas_1+:} false; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h. */
13688 main ()
13690 typedef int T __attribute__((mode(QI))); T *x, *y;
13691 asm("" : "=g"(x), "=g"(y));
13692 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13694 return 0;
13696 _ACEOF
13697 if test x$atomic_builtins_link_tests = xyes; then
13698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13699 (eval $ac_link) 2>&5
13700 ac_status=$?
13701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13702 test $ac_status = 0; }; then
13703 eval libat_cv_have_at_cas_1=yes
13704 else
13705 eval libat_cv_have_at_cas_1=no
13707 else
13708 old_CFLAGS="$CFLAGS"
13709 # Compile unoptimized.
13710 CFLAGS="$CFLAGS -O0 -S"
13711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13712 (eval $ac_compile) 2>&5
13713 ac_status=$?
13714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13715 test $ac_status = 0; }; then
13716 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13717 eval libat_cv_have_at_cas_1=no
13718 else
13719 eval libat_cv_have_at_cas_1=yes
13721 else
13722 eval libat_cv_have_at_cas_1=no
13724 CFLAGS="$old_CFLAGS"
13726 rm -f conftest*
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5
13730 $as_echo "$libat_cv_have_at_cas_1" >&6; }
13733 yesno=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '`
13735 cat >>confdefs.h <<_ACEOF
13736 #define HAVE_ATOMIC_CAS_1 $yesno
13737 _ACEOF
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5
13745 $as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; }
13746 if ${libat_cv_have_at_cas_2+:} false; then :
13747 $as_echo_n "(cached) " >&6
13748 else
13750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h. */
13754 main ()
13756 typedef int T __attribute__((mode(HI))); T *x, *y;
13757 asm("" : "=g"(x), "=g"(y));
13758 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13760 return 0;
13762 _ACEOF
13763 if test x$atomic_builtins_link_tests = xyes; then
13764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13765 (eval $ac_link) 2>&5
13766 ac_status=$?
13767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13768 test $ac_status = 0; }; then
13769 eval libat_cv_have_at_cas_2=yes
13770 else
13771 eval libat_cv_have_at_cas_2=no
13773 else
13774 old_CFLAGS="$CFLAGS"
13775 # Compile unoptimized.
13776 CFLAGS="$CFLAGS -O0 -S"
13777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13778 (eval $ac_compile) 2>&5
13779 ac_status=$?
13780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13781 test $ac_status = 0; }; then
13782 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13783 eval libat_cv_have_at_cas_2=no
13784 else
13785 eval libat_cv_have_at_cas_2=yes
13787 else
13788 eval libat_cv_have_at_cas_2=no
13790 CFLAGS="$old_CFLAGS"
13792 rm -f conftest*
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5
13796 $as_echo "$libat_cv_have_at_cas_2" >&6; }
13799 yesno=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '`
13801 cat >>confdefs.h <<_ACEOF
13802 #define HAVE_ATOMIC_CAS_2 $yesno
13803 _ACEOF
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5
13811 $as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; }
13812 if ${libat_cv_have_at_cas_4+:} false; then :
13813 $as_echo_n "(cached) " >&6
13814 else
13816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13817 /* end confdefs.h. */
13820 main ()
13822 typedef int T __attribute__((mode(SI))); T *x, *y;
13823 asm("" : "=g"(x), "=g"(y));
13824 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13826 return 0;
13828 _ACEOF
13829 if test x$atomic_builtins_link_tests = xyes; then
13830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13831 (eval $ac_link) 2>&5
13832 ac_status=$?
13833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13834 test $ac_status = 0; }; then
13835 eval libat_cv_have_at_cas_4=yes
13836 else
13837 eval libat_cv_have_at_cas_4=no
13839 else
13840 old_CFLAGS="$CFLAGS"
13841 # Compile unoptimized.
13842 CFLAGS="$CFLAGS -O0 -S"
13843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13844 (eval $ac_compile) 2>&5
13845 ac_status=$?
13846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13847 test $ac_status = 0; }; then
13848 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13849 eval libat_cv_have_at_cas_4=no
13850 else
13851 eval libat_cv_have_at_cas_4=yes
13853 else
13854 eval libat_cv_have_at_cas_4=no
13856 CFLAGS="$old_CFLAGS"
13858 rm -f conftest*
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5
13862 $as_echo "$libat_cv_have_at_cas_4" >&6; }
13865 yesno=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '`
13867 cat >>confdefs.h <<_ACEOF
13868 #define HAVE_ATOMIC_CAS_4 $yesno
13869 _ACEOF
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5
13877 $as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; }
13878 if ${libat_cv_have_at_cas_8+:} false; then :
13879 $as_echo_n "(cached) " >&6
13880 else
13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13886 main ()
13888 typedef int T __attribute__((mode(DI))); T *x, *y;
13889 asm("" : "=g"(x), "=g"(y));
13890 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13892 return 0;
13894 _ACEOF
13895 if test x$atomic_builtins_link_tests = xyes; then
13896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13897 (eval $ac_link) 2>&5
13898 ac_status=$?
13899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13900 test $ac_status = 0; }; then
13901 eval libat_cv_have_at_cas_8=yes
13902 else
13903 eval libat_cv_have_at_cas_8=no
13905 else
13906 old_CFLAGS="$CFLAGS"
13907 # Compile unoptimized.
13908 CFLAGS="$CFLAGS -O0 -S"
13909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13910 (eval $ac_compile) 2>&5
13911 ac_status=$?
13912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13913 test $ac_status = 0; }; then
13914 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13915 eval libat_cv_have_at_cas_8=no
13916 else
13917 eval libat_cv_have_at_cas_8=yes
13919 else
13920 eval libat_cv_have_at_cas_8=no
13922 CFLAGS="$old_CFLAGS"
13924 rm -f conftest*
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5
13928 $as_echo "$libat_cv_have_at_cas_8" >&6; }
13931 yesno=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '`
13933 cat >>confdefs.h <<_ACEOF
13934 #define HAVE_ATOMIC_CAS_8 $yesno
13935 _ACEOF
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5
13943 $as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; }
13944 if ${libat_cv_have_at_cas_16+:} false; then :
13945 $as_echo_n "(cached) " >&6
13946 else
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13952 main ()
13954 typedef int T __attribute__((mode(TI))); T *x, *y;
13955 asm("" : "=g"(x), "=g"(y));
13956 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13958 return 0;
13960 _ACEOF
13961 if test x$atomic_builtins_link_tests = xyes; then
13962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13963 (eval $ac_link) 2>&5
13964 ac_status=$?
13965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13966 test $ac_status = 0; }; then
13967 eval libat_cv_have_at_cas_16=yes
13968 else
13969 eval libat_cv_have_at_cas_16=no
13971 else
13972 old_CFLAGS="$CFLAGS"
13973 # Compile unoptimized.
13974 CFLAGS="$CFLAGS -O0 -S"
13975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13976 (eval $ac_compile) 2>&5
13977 ac_status=$?
13978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13979 test $ac_status = 0; }; then
13980 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13981 eval libat_cv_have_at_cas_16=no
13982 else
13983 eval libat_cv_have_at_cas_16=yes
13985 else
13986 eval libat_cv_have_at_cas_16=no
13988 CFLAGS="$old_CFLAGS"
13990 rm -f conftest*
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5
13994 $as_echo "$libat_cv_have_at_cas_16" >&6; }
13997 yesno=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '`
13999 cat >>confdefs.h <<_ACEOF
14000 #define HAVE_ATOMIC_CAS_16 $yesno
14001 _ACEOF
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5
14010 $as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; }
14011 if ${libat_cv_have_at_fadd_1+:} false; then :
14012 $as_echo_n "(cached) " >&6
14013 else
14015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14016 /* end confdefs.h. */
14019 main ()
14021 typedef int T __attribute__((mode(QI))); T *x, y;
14022 asm("" : "=g"(x), "=g"(y));
14023 __atomic_fetch_add (x, y, 0);
14024 __atomic_add_fetch (x, y, 0);
14026 return 0;
14028 _ACEOF
14029 if test x$atomic_builtins_link_tests = xyes; then
14030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14031 (eval $ac_link) 2>&5
14032 ac_status=$?
14033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14034 test $ac_status = 0; }; then
14035 eval libat_cv_have_at_fadd_1=yes
14036 else
14037 eval libat_cv_have_at_fadd_1=no
14039 else
14040 old_CFLAGS="$CFLAGS"
14041 # Compile unoptimized.
14042 CFLAGS="$CFLAGS -O0 -S"
14043 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14044 (eval $ac_compile) 2>&5
14045 ac_status=$?
14046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14047 test $ac_status = 0; }; then
14048 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14049 eval libat_cv_have_at_fadd_1=no
14050 else
14051 eval libat_cv_have_at_fadd_1=yes
14053 else
14054 eval libat_cv_have_at_fadd_1=no
14056 CFLAGS="$old_CFLAGS"
14058 rm -f conftest*
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5
14062 $as_echo "$libat_cv_have_at_fadd_1" >&6; }
14065 yesno=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '`
14067 cat >>confdefs.h <<_ACEOF
14068 #define HAVE_ATOMIC_FETCH_ADD_1 $yesno
14069 _ACEOF
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5
14077 $as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; }
14078 if ${libat_cv_have_at_fadd_2+:} false; then :
14079 $as_echo_n "(cached) " >&6
14080 else
14082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h. */
14086 main ()
14088 typedef int T __attribute__((mode(HI))); T *x, y;
14089 asm("" : "=g"(x), "=g"(y));
14090 __atomic_fetch_add (x, y, 0);
14091 __atomic_add_fetch (x, y, 0);
14093 return 0;
14095 _ACEOF
14096 if test x$atomic_builtins_link_tests = xyes; then
14097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14098 (eval $ac_link) 2>&5
14099 ac_status=$?
14100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14101 test $ac_status = 0; }; then
14102 eval libat_cv_have_at_fadd_2=yes
14103 else
14104 eval libat_cv_have_at_fadd_2=no
14106 else
14107 old_CFLAGS="$CFLAGS"
14108 # Compile unoptimized.
14109 CFLAGS="$CFLAGS -O0 -S"
14110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14111 (eval $ac_compile) 2>&5
14112 ac_status=$?
14113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14114 test $ac_status = 0; }; then
14115 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14116 eval libat_cv_have_at_fadd_2=no
14117 else
14118 eval libat_cv_have_at_fadd_2=yes
14120 else
14121 eval libat_cv_have_at_fadd_2=no
14123 CFLAGS="$old_CFLAGS"
14125 rm -f conftest*
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5
14129 $as_echo "$libat_cv_have_at_fadd_2" >&6; }
14132 yesno=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '`
14134 cat >>confdefs.h <<_ACEOF
14135 #define HAVE_ATOMIC_FETCH_ADD_2 $yesno
14136 _ACEOF
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5
14144 $as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; }
14145 if ${libat_cv_have_at_fadd_4+:} false; then :
14146 $as_echo_n "(cached) " >&6
14147 else
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14153 main ()
14155 typedef int T __attribute__((mode(SI))); T *x, y;
14156 asm("" : "=g"(x), "=g"(y));
14157 __atomic_fetch_add (x, y, 0);
14158 __atomic_add_fetch (x, y, 0);
14160 return 0;
14162 _ACEOF
14163 if test x$atomic_builtins_link_tests = xyes; then
14164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14165 (eval $ac_link) 2>&5
14166 ac_status=$?
14167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14168 test $ac_status = 0; }; then
14169 eval libat_cv_have_at_fadd_4=yes
14170 else
14171 eval libat_cv_have_at_fadd_4=no
14173 else
14174 old_CFLAGS="$CFLAGS"
14175 # Compile unoptimized.
14176 CFLAGS="$CFLAGS -O0 -S"
14177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14178 (eval $ac_compile) 2>&5
14179 ac_status=$?
14180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14181 test $ac_status = 0; }; then
14182 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14183 eval libat_cv_have_at_fadd_4=no
14184 else
14185 eval libat_cv_have_at_fadd_4=yes
14187 else
14188 eval libat_cv_have_at_fadd_4=no
14190 CFLAGS="$old_CFLAGS"
14192 rm -f conftest*
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5
14196 $as_echo "$libat_cv_have_at_fadd_4" >&6; }
14199 yesno=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '`
14201 cat >>confdefs.h <<_ACEOF
14202 #define HAVE_ATOMIC_FETCH_ADD_4 $yesno
14203 _ACEOF
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5
14211 $as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; }
14212 if ${libat_cv_have_at_fadd_8+:} false; then :
14213 $as_echo_n "(cached) " >&6
14214 else
14216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14217 /* end confdefs.h. */
14220 main ()
14222 typedef int T __attribute__((mode(DI))); T *x, y;
14223 asm("" : "=g"(x), "=g"(y));
14224 __atomic_fetch_add (x, y, 0);
14225 __atomic_add_fetch (x, y, 0);
14227 return 0;
14229 _ACEOF
14230 if test x$atomic_builtins_link_tests = xyes; then
14231 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14232 (eval $ac_link) 2>&5
14233 ac_status=$?
14234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14235 test $ac_status = 0; }; then
14236 eval libat_cv_have_at_fadd_8=yes
14237 else
14238 eval libat_cv_have_at_fadd_8=no
14240 else
14241 old_CFLAGS="$CFLAGS"
14242 # Compile unoptimized.
14243 CFLAGS="$CFLAGS -O0 -S"
14244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14245 (eval $ac_compile) 2>&5
14246 ac_status=$?
14247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14248 test $ac_status = 0; }; then
14249 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14250 eval libat_cv_have_at_fadd_8=no
14251 else
14252 eval libat_cv_have_at_fadd_8=yes
14254 else
14255 eval libat_cv_have_at_fadd_8=no
14257 CFLAGS="$old_CFLAGS"
14259 rm -f conftest*
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5
14263 $as_echo "$libat_cv_have_at_fadd_8" >&6; }
14266 yesno=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '`
14268 cat >>confdefs.h <<_ACEOF
14269 #define HAVE_ATOMIC_FETCH_ADD_8 $yesno
14270 _ACEOF
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5
14278 $as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; }
14279 if ${libat_cv_have_at_fadd_16+:} false; then :
14280 $as_echo_n "(cached) " >&6
14281 else
14283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14284 /* end confdefs.h. */
14287 main ()
14289 typedef int T __attribute__((mode(TI))); T *x, y;
14290 asm("" : "=g"(x), "=g"(y));
14291 __atomic_fetch_add (x, y, 0);
14292 __atomic_add_fetch (x, y, 0);
14294 return 0;
14296 _ACEOF
14297 if test x$atomic_builtins_link_tests = xyes; then
14298 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14299 (eval $ac_link) 2>&5
14300 ac_status=$?
14301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14302 test $ac_status = 0; }; then
14303 eval libat_cv_have_at_fadd_16=yes
14304 else
14305 eval libat_cv_have_at_fadd_16=no
14307 else
14308 old_CFLAGS="$CFLAGS"
14309 # Compile unoptimized.
14310 CFLAGS="$CFLAGS -O0 -S"
14311 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14312 (eval $ac_compile) 2>&5
14313 ac_status=$?
14314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14315 test $ac_status = 0; }; then
14316 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14317 eval libat_cv_have_at_fadd_16=no
14318 else
14319 eval libat_cv_have_at_fadd_16=yes
14321 else
14322 eval libat_cv_have_at_fadd_16=no
14324 CFLAGS="$old_CFLAGS"
14326 rm -f conftest*
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5
14330 $as_echo "$libat_cv_have_at_fadd_16" >&6; }
14333 yesno=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '`
14335 cat >>confdefs.h <<_ACEOF
14336 #define HAVE_ATOMIC_FETCH_ADD_16 $yesno
14337 _ACEOF
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5
14346 $as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; }
14347 if ${libat_cv_have_at_fop_1+:} false; then :
14348 $as_echo_n "(cached) " >&6
14349 else
14351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h. */
14355 main ()
14357 typedef int T __attribute__((mode(QI))); T *x, y;
14358 asm("" : "=g"(x), "=g"(y));
14359 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14360 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14361 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14362 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14363 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14364 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14366 return 0;
14368 _ACEOF
14369 if test x$atomic_builtins_link_tests = xyes; then
14370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14371 (eval $ac_link) 2>&5
14372 ac_status=$?
14373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14374 test $ac_status = 0; }; then
14375 eval libat_cv_have_at_fop_1=yes
14376 else
14377 eval libat_cv_have_at_fop_1=no
14379 else
14380 old_CFLAGS="$CFLAGS"
14381 # Compile unoptimized.
14382 CFLAGS="$CFLAGS -O0 -S"
14383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14384 (eval $ac_compile) 2>&5
14385 ac_status=$?
14386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14387 test $ac_status = 0; }; then
14388 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14389 eval libat_cv_have_at_fop_1=no
14390 else
14391 eval libat_cv_have_at_fop_1=yes
14393 else
14394 eval libat_cv_have_at_fop_1=no
14396 CFLAGS="$old_CFLAGS"
14398 rm -f conftest*
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5
14402 $as_echo "$libat_cv_have_at_fop_1" >&6; }
14405 yesno=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '`
14407 cat >>confdefs.h <<_ACEOF
14408 #define HAVE_ATOMIC_FETCH_OP_1 $yesno
14409 _ACEOF
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5
14417 $as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; }
14418 if ${libat_cv_have_at_fop_2+:} false; then :
14419 $as_echo_n "(cached) " >&6
14420 else
14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14426 main ()
14428 typedef int T __attribute__((mode(HI))); T *x, y;
14429 asm("" : "=g"(x), "=g"(y));
14430 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14431 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14432 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14433 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14434 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14435 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14437 return 0;
14439 _ACEOF
14440 if test x$atomic_builtins_link_tests = xyes; then
14441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14442 (eval $ac_link) 2>&5
14443 ac_status=$?
14444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14445 test $ac_status = 0; }; then
14446 eval libat_cv_have_at_fop_2=yes
14447 else
14448 eval libat_cv_have_at_fop_2=no
14450 else
14451 old_CFLAGS="$CFLAGS"
14452 # Compile unoptimized.
14453 CFLAGS="$CFLAGS -O0 -S"
14454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14455 (eval $ac_compile) 2>&5
14456 ac_status=$?
14457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14458 test $ac_status = 0; }; then
14459 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14460 eval libat_cv_have_at_fop_2=no
14461 else
14462 eval libat_cv_have_at_fop_2=yes
14464 else
14465 eval libat_cv_have_at_fop_2=no
14467 CFLAGS="$old_CFLAGS"
14469 rm -f conftest*
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5
14473 $as_echo "$libat_cv_have_at_fop_2" >&6; }
14476 yesno=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '`
14478 cat >>confdefs.h <<_ACEOF
14479 #define HAVE_ATOMIC_FETCH_OP_2 $yesno
14480 _ACEOF
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5
14488 $as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; }
14489 if ${libat_cv_have_at_fop_4+:} false; then :
14490 $as_echo_n "(cached) " >&6
14491 else
14493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h. */
14497 main ()
14499 typedef int T __attribute__((mode(SI))); T *x, y;
14500 asm("" : "=g"(x), "=g"(y));
14501 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14502 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14503 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14504 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14505 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14506 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14508 return 0;
14510 _ACEOF
14511 if test x$atomic_builtins_link_tests = xyes; then
14512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14513 (eval $ac_link) 2>&5
14514 ac_status=$?
14515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14516 test $ac_status = 0; }; then
14517 eval libat_cv_have_at_fop_4=yes
14518 else
14519 eval libat_cv_have_at_fop_4=no
14521 else
14522 old_CFLAGS="$CFLAGS"
14523 # Compile unoptimized.
14524 CFLAGS="$CFLAGS -O0 -S"
14525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14526 (eval $ac_compile) 2>&5
14527 ac_status=$?
14528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14529 test $ac_status = 0; }; then
14530 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14531 eval libat_cv_have_at_fop_4=no
14532 else
14533 eval libat_cv_have_at_fop_4=yes
14535 else
14536 eval libat_cv_have_at_fop_4=no
14538 CFLAGS="$old_CFLAGS"
14540 rm -f conftest*
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5
14544 $as_echo "$libat_cv_have_at_fop_4" >&6; }
14547 yesno=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '`
14549 cat >>confdefs.h <<_ACEOF
14550 #define HAVE_ATOMIC_FETCH_OP_4 $yesno
14551 _ACEOF
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5
14559 $as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; }
14560 if ${libat_cv_have_at_fop_8+:} false; then :
14561 $as_echo_n "(cached) " >&6
14562 else
14564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14568 main ()
14570 typedef int T __attribute__((mode(DI))); T *x, y;
14571 asm("" : "=g"(x), "=g"(y));
14572 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14573 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14574 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14575 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14576 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14577 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14579 return 0;
14581 _ACEOF
14582 if test x$atomic_builtins_link_tests = xyes; then
14583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14584 (eval $ac_link) 2>&5
14585 ac_status=$?
14586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14587 test $ac_status = 0; }; then
14588 eval libat_cv_have_at_fop_8=yes
14589 else
14590 eval libat_cv_have_at_fop_8=no
14592 else
14593 old_CFLAGS="$CFLAGS"
14594 # Compile unoptimized.
14595 CFLAGS="$CFLAGS -O0 -S"
14596 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14597 (eval $ac_compile) 2>&5
14598 ac_status=$?
14599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14600 test $ac_status = 0; }; then
14601 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14602 eval libat_cv_have_at_fop_8=no
14603 else
14604 eval libat_cv_have_at_fop_8=yes
14606 else
14607 eval libat_cv_have_at_fop_8=no
14609 CFLAGS="$old_CFLAGS"
14611 rm -f conftest*
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5
14615 $as_echo "$libat_cv_have_at_fop_8" >&6; }
14618 yesno=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '`
14620 cat >>confdefs.h <<_ACEOF
14621 #define HAVE_ATOMIC_FETCH_OP_8 $yesno
14622 _ACEOF
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5
14630 $as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; }
14631 if ${libat_cv_have_at_fop_16+:} false; then :
14632 $as_echo_n "(cached) " >&6
14633 else
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636 /* end confdefs.h. */
14639 main ()
14641 typedef int T __attribute__((mode(TI))); T *x, y;
14642 asm("" : "=g"(x), "=g"(y));
14643 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14644 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14645 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14646 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14647 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14648 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14650 return 0;
14652 _ACEOF
14653 if test x$atomic_builtins_link_tests = xyes; then
14654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14655 (eval $ac_link) 2>&5
14656 ac_status=$?
14657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14658 test $ac_status = 0; }; then
14659 eval libat_cv_have_at_fop_16=yes
14660 else
14661 eval libat_cv_have_at_fop_16=no
14663 else
14664 old_CFLAGS="$CFLAGS"
14665 # Compile unoptimized.
14666 CFLAGS="$CFLAGS -O0 -S"
14667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14668 (eval $ac_compile) 2>&5
14669 ac_status=$?
14670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14671 test $ac_status = 0; }; then
14672 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14673 eval libat_cv_have_at_fop_16=no
14674 else
14675 eval libat_cv_have_at_fop_16=yes
14677 else
14678 eval libat_cv_have_at_fop_16=no
14680 CFLAGS="$old_CFLAGS"
14682 rm -f conftest*
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5
14686 $as_echo "$libat_cv_have_at_fop_16" >&6; }
14689 yesno=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '`
14691 cat >>confdefs.h <<_ACEOF
14692 #define HAVE_ATOMIC_FETCH_OP_16 $yesno
14693 _ACEOF
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14701 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14702 if ${ac_cv_c_bigendian+:} false; then :
14703 $as_echo_n "(cached) " >&6
14704 else
14705 ac_cv_c_bigendian=unknown
14706 # See if we're dealing with a universal compiler.
14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708 /* end confdefs.h. */
14709 #ifndef __APPLE_CC__
14710 not a universal capable compiler
14711 #endif
14712 typedef int dummy;
14714 _ACEOF
14715 if ac_fn_c_try_compile "$LINENO"; then :
14717 # Check for potential -arch flags. It is not universal unless
14718 # there are at least two -arch flags with different values.
14719 ac_arch=
14720 ac_prev=
14721 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14722 if test -n "$ac_prev"; then
14723 case $ac_word in
14724 i?86 | x86_64 | ppc | ppc64)
14725 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14726 ac_arch=$ac_word
14727 else
14728 ac_cv_c_bigendian=universal
14729 break
14732 esac
14733 ac_prev=
14734 elif test "x$ac_word" = "x-arch"; then
14735 ac_prev=arch
14737 done
14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740 if test $ac_cv_c_bigendian = unknown; then
14741 # See if sys/param.h defines the BYTE_ORDER macro.
14742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14743 /* end confdefs.h. */
14744 #include <sys/types.h>
14745 #include <sys/param.h>
14748 main ()
14750 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14751 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14752 && LITTLE_ENDIAN)
14753 bogus endian macros
14754 #endif
14757 return 0;
14759 _ACEOF
14760 if ac_fn_c_try_compile "$LINENO"; then :
14761 # It does; now see whether it defined to BIG_ENDIAN or not.
14762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763 /* end confdefs.h. */
14764 #include <sys/types.h>
14765 #include <sys/param.h>
14768 main ()
14770 #if BYTE_ORDER != BIG_ENDIAN
14771 not big endian
14772 #endif
14775 return 0;
14777 _ACEOF
14778 if ac_fn_c_try_compile "$LINENO"; then :
14779 ac_cv_c_bigendian=yes
14780 else
14781 ac_cv_c_bigendian=no
14783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 if test $ac_cv_c_bigendian = unknown; then
14788 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14790 /* end confdefs.h. */
14791 #include <limits.h>
14794 main ()
14796 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14797 bogus endian macros
14798 #endif
14801 return 0;
14803 _ACEOF
14804 if ac_fn_c_try_compile "$LINENO"; then :
14805 # It does; now see whether it defined to _BIG_ENDIAN or not.
14806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14807 /* end confdefs.h. */
14808 #include <limits.h>
14811 main ()
14813 #ifndef _BIG_ENDIAN
14814 not big endian
14815 #endif
14818 return 0;
14820 _ACEOF
14821 if ac_fn_c_try_compile "$LINENO"; then :
14822 ac_cv_c_bigendian=yes
14823 else
14824 ac_cv_c_bigendian=no
14826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 if test $ac_cv_c_bigendian = unknown; then
14831 # Compile a test program.
14832 if test "$cross_compiling" = yes; then :
14833 # Try to guess by grepping values from an object file.
14834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14835 /* end confdefs.h. */
14836 short int ascii_mm[] =
14837 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14838 short int ascii_ii[] =
14839 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14840 int use_ascii (int i) {
14841 return ascii_mm[i] + ascii_ii[i];
14843 short int ebcdic_ii[] =
14844 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14845 short int ebcdic_mm[] =
14846 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14847 int use_ebcdic (int i) {
14848 return ebcdic_mm[i] + ebcdic_ii[i];
14850 extern int foo;
14853 main ()
14855 return use_ascii (foo) == use_ebcdic (foo);
14857 return 0;
14859 _ACEOF
14860 if ac_fn_c_try_compile "$LINENO"; then :
14861 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14862 ac_cv_c_bigendian=yes
14864 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14865 if test "$ac_cv_c_bigendian" = unknown; then
14866 ac_cv_c_bigendian=no
14867 else
14868 # finding both strings is unlikely to happen, but who knows?
14869 ac_cv_c_bigendian=unknown
14873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14874 else
14875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876 /* end confdefs.h. */
14877 $ac_includes_default
14879 main ()
14882 /* Are we little or big endian? From Harbison&Steele. */
14883 union
14885 long int l;
14886 char c[sizeof (long int)];
14887 } u;
14888 u.l = 1;
14889 return u.c[sizeof (long int) - 1] == 1;
14892 return 0;
14894 _ACEOF
14895 if ac_fn_c_try_run "$LINENO"; then :
14896 ac_cv_c_bigendian=no
14897 else
14898 ac_cv_c_bigendian=yes
14900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14901 conftest.$ac_objext conftest.beam conftest.$ac_ext
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14907 $as_echo "$ac_cv_c_bigendian" >&6; }
14908 case $ac_cv_c_bigendian in #(
14909 yes)
14910 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14911 ;; #(
14913 ;; #(
14914 universal)
14916 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14918 ;; #(
14920 as_fn_error $? "unknown endianness
14921 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14922 esac
14924 # I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5
14929 $as_echo_n "checking for the word size... " >&6; }
14930 if ${libat_cv_wordsize+:} false; then :
14931 $as_echo_n "(cached) " >&6
14932 else
14933 if ac_fn_c_compute_int "$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then :
14935 else
14936 as_fn_error $? "Could not determine word size." "$LINENO" 5
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5
14941 $as_echo "$libat_cv_wordsize" >&6; }
14943 cat >>confdefs.h <<_ACEOF
14944 #define WORDSIZE $libat_cv_wordsize
14945 _ACEOF
14949 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14950 # In case the pthread.h system header is not found, this test will fail.
14951 case " $config_path " in
14952 *" posix "*)
14953 XPCFLAGS=""
14954 CFLAGS="$CFLAGS -pthread"
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14957 #include <pthread.h>
14958 void *g(void *d) { return NULL; }
14960 main ()
14962 pthread_t t; pthread_create(&t,NULL,g,NULL);
14964 return 0;
14966 _ACEOF
14967 if ac_fn_c_try_link "$LINENO"; then :
14968 XPCFLAGS=" -pthread"
14969 else
14970 CFLAGS="$save_CFLAGS $XCFLAGS" LIBS="-lpthread $LIBS"
14971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14972 /* end confdefs.h. */
14973 #include <pthread.h>
14974 void *g(void *d) { return NULL; }
14976 main ()
14978 pthread_t t; pthread_create(&t,NULL,g,NULL);
14980 return 0;
14982 _ACEOF
14983 if ac_fn_c_try_link "$LINENO"; then :
14985 else
14986 as_fn_error $? "Pthreads are required to build libatomic" "$LINENO" 5
14988 rm -f core conftest.err conftest.$ac_objext \
14989 conftest$ac_exeext conftest.$ac_ext
14991 rm -f core conftest.err conftest.$ac_objext \
14992 conftest$ac_exeext conftest.$ac_ext
14993 CFLAGS="$save_CFLAGS $XPCFLAGS"
14995 esac
14997 # See what sort of export controls are available.
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15000 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15001 if ${libat_cv_have_attribute_visibility+:} false; then :
15002 $as_echo_n "(cached) " >&6
15003 else
15005 save_CFLAGS="$CFLAGS"
15006 CFLAGS="$CFLAGS -Werror"
15007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h. */
15009 void __attribute__((visibility("hidden"))) foo(void) { }
15011 main ()
15015 return 0;
15017 _ACEOF
15018 if ac_fn_c_try_compile "$LINENO"; then :
15019 libat_cv_have_attribute_visibility=yes
15020 else
15021 libat_cv_have_attribute_visibility=no
15023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15024 CFLAGS="$save_CFLAGS"
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5
15027 $as_echo "$libat_cv_have_attribute_visibility" >&6; }
15028 if test $libat_cv_have_attribute_visibility = yes; then
15030 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15035 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15036 if ${libat_cv_have_attribute_dllexport+:} false; then :
15037 $as_echo_n "(cached) " >&6
15038 else
15040 save_CFLAGS="$CFLAGS"
15041 CFLAGS="$CFLAGS -Werror"
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15044 void __attribute__((dllexport)) foo(void) { }
15046 main ()
15050 return 0;
15052 _ACEOF
15053 if ac_fn_c_try_compile "$LINENO"; then :
15054 libat_cv_have_attribute_dllexport=yes
15055 else
15056 libat_cv_have_attribute_dllexport=no
15058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059 CFLAGS="$save_CFLAGS"
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5
15062 $as_echo "$libat_cv_have_attribute_dllexport" >&6; }
15063 if test $libat_cv_have_attribute_dllexport = yes; then
15065 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15070 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15071 if ${libat_cv_have_attribute_alias+:} false; then :
15072 $as_echo_n "(cached) " >&6
15073 else
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h. */
15078 void foo(void) { }
15079 extern void bar(void) __attribute__((alias("foo")));
15081 main ()
15083 bar();
15085 return 0;
15087 _ACEOF
15088 if ac_fn_c_try_link "$LINENO"; then :
15089 libat_cv_have_attribute_alias=yes
15090 else
15091 libat_cv_have_attribute_alias=no
15093 rm -f core conftest.err conftest.$ac_objext \
15094 conftest$ac_exeext conftest.$ac_ext
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5
15097 $as_echo "$libat_cv_have_attribute_alias" >&6; }
15098 if test $libat_cv_have_attribute_alias = yes; then
15100 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15103 if test x$try_ifunc = xyes; then
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5
15106 $as_echo_n "checking whether the target supports the ifunc attribute... " >&6; }
15107 if ${libat_cv_have_ifunc+:} false; then :
15108 $as_echo_n "(cached) " >&6
15109 else
15111 save_CFLAGS="$CFLAGS"
15112 CFLAGS="$CFLAGS -Werror"
15113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15114 /* end confdefs.h. */
15116 int foo_alt(void) { return 0; }
15117 typedef int F (void);
15118 F *foo_sel(void) { return foo_alt; }
15119 int foo(void) __attribute__((ifunc("foo_sel")));
15121 main ()
15123 return foo();
15125 return 0;
15127 _ACEOF
15128 if ac_fn_c_try_link "$LINENO"; then :
15129 libat_cv_have_ifunc=yes
15130 else
15131 libat_cv_have_ifunc=no
15133 rm -f core conftest.err conftest.$ac_objext \
15134 conftest$ac_exeext conftest.$ac_ext
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5
15137 $as_echo "$libat_cv_have_ifunc" >&6; }
15139 yesno=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '`
15141 cat >>confdefs.h <<_ACEOF
15142 #define HAVE_IFUNC $yesno
15143 _ACEOF
15149 # Check linker support.
15152 # Check whether --with-gnu-ld was given.
15153 if test "${with_gnu_ld+set}" = set; then :
15154 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15155 else
15156 with_gnu_ld=no
15159 ac_prog=ld
15160 if test "$GCC" = yes; then
15161 # Check if gcc -print-prog-name=ld gives a path.
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15163 $as_echo_n "checking for ld used by $CC... " >&6; }
15164 case $host in
15165 *-*-mingw*)
15166 # gcc leaves a trailing carriage return which upsets mingw
15167 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15169 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15170 esac
15171 case $ac_prog in
15172 # Accept absolute paths.
15173 [\\/]* | ?:[\\/]*)
15174 re_direlt='/[^/][^/]*/\.\./'
15175 # Canonicalize the pathname of ld
15176 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15177 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15178 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15179 done
15180 test -z "$LD" && LD="$ac_prog"
15183 # If it fails, then pretend we aren't using GCC.
15184 ac_prog=ld
15187 # If it is relative, then search for the first ld in PATH.
15188 with_gnu_ld=unknown
15190 esac
15191 elif test "$with_gnu_ld" = yes; then
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15193 $as_echo_n "checking for GNU ld... " >&6; }
15194 else
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15196 $as_echo_n "checking for non-GNU ld... " >&6; }
15198 if ${lt_cv_path_LD+:} false; then :
15199 $as_echo_n "(cached) " >&6
15200 else
15201 if test -z "$LD"; then
15202 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15203 for ac_dir in $PATH; do
15204 IFS="$lt_save_ifs"
15205 test -z "$ac_dir" && ac_dir=.
15206 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15207 lt_cv_path_LD="$ac_dir/$ac_prog"
15208 # Check to see if the program is GNU ld. I'd rather use --version,
15209 # but apparently some variants of GNU ld only accept -v.
15210 # Break only if it was the GNU/non-GNU ld that we prefer.
15211 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15212 *GNU* | *'with BFD'*)
15213 test "$with_gnu_ld" != no && break
15216 test "$with_gnu_ld" != yes && break
15218 esac
15220 done
15221 IFS="$lt_save_ifs"
15222 else
15223 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15227 LD="$lt_cv_path_LD"
15228 if test -n "$LD"; then
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15230 $as_echo "$LD" >&6; }
15231 else
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15233 $as_echo "no" >&6; }
15235 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15237 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15238 if ${lt_cv_prog_gnu_ld+:} false; then :
15239 $as_echo_n "(cached) " >&6
15240 else
15241 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15242 case `$LD -v 2>&1 </dev/null` in
15243 *GNU* | *'with BFD'*)
15244 lt_cv_prog_gnu_ld=yes
15247 lt_cv_prog_gnu_ld=no
15249 esac
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15252 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15253 with_gnu_ld=$lt_cv_prog_gnu_ld
15261 # If we're not using GNU ld, then there's no point in even trying these
15262 # tests. Check for that first. We should have already tested for gld
15263 # by now (in libtool), but require it now just to be safe...
15264 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
15265 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
15269 # The name set by libtool depends on the version of libtool. Shame on us
15270 # for depending on an impl detail, but c'est la vie. Older versions used
15271 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
15272 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
15273 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
15274 # set (hence we're using an older libtool), then set it.
15275 if test x${with_gnu_ld+set} != xset; then
15276 if test x${ac_cv_prog_gnu_ld+set} != xset; then
15277 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
15278 with_gnu_ld=no
15279 else
15280 with_gnu_ld=$ac_cv_prog_gnu_ld
15284 # Start by getting the version number. I think the libtool test already
15285 # does some of this, but throws away the result.
15286 libat_ld_is_gold=no
15287 libat_ld_is_mold=no
15288 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
15289 libat_ld_is_gold=yes
15290 elif $LD --version 2>/dev/null | grep 'mold' >/dev/null 2>&1; then
15291 libat_ld_is_mold=yes
15294 ldver=`$LD --version 2>/dev/null |
15295 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
15297 libat_gnu_ld_version=`echo $ldver | \
15298 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
15300 # Set --gc-sections.
15301 if test "$with_gnu_ld" = "notbroken"; then
15302 # GNU ld it is! Joy and bunny rabbits!
15304 # All these tests are for C++; save the language and the compiler flags.
15305 # Need to do this so that g++ won't try to link in libstdc++
15306 ac_test_CFLAGS="${CFLAGS+set}"
15307 ac_save_CFLAGS="$CFLAGS"
15308 CFLAGS='-x c++ -Wl,--gc-sections'
15310 # Check for -Wl,--gc-sections
15311 # XXX This test is broken at the moment, as symbols required for linking
15312 # are now in libsupc++ (not built yet). In addition, this test has
15313 # cored on solaris in the past. In addition, --gc-sections doesn't
15314 # really work at the moment (keeps on discarding used sections, first
15315 # .eh_frame and now some of the glibc sections for iconv).
15316 # Bzzzzt. Thanks for playing, maybe next time.
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
15318 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
15319 if test "$cross_compiling" = yes; then :
15320 ac_sectionLDflags=yes
15321 else
15322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15323 /* end confdefs.h. */
15325 int main(void)
15327 try { throw 1; }
15328 catch (...) { };
15329 return 0;
15332 _ACEOF
15333 if ac_fn_c_try_run "$LINENO"; then :
15334 ac_sectionLDflags=yes
15335 else
15336 ac_sectionLDflags=no
15338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15339 conftest.$ac_objext conftest.beam conftest.$ac_ext
15342 if test "$ac_test_CFLAGS" = set; then
15343 CFLAGS="$ac_save_CFLAGS"
15344 else
15345 # this is the suspicious part
15346 CFLAGS=''
15348 if test "$ac_sectionLDflags" = "yes"; then
15349 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
15352 $as_echo "$ac_sectionLDflags" >&6; }
15355 # Set linker optimization flags.
15356 if test x"$with_gnu_ld" = x"yes"; then
15357 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
15365 # Check whether --enable-symvers was given.
15366 if test "${enable_symvers+set}" = set; then :
15367 enableval=$enable_symvers;
15368 case "$enableval" in
15369 yes|no|gnu*|sun) ;;
15370 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
15371 esac
15373 else
15374 enable_symvers=yes
15379 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
15380 # don't know enough about $LD to do tricks...
15383 # Turn a 'yes' into a suitable default.
15384 if test x$enable_symvers = xyes ; then
15385 # FIXME The following test is too strict, in theory.
15386 if test $enable_shared = no || test "x$LD" = x; then
15387 enable_symvers=no
15388 else
15389 if test $with_gnu_ld = yes ; then
15390 enable_symvers=gnu
15391 else
15392 case ${target_os} in
15393 # Sun symbol versioning exists since Solaris 2.5.
15394 solaris2.[5-9]* | solaris2.1[0-9]*)
15395 enable_symvers=sun ;;
15397 enable_symvers=no ;;
15398 esac
15403 # Check if 'sun' was requested on non-Solaris 2 platforms.
15404 if test x$enable_symvers = xsun ; then
15405 case ${target_os} in
15406 solaris2*)
15407 # All fine.
15410 # Unlikely to work.
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
15412 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
15414 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15416 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15417 enable_symvers=no
15419 esac
15422 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
15423 if test $enable_symvers != no; then
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
15425 $as_echo_n "checking for shared libgcc... " >&6; }
15426 ac_save_CFLAGS="$CFLAGS"
15427 CFLAGS=' -lgcc_s'
15428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15429 /* end confdefs.h. */
15432 main ()
15434 return 0;
15436 return 0;
15438 _ACEOF
15439 if ac_fn_c_try_link "$LINENO"; then :
15440 libat_shared_libgcc=yes
15441 else
15442 libat_shared_libgcc=no
15444 rm -f core conftest.err conftest.$ac_objext \
15445 conftest$ac_exeext conftest.$ac_ext
15446 CFLAGS="$ac_save_CFLAGS"
15447 if test $libat_shared_libgcc = no; then
15448 cat > conftest.c <<EOF
15449 int main (void) { return 0; }
15451 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15452 -shared -shared-libgcc -o conftest.so \
15453 conftest.c -v 2>&1 >/dev/null \
15454 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15455 rm -f conftest.c conftest.so
15456 if test x${libat_libgcc_s_suffix+set} = xset; then
15457 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
15458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15459 /* end confdefs.h. */
15462 main ()
15464 return 0;
15466 return 0;
15468 _ACEOF
15469 if ac_fn_c_try_link "$LINENO"; then :
15470 libat_shared_libgcc=yes
15472 rm -f core conftest.err conftest.$ac_objext \
15473 conftest$ac_exeext conftest.$ac_ext
15474 CFLAGS="$ac_save_CFLAGS"
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
15478 $as_echo "$libat_shared_libgcc" >&6; }
15481 # For GNU ld, we need at least this version. The format is described in
15482 # LIBAT_CHECK_LINKER_FEATURES above.
15483 libat_min_gnu_ld_version=21400
15484 # XXXXXXXXXXX libat_gnu_ld_version=21390
15486 # Check to see if unspecified "yes" value can win, given results above.
15487 # Change "yes" into either "no" or a style name.
15488 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
15489 if test $with_gnu_ld = yes; then
15490 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
15491 enable_symvers=gnu
15492 elif test $libat_ld_is_gold = yes ; then
15493 enable_symvers=gnu
15494 elif test $libat_ld_is_mold = yes ; then
15495 enable_symvers=gnu
15496 else
15497 # The right tools, the right setup, but too old. Fallbacks?
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
15499 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15501 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15503 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
15505 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
15506 if test $libat_gnu_ld_version -ge 21200 ; then
15507 # Globbing fix is present, proper block support is not.
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15509 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15510 enable_symvers=no
15511 else
15512 # 2.11 or older.
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15514 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15515 enable_symvers=no
15518 elif test $enable_symvers = sun; then
15519 : All interesting versions of Sun ld support sun style symbol versioning.
15520 else
15521 # just fail for now
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15523 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15525 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15527 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15529 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15530 enable_symvers=no
15533 if test $enable_symvers = gnu; then
15535 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15539 if test $enable_symvers != no; then
15540 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
15541 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
15542 else
15543 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
15544 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
15547 if test $enable_symvers = gnu; then
15548 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15549 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15550 else
15551 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15552 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15555 if test $enable_symvers = sun; then
15556 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15557 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15558 else
15559 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15560 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15564 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15567 # Cleanup and exit.
15568 CFLAGS="$save_CFLAGS"
15569 cat >confcache <<\_ACEOF
15570 # This file is a shell script that caches the results of configure
15571 # tests run on this system so they can be shared between configure
15572 # scripts and configure runs, see configure's option --config-cache.
15573 # It is not useful on other systems. If it contains results you don't
15574 # want to keep, you may remove or edit it.
15576 # config.status only pays attention to the cache file if you give it
15577 # the --recheck option to rerun configure.
15579 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15580 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15581 # following values.
15583 _ACEOF
15585 # The following way of writing the cache mishandles newlines in values,
15586 # but we know of no workaround that is simple, portable, and efficient.
15587 # So, we kill variables containing newlines.
15588 # Ultrix sh set writes to stderr and can't be redirected directly,
15589 # and sets the high bit in the cache file unless we assign to the vars.
15591 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15592 eval ac_val=\$$ac_var
15593 case $ac_val in #(
15594 *${as_nl}*)
15595 case $ac_var in #(
15596 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15597 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15598 esac
15599 case $ac_var in #(
15600 _ | IFS | as_nl) ;; #(
15601 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15602 *) { eval $ac_var=; unset $ac_var;} ;;
15603 esac ;;
15604 esac
15605 done
15607 (set) 2>&1 |
15608 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15609 *${as_nl}ac_space=\ *)
15610 # `set' does not quote correctly, so add quotes: double-quote
15611 # substitution turns \\\\ into \\, and sed turns \\ into \.
15612 sed -n \
15613 "s/'/'\\\\''/g;
15614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15615 ;; #(
15617 # `set' quotes correctly as required by POSIX, so do not add quotes.
15618 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15620 esac |
15621 sort
15623 sed '
15624 /^ac_cv_env_/b end
15625 t clear
15626 :clear
15627 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15628 t end
15629 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15630 :end' >>confcache
15631 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15632 if test -w "$cache_file"; then
15633 if test "x$cache_file" != "x/dev/null"; then
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15635 $as_echo "$as_me: updating cache $cache_file" >&6;}
15636 if test ! -f "$cache_file" || test -h "$cache_file"; then
15637 cat confcache >"$cache_file"
15638 else
15639 case $cache_file in #(
15640 */* | ?:*)
15641 mv -f confcache "$cache_file"$$ &&
15642 mv -f "$cache_file"$$ "$cache_file" ;; #(
15644 mv -f confcache "$cache_file" ;;
15645 esac
15648 else
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15650 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15653 rm -f confcache
15655 # Check whether --enable-werror was given.
15656 if test "${enable_werror+set}" = set; then :
15657 enableval=$enable_werror;
15660 # Add -Wall -Werror if we are using GCC.
15661 if test "x$GCC" = "xyes"; then :
15662 XCFLAGS="$XCFLAGS -Wall"
15664 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
15665 XCFLAGS="$XCFLAGS -Werror"
15668 # Add CET specific flags if CET is enabled
15669 # Check whether --enable-cet was given.
15670 if test "${enable_cet+set}" = set; then :
15671 enableval=$enable_cet;
15672 case "$enableval" in
15673 yes|no|auto) ;;
15674 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
15675 esac
15677 else
15678 enable_cet=auto
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
15683 $as_echo_n "checking for CET support... " >&6; }
15685 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
15686 case "$host" in
15687 i[34567]86-*-linux* | x86_64-*-linux*)
15688 case "$enable_cet" in
15689 auto)
15690 # Check if target supports multi-byte NOPs
15691 # and if compiler and assembler support CET insn.
15692 cet_save_CFLAGS="$CFLAGS"
15693 CFLAGS="$CFLAGS -fcf-protection"
15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h. */
15698 main ()
15701 #if !defined(__SSE2__)
15702 #error target does not support multi-byte NOPs
15703 #else
15704 asm ("setssbsy");
15705 #endif
15708 return 0;
15710 _ACEOF
15711 if ac_fn_c_try_compile "$LINENO"; then :
15712 enable_cet=yes
15713 else
15714 enable_cet=no
15716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15717 CFLAGS="$cet_save_CFLAGS"
15719 yes)
15720 # Check if assembler supports CET.
15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h. */
15725 main ()
15727 asm ("setssbsy");
15729 return 0;
15731 _ACEOF
15732 if ac_fn_c_try_compile "$LINENO"; then :
15734 else
15735 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
15737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15739 esac
15742 enable_cet=no
15744 esac
15745 if test x$enable_cet = xyes; then
15746 CET_FLAGS="-fcf-protection -mshstk"
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15748 $as_echo "yes" >&6; }
15749 else
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15751 $as_echo "no" >&6; }
15754 XCFLAGS="$XCFLAGS $CET_FLAGS"
15756 XCFLAGS="$XCFLAGS $XPCFLAGS"
15764 # Conditionalize the makefile for this target machine.
15765 tmake_file_=
15766 for f in ${tmake_file}
15768 if test -f ${srcdir}/config/$f
15769 then
15770 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
15772 done
15773 tmake_file="${tmake_file_}"
15777 if test x$libat_cv_have_ifunc = xyes; then
15778 HAVE_IFUNC_TRUE=
15779 HAVE_IFUNC_FALSE='#'
15780 else
15781 HAVE_IFUNC_TRUE='#'
15782 HAVE_IFUNC_FALSE=
15785 if expr "$config_path" : ".* linux/aarch64 .*" > /dev/null; then
15786 ARCH_AARCH64_LINUX_TRUE=
15787 ARCH_AARCH64_LINUX_FALSE='#'
15788 else
15789 ARCH_AARCH64_LINUX_TRUE='#'
15790 ARCH_AARCH64_LINUX_FALSE=
15793 if expr "$config_path" : ".* linux/arm .*" > /dev/null; then
15794 ARCH_ARM_LINUX_TRUE=
15795 ARCH_ARM_LINUX_FALSE='#'
15796 else
15797 ARCH_ARM_LINUX_TRUE='#'
15798 ARCH_ARM_LINUX_FALSE=
15801 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x4; then
15802 ARCH_I386_TRUE=
15803 ARCH_I386_FALSE='#'
15804 else
15805 ARCH_I386_TRUE='#'
15806 ARCH_I386_FALSE=
15809 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x8; then
15810 ARCH_X86_64_TRUE=
15811 ARCH_X86_64_FALSE='#'
15812 else
15813 ARCH_X86_64_TRUE='#'
15814 ARCH_X86_64_FALSE=
15818 # Determine what GCC version number to use in filesystem paths.
15820 get_gcc_base_ver="cat"
15822 # Check whether --with-gcc-major-version-only was given.
15823 if test "${with_gcc_major_version_only+set}" = set; then :
15824 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
15825 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
15833 if test ${multilib} = yes; then
15834 multilib_arg="--enable-multilib"
15835 else
15836 multilib_arg=
15839 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15841 ac_config_files="$ac_config_files testsuite/libatomic-site-extra.exp"
15843 cat >confcache <<\_ACEOF
15844 # This file is a shell script that caches the results of configure
15845 # tests run on this system so they can be shared between configure
15846 # scripts and configure runs, see configure's option --config-cache.
15847 # It is not useful on other systems. If it contains results you don't
15848 # want to keep, you may remove or edit it.
15850 # config.status only pays attention to the cache file if you give it
15851 # the --recheck option to rerun configure.
15853 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15854 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15855 # following values.
15857 _ACEOF
15859 # The following way of writing the cache mishandles newlines in values,
15860 # but we know of no workaround that is simple, portable, and efficient.
15861 # So, we kill variables containing newlines.
15862 # Ultrix sh set writes to stderr and can't be redirected directly,
15863 # and sets the high bit in the cache file unless we assign to the vars.
15865 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15866 eval ac_val=\$$ac_var
15867 case $ac_val in #(
15868 *${as_nl}*)
15869 case $ac_var in #(
15870 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15872 esac
15873 case $ac_var in #(
15874 _ | IFS | as_nl) ;; #(
15875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15876 *) { eval $ac_var=; unset $ac_var;} ;;
15877 esac ;;
15878 esac
15879 done
15881 (set) 2>&1 |
15882 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15883 *${as_nl}ac_space=\ *)
15884 # `set' does not quote correctly, so add quotes: double-quote
15885 # substitution turns \\\\ into \\, and sed turns \\ into \.
15886 sed -n \
15887 "s/'/'\\\\''/g;
15888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15889 ;; #(
15891 # `set' quotes correctly as required by POSIX, so do not add quotes.
15892 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15894 esac |
15895 sort
15897 sed '
15898 /^ac_cv_env_/b end
15899 t clear
15900 :clear
15901 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15902 t end
15903 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15904 :end' >>confcache
15905 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15906 if test -w "$cache_file"; then
15907 if test "x$cache_file" != "x/dev/null"; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15909 $as_echo "$as_me: updating cache $cache_file" >&6;}
15910 if test ! -f "$cache_file" || test -h "$cache_file"; then
15911 cat confcache >"$cache_file"
15912 else
15913 case $cache_file in #(
15914 */* | ?:*)
15915 mv -f confcache "$cache_file"$$ &&
15916 mv -f "$cache_file"$$ "$cache_file" ;; #(
15918 mv -f confcache "$cache_file" ;;
15919 esac
15922 else
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15924 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15927 rm -f confcache
15929 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15930 # Let make expand exec_prefix.
15931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15933 DEFS=-DHAVE_CONFIG_H
15935 ac_libobjs=
15936 ac_ltlibobjs=
15938 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15939 # 1. Remove the extension, and $U if already installed.
15940 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15941 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15942 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15943 # will be set to the directory where LIBOBJS objects are built.
15944 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15945 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15946 done
15947 LIBOBJS=$ac_libobjs
15949 LTLIBOBJS=$ac_ltlibobjs
15952 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
15953 as_fn_error $? "conditional \"GENINSRC\" was never defined.
15954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15957 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15958 if test -n "$am_sleep_pid"; then
15959 # Hide warnings about reused PIDs.
15960 wait $am_sleep_pid 2>/dev/null
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15963 $as_echo "done" >&6; }
15964 if test -n "$EXEEXT"; then
15965 am__EXEEXT_TRUE=
15966 am__EXEEXT_FALSE='#'
15967 else
15968 am__EXEEXT_TRUE='#'
15969 am__EXEEXT_FALSE=
15972 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15973 as_fn_error $? "conditional \"AMDEP\" was never defined.
15974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15976 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15977 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15980 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15981 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15984 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15985 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15988 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
15989 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
15990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15993 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
15994 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
15995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15997 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
15998 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
15999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16001 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16002 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16005 if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then
16006 as_fn_error $? "conditional \"HAVE_IFUNC\" was never defined.
16007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16009 if test -z "${ARCH_AARCH64_LINUX_TRUE}" && test -z "${ARCH_AARCH64_LINUX_FALSE}"; then
16010 as_fn_error $? "conditional \"ARCH_AARCH64_LINUX\" was never defined.
16011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16013 if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then
16014 as_fn_error $? "conditional \"ARCH_ARM_LINUX\" was never defined.
16015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16017 if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then
16018 as_fn_error $? "conditional \"ARCH_I386\" was never defined.
16019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16021 if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
16022 as_fn_error $? "conditional \"ARCH_X86_64\" was never defined.
16023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16026 : "${CONFIG_STATUS=./config.status}"
16027 ac_write_fail=0
16028 ac_clean_files_save=$ac_clean_files
16029 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16031 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16032 as_write_fail=0
16033 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16034 #! $SHELL
16035 # Generated by $as_me.
16036 # Run this file to recreate the current configuration.
16037 # Compiler output produced by configure, useful for debugging
16038 # configure, is in config.log if it exists.
16040 debug=false
16041 ac_cs_recheck=false
16042 ac_cs_silent=false
16044 SHELL=\${CONFIG_SHELL-$SHELL}
16045 export SHELL
16046 _ASEOF
16047 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16048 ## -------------------- ##
16049 ## M4sh Initialization. ##
16050 ## -------------------- ##
16052 # Be more Bourne compatible
16053 DUALCASE=1; export DUALCASE # for MKS sh
16054 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16055 emulate sh
16056 NULLCMD=:
16057 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16058 # is contrary to our usage. Disable this feature.
16059 alias -g '${1+"$@"}'='"$@"'
16060 setopt NO_GLOB_SUBST
16061 else
16062 case `(set -o) 2>/dev/null` in #(
16063 *posix*) :
16064 set -o posix ;; #(
16065 *) :
16067 esac
16071 as_nl='
16073 export as_nl
16074 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16075 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16076 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16077 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16078 # Prefer a ksh shell builtin over an external printf program on Solaris,
16079 # but without wasting forks for bash or zsh.
16080 if test -z "$BASH_VERSION$ZSH_VERSION" \
16081 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16082 as_echo='print -r --'
16083 as_echo_n='print -rn --'
16084 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16085 as_echo='printf %s\n'
16086 as_echo_n='printf %s'
16087 else
16088 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16089 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16090 as_echo_n='/usr/ucb/echo -n'
16091 else
16092 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16093 as_echo_n_body='eval
16094 arg=$1;
16095 case $arg in #(
16096 *"$as_nl"*)
16097 expr "X$arg" : "X\\(.*\\)$as_nl";
16098 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16099 esac;
16100 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16102 export as_echo_n_body
16103 as_echo_n='sh -c $as_echo_n_body as_echo'
16105 export as_echo_body
16106 as_echo='sh -c $as_echo_body as_echo'
16109 # The user is always right.
16110 if test "${PATH_SEPARATOR+set}" != set; then
16111 PATH_SEPARATOR=:
16112 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16113 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16114 PATH_SEPARATOR=';'
16119 # IFS
16120 # We need space, tab and new line, in precisely that order. Quoting is
16121 # there to prevent editors from complaining about space-tab.
16122 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16123 # splitting by setting IFS to empty value.)
16124 IFS=" "" $as_nl"
16126 # Find who we are. Look in the path if we contain no directory separator.
16127 as_myself=
16128 case $0 in #((
16129 *[\\/]* ) as_myself=$0 ;;
16130 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16131 for as_dir in $PATH
16133 IFS=$as_save_IFS
16134 test -z "$as_dir" && as_dir=.
16135 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16136 done
16137 IFS=$as_save_IFS
16140 esac
16141 # We did not find ourselves, most probably we were run as `sh COMMAND'
16142 # in which case we are not to be found in the path.
16143 if test "x$as_myself" = x; then
16144 as_myself=$0
16146 if test ! -f "$as_myself"; then
16147 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16148 exit 1
16151 # Unset variables that we do not need and which cause bugs (e.g. in
16152 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16153 # suppresses any "Segmentation fault" message there. '((' could
16154 # trigger a bug in pdksh 5.2.14.
16155 for as_var in BASH_ENV ENV MAIL MAILPATH
16156 do eval test x\${$as_var+set} = xset \
16157 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16158 done
16159 PS1='$ '
16160 PS2='> '
16161 PS4='+ '
16163 # NLS nuisances.
16164 LC_ALL=C
16165 export LC_ALL
16166 LANGUAGE=C
16167 export LANGUAGE
16169 # CDPATH.
16170 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16173 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16174 # ----------------------------------------
16175 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16176 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16177 # script with STATUS, using 1 if that was 0.
16178 as_fn_error ()
16180 as_status=$1; test $as_status -eq 0 && as_status=1
16181 if test "$4"; then
16182 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16183 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16185 $as_echo "$as_me: error: $2" >&2
16186 as_fn_exit $as_status
16187 } # as_fn_error
16190 # as_fn_set_status STATUS
16191 # -----------------------
16192 # Set $? to STATUS, without forking.
16193 as_fn_set_status ()
16195 return $1
16196 } # as_fn_set_status
16198 # as_fn_exit STATUS
16199 # -----------------
16200 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16201 as_fn_exit ()
16203 set +e
16204 as_fn_set_status $1
16205 exit $1
16206 } # as_fn_exit
16208 # as_fn_unset VAR
16209 # ---------------
16210 # Portably unset VAR.
16211 as_fn_unset ()
16213 { eval $1=; unset $1;}
16215 as_unset=as_fn_unset
16216 # as_fn_append VAR VALUE
16217 # ----------------------
16218 # Append the text in VALUE to the end of the definition contained in VAR. Take
16219 # advantage of any shell optimizations that allow amortized linear growth over
16220 # repeated appends, instead of the typical quadratic growth present in naive
16221 # implementations.
16222 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16223 eval 'as_fn_append ()
16225 eval $1+=\$2
16227 else
16228 as_fn_append ()
16230 eval $1=\$$1\$2
16232 fi # as_fn_append
16234 # as_fn_arith ARG...
16235 # ------------------
16236 # Perform arithmetic evaluation on the ARGs, and store the result in the
16237 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16238 # must be portable across $(()) and expr.
16239 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16240 eval 'as_fn_arith ()
16242 as_val=$(( $* ))
16244 else
16245 as_fn_arith ()
16247 as_val=`expr "$@" || test $? -eq 1`
16249 fi # as_fn_arith
16252 if expr a : '\(a\)' >/dev/null 2>&1 &&
16253 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16254 as_expr=expr
16255 else
16256 as_expr=false
16259 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16260 as_basename=basename
16261 else
16262 as_basename=false
16265 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16266 as_dirname=dirname
16267 else
16268 as_dirname=false
16271 as_me=`$as_basename -- "$0" ||
16272 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16273 X"$0" : 'X\(//\)$' \| \
16274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16275 $as_echo X/"$0" |
16276 sed '/^.*\/\([^/][^/]*\)\/*$/{
16277 s//\1/
16280 /^X\/\(\/\/\)$/{
16281 s//\1/
16284 /^X\/\(\/\).*/{
16285 s//\1/
16288 s/.*/./; q'`
16290 # Avoid depending upon Character Ranges.
16291 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16292 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16293 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16294 as_cr_digits='0123456789'
16295 as_cr_alnum=$as_cr_Letters$as_cr_digits
16297 ECHO_C= ECHO_N= ECHO_T=
16298 case `echo -n x` in #(((((
16299 -n*)
16300 case `echo 'xy\c'` in
16301 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16302 xy) ECHO_C='\c';;
16303 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16304 ECHO_T=' ';;
16305 esac;;
16307 ECHO_N='-n';;
16308 esac
16310 rm -f conf$$ conf$$.exe conf$$.file
16311 if test -d conf$$.dir; then
16312 rm -f conf$$.dir/conf$$.file
16313 else
16314 rm -f conf$$.dir
16315 mkdir conf$$.dir 2>/dev/null
16317 if (echo >conf$$.file) 2>/dev/null; then
16318 if ln -s conf$$.file conf$$ 2>/dev/null; then
16319 as_ln_s='ln -s'
16320 # ... but there are two gotchas:
16321 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16322 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16323 # In both cases, we have to default to `cp -pR'.
16324 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16325 as_ln_s='cp -pR'
16326 elif ln conf$$.file conf$$ 2>/dev/null; then
16327 as_ln_s=ln
16328 else
16329 as_ln_s='cp -pR'
16331 else
16332 as_ln_s='cp -pR'
16334 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16335 rmdir conf$$.dir 2>/dev/null
16338 # as_fn_mkdir_p
16339 # -------------
16340 # Create "$as_dir" as a directory, including parents if necessary.
16341 as_fn_mkdir_p ()
16344 case $as_dir in #(
16345 -*) as_dir=./$as_dir;;
16346 esac
16347 test -d "$as_dir" || eval $as_mkdir_p || {
16348 as_dirs=
16349 while :; do
16350 case $as_dir in #(
16351 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16352 *) as_qdir=$as_dir;;
16353 esac
16354 as_dirs="'$as_qdir' $as_dirs"
16355 as_dir=`$as_dirname -- "$as_dir" ||
16356 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16357 X"$as_dir" : 'X\(//\)[^/]' \| \
16358 X"$as_dir" : 'X\(//\)$' \| \
16359 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16360 $as_echo X"$as_dir" |
16361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16362 s//\1/
16365 /^X\(\/\/\)[^/].*/{
16366 s//\1/
16369 /^X\(\/\/\)$/{
16370 s//\1/
16373 /^X\(\/\).*/{
16374 s//\1/
16377 s/.*/./; q'`
16378 test -d "$as_dir" && break
16379 done
16380 test -z "$as_dirs" || eval "mkdir $as_dirs"
16381 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16384 } # as_fn_mkdir_p
16385 if mkdir -p . 2>/dev/null; then
16386 as_mkdir_p='mkdir -p "$as_dir"'
16387 else
16388 test -d ./-p && rmdir ./-p
16389 as_mkdir_p=false
16393 # as_fn_executable_p FILE
16394 # -----------------------
16395 # Test if FILE is an executable regular file.
16396 as_fn_executable_p ()
16398 test -f "$1" && test -x "$1"
16399 } # as_fn_executable_p
16400 as_test_x='test -x'
16401 as_executable_p=as_fn_executable_p
16403 # Sed expression to map a string onto a valid CPP name.
16404 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16406 # Sed expression to map a string onto a valid variable name.
16407 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16410 exec 6>&1
16411 ## ----------------------------------- ##
16412 ## Main body of $CONFIG_STATUS script. ##
16413 ## ----------------------------------- ##
16414 _ASEOF
16415 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16418 # Save the log message, to keep $0 and so on meaningful, and to
16419 # report actual input values of CONFIG_FILES etc. instead of their
16420 # values after options handling.
16421 ac_log="
16422 This file was extended by GNU Atomic Library $as_me 1.0, which was
16423 generated by GNU Autoconf 2.69. Invocation command line was
16425 CONFIG_FILES = $CONFIG_FILES
16426 CONFIG_HEADERS = $CONFIG_HEADERS
16427 CONFIG_LINKS = $CONFIG_LINKS
16428 CONFIG_COMMANDS = $CONFIG_COMMANDS
16429 $ $0 $@
16431 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16434 _ACEOF
16436 case $ac_config_files in *"
16437 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16438 esac
16440 case $ac_config_headers in *"
16441 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16442 esac
16445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16446 # Files that config.status was made for.
16447 config_files="$ac_config_files"
16448 config_headers="$ac_config_headers"
16449 config_commands="$ac_config_commands"
16451 _ACEOF
16453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16454 ac_cs_usage="\
16455 \`$as_me' instantiates files and other configuration actions
16456 from templates according to the current configuration. Unless the files
16457 and actions are specified as TAGs, all are instantiated by default.
16459 Usage: $0 [OPTION]... [TAG]...
16461 -h, --help print this help, then exit
16462 -V, --version print version number and configuration settings, then exit
16463 --config print configuration, then exit
16464 -q, --quiet, --silent
16465 do not print progress messages
16466 -d, --debug don't remove temporary files
16467 --recheck update $as_me by reconfiguring in the same conditions
16468 --file=FILE[:TEMPLATE]
16469 instantiate the configuration file FILE
16470 --header=FILE[:TEMPLATE]
16471 instantiate the configuration header FILE
16473 Configuration files:
16474 $config_files
16476 Configuration headers:
16477 $config_headers
16479 Configuration commands:
16480 $config_commands
16482 Report bugs to the package provider.
16483 GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
16484 General help using GNU software: <http://www.gnu.org/gethelp/>."
16486 _ACEOF
16487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16488 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16489 ac_cs_version="\\
16490 GNU Atomic Library config.status 1.0
16491 configured by $0, generated by GNU Autoconf 2.69,
16492 with options \\"\$ac_cs_config\\"
16494 Copyright (C) 2012 Free Software Foundation, Inc.
16495 This config.status script is free software; the Free Software Foundation
16496 gives unlimited permission to copy, distribute and modify it."
16498 ac_pwd='$ac_pwd'
16499 srcdir='$srcdir'
16500 INSTALL='$INSTALL'
16501 MKDIR_P='$MKDIR_P'
16502 AWK='$AWK'
16503 test -n "\$AWK" || AWK=awk
16504 _ACEOF
16506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16507 # The default lists apply if the user does not specify any file.
16508 ac_need_defaults=:
16509 while test $# != 0
16511 case $1 in
16512 --*=?*)
16513 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16514 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16515 ac_shift=:
16517 --*=)
16518 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16519 ac_optarg=
16520 ac_shift=:
16523 ac_option=$1
16524 ac_optarg=$2
16525 ac_shift=shift
16527 esac
16529 case $ac_option in
16530 # Handling of the options.
16531 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16532 ac_cs_recheck=: ;;
16533 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16534 $as_echo "$ac_cs_version"; exit ;;
16535 --config | --confi | --conf | --con | --co | --c )
16536 $as_echo "$ac_cs_config"; exit ;;
16537 --debug | --debu | --deb | --de | --d | -d )
16538 debug=: ;;
16539 --file | --fil | --fi | --f )
16540 $ac_shift
16541 case $ac_optarg in
16542 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16543 '') as_fn_error $? "missing file argument" ;;
16544 esac
16545 as_fn_append CONFIG_FILES " '$ac_optarg'"
16546 ac_need_defaults=false;;
16547 --header | --heade | --head | --hea )
16548 $ac_shift
16549 case $ac_optarg in
16550 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16551 esac
16552 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16553 ac_need_defaults=false;;
16554 --he | --h)
16555 # Conflict between --help and --header
16556 as_fn_error $? "ambiguous option: \`$1'
16557 Try \`$0 --help' for more information.";;
16558 --help | --hel | -h )
16559 $as_echo "$ac_cs_usage"; exit ;;
16560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16561 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16562 ac_cs_silent=: ;;
16564 # This is an error.
16565 -*) as_fn_error $? "unrecognized option: \`$1'
16566 Try \`$0 --help' for more information." ;;
16568 *) as_fn_append ac_config_targets " $1"
16569 ac_need_defaults=false ;;
16571 esac
16572 shift
16573 done
16575 ac_configure_extra_args=
16577 if $ac_cs_silent; then
16578 exec 6>/dev/null
16579 ac_configure_extra_args="$ac_configure_extra_args --silent"
16582 _ACEOF
16583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16584 if \$ac_cs_recheck; then
16585 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16586 shift
16587 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16588 CONFIG_SHELL='$SHELL'
16589 export CONFIG_SHELL
16590 exec "\$@"
16593 _ACEOF
16594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16595 exec 5>>config.log
16597 echo
16598 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16599 ## Running $as_me. ##
16600 _ASBOX
16601 $as_echo "$ac_log"
16602 } >&5
16604 _ACEOF
16605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16607 # INIT-COMMANDS
16610 srcdir="$srcdir"
16611 host="$host"
16612 target="$target"
16613 with_multisubdir="$with_multisubdir"
16614 with_multisrctop="$with_multisrctop"
16615 with_target_subdir="$with_target_subdir"
16616 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16617 multi_basedir="$multi_basedir"
16618 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16619 CC="$CC"
16620 CXX="$CXX"
16621 GFORTRAN="$GFORTRAN"
16622 GDC="$GDC"
16623 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16626 # The HP-UX ksh and POSIX shell print the target directory to stdout
16627 # if CDPATH is set.
16628 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16630 sed_quote_subst='$sed_quote_subst'
16631 double_quote_subst='$double_quote_subst'
16632 delay_variable_subst='$delay_variable_subst'
16633 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16634 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16635 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16636 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16637 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16638 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16639 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16640 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16641 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16642 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16643 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16644 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16645 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16646 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16647 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16648 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16649 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16650 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16651 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16652 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16653 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16654 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16655 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16656 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16657 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16658 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16659 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16660 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16661 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16662 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16663 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16664 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16665 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16666 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16667 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16668 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16669 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16670 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16671 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16672 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16673 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16674 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16675 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16676 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16677 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16678 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16679 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16680 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16681 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"`'
16682 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16683 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16684 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16685 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16686 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16687 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16688 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16689 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16690 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16691 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16692 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16693 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16694 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16695 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16696 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16697 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16698 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16699 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16700 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16701 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16702 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16703 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16704 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16705 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16706 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16707 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16708 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16709 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16710 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16711 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16712 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16713 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16714 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16715 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16716 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16717 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16718 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16719 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16720 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16721 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16722 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16723 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16724 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16725 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16726 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16727 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16728 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16729 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16730 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16731 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16732 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16733 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16734 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16735 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16736 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16737 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16738 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16739 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16740 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16741 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16742 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16743 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16744 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16745 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16746 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16747 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16748 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16749 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16750 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16751 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16752 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16754 LTCC='$LTCC'
16755 LTCFLAGS='$LTCFLAGS'
16756 compiler='$compiler_DEFAULT'
16758 # A function that is used when there is no print builtin or printf.
16759 func_fallback_echo ()
16761 eval 'cat <<_LTECHO_EOF
16763 _LTECHO_EOF'
16766 # Quote evaled strings.
16767 for var in SHELL \
16768 ECHO \
16769 SED \
16770 GREP \
16771 EGREP \
16772 FGREP \
16773 LD \
16774 NM \
16775 LN_S \
16776 lt_SP2NL \
16777 lt_NL2SP \
16778 reload_flag \
16779 OBJDUMP \
16780 deplibs_check_method \
16781 file_magic_cmd \
16782 AR \
16783 AR_FLAGS \
16784 STRIP \
16785 RANLIB \
16786 CC \
16787 CFLAGS \
16788 compiler \
16789 lt_cv_sys_global_symbol_pipe \
16790 lt_cv_sys_global_symbol_to_cdecl \
16791 lt_cv_sys_global_symbol_to_c_name_address \
16792 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16793 lt_prog_compiler_no_builtin_flag \
16794 lt_prog_compiler_wl \
16795 lt_prog_compiler_pic \
16796 lt_prog_compiler_static \
16797 lt_cv_prog_compiler_c_o \
16798 need_locks \
16799 DSYMUTIL \
16800 NMEDIT \
16801 LIPO \
16802 OTOOL \
16803 OTOOL64 \
16804 shrext_cmds \
16805 export_dynamic_flag_spec \
16806 whole_archive_flag_spec \
16807 compiler_needs_object \
16808 with_gnu_ld \
16809 allow_undefined_flag \
16810 no_undefined_flag \
16811 hardcode_libdir_flag_spec \
16812 hardcode_libdir_flag_spec_ld \
16813 hardcode_libdir_separator \
16814 fix_srcfile_path \
16815 exclude_expsyms \
16816 include_expsyms \
16817 file_list_spec \
16818 variables_saved_for_relink \
16819 libname_spec \
16820 library_names_spec \
16821 soname_spec \
16822 install_override_mode \
16823 finish_eval \
16824 old_striplib \
16825 striplib; do
16826 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16827 *[\\\\\\\`\\"\\\$]*)
16828 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16831 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16833 esac
16834 done
16836 # Double-quote double-evaled strings.
16837 for var in reload_cmds \
16838 old_postinstall_cmds \
16839 old_postuninstall_cmds \
16840 old_archive_cmds \
16841 extract_expsyms_cmds \
16842 old_archive_from_new_cmds \
16843 old_archive_from_expsyms_cmds \
16844 archive_cmds \
16845 archive_expsym_cmds \
16846 module_cmds \
16847 module_expsym_cmds \
16848 export_symbols_cmds \
16849 prelink_cmds \
16850 postinstall_cmds \
16851 postuninstall_cmds \
16852 finish_cmds \
16853 sys_lib_search_path_spec \
16854 sys_lib_dlsearch_path_spec; do
16855 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16856 *[\\\\\\\`\\"\\\$]*)
16857 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16860 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16862 esac
16863 done
16865 ac_aux_dir='$ac_aux_dir'
16866 xsi_shell='$xsi_shell'
16867 lt_shell_append='$lt_shell_append'
16869 # See if we are running on zsh, and set the options which allow our
16870 # commands through without removal of \ escapes INIT.
16871 if test -n "\${ZSH_VERSION+set}" ; then
16872 setopt NO_GLOB_SUBST
16876 PACKAGE='$PACKAGE'
16877 VERSION='$VERSION'
16878 TIMESTAMP='$TIMESTAMP'
16879 RM='$RM'
16880 ofile='$ofile'
16885 GCC="$GCC"
16886 CC="$CC"
16887 acx_cv_header_stdint="$acx_cv_header_stdint"
16888 acx_cv_type_int8_t="$acx_cv_type_int8_t"
16889 acx_cv_type_int16_t="$acx_cv_type_int16_t"
16890 acx_cv_type_int32_t="$acx_cv_type_int32_t"
16891 acx_cv_type_int64_t="$acx_cv_type_int64_t"
16892 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16893 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16894 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16895 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16896 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16897 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16898 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16899 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16900 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16903 _ACEOF
16905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16907 # Handling of arguments.
16908 for ac_config_target in $ac_config_targets
16910 case $ac_config_target in
16911 "auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-config.h" ;;
16912 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16913 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16914 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16915 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
16916 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16917 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16918 "testsuite/libatomic-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libatomic-site-extra.exp" ;;
16920 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16921 esac
16922 done
16925 # If the user did not use the arguments to specify the items to instantiate,
16926 # then the envvar interface is used. Set only those that are not.
16927 # We use the long form for the default assignment because of an extremely
16928 # bizarre bug on SunOS 4.1.3.
16929 if $ac_need_defaults; then
16930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16931 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16932 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16935 # Have a temporary directory for convenience. Make it in the build tree
16936 # simply because there is no reason against having it here, and in addition,
16937 # creating and moving files from /tmp can sometimes cause problems.
16938 # Hook for its removal unless debugging.
16939 # Note that there is a small window in which the directory will not be cleaned:
16940 # after its creation but before its name has been assigned to `$tmp'.
16941 $debug ||
16943 tmp= ac_tmp=
16944 trap 'exit_status=$?
16945 : "${ac_tmp:=$tmp}"
16946 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16948 trap 'as_fn_exit 1' 1 2 13 15
16950 # Create a (secure) tmp directory for tmp files.
16953 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16954 test -d "$tmp"
16955 } ||
16957 tmp=./conf$$-$RANDOM
16958 (umask 077 && mkdir "$tmp")
16959 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16960 ac_tmp=$tmp
16962 # Set up the scripts for CONFIG_FILES section.
16963 # No need to generate them if there are no CONFIG_FILES.
16964 # This happens for instance with `./config.status config.h'.
16965 if test -n "$CONFIG_FILES"; then
16968 ac_cr=`echo X | tr X '\015'`
16969 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16970 # But we know of no other shell where ac_cr would be empty at this
16971 # point, so we can use a bashism as a fallback.
16972 if test "x$ac_cr" = x; then
16973 eval ac_cr=\$\'\\r\'
16975 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16976 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16977 ac_cs_awk_cr='\\r'
16978 else
16979 ac_cs_awk_cr=$ac_cr
16982 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16983 _ACEOF
16987 echo "cat >conf$$subs.awk <<_ACEOF" &&
16988 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16989 echo "_ACEOF"
16990 } >conf$$subs.sh ||
16991 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16992 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16993 ac_delim='%!_!# '
16994 for ac_last_try in false false false false false :; do
16995 . ./conf$$subs.sh ||
16996 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16998 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16999 if test $ac_delim_n = $ac_delim_num; then
17000 break
17001 elif $ac_last_try; then
17002 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17003 else
17004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17006 done
17007 rm -f conf$$subs.sh
17009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17010 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17011 _ACEOF
17012 sed -n '
17014 s/^/S["/; s/!.*/"]=/
17017 s/^[^!]*!//
17018 :repl
17019 t repl
17020 s/'"$ac_delim"'$//
17021 t delim
17024 s/\(.\{148\}\)..*/\1/
17025 t more1
17026 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17029 b repl
17030 :more1
17031 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17034 s/.\{148\}//
17035 t nl
17036 :delim
17038 s/\(.\{148\}\)..*/\1/
17039 t more2
17040 s/["\\]/\\&/g; s/^/"/; s/$/"/
17043 :more2
17044 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17047 s/.\{148\}//
17048 t delim
17049 ' <conf$$subs.awk | sed '
17050 /^[^""]/{
17052 s/\n//
17054 ' >>$CONFIG_STATUS || ac_write_fail=1
17055 rm -f conf$$subs.awk
17056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17057 _ACAWK
17058 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17059 for (key in S) S_is_set[key] = 1
17060 FS = "\a"
17064 line = $ 0
17065 nfields = split(line, field, "@")
17066 substed = 0
17067 len = length(field[1])
17068 for (i = 2; i < nfields; i++) {
17069 key = field[i]
17070 keylen = length(key)
17071 if (S_is_set[key]) {
17072 value = S[key]
17073 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17074 len += length(value) + length(field[++i])
17075 substed = 1
17076 } else
17077 len += 1 + keylen
17080 print line
17083 _ACAWK
17084 _ACEOF
17085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17086 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17087 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17088 else
17090 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17091 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17092 _ACEOF
17094 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17095 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17096 # trailing colons and then remove the whole line if VPATH becomes empty
17097 # (actually we leave an empty line to preserve line numbers).
17098 if test "x$srcdir" = x.; then
17099 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17101 s///
17102 s/^/:/
17103 s/[ ]*$/:/
17104 s/:\$(srcdir):/:/g
17105 s/:\${srcdir}:/:/g
17106 s/:@srcdir@:/:/g
17107 s/^:*//
17108 s/:*$//
17110 s/\(=[ ]*\).*/\1/
17112 s/\n//
17113 s/^[^=]*=[ ]*$//
17117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17118 fi # test -n "$CONFIG_FILES"
17120 # Set up the scripts for CONFIG_HEADERS section.
17121 # No need to generate them if there are no CONFIG_HEADERS.
17122 # This happens for instance with `./config.status Makefile'.
17123 if test -n "$CONFIG_HEADERS"; then
17124 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17125 BEGIN {
17126 _ACEOF
17128 # Transform confdefs.h into an awk script `defines.awk', embedded as
17129 # here-document in config.status, that substitutes the proper values into
17130 # config.h.in to produce config.h.
17132 # Create a delimiter string that does not exist in confdefs.h, to ease
17133 # handling of long lines.
17134 ac_delim='%!_!# '
17135 for ac_last_try in false false :; do
17136 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17137 if test -z "$ac_tt"; then
17138 break
17139 elif $ac_last_try; then
17140 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17141 else
17142 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17144 done
17146 # For the awk script, D is an array of macro values keyed by name,
17147 # likewise P contains macro parameters if any. Preserve backslash
17148 # newline sequences.
17150 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17151 sed -n '
17152 s/.\{148\}/&'"$ac_delim"'/g
17153 t rset
17154 :rset
17155 s/^[ ]*#[ ]*define[ ][ ]*/ /
17156 t def
17158 :def
17159 s/\\$//
17160 t bsnl
17161 s/["\\]/\\&/g
17162 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17163 D["\1"]=" \3"/p
17164 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17166 :bsnl
17167 s/["\\]/\\&/g
17168 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17169 D["\1"]=" \3\\\\\\n"\\/p
17170 t cont
17171 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17172 t cont
17174 :cont
17176 s/.\{148\}/&'"$ac_delim"'/g
17177 t clear
17178 :clear
17179 s/\\$//
17180 t bsnlc
17181 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17183 :bsnlc
17184 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17185 b cont
17186 ' <confdefs.h | sed '
17187 s/'"$ac_delim"'/"\\\
17188 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17191 for (key in D) D_is_set[key] = 1
17192 FS = "\a"
17194 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17195 line = \$ 0
17196 split(line, arg, " ")
17197 if (arg[1] == "#") {
17198 defundef = arg[2]
17199 mac1 = arg[3]
17200 } else {
17201 defundef = substr(arg[1], 2)
17202 mac1 = arg[2]
17204 split(mac1, mac2, "(") #)
17205 macro = mac2[1]
17206 prefix = substr(line, 1, index(line, defundef) - 1)
17207 if (D_is_set[macro]) {
17208 # Preserve the white space surrounding the "#".
17209 print prefix "define", macro P[macro] D[macro]
17210 next
17211 } else {
17212 # Replace #undef with comments. This is necessary, for example,
17213 # in the case of _POSIX_SOURCE, which is predefined and required
17214 # on some systems where configure will not decide to define it.
17215 if (defundef == "undef") {
17216 print "/*", prefix defundef, macro, "*/"
17217 next
17221 { print }
17222 _ACAWK
17223 _ACEOF
17224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17225 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17226 fi # test -n "$CONFIG_HEADERS"
17229 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17230 shift
17231 for ac_tag
17233 case $ac_tag in
17234 :[FHLC]) ac_mode=$ac_tag; continue;;
17235 esac
17236 case $ac_mode$ac_tag in
17237 :[FHL]*:*);;
17238 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17239 :[FH]-) ac_tag=-:-;;
17240 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17241 esac
17242 ac_save_IFS=$IFS
17243 IFS=:
17244 set x $ac_tag
17245 IFS=$ac_save_IFS
17246 shift
17247 ac_file=$1
17248 shift
17250 case $ac_mode in
17251 :L) ac_source=$1;;
17252 :[FH])
17253 ac_file_inputs=
17254 for ac_f
17256 case $ac_f in
17257 -) ac_f="$ac_tmp/stdin";;
17258 *) # Look for the file first in the build tree, then in the source tree
17259 # (if the path is not absolute). The absolute path cannot be DOS-style,
17260 # because $ac_f cannot contain `:'.
17261 test -f "$ac_f" ||
17262 case $ac_f in
17263 [\\/$]*) false;;
17264 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17265 esac ||
17266 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17267 esac
17268 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17269 as_fn_append ac_file_inputs " '$ac_f'"
17270 done
17272 # Let's still pretend it is `configure' which instantiates (i.e., don't
17273 # use $as_me), people would be surprised to read:
17274 # /* config.h. Generated by config.status. */
17275 configure_input='Generated from '`
17276 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17277 `' by configure.'
17278 if test x"$ac_file" != x-; then
17279 configure_input="$ac_file. $configure_input"
17280 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17281 $as_echo "$as_me: creating $ac_file" >&6;}
17283 # Neutralize special characters interpreted by sed in replacement strings.
17284 case $configure_input in #(
17285 *\&* | *\|* | *\\* )
17286 ac_sed_conf_input=`$as_echo "$configure_input" |
17287 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17288 *) ac_sed_conf_input=$configure_input;;
17289 esac
17291 case $ac_tag in
17292 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17293 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17294 esac
17296 esac
17298 ac_dir=`$as_dirname -- "$ac_file" ||
17299 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17300 X"$ac_file" : 'X\(//\)[^/]' \| \
17301 X"$ac_file" : 'X\(//\)$' \| \
17302 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17303 $as_echo X"$ac_file" |
17304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17305 s//\1/
17308 /^X\(\/\/\)[^/].*/{
17309 s//\1/
17312 /^X\(\/\/\)$/{
17313 s//\1/
17316 /^X\(\/\).*/{
17317 s//\1/
17320 s/.*/./; q'`
17321 as_dir="$ac_dir"; as_fn_mkdir_p
17322 ac_builddir=.
17324 case "$ac_dir" in
17325 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17327 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17328 # A ".." for each directory in $ac_dir_suffix.
17329 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17330 case $ac_top_builddir_sub in
17331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17333 esac ;;
17334 esac
17335 ac_abs_top_builddir=$ac_pwd
17336 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17337 # for backward compatibility:
17338 ac_top_builddir=$ac_top_build_prefix
17340 case $srcdir in
17341 .) # We are building in place.
17342 ac_srcdir=.
17343 ac_top_srcdir=$ac_top_builddir_sub
17344 ac_abs_top_srcdir=$ac_pwd ;;
17345 [\\/]* | ?:[\\/]* ) # Absolute name.
17346 ac_srcdir=$srcdir$ac_dir_suffix;
17347 ac_top_srcdir=$srcdir
17348 ac_abs_top_srcdir=$srcdir ;;
17349 *) # Relative name.
17350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17351 ac_top_srcdir=$ac_top_build_prefix$srcdir
17352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17353 esac
17354 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17357 case $ac_mode in
17360 # CONFIG_FILE
17363 case $INSTALL in
17364 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17365 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17366 esac
17367 ac_MKDIR_P=$MKDIR_P
17368 case $MKDIR_P in
17369 [\\/$]* | ?:[\\/]* ) ;;
17370 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17371 esac
17372 _ACEOF
17374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17375 # If the template does not know about datarootdir, expand it.
17376 # FIXME: This hack should be removed a few years after 2.60.
17377 ac_datarootdir_hack=; ac_datarootdir_seen=
17378 ac_sed_dataroot='
17379 /datarootdir/ {
17383 /@datadir@/p
17384 /@docdir@/p
17385 /@infodir@/p
17386 /@localedir@/p
17387 /@mandir@/p'
17388 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17389 *datarootdir*) ac_datarootdir_seen=yes;;
17390 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17392 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17393 _ACEOF
17394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17395 ac_datarootdir_hack='
17396 s&@datadir@&$datadir&g
17397 s&@docdir@&$docdir&g
17398 s&@infodir@&$infodir&g
17399 s&@localedir@&$localedir&g
17400 s&@mandir@&$mandir&g
17401 s&\\\${datarootdir}&$datarootdir&g' ;;
17402 esac
17403 _ACEOF
17405 # Neutralize VPATH when `$srcdir' = `.'.
17406 # Shell code in configure.ac might set extrasub.
17407 # FIXME: do we really want to maintain this feature?
17408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17409 ac_sed_extra="$ac_vpsub
17410 $extrasub
17411 _ACEOF
17412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17414 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17415 s|@configure_input@|$ac_sed_conf_input|;t t
17416 s&@top_builddir@&$ac_top_builddir_sub&;t t
17417 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17418 s&@srcdir@&$ac_srcdir&;t t
17419 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17420 s&@top_srcdir@&$ac_top_srcdir&;t t
17421 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17422 s&@builddir@&$ac_builddir&;t t
17423 s&@abs_builddir@&$ac_abs_builddir&;t t
17424 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17425 s&@INSTALL@&$ac_INSTALL&;t t
17426 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17427 $ac_datarootdir_hack
17429 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17430 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17432 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17433 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17434 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17435 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17437 which seems to be undefined. Please make sure it is defined" >&5
17438 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17439 which seems to be undefined. Please make sure it is defined" >&2;}
17441 rm -f "$ac_tmp/stdin"
17442 case $ac_file in
17443 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17444 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17445 esac \
17446 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17450 # CONFIG_HEADER
17452 if test x"$ac_file" != x-; then
17454 $as_echo "/* $configure_input */" \
17455 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17456 } >"$ac_tmp/config.h" \
17457 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17458 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17460 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17461 else
17462 rm -f "$ac_file"
17463 mv "$ac_tmp/config.h" "$ac_file" \
17464 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17466 else
17467 $as_echo "/* $configure_input */" \
17468 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17469 || as_fn_error $? "could not create -" "$LINENO" 5
17471 # Compute "$ac_file"'s index in $config_headers.
17472 _am_arg="$ac_file"
17473 _am_stamp_count=1
17474 for _am_header in $config_headers :; do
17475 case $_am_header in
17476 $_am_arg | $_am_arg:* )
17477 break ;;
17479 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17480 esac
17481 done
17482 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17483 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17484 X"$_am_arg" : 'X\(//\)[^/]' \| \
17485 X"$_am_arg" : 'X\(//\)$' \| \
17486 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17487 $as_echo X"$_am_arg" |
17488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17489 s//\1/
17492 /^X\(\/\/\)[^/].*/{
17493 s//\1/
17496 /^X\(\/\/\)$/{
17497 s//\1/
17500 /^X\(\/\).*/{
17501 s//\1/
17504 s/.*/./; q'`/stamp-h$_am_stamp_count
17507 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17508 $as_echo "$as_me: executing $ac_file commands" >&6;}
17510 esac
17513 case $ac_file$ac_mode in
17514 "default-1":C)
17515 # Only add multilib support code if we just rebuilt the top-level
17516 # Makefile.
17517 case " $CONFIG_FILES " in
17518 *" Makefile "*)
17519 ac_file=Makefile . ${multi_basedir}/config-ml.in
17521 esac ;;
17522 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17523 # Older Autoconf quotes --file arguments for eval, but not when files
17524 # are listed without --file. Let's play safe and only enable the eval
17525 # if we detect the quoting.
17526 case $CONFIG_FILES in
17527 *\'*) eval set x "$CONFIG_FILES" ;;
17528 *) set x $CONFIG_FILES ;;
17529 esac
17530 shift
17531 for mf
17533 # Strip MF so we end up with the name of the file.
17534 mf=`echo "$mf" | sed -e 's/:.*$//'`
17535 # Check whether this is an Automake generated Makefile or not.
17536 # We used to match only the files named 'Makefile.in', but
17537 # some people rename them; so instead we look at the file content.
17538 # Grep'ing the first line is not enough: some people post-process
17539 # each Makefile.in and add a new line on top of each file to say so.
17540 # Grep'ing the whole file is not good either: AIX grep has a line
17541 # limit of 2048, but all sed's we know have understand at least 4000.
17542 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17543 dirpart=`$as_dirname -- "$mf" ||
17544 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17545 X"$mf" : 'X\(//\)[^/]' \| \
17546 X"$mf" : 'X\(//\)$' \| \
17547 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17548 $as_echo X"$mf" |
17549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17550 s//\1/
17553 /^X\(\/\/\)[^/].*/{
17554 s//\1/
17557 /^X\(\/\/\)$/{
17558 s//\1/
17561 /^X\(\/\).*/{
17562 s//\1/
17565 s/.*/./; q'`
17566 else
17567 continue
17569 # Extract the definition of DEPDIR, am__include, and am__quote
17570 # from the Makefile without running 'make'.
17571 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17572 test -z "$DEPDIR" && continue
17573 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17574 test -z "$am__include" && continue
17575 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17576 # Find all dependency output files, they are included files with
17577 # $(DEPDIR) in their names. We invoke sed twice because it is the
17578 # simplest approach to changing $(DEPDIR) to its actual value in the
17579 # expansion.
17580 for file in `sed -n "
17581 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17582 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17583 # Make sure the directory exists.
17584 test -f "$dirpart/$file" && continue
17585 fdir=`$as_dirname -- "$file" ||
17586 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17587 X"$file" : 'X\(//\)[^/]' \| \
17588 X"$file" : 'X\(//\)$' \| \
17589 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17590 $as_echo X"$file" |
17591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17592 s//\1/
17595 /^X\(\/\/\)[^/].*/{
17596 s//\1/
17599 /^X\(\/\/\)$/{
17600 s//\1/
17603 /^X\(\/\).*/{
17604 s//\1/
17607 s/.*/./; q'`
17608 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17609 # echo "creating $dirpart/$file"
17610 echo '# dummy' > "$dirpart/$file"
17611 done
17612 done
17615 "libtool":C)
17617 # See if we are running on zsh, and set the options which allow our
17618 # commands through without removal of \ escapes.
17619 if test -n "${ZSH_VERSION+set}" ; then
17620 setopt NO_GLOB_SUBST
17623 cfgfile="${ofile}T"
17624 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17625 $RM "$cfgfile"
17627 cat <<_LT_EOF >> "$cfgfile"
17628 #! $SHELL
17630 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17631 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17632 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17633 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17635 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17636 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17637 # Written by Gordon Matzigkeit, 1996
17639 # This file is part of GNU Libtool.
17641 # GNU Libtool is free software; you can redistribute it and/or
17642 # modify it under the terms of the GNU General Public License as
17643 # published by the Free Software Foundation; either version 2 of
17644 # the License, or (at your option) any later version.
17646 # As a special exception to the GNU General Public License,
17647 # if you distribute this file as part of a program or library that
17648 # is built using GNU Libtool, you may include this file under the
17649 # same distribution terms that you use for the rest of that program.
17651 # GNU Libtool is distributed in the hope that it will be useful,
17652 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17653 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17654 # GNU General Public License for more details.
17656 # You should have received a copy of the GNU General Public License
17657 # along with GNU Libtool; see the file COPYING. If not, a copy
17658 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17659 # obtained by writing to the Free Software Foundation, Inc.,
17660 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17663 # The names of the tagged configurations supported by this script.
17664 available_tags=""
17666 # ### BEGIN LIBTOOL CONFIG
17668 # Which release of libtool.m4 was used?
17669 macro_version=$macro_version
17670 macro_revision=$macro_revision
17672 # Whether or not to build shared libraries.
17673 build_libtool_libs=$enable_shared
17675 # Whether or not to build static libraries.
17676 build_old_libs=$enable_static
17678 # What type of objects to build.
17679 pic_mode=$pic_mode
17681 # Whether or not to optimize for fast installation.
17682 fast_install=$enable_fast_install
17684 # Shell to use when invoking shell scripts.
17685 SHELL=$lt_SHELL
17687 # An echo program that protects backslashes.
17688 ECHO=$lt_ECHO
17690 # The host system.
17691 host_alias=$host_alias
17692 host=$host
17693 host_os=$host_os
17695 # The build system.
17696 build_alias=$build_alias
17697 build=$build
17698 build_os=$build_os
17700 # A sed program that does not truncate output.
17701 SED=$lt_SED
17703 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17704 Xsed="\$SED -e 1s/^X//"
17706 # A grep program that handles long lines.
17707 GREP=$lt_GREP
17709 # An ERE matcher.
17710 EGREP=$lt_EGREP
17712 # A literal string matcher.
17713 FGREP=$lt_FGREP
17715 # A BSD- or MS-compatible name lister.
17716 NM=$lt_NM
17718 # Whether we need soft or hard links.
17719 LN_S=$lt_LN_S
17721 # What is the maximum length of a command?
17722 max_cmd_len=$max_cmd_len
17724 # Object file suffix (normally "o").
17725 objext=$ac_objext
17727 # Executable file suffix (normally "").
17728 exeext=$exeext
17730 # whether the shell understands "unset".
17731 lt_unset=$lt_unset
17733 # turn spaces into newlines.
17734 SP2NL=$lt_lt_SP2NL
17736 # turn newlines into spaces.
17737 NL2SP=$lt_lt_NL2SP
17739 # An object symbol dumper.
17740 OBJDUMP=$lt_OBJDUMP
17742 # Method to check whether dependent libraries are shared objects.
17743 deplibs_check_method=$lt_deplibs_check_method
17745 # Command to use when deplibs_check_method == "file_magic".
17746 file_magic_cmd=$lt_file_magic_cmd
17748 # The archiver.
17749 AR=$lt_AR
17750 AR_FLAGS=$lt_AR_FLAGS
17752 # A symbol stripping program.
17753 STRIP=$lt_STRIP
17755 # Commands used to install an old-style archive.
17756 RANLIB=$lt_RANLIB
17757 old_postinstall_cmds=$lt_old_postinstall_cmds
17758 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17760 # Whether to use a lock for old archive extraction.
17761 lock_old_archive_extraction=$lock_old_archive_extraction
17763 # A C compiler.
17764 LTCC=$lt_CC
17766 # LTCC compiler flags.
17767 LTCFLAGS=$lt_CFLAGS
17769 # Take the output of nm and produce a listing of raw symbols and C names.
17770 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17772 # Transform the output of nm in a proper C declaration.
17773 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17775 # Transform the output of nm in a C name address pair.
17776 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17778 # Transform the output of nm in a C name address pair when lib prefix is needed.
17779 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17781 # The name of the directory that contains temporary libtool files.
17782 objdir=$objdir
17784 # Used to examine libraries when file_magic_cmd begins with "file".
17785 MAGIC_CMD=$MAGIC_CMD
17787 # Must we lock files when doing compilation?
17788 need_locks=$lt_need_locks
17790 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17791 DSYMUTIL=$lt_DSYMUTIL
17793 # Tool to change global to local symbols on Mac OS X.
17794 NMEDIT=$lt_NMEDIT
17796 # Tool to manipulate fat objects and archives on Mac OS X.
17797 LIPO=$lt_LIPO
17799 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17800 OTOOL=$lt_OTOOL
17802 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17803 OTOOL64=$lt_OTOOL64
17805 # Old archive suffix (normally "a").
17806 libext=$libext
17808 # Shared library suffix (normally ".so").
17809 shrext_cmds=$lt_shrext_cmds
17811 # The commands to extract the exported symbol list from a shared archive.
17812 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17814 # Variables whose values should be saved in libtool wrapper scripts and
17815 # restored at link time.
17816 variables_saved_for_relink=$lt_variables_saved_for_relink
17818 # Do we need the "lib" prefix for modules?
17819 need_lib_prefix=$need_lib_prefix
17821 # Do we need a version for libraries?
17822 need_version=$need_version
17824 # Library versioning type.
17825 version_type=$version_type
17827 # Shared library runtime path variable.
17828 runpath_var=$runpath_var
17830 # Shared library path variable.
17831 shlibpath_var=$shlibpath_var
17833 # Is shlibpath searched before the hard-coded library search path?
17834 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17836 # Format of library name prefix.
17837 libname_spec=$lt_libname_spec
17839 # List of archive names. First name is the real one, the rest are links.
17840 # The last name is the one that the linker finds with -lNAME
17841 library_names_spec=$lt_library_names_spec
17843 # The coded name of the library, if different from the real name.
17844 soname_spec=$lt_soname_spec
17846 # Permission mode override for installation of shared libraries.
17847 install_override_mode=$lt_install_override_mode
17849 # Command to use after installation of a shared archive.
17850 postinstall_cmds=$lt_postinstall_cmds
17852 # Command to use after uninstallation of a shared archive.
17853 postuninstall_cmds=$lt_postuninstall_cmds
17855 # Commands used to finish a libtool library installation in a directory.
17856 finish_cmds=$lt_finish_cmds
17858 # As "finish_cmds", except a single script fragment to be evaled but
17859 # not shown.
17860 finish_eval=$lt_finish_eval
17862 # Whether we should hardcode library paths into libraries.
17863 hardcode_into_libs=$hardcode_into_libs
17865 # Compile-time system search path for libraries.
17866 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17868 # Run-time system search path for libraries.
17869 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17871 # Whether dlopen is supported.
17872 dlopen_support=$enable_dlopen
17874 # Whether dlopen of programs is supported.
17875 dlopen_self=$enable_dlopen_self
17877 # Whether dlopen of statically linked programs is supported.
17878 dlopen_self_static=$enable_dlopen_self_static
17880 # Commands to strip libraries.
17881 old_striplib=$lt_old_striplib
17882 striplib=$lt_striplib
17885 # The linker used to build libraries.
17886 LD=$lt_LD
17888 # How to create reloadable object files.
17889 reload_flag=$lt_reload_flag
17890 reload_cmds=$lt_reload_cmds
17892 # Commands used to build an old-style archive.
17893 old_archive_cmds=$lt_old_archive_cmds
17895 # A language specific compiler.
17896 CC=$lt_compiler
17898 # Is the compiler the GNU compiler?
17899 with_gcc=$GCC
17901 # Compiler flag to turn off builtin functions.
17902 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17904 # How to pass a linker flag through the compiler.
17905 wl=$lt_lt_prog_compiler_wl
17907 # Additional compiler flags for building library objects.
17908 pic_flag=$lt_lt_prog_compiler_pic
17910 # Compiler flag to prevent dynamic linking.
17911 link_static_flag=$lt_lt_prog_compiler_static
17913 # Does compiler simultaneously support -c and -o options?
17914 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17916 # Whether or not to add -lc for building shared libraries.
17917 build_libtool_need_lc=$archive_cmds_need_lc
17919 # Whether or not to disallow shared libs when runtime libs are static.
17920 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17922 # Compiler flag to allow reflexive dlopens.
17923 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17925 # Compiler flag to generate shared objects directly from archives.
17926 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17928 # Whether the compiler copes with passing no objects directly.
17929 compiler_needs_object=$lt_compiler_needs_object
17931 # Create an old-style archive from a shared archive.
17932 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17934 # Create a temporary old-style archive to link instead of a shared archive.
17935 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17937 # Commands used to build a shared archive.
17938 archive_cmds=$lt_archive_cmds
17939 archive_expsym_cmds=$lt_archive_expsym_cmds
17941 # Commands used to build a loadable module if different from building
17942 # a shared archive.
17943 module_cmds=$lt_module_cmds
17944 module_expsym_cmds=$lt_module_expsym_cmds
17946 # Whether we are building with GNU ld or not.
17947 with_gnu_ld=$lt_with_gnu_ld
17949 # Flag that allows shared libraries with undefined symbols to be built.
17950 allow_undefined_flag=$lt_allow_undefined_flag
17952 # Flag that enforces no undefined symbols.
17953 no_undefined_flag=$lt_no_undefined_flag
17955 # Flag to hardcode \$libdir into a binary during linking.
17956 # This must work even if \$libdir does not exist
17957 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17959 # If ld is used when linking, flag to hardcode \$libdir into a binary
17960 # during linking. This must work even if \$libdir does not exist.
17961 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17963 # Whether we need a single "-rpath" flag with a separated argument.
17964 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17966 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17967 # DIR into the resulting binary.
17968 hardcode_direct=$hardcode_direct
17970 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17971 # DIR into the resulting binary and the resulting library dependency is
17972 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17973 # library is relocated.
17974 hardcode_direct_absolute=$hardcode_direct_absolute
17976 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17977 # into the resulting binary.
17978 hardcode_minus_L=$hardcode_minus_L
17980 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17981 # into the resulting binary.
17982 hardcode_shlibpath_var=$hardcode_shlibpath_var
17984 # Set to "yes" if building a shared library automatically hardcodes DIR
17985 # into the library and all subsequent libraries and executables linked
17986 # against it.
17987 hardcode_automatic=$hardcode_automatic
17989 # Set to yes if linker adds runtime paths of dependent libraries
17990 # to runtime path list.
17991 inherit_rpath=$inherit_rpath
17993 # Whether libtool must link a program against all its dependency libraries.
17994 link_all_deplibs=$link_all_deplibs
17996 # Fix the shell variable \$srcfile for the compiler.
17997 fix_srcfile_path=$lt_fix_srcfile_path
17999 # Set to "yes" if exported symbols are required.
18000 always_export_symbols=$always_export_symbols
18002 # The commands to list exported symbols.
18003 export_symbols_cmds=$lt_export_symbols_cmds
18005 # Symbols that should not be listed in the preloaded symbols.
18006 exclude_expsyms=$lt_exclude_expsyms
18008 # Symbols that must always be exported.
18009 include_expsyms=$lt_include_expsyms
18011 # Commands necessary for linking programs (against libraries) with templates.
18012 prelink_cmds=$lt_prelink_cmds
18014 # Specify filename containing input files.
18015 file_list_spec=$lt_file_list_spec
18017 # How to hardcode a shared library path into an executable.
18018 hardcode_action=$hardcode_action
18020 # ### END LIBTOOL CONFIG
18022 _LT_EOF
18024 case $host_os in
18025 aix3*)
18026 cat <<\_LT_EOF >> "$cfgfile"
18027 # AIX sometimes has problems with the GCC collect2 program. For some
18028 # reason, if we set the COLLECT_NAMES environment variable, the problems
18029 # vanish in a puff of smoke.
18030 if test "X${COLLECT_NAMES+set}" != Xset; then
18031 COLLECT_NAMES=
18032 export COLLECT_NAMES
18034 _LT_EOF
18036 esac
18039 ltmain="$ac_aux_dir/ltmain.sh"
18042 # We use sed instead of cat because bash on DJGPP gets confused if
18043 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18044 # text mode, it properly converts lines to CR/LF. This bash problem
18045 # is reportedly fixed, but why not run on old versions too?
18046 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18047 || (rm -f "$cfgfile"; exit 1)
18049 case $xsi_shell in
18050 yes)
18051 cat << \_LT_EOF >> "$cfgfile"
18053 # func_dirname file append nondir_replacement
18054 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18055 # otherwise set result to NONDIR_REPLACEMENT.
18056 func_dirname ()
18058 case ${1} in
18059 */*) func_dirname_result="${1%/*}${2}" ;;
18060 * ) func_dirname_result="${3}" ;;
18061 esac
18064 # func_basename file
18065 func_basename ()
18067 func_basename_result="${1##*/}"
18070 # func_dirname_and_basename file append nondir_replacement
18071 # perform func_basename and func_dirname in a single function
18072 # call:
18073 # dirname: Compute the dirname of FILE. If nonempty,
18074 # add APPEND to the result, otherwise set result
18075 # to NONDIR_REPLACEMENT.
18076 # value returned in "$func_dirname_result"
18077 # basename: Compute filename of FILE.
18078 # value retuned in "$func_basename_result"
18079 # Implementation must be kept synchronized with func_dirname
18080 # and func_basename. For efficiency, we do not delegate to
18081 # those functions but instead duplicate the functionality here.
18082 func_dirname_and_basename ()
18084 case ${1} in
18085 */*) func_dirname_result="${1%/*}${2}" ;;
18086 * ) func_dirname_result="${3}" ;;
18087 esac
18088 func_basename_result="${1##*/}"
18091 # func_stripname prefix suffix name
18092 # strip PREFIX and SUFFIX off of NAME.
18093 # PREFIX and SUFFIX must not contain globbing or regex special
18094 # characters, hashes, percent signs, but SUFFIX may contain a leading
18095 # dot (in which case that matches only a dot).
18096 func_stripname ()
18098 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18099 # positional parameters, so assign one to ordinary parameter first.
18100 func_stripname_result=${3}
18101 func_stripname_result=${func_stripname_result#"${1}"}
18102 func_stripname_result=${func_stripname_result%"${2}"}
18105 # func_opt_split
18106 func_opt_split ()
18108 func_opt_split_opt=${1%%=*}
18109 func_opt_split_arg=${1#*=}
18112 # func_lo2o object
18113 func_lo2o ()
18115 case ${1} in
18116 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18117 *) func_lo2o_result=${1} ;;
18118 esac
18121 # func_xform libobj-or-source
18122 func_xform ()
18124 func_xform_result=${1%.*}.lo
18127 # func_arith arithmetic-term...
18128 func_arith ()
18130 func_arith_result=$(( $* ))
18133 # func_len string
18134 # STRING may not start with a hyphen.
18135 func_len ()
18137 func_len_result=${#1}
18140 _LT_EOF
18142 *) # Bourne compatible functions.
18143 cat << \_LT_EOF >> "$cfgfile"
18145 # func_dirname file append nondir_replacement
18146 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18147 # otherwise set result to NONDIR_REPLACEMENT.
18148 func_dirname ()
18150 # Extract subdirectory from the argument.
18151 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18152 if test "X$func_dirname_result" = "X${1}"; then
18153 func_dirname_result="${3}"
18154 else
18155 func_dirname_result="$func_dirname_result${2}"
18159 # func_basename file
18160 func_basename ()
18162 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18166 # func_stripname prefix suffix name
18167 # strip PREFIX and SUFFIX off of NAME.
18168 # PREFIX and SUFFIX must not contain globbing or regex special
18169 # characters, hashes, percent signs, but SUFFIX may contain a leading
18170 # dot (in which case that matches only a dot).
18171 # func_strip_suffix prefix name
18172 func_stripname ()
18174 case ${2} in
18175 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18176 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18177 esac
18180 # sed scripts:
18181 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18182 my_sed_long_arg='1s/^-[^=]*=//'
18184 # func_opt_split
18185 func_opt_split ()
18187 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18188 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18191 # func_lo2o object
18192 func_lo2o ()
18194 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18197 # func_xform libobj-or-source
18198 func_xform ()
18200 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18203 # func_arith arithmetic-term...
18204 func_arith ()
18206 func_arith_result=`expr "$@"`
18209 # func_len string
18210 # STRING may not start with a hyphen.
18211 func_len ()
18213 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18216 _LT_EOF
18217 esac
18219 case $lt_shell_append in
18220 yes)
18221 cat << \_LT_EOF >> "$cfgfile"
18223 # func_append var value
18224 # Append VALUE to the end of shell variable VAR.
18225 func_append ()
18227 eval "$1+=\$2"
18229 _LT_EOF
18232 cat << \_LT_EOF >> "$cfgfile"
18234 # func_append var value
18235 # Append VALUE to the end of shell variable VAR.
18236 func_append ()
18238 eval "$1=\$$1\$2"
18241 _LT_EOF
18243 esac
18246 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18247 || (rm -f "$cfgfile"; exit 1)
18249 mv -f "$cfgfile" "$ofile" ||
18250 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18251 chmod +x "$ofile"
18254 "gstdint.h":C)
18255 if test "$GCC" = yes; then
18256 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18257 else
18258 echo "/* generated for $CC */" > tmp-stdint.h
18261 sed 's/^ *//' >> tmp-stdint.h <<EOF
18263 #ifndef GCC_GENERATED_STDINT_H
18264 #define GCC_GENERATED_STDINT_H 1
18266 #include <sys/types.h>
18269 if test "$acx_cv_header_stdint" != stdint.h; then
18270 echo "#include <stddef.h>" >> tmp-stdint.h
18272 if test "$acx_cv_header_stdint" != stddef.h; then
18273 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18276 sed 's/^ *//' >> tmp-stdint.h <<EOF
18277 /* glibc uses these symbols as guards to prevent redefinitions. */
18278 #ifdef __int8_t_defined
18279 #define _INT8_T
18280 #define _INT16_T
18281 #define _INT32_T
18282 #endif
18283 #ifdef __uint32_t_defined
18284 #define _UINT32_T
18285 #endif
18289 # ----------------- done header, emit basic int types -------------
18290 if test "$acx_cv_header_stdint" = stddef.h; then
18291 sed 's/^ *//' >> tmp-stdint.h <<EOF
18293 #ifndef _UINT8_T
18294 #define _UINT8_T
18295 #ifndef __uint8_t_defined
18296 #define __uint8_t_defined
18297 #ifndef uint8_t
18298 typedef unsigned $acx_cv_type_int8_t uint8_t;
18299 #endif
18300 #endif
18301 #endif
18303 #ifndef _UINT16_T
18304 #define _UINT16_T
18305 #ifndef __uint16_t_defined
18306 #define __uint16_t_defined
18307 #ifndef uint16_t
18308 typedef unsigned $acx_cv_type_int16_t uint16_t;
18309 #endif
18310 #endif
18311 #endif
18313 #ifndef _UINT32_T
18314 #define _UINT32_T
18315 #ifndef __uint32_t_defined
18316 #define __uint32_t_defined
18317 #ifndef uint32_t
18318 typedef unsigned $acx_cv_type_int32_t uint32_t;
18319 #endif
18320 #endif
18321 #endif
18323 #ifndef _INT8_T
18324 #define _INT8_T
18325 #ifndef __int8_t_defined
18326 #define __int8_t_defined
18327 #ifndef int8_t
18328 typedef $acx_cv_type_int8_t int8_t;
18329 #endif
18330 #endif
18331 #endif
18333 #ifndef _INT16_T
18334 #define _INT16_T
18335 #ifndef __int16_t_defined
18336 #define __int16_t_defined
18337 #ifndef int16_t
18338 typedef $acx_cv_type_int16_t int16_t;
18339 #endif
18340 #endif
18341 #endif
18343 #ifndef _INT32_T
18344 #define _INT32_T
18345 #ifndef __int32_t_defined
18346 #define __int32_t_defined
18347 #ifndef int32_t
18348 typedef $acx_cv_type_int32_t int32_t;
18349 #endif
18350 #endif
18351 #endif
18353 elif test "$ac_cv_type_u_int32_t" = yes; then
18354 sed 's/^ *//' >> tmp-stdint.h <<EOF
18356 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18357 #ifndef _INT8_T
18358 #define _INT8_T
18359 #endif
18360 #ifndef _INT16_T
18361 #define _INT16_T
18362 #endif
18363 #ifndef _INT32_T
18364 #define _INT32_T
18365 #endif
18367 #ifndef _UINT8_T
18368 #define _UINT8_T
18369 #ifndef __uint8_t_defined
18370 #define __uint8_t_defined
18371 #ifndef uint8_t
18372 typedef u_int8_t uint8_t;
18373 #endif
18374 #endif
18375 #endif
18377 #ifndef _UINT16_T
18378 #define _UINT16_T
18379 #ifndef __uint16_t_defined
18380 #define __uint16_t_defined
18381 #ifndef uint16_t
18382 typedef u_int16_t uint16_t;
18383 #endif
18384 #endif
18385 #endif
18387 #ifndef _UINT32_T
18388 #define _UINT32_T
18389 #ifndef __uint32_t_defined
18390 #define __uint32_t_defined
18391 #ifndef uint32_t
18392 typedef u_int32_t uint32_t;
18393 #endif
18394 #endif
18395 #endif
18397 else
18398 sed 's/^ *//' >> tmp-stdint.h <<EOF
18400 /* Some systems have guard macros to prevent redefinitions, define them. */
18401 #ifndef _INT8_T
18402 #define _INT8_T
18403 #endif
18404 #ifndef _INT16_T
18405 #define _INT16_T
18406 #endif
18407 #ifndef _INT32_T
18408 #define _INT32_T
18409 #endif
18410 #ifndef _UINT8_T
18411 #define _UINT8_T
18412 #endif
18413 #ifndef _UINT16_T
18414 #define _UINT16_T
18415 #endif
18416 #ifndef _UINT32_T
18417 #define _UINT32_T
18418 #endif
18422 # ------------- done basic int types, emit int64_t types ------------
18423 if test "$ac_cv_type_uint64_t" = yes; then
18424 sed 's/^ *//' >> tmp-stdint.h <<EOF
18426 /* system headers have good uint64_t and int64_t */
18427 #ifndef _INT64_T
18428 #define _INT64_T
18429 #endif
18430 #ifndef _UINT64_T
18431 #define _UINT64_T
18432 #endif
18434 elif test "$ac_cv_type_u_int64_t" = yes; then
18435 sed 's/^ *//' >> tmp-stdint.h <<EOF
18437 /* system headers have an u_int64_t (and int64_t) */
18438 #ifndef _INT64_T
18439 #define _INT64_T
18440 #endif
18441 #ifndef _UINT64_T
18442 #define _UINT64_T
18443 #ifndef __uint64_t_defined
18444 #define __uint64_t_defined
18445 #ifndef uint64_t
18446 typedef u_int64_t uint64_t;
18447 #endif
18448 #endif
18449 #endif
18451 elif test -n "$acx_cv_type_int64_t"; then
18452 sed 's/^ *//' >> tmp-stdint.h <<EOF
18454 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18455 #ifndef _INT64_T
18456 #define _INT64_T
18457 #ifndef int64_t
18458 typedef $acx_cv_type_int64_t int64_t;
18459 #endif
18460 #endif
18461 #ifndef _UINT64_T
18462 #define _UINT64_T
18463 #ifndef __uint64_t_defined
18464 #define __uint64_t_defined
18465 #ifndef uint64_t
18466 typedef unsigned $acx_cv_type_int64_t uint64_t;
18467 #endif
18468 #endif
18469 #endif
18471 else
18472 sed 's/^ *//' >> tmp-stdint.h <<EOF
18474 /* some common heuristics for int64_t, using compiler-specific tests */
18475 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18476 #ifndef _INT64_T
18477 #define _INT64_T
18478 #ifndef __int64_t_defined
18479 #ifndef int64_t
18480 typedef long long int64_t;
18481 #endif
18482 #endif
18483 #endif
18484 #ifndef _UINT64_T
18485 #define _UINT64_T
18486 #ifndef uint64_t
18487 typedef unsigned long long uint64_t;
18488 #endif
18489 #endif
18491 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18492 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18493 does not implement __extension__. But that compiler doesn't define
18494 __GNUC_MINOR__. */
18495 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18496 # define __extension__
18497 # endif
18499 # ifndef _INT64_T
18500 # define _INT64_T
18501 # ifndef int64_t
18502 __extension__ typedef long long int64_t;
18503 # endif
18504 # endif
18505 # ifndef _UINT64_T
18506 # define _UINT64_T
18507 # ifndef uint64_t
18508 __extension__ typedef unsigned long long uint64_t;
18509 # endif
18510 # endif
18512 #elif !defined __STRICT_ANSI__
18513 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18515 # ifndef _INT64_T
18516 # define _INT64_T
18517 # ifndef int64_t
18518 typedef __int64 int64_t;
18519 # endif
18520 # endif
18521 # ifndef _UINT64_T
18522 # define _UINT64_T
18523 # ifndef uint64_t
18524 typedef unsigned __int64 uint64_t;
18525 # endif
18526 # endif
18527 # endif /* compiler */
18529 #endif /* ANSI version */
18533 # ------------- done int64_t types, emit intptr types ------------
18534 if test "$ac_cv_type_uintptr_t" != yes; then
18535 sed 's/^ *//' >> tmp-stdint.h <<EOF
18537 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18538 #ifndef __uintptr_t_defined
18539 #ifndef uintptr_t
18540 typedef u$acx_cv_type_intptr_t uintptr_t;
18541 #endif
18542 #endif
18543 #ifndef __intptr_t_defined
18544 #ifndef intptr_t
18545 typedef $acx_cv_type_intptr_t intptr_t;
18546 #endif
18547 #endif
18551 # ------------- done intptr types, emit int_least types ------------
18552 if test "$ac_cv_type_int_least32_t" != yes; then
18553 sed 's/^ *//' >> tmp-stdint.h <<EOF
18555 /* Define int_least types */
18556 typedef int8_t int_least8_t;
18557 typedef int16_t int_least16_t;
18558 typedef int32_t int_least32_t;
18559 #ifdef _INT64_T
18560 typedef int64_t int_least64_t;
18561 #endif
18563 typedef uint8_t uint_least8_t;
18564 typedef uint16_t uint_least16_t;
18565 typedef uint32_t uint_least32_t;
18566 #ifdef _UINT64_T
18567 typedef uint64_t uint_least64_t;
18568 #endif
18572 # ------------- done intptr types, emit int_fast types ------------
18573 if test "$ac_cv_type_int_fast32_t" != yes; then
18574 sed 's/^ *//' >> tmp-stdint.h <<EOF
18576 /* Define int_fast types. short is often slow */
18577 typedef int8_t int_fast8_t;
18578 typedef int int_fast16_t;
18579 typedef int32_t int_fast32_t;
18580 #ifdef _INT64_T
18581 typedef int64_t int_fast64_t;
18582 #endif
18584 typedef uint8_t uint_fast8_t;
18585 typedef unsigned int uint_fast16_t;
18586 typedef uint32_t uint_fast32_t;
18587 #ifdef _UINT64_T
18588 typedef uint64_t uint_fast64_t;
18589 #endif
18593 if test "$ac_cv_type_uintmax_t" != yes; then
18594 sed 's/^ *//' >> tmp-stdint.h <<EOF
18596 /* Define intmax based on what we found */
18597 #ifndef intmax_t
18598 #ifdef _INT64_T
18599 typedef int64_t intmax_t;
18600 #else
18601 typedef long intmax_t;
18602 #endif
18603 #endif
18604 #ifndef uintmax_t
18605 #ifdef _UINT64_T
18606 typedef uint64_t uintmax_t;
18607 #else
18608 typedef unsigned long uintmax_t;
18609 #endif
18610 #endif
18614 sed 's/^ *//' >> tmp-stdint.h <<EOF
18616 #endif /* GCC_GENERATED_STDINT_H */
18619 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
18620 rm -f tmp-stdint.h
18621 else
18622 mv -f tmp-stdint.h gstdint.h
18627 esac
18628 done # for ac_tag
18631 as_fn_exit 0
18632 _ACEOF
18633 ac_clean_files=$ac_clean_files_save
18635 test $ac_write_fail = 0 ||
18636 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18639 # configure is writing to config.log, and then calls config.status.
18640 # config.status does its own redirection, appending to config.log.
18641 # Unfortunately, on DOS this fails, as config.log is still kept open
18642 # by configure, so config.status won't be able to write to it; its
18643 # output is simply discarded. So we exec the FD to /dev/null,
18644 # effectively closing config.log, so it can be properly (re)opened and
18645 # appended to by config.status. When coming back to configure, we
18646 # need to make the FD available again.
18647 if test "$no_create" != yes; then
18648 ac_cs_success=:
18649 ac_config_status_args=
18650 test "$silent" = yes &&
18651 ac_config_status_args="$ac_config_status_args --quiet"
18652 exec 5>/dev/null
18653 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18654 exec 5>>config.log
18655 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18656 # would make configure fail if this is the last instruction.
18657 $ac_cs_success || as_fn_exit 1
18659 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18661 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}