blob: bbcdd509e4eae5d20723931b3623da905a0b1cd9 [file] [log] [blame]
Han Shenb42cc222013-11-18 20:49:221#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64 for GNU Atomic Library 1.0.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
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## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
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"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if 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=';'
78 }
79fi
80
81
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.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183else
184 as_have_required=no
185fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190as_found=false
191for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206fi
207fi
208 done;;
209 esac
210 as_found=false
211done
212$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215fi; }
216IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell [email protected] about your system,
238$0: including any error possibly output before this
239$0: message. Then install a modern shell, or manually run
240$0: the script under such a shell if you do have one."
241 fi
242 exit 1
243fi
244fi
245fi
246SHELL=${CONFIG_SHELL-/bin/sh}
247export SHELL
248# Unset more variables known to interfere with behavior of common tools.
249CLICOLOR_FORCE= GREP_OPTIONS=
250unset CLICOLOR_FORCE GREP_OPTIONS
251
252## --------------------- ##
253## M4sh Shell Functions. ##
254## --------------------- ##
255# as_fn_unset VAR
256# ---------------
257# Portably unset VAR.
258as_fn_unset ()
259{
260 { eval $1=; unset $1;}
261}
262as_unset=as_fn_unset
263
264# as_fn_set_status STATUS
265# -----------------------
266# Set $? to STATUS, without forking.
267as_fn_set_status ()
268{
269 return $1
270} # as_fn_set_status
271
272# as_fn_exit STATUS
273# -----------------
274# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275as_fn_exit ()
276{
277 set +e
278 as_fn_set_status $1
279 exit $1
280} # as_fn_exit
281
282# as_fn_mkdir_p
283# -------------
284# Create "$as_dir" as a directory, including parents if necessary.
285as_fn_mkdir_p ()
286{
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304$as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328} # as_fn_mkdir_p
329# as_fn_append VAR VALUE
330# ----------------------
331# Append the text in VALUE to the end of the definition contained in VAR. Take
332# advantage of any shell optimizations that allow amortized linear growth over
333# repeated appends, instead of the typical quadratic growth present in naive
334# implementations.
335if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345fi # as_fn_append
346
347# as_fn_arith ARG...
348# ------------------
349# Perform arithmetic evaluation on the ARGs, and store the result in the
350# global $as_val. Take advantage of shells that can avoid forks. The arguments
351# must be portable across $(()) and expr.
352if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362fi # as_fn_arith
363
364
365# as_fn_error ERROR [LINENO LOG_FD]
366# ---------------------------------
367# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369# script with status $?, using 1 if that was 0.
370as_fn_error ()
371{
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379} # as_fn_error
380
381if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384else
385 as_expr=false
386fi
387
388if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390else
391 as_basename=false
392fi
393
394if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396else
397 as_dirname=false
398fi
399
400as_me=`$as_basename -- "$0" ||
401$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404$as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419# Avoid depending upon Character Ranges.
420as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423as_cr_digits='0123456789'
424as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456}
457
458ECHO_C= ECHO_N= ECHO_T=
459case `echo -n x` in #(((((
460-n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467*)
468 ECHO_N='-n';;
469esac
470
471rm -f conf$$ conf$$.exe conf$$.file
472if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477fi
478if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492else
493 as_ln_s='cp -p'
494fi
495rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496rmdir conf$$.dir 2>/dev/null
497
498if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503fi
504
505if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525fi
526as_executable_p=$as_test_x
527
528# Sed expression to map a string onto a valid CPP name.
529as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531# Sed expression to map a string onto a valid variable name.
532as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537exec 7<&0 </dev/null 6>&1
538
539# Name of the host.
540# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541# so uname gets run too.
542ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544#
545# Initializations.
546#
547ac_default_prefix=/usr/local
548ac_clean_files=
549ac_config_libobj_dir=.
550LIBOBJS=
551cross_compiling=no
552subdirs=
553MFLAGS=
554MAKEFLAGS=
555
556# Identity of this package.
557PACKAGE_NAME='GNU Atomic Library'
558PACKAGE_TARNAME='libatomic'
559PACKAGE_VERSION='1.0'
560PACKAGE_STRING='GNU Atomic Library 1.0'
561PACKAGE_BUGREPORT=''
562PACKAGE_URL='http://www.gnu.org/software/libatomic/'
563
564# Factoring default headers for most tests.
565ac_includes_default="\
566#include <stdio.h>
567#ifdef HAVE_SYS_TYPES_H
568# include <sys/types.h>
569#endif
570#ifdef HAVE_SYS_STAT_H
571# include <sys/stat.h>
572#endif
573#ifdef STDC_HEADERS
574# include <stdlib.h>
575# include <stddef.h>
576#else
577# ifdef HAVE_STDLIB_H
578# include <stdlib.h>
579# endif
580#endif
581#ifdef HAVE_STRING_H
582# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583# include <memory.h>
584# endif
585# include <string.h>
586#endif
587#ifdef HAVE_STRINGS_H
588# include <strings.h>
589#endif
590#ifdef HAVE_INTTYPES_H
591# include <inttypes.h>
592#endif
593#ifdef HAVE_STDINT_H
594# include <stdint.h>
595#endif
596#ifdef HAVE_UNISTD_H
597# include <unistd.h>
598#endif"
599
600ac_subst_vars='am__EXEEXT_FALSE
601am__EXEEXT_TRUE
602LTLIBOBJS
603LIBOBJS
604ARCH_X86_64_FALSE
605ARCH_X86_64_TRUE
606ARCH_I386_FALSE
607ARCH_I386_TRUE
608ARCH_ARM_LINUX_FALSE
609ARCH_ARM_LINUX_TRUE
610HAVE_IFUNC_FALSE
611HAVE_IFUNC_TRUE
612SIZES
613XLDFLAGS
614XCFLAGS
615config_path
616LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
617LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
618LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
619LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
620LIBAT_BUILD_VERSIONED_SHLIB_FALSE
621LIBAT_BUILD_VERSIONED_SHLIB_TRUE
622OPT_LDFLAGS
623SECTION_LDFLAGS
624libtool_VERSION
625MAINT
626MAINTAINER_MODE_FALSE
627MAINTAINER_MODE_TRUE
628enable_static
629enable_shared
630CPP
631OTOOL64
632OTOOL
633LIPO
634NMEDIT
635DSYMUTIL
636OBJDUMP
637LN_S
638ac_ct_DUMPBIN
639DUMPBIN
640LD
641FGREP
642EGREP
643GREP
644SED
645LIBTOOL
646PERL
647RANLIB
648NM
649AR
650am__fastdepCCAS_FALSE
651am__fastdepCCAS_TRUE
652CCASDEPMODE
653CCASFLAGS
654CCAS
655am__fastdepCC_FALSE
656am__fastdepCC_TRUE
657CCDEPMODE
658am__nodep
659AMDEPBACKSLASH
660AMDEP_FALSE
661AMDEP_TRUE
662am__quote
663am__include
664DEPDIR
665OBJEXT
666EXEEXT
667ac_ct_CC
668CPPFLAGS
669LDFLAGS
670CFLAGS
671CC
672toolexeclibdir
673toolexecdir
674multi_basedir
675am__untar
676am__tar
677AMTAR
678am__leading_dot
679SET_MAKE
680AWK
681mkdir_p
682MKDIR_P
683INSTALL_STRIP_PROGRAM
684STRIP
685install_sh
686MAKEINFO
687AUTOHEADER
688AUTOMAKE
689AUTOCONF
690ACLOCAL
691VERSION
692PACKAGE
693CYGPATH_W
694am__isrc
695INSTALL_DATA
696INSTALL_SCRIPT
697INSTALL_PROGRAM
698target_os
699target_vendor
700target_cpu
701target
702host_os
703host_vendor
704host_cpu
705host
706build_os
707build_vendor
708build_cpu
709build
710GENINSRC_FALSE
711GENINSRC_TRUE
712target_alias
713host_alias
714build_alias
715LIBS
716ECHO_T
717ECHO_N
718ECHO_C
719DEFS
720mandir
721localedir
722libdir
723psdir
724pdfdir
725dvidir
726htmldir
727infodir
728docdir
729oldincludedir
730includedir
731localstatedir
732sharedstatedir
733sysconfdir
734datadir
735datarootdir
736libexecdir
737sbindir
738bindir
739program_transform_name
740prefix
741exec_prefix
742PACKAGE_URL
743PACKAGE_BUGREPORT
744PACKAGE_STRING
745PACKAGE_VERSION
746PACKAGE_TARNAME
747PACKAGE_NAME
748PATH_SEPARATOR
749SHELL'
750ac_subst_files=''
751ac_user_opts='
752enable_option_checking
753enable_version_specific_runtime_libs
754enable_generated_files_in_srcdir
755enable_multilib
756enable_dependency_tracking
757enable_shared
758enable_static
759with_pic
760enable_fast_install
761with_gnu_ld
762enable_libtool_lock
763enable_maintainer_mode
764enable_symvers
765'
766 ac_precious_vars='build_alias
767host_alias
768target_alias
769CPP
770CPPFLAGS'
771
772
773# Initialize some variables set by options.
774ac_init_help=
775ac_init_version=false
776ac_unrecognized_opts=
777ac_unrecognized_sep=
778# The variables have the same names as the options, with
779# dashes changed to underlines.
780cache_file=/dev/null
781exec_prefix=NONE
782no_create=
783no_recursion=
784prefix=NONE
785program_prefix=NONE
786program_suffix=NONE
787program_transform_name=s,x,x,
788silent=
789site=
790srcdir=
791verbose=
792x_includes=NONE
793x_libraries=NONE
794
795# Installation directory options.
796# These are left unexpanded so users can "make install exec_prefix=/foo"
797# and all the variables that are supposed to be based on exec_prefix
798# by default will actually change.
799# Use braces instead of parens because sh, perl, etc. also accept them.
800# (The list follows the same order as the GNU Coding Standards.)
801bindir='${exec_prefix}/bin'
802sbindir='${exec_prefix}/sbin'
803libexecdir='${exec_prefix}/libexec'
804datarootdir='${prefix}/share'
805datadir='${datarootdir}'
806sysconfdir='${prefix}/etc'
807sharedstatedir='${prefix}/com'
808localstatedir='${prefix}/var'
809includedir='${prefix}/include'
810oldincludedir='/usr/include'
811docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
812infodir='${datarootdir}/info'
813htmldir='${docdir}'
814dvidir='${docdir}'
815pdfdir='${docdir}'
816psdir='${docdir}'
817libdir='${exec_prefix}/lib'
818localedir='${datarootdir}/locale'
819mandir='${datarootdir}/man'
820
821ac_prev=
822ac_dashdash=
823for ac_option
824do
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
828 ac_prev=
829 continue
830 fi
831
832 case $ac_option in
833 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *) ac_optarg=yes ;;
835 esac
836
837 # Accept the important Cygnus configure options, so we can diagnose typos.
838
839 case $ac_dashdash$ac_option in
840 --)
841 ac_dashdash=yes ;;
842
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
844 ac_prev=bindir ;;
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846 bindir=$ac_optarg ;;
847
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
852
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
859
860 --config-cache | -C)
861 cache_file=config.cache ;;
862
863 -datadir | --datadir | --datadi | --datad)
864 ac_prev=datadir ;;
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
867
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
874
875 -disable-* | --disable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
883 *"
884"enable_$ac_useropt"
885"*) ;;
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
888 esac
889 eval enable_$ac_useropt=no ;;
890
891 -docdir | --docdir | --docdi | --doc | --do)
892 ac_prev=docdir ;;
893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 docdir=$ac_optarg ;;
895
896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
897 ac_prev=dvidir ;;
898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 dvidir=$ac_optarg ;;
900
901 -enable-* | --enable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910"enable_$ac_useropt"
911"*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=\$ac_optarg ;;
916
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
925
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
928 with_gas=yes ;;
929
930 -help | --help | --hel | --he | -h)
931 ac_init_help=long ;;
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
936
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
941
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 ac_prev=htmldir ;;
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 | --ht=*)
946 htmldir=$ac_optarg ;;
947
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
954
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 ac_prev=infodir ;;
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
959
960 -libdir | --libdir | --libdi | --libd)
961 ac_prev=libdir ;;
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
963 libdir=$ac_optarg ;;
964
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
971
972 -localedir | --localedir | --localedi | --localed | --locale)
973 ac_prev=localedir ;;
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
976
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
983
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 ac_prev=mandir ;;
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
987 mandir=$ac_optarg ;;
988
989 -nfp | --nfp | --nf)
990 # Obsolete; use --without-fp.
991 with_fp=no ;;
992
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
995 no_create=yes ;;
996
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 no_recursion=yes ;;
1000
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1009
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 ac_prev=prefix ;;
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1014
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1021
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1028
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1045
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 ac_prev=pdfdir ;;
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1050
1051 -psdir | --psdir | --psdi | --psd | --ps)
1052 ac_prev=psdir ;;
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 psdir=$ac_optarg ;;
1055
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1058 silent=yes ;;
1059
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 ac_prev=sbindir ;;
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 | --sbi=* | --sb=*)
1064 sbindir=$ac_optarg ;;
1065
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1069 | --sha | --sh)
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 | --sha=* | --sh=*)
1075 sharedstatedir=$ac_optarg ;;
1076
1077 -site | --site | --sit)
1078 ac_prev=site ;;
1079 -site=* | --site=* | --sit=*)
1080 site=$ac_optarg ;;
1081
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 ac_prev=srcdir ;;
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1086
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1093
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1098
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 verbose=yes ;;
1101
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1104
1105 -with-* | --with-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114"with_$ac_useropt"
1115"*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1119 eval with_$ac_useropt=\$ac_optarg ;;
1120
1121 -without-* | --without-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130"with_$ac_useropt"
1131"*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=no ;;
1136
1137 --x)
1138 # Obsolete; use --with-x.
1139 with_x=yes ;;
1140
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1147
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1154
1155 -*) as_fn_error "unrecognized option: \`$ac_option'
1156Try \`$0 --help' for more information."
1157 ;;
1158
1159 *=*)
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' | [0-9]* | *[!_$as_cr_alnum]* )
1164 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1165 esac
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1168
1169 *)
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 ;;
1176
1177 esac
1178done
1179
1180if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error "missing argument to $ac_option"
1183fi
1184
1185if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1187 no) ;;
1188 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190 esac
1191fi
1192
1193# Check all directory arguments for consistency.
1194for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1198do
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1201 case $ac_val in
1202 */ )
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1205 esac
1206 # Be sure to have absolute directory names.
1207 case $ac_val in
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 esac
1211 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1212done
1213
1214# There might be people who depend on the old broken behavior: `$host'
1215# used to hold the argument of --host etc.
1216# FIXME: To remove some day.
1217build=$build_alias
1218host=$host_alias
1219target=$target_alias
1220
1221# FIXME: To remove some day.
1222if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226 If a cross compiler is detected then cross compile mode will be used." >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1228 cross_compiling=yes
1229 fi
1230fi
1231
1232ac_tool_prefix=
1233test -n "$host_alias" && ac_tool_prefix=$host_alias-
1234
1235test "$silent" = yes && exec 6>/dev/null
1236
1237
1238ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239ac_ls_di=`ls -di .` &&
1240ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 as_fn_error "working directory cannot be determined"
1242test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 as_fn_error "pwd does not report name of working directory"
1244
1245
1246# Find the source files, if location was not specified.
1247if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$as_myself" ||
1251$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255$as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257 s//\1/
1258 q
1259 }
1260 /^X\(\/\/\)[^/].*/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)$/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\).*/{
1269 s//\1/
1270 q
1271 }
1272 s/.*/./; q'`
1273 srcdir=$ac_confdir
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1275 srcdir=..
1276 fi
1277else
1278 ac_srcdir_defaulted=no
1279fi
1280if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1283fi
1284ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285ac_abs_confdir=`(
1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1287 pwd)`
1288# When building in place, set srcdir=.
1289if test "$ac_abs_confdir" = "$ac_pwd"; then
1290 srcdir=.
1291fi
1292# Remove unnecessary trailing slashes from srcdir.
1293# Double slashes in file names in object file debugging info
1294# mess up M-x gdb in Emacs.
1295case $srcdir in
1296*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297esac
1298for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1303done
1304
1305#
1306# Report the --help message.
1307#
1308if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1311 cat <<_ACEOF
1312\`configure' configures GNU Atomic Library 1.0 to adapt to many kinds of systems.
1313
1314Usage: $0 [OPTION]... [VAR=VALUE]...
1315
1316To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317VAR=VALUE. See below for descriptions of some of the useful variables.
1318
1319Defaults for the options are specified in brackets.
1320
1321Configuration:
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331
1332Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1336 [PREFIX]
1337
1338By default, \`make install' will install all the files in
1339\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341for instance \`--prefix=\$HOME'.
1342
1343For better control, use the options below.
1344
1345Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/libatomic]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1365_ACEOF
1366
1367 cat <<\_ACEOF
1368
1369Program names:
1370 --program-prefix=PREFIX prepend PREFIX to installed program names
1371 --program-suffix=SUFFIX append SUFFIX to installed program names
1372 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1373
1374System types:
1375 --build=BUILD configure for building on BUILD [guessed]
1376 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1377 --target=TARGET configure for building compilers for TARGET [HOST]
1378_ACEOF
1379fi
1380
1381if test -n "$ac_init_help"; then
1382 case $ac_init_help in
1383 short | recursive ) echo "Configuration of GNU Atomic Library 1.0:";;
1384 esac
1385 cat <<\_ACEOF
1386
1387Optional Features:
1388 --disable-option-checking ignore unrecognized --enable/--with options
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-version-specific-runtime-libs
1392 Specify that runtime libraries should be installed
1393 in a compiler-specific directory [default=no]
1394 --enable-generated-files-in-srcdir
1395 put copies of generated files in source dir intended
1396 for creating source tarballs for users without
1397 texinfo bison or flex. [default=no]
1398 --enable-multilib build many library versions (default)
1399 --disable-dependency-tracking speeds up one-time build
1400 --enable-dependency-tracking do not reject slow dependency extractors
1401 --enable-shared[=PKGS] build shared libraries [default=yes]
1402 --enable-static[=PKGS] build static libraries [default=yes]
1403 --enable-fast-install[=PKGS]
1404 optimize for fast installation [default=yes]
1405 --disable-libtool-lock avoid locking (might break parallel builds)
1406 --enable-maintainer-mode enable make rules and dependencies not useful
1407 (and sometimes confusing) to the casual installer
1408 --enable-symvers=STYLE enables symbol versioning of the shared library
1409 [default=yes]
1410
1411Optional Packages:
1412 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1413 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1414 --with-pic try to use only PIC/non-PIC objects [default=use
1415 both]
1416 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1417
1418Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 LIBS libraries to pass to the linker, e.g. -l<library>
1424 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1425 you have headers in a nonstandard directory <include dir>
1426 CCAS assembler compiler command (defaults to CC)
1427 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1428 CPP C preprocessor
1429
1430Use these variables to override the choices made by `configure' or to help
1431it to find libraries and programs with nonstandard names/locations.
1432
1433Report bugs to the package provider.
1434GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
1435General help using GNU software: <http://www.gnu.org/gethelp/>.
1436_ACEOF
1437ac_status=$?
1438fi
1439
1440if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445 continue
1446 ac_builddir=.
1447
1448case "$ac_dir" in
1449.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450*)
1451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 esac ;;
1458esac
1459ac_abs_top_builddir=$ac_pwd
1460ac_abs_builddir=$ac_pwd$ac_dir_suffix
1461# for backward compatibility:
1462ac_top_builddir=$ac_top_build_prefix
1463
1464case $srcdir in
1465 .) # We are building in place.
1466 ac_srcdir=.
1467 ac_top_srcdir=$ac_top_builddir_sub
1468 ac_abs_top_srcdir=$ac_pwd ;;
1469 [\\/]* | ?:[\\/]* ) # Absolute name.
1470 ac_srcdir=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir=$srcdir
1472 ac_abs_top_srcdir=$srcdir ;;
1473 *) # Relative name.
1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1477esac
1478ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1479
1480 cd "$ac_dir" || { ac_status=$?; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1483 echo &&
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1488 else
1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1490 fi || ac_status=$?
1491 cd "$ac_pwd" || { ac_status=$?; break; }
1492 done
1493fi
1494
1495test -n "$ac_init_help" && exit $ac_status
1496if $ac_init_version; then
1497 cat <<\_ACEOF
1498GNU Atomic Library configure 1.0
1499generated by GNU Autoconf 2.64
1500
1501Copyright (C) 2009 Free Software Foundation, Inc.
1502This configure script is free software; the Free Software Foundation
1503gives unlimited permission to copy, distribute and modify it.
1504_ACEOF
1505 exit
1506fi
1507
1508## ------------------------ ##
1509## Autoconf initialization. ##
1510## ------------------------ ##
1511
1512# ac_fn_c_try_compile LINENO
1513# --------------------------
1514# Try to compile conftest.$ac_ext, and return whether this succeeded.
1515ac_fn_c_try_compile ()
1516{
1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1518 rm -f conftest.$ac_objext
1519 if { { ac_try="$ac_compile"
1520case "(($ac_try" in
1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1522 *) ac_try_echo=$ac_try;;
1523esac
1524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1525$as_echo "$ac_try_echo"; } >&5
1526 (eval "$ac_compile") 2>conftest.err
1527 ac_status=$?
1528 if test -s conftest.err; then
1529 grep -v '^ *+' conftest.err >conftest.er1
1530 cat conftest.er1 >&5
1531 mv -f conftest.er1 conftest.err
1532 fi
1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1534 test $ac_status = 0; } && {
1535 test -z "$ac_c_werror_flag" ||
1536 test ! -s conftest.err
1537 } && test -s conftest.$ac_objext; then :
1538 ac_retval=0
1539else
1540 $as_echo "$as_me: failed program was:" >&5
1541sed 's/^/| /' conftest.$ac_ext >&5
1542
1543 ac_retval=1
1544fi
1545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1546 return $ac_retval
1547
1548} # ac_fn_c_try_compile
1549
1550# ac_fn_c_try_link LINENO
1551# -----------------------
1552# Try to link conftest.$ac_ext, and return whether this succeeded.
1553ac_fn_c_try_link ()
1554{
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext conftest$ac_exeext
1557 if { { ac_try="$ac_link"
1558case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561esac
1562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563$as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_link") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest$ac_exeext && {
1576 test "$cross_compiling" = yes ||
1577 $as_test_x conftest$ac_exeext
1578 }; then :
1579 ac_retval=0
1580else
1581 $as_echo "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585fi
1586 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1587 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1588 # interfere with the next link command; also delete a directory that is
1589 # left behind by Apple's compiler. We do this before executing the actions.
1590 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592 return $ac_retval
1593
1594} # ac_fn_c_try_link
1595
1596# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1597# -------------------------------------------------------
1598# Tests whether HEADER exists and can be compiled using the include files in
1599# INCLUDES, setting the cache variable VAR accordingly.
1600ac_fn_c_check_header_compile ()
1601{
1602 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1604$as_echo_n "checking for $2... " >&6; }
1605if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1606 $as_echo_n "(cached) " >&6
1607else
1608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1609/* end confdefs.h. */
1610$4
1611#include <$2>
1612_ACEOF
1613if ac_fn_c_try_compile "$LINENO"; then :
1614 eval "$3=yes"
1615else
1616 eval "$3=no"
1617fi
1618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1619fi
1620eval ac_res=\$$3
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622$as_echo "$ac_res" >&6; }
1623 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624
1625} # ac_fn_c_check_header_compile
1626
1627# ac_fn_c_try_cpp LINENO
1628# ----------------------
1629# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1630ac_fn_c_try_cpp ()
1631{
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 if { { ac_try="$ac_cpp conftest.$ac_ext"
1634case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } >/dev/null && {
1649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 }; then :
1652 ac_retval=0
1653else
1654 $as_echo "$as_me: failed program was:" >&5
1655sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658fi
1659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660 return $ac_retval
1661
1662} # ac_fn_c_try_cpp
1663
1664# ac_fn_c_try_run LINENO
1665# ----------------------
1666# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1667# that executables *can* be run.
1668ac_fn_c_try_run ()
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_link"
1672case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675esac
1676eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677$as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_link") 2>&5
1679 ac_status=$?
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1682 { { case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_try") 2>&5
1689 ac_status=$?
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; }; }; then :
1692 ac_retval=0
1693else
1694 $as_echo "$as_me: program exited with status $ac_status" >&5
1695 $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=$ac_status
1699fi
1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702 return $ac_retval
1703
1704} # ac_fn_c_try_run
1705
1706# ac_fn_c_check_func LINENO FUNC VAR
1707# ----------------------------------
1708# Tests whether FUNC exists, setting the cache variable VAR accordingly
1709ac_fn_c_check_func ()
1710{
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713$as_echo_n "checking for $2... " >&6; }
1714if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1715 $as_echo_n "(cached) " >&6
1716else
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718/* end confdefs.h. */
1719/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1721#define $2 innocuous_$2
1722
1723/* System header to define __stub macros and hopefully few prototypes,
1724 which can conflict with char $2 (); below.
1725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1726 <limits.h> exists even on freestanding compilers. */
1727
1728#ifdef __STDC__
1729# include <limits.h>
1730#else
1731# include <assert.h>
1732#endif
1733
1734#undef $2
1735
1736/* Override any GCC internal prototype to avoid an error.
1737 Use char because int might match the return type of a GCC
1738 builtin and then its argument prototype would still apply. */
1739#ifdef __cplusplus
1740extern "C"
1741#endif
1742char $2 ();
1743/* The GNU C library defines this for functions which it implements
1744 to always fail with ENOSYS. Some functions are actually named
1745 something starting with __ and the normal name is an alias. */
1746#if defined __stub_$2 || defined __stub___$2
1747choke me
1748#endif
1749
1750int
1751main ()
1752{
1753return $2 ();
1754 ;
1755 return 0;
1756}
1757_ACEOF
1758if ac_fn_c_try_link "$LINENO"; then :
1759 eval "$3=yes"
1760else
1761 eval "$3=no"
1762fi
1763rm -f core conftest.err conftest.$ac_objext \
1764 conftest$ac_exeext conftest.$ac_ext
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770
1771} # ac_fn_c_check_func
1772
1773# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1774# -------------------------------------------
1775# Tests whether TYPE exists after having included INCLUDES, setting cache
1776# variable VAR accordingly.
1777ac_fn_c_check_type ()
1778{
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781$as_echo_n "checking for $2... " >&6; }
1782if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1783 $as_echo_n "(cached) " >&6
1784else
1785 eval "$3=no"
1786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h. */
1788$4
1789int
1790main ()
1791{
1792if (sizeof ($2))
1793 return 0;
1794 ;
1795 return 0;
1796}
1797_ACEOF
1798if ac_fn_c_try_compile "$LINENO"; then :
1799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h. */
1801$4
1802int
1803main ()
1804{
1805if (sizeof (($2)))
1806 return 0;
1807 ;
1808 return 0;
1809}
1810_ACEOF
1811if ac_fn_c_try_compile "$LINENO"; then :
1812
1813else
1814 eval "$3=yes"
1815fi
1816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817fi
1818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819fi
1820eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822$as_echo "$ac_res" >&6; }
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824
1825} # ac_fn_c_check_type
1826
1827# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1828# --------------------------------------------
1829# Tries to find the compile-time value of EXPR in a program that includes
1830# INCLUDES, setting VAR accordingly. Returns whether the value could be
1831# computed
1832ac_fn_c_compute_int ()
1833{
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 if test "$cross_compiling" = yes; then
1836 # Depending upon the size, compute the lo and hi bounds.
1837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h. */
1839$4
1840int
1841main ()
1842{
1843static int test_array [1 - 2 * !(($2) >= 0)];
1844test_array [0] = 0
1845
1846 ;
1847 return 0;
1848}
1849_ACEOF
1850if ac_fn_c_try_compile "$LINENO"; then :
1851 ac_lo=0 ac_mid=0
1852 while :; do
1853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1854/* end confdefs.h. */
1855$4
1856int
1857main ()
1858{
1859static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1860test_array [0] = 0
1861
1862 ;
1863 return 0;
1864}
1865_ACEOF
1866if ac_fn_c_try_compile "$LINENO"; then :
1867 ac_hi=$ac_mid; break
1868else
1869 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1870 if test $ac_lo -le $ac_mid; then
1871 ac_lo= ac_hi=
1872 break
1873 fi
1874 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1875fi
1876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 done
1878else
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h. */
1881$4
1882int
1883main ()
1884{
1885static int test_array [1 - 2 * !(($2) < 0)];
1886test_array [0] = 0
1887
1888 ;
1889 return 0;
1890}
1891_ACEOF
1892if ac_fn_c_try_compile "$LINENO"; then :
1893 ac_hi=-1 ac_mid=-1
1894 while :; do
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896/* end confdefs.h. */
1897$4
1898int
1899main ()
1900{
1901static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1902test_array [0] = 0
1903
1904 ;
1905 return 0;
1906}
1907_ACEOF
1908if ac_fn_c_try_compile "$LINENO"; then :
1909 ac_lo=$ac_mid; break
1910else
1911 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1912 if test $ac_mid -le $ac_hi; then
1913 ac_lo= ac_hi=
1914 break
1915 fi
1916 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1917fi
1918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 done
1920else
1921 ac_lo= ac_hi=
1922fi
1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924fi
1925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926# Binary search between lo and hi bounds.
1927while test "x$ac_lo" != "x$ac_hi"; do
1928 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h. */
1931$4
1932int
1933main ()
1934{
1935static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1936test_array [0] = 0
1937
1938 ;
1939 return 0;
1940}
1941_ACEOF
1942if ac_fn_c_try_compile "$LINENO"; then :
1943 ac_hi=$ac_mid
1944else
1945 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1946fi
1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948done
1949case $ac_lo in #((
1950?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1951'') ac_retval=1 ;;
1952esac
1953 else
1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955/* end confdefs.h. */
1956$4
1957static long int longval () { return $2; }
1958static unsigned long int ulongval () { return $2; }
1959#include <stdio.h>
1960#include <stdlib.h>
1961int
1962main ()
1963{
1964
1965 FILE *f = fopen ("conftest.val", "w");
1966 if (! f)
1967 return 1;
1968 if (($2) < 0)
1969 {
1970 long int i = longval ();
1971 if (i != ($2))
1972 return 1;
1973 fprintf (f, "%ld", i);
1974 }
1975 else
1976 {
1977 unsigned long int i = ulongval ();
1978 if (i != ($2))
1979 return 1;
1980 fprintf (f, "%lu", i);
1981 }
1982 /* Do not output a trailing newline, as this causes \r\n confusion
1983 on some platforms. */
1984 return ferror (f) || fclose (f) != 0;
1985
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_run "$LINENO"; then :
1991 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1992else
1993 ac_retval=1
1994fi
1995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1996 conftest.$ac_objext conftest.beam conftest.$ac_ext
1997rm -f conftest.val
1998
1999 fi
2000 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2001 return $ac_retval
2002
2003} # ac_fn_c_compute_int
Luis Lozano2f9796c2014-09-12 21:35:082004
2005# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2006# -------------------------------------------------------
2007# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2008# the include files in INCLUDES and setting the cache variable VAR
2009# accordingly.
2010ac_fn_c_check_header_mongrel ()
2011{
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015$as_echo_n "checking for $2... " >&6; }
2016if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2017 $as_echo_n "(cached) " >&6
2018fi
2019eval ac_res=\$$3
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021$as_echo "$ac_res" >&6; }
2022else
2023 # Is the header compilable?
2024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2025$as_echo_n "checking $2 usability... " >&6; }
2026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027/* end confdefs.h. */
2028$4
2029#include <$2>
2030_ACEOF
2031if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_header_compiler=yes
2033else
2034 ac_header_compiler=no
2035fi
2036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2038$as_echo "$ac_header_compiler" >&6; }
2039
2040# Is the header present?
2041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2042$as_echo_n "checking $2 presence... " >&6; }
2043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044/* end confdefs.h. */
2045#include <$2>
2046_ACEOF
2047if ac_fn_c_try_cpp "$LINENO"; then :
2048 ac_header_preproc=yes
2049else
2050 ac_header_preproc=no
2051fi
2052rm -f conftest.err conftest.$ac_ext
2053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2054$as_echo "$ac_header_preproc" >&6; }
2055
2056# So? What about this header?
2057case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2058 yes:no: )
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2060$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2062$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063 ;;
2064 no:yes:* )
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2066$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2068$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2070$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2072$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2074$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2075 ;;
2076esac
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2078$as_echo_n "checking for $2... " >&6; }
2079if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2080 $as_echo_n "(cached) " >&6
2081else
2082 eval "$3=\$ac_header_compiler"
2083fi
2084eval ac_res=\$$3
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086$as_echo "$ac_res" >&6; }
2087fi
2088 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2089
2090} # ac_fn_c_check_header_mongrel
Han Shenb42cc222013-11-18 20:49:222091cat >config.log <<_ACEOF
2092This file contains any messages produced by compilers while
2093running configure, to aid debugging if configure makes a mistake.
2094
2095It was created by GNU Atomic Library $as_me 1.0, which was
2096generated by GNU Autoconf 2.64. Invocation command line was
2097
2098 $ $0 $@
2099
2100_ACEOF
2101exec 5>>config.log
2102{
2103cat <<_ASUNAME
2104## --------- ##
2105## Platform. ##
2106## --------- ##
2107
2108hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2109uname -m = `(uname -m) 2>/dev/null || echo unknown`
2110uname -r = `(uname -r) 2>/dev/null || echo unknown`
2111uname -s = `(uname -s) 2>/dev/null || echo unknown`
2112uname -v = `(uname -v) 2>/dev/null || echo unknown`
2113
2114/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2115/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2116
2117/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2118/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2119/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2120/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2121/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2122/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2123/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2124
2125_ASUNAME
2126
2127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128for as_dir in $PATH
2129do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 $as_echo "PATH: $as_dir"
2133 done
2134IFS=$as_save_IFS
2135
2136} >&5
2137
2138cat >&5 <<_ACEOF
2139
2140
2141## ----------- ##
2142## Core tests. ##
2143## ----------- ##
2144
2145_ACEOF
2146
2147
2148# Keep a trace of the command line.
2149# Strip out --no-create and --no-recursion so they do not pile up.
2150# Strip out --silent because we don't want to record it for future runs.
2151# Also quote any args containing shell meta-characters.
2152# Make two passes to allow for proper duplicate-argument suppression.
2153ac_configure_args=
2154ac_configure_args0=
2155ac_configure_args1=
2156ac_must_keep_next=false
2157for ac_pass in 1 2
2158do
2159 for ac_arg
2160 do
2161 case $ac_arg in
2162 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2164 | -silent | --silent | --silen | --sile | --sil)
2165 continue ;;
2166 *\'*)
2167 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2168 esac
2169 case $ac_pass in
2170 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2171 2)
2172 as_fn_append ac_configure_args1 " '$ac_arg'"
2173 if test $ac_must_keep_next = true; then
2174 ac_must_keep_next=false # Got value, back to normal.
2175 else
2176 case $ac_arg in
2177 *=* | --config-cache | -C | -disable-* | --disable-* \
2178 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2179 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2180 | -with-* | --with-* | -without-* | --without-* | --x)
2181 case "$ac_configure_args0 " in
2182 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2183 esac
2184 ;;
2185 -* ) ac_must_keep_next=true ;;
2186 esac
2187 fi
2188 as_fn_append ac_configure_args " '$ac_arg'"
2189 ;;
2190 esac
2191 done
2192done
2193{ ac_configure_args0=; unset ac_configure_args0;}
2194{ ac_configure_args1=; unset ac_configure_args1;}
2195
2196# When interrupted or exit'd, cleanup temporary files, and complete
2197# config.log. We remove comments because anyway the quotes in there
2198# would cause problems or look ugly.
2199# WARNING: Use '\'' to represent an apostrophe within the trap.
2200# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2201trap 'exit_status=$?
2202 # Save into config.log some information that might help in debugging.
2203 {
2204 echo
2205
2206 cat <<\_ASBOX
2207## ---------------- ##
2208## Cache variables. ##
2209## ---------------- ##
2210_ASBOX
2211 echo
2212 # The following way of writing the cache mishandles newlines in values,
2213(
2214 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2215 eval ac_val=\$$ac_var
2216 case $ac_val in #(
2217 *${as_nl}*)
2218 case $ac_var in #(
2219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2220$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2221 esac
2222 case $ac_var in #(
2223 _ | IFS | as_nl) ;; #(
2224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2225 *) { eval $ac_var=; unset $ac_var;} ;;
2226 esac ;;
2227 esac
2228 done
2229 (set) 2>&1 |
2230 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2231 *${as_nl}ac_space=\ *)
2232 sed -n \
2233 "s/'\''/'\''\\\\'\'''\''/g;
2234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2235 ;; #(
2236 *)
2237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2238 ;;
2239 esac |
2240 sort
2241)
2242 echo
2243
2244 cat <<\_ASBOX
2245## ----------------- ##
2246## Output variables. ##
2247## ----------------- ##
2248_ASBOX
2249 echo
2250 for ac_var in $ac_subst_vars
2251 do
2252 eval ac_val=\$$ac_var
2253 case $ac_val in
2254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255 esac
2256 $as_echo "$ac_var='\''$ac_val'\''"
2257 done | sort
2258 echo
2259
2260 if test -n "$ac_subst_files"; then
2261 cat <<\_ASBOX
2262## ------------------- ##
2263## File substitutions. ##
2264## ------------------- ##
2265_ASBOX
2266 echo
2267 for ac_var in $ac_subst_files
2268 do
2269 eval ac_val=\$$ac_var
2270 case $ac_val in
2271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272 esac
2273 $as_echo "$ac_var='\''$ac_val'\''"
2274 done | sort
2275 echo
2276 fi
2277
2278 if test -s confdefs.h; then
2279 cat <<\_ASBOX
2280## ----------- ##
2281## confdefs.h. ##
2282## ----------- ##
2283_ASBOX
2284 echo
2285 cat confdefs.h
2286 echo
2287 fi
2288 test "$ac_signal" != 0 &&
2289 $as_echo "$as_me: caught signal $ac_signal"
2290 $as_echo "$as_me: exit $exit_status"
2291 } >&5
2292 rm -f core *.core core.conftest.* &&
2293 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2294 exit $exit_status
2295' 0
2296for ac_signal in 1 2 13 15; do
2297 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2298done
2299ac_signal=0
2300
2301# confdefs.h avoids OS command line length limits that DEFS can exceed.
2302rm -f -r conftest* confdefs.h
2303
2304$as_echo "/* confdefs.h */" > confdefs.h
2305
2306# Predefined preprocessor variables.
2307
2308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE_NAME "$PACKAGE_NAME"
2310_ACEOF
2311
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2314_ACEOF
2315
2316cat >>confdefs.h <<_ACEOF
2317#define PACKAGE_VERSION "$PACKAGE_VERSION"
2318_ACEOF
2319
2320cat >>confdefs.h <<_ACEOF
2321#define PACKAGE_STRING "$PACKAGE_STRING"
2322_ACEOF
2323
2324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2326_ACEOF
2327
2328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_URL "$PACKAGE_URL"
2330_ACEOF
2331
2332
2333# Let the site file select an alternate cache file if it wants to.
2334# Prefer an explicitly selected file to automatically selected ones.
2335ac_site_file1=NONE
2336ac_site_file2=NONE
2337if test -n "$CONFIG_SITE"; then
2338 ac_site_file1=$CONFIG_SITE
2339elif test "x$prefix" != xNONE; then
2340 ac_site_file1=$prefix/share/config.site
2341 ac_site_file2=$prefix/etc/config.site
2342else
2343 ac_site_file1=$ac_default_prefix/share/config.site
2344 ac_site_file2=$ac_default_prefix/etc/config.site
2345fi
2346for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2347do
2348 test "x$ac_site_file" = xNONE && continue
2349 if test -r "$ac_site_file"; then
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2351$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2352 sed 's/^/| /' "$ac_site_file" >&5
2353 . "$ac_site_file"
2354 fi
2355done
2356
2357if test -r "$cache_file"; then
2358 # Some versions of bash will fail to source /dev/null (special
2359 # files actually), so we avoid doing that.
2360 if test -f "$cache_file"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2362$as_echo "$as_me: loading cache $cache_file" >&6;}
2363 case $cache_file in
2364 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2365 *) . "./$cache_file";;
2366 esac
2367 fi
2368else
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2370$as_echo "$as_me: creating cache $cache_file" >&6;}
2371 >$cache_file
2372fi
2373
2374# Check that the precious variables saved in the cache have kept the same
2375# value.
2376ac_cache_corrupted=false
2377for ac_var in $ac_precious_vars; do
2378 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2379 eval ac_new_set=\$ac_env_${ac_var}_set
2380 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2381 eval ac_new_val=\$ac_env_${ac_var}_value
2382 case $ac_old_set,$ac_new_set in
2383 set,)
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2385$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2386 ac_cache_corrupted=: ;;
2387 ,set)
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2389$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2390 ac_cache_corrupted=: ;;
2391 ,);;
2392 *)
2393 if test "x$ac_old_val" != "x$ac_new_val"; then
2394 # differences in whitespace do not lead to failure.
2395 ac_old_val_w=`echo x $ac_old_val`
2396 ac_new_val_w=`echo x $ac_new_val`
2397 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2399$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2400 ac_cache_corrupted=:
2401 else
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2403$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2404 eval $ac_var=\$ac_old_val
2405 fi
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2407$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2409$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2410 fi;;
2411 esac
2412 # Pass precious variables to config.status.
2413 if test "$ac_new_set" = set; then
2414 case $ac_new_val in
2415 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2416 *) ac_arg=$ac_var=$ac_new_val ;;
2417 esac
2418 case " $ac_configure_args " in
2419 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2420 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2421 esac
2422 fi
2423done
2424if $ac_cache_corrupted; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2428$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2429 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2430fi
2431## -------------------- ##
2432## Main body of script. ##
2433## -------------------- ##
2434
2435ac_ext=c
2436ac_cpp='$CPP $CPPFLAGS'
2437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2439ac_compiler_gnu=$ac_cv_c_compiler_gnu
2440
2441
2442
2443
2444
2445ac_config_headers="$ac_config_headers auto-config.h"
2446
2447
2448# -------
2449# Options
2450# -------
2451
2452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2453$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2454 # Check whether --enable-version-specific-runtime-libs was given.
2455if test "${enable_version_specific_runtime_libs+set}" = set; then :
2456 enableval=$enable_version_specific_runtime_libs;
2457 case "$enableval" in
2458 yes|no) ;;
2459 *) as_fn_error "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2460 esac
2461
2462else
2463 enable_version_specific_runtime_libs=no
2464fi
2465
2466
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2468$as_echo "$enable_version_specific_runtime_libs" >&6; }
2469
2470# We would like our source tree to be readonly. However when releases or
2471# pre-releases are generated, the flex/bison generated files as well as the
2472# various formats of manuals need to be included along with the rest of the
2473# sources. Therefore we have --enable-generated-files-in-srcdir to do
2474# just that.
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2476$as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2477 # Check whether --enable-generated-files-in-srcdir was given.
2478if test "${enable_generated_files_in_srcdir+set}" = set; then :
2479 enableval=$enable_generated_files_in_srcdir;
2480 case "$enableval" in
2481 yes|no) ;;
2482 *) as_fn_error "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2483 esac
2484
2485else
2486 enable_generated_files_in_srcdir=no
2487fi
2488
2489
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2491$as_echo "$enable_generated_files_in_srcdir" >&6; }
2492 if test "$enable_generated_files_in_srcdir" = yes; then
2493 GENINSRC_TRUE=
2494 GENINSRC_FALSE='#'
2495else
2496 GENINSRC_TRUE='#'
2497 GENINSRC_FALSE=
2498fi
2499
2500
2501
2502# -------
2503
2504# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2505#
2506# You will slowly go insane if you do not grok the following fact: when
2507# building this library, the top-level /target/ becomes the library's /host/.
2508#
2509# configure then causes --target to default to --host, exactly like any
2510# other package using autoconf. Therefore, 'target' and 'host' will
2511# always be the same. This makes sense both for native and cross compilers
2512# just think about it for a little while. :-)
2513#
2514# Also, if this library is being configured as part of a cross compiler, the
2515# top-level configure script will pass the "real" host as $with_cross_host.
2516#
2517# Do not delete or change the following two lines. For why, see
2518# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2519ac_aux_dir=
2520for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2521 for ac_t in install-sh install.sh shtool; do
2522 if test -f "$ac_dir/$ac_t"; then
2523 ac_aux_dir=$ac_dir
2524 ac_install_sh="$ac_aux_dir/$ac_t -c"
2525 break 2
2526 fi
2527 done
2528done
2529if test -z "$ac_aux_dir"; then
2530 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2531fi
2532
2533# These three variables are undocumented and unsupported,
2534# and are intended to be withdrawn in a future Autoconf release.
2535# They can cause serious problems if a builder's source tree is in a directory
2536# whose full name contains unusual characters.
2537ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2538ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2539ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2540
2541
2542# Make sure we can run config.sub.
2543$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2544 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2545
2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2547$as_echo_n "checking build system type... " >&6; }
2548if test "${ac_cv_build+set}" = set; then :
2549 $as_echo_n "(cached) " >&6
2550else
2551 ac_build_alias=$build_alias
2552test "x$ac_build_alias" = x &&
2553 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2554test "x$ac_build_alias" = x &&
2555 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2556ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2557 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2558
2559fi
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2561$as_echo "$ac_cv_build" >&6; }
2562case $ac_cv_build in
2563*-*-*) ;;
2564*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2565esac
2566build=$ac_cv_build
2567ac_save_IFS=$IFS; IFS='-'
2568set x $ac_cv_build
2569shift
2570build_cpu=$1
2571build_vendor=$2
2572shift; shift
2573# Remember, the first character of IFS is used to create $*,
2574# except with old shells:
2575build_os=$*
2576IFS=$ac_save_IFS
2577case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2578
2579
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2581$as_echo_n "checking host system type... " >&6; }
2582if test "${ac_cv_host+set}" = set; then :
2583 $as_echo_n "(cached) " >&6
2584else
2585 if test "x$host_alias" = x; then
2586 ac_cv_host=$ac_cv_build
2587else
2588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2589 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2590fi
2591
2592fi
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2594$as_echo "$ac_cv_host" >&6; }
2595case $ac_cv_host in
2596*-*-*) ;;
2597*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2598esac
2599host=$ac_cv_host
2600ac_save_IFS=$IFS; IFS='-'
2601set x $ac_cv_host
2602shift
2603host_cpu=$1
2604host_vendor=$2
2605shift; shift
2606# Remember, the first character of IFS is used to create $*,
2607# except with old shells:
2608host_os=$*
2609IFS=$ac_save_IFS
2610case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2611
2612
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2614$as_echo_n "checking target system type... " >&6; }
2615if test "${ac_cv_target+set}" = set; then :
2616 $as_echo_n "(cached) " >&6
2617else
2618 if test "x$target_alias" = x; then
2619 ac_cv_target=$ac_cv_host
2620else
2621 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2622 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2623fi
2624
2625fi
2626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2627$as_echo "$ac_cv_target" >&6; }
2628case $ac_cv_target in
2629*-*-*) ;;
2630*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2631esac
2632target=$ac_cv_target
2633ac_save_IFS=$IFS; IFS='-'
2634set x $ac_cv_target
2635shift
2636target_cpu=$1
2637target_vendor=$2
2638shift; shift
2639# Remember, the first character of IFS is used to create $*,
2640# except with old shells:
2641target_os=$*
2642IFS=$ac_save_IFS
2643case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2644
2645
2646# The aliases save the names the user supplied, while $host etc.
2647# will get canonicalized.
2648test -n "$target_alias" &&
2649 test "$program_prefix$program_suffix$program_transform_name" = \
2650 NONENONEs,x,x, &&
2651 program_prefix=${target_alias}-
2652
2653target_alias=${target_alias-$host_alias}
2654
2655# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2656# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2657# 1.9.0: minimum required version
2658# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2659# of other PACKAGE_* variables will, however, and there's nothing
2660# we can do about that; they come from AC_INIT).
2661# no-dist: we don't want 'dist' and related rules.
2662# foreign: we don't follow the normal rules for GNU packages (no COPYING
2663# file in the top srcdir, etc, etc), so stop complaining.
2664# -Wall: turns on all automake warnings...
2665# -Wno-portability: ...except this one, since GNU make is required.
2666# -Wno-override: ... and this one, since we do want this in testsuite.
2667am__api_version='1.11'
2668
2669# Find a good install program. We prefer a C program (faster),
2670# so one script is as good as another. But avoid the broken or
2671# incompatible versions:
2672# SysV /etc/install, /usr/sbin/install
2673# SunOS /usr/etc/install
2674# IRIX /sbin/install
2675# AIX /bin/install
2676# AmigaOS /C/install, which installs bootblocks on floppy discs
2677# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2678# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2679# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2680# OS/2's system install, which has a completely different semantic
2681# ./install, which can be erroneously created by make from ./install.sh.
2682# Reject install programs that cannot install multiple files.
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2684$as_echo_n "checking for a BSD-compatible install... " >&6; }
2685if test -z "$INSTALL"; then
2686if test "${ac_cv_path_install+set}" = set; then :
2687 $as_echo_n "(cached) " >&6
2688else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 # Account for people who put trailing slashes in PATH elements.
2695case $as_dir/ in #((
2696 ./ | .// | /[cC]/* | \
2697 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2698 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2699 /usr/ucb/* ) ;;
2700 *)
2701 # OSF1 and SCO ODT 3.0 have their own names for install.
2702 # Don't use installbsd from OSF since it installs stuff as root
2703 # by default.
2704 for ac_prog in ginstall scoinst install; do
2705 for ac_exec_ext in '' $ac_executable_extensions; do
2706 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2707 if test $ac_prog = install &&
2708 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2709 # AIX install. It has an incompatible calling convention.
2710 :
2711 elif test $ac_prog = install &&
2712 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2713 # program-specific install script used by HP pwplus--don't use.
2714 :
2715 else
2716 rm -rf conftest.one conftest.two conftest.dir
2717 echo one > conftest.one
2718 echo two > conftest.two
2719 mkdir conftest.dir
2720 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2721 test -s conftest.one && test -s conftest.two &&
2722 test -s conftest.dir/conftest.one &&
2723 test -s conftest.dir/conftest.two
2724 then
2725 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2726 break 3
2727 fi
2728 fi
2729 fi
2730 done
2731 done
2732 ;;
2733esac
2734
2735 done
2736IFS=$as_save_IFS
2737
2738rm -rf conftest.one conftest.two conftest.dir
2739
2740fi
2741 if test "${ac_cv_path_install+set}" = set; then
2742 INSTALL=$ac_cv_path_install
2743 else
2744 # As a last resort, use the slow shell script. Don't cache a
2745 # value for INSTALL within a source directory, because that will
2746 # break other packages using the cache if that directory is
2747 # removed, or if the value is a relative name.
2748 INSTALL=$ac_install_sh
2749 fi
2750fi
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2752$as_echo "$INSTALL" >&6; }
2753
2754# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2755# It thinks the first close brace ends the variable substitution.
2756test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2757
2758test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2759
2760test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2761
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2763$as_echo_n "checking whether build environment is sane... " >&6; }
2764# Just in case
2765sleep 1
2766echo timestamp > conftest.file
2767# Reject unsafe characters in $srcdir or the absolute working directory
2768# name. Accept space and tab only in the latter.
2769am_lf='
2770'
2771case `pwd` in
2772 *[\\\"\#\$\&\'\`$am_lf]*)
2773 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2774esac
2775case $srcdir in
2776 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2777 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2778esac
2779
2780# Do `set' in a subshell so we don't clobber the current shell's
2781# arguments. Must try -L first in case configure is actually a
2782# symlink; some systems play weird games with the mod time of symlinks
2783# (eg FreeBSD returns the mod time of the symlink's containing
2784# directory).
2785if (
2786 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2787 if test "$*" = "X"; then
2788 # -L didn't work.
2789 set X `ls -t "$srcdir/configure" conftest.file`
2790 fi
2791 rm -f conftest.file
2792 if test "$*" != "X $srcdir/configure conftest.file" \
2793 && test "$*" != "X conftest.file $srcdir/configure"; then
2794
2795 # If neither matched, then we have a broken ls. This can happen
2796 # if, for instance, CONFIG_SHELL is bash and it inherits a
2797 # broken ls alias from the environment. This has actually
2798 # happened. Such a system could not be considered "sane".
2799 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2800alias in your environment" "$LINENO" 5
2801 fi
2802
2803 test "$2" = conftest.file
2804 )
2805then
2806 # Ok.
2807 :
2808else
2809 as_fn_error "newly created file is older than distributed files!
2810Check your system clock" "$LINENO" 5
2811fi
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2813$as_echo "yes" >&6; }
2814test "$program_prefix" != NONE &&
2815 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2816# Use a double $ so make ignores it.
2817test "$program_suffix" != NONE &&
2818 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2819# Double any \ or $.
2820# By default was `s,x,x', remove it if useless.
2821ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2822program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2823
2824# expand $ac_aux_dir to an absolute path
2825am_aux_dir=`cd $ac_aux_dir && pwd`
2826
2827if test x"${MISSING+set}" != xset; then
2828 case $am_aux_dir in
2829 *\ * | *\ *)
2830 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2831 *)
2832 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2833 esac
2834fi
2835# Use eval to expand $SHELL
2836if eval "$MISSING --run true"; then
2837 am_missing_run="$MISSING --run "
2838else
2839 am_missing_run=
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2841$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2842fi
2843
2844if test x"${install_sh}" != xset; then
2845 case $am_aux_dir in
2846 *\ * | *\ *)
2847 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2848 *)
2849 install_sh="\${SHELL} $am_aux_dir/install-sh"
2850 esac
2851fi
2852
2853# Installed binaries are usually stripped using `strip' when the user
2854# run `make install-strip'. However `strip' might not be the right
2855# tool to use in cross-compilation environments, therefore Automake
2856# will honor the `STRIP' environment variable to overrule this program.
2857if test "$cross_compiling" != no; then
2858 if test -n "$ac_tool_prefix"; then
2859 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2860set dummy ${ac_tool_prefix}strip; ac_word=$2
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862$as_echo_n "checking for $ac_word... " >&6; }
2863if test "${ac_cv_prog_STRIP+set}" = set; then :
2864 $as_echo_n "(cached) " >&6
2865else
2866 if test -n "$STRIP"; then
2867 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2868else
2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870for as_dir in $PATH
2871do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880done
2881 done
2882IFS=$as_save_IFS
2883
2884fi
2885fi
2886STRIP=$ac_cv_prog_STRIP
2887if test -n "$STRIP"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2889$as_echo "$STRIP" >&6; }
2890else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892$as_echo "no" >&6; }
2893fi
2894
2895
2896fi
2897if test -z "$ac_cv_prog_STRIP"; then
2898 ac_ct_STRIP=$STRIP
2899 # Extract the first word of "strip", so it can be a program name with args.
2900set dummy strip; ac_word=$2
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902$as_echo_n "checking for $ac_word... " >&6; }
2903if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2904 $as_echo_n "(cached) " >&6
2905else
2906 if test -n "$ac_ct_STRIP"; then
2907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2908else
2909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910for as_dir in $PATH
2911do
2912 IFS=$as_save_IFS
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916 ac_cv_prog_ac_ct_STRIP="strip"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 break 2
2919 fi
2920done
2921 done
2922IFS=$as_save_IFS
2923
2924fi
2925fi
2926ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2927if test -n "$ac_ct_STRIP"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2929$as_echo "$ac_ct_STRIP" >&6; }
2930else
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932$as_echo "no" >&6; }
2933fi
2934
2935 if test "x$ac_ct_STRIP" = x; then
2936 STRIP=":"
2937 else
2938 case $cross_compiling:$ac_tool_warned in
2939yes:)
2940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2942ac_tool_warned=yes ;;
2943esac
2944 STRIP=$ac_ct_STRIP
2945 fi
2946else
2947 STRIP="$ac_cv_prog_STRIP"
2948fi
2949
2950fi
2951INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2952
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2954$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2955if test -z "$MKDIR_P"; then
2956 if test "${ac_cv_path_mkdir+set}" = set; then :
2957 $as_echo_n "(cached) " >&6
2958else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2961do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_prog in mkdir gmkdir; do
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2967 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2968 'mkdir (GNU coreutils) '* | \
2969 'mkdir (coreutils) '* | \
2970 'mkdir (fileutils) '4.1*)
2971 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2972 break 3;;
2973 esac
2974 done
2975 done
2976 done
2977IFS=$as_save_IFS
2978
2979fi
2980
2981 if test "${ac_cv_path_mkdir+set}" = set; then
2982 MKDIR_P="$ac_cv_path_mkdir -p"
2983 else
2984 # As a last resort, use the slow shell script. Don't cache a
2985 # value for MKDIR_P within a source directory, because that will
2986 # break other packages using the cache if that directory is
2987 # removed, or if the value is a relative name.
2988 test -d ./--version && rmdir ./--version
2989 MKDIR_P="$ac_install_sh -d"
2990 fi
2991fi
2992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2993$as_echo "$MKDIR_P" >&6; }
2994
2995mkdir_p="$MKDIR_P"
2996case $mkdir_p in
2997 [\\/$]* | ?:[\\/]*) ;;
2998 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2999esac
3000
3001for ac_prog in gawk mawk nawk awk
3002do
3003 # Extract the first word of "$ac_prog", so it can be a program name with args.
3004set dummy $ac_prog; ac_word=$2
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006$as_echo_n "checking for $ac_word... " >&6; }
3007if test "${ac_cv_prog_AWK+set}" = set; then :
3008 $as_echo_n "(cached) " >&6
3009else
3010 if test -n "$AWK"; then
3011 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3012else
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_AWK="$ac_prog"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 break 2
3023 fi
3024done
3025 done
3026IFS=$as_save_IFS
3027
3028fi
3029fi
3030AWK=$ac_cv_prog_AWK
3031if test -n "$AWK"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3033$as_echo "$AWK" >&6; }
3034else
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036$as_echo "no" >&6; }
3037fi
3038
3039
3040 test -n "$AWK" && break
3041done
3042
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3044$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3045set x ${MAKE-make}
3046ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3047if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3048 $as_echo_n "(cached) " >&6
3049else
3050 cat >conftest.make <<\_ACEOF
3051SHELL = /bin/sh
3052all:
3053 @echo '@@@%%%=$(MAKE)=@@@%%%'
3054_ACEOF
3055# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3056case `${MAKE-make} -f conftest.make 2>/dev/null` in
3057 *@@@%%%=?*=@@@%%%*)
3058 eval ac_cv_prog_make_${ac_make}_set=yes;;
3059 *)
3060 eval ac_cv_prog_make_${ac_make}_set=no;;
3061esac
3062rm -f conftest.make
3063fi
3064if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3066$as_echo "yes" >&6; }
3067 SET_MAKE=
3068else
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070$as_echo "no" >&6; }
3071 SET_MAKE="MAKE=${MAKE-make}"
3072fi
3073
3074rm -rf .tst 2>/dev/null
3075mkdir .tst 2>/dev/null
3076if test -d .tst; then
3077 am__leading_dot=.
3078else
3079 am__leading_dot=_
3080fi
3081rmdir .tst 2>/dev/null
3082
3083if test "`cd $srcdir && pwd`" != "`pwd`"; then
3084 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3085 # is not polluted with repeated "-I."
3086 am__isrc=' -I$(srcdir)'
3087 # test to see if srcdir already configured
3088 if test -f $srcdir/config.status; then
3089 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3090 fi
3091fi
3092
3093# test whether we have cygpath
3094if test -z "$CYGPATH_W"; then
3095 if (cygpath --version) >/dev/null 2>/dev/null; then
3096 CYGPATH_W='cygpath -w'
3097 else
3098 CYGPATH_W=echo
3099 fi
3100fi
3101
3102
3103# Define the identity of the package.
3104 PACKAGE='libatomic'
3105 VERSION='1.0'
3106
3107
3108cat >>confdefs.h <<_ACEOF
3109#define PACKAGE "$PACKAGE"
3110_ACEOF
3111
3112
3113cat >>confdefs.h <<_ACEOF
3114#define VERSION "$VERSION"
3115_ACEOF
3116
3117# Some tools Automake needs.
3118
3119ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3120
3121
3122AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3123
3124
3125AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3126
3127
3128AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3129
3130
3131MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3132
3133# We need awk for the "check" target. The system "awk" is bad on
3134# some platforms.
3135# Always define AMTAR for backward compatibility. Yes, it's still used
3136# in the wild :-( We should find a proper way to deprecate it ...
3137AMTAR='$${TAR-tar}'
3138
3139am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3140
3141
3142
3143
3144
3145# Default to --enable-multilib
3146# Check whether --enable-multilib was given.
3147if test "${enable_multilib+set}" = set; then :
3148 enableval=$enable_multilib; case "$enableval" in
3149 yes) multilib=yes ;;
3150 no) multilib=no ;;
3151 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3152 esac
3153else
3154 multilib=yes
3155fi
3156
3157
3158# We may get other options which we leave undocumented:
3159# --with-target-subdir, --with-multisrctop, --with-multisubdir
3160# See config-ml.in if you want the gory details.
3161
3162if test "$srcdir" = "."; then
3163 if test "$with_target_subdir" != "."; then
3164 multi_basedir="$srcdir/$with_multisrctop../.."
3165 else
3166 multi_basedir="$srcdir/$with_multisrctop.."
3167 fi
3168else
3169 multi_basedir="$srcdir/.."
3170fi
3171
3172
3173# Even if the default multilib is not a cross compilation,
3174# it may be that some of the other multilibs are.
3175if test $cross_compiling = no && test $multilib = yes \
3176 && test "x${with_multisubdir}" != x ; then
3177 cross_compiling=maybe
3178fi
3179
3180ac_config_commands="$ac_config_commands default-1"
3181
3182
3183# Calculate toolexeclibdir
3184# Also toolexecdir, though it's only used in toolexeclibdir
3185case ${enable_version_specific_runtime_libs} in
3186 yes)
3187 # Need the gcc compiler version to know where to install libraries
3188 # and header files if --enable-version-specific-runtime-libs option
3189 # is selected.
3190 toolexecdir='$(libdir)/gcc/$(target_alias)'
3191 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3192 ;;
3193 no)
3194 if test -n "$with_cross_host" &&
3195 test x"$with_cross_host" != x"no"; then
3196 # Install a library built with a cross compiler in tooldir, not libdir.
3197 toolexecdir='$(exec_prefix)/$(target_alias)'
3198 toolexeclibdir='$(toolexecdir)/lib'
3199 else
3200 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3201 toolexeclibdir='$(libdir)'
3202 fi
3203 multi_os_directory=`$CC -print-multi-os-directory`
3204 case $multi_os_directory in
3205 .) ;; # Avoid trailing /.
3206 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3207 esac
3208 ;;
3209esac
3210
3211
3212
3213# Check the compiler.
3214# The same as in boehm-gc and libstdc++. Have to borrow it from there.
3215# We must force CC to /not/ be precious variables; otherwise
3216# the wrong, non-multilib-adjusted value will be used in multilibs.
3217# As a side effect, we have to subst CFLAGS ourselves.
3218
3219
3220
3221ac_ext=c
3222ac_cpp='$CPP $CPPFLAGS'
3223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226if test -n "$ac_tool_prefix"; then
3227 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3228set dummy ${ac_tool_prefix}gcc; ac_word=$2
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3230$as_echo_n "checking for $ac_word... " >&6; }
3231if test "${ac_cv_prog_CC+set}" = set; then :
3232 $as_echo_n "(cached) " >&6
3233else
3234 if test -n "$CC"; then
3235 ac_cv_prog_CC="$CC" # Let the user override the test.
3236else
3237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238for as_dir in $PATH
3239do
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3244 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 break 2
3247 fi
3248done
3249 done
3250IFS=$as_save_IFS
3251
3252fi
3253fi
3254CC=$ac_cv_prog_CC
3255if test -n "$CC"; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3257$as_echo "$CC" >&6; }
3258else
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3260$as_echo "no" >&6; }
3261fi
3262
3263
3264fi
3265if test -z "$ac_cv_prog_CC"; then
3266 ac_ct_CC=$CC
3267 # Extract the first word of "gcc", so it can be a program name with args.
3268set dummy gcc; ac_word=$2
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270$as_echo_n "checking for $ac_word... " >&6; }
3271if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3272 $as_echo_n "(cached) " >&6
3273else
3274 if test -n "$ac_ct_CC"; then
3275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3276else
3277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278for as_dir in $PATH
3279do
3280 IFS=$as_save_IFS
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3284 ac_cv_prog_ac_ct_CC="gcc"
3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 break 2
3287 fi
3288done
3289 done
3290IFS=$as_save_IFS
3291
3292fi
3293fi
3294ac_ct_CC=$ac_cv_prog_ac_ct_CC
3295if test -n "$ac_ct_CC"; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3297$as_echo "$ac_ct_CC" >&6; }
3298else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300$as_echo "no" >&6; }
3301fi
3302
3303 if test "x$ac_ct_CC" = x; then
3304 CC=""
3305 else
3306 case $cross_compiling:$ac_tool_warned in
3307yes:)
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3310ac_tool_warned=yes ;;
3311esac
3312 CC=$ac_ct_CC
3313 fi
3314else
3315 CC="$ac_cv_prog_CC"
3316fi
3317
3318if test -z "$CC"; then
3319 if test -n "$ac_tool_prefix"; then
3320 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3321set dummy ${ac_tool_prefix}cc; ac_word=$2
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323$as_echo_n "checking for $ac_word... " >&6; }
3324if test "${ac_cv_prog_CC+set}" = set; then :
3325 $as_echo_n "(cached) " >&6
3326else
3327 if test -n "$CC"; then
3328 ac_cv_prog_CC="$CC" # Let the user override the test.
3329else
3330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331for as_dir in $PATH
3332do
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337 ac_cv_prog_CC="${ac_tool_prefix}cc"
3338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 break 2
3340 fi
3341done
3342 done
3343IFS=$as_save_IFS
3344
3345fi
3346fi
3347CC=$ac_cv_prog_CC
3348if test -n "$CC"; then
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350$as_echo "$CC" >&6; }
3351else
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353$as_echo "no" >&6; }
3354fi
3355
3356
3357 fi
3358fi
3359if test -z "$CC"; then
3360 # Extract the first word of "cc", so it can be a program name with args.
3361set dummy cc; ac_word=$2
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363$as_echo_n "checking for $ac_word... " >&6; }
3364if test "${ac_cv_prog_CC+set}" = set; then :
3365 $as_echo_n "(cached) " >&6
3366else
3367 if test -n "$CC"; then
3368 ac_cv_prog_CC="$CC" # Let the user override the test.
3369else
3370 ac_prog_rejected=no
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3378 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3379 ac_prog_rejected=yes
3380 continue
3381 fi
3382 ac_cv_prog_CC="cc"
3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3384 break 2
3385 fi
3386done
3387 done
3388IFS=$as_save_IFS
3389
3390if test $ac_prog_rejected = yes; then
3391 # We found a bogon in the path, so make sure we never use it.
3392 set dummy $ac_cv_prog_CC
3393 shift
3394 if test $# != 0; then
3395 # We chose a different compiler from the bogus one.
3396 # However, it has the same basename, so the bogon will be chosen
3397 # first if we set CC to just the basename; use the full file name.
3398 shift
3399 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3400 fi
3401fi
3402fi
3403fi
3404CC=$ac_cv_prog_CC
3405if test -n "$CC"; then
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407$as_echo "$CC" >&6; }
3408else
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410$as_echo "no" >&6; }
3411fi
3412
3413
3414fi
3415if test -z "$CC"; then
3416 if test -n "$ac_tool_prefix"; then
3417 for ac_prog in cl.exe
3418 do
3419 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3420set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422$as_echo_n "checking for $ac_word... " >&6; }
3423if test "${ac_cv_prog_CC+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3425else
3426 if test -n "$CC"; then
3427 ac_cv_prog_CC="$CC" # Let the user override the test.
3428else
3429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430for as_dir in $PATH
3431do
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 break 2
3439 fi
3440done
3441 done
3442IFS=$as_save_IFS
3443
3444fi
3445fi
3446CC=$ac_cv_prog_CC
3447if test -n "$CC"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449$as_echo "$CC" >&6; }
3450else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452$as_echo "no" >&6; }
3453fi
3454
3455
3456 test -n "$CC" && break
3457 done
3458fi
3459if test -z "$CC"; then
3460 ac_ct_CC=$CC
3461 for ac_prog in cl.exe
3462do
3463 # Extract the first word of "$ac_prog", so it can be a program name with args.
3464set dummy $ac_prog; ac_word=$2
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466$as_echo_n "checking for $ac_word... " >&6; }
3467if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3468 $as_echo_n "(cached) " >&6
3469else
3470 if test -n "$ac_ct_CC"; then
3471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3472else
3473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474for as_dir in $PATH
3475do
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480 ac_cv_prog_ac_ct_CC="$ac_prog"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 break 2
3483 fi
3484done
3485 done
3486IFS=$as_save_IFS
3487
3488fi
3489fi
3490ac_ct_CC=$ac_cv_prog_ac_ct_CC
3491if test -n "$ac_ct_CC"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3493$as_echo "$ac_ct_CC" >&6; }
3494else
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496$as_echo "no" >&6; }
3497fi
3498
3499
3500 test -n "$ac_ct_CC" && break
3501done
3502
3503 if test "x$ac_ct_CC" = x; then
3504 CC=""
3505 else
3506 case $cross_compiling:$ac_tool_warned in
3507yes:)
3508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3510ac_tool_warned=yes ;;
3511esac
3512 CC=$ac_ct_CC
3513 fi
3514fi
3515
3516fi
3517
3518
3519test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521as_fn_error "no acceptable C compiler found in \$PATH
3522See \`config.log' for more details." "$LINENO" 5; }
3523
3524# Provide some information about the compiler.
3525$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3526set X $ac_compile
3527ac_compiler=$2
3528for ac_option in --version -v -V -qversion; do
3529 { { ac_try="$ac_compiler $ac_option >&5"
3530case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533esac
3534eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535$as_echo "$ac_try_echo"; } >&5
3536 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3537 ac_status=$?
3538 if test -s conftest.err; then
3539 sed '10a\
3540... rest of stderr output deleted ...
3541 10q' conftest.err >conftest.er1
3542 cat conftest.er1 >&5
3543 rm -f conftest.er1 conftest.err
3544 fi
3545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546 test $ac_status = 0; }
3547done
3548
3549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550/* end confdefs.h. */
3551
3552int
3553main ()
3554{
3555
3556 ;
3557 return 0;
3558}
3559_ACEOF
3560ac_clean_files_save=$ac_clean_files
3561ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3562# Try to create an executable without -o first, disregard a.out.
3563# It will help us diagnose broken compilers, and finding out an intuition
3564# of exeext.
3565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3566$as_echo_n "checking for C compiler default output file name... " >&6; }
3567ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3568
3569# The possible output files:
3570ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3571
3572ac_rmfiles=
3573for ac_file in $ac_files
3574do
3575 case $ac_file in
3576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3577 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3578 esac
3579done
3580rm -f $ac_rmfiles
3581
3582if { { ac_try="$ac_link_default"
3583case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586esac
3587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588$as_echo "$ac_try_echo"; } >&5
3589 (eval "$ac_link_default") 2>&5
3590 ac_status=$?
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }; then :
3593 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3594# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3595# in a Makefile. We should not override ac_cv_exeext if it was cached,
3596# so that the user can short-circuit this test for compilers unknown to
3597# Autoconf.
3598for ac_file in $ac_files ''
3599do
3600 test -f "$ac_file" || continue
3601 case $ac_file in
3602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3603 ;;
3604 [ab].out )
3605 # We found the default executable, but exeext='' is most
3606 # certainly right.
3607 break;;
3608 *.* )
3609 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3610 then :; else
3611 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3612 fi
3613 # We set ac_cv_exeext here because the later test for it is not
3614 # safe: cross compilers may not add the suffix if given an `-o'
3615 # argument, so we may need to know it at that point already.
3616 # Even if this section looks crufty: it has the advantage of
3617 # actually working.
3618 break;;
3619 * )
3620 break;;
3621 esac
3622done
3623test "$ac_cv_exeext" = no && ac_cv_exeext=
3624
3625else
3626 ac_file=''
3627fi
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3629$as_echo "$ac_file" >&6; }
3630if test -z "$ac_file"; then :
3631 $as_echo "$as_me: failed program was:" >&5
3632sed 's/^/| /' conftest.$ac_ext >&5
3633
3634{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636{ as_fn_set_status 77
3637as_fn_error "C compiler cannot create executables
3638See \`config.log' for more details." "$LINENO" 5; }; }
3639fi
3640ac_exeext=$ac_cv_exeext
3641
3642# Check that the compiler produces executables we can run. If not, either
3643# the compiler is broken, or we cross compile.
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3645$as_echo_n "checking whether the C compiler works... " >&6; }
3646# If not cross compiling, check that we can run a simple program.
3647if test "$cross_compiling" != yes; then
3648 if { ac_try='./$ac_file'
3649 { { case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3652esac
3653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654$as_echo "$ac_try_echo"; } >&5
3655 (eval "$ac_try") 2>&5
3656 ac_status=$?
3657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658 test $ac_status = 0; }; }; then
3659 cross_compiling=no
3660 else
3661 if test "$cross_compiling" = maybe; then
3662 cross_compiling=yes
3663 else
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666as_fn_error "cannot run C compiled programs.
3667If you meant to cross compile, use \`--host'.
3668See \`config.log' for more details." "$LINENO" 5; }
3669 fi
3670 fi
3671fi
3672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3673$as_echo "yes" >&6; }
3674
3675rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3676ac_clean_files=$ac_clean_files_save
3677# Check that the compiler produces executables we can run. If not, either
3678# the compiler is broken, or we cross compile.
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3680$as_echo_n "checking whether we are cross compiling... " >&6; }
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3682$as_echo "$cross_compiling" >&6; }
3683
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3685$as_echo_n "checking for suffix of executables... " >&6; }
3686if { { ac_try="$ac_link"
3687case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690esac
3691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692$as_echo "$ac_try_echo"; } >&5
3693 (eval "$ac_link") 2>&5
3694 ac_status=$?
3695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696 test $ac_status = 0; }; then :
3697 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3698# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3699# work properly (i.e., refer to `conftest.exe'), while it won't with
3700# `rm'.
3701for ac_file in conftest.exe conftest conftest.*; do
3702 test -f "$ac_file" || continue
3703 case $ac_file in
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3705 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3706 break;;
3707 * ) break;;
3708 esac
3709done
3710else
3711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3713as_fn_error "cannot compute suffix of executables: cannot compile and link
3714See \`config.log' for more details." "$LINENO" 5; }
3715fi
3716rm -f conftest$ac_cv_exeext
3717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3718$as_echo "$ac_cv_exeext" >&6; }
3719
3720rm -f conftest.$ac_ext
3721EXEEXT=$ac_cv_exeext
3722ac_exeext=$EXEEXT
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3724$as_echo_n "checking for suffix of object files... " >&6; }
3725if test "${ac_cv_objext+set}" = set; then :
3726 $as_echo_n "(cached) " >&6
3727else
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729/* end confdefs.h. */
3730
3731int
3732main ()
3733{
3734
3735 ;
3736 return 0;
3737}
3738_ACEOF
3739rm -f conftest.o conftest.obj
3740if { { ac_try="$ac_compile"
3741case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3744esac
3745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746$as_echo "$ac_try_echo"; } >&5
3747 (eval "$ac_compile") 2>&5
3748 ac_status=$?
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }; then :
3751 for ac_file in conftest.o conftest.obj conftest.*; do
3752 test -f "$ac_file" || continue;
3753 case $ac_file in
3754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3755 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3756 break;;
3757 esac
3758done
3759else
3760 $as_echo "$as_me: failed program was:" >&5
3761sed 's/^/| /' conftest.$ac_ext >&5
3762
3763{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765as_fn_error "cannot compute suffix of object files: cannot compile
3766See \`config.log' for more details." "$LINENO" 5; }
3767fi
3768rm -f conftest.$ac_cv_objext conftest.$ac_ext
3769fi
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3771$as_echo "$ac_cv_objext" >&6; }
3772OBJEXT=$ac_cv_objext
3773ac_objext=$OBJEXT
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3775$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3776if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3777 $as_echo_n "(cached) " >&6
3778else
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780/* end confdefs.h. */
3781
3782int
3783main ()
3784{
3785#ifndef __GNUC__
3786 choke me
3787#endif
3788
3789 ;
3790 return 0;
3791}
3792_ACEOF
3793if ac_fn_c_try_compile "$LINENO"; then :
3794 ac_compiler_gnu=yes
3795else
3796 ac_compiler_gnu=no
3797fi
3798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799ac_cv_c_compiler_gnu=$ac_compiler_gnu
3800
3801fi
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3803$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3804if test $ac_compiler_gnu = yes; then
3805 GCC=yes
3806else
3807 GCC=
3808fi
3809ac_test_CFLAGS=${CFLAGS+set}
3810ac_save_CFLAGS=$CFLAGS
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3812$as_echo_n "checking whether $CC accepts -g... " >&6; }
3813if test "${ac_cv_prog_cc_g+set}" = set; then :
3814 $as_echo_n "(cached) " >&6
3815else
3816 ac_save_c_werror_flag=$ac_c_werror_flag
3817 ac_c_werror_flag=yes
3818 ac_cv_prog_cc_g=no
3819 CFLAGS="-g"
3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3821/* end confdefs.h. */
3822
3823int
3824main ()
3825{
3826
3827 ;
3828 return 0;
3829}
3830_ACEOF
3831if ac_fn_c_try_compile "$LINENO"; then :
3832 ac_cv_prog_cc_g=yes
3833else
3834 CFLAGS=""
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836/* end confdefs.h. */
3837
3838int
3839main ()
3840{
3841
3842 ;
3843 return 0;
3844}
3845_ACEOF
3846if ac_fn_c_try_compile "$LINENO"; then :
3847
3848else
3849 ac_c_werror_flag=$ac_save_c_werror_flag
3850 CFLAGS="-g"
3851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3852/* end confdefs.h. */
3853
3854int
3855main ()
3856{
3857
3858 ;
3859 return 0;
3860}
3861_ACEOF
3862if ac_fn_c_try_compile "$LINENO"; then :
3863 ac_cv_prog_cc_g=yes
3864fi
3865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3866fi
3867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868fi
3869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 ac_c_werror_flag=$ac_save_c_werror_flag
3871fi
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3873$as_echo "$ac_cv_prog_cc_g" >&6; }
3874if test "$ac_test_CFLAGS" = set; then
3875 CFLAGS=$ac_save_CFLAGS
3876elif test $ac_cv_prog_cc_g = yes; then
3877 if test "$GCC" = yes; then
3878 CFLAGS="-g -O2"
3879 else
3880 CFLAGS="-g"
3881 fi
3882else
3883 if test "$GCC" = yes; then
3884 CFLAGS="-O2"
3885 else
3886 CFLAGS=
3887 fi
3888fi
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3890$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3891if test "${ac_cv_prog_cc_c89+set}" = set; then :
3892 $as_echo_n "(cached) " >&6
3893else
3894 ac_cv_prog_cc_c89=no
3895ac_save_CC=$CC
3896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897/* end confdefs.h. */
3898#include <stdarg.h>
3899#include <stdio.h>
3900#include <sys/types.h>
3901#include <sys/stat.h>
3902/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3903struct buf { int x; };
3904FILE * (*rcsopen) (struct buf *, struct stat *, int);
3905static char *e (p, i)
3906 char **p;
3907 int i;
3908{
3909 return p[i];
3910}
3911static char *f (char * (*g) (char **, int), char **p, ...)
3912{
3913 char *s;
3914 va_list v;
3915 va_start (v,p);
3916 s = g (p, va_arg (v,int));
3917 va_end (v);
3918 return s;
3919}
3920
3921/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3922 function prototypes and stuff, but not '\xHH' hex character constants.
3923 These don't provoke an error unfortunately, instead are silently treated
3924 as 'x'. The following induces an error, until -std is added to get
3925 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3926 array size at least. It's necessary to write '\x00'==0 to get something
3927 that's true only with -std. */
3928int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3929
3930/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3931 inside strings and character constants. */
3932#define FOO(x) 'x'
3933int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3934
3935int test (int i, double x);
3936struct s1 {int (*f) (int a);};
3937struct s2 {int (*f) (double a);};
3938int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3939int argc;
3940char **argv;
3941int
3942main ()
3943{
3944return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3945 ;
3946 return 0;
3947}
3948_ACEOF
3949for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3950 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3951do
3952 CC="$ac_save_CC $ac_arg"
3953 if ac_fn_c_try_compile "$LINENO"; then :
3954 ac_cv_prog_cc_c89=$ac_arg
3955fi
3956rm -f core conftest.err conftest.$ac_objext
3957 test "x$ac_cv_prog_cc_c89" != "xno" && break
3958done
3959rm -f conftest.$ac_ext
3960CC=$ac_save_CC
3961
3962fi
3963# AC_CACHE_VAL
3964case "x$ac_cv_prog_cc_c89" in
3965 x)
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3967$as_echo "none needed" >&6; } ;;
3968 xno)
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3970$as_echo "unsupported" >&6; } ;;
3971 *)
3972 CC="$CC $ac_cv_prog_cc_c89"
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3974$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3975esac
3976if test "x$ac_cv_prog_cc_c89" != xno; then :
3977
3978fi
3979
3980ac_ext=c
3981ac_cpp='$CPP $CPPFLAGS'
3982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3984ac_compiler_gnu=$ac_cv_c_compiler_gnu
3985DEPDIR="${am__leading_dot}deps"
3986
3987ac_config_commands="$ac_config_commands depfiles"
3988
3989
3990am_make=${MAKE-make}
3991cat > confinc << 'END'
3992am__doit:
3993 @echo this is the am__doit target
3994.PHONY: am__doit
3995END
3996# If we don't find an include directive, just comment out the code.
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3998$as_echo_n "checking for style of include used by $am_make... " >&6; }
3999am__include="#"
4000am__quote=
4001_am_result=none
4002# First try GNU make style include.
4003echo "include confinc" > confmf
4004# Ignore all kinds of additional output from `make'.
4005case `$am_make -s -f confmf 2> /dev/null` in #(
4006*the\ am__doit\ target*)
4007 am__include=include
4008 am__quote=
4009 _am_result=GNU
4010 ;;
4011esac
4012# Now try BSD make style include.
4013if test "$am__include" = "#"; then
4014 echo '.include "confinc"' > confmf
4015 case `$am_make -s -f confmf 2> /dev/null` in #(
4016 *the\ am__doit\ target*)
4017 am__include=.include
4018 am__quote="\""
4019 _am_result=BSD
4020 ;;
4021 esac
4022fi
4023
4024
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4026$as_echo "$_am_result" >&6; }
4027rm -f confinc confmf
4028
4029# Check whether --enable-dependency-tracking was given.
4030if test "${enable_dependency_tracking+set}" = set; then :
4031 enableval=$enable_dependency_tracking;
4032fi
4033
4034if test "x$enable_dependency_tracking" != xno; then
4035 am_depcomp="$ac_aux_dir/depcomp"
4036 AMDEPBACKSLASH='\'
4037 am__nodep='_no'
4038fi
4039 if test "x$enable_dependency_tracking" != xno; then
4040 AMDEP_TRUE=
4041 AMDEP_FALSE='#'
4042else
4043 AMDEP_TRUE='#'
4044 AMDEP_FALSE=
4045fi
4046
4047
4048
4049depcc="$CC" am_compiler_list=
4050
4051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4052$as_echo_n "checking dependency style of $depcc... " >&6; }
4053if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4054 $as_echo_n "(cached) " >&6
4055else
4056 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4057 # We make a subdir and do the tests there. Otherwise we can end up
4058 # making bogus files that we don't know about and never remove. For
4059 # instance it was reported that on HP-UX the gcc test will end up
4060 # making a dummy file named `D' -- because `-MD' means `put the output
4061 # in D'.
Han Shenb42cc222013-11-18 20:49:224062 mkdir conftest.dir
4063 # Copy depcomp to subdir because otherwise we won't find it if we're
4064 # using a relative directory.
4065 cp "$am_depcomp" conftest.dir
4066 cd conftest.dir
4067 # We will build objects and dependencies in a subdirectory because
4068 # it helps to detect inapplicable dependency modes. For instance
4069 # both Tru64's cc and ICC support -MD to output dependencies as a
4070 # side effect of compilation, but ICC will put the dependencies in
4071 # the current directory while Tru64 will put them in the object
4072 # directory.
4073 mkdir sub
4074
4075 am_cv_CC_dependencies_compiler_type=none
4076 if test "$am_compiler_list" = ""; then
4077 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4078 fi
4079 am__universal=false
4080 case " $depcc " in #(
4081 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4082 esac
4083
4084 for depmode in $am_compiler_list; do
4085 # Setup a source with many dependencies, because some compilers
4086 # like to wrap large dependency lists on column 80 (with \), and
4087 # we should not choose a depcomp mode which is confused by this.
4088 #
4089 # We need to recreate these files for each test, as the compiler may
4090 # overwrite some of them when testing with obscure command lines.
4091 # This happens at least with the AIX C compiler.
4092 : > sub/conftest.c
4093 for i in 1 2 3 4 5 6; do
4094 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4095 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4096 # Solaris 8's {/usr,}/bin/sh.
4097 touch sub/conftst$i.h
4098 done
4099 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4100
4101 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4102 # mode. It turns out that the SunPro C++ compiler does not properly
4103 # handle `-M -o', and we need to detect this. Also, some Intel
4104 # versions had trouble with output in subdirs
4105 am__obj=sub/conftest.${OBJEXT-o}
4106 am__minus_obj="-o $am__obj"
4107 case $depmode in
4108 gcc)
4109 # This depmode causes a compiler race in universal mode.
4110 test "$am__universal" = false || continue
4111 ;;
4112 nosideeffect)
4113 # after this tag, mechanisms are not by side-effect, so they'll
4114 # only be used when explicitly requested
4115 if test "x$enable_dependency_tracking" = xyes; then
4116 continue
4117 else
4118 break
4119 fi
4120 ;;
4121 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4122 # This compiler won't grok `-c -o', but also, the minuso test has
4123 # not run yet. These depmodes are late enough in the game, and
4124 # so weak that their functioning should not be impacted.
4125 am__obj=conftest.${OBJEXT-o}
4126 am__minus_obj=
4127 ;;
4128 none) break ;;
4129 esac
4130 if depmode=$depmode \
4131 source=sub/conftest.c object=$am__obj \
4132 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4133 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4134 >/dev/null 2>conftest.err &&
4135 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4136 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4137 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4138 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4139 # icc doesn't choke on unknown options, it will just issue warnings
4140 # or remarks (even with -Werror). So we grep stderr for any message
4141 # that says an option was ignored or not supported.
4142 # When given -MP, icc 7.0 and 7.1 complain thusly:
4143 # icc: Command line warning: ignoring option '-M'; no argument required
4144 # The diagnosis changed in icc 8.0:
4145 # icc: Command line remark: option '-MP' not supported
4146 if (grep 'ignoring option' conftest.err ||
4147 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4148 am_cv_CC_dependencies_compiler_type=$depmode
4149 break
4150 fi
4151 fi
4152 done
4153
4154 cd ..
4155 rm -rf conftest.dir
4156else
4157 am_cv_CC_dependencies_compiler_type=none
4158fi
4159
4160fi
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4162$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4163CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4164
4165 if
4166 test "x$enable_dependency_tracking" != xno \
4167 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4168 am__fastdepCC_TRUE=
4169 am__fastdepCC_FALSE='#'
4170else
4171 am__fastdepCC_TRUE='#'
4172 am__fastdepCC_FALSE=
4173fi
4174
4175
4176# By default we simply use the C compiler to build assembly code.
4177
4178test "${CCAS+set}" = set || CCAS=$CC
4179test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4180
4181
4182
4183depcc="$CCAS" am_compiler_list=
4184
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4186$as_echo_n "checking dependency style of $depcc... " >&6; }
4187if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4188 $as_echo_n "(cached) " >&6
4189else
4190 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4191 # We make a subdir and do the tests there. Otherwise we can end up
4192 # making bogus files that we don't know about and never remove. For
4193 # instance it was reported that on HP-UX the gcc test will end up
4194 # making a dummy file named `D' -- because `-MD' means `put the output
4195 # in D'.
Han Shenb42cc222013-11-18 20:49:224196 mkdir conftest.dir
4197 # Copy depcomp to subdir because otherwise we won't find it if we're
4198 # using a relative directory.
4199 cp "$am_depcomp" conftest.dir
4200 cd conftest.dir
4201 # We will build objects and dependencies in a subdirectory because
4202 # it helps to detect inapplicable dependency modes. For instance
4203 # both Tru64's cc and ICC support -MD to output dependencies as a
4204 # side effect of compilation, but ICC will put the dependencies in
4205 # the current directory while Tru64 will put them in the object
4206 # directory.
4207 mkdir sub
4208
4209 am_cv_CCAS_dependencies_compiler_type=none
4210 if test "$am_compiler_list" = ""; then
4211 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4212 fi
4213 am__universal=false
4214
4215
4216 for depmode in $am_compiler_list; do
4217 # Setup a source with many dependencies, because some compilers
4218 # like to wrap large dependency lists on column 80 (with \), and
4219 # we should not choose a depcomp mode which is confused by this.
4220 #
4221 # We need to recreate these files for each test, as the compiler may
4222 # overwrite some of them when testing with obscure command lines.
4223 # This happens at least with the AIX C compiler.
4224 : > sub/conftest.c
4225 for i in 1 2 3 4 5 6; do
4226 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4227 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4228 # Solaris 8's {/usr,}/bin/sh.
4229 touch sub/conftst$i.h
4230 done
4231 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4232
4233 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4234 # mode. It turns out that the SunPro C++ compiler does not properly
4235 # handle `-M -o', and we need to detect this. Also, some Intel
4236 # versions had trouble with output in subdirs
4237 am__obj=sub/conftest.${OBJEXT-o}
4238 am__minus_obj="-o $am__obj"
4239 case $depmode in
4240 gcc)
4241 # This depmode causes a compiler race in universal mode.
4242 test "$am__universal" = false || continue
4243 ;;
4244 nosideeffect)
4245 # after this tag, mechanisms are not by side-effect, so they'll
4246 # only be used when explicitly requested
4247 if test "x$enable_dependency_tracking" = xyes; then
4248 continue
4249 else
4250 break
4251 fi
4252 ;;
4253 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4254 # This compiler won't grok `-c -o', but also, the minuso test has
4255 # not run yet. These depmodes are late enough in the game, and
4256 # so weak that their functioning should not be impacted.
4257 am__obj=conftest.${OBJEXT-o}
4258 am__minus_obj=
4259 ;;
4260 none) break ;;
4261 esac
4262 if depmode=$depmode \
4263 source=sub/conftest.c object=$am__obj \
4264 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4265 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4266 >/dev/null 2>conftest.err &&
4267 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4269 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4271 # icc doesn't choke on unknown options, it will just issue warnings
4272 # or remarks (even with -Werror). So we grep stderr for any message
4273 # that says an option was ignored or not supported.
4274 # When given -MP, icc 7.0 and 7.1 complain thusly:
4275 # icc: Command line warning: ignoring option '-M'; no argument required
4276 # The diagnosis changed in icc 8.0:
4277 # icc: Command line remark: option '-MP' not supported
4278 if (grep 'ignoring option' conftest.err ||
4279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4280 am_cv_CCAS_dependencies_compiler_type=$depmode
4281 break
4282 fi
4283 fi
4284 done
4285
4286 cd ..
4287 rm -rf conftest.dir
4288else
4289 am_cv_CCAS_dependencies_compiler_type=none
4290fi
4291
4292fi
4293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4294$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4295CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4296
4297 if
4298 test "x$enable_dependency_tracking" != xno \
4299 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4300 am__fastdepCCAS_TRUE=
4301 am__fastdepCCAS_FALSE='#'
4302else
4303 am__fastdepCCAS_TRUE='#'
4304 am__fastdepCCAS_FALSE=
4305fi
4306
4307
4308
4309
4310
4311
4312# In order to override CFLAGS_FOR_TARGET, all of our special flags go
4313# in XCFLAGS. But we need them in CFLAGS during configury. So put them
4314# in both places for now and restore CFLAGS at the end of config.
4315save_CFLAGS="$CFLAGS"
4316
4317# Find other programs we need.
4318if test -n "$ac_tool_prefix"; then
4319 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4320set dummy ${ac_tool_prefix}ar; ac_word=$2
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322$as_echo_n "checking for $ac_word... " >&6; }
4323if test "${ac_cv_prog_AR+set}" = set; then :
4324 $as_echo_n "(cached) " >&6
4325else
4326 if test -n "$AR"; then
4327 ac_cv_prog_AR="$AR" # Let the user override the test.
4328else
4329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH
4331do
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336 ac_cv_prog_AR="${ac_tool_prefix}ar"
4337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 break 2
4339 fi
4340done
4341 done
4342IFS=$as_save_IFS
4343
4344fi
4345fi
4346AR=$ac_cv_prog_AR
4347if test -n "$AR"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4349$as_echo "$AR" >&6; }
4350else
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352$as_echo "no" >&6; }
4353fi
4354
4355
4356fi
4357if test -z "$ac_cv_prog_AR"; then
4358 ac_ct_AR=$AR
4359 # Extract the first word of "ar", so it can be a program name with args.
4360set dummy ar; ac_word=$2
4361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362$as_echo_n "checking for $ac_word... " >&6; }
4363if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4365else
4366 if test -n "$ac_ct_AR"; then
4367 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4368else
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_ac_ct_AR="ar"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380done
4381 done
4382IFS=$as_save_IFS
4383
4384fi
4385fi
4386ac_ct_AR=$ac_cv_prog_ac_ct_AR
4387if test -n "$ac_ct_AR"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4389$as_echo "$ac_ct_AR" >&6; }
4390else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392$as_echo "no" >&6; }
4393fi
4394
4395 if test "x$ac_ct_AR" = x; then
4396 AR=""
4397 else
4398 case $cross_compiling:$ac_tool_warned in
4399yes:)
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4402ac_tool_warned=yes ;;
4403esac
4404 AR=$ac_ct_AR
4405 fi
4406else
4407 AR="$ac_cv_prog_AR"
4408fi
4409
4410if test -n "$ac_tool_prefix"; then
4411 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4412set dummy ${ac_tool_prefix}nm; ac_word=$2
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4414$as_echo_n "checking for $ac_word... " >&6; }
4415if test "${ac_cv_prog_NM+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4417else
4418 if test -n "$NM"; then
4419 ac_cv_prog_NM="$NM" # Let the user override the test.
4420else
4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_NM="${ac_tool_prefix}nm"
4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4431 fi
4432done
4433 done
4434IFS=$as_save_IFS
4435
4436fi
4437fi
4438NM=$ac_cv_prog_NM
4439if test -n "$NM"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4441$as_echo "$NM" >&6; }
4442else
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444$as_echo "no" >&6; }
4445fi
4446
4447
4448fi
4449if test -z "$ac_cv_prog_NM"; then
4450 ac_ct_NM=$NM
4451 # Extract the first word of "nm", so it can be a program name with args.
4452set dummy nm; ac_word=$2
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454$as_echo_n "checking for $ac_word... " >&6; }
4455if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
4457else
4458 if test -n "$ac_ct_NM"; then
4459 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4460else
4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462for as_dir in $PATH
4463do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_ac_ct_NM="nm"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4471 fi
4472done
4473 done
4474IFS=$as_save_IFS
4475
4476fi
4477fi
4478ac_ct_NM=$ac_cv_prog_ac_ct_NM
4479if test -n "$ac_ct_NM"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4481$as_echo "$ac_ct_NM" >&6; }
4482else
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484$as_echo "no" >&6; }
4485fi
4486
4487 if test "x$ac_ct_NM" = x; then
4488 NM=""
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491yes:)
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494ac_tool_warned=yes ;;
4495esac
4496 NM=$ac_ct_NM
4497 fi
4498else
4499 NM="$ac_cv_prog_NM"
4500fi
4501
4502if test -n "$ac_tool_prefix"; then
4503 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4504set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506$as_echo_n "checking for $ac_word... " >&6; }
4507if test "${ac_cv_prog_RANLIB+set}" = set; then :
4508 $as_echo_n "(cached) " >&6
4509else
4510 if test -n "$RANLIB"; then
4511 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4512else
4513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514for as_dir in $PATH
4515do
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4523 fi
4524done
4525 done
4526IFS=$as_save_IFS
4527
4528fi
4529fi
4530RANLIB=$ac_cv_prog_RANLIB
4531if test -n "$RANLIB"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4533$as_echo "$RANLIB" >&6; }
4534else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536$as_echo "no" >&6; }
4537fi
4538
4539
4540fi
4541if test -z "$ac_cv_prog_RANLIB"; then
4542 ac_ct_RANLIB=$RANLIB
4543 # Extract the first word of "ranlib", so it can be a program name with args.
4544set dummy ranlib; ac_word=$2
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546$as_echo_n "checking for $ac_word... " >&6; }
4547if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
4549else
4550 if test -n "$ac_ct_RANLIB"; then
4551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4552else
4553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_ac_ct_RANLIB="ranlib"
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564done
4565 done
4566IFS=$as_save_IFS
4567
4568fi
4569fi
4570ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4571if test -n "$ac_ct_RANLIB"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4573$as_echo "$ac_ct_RANLIB" >&6; }
4574else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576$as_echo "no" >&6; }
4577fi
4578
4579 if test "x$ac_ct_RANLIB" = x; then
4580 RANLIB="ranlib-not-found-in-path-error"
4581 else
4582 case $cross_compiling:$ac_tool_warned in
4583yes:)
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4586ac_tool_warned=yes ;;
4587esac
4588 RANLIB=$ac_ct_RANLIB
4589 fi
4590else
4591 RANLIB="$ac_cv_prog_RANLIB"
4592fi
4593
4594# Extract the first word of "perl", so it can be a program name with args.
4595set dummy perl; ac_word=$2
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597$as_echo_n "checking for $ac_word... " >&6; }
4598if test "${ac_cv_path_PERL+set}" = set; then :
4599 $as_echo_n "(cached) " >&6
4600else
4601 case $PERL in
4602 [\\/]* | ?:[\\/]*)
4603 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4604 ;;
4605 *)
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607for as_dir in $PATH
4608do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 break 2
4616 fi
4617done
4618 done
4619IFS=$as_save_IFS
4620
4621 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4622 ;;
4623esac
4624fi
4625PERL=$ac_cv_path_PERL
4626if test -n "$PERL"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4628$as_echo "$PERL" >&6; }
4629else
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631$as_echo "no" >&6; }
4632fi
4633
4634
4635
4636
4637# Configure libtool
4638case `pwd` in
4639 *\ * | *\ *)
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4641$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4642esac
4643
4644
4645
4646macro_version='2.2.7a'
4647macro_revision='1.3134'
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661ltmain="$ac_aux_dir/ltmain.sh"
4662
4663# Backslashify metacharacters that are still active within
4664# double-quoted strings.
4665sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4666
4667# Same as above, but do not quote variable references.
4668double_quote_subst='s/\(["`\\]\)/\\\1/g'
4669
4670# Sed substitution to delay expansion of an escaped shell variable in a
4671# double_quote_subst'ed string.
4672delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4673
4674# Sed substitution to delay expansion of an escaped single quote.
4675delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4676
4677# Sed substitution to avoid accidental globbing in evaled expressions
4678no_glob_subst='s/\*/\\\*/g'
4679
4680ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4681ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4682ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4683
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4685$as_echo_n "checking how to print strings... " >&6; }
4686# Test print first, because it will be a builtin if present.
4687if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4688 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4689 ECHO='print -r --'
4690elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4691 ECHO='printf %s\n'
4692else
4693 # Use this function as a fallback that always works.
4694 func_fallback_echo ()
4695 {
4696 eval 'cat <<_LTECHO_EOF
4697$1
4698_LTECHO_EOF'
4699 }
4700 ECHO='func_fallback_echo'
4701fi
4702
4703# func_echo_all arg...
4704# Invoke $ECHO with all args, space-separated.
4705func_echo_all ()
4706{
4707 $ECHO ""
4708}
4709
4710case "$ECHO" in
4711 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4712$as_echo "printf" >&6; } ;;
4713 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4714$as_echo "print -r" >&6; } ;;
4715 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4716$as_echo "cat" >&6; } ;;
4717esac
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4733$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4734if test "${ac_cv_path_SED+set}" = set; then :
4735 $as_echo_n "(cached) " >&6
4736else
4737 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4738 for ac_i in 1 2 3 4 5 6 7; do
4739 ac_script="$ac_script$as_nl$ac_script"
4740 done
4741 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4742 { ac_script=; unset ac_script;}
4743 if test -z "$SED"; then
4744 ac_path_SED_found=false
4745 # Loop through the user's path and test for each of PROGNAME-LIST
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_prog in sed gsed; do
4752 for ac_exec_ext in '' $ac_executable_extensions; do
4753 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4754 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4755# Check for GNU ac_path_SED and select it if it is found.
4756 # Check for GNU $ac_path_SED
4757case `"$ac_path_SED" --version 2>&1` in
4758*GNU*)
4759 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4760*)
4761 ac_count=0
4762 $as_echo_n 0123456789 >"conftest.in"
4763 while :
4764 do
4765 cat "conftest.in" "conftest.in" >"conftest.tmp"
4766 mv "conftest.tmp" "conftest.in"
4767 cp "conftest.in" "conftest.nl"
4768 $as_echo '' >> "conftest.nl"
4769 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4770 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4771 as_fn_arith $ac_count + 1 && ac_count=$as_val
4772 if test $ac_count -gt ${ac_path_SED_max-0}; then
4773 # Best one so far, save it but keep looking for a better one
4774 ac_cv_path_SED="$ac_path_SED"
4775 ac_path_SED_max=$ac_count
4776 fi
4777 # 10*(2^10) chars as input seems more than enough
4778 test $ac_count -gt 10 && break
4779 done
4780 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4781esac
4782
4783 $ac_path_SED_found && break 3
4784 done
4785 done
4786 done
4787IFS=$as_save_IFS
4788 if test -z "$ac_cv_path_SED"; then
4789 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4790 fi
4791else
4792 ac_cv_path_SED=$SED
4793fi
4794
4795fi
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4797$as_echo "$ac_cv_path_SED" >&6; }
4798 SED="$ac_cv_path_SED"
4799 rm -f conftest.sed
4800
4801test -z "$SED" && SED=sed
4802Xsed="$SED -e 1s/^X//"
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4815$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4816if test "${ac_cv_path_GREP+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818else
4819 if test -z "$GREP"; then
4820 ac_path_GREP_found=false
4821 # Loop through the user's path and test for each of PROGNAME-LIST
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4824do
4825 IFS=$as_save_IFS
4826 test -z "$as_dir" && as_dir=.
4827 for ac_prog in grep ggrep; do
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4830 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4831# Check for GNU ac_path_GREP and select it if it is found.
4832 # Check for GNU $ac_path_GREP
4833case `"$ac_path_GREP" --version 2>&1` in
4834*GNU*)
4835 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4836*)
4837 ac_count=0
4838 $as_echo_n 0123456789 >"conftest.in"
4839 while :
4840 do
4841 cat "conftest.in" "conftest.in" >"conftest.tmp"
4842 mv "conftest.tmp" "conftest.in"
4843 cp "conftest.in" "conftest.nl"
4844 $as_echo 'GREP' >> "conftest.nl"
4845 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4846 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4847 as_fn_arith $ac_count + 1 && ac_count=$as_val
4848 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4849 # Best one so far, save it but keep looking for a better one
4850 ac_cv_path_GREP="$ac_path_GREP"
4851 ac_path_GREP_max=$ac_count
4852 fi
4853 # 10*(2^10) chars as input seems more than enough
4854 test $ac_count -gt 10 && break
4855 done
4856 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4857esac
4858
4859 $ac_path_GREP_found && break 3
4860 done
4861 done
4862 done
4863IFS=$as_save_IFS
4864 if test -z "$ac_cv_path_GREP"; then
4865 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4866 fi
4867else
4868 ac_cv_path_GREP=$GREP
4869fi
4870
4871fi
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4873$as_echo "$ac_cv_path_GREP" >&6; }
4874 GREP="$ac_cv_path_GREP"
4875
4876
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4878$as_echo_n "checking for egrep... " >&6; }
4879if test "${ac_cv_path_EGREP+set}" = set; then :
4880 $as_echo_n "(cached) " >&6
4881else
4882 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4883 then ac_cv_path_EGREP="$GREP -E"
4884 else
4885 if test -z "$EGREP"; then
4886 ac_path_EGREP_found=false
4887 # Loop through the user's path and test for each of PROGNAME-LIST
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4890do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_prog in egrep; do
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4896 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4897# Check for GNU ac_path_EGREP and select it if it is found.
4898 # Check for GNU $ac_path_EGREP
4899case `"$ac_path_EGREP" --version 2>&1` in
4900*GNU*)
4901 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4902*)
4903 ac_count=0
4904 $as_echo_n 0123456789 >"conftest.in"
4905 while :
4906 do
4907 cat "conftest.in" "conftest.in" >"conftest.tmp"
4908 mv "conftest.tmp" "conftest.in"
4909 cp "conftest.in" "conftest.nl"
4910 $as_echo 'EGREP' >> "conftest.nl"
4911 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4912 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4913 as_fn_arith $ac_count + 1 && ac_count=$as_val
4914 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4915 # Best one so far, save it but keep looking for a better one
4916 ac_cv_path_EGREP="$ac_path_EGREP"
4917 ac_path_EGREP_max=$ac_count
4918 fi
4919 # 10*(2^10) chars as input seems more than enough
4920 test $ac_count -gt 10 && break
4921 done
4922 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4923esac
4924
4925 $ac_path_EGREP_found && break 3
4926 done
4927 done
4928 done
4929IFS=$as_save_IFS
4930 if test -z "$ac_cv_path_EGREP"; then
4931 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4932 fi
4933else
4934 ac_cv_path_EGREP=$EGREP
4935fi
4936
4937 fi
4938fi
4939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4940$as_echo "$ac_cv_path_EGREP" >&6; }
4941 EGREP="$ac_cv_path_EGREP"
4942
4943
4944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4945$as_echo_n "checking for fgrep... " >&6; }
4946if test "${ac_cv_path_FGREP+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4948else
4949 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4950 then ac_cv_path_FGREP="$GREP -F"
4951 else
4952 if test -z "$FGREP"; then
4953 ac_path_FGREP_found=false
4954 # Loop through the user's path and test for each of PROGNAME-LIST
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4957do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_prog in fgrep; do
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4963 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4964# Check for GNU ac_path_FGREP and select it if it is found.
4965 # Check for GNU $ac_path_FGREP
4966case `"$ac_path_FGREP" --version 2>&1` in
4967*GNU*)
4968 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4969*)
4970 ac_count=0
4971 $as_echo_n 0123456789 >"conftest.in"
4972 while :
4973 do
4974 cat "conftest.in" "conftest.in" >"conftest.tmp"
4975 mv "conftest.tmp" "conftest.in"
4976 cp "conftest.in" "conftest.nl"
4977 $as_echo 'FGREP' >> "conftest.nl"
4978 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4980 as_fn_arith $ac_count + 1 && ac_count=$as_val
4981 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4982 # Best one so far, save it but keep looking for a better one
4983 ac_cv_path_FGREP="$ac_path_FGREP"
4984 ac_path_FGREP_max=$ac_count
4985 fi
4986 # 10*(2^10) chars as input seems more than enough
4987 test $ac_count -gt 10 && break
4988 done
4989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4990esac
4991
4992 $ac_path_FGREP_found && break 3
4993 done
4994 done
4995 done
4996IFS=$as_save_IFS
4997 if test -z "$ac_cv_path_FGREP"; then
4998 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4999 fi
5000else
5001 ac_cv_path_FGREP=$FGREP
5002fi
5003
5004 fi
5005fi
5006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5007$as_echo "$ac_cv_path_FGREP" >&6; }
5008 FGREP="$ac_cv_path_FGREP"
5009
5010
5011test -z "$GREP" && GREP=grep
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031# Check whether --with-gnu-ld was given.
5032if test "${with_gnu_ld+set}" = set; then :
5033 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5034else
5035 with_gnu_ld=no
5036fi
5037
5038ac_prog=ld
5039if test "$GCC" = yes; then
5040 # Check if gcc -print-prog-name=ld gives a path.
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5042$as_echo_n "checking for ld used by $CC... " >&6; }
5043 case $host in
5044 *-*-mingw*)
5045 # gcc leaves a trailing carriage return which upsets mingw
5046 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5047 *)
5048 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5049 esac
5050 case $ac_prog in
5051 # Accept absolute paths.
5052 [\\/]* | ?:[\\/]*)
5053 re_direlt='/[^/][^/]*/\.\./'
5054 # Canonicalize the pathname of ld
5055 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5056 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5057 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5058 done
5059 test -z "$LD" && LD="$ac_prog"
5060 ;;
5061 "")
5062 # If it fails, then pretend we aren't using GCC.
5063 ac_prog=ld
5064 ;;
5065 *)
5066 # If it is relative, then search for the first ld in PATH.
5067 with_gnu_ld=unknown
5068 ;;
5069 esac
5070elif test "$with_gnu_ld" = yes; then
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5072$as_echo_n "checking for GNU ld... " >&6; }
5073else
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5075$as_echo_n "checking for non-GNU ld... " >&6; }
5076fi
5077if test "${lt_cv_path_LD+set}" = set; then :
5078 $as_echo_n "(cached) " >&6
5079else
5080 if test -z "$LD"; then
5081 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5082 for ac_dir in $PATH; do
5083 IFS="$lt_save_ifs"
5084 test -z "$ac_dir" && ac_dir=.
5085 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5086 lt_cv_path_LD="$ac_dir/$ac_prog"
5087 # Check to see if the program is GNU ld. I'd rather use --version,
5088 # but apparently some variants of GNU ld only accept -v.
5089 # Break only if it was the GNU/non-GNU ld that we prefer.
5090 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5091 *GNU* | *'with BFD'*)
5092 test "$with_gnu_ld" != no && break
5093 ;;
5094 *)
5095 test "$with_gnu_ld" != yes && break
5096 ;;
5097 esac
5098 fi
5099 done
5100 IFS="$lt_save_ifs"
5101else
5102 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5103fi
5104fi
5105
5106LD="$lt_cv_path_LD"
5107if test -n "$LD"; then
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5109$as_echo "$LD" >&6; }
5110else
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5112$as_echo "no" >&6; }
5113fi
5114test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5116$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5117if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119else
5120 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5121case `$LD -v 2>&1 </dev/null` in
5122*GNU* | *'with BFD'*)
5123 lt_cv_prog_gnu_ld=yes
5124 ;;
5125*)
5126 lt_cv_prog_gnu_ld=no
5127 ;;
5128esac
5129fi
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5131$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5132with_gnu_ld=$lt_cv_prog_gnu_ld
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5143$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5144if test "${lt_cv_path_NM+set}" = set; then :
5145 $as_echo_n "(cached) " >&6
5146else
5147 if test -n "$NM"; then
5148 # Let the user override the test.
5149 lt_cv_path_NM="$NM"
5150else
5151 lt_nm_to_check="${ac_tool_prefix}nm"
5152 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5153 lt_nm_to_check="$lt_nm_to_check nm"
5154 fi
5155 for lt_tmp_nm in $lt_nm_to_check; do
5156 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5157 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5158 IFS="$lt_save_ifs"
5159 test -z "$ac_dir" && ac_dir=.
5160 tmp_nm="$ac_dir/$lt_tmp_nm"
5161 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5162 # Check to see if the nm accepts a BSD-compat flag.
5163 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5164 # nm: unknown option "B" ignored
5165 # Tru64's nm complains that /dev/null is an invalid object file
5166 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5167 */dev/null* | *'Invalid file or object type'*)
5168 lt_cv_path_NM="$tmp_nm -B"
5169 break
5170 ;;
5171 *)
5172 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5173 */dev/null*)
5174 lt_cv_path_NM="$tmp_nm -p"
5175 break
5176 ;;
5177 *)
5178 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5179 continue # so that we can try to find one that supports BSD flags
5180 ;;
5181 esac
5182 ;;
5183 esac
5184 fi
5185 done
5186 IFS="$lt_save_ifs"
5187 done
5188 : ${lt_cv_path_NM=no}
5189fi
5190fi
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5192$as_echo "$lt_cv_path_NM" >&6; }
5193if test "$lt_cv_path_NM" != "no"; then
5194 NM="$lt_cv_path_NM"
5195else
5196 # Didn't find any BSD compatible name lister, look for dumpbin.
5197 if test -n "$DUMPBIN"; then :
5198 # Let the user override the test.
5199 else
5200 if test -n "$ac_tool_prefix"; then
5201 for ac_prog in dumpbin "link -dump"
5202 do
5203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5204set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5206$as_echo_n "checking for $ac_word... " >&6; }
5207if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5209else
5210 if test -n "$DUMPBIN"; then
5211 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5212else
5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214for as_dir in $PATH
5215do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224done
5225 done
5226IFS=$as_save_IFS
5227
5228fi
5229fi
5230DUMPBIN=$ac_cv_prog_DUMPBIN
5231if test -n "$DUMPBIN"; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5233$as_echo "$DUMPBIN" >&6; }
5234else
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5236$as_echo "no" >&6; }
5237fi
5238
5239
5240 test -n "$DUMPBIN" && break
5241 done
5242fi
5243if test -z "$DUMPBIN"; then
5244 ac_ct_DUMPBIN=$DUMPBIN
5245 for ac_prog in dumpbin "link -dump"
5246do
5247 # Extract the first word of "$ac_prog", so it can be a program name with args.
5248set dummy $ac_prog; ac_word=$2
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5250$as_echo_n "checking for $ac_word... " >&6; }
5251if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5252 $as_echo_n "(cached) " >&6
5253else
5254 if test -n "$ac_ct_DUMPBIN"; then
5255 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5256else
5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258for as_dir in $PATH
5259do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5264 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 break 2
5267 fi
5268done
5269 done
5270IFS=$as_save_IFS
5271
5272fi
5273fi
5274ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5275if test -n "$ac_ct_DUMPBIN"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5277$as_echo "$ac_ct_DUMPBIN" >&6; }
5278else
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280$as_echo "no" >&6; }
5281fi
5282
5283
5284 test -n "$ac_ct_DUMPBIN" && break
5285done
5286
5287 if test "x$ac_ct_DUMPBIN" = x; then
5288 DUMPBIN=":"
5289 else
5290 case $cross_compiling:$ac_tool_warned in
5291yes:)
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5294ac_tool_warned=yes ;;
5295esac
5296 DUMPBIN=$ac_ct_DUMPBIN
5297 fi
5298fi
5299
5300 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5301 *COFF*)
5302 DUMPBIN="$DUMPBIN -symbols"
5303 ;;
5304 *)
5305 DUMPBIN=:
5306 ;;
5307 esac
5308 fi
5309
5310 if test "$DUMPBIN" != ":"; then
5311 NM="$DUMPBIN"
5312 fi
5313fi
5314test -z "$NM" && NM=nm
5315
5316
5317
5318
5319
5320
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5322$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5323if test "${lt_cv_nm_interface+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5325else
5326 lt_cv_nm_interface="BSD nm"
5327 echo "int some_variable = 0;" > conftest.$ac_ext
5328 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5329 (eval "$ac_compile" 2>conftest.err)
5330 cat conftest.err >&5
5331 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5332 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5333 cat conftest.err >&5
5334 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5335 cat conftest.out >&5
5336 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5337 lt_cv_nm_interface="MS dumpbin"
5338 fi
5339 rm -f conftest*
5340fi
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5342$as_echo "$lt_cv_nm_interface" >&6; }
5343
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5345$as_echo_n "checking whether ln -s works... " >&6; }
5346LN_S=$as_ln_s
5347if test "$LN_S" = "ln -s"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5349$as_echo "yes" >&6; }
5350else
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5352$as_echo "no, using $LN_S" >&6; }
5353fi
5354
5355# find the maximum length of command line arguments
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5357$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5358if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5359 $as_echo_n "(cached) " >&6
5360else
5361 i=0
5362 teststring="ABCD"
5363
5364 case $build_os in
5365 msdosdjgpp*)
5366 # On DJGPP, this test can blow up pretty badly due to problems in libc
5367 # (any single argument exceeding 2000 bytes causes a buffer overrun
5368 # during glob expansion). Even if it were fixed, the result of this
5369 # check would be larger than it should be.
5370 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5371 ;;
5372
5373 gnu*)
5374 # Under GNU Hurd, this test is not required because there is
5375 # no limit to the length of command line arguments.
5376 # Libtool will interpret -1 as no limit whatsoever
5377 lt_cv_sys_max_cmd_len=-1;
5378 ;;
5379
5380 cygwin* | mingw* | cegcc*)
5381 # On Win9x/ME, this test blows up -- it succeeds, but takes
5382 # about 5 minutes as the teststring grows exponentially.
5383 # Worse, since 9x/ME are not pre-emptively multitasking,
5384 # you end up with a "frozen" computer, even though with patience
5385 # the test eventually succeeds (with a max line length of 256k).
5386 # Instead, let's just punt: use the minimum linelength reported by
5387 # all of the supported platforms: 8192 (on NT/2K/XP).
5388 lt_cv_sys_max_cmd_len=8192;
5389 ;;
5390
5391 mint*)
5392 # On MiNT this can take a long time and run out of memory.
5393 lt_cv_sys_max_cmd_len=8192;
5394 ;;
5395
5396 amigaos*)
5397 # On AmigaOS with pdksh, this test takes hours, literally.
5398 # So we just punt and use a minimum line length of 8192.
5399 lt_cv_sys_max_cmd_len=8192;
5400 ;;
5401
5402 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5403 # This has been around since 386BSD, at least. Likely further.
5404 if test -x /sbin/sysctl; then
5405 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5406 elif test -x /usr/sbin/sysctl; then
5407 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5408 else
5409 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5410 fi
5411 # And add a safety zone
5412 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5414 ;;
5415
5416 interix*)
5417 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5418 lt_cv_sys_max_cmd_len=196608
5419 ;;
5420
5421 osf*)
5422 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5423 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5424 # nice to cause kernel panics so lets avoid the loop below.
5425 # First set a reasonable default.
5426 lt_cv_sys_max_cmd_len=16384
5427 #
5428 if test -x /sbin/sysconfig; then
5429 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5430 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5431 esac
5432 fi
5433 ;;
5434 sco3.2v5*)
5435 lt_cv_sys_max_cmd_len=102400
5436 ;;
5437 sysv5* | sco5v6* | sysv4.2uw2*)
5438 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5439 if test -n "$kargmax"; then
5440 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5441 else
5442 lt_cv_sys_max_cmd_len=32768
5443 fi
5444 ;;
5445 *)
5446 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5447 if test -n "$lt_cv_sys_max_cmd_len"; then
5448 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5449 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5450 else
5451 # Make teststring a little bigger before we do anything with it.
5452 # a 1K string should be a reasonable start.
5453 for i in 1 2 3 4 5 6 7 8 ; do
5454 teststring=$teststring$teststring
5455 done
5456 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5457 # If test is not a shell built-in, we'll probably end up computing a
5458 # maximum length that is only half of the actual maximum length, but
5459 # we can't tell.
5460 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5461 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5462 test $i != 17 # 1/2 MB should be enough
5463 do
5464 i=`expr $i + 1`
5465 teststring=$teststring$teststring
5466 done
5467 # Only check the string length outside the loop.
5468 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5469 teststring=
5470 # Add a significant safety factor because C++ compilers can tack on
5471 # massive amounts of additional arguments before passing them to the
5472 # linker. It appears as though 1/2 is a usable value.
5473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5474 fi
5475 ;;
5476 esac
5477
5478fi
5479
5480if test -n $lt_cv_sys_max_cmd_len ; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5482$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5483else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5485$as_echo "none" >&6; }
5486fi
5487max_cmd_len=$lt_cv_sys_max_cmd_len
5488
5489
5490
5491
5492
5493
5494: ${CP="cp -f"}
5495: ${MV="mv -f"}
5496: ${RM="rm -f"}
5497
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5499$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5500# Try some XSI features
5501xsi_shell=no
5502( _lt_dummy="a/b/c"
5503 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5504 = c,a/b,, \
5505 && eval 'test $(( 1 + 1 )) -eq 2 \
5506 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5507 && xsi_shell=yes
5508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5509$as_echo "$xsi_shell" >&6; }
5510
5511
5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5513$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5514lt_shell_append=no
5515( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5516 >/dev/null 2>&1 \
5517 && lt_shell_append=yes
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5519$as_echo "$lt_shell_append" >&6; }
5520
5521
5522if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5523 lt_unset=unset
5524else
5525 lt_unset=false
5526fi
5527
5528
5529
5530
5531
5532# test EBCDIC or ASCII
5533case `echo X|tr X '\101'` in
5534 A) # ASCII based system
5535 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5536 lt_SP2NL='tr \040 \012'
5537 lt_NL2SP='tr \015\012 \040\040'
5538 ;;
5539 *) # EBCDIC based system
5540 lt_SP2NL='tr \100 \n'
5541 lt_NL2SP='tr \r\n \100\100'
5542 ;;
5543esac
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5554$as_echo_n "checking for $LD option to reload object files... " >&6; }
5555if test "${lt_cv_ld_reload_flag+set}" = set; then :
5556 $as_echo_n "(cached) " >&6
5557else
5558 lt_cv_ld_reload_flag='-r'
5559fi
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5561$as_echo "$lt_cv_ld_reload_flag" >&6; }
5562reload_flag=$lt_cv_ld_reload_flag
5563case $reload_flag in
5564"" | " "*) ;;
5565*) reload_flag=" $reload_flag" ;;
5566esac
5567reload_cmds='$LD$reload_flag -o $output$reload_objs'
5568case $host_os in
5569 darwin*)
5570 if test "$GCC" = yes; then
5571 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5572 else
5573 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5574 fi
5575 ;;
5576esac
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586if test -n "$ac_tool_prefix"; then
5587 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5588set dummy ${ac_tool_prefix}objdump; ac_word=$2
5589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590$as_echo_n "checking for $ac_word... " >&6; }
5591if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5592 $as_echo_n "(cached) " >&6
5593else
5594 if test -n "$OBJDUMP"; then
5595 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5596else
5597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598for as_dir in $PATH
5599do
5600 IFS=$as_save_IFS
5601 test -z "$as_dir" && as_dir=.
5602 for ac_exec_ext in '' $ac_executable_extensions; do
5603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5604 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 break 2
5607 fi
5608done
5609 done
5610IFS=$as_save_IFS
5611
5612fi
5613fi
5614OBJDUMP=$ac_cv_prog_OBJDUMP
5615if test -n "$OBJDUMP"; then
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5617$as_echo "$OBJDUMP" >&6; }
5618else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620$as_echo "no" >&6; }
5621fi
5622
5623
5624fi
5625if test -z "$ac_cv_prog_OBJDUMP"; then
5626 ac_ct_OBJDUMP=$OBJDUMP
5627 # Extract the first word of "objdump", so it can be a program name with args.
5628set dummy objdump; ac_word=$2
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630$as_echo_n "checking for $ac_word... " >&6; }
5631if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5632 $as_echo_n "(cached) " >&6
5633else
5634 if test -n "$ac_ct_OBJDUMP"; then
5635 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5636else
5637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638for as_dir in $PATH
5639do
5640 IFS=$as_save_IFS
5641 test -z "$as_dir" && as_dir=.
5642 for ac_exec_ext in '' $ac_executable_extensions; do
5643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5644 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 break 2
5647 fi
5648done
5649 done
5650IFS=$as_save_IFS
5651
5652fi
5653fi
5654ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5655if test -n "$ac_ct_OBJDUMP"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5657$as_echo "$ac_ct_OBJDUMP" >&6; }
5658else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660$as_echo "no" >&6; }
5661fi
5662
5663 if test "x$ac_ct_OBJDUMP" = x; then
5664 OBJDUMP="false"
5665 else
5666 case $cross_compiling:$ac_tool_warned in
5667yes:)
5668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5670ac_tool_warned=yes ;;
5671esac
5672 OBJDUMP=$ac_ct_OBJDUMP
5673 fi
5674else
5675 OBJDUMP="$ac_cv_prog_OBJDUMP"
5676fi
5677
5678test -z "$OBJDUMP" && OBJDUMP=objdump
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5689$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5690if test "${lt_cv_deplibs_check_method+set}" = set; then :
5691 $as_echo_n "(cached) " >&6
5692else
5693 lt_cv_file_magic_cmd='$MAGIC_CMD'
5694lt_cv_file_magic_test_file=
5695lt_cv_deplibs_check_method='unknown'
5696# Need to set the preceding variable on all platforms that support
5697# interlibrary dependencies.
5698# 'none' -- dependencies not supported.
5699# `unknown' -- same as none, but documents that we really don't know.
5700# 'pass_all' -- all dependencies passed with no checks.
5701# 'test_compile' -- check by making test program.
5702# 'file_magic [[regex]]' -- check by looking for files in library path
5703# which responds to the $file_magic_cmd with a given extended regex.
5704# If you have `file' or equivalent on your system and you're not sure
5705# whether `pass_all' will *always* work, you probably want this one.
5706
5707case $host_os in
5708aix[4-9]*)
5709 lt_cv_deplibs_check_method=pass_all
5710 ;;
5711
5712beos*)
5713 lt_cv_deplibs_check_method=pass_all
5714 ;;
5715
5716bsdi[45]*)
5717 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5718 lt_cv_file_magic_cmd='/usr/bin/file -L'
5719 lt_cv_file_magic_test_file=/shlib/libc.so
5720 ;;
5721
5722cygwin*)
5723 # func_win32_libid is a shell function defined in ltmain.sh
5724 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5725 lt_cv_file_magic_cmd='func_win32_libid'
5726 ;;
5727
5728mingw* | pw32*)
5729 # Base MSYS/MinGW do not provide the 'file' command needed by
5730 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5731 # unless we find 'file', for example because we are cross-compiling.
5732 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5733 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5734 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5735 lt_cv_file_magic_cmd='func_win32_libid'
5736 else
5737 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5738 lt_cv_file_magic_cmd='$OBJDUMP -f'
5739 fi
5740 ;;
5741
5742cegcc*)
5743 # use the weaker test based on 'objdump'. See mingw*.
5744 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5745 lt_cv_file_magic_cmd='$OBJDUMP -f'
5746 ;;
5747
5748darwin* | rhapsody*)
5749 lt_cv_deplibs_check_method=pass_all
5750 ;;
5751
5752freebsd* | dragonfly*)
5753 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5754 case $host_cpu in
5755 i*86 )
5756 # Not sure whether the presence of OpenBSD here was a mistake.
5757 # Let's accept both of them until this is cleared up.
5758 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5759 lt_cv_file_magic_cmd=/usr/bin/file
5760 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5761 ;;
5762 esac
5763 else
5764 lt_cv_deplibs_check_method=pass_all
5765 fi
5766 ;;
5767
5768gnu*)
5769 lt_cv_deplibs_check_method=pass_all
5770 ;;
5771
5772haiku*)
5773 lt_cv_deplibs_check_method=pass_all
5774 ;;
5775
5776hpux10.20* | hpux11*)
5777 lt_cv_file_magic_cmd=/usr/bin/file
5778 case $host_cpu in
5779 ia64*)
5780 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5781 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5782 ;;
5783 hppa*64*)
5784 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]'
5785 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5786 ;;
5787 *)
5788 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5789 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5790 ;;
5791 esac
5792 ;;
5793
5794interix[3-9]*)
5795 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5796 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5797 ;;
5798
5799irix5* | irix6* | nonstopux*)
5800 case $LD in
5801 *-32|*"-32 ") libmagic=32-bit;;
5802 *-n32|*"-n32 ") libmagic=N32;;
5803 *-64|*"-64 ") libmagic=64-bit;;
5804 *) libmagic=never-match;;
5805 esac
5806 lt_cv_deplibs_check_method=pass_all
5807 ;;
5808
5809# This must be Linux ELF.
5810linux* | k*bsd*-gnu | kopensolaris*-gnu)
5811 lt_cv_deplibs_check_method=pass_all
5812 ;;
5813
5814netbsd*)
5815 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5817 else
5818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5819 fi
5820 ;;
5821
5822newos6*)
5823 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5824 lt_cv_file_magic_cmd=/usr/bin/file
5825 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5826 ;;
5827
5828*nto* | *qnx*)
5829 lt_cv_deplibs_check_method=pass_all
5830 ;;
5831
5832openbsd*)
5833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5834 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5835 else
5836 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5837 fi
5838 ;;
5839
5840osf3* | osf4* | osf5*)
5841 lt_cv_deplibs_check_method=pass_all
5842 ;;
5843
5844rdos*)
5845 lt_cv_deplibs_check_method=pass_all
5846 ;;
5847
5848solaris*)
5849 lt_cv_deplibs_check_method=pass_all
5850 ;;
5851
5852sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5853 lt_cv_deplibs_check_method=pass_all
5854 ;;
5855
5856sysv4 | sysv4.3*)
5857 case $host_vendor in
5858 motorola)
5859 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]'
5860 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5861 ;;
5862 ncr)
5863 lt_cv_deplibs_check_method=pass_all
5864 ;;
5865 sequent)
5866 lt_cv_file_magic_cmd='/bin/file'
5867 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5868 ;;
5869 sni)
5870 lt_cv_file_magic_cmd='/bin/file'
5871 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5872 lt_cv_file_magic_test_file=/lib/libc.so
5873 ;;
5874 siemens)
5875 lt_cv_deplibs_check_method=pass_all
5876 ;;
5877 pc)
5878 lt_cv_deplibs_check_method=pass_all
5879 ;;
5880 esac
5881 ;;
5882
5883tpf*)
5884 lt_cv_deplibs_check_method=pass_all
5885 ;;
5886esac
5887
5888fi
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5890$as_echo "$lt_cv_deplibs_check_method" >&6; }
5891file_magic_cmd=$lt_cv_file_magic_cmd
5892deplibs_check_method=$lt_cv_deplibs_check_method
5893test -z "$deplibs_check_method" && deplibs_check_method=unknown
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906if test -n "$ac_tool_prefix"; then
5907 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5908set dummy ${ac_tool_prefix}ar; ac_word=$2
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910$as_echo_n "checking for $ac_word... " >&6; }
5911if test "${ac_cv_prog_AR+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913else
5914 if test -n "$AR"; then
5915 ac_cv_prog_AR="$AR" # Let the user override the test.
5916else
5917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918for as_dir in $PATH
5919do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5924 ac_cv_prog_AR="${ac_tool_prefix}ar"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928done
5929 done
5930IFS=$as_save_IFS
5931
5932fi
5933fi
5934AR=$ac_cv_prog_AR
5935if test -n "$AR"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5937$as_echo "$AR" >&6; }
5938else
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940$as_echo "no" >&6; }
5941fi
5942
5943
5944fi
5945if test -z "$ac_cv_prog_AR"; then
5946 ac_ct_AR=$AR
5947 # Extract the first word of "ar", so it can be a program name with args.
5948set dummy ar; ac_word=$2
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950$as_echo_n "checking for $ac_word... " >&6; }
5951if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5953else
5954 if test -n "$ac_ct_AR"; then
5955 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5956else
5957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5964 ac_cv_prog_ac_ct_AR="ar"
5965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 break 2
5967 fi
5968done
5969 done
5970IFS=$as_save_IFS
5971
5972fi
5973fi
5974ac_ct_AR=$ac_cv_prog_ac_ct_AR
5975if test -n "$ac_ct_AR"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5977$as_echo "$ac_ct_AR" >&6; }
5978else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980$as_echo "no" >&6; }
5981fi
5982
5983 if test "x$ac_ct_AR" = x; then
5984 AR="false"
5985 else
5986 case $cross_compiling:$ac_tool_warned in
5987yes:)
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990ac_tool_warned=yes ;;
5991esac
5992 AR=$ac_ct_AR
5993 fi
5994else
5995 AR="$ac_cv_prog_AR"
5996fi
5997
5998test -z "$AR" && AR=ar
5999test -z "$AR_FLAGS" && AR_FLAGS=cru
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011if test -n "$ac_tool_prefix"; then
6012 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6013set dummy ${ac_tool_prefix}strip; ac_word=$2
6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015$as_echo_n "checking for $ac_word... " >&6; }
6016if test "${ac_cv_prog_STRIP+set}" = set; then :
6017 $as_echo_n "(cached) " >&6
6018else
6019 if test -n "$STRIP"; then
6020 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6021else
6022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023for as_dir in $PATH
6024do
6025 IFS=$as_save_IFS
6026 test -z "$as_dir" && as_dir=.
6027 for ac_exec_ext in '' $ac_executable_extensions; do
6028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031 break 2
6032 fi
6033done
6034 done
6035IFS=$as_save_IFS
6036
6037fi
6038fi
6039STRIP=$ac_cv_prog_STRIP
6040if test -n "$STRIP"; then
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6042$as_echo "$STRIP" >&6; }
6043else
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045$as_echo "no" >&6; }
6046fi
6047
6048
6049fi
6050if test -z "$ac_cv_prog_STRIP"; then
6051 ac_ct_STRIP=$STRIP
6052 # Extract the first word of "strip", so it can be a program name with args.
6053set dummy strip; ac_word=$2
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055$as_echo_n "checking for $ac_word... " >&6; }
6056if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6058else
6059 if test -n "$ac_ct_STRIP"; then
6060 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6061else
6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063for as_dir in $PATH
6064do
6065 IFS=$as_save_IFS
6066 test -z "$as_dir" && as_dir=.
6067 for ac_exec_ext in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_prog_ac_ct_STRIP="strip"
6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071 break 2
6072 fi
6073done
6074 done
6075IFS=$as_save_IFS
6076
6077fi
6078fi
6079ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6080if test -n "$ac_ct_STRIP"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6082$as_echo "$ac_ct_STRIP" >&6; }
6083else
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085$as_echo "no" >&6; }
6086fi
6087
6088 if test "x$ac_ct_STRIP" = x; then
6089 STRIP=":"
6090 else
6091 case $cross_compiling:$ac_tool_warned in
6092yes:)
6093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095ac_tool_warned=yes ;;
6096esac
6097 STRIP=$ac_ct_STRIP
6098 fi
6099else
6100 STRIP="$ac_cv_prog_STRIP"
6101fi
6102
6103test -z "$STRIP" && STRIP=:
6104
6105
6106
6107
6108
6109
6110if test -n "$ac_tool_prefix"; then
6111 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6112set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114$as_echo_n "checking for $ac_word... " >&6; }
6115if test "${ac_cv_prog_RANLIB+set}" = set; then :
6116 $as_echo_n "(cached) " >&6
6117else
6118 if test -n "$RANLIB"; then
6119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6120else
6121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122for as_dir in $PATH
6123do
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 break 2
6131 fi
6132done
6133 done
6134IFS=$as_save_IFS
6135
6136fi
6137fi
6138RANLIB=$ac_cv_prog_RANLIB
6139if test -n "$RANLIB"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6141$as_echo "$RANLIB" >&6; }
6142else
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144$as_echo "no" >&6; }
6145fi
6146
6147
6148fi
6149if test -z "$ac_cv_prog_RANLIB"; then
6150 ac_ct_RANLIB=$RANLIB
6151 # Extract the first word of "ranlib", so it can be a program name with args.
6152set dummy ranlib; ac_word=$2
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154$as_echo_n "checking for $ac_word... " >&6; }
6155if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6156 $as_echo_n "(cached) " >&6
6157else
6158 if test -n "$ac_ct_RANLIB"; then
6159 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6160else
6161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162for as_dir in $PATH
6163do
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168 ac_cv_prog_ac_ct_RANLIB="ranlib"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6171 fi
6172done
6173 done
6174IFS=$as_save_IFS
6175
6176fi
6177fi
6178ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6179if test -n "$ac_ct_RANLIB"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6181$as_echo "$ac_ct_RANLIB" >&6; }
6182else
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184$as_echo "no" >&6; }
6185fi
6186
6187 if test "x$ac_ct_RANLIB" = x; then
6188 RANLIB=":"
6189 else
6190 case $cross_compiling:$ac_tool_warned in
6191yes:)
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6194ac_tool_warned=yes ;;
6195esac
6196 RANLIB=$ac_ct_RANLIB
6197 fi
6198else
6199 RANLIB="$ac_cv_prog_RANLIB"
6200fi
6201
6202test -z "$RANLIB" && RANLIB=:
6203
6204
6205
6206
6207
6208
6209# Determine commands to create old-style static archives.
6210old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6211old_postinstall_cmds='chmod 644 $oldlib'
6212old_postuninstall_cmds=
6213
6214if test -n "$RANLIB"; then
6215 case $host_os in
6216 openbsd*)
6217 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6218 ;;
6219 *)
6220 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6221 ;;
6222 esac
6223 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6224fi
6225
6226case $host_os in
6227 darwin*)
6228 lock_old_archive_extraction=yes ;;
6229 *)
6230 lock_old_archive_extraction=no ;;
6231esac
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271# If no C compiler was specified, use CC.
6272LTCC=${LTCC-"$CC"}
6273
6274# If no C compiler flags were specified, use CFLAGS.
6275LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6276
6277# Allow CC to be a program name with arguments.
6278compiler=$CC
6279
6280
6281# Check for command to grab the raw symbol name followed by C symbol from nm.
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6283$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6284if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6285 $as_echo_n "(cached) " >&6
6286else
6287
6288# These are sane defaults that work on at least a few old systems.
6289# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6290
6291# Character class describing NM global symbol codes.
6292symcode='[BCDEGRST]'
6293
6294# Regexp to match symbols that can be accessed directly from C.
6295sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6296
6297# Define system-specific variables.
6298case $host_os in
6299aix*)
6300 symcode='[BCDT]'
6301 ;;
6302cygwin* | mingw* | pw32* | cegcc*)
6303 symcode='[ABCDGISTW]'
6304 ;;
6305hpux*)
6306 if test "$host_cpu" = ia64; then
6307 symcode='[ABCDEGRST]'
6308 fi
6309 ;;
6310irix* | nonstopux*)
6311 symcode='[BCDEGRST]'
6312 ;;
6313osf*)
6314 symcode='[BCDEGQRST]'
6315 ;;
6316solaris*)
6317 symcode='[BDRT]'
6318 ;;
6319sco3.2v5*)
6320 symcode='[DT]'
6321 ;;
6322sysv4.2uw2*)
6323 symcode='[DT]'
6324 ;;
6325sysv5* | sco5v6* | unixware* | OpenUNIX*)
6326 symcode='[ABDT]'
6327 ;;
6328sysv4)
6329 symcode='[DFNSTU]'
6330 ;;
6331esac
6332
6333# If we're using GNU nm, then use its standard symbol codes.
6334case `$NM -V 2>&1` in
6335*GNU* | *'with BFD'*)
6336 symcode='[ABCDGIRSTW]' ;;
6337esac
6338
6339# Transform an extracted symbol line into a proper C declaration.
6340# Some systems (esp. on ia64) link data and code symbols differently,
6341# so use this general approach.
6342lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6343
6344# Transform an extracted symbol line into symbol name and symbol address
6345lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6346lt_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'"
6347
6348# Handle CRLF in mingw tool chain
6349opt_cr=
6350case $build_os in
6351mingw*)
6352 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6353 ;;
6354esac
6355
6356# Try without a prefix underscore, then with it.
6357for ac_symprfx in "" "_"; do
6358
6359 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6360 symxfrm="\\1 $ac_symprfx\\2 \\2"
6361
6362 # Write the raw and C identifiers.
6363 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6364 # Fake it for dumpbin and say T for any non-static function
6365 # and D for any global variable.
6366 # Also find C++ and __fastcall symbols from MSVC++,
6367 # which start with @ or ?.
6368 lt_cv_sys_global_symbol_pipe="$AWK '"\
6369" {last_section=section; section=\$ 3};"\
6370" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6371" \$ 0!~/External *\|/{next};"\
6372" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6373" {if(hide[section]) next};"\
6374" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6375" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6376" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6377" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6378" ' prfx=^$ac_symprfx"
6379 else
6380 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6381 fi
6382
6383 # Check to see that the pipe works correctly.
6384 pipe_works=no
6385
6386 rm -f conftest*
6387 cat > conftest.$ac_ext <<_LT_EOF
6388#ifdef __cplusplus
6389extern "C" {
6390#endif
6391char nm_test_var;
6392void nm_test_func(void);
6393void nm_test_func(void){}
6394#ifdef __cplusplus
6395}
6396#endif
6397int main(){nm_test_var='a';nm_test_func();return(0);}
6398_LT_EOF
6399
6400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6401 (eval $ac_compile) 2>&5
6402 ac_status=$?
6403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404 test $ac_status = 0; }; then
6405 # Now try to grab the symbols.
6406 nlist=conftest.nm
6407 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6408 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6409 ac_status=$?
6410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411 test $ac_status = 0; } && test -s "$nlist"; then
6412 # Try sorting and uniquifying the output.
6413 if sort "$nlist" | uniq > "$nlist"T; then
6414 mv -f "$nlist"T "$nlist"
6415 else
6416 rm -f "$nlist"T
6417 fi
6418
6419 # Make sure that we snagged all the symbols we need.
6420 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6421 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6422 cat <<_LT_EOF > conftest.$ac_ext
6423#ifdef __cplusplus
6424extern "C" {
6425#endif
6426
6427_LT_EOF
6428 # Now generate the symbol file.
6429 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6430
6431 cat <<_LT_EOF >> conftest.$ac_ext
6432
6433/* The mapping between symbol names and symbols. */
6434const struct {
6435 const char *name;
6436 void *address;
6437}
6438lt__PROGRAM__LTX_preloaded_symbols[] =
6439{
6440 { "@PROGRAM@", (void *) 0 },
6441_LT_EOF
6442 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6443 cat <<\_LT_EOF >> conftest.$ac_ext
6444 {0, (void *) 0}
6445};
6446
6447/* This works around a problem in FreeBSD linker */
6448#ifdef FREEBSD_WORKAROUND
6449static const void *lt_preloaded_setup() {
6450 return lt__PROGRAM__LTX_preloaded_symbols;
6451}
6452#endif
6453
6454#ifdef __cplusplus
6455}
6456#endif
6457_LT_EOF
6458 # Now try linking the two files.
6459 mv conftest.$ac_objext conftstm.$ac_objext
6460 lt_save_LIBS="$LIBS"
6461 lt_save_CFLAGS="$CFLAGS"
6462 LIBS="conftstm.$ac_objext"
6463 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6465 (eval $ac_link) 2>&5
6466 ac_status=$?
6467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6468 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6469 pipe_works=yes
6470 fi
6471 LIBS="$lt_save_LIBS"
6472 CFLAGS="$lt_save_CFLAGS"
6473 else
6474 echo "cannot find nm_test_func in $nlist" >&5
6475 fi
6476 else
6477 echo "cannot find nm_test_var in $nlist" >&5
6478 fi
6479 else
6480 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6481 fi
6482 else
6483 echo "$progname: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6485 fi
6486 rm -rf conftest* conftst*
6487
6488 # Do not use the global_symbol_pipe unless it works.
6489 if test "$pipe_works" = yes; then
6490 break
6491 else
6492 lt_cv_sys_global_symbol_pipe=
6493 fi
6494done
6495
6496fi
6497
6498if test -z "$lt_cv_sys_global_symbol_pipe"; then
6499 lt_cv_sys_global_symbol_to_cdecl=
6500fi
6501if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6503$as_echo "failed" >&6; }
6504else
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6506$as_echo "ok" >&6; }
6507fi
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531# Check whether --enable-libtool-lock was given.
6532if test "${enable_libtool_lock+set}" = set; then :
6533 enableval=$enable_libtool_lock;
6534fi
6535
6536test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6537
6538# Some flags need to be propagated to the compiler or linker for good
6539# libtool support.
6540case $host in
6541ia64-*-hpux*)
6542 # Find out which ABI we are using.
6543 echo 'int i;' > conftest.$ac_ext
6544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6545 (eval $ac_compile) 2>&5
6546 ac_status=$?
6547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6548 test $ac_status = 0; }; then
6549 case `/usr/bin/file conftest.$ac_objext` in
6550 *ELF-32*)
6551 HPUX_IA64_MODE="32"
6552 ;;
6553 *ELF-64*)
6554 HPUX_IA64_MODE="64"
6555 ;;
6556 esac
6557 fi
6558 rm -rf conftest*
6559 ;;
6560*-*-irix6*)
6561 # Find out which ABI we are using.
6562 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6564 (eval $ac_compile) 2>&5
6565 ac_status=$?
6566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6567 test $ac_status = 0; }; then
6568 if test "$lt_cv_prog_gnu_ld" = yes; then
6569 case `/usr/bin/file conftest.$ac_objext` in
6570 *32-bit*)
6571 LD="${LD-ld} -melf32bsmip"
6572 ;;
6573 *N32*)
6574 LD="${LD-ld} -melf32bmipn32"
6575 ;;
6576 *64-bit*)
6577 LD="${LD-ld} -melf64bmip"
6578 ;;
6579 esac
6580 else
6581 case `/usr/bin/file conftest.$ac_objext` in
6582 *32-bit*)
6583 LD="${LD-ld} -32"
6584 ;;
6585 *N32*)
6586 LD="${LD-ld} -n32"
6587 ;;
6588 *64-bit*)
6589 LD="${LD-ld} -64"
6590 ;;
6591 esac
6592 fi
6593 fi
6594 rm -rf conftest*
6595 ;;
6596
6597x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6598s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6599 # Find out which ABI we are using.
6600 echo 'int i;' > conftest.$ac_ext
6601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6602 (eval $ac_compile) 2>&5
6603 ac_status=$?
6604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6605 test $ac_status = 0; }; then
6606 case `/usr/bin/file conftest.o` in
6607 *32-bit*)
6608 case $host in
6609 x86_64-*kfreebsd*-gnu)
6610 LD="${LD-ld} -m elf_i386_fbsd"
6611 ;;
6612 x86_64-*linux*)
6613 case `/usr/bin/file conftest.o` in
6614 *x86-64*)
6615 LD="${LD-ld} -m elf32_x86_64"
6616 ;;
6617 *)
6618 LD="${LD-ld} -m elf_i386"
6619 ;;
6620 esac
6621 ;;
Luis Lozano2f9796c2014-09-12 21:35:086622 powerpc64le-*linux*)
Han Shenb42cc222013-11-18 20:49:226623 LD="${LD-ld} -m elf32lppclinux"
6624 ;;
Luis Lozano2f9796c2014-09-12 21:35:086625 powerpc64-*linux*)
Han Shenb42cc222013-11-18 20:49:226626 LD="${LD-ld} -m elf32ppclinux"
6627 ;;
6628 s390x-*linux*)
6629 LD="${LD-ld} -m elf_s390"
6630 ;;
6631 sparc64-*linux*)
6632 LD="${LD-ld} -m elf32_sparc"
6633 ;;
6634 esac
6635 ;;
6636 *64-bit*)
6637 case $host in
6638 x86_64-*kfreebsd*-gnu)
6639 LD="${LD-ld} -m elf_x86_64_fbsd"
6640 ;;
6641 x86_64-*linux*)
6642 LD="${LD-ld} -m elf_x86_64"
6643 ;;
Luis Lozano2f9796c2014-09-12 21:35:086644 powerpcle-*linux*)
Han Shenb42cc222013-11-18 20:49:226645 LD="${LD-ld} -m elf64lppc"
6646 ;;
Luis Lozano2f9796c2014-09-12 21:35:086647 powerpc-*linux*)
Han Shenb42cc222013-11-18 20:49:226648 LD="${LD-ld} -m elf64ppc"
6649 ;;
6650 s390*-*linux*|s390*-*tpf*)
6651 LD="${LD-ld} -m elf64_s390"
6652 ;;
6653 sparc*-*linux*)
6654 LD="${LD-ld} -m elf64_sparc"
6655 ;;
6656 esac
6657 ;;
6658 esac
6659 fi
6660 rm -rf conftest*
6661 ;;
6662
6663*-*-sco3.2v5*)
6664 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6665 SAVE_CFLAGS="$CFLAGS"
6666 CFLAGS="$CFLAGS -belf"
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6668$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6669if test "${lt_cv_cc_needs_belf+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6671else
6672 ac_ext=c
6673ac_cpp='$CPP $CPPFLAGS'
6674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6676ac_compiler_gnu=$ac_cv_c_compiler_gnu
6677
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679/* end confdefs.h. */
6680
6681int
6682main ()
6683{
6684
6685 ;
6686 return 0;
6687}
6688_ACEOF
6689if ac_fn_c_try_link "$LINENO"; then :
6690 lt_cv_cc_needs_belf=yes
6691else
6692 lt_cv_cc_needs_belf=no
6693fi
6694rm -f core conftest.err conftest.$ac_objext \
6695 conftest$ac_exeext conftest.$ac_ext
6696 ac_ext=c
6697ac_cpp='$CPP $CPPFLAGS'
6698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6700ac_compiler_gnu=$ac_cv_c_compiler_gnu
6701
6702fi
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6704$as_echo "$lt_cv_cc_needs_belf" >&6; }
6705 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6706 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6707 CFLAGS="$SAVE_CFLAGS"
6708 fi
6709 ;;
6710sparc*-*solaris*)
6711 # Find out which ABI we are using.
6712 echo 'int i;' > conftest.$ac_ext
6713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6714 (eval $ac_compile) 2>&5
6715 ac_status=$?
6716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6717 test $ac_status = 0; }; then
6718 case `/usr/bin/file conftest.o` in
6719 *64-bit*)
6720 case $lt_cv_prog_gnu_ld in
6721 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6722 *)
6723 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6724 LD="${LD-ld} -64"
6725 fi
6726 ;;
6727 esac
6728 ;;
6729 esac
6730 fi
6731 rm -rf conftest*
6732 ;;
6733esac
6734
6735need_locks="$enable_libtool_lock"
6736
6737
6738 case $host_os in
6739 rhapsody* | darwin*)
6740 if test -n "$ac_tool_prefix"; then
6741 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6742set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744$as_echo_n "checking for $ac_word... " >&6; }
6745if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6746 $as_echo_n "(cached) " >&6
6747else
6748 if test -n "$DSYMUTIL"; then
6749 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6750else
6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762done
6763 done
6764IFS=$as_save_IFS
6765
6766fi
6767fi
6768DSYMUTIL=$ac_cv_prog_DSYMUTIL
6769if test -n "$DSYMUTIL"; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6771$as_echo "$DSYMUTIL" >&6; }
6772else
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774$as_echo "no" >&6; }
6775fi
6776
6777
6778fi
6779if test -z "$ac_cv_prog_DSYMUTIL"; then
6780 ac_ct_DSYMUTIL=$DSYMUTIL
6781 # Extract the first word of "dsymutil", so it can be a program name with args.
6782set dummy dsymutil; ac_word=$2
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784$as_echo_n "checking for $ac_word... " >&6; }
6785if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6787else
6788 if test -n "$ac_ct_DSYMUTIL"; then
6789 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6790else
6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792for as_dir in $PATH
6793do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802done
6803 done
6804IFS=$as_save_IFS
6805
6806fi
6807fi
6808ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6809if test -n "$ac_ct_DSYMUTIL"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6811$as_echo "$ac_ct_DSYMUTIL" >&6; }
6812else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814$as_echo "no" >&6; }
6815fi
6816
6817 if test "x$ac_ct_DSYMUTIL" = x; then
6818 DSYMUTIL=":"
6819 else
6820 case $cross_compiling:$ac_tool_warned in
6821yes:)
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6824ac_tool_warned=yes ;;
6825esac
6826 DSYMUTIL=$ac_ct_DSYMUTIL
6827 fi
6828else
6829 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6830fi
6831
6832 if test -n "$ac_tool_prefix"; then
6833 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6834set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836$as_echo_n "checking for $ac_word... " >&6; }
6837if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6838 $as_echo_n "(cached) " >&6
6839else
6840 if test -n "$NMEDIT"; then
6841 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6842else
6843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844for as_dir in $PATH
6845do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854done
6855 done
6856IFS=$as_save_IFS
6857
6858fi
6859fi
6860NMEDIT=$ac_cv_prog_NMEDIT
6861if test -n "$NMEDIT"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6863$as_echo "$NMEDIT" >&6; }
6864else
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866$as_echo "no" >&6; }
6867fi
6868
6869
6870fi
6871if test -z "$ac_cv_prog_NMEDIT"; then
6872 ac_ct_NMEDIT=$NMEDIT
6873 # Extract the first word of "nmedit", so it can be a program name with args.
6874set dummy nmedit; ac_word=$2
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876$as_echo_n "checking for $ac_word... " >&6; }
6877if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6878 $as_echo_n "(cached) " >&6
6879else
6880 if test -n "$ac_ct_NMEDIT"; then
6881 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6882else
6883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884for as_dir in $PATH
6885do
6886 IFS=$as_save_IFS
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 break 2
6893 fi
6894done
6895 done
6896IFS=$as_save_IFS
6897
6898fi
6899fi
6900ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6901if test -n "$ac_ct_NMEDIT"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6903$as_echo "$ac_ct_NMEDIT" >&6; }
6904else
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906$as_echo "no" >&6; }
6907fi
6908
6909 if test "x$ac_ct_NMEDIT" = x; then
6910 NMEDIT=":"
6911 else
6912 case $cross_compiling:$ac_tool_warned in
6913yes:)
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6915$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6916ac_tool_warned=yes ;;
6917esac
6918 NMEDIT=$ac_ct_NMEDIT
6919 fi
6920else
6921 NMEDIT="$ac_cv_prog_NMEDIT"
6922fi
6923
6924 if test -n "$ac_tool_prefix"; then
6925 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6926set dummy ${ac_tool_prefix}lipo; ac_word=$2
6927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928$as_echo_n "checking for $ac_word... " >&6; }
6929if test "${ac_cv_prog_LIPO+set}" = set; then :
6930 $as_echo_n "(cached) " >&6
6931else
6932 if test -n "$LIPO"; then
6933 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6934else
6935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946done
6947 done
6948IFS=$as_save_IFS
6949
6950fi
6951fi
6952LIPO=$ac_cv_prog_LIPO
6953if test -n "$LIPO"; then
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6955$as_echo "$LIPO" >&6; }
6956else
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958$as_echo "no" >&6; }
6959fi
6960
6961
6962fi
6963if test -z "$ac_cv_prog_LIPO"; then
6964 ac_ct_LIPO=$LIPO
6965 # Extract the first word of "lipo", so it can be a program name with args.
6966set dummy lipo; ac_word=$2
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968$as_echo_n "checking for $ac_word... " >&6; }
6969if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6970 $as_echo_n "(cached) " >&6
6971else
6972 if test -n "$ac_ct_LIPO"; then
6973 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6974else
6975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976for as_dir in $PATH
6977do
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for ac_exec_ext in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_prog_ac_ct_LIPO="lipo"
6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984 break 2
6985 fi
6986done
6987 done
6988IFS=$as_save_IFS
6989
6990fi
6991fi
6992ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6993if test -n "$ac_ct_LIPO"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6995$as_echo "$ac_ct_LIPO" >&6; }
6996else
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998$as_echo "no" >&6; }
6999fi
7000
7001 if test "x$ac_ct_LIPO" = x; then
7002 LIPO=":"
7003 else
7004 case $cross_compiling:$ac_tool_warned in
7005yes:)
7006{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7007$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7008ac_tool_warned=yes ;;
7009esac
7010 LIPO=$ac_ct_LIPO
7011 fi
7012else
7013 LIPO="$ac_cv_prog_LIPO"
7014fi
7015
7016 if test -n "$ac_tool_prefix"; then
7017 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7018set dummy ${ac_tool_prefix}otool; ac_word=$2
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020$as_echo_n "checking for $ac_word... " >&6; }
7021if test "${ac_cv_prog_OTOOL+set}" = set; then :
7022 $as_echo_n "(cached) " >&6
7023else
7024 if test -n "$OTOOL"; then
7025 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7026else
7027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028for as_dir in $PATH
7029do
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 break 2
7037 fi
7038done
7039 done
7040IFS=$as_save_IFS
7041
7042fi
7043fi
7044OTOOL=$ac_cv_prog_OTOOL
7045if test -n "$OTOOL"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7047$as_echo "$OTOOL" >&6; }
7048else
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050$as_echo "no" >&6; }
7051fi
7052
7053
7054fi
7055if test -z "$ac_cv_prog_OTOOL"; then
7056 ac_ct_OTOOL=$OTOOL
7057 # Extract the first word of "otool", so it can be a program name with args.
7058set dummy otool; ac_word=$2
7059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060$as_echo_n "checking for $ac_word... " >&6; }
7061if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7062 $as_echo_n "(cached) " >&6
7063else
7064 if test -n "$ac_ct_OTOOL"; then
7065 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7066else
7067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068for as_dir in $PATH
7069do
7070 IFS=$as_save_IFS
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_prog_ac_ct_OTOOL="otool"
7075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076 break 2
7077 fi
7078done
7079 done
7080IFS=$as_save_IFS
7081
7082fi
7083fi
7084ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7085if test -n "$ac_ct_OTOOL"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7087$as_echo "$ac_ct_OTOOL" >&6; }
7088else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090$as_echo "no" >&6; }
7091fi
7092
7093 if test "x$ac_ct_OTOOL" = x; then
7094 OTOOL=":"
7095 else
7096 case $cross_compiling:$ac_tool_warned in
7097yes:)
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7100ac_tool_warned=yes ;;
7101esac
7102 OTOOL=$ac_ct_OTOOL
7103 fi
7104else
7105 OTOOL="$ac_cv_prog_OTOOL"
7106fi
7107
7108 if test -n "$ac_tool_prefix"; then
7109 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7110set dummy ${ac_tool_prefix}otool64; ac_word=$2
7111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112$as_echo_n "checking for $ac_word... " >&6; }
7113if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7114 $as_echo_n "(cached) " >&6
7115else
7116 if test -n "$OTOOL64"; then
7117 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7118else
7119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120for as_dir in $PATH
7121do
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_exec_ext in '' $ac_executable_extensions; do
7125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7126 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128 break 2
7129 fi
7130done
7131 done
7132IFS=$as_save_IFS
7133
7134fi
7135fi
7136OTOOL64=$ac_cv_prog_OTOOL64
7137if test -n "$OTOOL64"; then
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7139$as_echo "$OTOOL64" >&6; }
7140else
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142$as_echo "no" >&6; }
7143fi
7144
7145
7146fi
7147if test -z "$ac_cv_prog_OTOOL64"; then
7148 ac_ct_OTOOL64=$OTOOL64
7149 # Extract the first word of "otool64", so it can be a program name with args.
7150set dummy otool64; ac_word=$2
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152$as_echo_n "checking for $ac_word... " >&6; }
7153if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7154 $as_echo_n "(cached) " >&6
7155else
7156 if test -n "$ac_ct_OTOOL64"; then
7157 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7158else
7159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160for as_dir in $PATH
7161do
7162 IFS=$as_save_IFS
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7166 ac_cv_prog_ac_ct_OTOOL64="otool64"
7167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168 break 2
7169 fi
7170done
7171 done
7172IFS=$as_save_IFS
7173
7174fi
7175fi
7176ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7177if test -n "$ac_ct_OTOOL64"; then
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7179$as_echo "$ac_ct_OTOOL64" >&6; }
7180else
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182$as_echo "no" >&6; }
7183fi
7184
7185 if test "x$ac_ct_OTOOL64" = x; then
7186 OTOOL64=":"
7187 else
7188 case $cross_compiling:$ac_tool_warned in
7189yes:)
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7192ac_tool_warned=yes ;;
7193esac
7194 OTOOL64=$ac_ct_OTOOL64
7195 fi
7196else
7197 OTOOL64="$ac_cv_prog_OTOOL64"
7198fi
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7227$as_echo_n "checking for -single_module linker flag... " >&6; }
7228if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7229 $as_echo_n "(cached) " >&6
7230else
7231 lt_cv_apple_cc_single_mod=no
7232 if test -z "${LT_MULTI_MODULE}"; then
7233 # By default we will add the -single_module flag. You can override
7234 # by either setting the environment variable LT_MULTI_MODULE
7235 # non-empty at configure time, or by adding -multi_module to the
7236 # link flags.
7237 rm -rf libconftest.dylib*
7238 echo "int foo(void){return 1;}" > conftest.c
7239 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7240-dynamiclib -Wl,-single_module conftest.c" >&5
7241 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7242 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7243 _lt_result=$?
7244 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7245 lt_cv_apple_cc_single_mod=yes
7246 else
7247 cat conftest.err >&5
7248 fi
7249 rm -rf libconftest.dylib*
7250 rm -f conftest.*
7251 fi
7252fi
7253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7254$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7256$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7257if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7258 $as_echo_n "(cached) " >&6
7259else
7260 lt_cv_ld_exported_symbols_list=no
7261 save_LDFLAGS=$LDFLAGS
7262 echo "_main" > conftest.sym
7263 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265/* end confdefs.h. */
7266
7267int
7268main ()
7269{
7270
7271 ;
7272 return 0;
7273}
7274_ACEOF
7275if ac_fn_c_try_link "$LINENO"; then :
7276 lt_cv_ld_exported_symbols_list=yes
7277else
7278 lt_cv_ld_exported_symbols_list=no
7279fi
7280rm -f core conftest.err conftest.$ac_objext \
7281 conftest$ac_exeext conftest.$ac_ext
7282 LDFLAGS="$save_LDFLAGS"
7283
7284fi
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7286$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7288$as_echo_n "checking for -force_load linker flag... " >&6; }
7289if test "${lt_cv_ld_force_load+set}" = set; then :
7290 $as_echo_n "(cached) " >&6
7291else
7292 lt_cv_ld_force_load=no
7293 cat > conftest.c << _LT_EOF
7294int forced_loaded() { return 2;}
7295_LT_EOF
7296 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7297 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7298 echo "$AR cru libconftest.a conftest.o" >&5
7299 $AR cru libconftest.a conftest.o 2>&5
7300 cat > conftest.c << _LT_EOF
7301int main() { return 0;}
7302_LT_EOF
7303 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7304 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7305 _lt_result=$?
7306 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7307 lt_cv_ld_force_load=yes
7308 else
7309 cat conftest.err >&5
7310 fi
7311 rm -f conftest.err libconftest.a conftest conftest.c
7312 rm -rf conftest.dSYM
7313
7314fi
7315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7316$as_echo "$lt_cv_ld_force_load" >&6; }
7317 case $host_os in
7318 rhapsody* | darwin1.[012])
7319 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7320 darwin1.*)
7321 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7322 darwin*) # darwin 5.x on
7323 # if running on 10.5 or later, the deployment target defaults
7324 # to the OS version, if on x86, and 10.4, the deployment
7325 # target defaults to 10.4. Don't you love it?
7326 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7327 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7328 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7329 10.[012]*)
7330 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7331 10.*)
7332 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7333 esac
7334 ;;
7335 esac
7336 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7337 _lt_dar_single_mod='$single_module'
7338 fi
7339 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7340 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7341 else
7342 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7343 fi
7344 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7345 _lt_dsymutil='~$DSYMUTIL $lib || :'
7346 else
7347 _lt_dsymutil=
7348 fi
7349 ;;
7350 esac
7351
7352ac_ext=c
7353ac_cpp='$CPP $CPPFLAGS'
7354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356ac_compiler_gnu=$ac_cv_c_compiler_gnu
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7358$as_echo_n "checking how to run the C preprocessor... " >&6; }
7359# On Suns, sometimes $CPP names a directory.
7360if test -n "$CPP" && test -d "$CPP"; then
7361 CPP=
7362fi
7363if test -z "$CPP"; then
7364 if test "${ac_cv_prog_CPP+set}" = set; then :
7365 $as_echo_n "(cached) " >&6
7366else
7367 # Double quotes because CPP needs to be expanded
7368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7369 do
7370 ac_preproc_ok=false
7371for ac_c_preproc_warn_flag in '' yes
7372do
7373 # Use a header file that comes with gcc, so configuring glibc
7374 # with a fresh cross-compiler works.
7375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7376 # <limits.h> exists even on freestanding compilers.
7377 # On the NeXT, cc -E runs the code through the compiler's parser,
7378 # not just through cpp. "Syntax error" is here to catch this case.
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380/* end confdefs.h. */
7381#ifdef __STDC__
7382# include <limits.h>
7383#else
7384# include <assert.h>
7385#endif
7386 Syntax error
7387_ACEOF
7388if ac_fn_c_try_cpp "$LINENO"; then :
7389
7390else
7391 # Broken: fails on valid input.
7392continue
7393fi
7394rm -f conftest.err conftest.$ac_ext
7395
7396 # OK, works on sane cases. Now check whether nonexistent headers
7397 # can be detected and how.
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399/* end confdefs.h. */
7400#include <ac_nonexistent.h>
7401_ACEOF
7402if ac_fn_c_try_cpp "$LINENO"; then :
7403 # Broken: success on invalid input.
7404continue
7405else
7406 # Passes both tests.
7407ac_preproc_ok=:
7408break
7409fi
7410rm -f conftest.err conftest.$ac_ext
7411
7412done
7413# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7414rm -f conftest.err conftest.$ac_ext
7415if $ac_preproc_ok; then :
7416 break
7417fi
7418
7419 done
7420 ac_cv_prog_CPP=$CPP
7421
7422fi
7423 CPP=$ac_cv_prog_CPP
7424else
7425 ac_cv_prog_CPP=$CPP
7426fi
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7428$as_echo "$CPP" >&6; }
7429ac_preproc_ok=false
7430for ac_c_preproc_warn_flag in '' yes
7431do
7432 # Use a header file that comes with gcc, so configuring glibc
7433 # with a fresh cross-compiler works.
7434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7435 # <limits.h> exists even on freestanding compilers.
7436 # On the NeXT, cc -E runs the code through the compiler's parser,
7437 # not just through cpp. "Syntax error" is here to catch this case.
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439/* end confdefs.h. */
7440#ifdef __STDC__
7441# include <limits.h>
7442#else
7443# include <assert.h>
7444#endif
7445 Syntax error
7446_ACEOF
7447if ac_fn_c_try_cpp "$LINENO"; then :
7448
7449else
7450 # Broken: fails on valid input.
7451continue
7452fi
7453rm -f conftest.err conftest.$ac_ext
7454
7455 # OK, works on sane cases. Now check whether nonexistent headers
7456 # can be detected and how.
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458/* end confdefs.h. */
7459#include <ac_nonexistent.h>
7460_ACEOF
7461if ac_fn_c_try_cpp "$LINENO"; then :
7462 # Broken: success on invalid input.
7463continue
7464else
7465 # Passes both tests.
7466ac_preproc_ok=:
7467break
7468fi
7469rm -f conftest.err conftest.$ac_ext
7470
7471done
7472# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7473rm -f conftest.err conftest.$ac_ext
7474if $ac_preproc_ok; then :
7475
7476else
7477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7479as_fn_error "C preprocessor \"$CPP\" fails sanity check
7480See \`config.log' for more details." "$LINENO" 5; }
7481fi
7482
7483ac_ext=c
7484ac_cpp='$CPP $CPPFLAGS'
7485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7487ac_compiler_gnu=$ac_cv_c_compiler_gnu
7488
7489
7490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7491$as_echo_n "checking for ANSI C header files... " >&6; }
7492if test "${ac_cv_header_stdc+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
7494else
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496/* end confdefs.h. */
7497#include <stdlib.h>
7498#include <stdarg.h>
7499#include <string.h>
7500#include <float.h>
7501
7502int
7503main ()
7504{
7505
7506 ;
7507 return 0;
7508}
7509_ACEOF
7510if ac_fn_c_try_compile "$LINENO"; then :
7511 ac_cv_header_stdc=yes
7512else
7513 ac_cv_header_stdc=no
7514fi
7515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516
7517if test $ac_cv_header_stdc = yes; then
7518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520/* end confdefs.h. */
7521#include <string.h>
7522
7523_ACEOF
7524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7525 $EGREP "memchr" >/dev/null 2>&1; then :
7526
7527else
7528 ac_cv_header_stdc=no
7529fi
7530rm -f conftest*
7531
7532fi
7533
7534if test $ac_cv_header_stdc = yes; then
7535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537/* end confdefs.h. */
7538#include <stdlib.h>
7539
7540_ACEOF
7541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7542 $EGREP "free" >/dev/null 2>&1; then :
7543
7544else
7545 ac_cv_header_stdc=no
7546fi
7547rm -f conftest*
7548
7549fi
7550
7551if test $ac_cv_header_stdc = yes; then
7552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7553 if test "$cross_compiling" = yes; then :
7554 :
7555else
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557/* end confdefs.h. */
7558#include <ctype.h>
7559#include <stdlib.h>
7560#if ((' ' & 0x0FF) == 0x020)
7561# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7562# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7563#else
7564# define ISLOWER(c) \
7565 (('a' <= (c) && (c) <= 'i') \
7566 || ('j' <= (c) && (c) <= 'r') \
7567 || ('s' <= (c) && (c) <= 'z'))
7568# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7569#endif
7570
7571#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7572int
7573main ()
7574{
7575 int i;
7576 for (i = 0; i < 256; i++)
7577 if (XOR (islower (i), ISLOWER (i))
7578 || toupper (i) != TOUPPER (i))
7579 return 2;
7580 return 0;
7581}
7582_ACEOF
7583if ac_fn_c_try_run "$LINENO"; then :
7584
7585else
7586 ac_cv_header_stdc=no
7587fi
7588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7589 conftest.$ac_objext conftest.beam conftest.$ac_ext
7590fi
7591
7592fi
7593fi
7594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7595$as_echo "$ac_cv_header_stdc" >&6; }
7596if test $ac_cv_header_stdc = yes; then
7597
7598$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7599
7600fi
7601
7602# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7603for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7604 inttypes.h stdint.h unistd.h
7605do :
7606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7607ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7608"
7609eval as_val=\$$as_ac_Header
7610 if test "x$as_val" = x""yes; then :
7611 cat >>confdefs.h <<_ACEOF
7612#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7613_ACEOF
7614
7615fi
7616
7617done
7618
7619
7620for ac_header in dlfcn.h
7621do :
7622 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7623"
7624if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7625 cat >>confdefs.h <<_ACEOF
7626#define HAVE_DLFCN_H 1
7627_ACEOF
7628
7629fi
7630
7631done
7632
7633
7634
7635
7636
7637# Set options
7638
7639
7640
7641 enable_dlopen=no
7642
7643
7644 enable_win32_dll=no
7645
7646
7647 # Check whether --enable-shared was given.
7648if test "${enable_shared+set}" = set; then :
7649 enableval=$enable_shared; p=${PACKAGE-default}
7650 case $enableval in
7651 yes) enable_shared=yes ;;
7652 no) enable_shared=no ;;
7653 *)
7654 enable_shared=no
7655 # Look at the argument we got. We use all the common list separators.
7656 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7657 for pkg in $enableval; do
7658 IFS="$lt_save_ifs"
7659 if test "X$pkg" = "X$p"; then
7660 enable_shared=yes
7661 fi
7662 done
7663 IFS="$lt_save_ifs"
7664 ;;
7665 esac
7666else
7667 enable_shared=yes
7668fi
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678 # Check whether --enable-static was given.
7679if test "${enable_static+set}" = set; then :
7680 enableval=$enable_static; p=${PACKAGE-default}
7681 case $enableval in
7682 yes) enable_static=yes ;;
7683 no) enable_static=no ;;
7684 *)
7685 enable_static=no
7686 # Look at the argument we got. We use all the common list separators.
7687 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7688 for pkg in $enableval; do
7689 IFS="$lt_save_ifs"
7690 if test "X$pkg" = "X$p"; then
7691 enable_static=yes
7692 fi
7693 done
7694 IFS="$lt_save_ifs"
7695 ;;
7696 esac
7697else
7698 enable_static=yes
7699fi
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710# Check whether --with-pic was given.
7711if test "${with_pic+set}" = set; then :
7712 withval=$with_pic; p=${PACKAGE-default}
7713 case "$withval" in
7714 yes|no) pic_mode="$withval" ;;
7715 *)
7716 pic_mode=default
7717 # Look at the argument we got. We use all the common list separators.
7718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7719 for pkg in $withval; do
7720 IFS="$lt_save_ifs"
7721 if test "X$pkg" = "X$p"; then
7722 pic_mode=yes
7723 fi
7724 done
7725 IFS="$lt_save_ifs"
7726 ;;
7727 esac
7728else
7729 pic_mode=default
7730fi
7731
7732
7733test -z "$pic_mode" && pic_mode=default
7734
7735
7736
7737
7738
7739
7740
7741 # Check whether --enable-fast-install was given.
7742if test "${enable_fast_install+set}" = set; then :
7743 enableval=$enable_fast_install; p=${PACKAGE-default}
7744 case $enableval in
7745 yes) enable_fast_install=yes ;;
7746 no) enable_fast_install=no ;;
7747 *)
7748 enable_fast_install=no
7749 # Look at the argument we got. We use all the common list separators.
7750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7751 for pkg in $enableval; do
7752 IFS="$lt_save_ifs"
7753 if test "X$pkg" = "X$p"; then
7754 enable_fast_install=yes
7755 fi
7756 done
7757 IFS="$lt_save_ifs"
7758 ;;
7759 esac
7760else
7761 enable_fast_install=yes
7762fi
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774# This can be used to rebuild libtool when needed
7775LIBTOOL_DEPS="$ltmain"
7776
7777# Always use our own libtool.
7778LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805test -z "$LN_S" && LN_S="ln -s"
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820if test -n "${ZSH_VERSION+set}" ; then
7821 setopt NO_GLOB_SUBST
7822fi
7823
7824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7825$as_echo_n "checking for objdir... " >&6; }
7826if test "${lt_cv_objdir+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7828else
7829 rm -f .libs 2>/dev/null
7830mkdir .libs 2>/dev/null
7831if test -d .libs; then
7832 lt_cv_objdir=.libs
7833else
7834 # MS-DOS does not allow filenames that begin with a dot.
7835 lt_cv_objdir=_libs
7836fi
7837rmdir .libs 2>/dev/null
7838fi
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7840$as_echo "$lt_cv_objdir" >&6; }
7841objdir=$lt_cv_objdir
7842
7843
7844
7845
7846
7847cat >>confdefs.h <<_ACEOF
7848#define LT_OBJDIR "$lt_cv_objdir/"
7849_ACEOF
7850
7851
7852
7853
7854case $host_os in
7855aix3*)
7856 # AIX sometimes has problems with the GCC collect2 program. For some
7857 # reason, if we set the COLLECT_NAMES environment variable, the problems
7858 # vanish in a puff of smoke.
7859 if test "X${COLLECT_NAMES+set}" != Xset; then
7860 COLLECT_NAMES=
7861 export COLLECT_NAMES
7862 fi
7863 ;;
7864esac
7865
7866# Global variables:
7867ofile=libtool
7868can_build_shared=yes
7869
7870# All known linkers require a `.a' archive for static linking (except MSVC,
7871# which needs '.lib').
7872libext=a
7873
7874with_gnu_ld="$lt_cv_prog_gnu_ld"
7875
7876old_CC="$CC"
7877old_CFLAGS="$CFLAGS"
7878
7879# Set sane defaults for various variables
7880test -z "$CC" && CC=cc
7881test -z "$LTCC" && LTCC=$CC
7882test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7883test -z "$LD" && LD=ld
7884test -z "$ac_objext" && ac_objext=o
7885
7886for cc_temp in $compiler""; do
7887 case $cc_temp in
7888 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7889 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7890 \-*) ;;
7891 *) break;;
7892 esac
7893done
7894cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7895
7896
7897# Only perform the check for file, if the check method requires it
7898test -z "$MAGIC_CMD" && MAGIC_CMD=file
7899case $deplibs_check_method in
7900file_magic*)
7901 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7903$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7904if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7905 $as_echo_n "(cached) " >&6
7906else
7907 case $MAGIC_CMD in
7908[\\/*] | ?:[\\/]*)
7909 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7910 ;;
7911*)
7912 lt_save_MAGIC_CMD="$MAGIC_CMD"
7913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7914 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7915 for ac_dir in $ac_dummy; do
7916 IFS="$lt_save_ifs"
7917 test -z "$ac_dir" && ac_dir=.
7918 if test -f $ac_dir/${ac_tool_prefix}file; then
7919 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7920 if test -n "$file_magic_test_file"; then
7921 case $deplibs_check_method in
7922 "file_magic "*)
7923 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7924 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7925 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7926 $EGREP "$file_magic_regex" > /dev/null; then
7927 :
7928 else
7929 cat <<_LT_EOF 1>&2
7930
7931*** Warning: the command libtool uses to detect shared libraries,
7932*** $file_magic_cmd, produces output that libtool cannot recognize.
7933*** The result is that libtool may fail to recognize shared libraries
7934*** as such. This will affect the creation of libtool libraries that
7935*** depend on shared libraries, but programs linked with such libtool
7936*** libraries will work regardless of this problem. Nevertheless, you
7937*** may want to report the problem to your system manager and/or to
7938*** [email protected]
7939
7940_LT_EOF
7941 fi ;;
7942 esac
7943 fi
7944 break
7945 fi
7946 done
7947 IFS="$lt_save_ifs"
7948 MAGIC_CMD="$lt_save_MAGIC_CMD"
7949 ;;
7950esac
7951fi
7952
7953MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7954if test -n "$MAGIC_CMD"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7956$as_echo "$MAGIC_CMD" >&6; }
7957else
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959$as_echo "no" >&6; }
7960fi
7961
7962
7963
7964
7965
7966if test -z "$lt_cv_path_MAGIC_CMD"; then
7967 if test -n "$ac_tool_prefix"; then
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7969$as_echo_n "checking for file... " >&6; }
7970if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7971 $as_echo_n "(cached) " >&6
7972else
7973 case $MAGIC_CMD in
7974[\\/*] | ?:[\\/]*)
7975 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7976 ;;
7977*)
7978 lt_save_MAGIC_CMD="$MAGIC_CMD"
7979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7980 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7981 for ac_dir in $ac_dummy; do
7982 IFS="$lt_save_ifs"
7983 test -z "$ac_dir" && ac_dir=.
7984 if test -f $ac_dir/file; then
7985 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7986 if test -n "$file_magic_test_file"; then
7987 case $deplibs_check_method in
7988 "file_magic "*)
7989 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7991 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7992 $EGREP "$file_magic_regex" > /dev/null; then
7993 :
7994 else
7995 cat <<_LT_EOF 1>&2
7996
7997*** Warning: the command libtool uses to detect shared libraries,
7998*** $file_magic_cmd, produces output that libtool cannot recognize.
7999*** The result is that libtool may fail to recognize shared libraries
8000*** as such. This will affect the creation of libtool libraries that
8001*** depend on shared libraries, but programs linked with such libtool
8002*** libraries will work regardless of this problem. Nevertheless, you
8003*** may want to report the problem to your system manager and/or to
8004*** [email protected]
8005
8006_LT_EOF
8007 fi ;;
8008 esac
8009 fi
8010 break
8011 fi
8012 done
8013 IFS="$lt_save_ifs"
8014 MAGIC_CMD="$lt_save_MAGIC_CMD"
8015 ;;
8016esac
8017fi
8018
8019MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8020if test -n "$MAGIC_CMD"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8022$as_echo "$MAGIC_CMD" >&6; }
8023else
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025$as_echo "no" >&6; }
8026fi
8027
8028
8029 else
8030 MAGIC_CMD=:
8031 fi
8032fi
8033
8034 fi
8035 ;;
8036esac
8037
8038# Use C for the default configuration in the libtool script
8039
8040lt_save_CC="$CC"
8041ac_ext=c
8042ac_cpp='$CPP $CPPFLAGS'
8043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8045ac_compiler_gnu=$ac_cv_c_compiler_gnu
8046
8047
8048# Source file extension for C test sources.
8049ac_ext=c
8050
8051# Object file extension for compiled C test sources.
8052objext=o
8053objext=$objext
8054
8055# Code to be used in simple compile tests
8056lt_simple_compile_test_code="int some_variable = 0;"
8057
8058# Code to be used in simple link tests
8059lt_simple_link_test_code='int main(){return(0);}'
8060
8061
8062
8063
8064
8065
8066
8067# If no C compiler was specified, use CC.
8068LTCC=${LTCC-"$CC"}
8069
8070# If no C compiler flags were specified, use CFLAGS.
8071LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8072
8073# Allow CC to be a program name with arguments.
8074compiler=$CC
8075
8076# Save the default compiler, since it gets overwritten when the other
8077# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8078compiler_DEFAULT=$CC
8079
8080# save warnings/boilerplate of simple test code
8081ac_outfile=conftest.$ac_objext
8082echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8083eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8084_lt_compiler_boilerplate=`cat conftest.err`
8085$RM conftest*
8086
8087ac_outfile=conftest.$ac_objext
8088echo "$lt_simple_link_test_code" >conftest.$ac_ext
8089eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8090_lt_linker_boilerplate=`cat conftest.err`
8091$RM -r conftest*
8092
8093
8094## CAVEAT EMPTOR:
8095## There is no encapsulation within the following macros, do not change
8096## the running order or otherwise move them around unless you know exactly
8097## what you are doing...
8098if test -n "$compiler"; then
8099
8100lt_prog_compiler_no_builtin_flag=
8101
8102if test "$GCC" = yes; then
8103 case $cc_basename in
8104 nvcc*)
8105 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8106 *)
8107 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8108 esac
8109
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8111$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8112if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8113 $as_echo_n "(cached) " >&6
8114else
8115 lt_cv_prog_compiler_rtti_exceptions=no
8116 ac_outfile=conftest.$ac_objext
8117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8118 lt_compiler_flag="-fno-rtti -fno-exceptions"
8119 # Insert the option either (1) after the last *FLAGS variable, or
8120 # (2) before a word containing "conftest.", or (3) at the end.
8121 # Note that $ac_compile itself does not contain backslashes and begins
8122 # with a dollar sign (not a hyphen), so the echo should work correctly.
8123 # The option is referenced via a variable to avoid confusing sed.
8124 lt_compile=`echo "$ac_compile" | $SED \
8125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8127 -e 's:$: $lt_compiler_flag:'`
8128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8129 (eval "$lt_compile" 2>conftest.err)
8130 ac_status=$?
8131 cat conftest.err >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 if (exit $ac_status) && test -s "$ac_outfile"; then
8134 # The compiler can only warn and ignore the option if not recognized
8135 # So say no if there are warnings other than the usual output.
8136 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8137 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8138 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8139 lt_cv_prog_compiler_rtti_exceptions=yes
8140 fi
8141 fi
8142 $RM conftest*
8143
8144fi
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8146$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8147
8148if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8149 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8150else
8151 :
8152fi
8153
8154fi
8155
8156
8157
8158
8159
8160
8161 lt_prog_compiler_wl=
8162lt_prog_compiler_pic=
8163lt_prog_compiler_static=
8164
8165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8166$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8167
8168 if test "$GCC" = yes; then
8169 lt_prog_compiler_wl='-Wl,'
8170 lt_prog_compiler_static='-static'
8171
8172 case $host_os in
8173 aix*)
8174 # All AIX code is PIC.
8175 if test "$host_cpu" = ia64; then
8176 # AIX 5 now supports IA64 processor
8177 lt_prog_compiler_static='-Bstatic'
8178 fi
8179 lt_prog_compiler_pic='-fPIC'
8180 ;;
8181
8182 amigaos*)
8183 case $host_cpu in
8184 powerpc)
8185 # see comment about AmigaOS4 .so support
8186 lt_prog_compiler_pic='-fPIC'
8187 ;;
8188 m68k)
8189 # FIXME: we need at least 68020 code to build shared libraries, but
8190 # adding the `-m68020' flag to GCC prevents building anything better,
8191 # like `-m68040'.
8192 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8193 ;;
8194 esac
8195 ;;
8196
8197 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8198 # PIC is the default for these OSes.
8199 ;;
8200
8201 mingw* | cygwin* | pw32* | os2* | cegcc*)
8202 # This hack is so that the source file can tell whether it is being
8203 # built for inclusion in a dll (and should export symbols for example).
8204 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8205 # (--disable-auto-import) libraries
8206 lt_prog_compiler_pic='-DDLL_EXPORT'
8207 ;;
8208
8209 darwin* | rhapsody*)
8210 # PIC is the default on this platform
8211 # Common symbols not allowed in MH_DYLIB files
8212 lt_prog_compiler_pic='-fno-common'
8213 ;;
8214
8215 haiku*)
8216 # PIC is the default for Haiku.
8217 # The "-static" flag exists, but is broken.
8218 lt_prog_compiler_static=
8219 ;;
8220
8221 hpux*)
8222 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8223 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8224 # sets the default TLS model and affects inlining.
8225 case $host_cpu in
8226 hppa*64*)
8227 # +Z the default
8228 ;;
8229 *)
8230 lt_prog_compiler_pic='-fPIC'
8231 ;;
8232 esac
8233 ;;
8234
8235 interix[3-9]*)
8236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8237 # Instead, we relocate shared libraries at runtime.
8238 ;;
8239
8240 msdosdjgpp*)
8241 # Just because we use GCC doesn't mean we suddenly get shared libraries
8242 # on systems that don't support them.
8243 lt_prog_compiler_can_build_shared=no
8244 enable_shared=no
8245 ;;
8246
8247 *nto* | *qnx*)
8248 # QNX uses GNU C++, but need to define -shared option too, otherwise
8249 # it will coredump.
8250 lt_prog_compiler_pic='-fPIC -shared'
8251 ;;
8252
8253 sysv4*MP*)
8254 if test -d /usr/nec; then
8255 lt_prog_compiler_pic=-Kconform_pic
8256 fi
8257 ;;
8258
8259 *)
8260 lt_prog_compiler_pic='-fPIC'
8261 ;;
8262 esac
8263
8264 case $cc_basename in
8265 nvcc*) # Cuda Compiler Driver 2.2
8266 lt_prog_compiler_wl='-Xlinker '
8267 lt_prog_compiler_pic='-Xcompiler -fPIC'
8268 ;;
8269 esac
8270 else
8271 # PORTME Check for flag to pass linker flags through the system compiler.
8272 case $host_os in
8273 aix*)
8274 lt_prog_compiler_wl='-Wl,'
8275 if test "$host_cpu" = ia64; then
8276 # AIX 5 now supports IA64 processor
8277 lt_prog_compiler_static='-Bstatic'
8278 else
8279 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8280 fi
8281 ;;
8282
8283 mingw* | cygwin* | pw32* | os2* | cegcc*)
8284 # This hack is so that the source file can tell whether it is being
8285 # built for inclusion in a dll (and should export symbols for example).
8286 lt_prog_compiler_pic='-DDLL_EXPORT'
8287 ;;
8288
8289 hpux9* | hpux10* | hpux11*)
8290 lt_prog_compiler_wl='-Wl,'
8291 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8292 # not for PA HP-UX.
8293 case $host_cpu in
8294 hppa*64*|ia64*)
8295 # +Z the default
8296 ;;
8297 *)
8298 lt_prog_compiler_pic='+Z'
8299 ;;
8300 esac
8301 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8302 lt_prog_compiler_static='${wl}-a ${wl}archive'
8303 ;;
8304
8305 irix5* | irix6* | nonstopux*)
8306 lt_prog_compiler_wl='-Wl,'
8307 # PIC (with -KPIC) is the default.
8308 lt_prog_compiler_static='-non_shared'
8309 ;;
8310
8311 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8312 case $cc_basename in
8313 # old Intel for x86_64 which still supported -KPIC.
8314 ecc*)
8315 lt_prog_compiler_wl='-Wl,'
8316 lt_prog_compiler_pic='-KPIC'
8317 lt_prog_compiler_static='-static'
8318 ;;
8319 # icc used to be incompatible with GCC.
8320 # ICC 10 doesn't accept -KPIC any more.
8321 icc* | ifort*)
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='-fPIC'
8324 lt_prog_compiler_static='-static'
8325 ;;
8326 # Lahey Fortran 8.1.
8327 lf95*)
8328 lt_prog_compiler_wl='-Wl,'
8329 lt_prog_compiler_pic='--shared'
8330 lt_prog_compiler_static='--static'
8331 ;;
8332 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8333 # Portland Group compilers (*not* the Pentium gcc compiler,
8334 # which looks to be a dead project)
8335 lt_prog_compiler_wl='-Wl,'
8336 lt_prog_compiler_pic='-fpic'
8337 lt_prog_compiler_static='-Bstatic'
8338 ;;
8339 ccc*)
8340 lt_prog_compiler_wl='-Wl,'
8341 # All Alpha code is PIC.
8342 lt_prog_compiler_static='-non_shared'
8343 ;;
8344 xl* | bgxl* | bgf* | mpixl*)
8345 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8346 lt_prog_compiler_wl='-Wl,'
8347 lt_prog_compiler_pic='-qpic'
8348 lt_prog_compiler_static='-qstaticlink'
8349 ;;
8350 *)
8351 case `$CC -V 2>&1 | sed 5q` in
8352 *Sun\ F* | *Sun*Fortran*)
8353 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8354 lt_prog_compiler_pic='-KPIC'
8355 lt_prog_compiler_static='-Bstatic'
8356 lt_prog_compiler_wl=''
8357 ;;
8358 *Sun\ C*)
8359 # Sun C 5.9
8360 lt_prog_compiler_pic='-KPIC'
8361 lt_prog_compiler_static='-Bstatic'
8362 lt_prog_compiler_wl='-Wl,'
8363 ;;
8364 esac
8365 ;;
8366 esac
8367 ;;
8368
8369 newsos6)
8370 lt_prog_compiler_pic='-KPIC'
8371 lt_prog_compiler_static='-Bstatic'
8372 ;;
8373
8374 *nto* | *qnx*)
8375 # QNX uses GNU C++, but need to define -shared option too, otherwise
8376 # it will coredump.
8377 lt_prog_compiler_pic='-fPIC -shared'
8378 ;;
8379
8380 osf3* | osf4* | osf5*)
8381 lt_prog_compiler_wl='-Wl,'
8382 # All OSF/1 code is PIC.
8383 lt_prog_compiler_static='-non_shared'
8384 ;;
8385
8386 rdos*)
8387 lt_prog_compiler_static='-non_shared'
8388 ;;
8389
8390 solaris*)
8391 lt_prog_compiler_pic='-KPIC'
8392 lt_prog_compiler_static='-Bstatic'
8393 case $cc_basename in
8394 f77* | f90* | f95*)
8395 lt_prog_compiler_wl='-Qoption ld ';;
8396 *)
8397 lt_prog_compiler_wl='-Wl,';;
8398 esac
8399 ;;
8400
8401 sunos4*)
8402 lt_prog_compiler_wl='-Qoption ld '
8403 lt_prog_compiler_pic='-PIC'
8404 lt_prog_compiler_static='-Bstatic'
8405 ;;
8406
8407 sysv4 | sysv4.2uw2* | sysv4.3*)
8408 lt_prog_compiler_wl='-Wl,'
8409 lt_prog_compiler_pic='-KPIC'
8410 lt_prog_compiler_static='-Bstatic'
8411 ;;
8412
8413 sysv4*MP*)
8414 if test -d /usr/nec ;then
8415 lt_prog_compiler_pic='-Kconform_pic'
8416 lt_prog_compiler_static='-Bstatic'
8417 fi
8418 ;;
8419
8420 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8421 lt_prog_compiler_wl='-Wl,'
8422 lt_prog_compiler_pic='-KPIC'
8423 lt_prog_compiler_static='-Bstatic'
8424 ;;
8425
8426 unicos*)
8427 lt_prog_compiler_wl='-Wl,'
8428 lt_prog_compiler_can_build_shared=no
8429 ;;
8430
8431 uts4*)
8432 lt_prog_compiler_pic='-pic'
8433 lt_prog_compiler_static='-Bstatic'
8434 ;;
8435
8436 *)
8437 lt_prog_compiler_can_build_shared=no
8438 ;;
8439 esac
8440 fi
8441
8442case $host_os in
8443 # For platforms which do not support PIC, -DPIC is meaningless:
8444 *djgpp*)
8445 lt_prog_compiler_pic=
8446 ;;
8447 *)
8448 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8449 ;;
8450esac
8451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8452$as_echo "$lt_prog_compiler_pic" >&6; }
8453
8454
8455
8456
8457
8458
8459#
8460# Check to make sure the PIC flag actually works.
8461#
8462if test -n "$lt_prog_compiler_pic"; then
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8464$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8465if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8466 $as_echo_n "(cached) " >&6
8467else
8468 lt_cv_prog_compiler_pic_works=no
8469 ac_outfile=conftest.$ac_objext
8470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8471 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8472 # Insert the option either (1) after the last *FLAGS variable, or
8473 # (2) before a word containing "conftest.", or (3) at the end.
8474 # Note that $ac_compile itself does not contain backslashes and begins
8475 # with a dollar sign (not a hyphen), so the echo should work correctly.
8476 # The option is referenced via a variable to avoid confusing sed.
8477 lt_compile=`echo "$ac_compile" | $SED \
8478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8480 -e 's:$: $lt_compiler_flag:'`
8481 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8482 (eval "$lt_compile" 2>conftest.err)
8483 ac_status=$?
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 if (exit $ac_status) && test -s "$ac_outfile"; then
8487 # The compiler can only warn and ignore the option if not recognized
8488 # So say no if there are warnings other than the usual output.
8489 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8490 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8491 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8492 lt_cv_prog_compiler_pic_works=yes
8493 fi
8494 fi
8495 $RM conftest*
8496
8497fi
8498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8499$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8500
8501if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8502 case $lt_prog_compiler_pic in
8503 "" | " "*) ;;
8504 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8505 esac
8506else
8507 lt_prog_compiler_pic=
8508 lt_prog_compiler_can_build_shared=no
8509fi
8510
8511fi
8512
8513
8514
8515
8516
8517
8518#
8519# Check to make sure the static flag actually works.
8520#
8521wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8523$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8524if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8525 $as_echo_n "(cached) " >&6
8526else
8527 lt_cv_prog_compiler_static_works=no
8528 save_LDFLAGS="$LDFLAGS"
8529 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8530 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8531 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8532 # The linker can only warn and ignore the option if not recognized
8533 # So say no if there are warnings
8534 if test -s conftest.err; then
8535 # Append any errors to the config.log.
8536 cat conftest.err 1>&5
8537 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8538 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8539 if diff conftest.exp conftest.er2 >/dev/null; then
8540 lt_cv_prog_compiler_static_works=yes
8541 fi
8542 else
8543 lt_cv_prog_compiler_static_works=yes
8544 fi
8545 fi
8546 $RM -r conftest*
8547 LDFLAGS="$save_LDFLAGS"
8548
8549fi
8550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8551$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8552
8553if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8554 :
8555else
8556 lt_prog_compiler_static=
8557fi
8558
8559
8560
8561
8562
8563
8564
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8566$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8567if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8568 $as_echo_n "(cached) " >&6
8569else
8570 lt_cv_prog_compiler_c_o=no
8571 $RM -r conftest 2>/dev/null
8572 mkdir conftest
8573 cd conftest
8574 mkdir out
8575 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8576
8577 lt_compiler_flag="-o out/conftest2.$ac_objext"
8578 # Insert the option either (1) after the last *FLAGS variable, or
8579 # (2) before a word containing "conftest.", or (3) at the end.
8580 # Note that $ac_compile itself does not contain backslashes and begins
8581 # with a dollar sign (not a hyphen), so the echo should work correctly.
8582 lt_compile=`echo "$ac_compile" | $SED \
8583 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8584 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8585 -e 's:$: $lt_compiler_flag:'`
8586 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8587 (eval "$lt_compile" 2>out/conftest.err)
8588 ac_status=$?
8589 cat out/conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8592 then
8593 # The compiler can only warn and ignore the option if not recognized
8594 # So say no if there are warnings
8595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8596 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8597 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8598 lt_cv_prog_compiler_c_o=yes
8599 fi
8600 fi
8601 chmod u+w . 2>&5
8602 $RM conftest*
8603 # SGI C++ compiler will create directory out/ii_files/ for
8604 # template instantiation
8605 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8606 $RM out/* && rmdir out
8607 cd ..
8608 $RM -r conftest
8609 $RM conftest*
8610
8611fi
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8613$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8614
8615
8616
8617
8618
8619
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8621$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8622if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
8624else
8625 lt_cv_prog_compiler_c_o=no
8626 $RM -r conftest 2>/dev/null
8627 mkdir conftest
8628 cd conftest
8629 mkdir out
8630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8631
8632 lt_compiler_flag="-o out/conftest2.$ac_objext"
8633 # Insert the option either (1) after the last *FLAGS variable, or
8634 # (2) before a word containing "conftest.", or (3) at the end.
8635 # Note that $ac_compile itself does not contain backslashes and begins
8636 # with a dollar sign (not a hyphen), so the echo should work correctly.
8637 lt_compile=`echo "$ac_compile" | $SED \
8638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8640 -e 's:$: $lt_compiler_flag:'`
8641 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8642 (eval "$lt_compile" 2>out/conftest.err)
8643 ac_status=$?
8644 cat out/conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8647 then
8648 # The compiler can only warn and ignore the option if not recognized
8649 # So say no if there are warnings
8650 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8651 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8652 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8653 lt_cv_prog_compiler_c_o=yes
8654 fi
8655 fi
8656 chmod u+w . 2>&5
8657 $RM conftest*
8658 # SGI C++ compiler will create directory out/ii_files/ for
8659 # template instantiation
8660 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8661 $RM out/* && rmdir out
8662 cd ..
8663 $RM -r conftest
8664 $RM conftest*
8665
8666fi
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8668$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8669
8670
8671
8672
8673hard_links="nottested"
8674if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8675 # do not overwrite the value of need_locks provided by the user
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8677$as_echo_n "checking if we can lock with hard links... " >&6; }
8678 hard_links=yes
8679 $RM conftest*
8680 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8681 touch conftest.a
8682 ln conftest.a conftest.b 2>&5 || hard_links=no
8683 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8685$as_echo "$hard_links" >&6; }
8686 if test "$hard_links" = no; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8688$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8689 need_locks=warn
8690 fi
8691else
8692 need_locks=no
8693fi
8694
8695
8696
8697
8698
8699
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8701$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8702
8703 runpath_var=
8704 allow_undefined_flag=
8705 always_export_symbols=no
8706 archive_cmds=
8707 archive_expsym_cmds=
8708 compiler_needs_object=no
8709 enable_shared_with_static_runtimes=no
8710 export_dynamic_flag_spec=
8711 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8712 hardcode_automatic=no
8713 hardcode_direct=no
8714 hardcode_direct_absolute=no
8715 hardcode_libdir_flag_spec=
8716 hardcode_libdir_flag_spec_ld=
8717 hardcode_libdir_separator=
8718 hardcode_minus_L=no
8719 hardcode_shlibpath_var=unsupported
8720 inherit_rpath=no
8721 link_all_deplibs=unknown
8722 module_cmds=
8723 module_expsym_cmds=
8724 old_archive_from_new_cmds=
8725 old_archive_from_expsyms_cmds=
8726 thread_safe_flag_spec=
8727 whole_archive_flag_spec=
8728 # include_expsyms should be a list of space-separated symbols to be *always*
8729 # included in the symbol list
8730 include_expsyms=
8731 # exclude_expsyms can be an extended regexp of symbols to exclude
8732 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8733 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8734 # as well as any symbol that contains `d'.
8735 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8736 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8737 # platforms (ab)use it in PIC code, but their linkers get confused if
8738 # the symbol is explicitly referenced. Since portable code cannot
8739 # rely on this symbol name, it's probably fine to never include it in
8740 # preloaded symbol tables.
8741 # Exclude shared library initialization/finalization symbols.
8742 extract_expsyms_cmds=
8743
8744 case $host_os in
8745 cygwin* | mingw* | pw32* | cegcc*)
8746 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8747 # When not using gcc, we currently assume that we are using
8748 # Microsoft Visual C++.
8749 if test "$GCC" != yes; then
8750 with_gnu_ld=no
8751 fi
8752 ;;
8753 interix*)
8754 # we just hope/assume this is gcc and not c89 (= MSVC++)
8755 with_gnu_ld=yes
8756 ;;
8757 openbsd*)
8758 with_gnu_ld=no
8759 ;;
8760 esac
8761
8762 ld_shlibs=yes
8763
8764 # On some targets, GNU ld is compatible enough with the native linker
8765 # that we're better off using the native interface for both.
8766 lt_use_gnu_ld_interface=no
8767 if test "$with_gnu_ld" = yes; then
8768 case $host_os in
8769 aix*)
8770 # The AIX port of GNU ld has always aspired to compatibility
8771 # with the native linker. However, as the warning in the GNU ld
8772 # block says, versions before 2.19.5* couldn't really create working
8773 # shared libraries, regardless of the interface used.
8774 case `$LD -v 2>&1` in
8775 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8776 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8777 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8778 *)
8779 lt_use_gnu_ld_interface=yes
8780 ;;
8781 esac
8782 ;;
8783 *)
8784 lt_use_gnu_ld_interface=yes
8785 ;;
8786 esac
8787 fi
8788
8789 if test "$lt_use_gnu_ld_interface" = yes; then
8790 # If archive_cmds runs LD, not CC, wlarc should be empty
8791 wlarc='${wl}'
8792
8793 # Set some defaults for GNU ld with shared library support. These
8794 # are reset later if shared libraries are not supported. Putting them
8795 # here allows them to be overridden if necessary.
8796 runpath_var=LD_RUN_PATH
8797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8798 export_dynamic_flag_spec='${wl}--export-dynamic'
8799 # ancient GNU ld didn't support --whole-archive et. al.
8800 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8801 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8802 else
8803 whole_archive_flag_spec=
8804 fi
8805 supports_anon_versioning=no
8806 case `$LD -v 2>&1` in
8807 *GNU\ gold*) supports_anon_versioning=yes ;;
8808 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8809 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8810 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8811 *\ 2.11.*) ;; # other 2.11 versions
8812 *) supports_anon_versioning=yes ;;
8813 esac
8814
8815 # See if GNU ld supports shared libraries.
8816 case $host_os in
8817 aix[3-9]*)
8818 # On AIX/PPC, the GNU linker is very broken
8819 if test "$host_cpu" != ia64; then
8820 ld_shlibs=no
8821 cat <<_LT_EOF 1>&2
8822
8823*** Warning: the GNU linker, at least up to release 2.19, is reported
8824*** to be unable to reliably create shared libraries on AIX.
8825*** Therefore, libtool is disabling shared libraries support. If you
8826*** really care for shared libraries, you may want to install binutils
8827*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8828*** You will then need to restart the configuration process.
8829
8830_LT_EOF
8831 fi
8832 ;;
8833
8834 amigaos*)
8835 case $host_cpu in
8836 powerpc)
8837 # see comment about AmigaOS4 .so support
8838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8839 archive_expsym_cmds=''
8840 ;;
8841 m68k)
8842 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)'
8843 hardcode_libdir_flag_spec='-L$libdir'
8844 hardcode_minus_L=yes
8845 ;;
8846 esac
8847 ;;
8848
8849 beos*)
8850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8851 allow_undefined_flag=unsupported
8852 # Joseph Beckenbach <[email protected]> says some releases of gcc
8853 # support --undefined. This deserves some investigation. FIXME
8854 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8855 else
8856 ld_shlibs=no
8857 fi
8858 ;;
8859
8860 cygwin* | mingw* | pw32* | cegcc*)
8861 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8862 # as there is no search path for DLLs.
8863 hardcode_libdir_flag_spec='-L$libdir'
8864 export_dynamic_flag_spec='${wl}--export-all-symbols'
8865 allow_undefined_flag=unsupported
8866 always_export_symbols=no
8867 enable_shared_with_static_runtimes=yes
8868 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8869
8870 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8872 # If the export-symbols file already is a .def file (1st line
8873 # is EXPORTS), use it as is; otherwise, prepend...
8874 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8875 cp $export_symbols $output_objdir/$soname.def;
8876 else
8877 echo EXPORTS > $output_objdir/$soname.def;
8878 cat $export_symbols >> $output_objdir/$soname.def;
8879 fi~
8880 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8881 else
8882 ld_shlibs=no
8883 fi
8884 ;;
8885
8886 haiku*)
8887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8888 link_all_deplibs=yes
8889 ;;
8890
8891 interix[3-9]*)
8892 hardcode_direct=no
8893 hardcode_shlibpath_var=no
8894 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8895 export_dynamic_flag_spec='${wl}-E'
8896 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8897 # Instead, shared libraries are loaded at an image base (0x10000000 by
8898 # default) and relocated if they conflict, which is a slow very memory
8899 # consuming and fragmenting process. To avoid this, we pick a random,
8900 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8901 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8902 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8903 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'
8904 ;;
8905
8906 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8907 tmp_diet=no
8908 if test "$host_os" = linux-dietlibc; then
8909 case $cc_basename in
8910 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8911 esac
8912 fi
8913 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8914 && test "$tmp_diet" = no
8915 then
8916 tmp_addflag=
8917 tmp_sharedflag='-shared'
8918 case $cc_basename,$host_cpu in
8919 pgcc*) # Portland Group C compiler
8920 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'
8921 tmp_addflag=' $pic_flag'
8922 ;;
8923 pgf77* | pgf90* | pgf95* | pgfortran*)
8924 # Portland Group f77 and f90 compilers
8925 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'
8926 tmp_addflag=' $pic_flag -Mnomain' ;;
8927 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8928 tmp_addflag=' -i_dynamic' ;;
8929 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8930 tmp_addflag=' -i_dynamic -nofor_main' ;;
8931 ifc* | ifort*) # Intel Fortran compiler
8932 tmp_addflag=' -nofor_main' ;;
8933 lf95*) # Lahey Fortran 8.1
8934 whole_archive_flag_spec=
8935 tmp_sharedflag='--shared' ;;
8936 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8937 tmp_sharedflag='-qmkshrobj'
8938 tmp_addflag= ;;
8939 nvcc*) # Cuda Compiler Driver 2.2
8940 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'
8941 compiler_needs_object=yes
8942 ;;
8943 esac
8944 case `$CC -V 2>&1 | sed 5q` in
8945 *Sun\ C*) # Sun C 5.9
8946 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'
8947 compiler_needs_object=yes
8948 tmp_sharedflag='-G' ;;
8949 *Sun\ F*) # Sun Fortran 8.3
8950 tmp_sharedflag='-G' ;;
8951 esac
8952 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8953
8954 if test "x$supports_anon_versioning" = xyes; then
8955 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8956 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8957 echo "local: *; };" >> $output_objdir/$libname.ver~
8958 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8959 fi
8960
8961 case $cc_basename in
8962 xlf* | bgf* | bgxlf* | mpixlf*)
8963 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8964 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8965 hardcode_libdir_flag_spec=
8966 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8967 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8968 if test "x$supports_anon_versioning" = xyes; then
8969 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8970 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8971 echo "local: *; };" >> $output_objdir/$libname.ver~
8972 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8973 fi
8974 ;;
8975 esac
8976 else
8977 ld_shlibs=no
8978 fi
8979 ;;
8980
8981 netbsd*)
8982 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8983 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8984 wlarc=
8985 else
8986 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8987 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8988 fi
8989 ;;
8990
8991 solaris*)
8992 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8993 ld_shlibs=no
8994 cat <<_LT_EOF 1>&2
8995
8996*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8997*** create shared libraries on Solaris systems. Therefore, libtool
8998*** is disabling shared libraries support. We urge you to upgrade GNU
8999*** binutils to release 2.9.1 or newer. Another option is to modify
9000*** your PATH or compiler configuration so that the native linker is
9001*** used, and then restart.
9002
9003_LT_EOF
9004 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9006 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9007 else
9008 ld_shlibs=no
9009 fi
9010 ;;
9011
9012 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9013 case `$LD -v 2>&1` in
9014 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9015 ld_shlibs=no
9016 cat <<_LT_EOF 1>&2
9017
9018*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9019*** reliably create shared libraries on SCO systems. Therefore, libtool
9020*** is disabling shared libraries support. We urge you to upgrade GNU
9021*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9022*** your PATH or compiler configuration so that the native linker is
9023*** used, and then restart.
9024
9025_LT_EOF
9026 ;;
9027 *)
9028 # For security reasons, it is highly recommended that you always
9029 # use absolute paths for naming shared libraries, and exclude the
9030 # DT_RUNPATH tag from executables and libraries. But doing so
9031 # requires that you compile everything twice, which is a pain.
9032 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9033 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9036 else
9037 ld_shlibs=no
9038 fi
9039 ;;
9040 esac
9041 ;;
9042
9043 sunos4*)
9044 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9045 wlarc=
9046 hardcode_direct=yes
9047 hardcode_shlibpath_var=no
9048 ;;
9049
9050 *)
9051 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9053 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9054 else
9055 ld_shlibs=no
9056 fi
9057 ;;
9058 esac
9059
9060 if test "$ld_shlibs" = no; then
9061 runpath_var=
9062 hardcode_libdir_flag_spec=
9063 export_dynamic_flag_spec=
9064 whole_archive_flag_spec=
9065 fi
9066 else
9067 # PORTME fill in a description of your system's linker (not GNU ld)
9068 case $host_os in
9069 aix3*)
9070 allow_undefined_flag=unsupported
9071 always_export_symbols=yes
9072 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'
9073 # Note: this linker hardcodes the directories in LIBPATH if there
9074 # are no directories specified by -L.
9075 hardcode_minus_L=yes
9076 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9077 # Neither direct hardcoding nor static linking is supported with a
9078 # broken collect2.
9079 hardcode_direct=unsupported
9080 fi
9081 ;;
9082
9083 aix[4-9]*)
9084 if test "$host_cpu" = ia64; then
9085 # On IA64, the linker does run time linking by default, so we don't
9086 # have to do anything special.
9087 aix_use_runtimelinking=no
9088 exp_sym_flag='-Bexport'
9089 no_entry_flag=""
9090 else
9091 # If we're using GNU nm, then we don't want the "-C" option.
9092 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9093 # Also, AIX nm treats weak defined symbols like other global
9094 # defined symbols, whereas GNU nm marks them as "W".
9095 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9096 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'
9097 else
9098 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9099 fi
9100 aix_use_runtimelinking=no
9101
9102 # Test if we are trying to use run time linking or normal
9103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9104 # need to do runtime linking.
9105 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9106 for ld_flag in $LDFLAGS; do
9107 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9108 aix_use_runtimelinking=yes
9109 break
9110 fi
9111 done
9112 ;;
9113 esac
9114
9115 exp_sym_flag='-bexport'
9116 no_entry_flag='-bnoentry'
9117 fi
9118
9119 # When large executables or shared objects are built, AIX ld can
9120 # have problems creating the table of contents. If linking a library
9121 # or program results in "error TOC overflow" add -mminimal-toc to
9122 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9123 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9124
9125 archive_cmds=''
9126 hardcode_direct=yes
9127 hardcode_direct_absolute=yes
9128 hardcode_libdir_separator=':'
9129 link_all_deplibs=yes
9130 file_list_spec='${wl}-f,'
9131
9132 if test "$GCC" = yes; then
9133 case $host_os in aix4.[012]|aix4.[012].*)
9134 # We only want to do this on AIX 4.2 and lower, the check
9135 # below for broken collect2 doesn't work under 4.3+
9136 collect2name=`${CC} -print-prog-name=collect2`
9137 if test -f "$collect2name" &&
9138 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9139 then
9140 # We have reworked collect2
9141 :
9142 else
9143 # We have old collect2
9144 hardcode_direct=unsupported
9145 # It fails to find uninstalled libraries when the uninstalled
9146 # path is not listed in the libpath. Setting hardcode_minus_L
9147 # to unsupported forces relinking
9148 hardcode_minus_L=yes
9149 hardcode_libdir_flag_spec='-L$libdir'
9150 hardcode_libdir_separator=
9151 fi
9152 ;;
9153 esac
9154 shared_flag='-shared'
9155 if test "$aix_use_runtimelinking" = yes; then
9156 shared_flag="$shared_flag "'${wl}-G'
9157 fi
9158 else
9159 # not using gcc
9160 if test "$host_cpu" = ia64; then
9161 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9162 # chokes on -Wl,-G. The following line is correct:
9163 shared_flag='-G'
9164 else
9165 if test "$aix_use_runtimelinking" = yes; then
9166 shared_flag='${wl}-G'
9167 else
9168 shared_flag='${wl}-bM:SRE'
9169 fi
9170 fi
9171 fi
9172
9173 export_dynamic_flag_spec='${wl}-bexpall'
9174 # It seems that -bexpall does not export symbols beginning with
9175 # underscore (_), so it is better to generate a list of symbols to export.
9176 always_export_symbols=yes
9177 if test "$aix_use_runtimelinking" = yes; then
9178 # Warning - without using the other runtime loading flags (-brtl),
9179 # -berok will link without error, but may produce a broken library.
9180 allow_undefined_flag='-berok'
9181 # Determine the default libpath from the value encoded in an
9182 # empty executable.
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184/* end confdefs.h. */
9185
9186int
9187main ()
9188{
9189
9190 ;
9191 return 0;
9192}
9193_ACEOF
9194if ac_fn_c_try_link "$LINENO"; then :
9195
9196lt_aix_libpath_sed='
9197 /Import File Strings/,/^$/ {
9198 /^0/ {
9199 s/^0 *\(.*\)$/\1/
9200 p
9201 }
9202 }'
9203aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9204# Check for a 64-bit object if we didn't find anything.
9205if test -z "$aix_libpath"; then
9206 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9207fi
9208fi
9209rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext conftest.$ac_ext
9211if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9212
9213 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9214 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"
9215 else
9216 if test "$host_cpu" = ia64; then
9217 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9218 allow_undefined_flag="-z nodefs"
9219 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"
9220 else
9221 # Determine the default libpath from the value encoded in an
9222 # empty executable.
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224/* end confdefs.h. */
9225
9226int
9227main ()
9228{
9229
9230 ;
9231 return 0;
9232}
9233_ACEOF
9234if ac_fn_c_try_link "$LINENO"; then :
9235
9236lt_aix_libpath_sed='
9237 /Import File Strings/,/^$/ {
9238 /^0/ {
9239 s/^0 *\(.*\)$/\1/
9240 p
9241 }
9242 }'
9243aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9244# Check for a 64-bit object if we didn't find anything.
9245if test -z "$aix_libpath"; then
9246 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9247fi
9248fi
9249rm -f core conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext conftest.$ac_ext
9251if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9252
9253 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9254 # Warning - without using the other run time loading flags,
9255 # -berok will link without error, but may produce a broken library.
9256 no_undefined_flag=' ${wl}-bernotok'
9257 allow_undefined_flag=' ${wl}-berok'
9258 if test "$with_gnu_ld" = yes; then
9259 # We only use this code for GNU lds that support --whole-archive.
9260 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9261 else
9262 # Exported symbols can be pulled into shared objects from archives
9263 whole_archive_flag_spec='$convenience'
9264 fi
9265 archive_cmds_need_lc=yes
9266 # This is similar to how AIX traditionally builds its shared libraries.
9267 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'
9268 fi
9269 fi
9270 ;;
9271
9272 amigaos*)
9273 case $host_cpu in
9274 powerpc)
9275 # see comment about AmigaOS4 .so support
9276 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9277 archive_expsym_cmds=''
9278 ;;
9279 m68k)
9280 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)'
9281 hardcode_libdir_flag_spec='-L$libdir'
9282 hardcode_minus_L=yes
9283 ;;
9284 esac
9285 ;;
9286
9287 bsdi[45]*)
9288 export_dynamic_flag_spec=-rdynamic
9289 ;;
9290
9291 cygwin* | mingw* | pw32* | cegcc*)
9292 # When not using gcc, we currently assume that we are using
9293 # Microsoft Visual C++.
9294 # hardcode_libdir_flag_spec is actually meaningless, as there is
9295 # no search path for DLLs.
9296 hardcode_libdir_flag_spec=' '
9297 allow_undefined_flag=unsupported
9298 # Tell ltmain to make .lib files, not .a files.
9299 libext=lib
9300 # Tell ltmain to make .dll files, not .so files.
9301 shrext_cmds=".dll"
9302 # FIXME: Setting linknames here is a bad hack.
9303 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9304 # The linker will automatically build a .lib file if we build a DLL.
9305 old_archive_from_new_cmds='true'
9306 # FIXME: Should let the user specify the lib program.
9307 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9308 fix_srcfile_path='`cygpath -w "$srcfile"`'
9309 enable_shared_with_static_runtimes=yes
9310 ;;
9311
9312 darwin* | rhapsody*)
9313
9314
9315 archive_cmds_need_lc=no
9316 hardcode_direct=no
9317 hardcode_automatic=yes
9318 hardcode_shlibpath_var=unsupported
9319 if test "$lt_cv_ld_force_load" = "yes"; then
9320 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\"`'
9321 else
9322 whole_archive_flag_spec=''
9323 fi
9324 link_all_deplibs=yes
9325 allow_undefined_flag="$_lt_dar_allow_undefined"
9326 case $cc_basename in
9327 ifort*) _lt_dar_can_shared=yes ;;
9328 *) _lt_dar_can_shared=$GCC ;;
9329 esac
9330 if test "$_lt_dar_can_shared" = "yes"; then
9331 output_verbose_link_cmd=func_echo_all
9332 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9333 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9334 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9335 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}"
9336
9337 else
9338 ld_shlibs=no
9339 fi
9340
9341 ;;
9342
9343 dgux*)
9344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9345 hardcode_libdir_flag_spec='-L$libdir'
9346 hardcode_shlibpath_var=no
9347 ;;
9348
9349 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9350 # support. Future versions do this automatically, but an explicit c++rt0.o
9351 # does not break anything, and helps significantly (at the cost of a little
9352 # extra space).
9353 freebsd2.2*)
9354 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9355 hardcode_libdir_flag_spec='-R$libdir'
9356 hardcode_direct=yes
9357 hardcode_shlibpath_var=no
9358 ;;
9359
9360 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9361 freebsd2.*)
9362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9363 hardcode_direct=yes
9364 hardcode_minus_L=yes
9365 hardcode_shlibpath_var=no
9366 ;;
9367
9368 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9369 freebsd* | dragonfly*)
9370 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9371 hardcode_libdir_flag_spec='-R$libdir'
9372 hardcode_direct=yes
9373 hardcode_shlibpath_var=no
9374 ;;
9375
9376 hpux9*)
9377 if test "$GCC" = yes; then
9378 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'
9379 else
9380 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'
9381 fi
9382 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9383 hardcode_libdir_separator=:
9384 hardcode_direct=yes
9385
9386 # hardcode_minus_L: Not really in the search PATH,
9387 # but as the default location of the library.
9388 hardcode_minus_L=yes
9389 export_dynamic_flag_spec='${wl}-E'
9390 ;;
9391
9392 hpux10*)
9393 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9394 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9395 else
9396 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9397 fi
9398 if test "$with_gnu_ld" = no; then
9399 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9400 hardcode_libdir_flag_spec_ld='+b $libdir'
9401 hardcode_libdir_separator=:
9402 hardcode_direct=yes
9403 hardcode_direct_absolute=yes
9404 export_dynamic_flag_spec='${wl}-E'
9405 # hardcode_minus_L: Not really in the search PATH,
9406 # but as the default location of the library.
9407 hardcode_minus_L=yes
9408 fi
9409 ;;
9410
9411 hpux11*)
9412 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9413 case $host_cpu in
9414 hppa*64*)
9415 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 ;;
9417 ia64*)
9418 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9419 ;;
9420 *)
9421 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9422 ;;
9423 esac
9424 else
9425 case $host_cpu in
9426 hppa*64*)
9427 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 ;;
9429 ia64*)
9430 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9431 ;;
9432 *)
9433
9434 # Older versions of the 11.00 compiler do not understand -b yet
9435 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9437$as_echo_n "checking if $CC understands -b... " >&6; }
9438if test "${lt_cv_prog_compiler__b+set}" = set; then :
9439 $as_echo_n "(cached) " >&6
9440else
9441 lt_cv_prog_compiler__b=no
9442 save_LDFLAGS="$LDFLAGS"
9443 LDFLAGS="$LDFLAGS -b"
9444 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9445 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9446 # The linker can only warn and ignore the option if not recognized
9447 # So say no if there are warnings
9448 if test -s conftest.err; then
9449 # Append any errors to the config.log.
9450 cat conftest.err 1>&5
9451 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9453 if diff conftest.exp conftest.er2 >/dev/null; then
9454 lt_cv_prog_compiler__b=yes
9455 fi
9456 else
9457 lt_cv_prog_compiler__b=yes
9458 fi
9459 fi
9460 $RM -r conftest*
9461 LDFLAGS="$save_LDFLAGS"
9462
9463fi
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9465$as_echo "$lt_cv_prog_compiler__b" >&6; }
9466
9467if test x"$lt_cv_prog_compiler__b" = xyes; then
9468 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9469else
9470 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9471fi
9472
9473 ;;
9474 esac
9475 fi
9476 if test "$with_gnu_ld" = no; then
9477 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9478 hardcode_libdir_separator=:
9479
9480 case $host_cpu in
9481 hppa*64*|ia64*)
9482 hardcode_direct=no
9483 hardcode_shlibpath_var=no
9484 ;;
9485 *)
9486 hardcode_direct=yes
9487 hardcode_direct_absolute=yes
9488 export_dynamic_flag_spec='${wl}-E'
9489
9490 # hardcode_minus_L: Not really in the search PATH,
9491 # but as the default location of the library.
9492 hardcode_minus_L=yes
9493 ;;
9494 esac
9495 fi
9496 ;;
9497
9498 irix5* | irix6* | nonstopux*)
9499 if test "$GCC" = yes; then
9500 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'
9501 # Try to use the -exported_symbol ld option, if it does not
9502 # work, assume that -exports_file does not work either and
9503 # implicitly export all symbols.
9504 save_LDFLAGS="$LDFLAGS"
9505 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507/* end confdefs.h. */
9508int foo(void) {}
9509_ACEOF
9510if ac_fn_c_try_link "$LINENO"; then :
9511 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'
9512
9513fi
9514rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9516 LDFLAGS="$save_LDFLAGS"
9517 else
9518 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'
9519 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'
9520 fi
9521 archive_cmds_need_lc='no'
9522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9523 hardcode_libdir_separator=:
9524 inherit_rpath=yes
9525 link_all_deplibs=yes
9526 ;;
9527
9528 netbsd*)
9529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9530 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9531 else
9532 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9533 fi
9534 hardcode_libdir_flag_spec='-R$libdir'
9535 hardcode_direct=yes
9536 hardcode_shlibpath_var=no
9537 ;;
9538
9539 newsos6)
9540 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541 hardcode_direct=yes
9542 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9543 hardcode_libdir_separator=:
9544 hardcode_shlibpath_var=no
9545 ;;
9546
9547 *nto* | *qnx*)
9548 ;;
9549
9550 openbsd*)
9551 if test -f /usr/libexec/ld.so; then
9552 hardcode_direct=yes
9553 hardcode_shlibpath_var=no
9554 hardcode_direct_absolute=yes
9555 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9556 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9557 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9558 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9559 export_dynamic_flag_spec='${wl}-E'
9560 else
9561 case $host_os in
9562 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9564 hardcode_libdir_flag_spec='-R$libdir'
9565 ;;
9566 *)
9567 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9568 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9569 ;;
9570 esac
9571 fi
9572 else
9573 ld_shlibs=no
9574 fi
9575 ;;
9576
9577 os2*)
9578 hardcode_libdir_flag_spec='-L$libdir'
9579 hardcode_minus_L=yes
9580 allow_undefined_flag=unsupported
9581 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'
9582 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9583 ;;
9584
9585 osf3*)
9586 if test "$GCC" = yes; then
9587 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9588 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'
9589 else
9590 allow_undefined_flag=' -expect_unresolved \*'
9591 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'
9592 fi
9593 archive_cmds_need_lc='no'
9594 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9595 hardcode_libdir_separator=:
9596 ;;
9597
9598 osf4* | osf5*) # as osf3* with the addition of -msym flag
9599 if test "$GCC" = yes; then
9600 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9601 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'
9602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9603 else
9604 allow_undefined_flag=' -expect_unresolved \*'
9605 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'
9606 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~
9607 $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'
9608
9609 # Both c and cxx compiler support -rpath directly
9610 hardcode_libdir_flag_spec='-rpath $libdir'
9611 fi
9612 archive_cmds_need_lc='no'
9613 hardcode_libdir_separator=:
9614 ;;
9615
9616 solaris*)
9617 no_undefined_flag=' -z defs'
9618 if test "$GCC" = yes; then
9619 wlarc='${wl}'
9620 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9621 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9622 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9623 else
9624 case `$CC -V 2>&1` in
9625 *"Compilers 5.0"*)
9626 wlarc=''
9627 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9629 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9630 ;;
9631 *)
9632 wlarc='${wl}'
9633 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9634 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9635 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9636 ;;
9637 esac
9638 fi
9639 hardcode_libdir_flag_spec='-R$libdir'
9640 hardcode_shlibpath_var=no
9641 case $host_os in
9642 solaris2.[0-5] | solaris2.[0-5].*) ;;
9643 *)
9644 # The compiler driver will combine and reorder linker options,
9645 # but understands `-z linker_flag'. GCC discards it without `$wl',
9646 # but is careful enough not to reorder.
9647 # Supported since Solaris 2.6 (maybe 2.5.1?)
9648 if test "$GCC" = yes; then
9649 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9650 else
9651 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9652 fi
9653 ;;
9654 esac
9655 link_all_deplibs=yes
9656 ;;
9657
9658 sunos4*)
9659 if test "x$host_vendor" = xsequent; then
9660 # Use $CC to link under sequent, because it throws in some extra .o
9661 # files that make .init and .fini sections work.
9662 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9663 else
9664 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9665 fi
9666 hardcode_libdir_flag_spec='-L$libdir'
9667 hardcode_direct=yes
9668 hardcode_minus_L=yes
9669 hardcode_shlibpath_var=no
9670 ;;
9671
9672 sysv4)
9673 case $host_vendor in
9674 sni)
9675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9676 hardcode_direct=yes # is this really true???
9677 ;;
9678 siemens)
9679 ## LD is ld it makes a PLAMLIB
9680 ## CC just makes a GrossModule.
9681 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9682 reload_cmds='$CC -r -o $output$reload_objs'
9683 hardcode_direct=no
9684 ;;
9685 motorola)
9686 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9688 ;;
9689 esac
9690 runpath_var='LD_RUN_PATH'
9691 hardcode_shlibpath_var=no
9692 ;;
9693
9694 sysv4.3*)
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696 hardcode_shlibpath_var=no
9697 export_dynamic_flag_spec='-Bexport'
9698 ;;
9699
9700 sysv4*MP*)
9701 if test -d /usr/nec; then
9702 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703 hardcode_shlibpath_var=no
9704 runpath_var=LD_RUN_PATH
9705 hardcode_runpath_var=yes
9706 ld_shlibs=yes
9707 fi
9708 ;;
9709
9710 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9711 no_undefined_flag='${wl}-z,text'
9712 archive_cmds_need_lc=no
9713 hardcode_shlibpath_var=no
9714 runpath_var='LD_RUN_PATH'
9715
9716 if test "$GCC" = yes; then
9717 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719 else
9720 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 fi
9723 ;;
9724
9725 sysv5* | sco3.2v5* | sco5v6*)
9726 # Note: We can NOT use -z defs as we might desire, because we do not
9727 # link with -lc, and that would cause any symbols used from libc to
9728 # always be unresolved, which means just about no library would
9729 # ever link correctly. If we're not using GNU ld we use -z text
9730 # though, which does catch some bad symbols but isn't as heavy-handed
9731 # as -z defs.
9732 no_undefined_flag='${wl}-z,text'
9733 allow_undefined_flag='${wl}-z,nodefs'
9734 archive_cmds_need_lc=no
9735 hardcode_shlibpath_var=no
9736 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9737 hardcode_libdir_separator=':'
9738 link_all_deplibs=yes
9739 export_dynamic_flag_spec='${wl}-Bexport'
9740 runpath_var='LD_RUN_PATH'
9741
9742 if test "$GCC" = yes; then
9743 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 else
9746 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9747 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 fi
9749 ;;
9750
9751 uts4*)
9752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753 hardcode_libdir_flag_spec='-L$libdir'
9754 hardcode_shlibpath_var=no
9755 ;;
9756
9757 *)
9758 ld_shlibs=no
9759 ;;
9760 esac
9761
9762 if test x$host_vendor = xsni; then
9763 case $host in
9764 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9765 export_dynamic_flag_spec='${wl}-Blargedynsym'
9766 ;;
9767 esac
9768 fi
9769 fi
9770
9771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9772$as_echo "$ld_shlibs" >&6; }
9773test "$ld_shlibs" = no && can_build_shared=no
9774
9775with_gnu_ld=$with_gnu_ld
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791#
9792# Do we need to explicitly link libc?
9793#
9794case "x$archive_cmds_need_lc" in
9795x|xyes)
9796 # Assume -lc should be added
9797 archive_cmds_need_lc=yes
9798
9799 if test "$enable_shared" = yes && test "$GCC" = yes; then
9800 case $archive_cmds in
9801 *'~'*)
9802 # FIXME: we may have to deal with multi-command sequences.
9803 ;;
9804 '$CC '*)
9805 # Test whether the compiler implicitly links with -lc since on some
9806 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9807 # to ld, don't add -lc before -lgcc.
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9809$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9810if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9811 $as_echo_n "(cached) " >&6
9812else
9813 $RM conftest*
9814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9815
9816 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9817 (eval $ac_compile) 2>&5
9818 ac_status=$?
9819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9820 test $ac_status = 0; } 2>conftest.err; then
9821 soname=conftest
9822 lib=conftest
9823 libobjs=conftest.$ac_objext
9824 deplibs=
9825 wl=$lt_prog_compiler_wl
9826 pic_flag=$lt_prog_compiler_pic
9827 compiler_flags=-v
9828 linker_flags=-v
9829 verstring=
9830 output_objdir=.
9831 libname=conftest
9832 lt_save_allow_undefined_flag=$allow_undefined_flag
9833 allow_undefined_flag=
9834 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9835 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9836 ac_status=$?
9837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9838 test $ac_status = 0; }
9839 then
9840 lt_cv_archive_cmds_need_lc=no
9841 else
9842 lt_cv_archive_cmds_need_lc=yes
9843 fi
9844 allow_undefined_flag=$lt_save_allow_undefined_flag
9845 else
9846 cat conftest.err 1>&5
9847 fi
9848 $RM conftest*
9849
9850fi
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9852$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9853 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9854 ;;
9855 esac
9856 fi
9857 ;;
9858esac
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10017$as_echo_n "checking dynamic linker characteristics... " >&6; }
10018
10019if test "$GCC" = yes; then
10020 case $host_os in
10021 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10022 *) lt_awk_arg="/^libraries:/" ;;
10023 esac
10024 case $host_os in
10025 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10026 *) lt_sed_strip_eq="s,=/,/,g" ;;
10027 esac
10028 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10029 case $lt_search_path_spec in
10030 *\;*)
10031 # if the path contains ";" then we assume it to be the separator
10032 # otherwise default to the standard path separator (i.e. ":") - it is
10033 # assumed that no part of a normal pathname contains ";" but that should
10034 # okay in the real world where ";" in dirpaths is itself problematic.
10035 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10036 ;;
10037 *)
10038 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10039 ;;
10040 esac
10041 # Ok, now we have the path, separated by spaces, we can step through it
10042 # and add multilib dir if necessary.
10043 lt_tmp_lt_search_path_spec=
10044 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10045 for lt_sys_path in $lt_search_path_spec; do
10046 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10047 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10048 else
10049 test -d "$lt_sys_path" && \
10050 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10051 fi
10052 done
10053 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10054BEGIN {RS=" "; FS="/|\n";} {
10055 lt_foo="";
10056 lt_count=0;
10057 for (lt_i = NF; lt_i > 0; lt_i--) {
10058 if ($lt_i != "" && $lt_i != ".") {
10059 if ($lt_i == "..") {
10060 lt_count++;
10061 } else {
10062 if (lt_count == 0) {
10063 lt_foo="/" $lt_i lt_foo;
10064 } else {
10065 lt_count--;
10066 }
10067 }
10068 }
10069 }
10070 if (lt_foo != "") { lt_freq[lt_foo]++; }
10071 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10072}'`
10073 # AWK program above erroneously prepends '/' to C:/dos/paths
10074 # for these hosts.
10075 case $host_os in
10076 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10077 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10078 esac
10079 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10080else
10081 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10082fi
10083library_names_spec=
10084libname_spec='lib$name'
10085soname_spec=
10086shrext_cmds=".so"
10087postinstall_cmds=
10088postuninstall_cmds=
10089finish_cmds=
10090finish_eval=
10091shlibpath_var=
10092shlibpath_overrides_runpath=unknown
10093version_type=none
10094dynamic_linker="$host_os ld.so"
10095sys_lib_dlsearch_path_spec="/lib /usr/lib"
10096need_lib_prefix=unknown
10097hardcode_into_libs=no
10098
10099# when you set need_version to no, make sure it does not cause -set_version
10100# flags to be left without arguments
10101need_version=unknown
10102
10103case $host_os in
10104aix3*)
10105 version_type=linux
10106 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10107 shlibpath_var=LIBPATH
10108
10109 # AIX 3 has no versioning support, so we append a major version to the name.
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 ;;
10112
10113aix[4-9]*)
10114 version_type=linux
10115 need_lib_prefix=no
10116 need_version=no
10117 hardcode_into_libs=yes
10118 if test "$host_cpu" = ia64; then
10119 # AIX 5 supports IA64
10120 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10121 shlibpath_var=LD_LIBRARY_PATH
10122 else
10123 # With GCC up to 2.95.x, collect2 would create an import file
10124 # for dependence libraries. The import file would start with
10125 # the line `#! .'. This would cause the generated library to
10126 # depend on `.', always an invalid library. This was fixed in
10127 # development snapshots of GCC prior to 3.0.
10128 case $host_os in
10129 aix4 | aix4.[01] | aix4.[01].*)
10130 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10131 echo ' yes '
10132 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10133 :
10134 else
10135 can_build_shared=no
10136 fi
10137 ;;
10138 esac
10139 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10140 # soname into executable. Probably we can add versioning support to
10141 # collect2, so additional links can be useful in future.
10142 if test "$aix_use_runtimelinking" = yes; then
10143 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10144 # instead of lib<name>.a to let people know that these are not
10145 # typical AIX shared libraries.
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 else
10148 # We preserve .a as extension for shared libraries through AIX4.2
10149 # and later when we are not doing run time linking.
10150 library_names_spec='${libname}${release}.a $libname.a'
10151 soname_spec='${libname}${release}${shared_ext}$major'
10152 fi
10153 shlibpath_var=LIBPATH
10154 fi
10155 ;;
10156
10157amigaos*)
10158 case $host_cpu in
10159 powerpc)
10160 # Since July 2007 AmigaOS4 officially supports .so libraries.
10161 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 ;;
10164 m68k)
10165 library_names_spec='$libname.ixlibrary $libname.a'
10166 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10167 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'
10168 ;;
10169 esac
10170 ;;
10171
10172beos*)
10173 library_names_spec='${libname}${shared_ext}'
10174 dynamic_linker="$host_os ld.so"
10175 shlibpath_var=LIBRARY_PATH
10176 ;;
10177
10178bsdi[45]*)
10179 version_type=linux
10180 need_version=no
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10184 shlibpath_var=LD_LIBRARY_PATH
10185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10187 # the default ld.so.conf also contains /usr/contrib/lib and
10188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10189 # libtool to hard-code these into programs
10190 ;;
10191
10192cygwin* | mingw* | pw32* | cegcc*)
10193 version_type=windows
10194 shrext_cmds=".dll"
10195 need_version=no
10196 need_lib_prefix=no
10197
10198 case $GCC,$host_os in
10199 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10200 library_names_spec='$libname.dll.a'
10201 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10202 postinstall_cmds='base_file=`basename \${file}`~
10203 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10204 dldir=$destdir/`dirname \$dlpath`~
10205 test -d \$dldir || mkdir -p \$dldir~
10206 $install_prog $dir/$dlname \$dldir/$dlname~
10207 chmod a+x \$dldir/$dlname~
10208 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10209 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10210 fi'
10211 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10212 dlpath=$dir/\$dldll~
10213 $RM \$dlpath'
10214 shlibpath_overrides_runpath=yes
10215
10216 case $host_os in
10217 cygwin*)
10218 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10219 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10220
10221 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10222 ;;
10223 mingw* | cegcc*)
10224 # MinGW DLLs use traditional 'lib' prefix
10225 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10226 ;;
10227 pw32*)
10228 # pw32 DLLs use 'pw' prefix rather than 'lib'
10229 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10230 ;;
10231 esac
10232 ;;
10233
10234 *)
10235 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10236 ;;
10237 esac
10238 dynamic_linker='Win32 ld.exe'
10239 # FIXME: first we should search . and the directory the executable is in
10240 shlibpath_var=PATH
10241 ;;
10242
10243darwin* | rhapsody*)
10244 dynamic_linker="$host_os dyld"
10245 version_type=darwin
10246 need_lib_prefix=no
10247 need_version=no
10248 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10249 soname_spec='${libname}${release}${major}$shared_ext'
10250 shlibpath_overrides_runpath=yes
10251 shlibpath_var=DYLD_LIBRARY_PATH
10252 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10253
10254 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10255 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10256 ;;
10257
10258dgux*)
10259 version_type=linux
10260 need_lib_prefix=no
10261 need_version=no
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10263 soname_spec='${libname}${release}${shared_ext}$major'
10264 shlibpath_var=LD_LIBRARY_PATH
10265 ;;
10266
10267freebsd* | dragonfly*)
10268 # DragonFly does not have aout. When/if they implement a new
10269 # versioning mechanism, adjust this.
10270 if test -x /usr/bin/objformat; then
10271 objformat=`/usr/bin/objformat`
10272 else
10273 case $host_os in
10274 freebsd[23].*) objformat=aout ;;
10275 *) objformat=elf ;;
10276 esac
10277 fi
10278 version_type=freebsd-$objformat
10279 case $version_type in
10280 freebsd-elf*)
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10282 need_version=no
10283 need_lib_prefix=no
10284 ;;
10285 freebsd-*)
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10287 need_version=yes
10288 ;;
10289 esac
10290 shlibpath_var=LD_LIBRARY_PATH
10291 case $host_os in
10292 freebsd2.*)
10293 shlibpath_overrides_runpath=yes
10294 ;;
10295 freebsd3.[01]* | freebsdelf3.[01]*)
10296 shlibpath_overrides_runpath=yes
10297 hardcode_into_libs=yes
10298 ;;
10299 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10300 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10301 shlibpath_overrides_runpath=no
10302 hardcode_into_libs=yes
10303 ;;
10304 *) # from 4.6 on, and DragonFly
10305 shlibpath_overrides_runpath=yes
10306 hardcode_into_libs=yes
10307 ;;
10308 esac
10309 ;;
10310
10311gnu*)
10312 version_type=linux
10313 need_lib_prefix=no
10314 need_version=no
10315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10316 soname_spec='${libname}${release}${shared_ext}$major'
10317 shlibpath_var=LD_LIBRARY_PATH
10318 hardcode_into_libs=yes
10319 ;;
10320
10321haiku*)
10322 version_type=linux
10323 need_lib_prefix=no
10324 need_version=no
10325 dynamic_linker="$host_os runtime_loader"
10326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10327 soname_spec='${libname}${release}${shared_ext}$major'
10328 shlibpath_var=LIBRARY_PATH
10329 shlibpath_overrides_runpath=yes
10330 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10331 hardcode_into_libs=yes
10332 ;;
10333
10334hpux9* | hpux10* | hpux11*)
10335 # Give a soname corresponding to the major version so that dld.sl refuses to
10336 # link against other versions.
10337 version_type=sunos
10338 need_lib_prefix=no
10339 need_version=no
10340 case $host_cpu in
10341 ia64*)
10342 shrext_cmds='.so'
10343 hardcode_into_libs=yes
10344 dynamic_linker="$host_os dld.so"
10345 shlibpath_var=LD_LIBRARY_PATH
10346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 if test "X$HPUX_IA64_MODE" = X32; then
10350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10351 else
10352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10353 fi
10354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10355 ;;
10356 hppa*64*)
10357 shrext_cmds='.sl'
10358 hardcode_into_libs=yes
10359 dynamic_linker="$host_os dld.sl"
10360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363 soname_spec='${libname}${release}${shared_ext}$major'
10364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10366 ;;
10367 *)
10368 shrext_cmds='.sl'
10369 dynamic_linker="$host_os dld.sl"
10370 shlibpath_var=SHLIB_PATH
10371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 soname_spec='${libname}${release}${shared_ext}$major'
10374 ;;
10375 esac
10376 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10377 postinstall_cmds='chmod 555 $lib'
10378 # or fails outright, so override atomically:
10379 install_override_mode=555
10380 ;;
10381
10382interix[3-9]*)
10383 version_type=linux
10384 need_lib_prefix=no
10385 need_version=no
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 shlibpath_overrides_runpath=no
10391 hardcode_into_libs=yes
10392 ;;
10393
10394irix5* | irix6* | nonstopux*)
10395 case $host_os in
10396 nonstopux*) version_type=nonstopux ;;
10397 *)
10398 if test "$lt_cv_prog_gnu_ld" = yes; then
10399 version_type=linux
10400 else
10401 version_type=irix
10402 fi ;;
10403 esac
10404 need_lib_prefix=no
10405 need_version=no
10406 soname_spec='${libname}${release}${shared_ext}$major'
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10408 case $host_os in
10409 irix5* | nonstopux*)
10410 libsuff= shlibsuff=
10411 ;;
10412 *)
10413 case $LD in # libtool.m4 will add one of these switches to LD
10414 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10415 libsuff= shlibsuff= libmagic=32-bit;;
10416 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10417 libsuff=32 shlibsuff=N32 libmagic=N32;;
10418 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10419 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10420 *) libsuff= shlibsuff= libmagic=never-match;;
10421 esac
10422 ;;
10423 esac
10424 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10425 shlibpath_overrides_runpath=no
10426 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10427 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10428 hardcode_into_libs=yes
10429 ;;
10430
10431# No shared lib support for Linux oldld, aout, or coff.
10432linux*oldld* | linux*aout* | linux*coff*)
10433 dynamic_linker=no
10434 ;;
10435
10436# This must be Linux ELF.
10437linux* | k*bsd*-gnu | kopensolaris*-gnu)
10438 version_type=linux
10439 need_lib_prefix=no
10440 need_version=no
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10444 shlibpath_var=LD_LIBRARY_PATH
10445 shlibpath_overrides_runpath=no
10446
10447 # Some binutils ld are patched to set DT_RUNPATH
10448 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10449 $as_echo_n "(cached) " >&6
10450else
10451 lt_cv_shlibpath_overrides_runpath=no
10452 save_LDFLAGS=$LDFLAGS
10453 save_libdir=$libdir
10454 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10455 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457/* end confdefs.h. */
10458
10459int
10460main ()
10461{
10462
10463 ;
10464 return 0;
10465}
10466_ACEOF
10467if ac_fn_c_try_link "$LINENO"; then :
10468 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10469 lt_cv_shlibpath_overrides_runpath=yes
10470fi
10471fi
10472rm -f core conftest.err conftest.$ac_objext \
10473 conftest$ac_exeext conftest.$ac_ext
10474 LDFLAGS=$save_LDFLAGS
10475 libdir=$save_libdir
10476
10477fi
10478
10479 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10480
10481 # This implies no fast_install, which is unacceptable.
10482 # Some rework will be needed to allow for fast_install
10483 # before this can be enabled.
10484 hardcode_into_libs=yes
10485
10486 # Append ld.so.conf contents to the search path
10487 if test -f /etc/ld.so.conf; then
10488 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' ' '`
10489 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10490 fi
10491
10492 # We used to test for /lib/ld.so.1 and disable shared libraries on
10493 # powerpc, because MkLinux only supported shared libraries with the
10494 # GNU dynamic linker. Since this was broken with cross compilers,
10495 # most powerpc-linux boxes support dynamic linking these days and
10496 # people can always --disable-shared, the test was removed, and we
10497 # assume the GNU/Linux dynamic linker is in use.
10498 dynamic_linker='GNU/Linux ld.so'
10499 ;;
10500
10501netbsd*)
10502 version_type=sunos
10503 need_lib_prefix=no
10504 need_version=no
10505 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10507 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10508 dynamic_linker='NetBSD (a.out) ld.so'
10509 else
10510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10511 soname_spec='${libname}${release}${shared_ext}$major'
10512 dynamic_linker='NetBSD ld.elf_so'
10513 fi
10514 shlibpath_var=LD_LIBRARY_PATH
10515 shlibpath_overrides_runpath=yes
10516 hardcode_into_libs=yes
10517 ;;
10518
10519newsos6)
10520 version_type=linux
10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10522 shlibpath_var=LD_LIBRARY_PATH
10523 shlibpath_overrides_runpath=yes
10524 ;;
10525
10526*nto* | *qnx*)
10527 version_type=qnx
10528 need_lib_prefix=no
10529 need_version=no
10530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531 soname_spec='${libname}${release}${shared_ext}$major'
10532 shlibpath_var=LD_LIBRARY_PATH
10533 shlibpath_overrides_runpath=no
10534 hardcode_into_libs=yes
10535 dynamic_linker='ldqnx.so'
10536 ;;
10537
10538openbsd*)
10539 version_type=sunos
10540 sys_lib_dlsearch_path_spec="/usr/lib"
10541 need_lib_prefix=no
10542 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10543 case $host_os in
10544 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10545 *) need_version=no ;;
10546 esac
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10549 shlibpath_var=LD_LIBRARY_PATH
10550 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10551 case $host_os in
10552 openbsd2.[89] | openbsd2.[89].*)
10553 shlibpath_overrides_runpath=no
10554 ;;
10555 *)
10556 shlibpath_overrides_runpath=yes
10557 ;;
10558 esac
10559 else
10560 shlibpath_overrides_runpath=yes
10561 fi
10562 ;;
10563
10564os2*)
10565 libname_spec='$name'
10566 shrext_cmds=".dll"
10567 need_lib_prefix=no
10568 library_names_spec='$libname${shared_ext} $libname.a'
10569 dynamic_linker='OS/2 ld.exe'
10570 shlibpath_var=LIBPATH
10571 ;;
10572
10573osf3* | osf4* | osf5*)
10574 version_type=osf
10575 need_lib_prefix=no
10576 need_version=no
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579 shlibpath_var=LD_LIBRARY_PATH
10580 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10581 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10582 ;;
10583
10584rdos*)
10585 dynamic_linker=no
10586 ;;
10587
10588solaris*)
10589 version_type=linux
10590 need_lib_prefix=no
10591 need_version=no
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 shlibpath_overrides_runpath=yes
10596 hardcode_into_libs=yes
10597 # ldd complains unless libraries are executable
10598 postinstall_cmds='chmod +x $lib'
10599 ;;
10600
10601sunos4*)
10602 version_type=sunos
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10604 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 shlibpath_overrides_runpath=yes
10607 if test "$with_gnu_ld" = yes; then
10608 need_lib_prefix=no
10609 fi
10610 need_version=yes
10611 ;;
10612
10613sysv4 | sysv4.3*)
10614 version_type=linux
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616 soname_spec='${libname}${release}${shared_ext}$major'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 case $host_vendor in
10619 sni)
10620 shlibpath_overrides_runpath=no
10621 need_lib_prefix=no
10622 runpath_var=LD_RUN_PATH
10623 ;;
10624 siemens)
10625 need_lib_prefix=no
10626 ;;
10627 motorola)
10628 need_lib_prefix=no
10629 need_version=no
10630 shlibpath_overrides_runpath=no
10631 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10632 ;;
10633 esac
10634 ;;
10635
10636sysv4*MP*)
10637 if test -d /usr/nec ;then
10638 version_type=linux
10639 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10640 soname_spec='$libname${shared_ext}.$major'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 fi
10643 ;;
10644
10645sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10646 version_type=freebsd-elf
10647 need_lib_prefix=no
10648 need_version=no
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10650 soname_spec='${libname}${release}${shared_ext}$major'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 shlibpath_overrides_runpath=yes
10653 hardcode_into_libs=yes
10654 if test "$with_gnu_ld" = yes; then
10655 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10656 else
10657 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10658 case $host_os in
10659 sco3.2v5*)
10660 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10661 ;;
10662 esac
10663 fi
10664 sys_lib_dlsearch_path_spec='/usr/lib'
10665 ;;
10666
10667tpf*)
10668 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10669 version_type=linux
10670 need_lib_prefix=no
10671 need_version=no
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=no
10675 hardcode_into_libs=yes
10676 ;;
10677
10678uts4*)
10679 version_type=linux
10680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 shlibpath_var=LD_LIBRARY_PATH
10683 ;;
10684
10685*)
10686 dynamic_linker=no
10687 ;;
10688esac
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10690$as_echo "$dynamic_linker" >&6; }
10691test "$dynamic_linker" = no && can_build_shared=no
10692
10693variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10694if test "$GCC" = yes; then
10695 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10696fi
10697
10698if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10699 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10700fi
10701if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10702 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10703fi
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10797$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10798hardcode_action=
10799if test -n "$hardcode_libdir_flag_spec" ||
10800 test -n "$runpath_var" ||
10801 test "X$hardcode_automatic" = "Xyes" ; then
10802
10803 # We can hardcode non-existent directories.
10804 if test "$hardcode_direct" != no &&
10805 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10806 # have to relink, otherwise we might link with an installed library
10807 # when we should be linking with a yet-to-be-installed one
10808 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10809 test "$hardcode_minus_L" != no; then
10810 # Linking always hardcodes the temporary library directory.
10811 hardcode_action=relink
10812 else
10813 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10814 hardcode_action=immediate
10815 fi
10816else
10817 # We cannot hardcode anything, or else we can only hardcode existing
10818 # directories.
10819 hardcode_action=unsupported
10820fi
10821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10822$as_echo "$hardcode_action" >&6; }
10823
10824if test "$hardcode_action" = relink ||
10825 test "$inherit_rpath" = yes; then
10826 # Fast installation is not supported
10827 enable_fast_install=no
10828elif test "$shlibpath_overrides_runpath" = yes ||
10829 test "$enable_shared" = no; then
10830 # Fast installation is not necessary
10831 enable_fast_install=needless
10832fi
10833
10834
10835
10836
10837
10838
10839 if test "x$enable_dlopen" != xyes; then
10840 enable_dlopen=unknown
10841 enable_dlopen_self=unknown
10842 enable_dlopen_self_static=unknown
10843else
10844 lt_cv_dlopen=no
10845 lt_cv_dlopen_libs=
10846
10847 case $host_os in
10848 beos*)
10849 lt_cv_dlopen="load_add_on"
10850 lt_cv_dlopen_libs=
10851 lt_cv_dlopen_self=yes
10852 ;;
10853
10854 mingw* | pw32* | cegcc*)
10855 lt_cv_dlopen="LoadLibrary"
10856 lt_cv_dlopen_libs=
10857 ;;
10858
10859 cygwin*)
10860 lt_cv_dlopen="dlopen"
10861 lt_cv_dlopen_libs=
10862 ;;
10863
10864 darwin*)
10865 # if libdl is installed we need to link against it
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10867$as_echo_n "checking for dlopen in -ldl... " >&6; }
10868if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10869 $as_echo_n "(cached) " >&6
10870else
10871 ac_check_lib_save_LIBS=$LIBS
10872LIBS="-ldl $LIBS"
10873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874/* end confdefs.h. */
10875
10876/* Override any GCC internal prototype to avoid an error.
10877 Use char because int might match the return type of a GCC
10878 builtin and then its argument prototype would still apply. */
10879#ifdef __cplusplus
10880extern "C"
10881#endif
10882char dlopen ();
10883int
10884main ()
10885{
10886return dlopen ();
10887 ;
10888 return 0;
10889}
10890_ACEOF
10891if ac_fn_c_try_link "$LINENO"; then :
10892 ac_cv_lib_dl_dlopen=yes
10893else
10894 ac_cv_lib_dl_dlopen=no
10895fi
10896rm -f core conftest.err conftest.$ac_objext \
10897 conftest$ac_exeext conftest.$ac_ext
10898LIBS=$ac_check_lib_save_LIBS
10899fi
10900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10901$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10902if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10904else
10905
10906 lt_cv_dlopen="dyld"
10907 lt_cv_dlopen_libs=
10908 lt_cv_dlopen_self=yes
10909
10910fi
10911
10912 ;;
10913
10914 *)
10915 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10916if test "x$ac_cv_func_shl_load" = x""yes; then :
10917 lt_cv_dlopen="shl_load"
10918else
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10920$as_echo_n "checking for shl_load in -ldld... " >&6; }
10921if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10923else
10924 ac_check_lib_save_LIBS=$LIBS
10925LIBS="-ldld $LIBS"
10926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10927/* end confdefs.h. */
10928
10929/* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10932#ifdef __cplusplus
10933extern "C"
10934#endif
10935char shl_load ();
10936int
10937main ()
10938{
10939return shl_load ();
10940 ;
10941 return 0;
10942}
10943_ACEOF
10944if ac_fn_c_try_link "$LINENO"; then :
10945 ac_cv_lib_dld_shl_load=yes
10946else
10947 ac_cv_lib_dld_shl_load=no
10948fi
10949rm -f core conftest.err conftest.$ac_objext \
10950 conftest$ac_exeext conftest.$ac_ext
10951LIBS=$ac_check_lib_save_LIBS
10952fi
10953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10954$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10955if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10956 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10957else
10958 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10959if test "x$ac_cv_func_dlopen" = x""yes; then :
10960 lt_cv_dlopen="dlopen"
10961else
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10963$as_echo_n "checking for dlopen in -ldl... " >&6; }
10964if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10965 $as_echo_n "(cached) " >&6
10966else
10967 ac_check_lib_save_LIBS=$LIBS
10968LIBS="-ldl $LIBS"
10969cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10970/* end confdefs.h. */
10971
10972/* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10975#ifdef __cplusplus
10976extern "C"
10977#endif
10978char dlopen ();
10979int
10980main ()
10981{
10982return dlopen ();
10983 ;
10984 return 0;
10985}
10986_ACEOF
10987if ac_fn_c_try_link "$LINENO"; then :
10988 ac_cv_lib_dl_dlopen=yes
10989else
10990 ac_cv_lib_dl_dlopen=no
10991fi
10992rm -f core conftest.err conftest.$ac_objext \
10993 conftest$ac_exeext conftest.$ac_ext
10994LIBS=$ac_check_lib_save_LIBS
10995fi
10996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10997$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10998if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11000else
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11002$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11003if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11004 $as_echo_n "(cached) " >&6
11005else
11006 ac_check_lib_save_LIBS=$LIBS
11007LIBS="-lsvld $LIBS"
11008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11009/* end confdefs.h. */
11010
11011/* Override any GCC internal prototype to avoid an error.
11012 Use char because int might match the return type of a GCC
11013 builtin and then its argument prototype would still apply. */
11014#ifdef __cplusplus
11015extern "C"
11016#endif
11017char dlopen ();
11018int
11019main ()
11020{
11021return dlopen ();
11022 ;
11023 return 0;
11024}
11025_ACEOF
11026if ac_fn_c_try_link "$LINENO"; then :
11027 ac_cv_lib_svld_dlopen=yes
11028else
11029 ac_cv_lib_svld_dlopen=no
11030fi
11031rm -f core conftest.err conftest.$ac_objext \
11032 conftest$ac_exeext conftest.$ac_ext
11033LIBS=$ac_check_lib_save_LIBS
11034fi
11035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11036$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11037if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11038 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11039else
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11041$as_echo_n "checking for dld_link in -ldld... " >&6; }
11042if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11043 $as_echo_n "(cached) " >&6
11044else
11045 ac_check_lib_save_LIBS=$LIBS
11046LIBS="-ldld $LIBS"
11047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048/* end confdefs.h. */
11049
11050/* Override any GCC internal prototype to avoid an error.
11051 Use char because int might match the return type of a GCC
11052 builtin and then its argument prototype would still apply. */
11053#ifdef __cplusplus
11054extern "C"
11055#endif
11056char dld_link ();
11057int
11058main ()
11059{
11060return dld_link ();
11061 ;
11062 return 0;
11063}
11064_ACEOF
11065if ac_fn_c_try_link "$LINENO"; then :
11066 ac_cv_lib_dld_dld_link=yes
11067else
11068 ac_cv_lib_dld_dld_link=no
11069fi
11070rm -f core conftest.err conftest.$ac_objext \
11071 conftest$ac_exeext conftest.$ac_ext
11072LIBS=$ac_check_lib_save_LIBS
11073fi
11074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11075$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11076if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11077 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11078fi
11079
11080
11081fi
11082
11083
11084fi
11085
11086
11087fi
11088
11089
11090fi
11091
11092
11093fi
11094
11095 ;;
11096 esac
11097
11098 if test "x$lt_cv_dlopen" != xno; then
11099 enable_dlopen=yes
11100 else
11101 enable_dlopen=no
11102 fi
11103
11104 case $lt_cv_dlopen in
11105 dlopen)
11106 save_CPPFLAGS="$CPPFLAGS"
11107 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11108
11109 save_LDFLAGS="$LDFLAGS"
11110 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11111
11112 save_LIBS="$LIBS"
11113 LIBS="$lt_cv_dlopen_libs $LIBS"
11114
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11116$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11117if test "${lt_cv_dlopen_self+set}" = set; then :
11118 $as_echo_n "(cached) " >&6
11119else
11120 if test "$cross_compiling" = yes; then :
11121 lt_cv_dlopen_self=cross
11122else
11123 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11124 lt_status=$lt_dlunknown
11125 cat > conftest.$ac_ext <<_LT_EOF
Caroline Ticea2bc87a2016-05-03 15:40:1011126#line 11126 "configure"
Han Shenb42cc222013-11-18 20:49:2211127#include "confdefs.h"
11128
11129#if HAVE_DLFCN_H
11130#include <dlfcn.h>
11131#endif
11132
11133#include <stdio.h>
11134
11135#ifdef RTLD_GLOBAL
11136# define LT_DLGLOBAL RTLD_GLOBAL
11137#else
11138# ifdef DL_GLOBAL
11139# define LT_DLGLOBAL DL_GLOBAL
11140# else
11141# define LT_DLGLOBAL 0
11142# endif
11143#endif
11144
11145/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11146 find out it does not work in some platform. */
11147#ifndef LT_DLLAZY_OR_NOW
11148# ifdef RTLD_LAZY
11149# define LT_DLLAZY_OR_NOW RTLD_LAZY
11150# else
11151# ifdef DL_LAZY
11152# define LT_DLLAZY_OR_NOW DL_LAZY
11153# else
11154# ifdef RTLD_NOW
11155# define LT_DLLAZY_OR_NOW RTLD_NOW
11156# else
11157# ifdef DL_NOW
11158# define LT_DLLAZY_OR_NOW DL_NOW
11159# else
11160# define LT_DLLAZY_OR_NOW 0
11161# endif
11162# endif
11163# endif
11164# endif
11165#endif
11166
11167/* When -fvisbility=hidden is used, assume the code has been annotated
11168 correspondingly for the symbols needed. */
11169#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11170void fnord () __attribute__((visibility("default")));
11171#endif
11172
11173void fnord () { int i=42; }
11174int main ()
11175{
11176 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11177 int status = $lt_dlunknown;
11178
11179 if (self)
11180 {
11181 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11182 else
11183 {
11184 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11185 else puts (dlerror ());
11186 }
11187 /* dlclose (self); */
11188 }
11189 else
11190 puts (dlerror ());
11191
11192 return status;
11193}
11194_LT_EOF
11195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11196 (eval $ac_link) 2>&5
11197 ac_status=$?
11198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11199 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11200 (./conftest; exit; ) >&5 2>/dev/null
11201 lt_status=$?
11202 case x$lt_status in
11203 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11204 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11205 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11206 esac
11207 else :
11208 # compilation failed
11209 lt_cv_dlopen_self=no
11210 fi
11211fi
11212rm -fr conftest*
11213
11214
11215fi
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11217$as_echo "$lt_cv_dlopen_self" >&6; }
11218
11219 if test "x$lt_cv_dlopen_self" = xyes; then
11220 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11222$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11223if test "${lt_cv_dlopen_self_static+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
11225else
11226 if test "$cross_compiling" = yes; then :
11227 lt_cv_dlopen_self_static=cross
11228else
11229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11230 lt_status=$lt_dlunknown
11231 cat > conftest.$ac_ext <<_LT_EOF
Caroline Ticea2bc87a2016-05-03 15:40:1011232#line 11232 "configure"
Han Shenb42cc222013-11-18 20:49:2211233#include "confdefs.h"
11234
11235#if HAVE_DLFCN_H
11236#include <dlfcn.h>
11237#endif
11238
11239#include <stdio.h>
11240
11241#ifdef RTLD_GLOBAL
11242# define LT_DLGLOBAL RTLD_GLOBAL
11243#else
11244# ifdef DL_GLOBAL
11245# define LT_DLGLOBAL DL_GLOBAL
11246# else
11247# define LT_DLGLOBAL 0
11248# endif
11249#endif
11250
11251/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11252 find out it does not work in some platform. */
11253#ifndef LT_DLLAZY_OR_NOW
11254# ifdef RTLD_LAZY
11255# define LT_DLLAZY_OR_NOW RTLD_LAZY
11256# else
11257# ifdef DL_LAZY
11258# define LT_DLLAZY_OR_NOW DL_LAZY
11259# else
11260# ifdef RTLD_NOW
11261# define LT_DLLAZY_OR_NOW RTLD_NOW
11262# else
11263# ifdef DL_NOW
11264# define LT_DLLAZY_OR_NOW DL_NOW
11265# else
11266# define LT_DLLAZY_OR_NOW 0
11267# endif
11268# endif
11269# endif
11270# endif
11271#endif
11272
11273/* When -fvisbility=hidden is used, assume the code has been annotated
11274 correspondingly for the symbols needed. */
11275#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11276void fnord () __attribute__((visibility("default")));
11277#endif
11278
11279void fnord () { int i=42; }
11280int main ()
11281{
11282 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11283 int status = $lt_dlunknown;
11284
11285 if (self)
11286 {
11287 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11288 else
11289 {
11290 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11291 else puts (dlerror ());
11292 }
11293 /* dlclose (self); */
11294 }
11295 else
11296 puts (dlerror ());
11297
11298 return status;
11299}
11300_LT_EOF
11301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11302 (eval $ac_link) 2>&5
11303 ac_status=$?
11304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11305 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11306 (./conftest; exit; ) >&5 2>/dev/null
11307 lt_status=$?
11308 case x$lt_status in
11309 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11310 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11311 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11312 esac
11313 else :
11314 # compilation failed
11315 lt_cv_dlopen_self_static=no
11316 fi
11317fi
11318rm -fr conftest*
11319
11320
11321fi
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11323$as_echo "$lt_cv_dlopen_self_static" >&6; }
11324 fi
11325
11326 CPPFLAGS="$save_CPPFLAGS"
11327 LDFLAGS="$save_LDFLAGS"
11328 LIBS="$save_LIBS"
11329 ;;
11330 esac
11331
11332 case $lt_cv_dlopen_self in
11333 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11334 *) enable_dlopen_self=unknown ;;
11335 esac
11336
11337 case $lt_cv_dlopen_self_static in
11338 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11339 *) enable_dlopen_self_static=unknown ;;
11340 esac
11341fi
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359striplib=
11360old_striplib=
11361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11362$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11363if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11364 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11365 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11367$as_echo "yes" >&6; }
11368else
11369# FIXME - insert some real tests, host_os isn't really good enough
11370 case $host_os in
11371 darwin*)
11372 if test -n "$STRIP" ; then
11373 striplib="$STRIP -x"
11374 old_striplib="$STRIP -S"
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11376$as_echo "yes" >&6; }
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379$as_echo "no" >&6; }
11380 fi
11381 ;;
11382 *)
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384$as_echo "no" >&6; }
11385 ;;
11386 esac
11387fi
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400 # Report which library types will actually be built
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11402$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11404$as_echo "$can_build_shared" >&6; }
11405
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11407$as_echo_n "checking whether to build shared libraries... " >&6; }
11408 test "$can_build_shared" = "no" && enable_shared=no
11409
11410 # On AIX, shared libraries and static libraries use the same namespace, and
11411 # are all built from PIC.
11412 case $host_os in
11413 aix3*)
11414 test "$enable_shared" = yes && enable_static=no
11415 if test -n "$RANLIB"; then
11416 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11417 postinstall_cmds='$RANLIB $lib'
11418 fi
11419 ;;
11420
11421 aix[4-9]*)
11422 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11423 test "$enable_shared" = yes && enable_static=no
11424 fi
11425 ;;
11426 esac
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11428$as_echo "$enable_shared" >&6; }
11429
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11431$as_echo_n "checking whether to build static libraries... " >&6; }
11432 # Make sure either enable_shared or enable_static is yes.
11433 test "$enable_shared" = yes || enable_static=yes
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11435$as_echo "$enable_static" >&6; }
11436
11437
11438
11439
11440fi
11441ac_ext=c
11442ac_cpp='$CPP $CPPFLAGS'
11443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11445ac_compiler_gnu=$ac_cv_c_compiler_gnu
11446
11447CC="$lt_save_CC"
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461 ac_config_commands="$ac_config_commands libtool"
11462
11463
11464
11465
11466# Only expand once:
11467
11468
11469
11470
11471
11472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11473$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11474 # Check whether --enable-maintainer-mode was given.
11475if test "${enable_maintainer_mode+set}" = set; then :
11476 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11477else
11478 USE_MAINTAINER_MODE=no
11479fi
11480
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11482$as_echo "$USE_MAINTAINER_MODE" >&6; }
11483 if test $USE_MAINTAINER_MODE = yes; then
11484 MAINTAINER_MODE_TRUE=
11485 MAINTAINER_MODE_FALSE='#'
11486else
11487 MAINTAINER_MODE_TRUE='#'
11488 MAINTAINER_MODE_FALSE=
11489fi
11490
11491 MAINT=$MAINTAINER_MODE_TRUE
11492
11493
11494
11495# For libtool versioning info, format is CURRENT:REVISION:AGE
Luis Lozano2f9796c2014-09-12 21:35:0811496libtool_VERSION=2:0:1
Han Shenb42cc222013-11-18 20:49:2211497
11498
11499# Get target configury.
11500. ${srcdir}/configure.tgt
11501if test -n "$UNSUPPORTED"; then
11502 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
11503fi
11504
11505# Disable fallbacks to __sync routines from libgcc. Otherwise we'll
11506# make silly decisions about what the cpu can do.
11507CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS"
11508
11509# Check header files.
11510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11511$as_echo_n "checking for ANSI C header files... " >&6; }
11512if test "${ac_cv_header_stdc+set}" = set; then :
11513 $as_echo_n "(cached) " >&6
11514else
11515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11516/* end confdefs.h. */
11517#include <stdlib.h>
11518#include <stdarg.h>
11519#include <string.h>
11520#include <float.h>
11521
11522int
11523main ()
11524{
11525
11526 ;
11527 return 0;
11528}
11529_ACEOF
11530if ac_fn_c_try_compile "$LINENO"; then :
11531 ac_cv_header_stdc=yes
11532else
11533 ac_cv_header_stdc=no
11534fi
11535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536
11537if test $ac_cv_header_stdc = yes; then
11538 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11540/* end confdefs.h. */
11541#include <string.h>
11542
11543_ACEOF
11544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11545 $EGREP "memchr" >/dev/null 2>&1; then :
11546
11547else
11548 ac_cv_header_stdc=no
11549fi
11550rm -f conftest*
11551
11552fi
11553
11554if test $ac_cv_header_stdc = yes; then
11555 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557/* end confdefs.h. */
11558#include <stdlib.h>
11559
11560_ACEOF
11561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11562 $EGREP "free" >/dev/null 2>&1; then :
11563
11564else
11565 ac_cv_header_stdc=no
11566fi
11567rm -f conftest*
11568
11569fi
11570
11571if test $ac_cv_header_stdc = yes; then
11572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11573 if test "$cross_compiling" = yes; then :
11574 :
11575else
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577/* end confdefs.h. */
11578#include <ctype.h>
11579#include <stdlib.h>
11580#if ((' ' & 0x0FF) == 0x020)
11581# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11582# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11583#else
11584# define ISLOWER(c) \
11585 (('a' <= (c) && (c) <= 'i') \
11586 || ('j' <= (c) && (c) <= 'r') \
11587 || ('s' <= (c) && (c) <= 'z'))
11588# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11589#endif
11590
11591#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11592int
11593main ()
11594{
11595 int i;
11596 for (i = 0; i < 256; i++)
11597 if (XOR (islower (i), ISLOWER (i))
11598 || toupper (i) != TOUPPER (i))
11599 return 2;
11600 return 0;
11601}
11602_ACEOF
11603if ac_fn_c_try_run "$LINENO"; then :
11604
11605else
11606 ac_cv_header_stdc=no
11607fi
11608rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11609 conftest.$ac_objext conftest.beam conftest.$ac_ext
11610fi
11611
11612fi
11613fi
11614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11615$as_echo "$ac_cv_header_stdc" >&6; }
11616if test $ac_cv_header_stdc = yes; then
11617
11618$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11619
11620fi
11621
11622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
11623$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
11624if test "${gcc_cv_header_string+set}" = set; then :
11625 $as_echo_n "(cached) " >&6
11626else
11627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11628/* end confdefs.h. */
11629#include <string.h>
11630#include <strings.h>
11631int
11632main ()
11633{
11634
11635 ;
11636 return 0;
11637}
11638_ACEOF
11639if ac_fn_c_try_compile "$LINENO"; then :
11640 gcc_cv_header_string=yes
11641else
11642 gcc_cv_header_string=no
11643fi
11644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11645fi
11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
11647$as_echo "$gcc_cv_header_string" >&6; }
11648if test $gcc_cv_header_string = yes; then
11649
11650$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
11651
11652fi
11653
11654
11655
11656inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11657
11658acx_cv_header_stdint=stddef.h
11659acx_cv_header_stdint_kind="(already complete)"
11660for i in stdint.h $inttype_headers; do
11661 unset ac_cv_type_uintptr_t
11662 unset ac_cv_type_uintmax_t
11663 unset ac_cv_type_int_least32_t
11664 unset ac_cv_type_int_fast32_t
11665 unset ac_cv_type_uint64_t
11666 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
11667 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
11668#include <$i>
11669"
11670if test "x$ac_cv_type_uintmax_t" = x""yes; then :
11671 acx_cv_header_stdint=$i
11672else
11673 continue
11674fi
11675
11676 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11677#include <$i>
11678"
11679if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11680
11681else
11682 acx_cv_header_stdint_kind="(mostly complete)"
11683fi
11684
11685 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
11686#include <$i>
11687"
11688if test "x$ac_cv_type_int_least32_t" = x""yes; then :
11689
11690else
11691 acx_cv_header_stdint_kind="(mostly complete)"
11692fi
11693
11694 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
11695#include <$i>
11696"
11697if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
11698
11699else
11700 acx_cv_header_stdint_kind="(mostly complete)"
11701fi
11702
11703 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11704#include <$i>
11705"
11706if test "x$ac_cv_type_uint64_t" = x""yes; then :
11707
11708else
11709 acx_cv_header_stdint_kind="(lacks uint64_t)"
11710fi
11711
11712 break
11713done
11714if test "$acx_cv_header_stdint" = stddef.h; then
11715 acx_cv_header_stdint_kind="(lacks uintmax_t)"
11716 for i in stdint.h $inttype_headers; do
11717 unset ac_cv_type_uintptr_t
11718 unset ac_cv_type_uint32_t
11719 unset ac_cv_type_uint64_t
11720 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
11721 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
11722#include <$i>
11723"
11724if test "x$ac_cv_type_uint32_t" = x""yes; then :
11725 acx_cv_header_stdint=$i
11726else
11727 continue
11728fi
11729
11730 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
11731#include <$i>
11732"
11733if test "x$ac_cv_type_uint64_t" = x""yes; then :
11734
11735fi
11736
11737 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
11738#include <$i>
11739"
11740if test "x$ac_cv_type_uintptr_t" = x""yes; then :
11741
11742fi
11743
11744 break
11745 done
11746fi
11747if test "$acx_cv_header_stdint" = stddef.h; then
11748 acx_cv_header_stdint_kind="(u_intXX_t style)"
11749 for i in sys/types.h $inttype_headers; do
11750 unset ac_cv_type_u_int32_t
11751 unset ac_cv_type_u_int64_t
11752 $as_echo_n "looking for u_intXX_t types in $i, " >&6
11753 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
11754#include <$i>
11755"
11756if test "x$ac_cv_type_u_int32_t" = x""yes; then :
11757 acx_cv_header_stdint=$i
11758else
11759 continue
11760fi
11761
11762 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
11763#include <$i>
11764"
11765if test "x$ac_cv_type_u_int64_t" = x""yes; then :
11766
11767fi
11768
11769 break
11770 done
11771fi
11772if test "$acx_cv_header_stdint" = stddef.h; then
11773 acx_cv_header_stdint_kind="(using manual detection)"
11774fi
11775
11776test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
11777test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
11778test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
11779test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
11780test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
11781
11782# ----------------- Summarize what we found so far
11783
11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
11785$as_echo_n "checking what to include in gstdint.h... " >&6; }
11786
11787case `$as_basename -- gstdint.h ||
11788$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
11789 Xgstdint.h : 'X\(//\)$' \| \
11790 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
11791$as_echo X/gstdint.h |
11792 sed '/^.*\/\([^/][^/]*\)\/*$/{
11793 s//\1/
11794 q
11795 }
11796 /^X\/\(\/\/\)$/{
11797 s//\1/
11798 q
11799 }
11800 /^X\/\(\/\).*/{
11801 s//\1/
11802 q
11803 }
11804 s/.*/./; q'` in
11805 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11806$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11807 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
11808$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
11809 *) ;;
11810esac
11811
11812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
11813$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
11814
11815# ----------------- done included file, check C basic types --------
11816
11817# Lacking an uintptr_t? Test size of void *
11818case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
11819 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
11820# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11821# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11822# This bug is HP SR number 8606223364.
11823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11824$as_echo_n "checking size of void *... " >&6; }
11825if test "${ac_cv_sizeof_void_p+set}" = set; then :
11826 $as_echo_n "(cached) " >&6
11827else
11828 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
11829
11830else
11831 if test "$ac_cv_type_void_p" = yes; then
11832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11834{ as_fn_set_status 77
11835as_fn_error "cannot compute sizeof (void *)
11836See \`config.log' for more details." "$LINENO" 5; }; }
11837 else
11838 ac_cv_sizeof_void_p=0
11839 fi
11840fi
11841
11842fi
11843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
11844$as_echo "$ac_cv_sizeof_void_p" >&6; }
11845
11846
11847
11848cat >>confdefs.h <<_ACEOF
11849#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11850_ACEOF
11851
11852 ;;
11853esac
11854
11855# Lacking an uint64_t? Test size of long
11856case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
11857 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
11858# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11859# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11860# This bug is HP SR number 8606223364.
11861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11862$as_echo_n "checking size of long... " >&6; }
11863if test "${ac_cv_sizeof_long+set}" = set; then :
11864 $as_echo_n "(cached) " >&6
11865else
11866 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
11867
11868else
11869 if test "$ac_cv_type_long" = yes; then
11870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11872{ as_fn_set_status 77
11873as_fn_error "cannot compute sizeof (long)
11874See \`config.log' for more details." "$LINENO" 5; }; }
11875 else
11876 ac_cv_sizeof_long=0
11877 fi
11878fi
11879
11880fi
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11882$as_echo "$ac_cv_sizeof_long" >&6; }
11883
11884
11885
11886cat >>confdefs.h <<_ACEOF
11887#define SIZEOF_LONG $ac_cv_sizeof_long
11888_ACEOF
11889
11890 ;;
11891esac
11892
11893if test $acx_cv_header_stdint = stddef.h; then
11894 # Lacking a good header? Test size of everything and deduce all types.
11895 # The cast to long int works around a bug in the HP C Compiler
11896# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11897# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11898# This bug is HP SR number 8606223364.
11899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11900$as_echo_n "checking size of int... " >&6; }
11901if test "${ac_cv_sizeof_int+set}" = set; then :
11902 $as_echo_n "(cached) " >&6
11903else
11904 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
11905
11906else
11907 if test "$ac_cv_type_int" = yes; then
11908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11910{ as_fn_set_status 77
11911as_fn_error "cannot compute sizeof (int)
11912See \`config.log' for more details." "$LINENO" 5; }; }
11913 else
11914 ac_cv_sizeof_int=0
11915 fi
11916fi
11917
11918fi
11919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11920$as_echo "$ac_cv_sizeof_int" >&6; }
11921
11922
11923
11924cat >>confdefs.h <<_ACEOF
11925#define SIZEOF_INT $ac_cv_sizeof_int
11926_ACEOF
11927
11928
11929 # The cast to long int works around a bug in the HP C Compiler
11930# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11931# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11932# This bug is HP SR number 8606223364.
11933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
11934$as_echo_n "checking size of short... " >&6; }
11935if test "${ac_cv_sizeof_short+set}" = set; then :
11936 $as_echo_n "(cached) " >&6
11937else
11938 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
11939
11940else
11941 if test "$ac_cv_type_short" = yes; then
11942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11944{ as_fn_set_status 77
11945as_fn_error "cannot compute sizeof (short)
11946See \`config.log' for more details." "$LINENO" 5; }; }
11947 else
11948 ac_cv_sizeof_short=0
11949 fi
11950fi
11951
11952fi
11953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
11954$as_echo "$ac_cv_sizeof_short" >&6; }
11955
11956
11957
11958cat >>confdefs.h <<_ACEOF
11959#define SIZEOF_SHORT $ac_cv_sizeof_short
11960_ACEOF
11961
11962
11963 # The cast to long int works around a bug in the HP C Compiler
11964# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11965# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11966# This bug is HP SR number 8606223364.
11967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
11968$as_echo_n "checking size of char... " >&6; }
11969if test "${ac_cv_sizeof_char+set}" = set; then :
11970 $as_echo_n "(cached) " >&6
11971else
11972 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
11973
11974else
11975 if test "$ac_cv_type_char" = yes; then
11976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11978{ as_fn_set_status 77
11979as_fn_error "cannot compute sizeof (char)
11980See \`config.log' for more details." "$LINENO" 5; }; }
11981 else
11982 ac_cv_sizeof_char=0
11983 fi
11984fi
11985
11986fi
11987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
11988$as_echo "$ac_cv_sizeof_char" >&6; }
11989
11990
11991
11992cat >>confdefs.h <<_ACEOF
11993#define SIZEOF_CHAR $ac_cv_sizeof_char
11994_ACEOF
11995
11996
11997
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
11999$as_echo_n "checking for type equivalent to int8_t... " >&6; }
12000 case "$ac_cv_sizeof_char" in
12001 1) acx_cv_type_int8_t=char ;;
12002 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
12003 esac
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12005$as_echo "$acx_cv_type_int8_t" >&6; }
12006
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12008$as_echo_n "checking for type equivalent to int16_t... " >&6; }
12009 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12010 2:*) acx_cv_type_int16_t=int ;;
12011 *:2) acx_cv_type_int16_t=short ;;
12012 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
12013 esac
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12015$as_echo "$acx_cv_type_int16_t" >&6; }
12016
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12018$as_echo_n "checking for type equivalent to int32_t... " >&6; }
12019 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12020 4:*) acx_cv_type_int32_t=int ;;
12021 *:4) acx_cv_type_int32_t=long ;;
12022 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
12023 esac
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12025$as_echo "$acx_cv_type_int32_t" >&6; }
12026fi
12027
12028# These tests are here to make the output prettier
12029
12030if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12031 case "$ac_cv_sizeof_long" in
12032 8) acx_cv_type_int64_t=long ;;
12033 esac
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12035$as_echo_n "checking for type equivalent to int64_t... " >&6; }
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12037$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12038fi
12039
12040# Now we can use the above types
12041
12042if test "$ac_cv_type_uintptr_t" != yes; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12044$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12045 case $ac_cv_sizeof_void_p in
12046 2) acx_cv_type_intptr_t=int16_t ;;
12047 4) acx_cv_type_intptr_t=int32_t ;;
12048 8) acx_cv_type_intptr_t=int64_t ;;
12049 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
12050 esac
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12052$as_echo "$acx_cv_type_intptr_t" >&6; }
12053fi
12054
12055# ----------------- done all checks, emit header -------------
12056ac_config_commands="$ac_config_commands gstdint.h"
12057
12058
12059
Luis Lozano2f9796c2014-09-12 21:35:0812060for ac_header in fenv.h
12061do :
12062 ac_fn_c_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
12063if test "x$ac_cv_header_fenv_h" = x""yes; then :
12064 cat >>confdefs.h <<_ACEOF
12065#define HAVE_FENV_H 1
12066_ACEOF
12067
12068fi
12069
12070done
12071
Han Shenb42cc222013-11-18 20:49:2212072
12073# Check for common type sizes
12074
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 1 byte integer" >&5
12076$as_echo_n "checking for 1 byte integer... " >&6; }
12077if test "${libat_cv_have_mode_QI+set}" = set; then :
12078 $as_echo_n "(cached) " >&6
12079else
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081/* end confdefs.h. */
12082int x __attribute__((mode(QI)));
12083_ACEOF
12084if ac_fn_c_try_compile "$LINENO"; then :
12085 libat_cv_have_mode_QI=yes
12086else
12087 libat_cv_have_mode_QI=no
12088fi
12089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12090fi
12091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_QI" >&5
12092$as_echo "$libat_cv_have_mode_QI" >&6; }
12093
12094 yesno=`echo $libat_cv_have_mode_QI | tr 'yesno' '1 0 '`
12095
12096cat >>confdefs.h <<_ACEOF
12097#define HAVE_INT1 $yesno
12098_ACEOF
12099
12100
12101 if test x$libat_cv_have_mode_QI = xyes; then
12102 SIZES="$SIZES 1"
12103 fi
12104
12105
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 2 byte integer" >&5
12107$as_echo_n "checking for 2 byte integer... " >&6; }
12108if test "${libat_cv_have_mode_HI+set}" = set; then :
12109 $as_echo_n "(cached) " >&6
12110else
12111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12112/* end confdefs.h. */
12113int x __attribute__((mode(HI)));
12114_ACEOF
12115if ac_fn_c_try_compile "$LINENO"; then :
12116 libat_cv_have_mode_HI=yes
12117else
12118 libat_cv_have_mode_HI=no
12119fi
12120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12121fi
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_HI" >&5
12123$as_echo "$libat_cv_have_mode_HI" >&6; }
12124
12125 yesno=`echo $libat_cv_have_mode_HI | tr 'yesno' '1 0 '`
12126
12127cat >>confdefs.h <<_ACEOF
12128#define HAVE_INT2 $yesno
12129_ACEOF
12130
12131
12132 if test x$libat_cv_have_mode_HI = xyes; then
12133 SIZES="$SIZES 2"
12134 fi
12135
12136
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4 byte integer" >&5
12138$as_echo_n "checking for 4 byte integer... " >&6; }
12139if test "${libat_cv_have_mode_SI+set}" = set; then :
12140 $as_echo_n "(cached) " >&6
12141else
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143/* end confdefs.h. */
12144int x __attribute__((mode(SI)));
12145_ACEOF
12146if ac_fn_c_try_compile "$LINENO"; then :
12147 libat_cv_have_mode_SI=yes
12148else
12149 libat_cv_have_mode_SI=no
12150fi
12151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12152fi
12153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_SI" >&5
12154$as_echo "$libat_cv_have_mode_SI" >&6; }
12155
12156 yesno=`echo $libat_cv_have_mode_SI | tr 'yesno' '1 0 '`
12157
12158cat >>confdefs.h <<_ACEOF
12159#define HAVE_INT4 $yesno
12160_ACEOF
12161
12162
12163 if test x$libat_cv_have_mode_SI = xyes; then
12164 SIZES="$SIZES 4"
12165 fi
12166
12167
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 8 byte integer" >&5
12169$as_echo_n "checking for 8 byte integer... " >&6; }
12170if test "${libat_cv_have_mode_DI+set}" = set; then :
12171 $as_echo_n "(cached) " >&6
12172else
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174/* end confdefs.h. */
12175int x __attribute__((mode(DI)));
12176_ACEOF
12177if ac_fn_c_try_compile "$LINENO"; then :
12178 libat_cv_have_mode_DI=yes
12179else
12180 libat_cv_have_mode_DI=no
12181fi
12182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12183fi
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_DI" >&5
12185$as_echo "$libat_cv_have_mode_DI" >&6; }
12186
12187 yesno=`echo $libat_cv_have_mode_DI | tr 'yesno' '1 0 '`
12188
12189cat >>confdefs.h <<_ACEOF
12190#define HAVE_INT8 $yesno
12191_ACEOF
12192
12193
12194 if test x$libat_cv_have_mode_DI = xyes; then
12195 SIZES="$SIZES 8"
12196 fi
12197
12198
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16 byte integer" >&5
12200$as_echo_n "checking for 16 byte integer... " >&6; }
12201if test "${libat_cv_have_mode_TI+set}" = set; then :
12202 $as_echo_n "(cached) " >&6
12203else
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205/* end confdefs.h. */
12206int x __attribute__((mode(TI)));
12207_ACEOF
12208if ac_fn_c_try_compile "$LINENO"; then :
12209 libat_cv_have_mode_TI=yes
12210else
12211 libat_cv_have_mode_TI=no
12212fi
12213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12214fi
12215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_mode_TI" >&5
12216$as_echo "$libat_cv_have_mode_TI" >&6; }
12217
12218 yesno=`echo $libat_cv_have_mode_TI | tr 'yesno' '1 0 '`
12219
12220cat >>confdefs.h <<_ACEOF
12221#define HAVE_INT16 $yesno
12222_ACEOF
12223
12224
12225 if test x$libat_cv_have_mode_TI = xyes; then
12226 SIZES="$SIZES 16"
12227 fi
12228
12229
12230
12231# Check for compiler builtins of atomic operations.
12232
12233 # Do link tests if possible, instead asm tests, limited to some platforms
12234 # see discussion in PR target/40134, PR libstdc++/40133 and the thread
12235 # starting at http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00322.html
12236 atomic_builtins_link_tests=no
12237 if test x$gcc_no_link != xyes; then
12238 # Can do link tests. Limit to some tested platforms
12239 case "$host" in
12240 *-*-linux* | *-*-uclinux* | *-*-kfreebsd*-gnu | *-*-gnu*)
12241 atomic_builtins_link_tests=yes
12242 ;;
12243 esac
12244 fi
12245
12246
12247
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 1" >&5
12249$as_echo_n "checking for __atomic_load/store for size 1... " >&6; }
12250if test "${libat_cv_have_at_ldst_1+set}" = set; then :
12251 $as_echo_n "(cached) " >&6
12252else
12253
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255/* end confdefs.h. */
12256
12257int
12258main ()
12259{
12260typedef int T __attribute__((mode(QI)));
12261 T *x; volatile T sink; asm("" : "=g"(x));
12262 sink = __atomic_load_n(x, 0);
12263 __atomic_store_n(x, sink, 0);
12264 ;
12265 return 0;
12266}
12267_ACEOF
12268 if test x$atomic_builtins_link_tests = xyes; then
12269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12270 (eval $ac_link) 2>&5
12271 ac_status=$?
12272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12273 test $ac_status = 0; }; then
12274 eval libat_cv_have_at_ldst_1=yes
12275 else
12276 eval libat_cv_have_at_ldst_1=no
12277 fi
12278 else
12279 old_CFLAGS="$CFLAGS"
12280 # Compile unoptimized.
12281 CFLAGS="$CFLAGS -O0 -S"
12282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12283 (eval $ac_compile) 2>&5
12284 ac_status=$?
12285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12286 test $ac_status = 0; }; then
12287 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12288 eval libat_cv_have_at_ldst_1=no
12289 else
12290 eval libat_cv_have_at_ldst_1=yes
12291 fi
12292 else
12293 eval libat_cv_have_at_ldst_1=no
12294 fi
12295 CFLAGS="$old_CFLAGS"
12296 fi
12297 rm -f conftest*
12298
12299fi
12300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_1" >&5
12301$as_echo "$libat_cv_have_at_ldst_1" >&6; }
12302
12303
12304 yesno=`echo $libat_cv_have_at_ldst_1 | tr 'yesno' '1 0 '`
12305
12306cat >>confdefs.h <<_ACEOF
12307#define HAVE_ATOMIC_LDST_1 $yesno
12308_ACEOF
12309
12310
12311
12312
12313
12314
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 2" >&5
12316$as_echo_n "checking for __atomic_load/store for size 2... " >&6; }
12317if test "${libat_cv_have_at_ldst_2+set}" = set; then :
12318 $as_echo_n "(cached) " >&6
12319else
12320
12321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12322/* end confdefs.h. */
12323
12324int
12325main ()
12326{
12327typedef int T __attribute__((mode(HI)));
12328 T *x; volatile T sink; asm("" : "=g"(x));
12329 sink = __atomic_load_n(x, 0);
12330 __atomic_store_n(x, sink, 0);
12331 ;
12332 return 0;
12333}
12334_ACEOF
12335 if test x$atomic_builtins_link_tests = xyes; then
12336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12337 (eval $ac_link) 2>&5
12338 ac_status=$?
12339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12340 test $ac_status = 0; }; then
12341 eval libat_cv_have_at_ldst_2=yes
12342 else
12343 eval libat_cv_have_at_ldst_2=no
12344 fi
12345 else
12346 old_CFLAGS="$CFLAGS"
12347 # Compile unoptimized.
12348 CFLAGS="$CFLAGS -O0 -S"
12349 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12350 (eval $ac_compile) 2>&5
12351 ac_status=$?
12352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12353 test $ac_status = 0; }; then
12354 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12355 eval libat_cv_have_at_ldst_2=no
12356 else
12357 eval libat_cv_have_at_ldst_2=yes
12358 fi
12359 else
12360 eval libat_cv_have_at_ldst_2=no
12361 fi
12362 CFLAGS="$old_CFLAGS"
12363 fi
12364 rm -f conftest*
12365
12366fi
12367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_2" >&5
12368$as_echo "$libat_cv_have_at_ldst_2" >&6; }
12369
12370
12371 yesno=`echo $libat_cv_have_at_ldst_2 | tr 'yesno' '1 0 '`
12372
12373cat >>confdefs.h <<_ACEOF
12374#define HAVE_ATOMIC_LDST_2 $yesno
12375_ACEOF
12376
12377
12378
12379
12380
12381
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 4" >&5
12383$as_echo_n "checking for __atomic_load/store for size 4... " >&6; }
12384if test "${libat_cv_have_at_ldst_4+set}" = set; then :
12385 $as_echo_n "(cached) " >&6
12386else
12387
12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389/* end confdefs.h. */
12390
12391int
12392main ()
12393{
12394typedef int T __attribute__((mode(SI)));
12395 T *x; volatile T sink; asm("" : "=g"(x));
12396 sink = __atomic_load_n(x, 0);
12397 __atomic_store_n(x, sink, 0);
12398 ;
12399 return 0;
12400}
12401_ACEOF
12402 if test x$atomic_builtins_link_tests = xyes; then
12403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12404 (eval $ac_link) 2>&5
12405 ac_status=$?
12406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12407 test $ac_status = 0; }; then
12408 eval libat_cv_have_at_ldst_4=yes
12409 else
12410 eval libat_cv_have_at_ldst_4=no
12411 fi
12412 else
12413 old_CFLAGS="$CFLAGS"
12414 # Compile unoptimized.
12415 CFLAGS="$CFLAGS -O0 -S"
12416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12417 (eval $ac_compile) 2>&5
12418 ac_status=$?
12419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12420 test $ac_status = 0; }; then
12421 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12422 eval libat_cv_have_at_ldst_4=no
12423 else
12424 eval libat_cv_have_at_ldst_4=yes
12425 fi
12426 else
12427 eval libat_cv_have_at_ldst_4=no
12428 fi
12429 CFLAGS="$old_CFLAGS"
12430 fi
12431 rm -f conftest*
12432
12433fi
12434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_4" >&5
12435$as_echo "$libat_cv_have_at_ldst_4" >&6; }
12436
12437
12438 yesno=`echo $libat_cv_have_at_ldst_4 | tr 'yesno' '1 0 '`
12439
12440cat >>confdefs.h <<_ACEOF
12441#define HAVE_ATOMIC_LDST_4 $yesno
12442_ACEOF
12443
12444
12445
12446
12447
12448
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 8" >&5
12450$as_echo_n "checking for __atomic_load/store for size 8... " >&6; }
12451if test "${libat_cv_have_at_ldst_8+set}" = set; then :
12452 $as_echo_n "(cached) " >&6
12453else
12454
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456/* end confdefs.h. */
12457
12458int
12459main ()
12460{
12461typedef int T __attribute__((mode(DI)));
12462 T *x; volatile T sink; asm("" : "=g"(x));
12463 sink = __atomic_load_n(x, 0);
12464 __atomic_store_n(x, sink, 0);
12465 ;
12466 return 0;
12467}
12468_ACEOF
12469 if test x$atomic_builtins_link_tests = xyes; then
12470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12471 (eval $ac_link) 2>&5
12472 ac_status=$?
12473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12474 test $ac_status = 0; }; then
12475 eval libat_cv_have_at_ldst_8=yes
12476 else
12477 eval libat_cv_have_at_ldst_8=no
12478 fi
12479 else
12480 old_CFLAGS="$CFLAGS"
12481 # Compile unoptimized.
12482 CFLAGS="$CFLAGS -O0 -S"
12483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12484 (eval $ac_compile) 2>&5
12485 ac_status=$?
12486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12487 test $ac_status = 0; }; then
12488 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12489 eval libat_cv_have_at_ldst_8=no
12490 else
12491 eval libat_cv_have_at_ldst_8=yes
12492 fi
12493 else
12494 eval libat_cv_have_at_ldst_8=no
12495 fi
12496 CFLAGS="$old_CFLAGS"
12497 fi
12498 rm -f conftest*
12499
12500fi
12501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_8" >&5
12502$as_echo "$libat_cv_have_at_ldst_8" >&6; }
12503
12504
12505 yesno=`echo $libat_cv_have_at_ldst_8 | tr 'yesno' '1 0 '`
12506
12507cat >>confdefs.h <<_ACEOF
12508#define HAVE_ATOMIC_LDST_8 $yesno
12509_ACEOF
12510
12511
12512
12513
12514
12515
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_load/store for size 16" >&5
12517$as_echo_n "checking for __atomic_load/store for size 16... " >&6; }
12518if test "${libat_cv_have_at_ldst_16+set}" = set; then :
12519 $as_echo_n "(cached) " >&6
12520else
12521
12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523/* end confdefs.h. */
12524
12525int
12526main ()
12527{
12528typedef int T __attribute__((mode(TI)));
12529 T *x; volatile T sink; asm("" : "=g"(x));
12530 sink = __atomic_load_n(x, 0);
12531 __atomic_store_n(x, sink, 0);
12532 ;
12533 return 0;
12534}
12535_ACEOF
12536 if test x$atomic_builtins_link_tests = xyes; then
12537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12538 (eval $ac_link) 2>&5
12539 ac_status=$?
12540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12541 test $ac_status = 0; }; then
12542 eval libat_cv_have_at_ldst_16=yes
12543 else
12544 eval libat_cv_have_at_ldst_16=no
12545 fi
12546 else
12547 old_CFLAGS="$CFLAGS"
12548 # Compile unoptimized.
12549 CFLAGS="$CFLAGS -O0 -S"
12550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12551 (eval $ac_compile) 2>&5
12552 ac_status=$?
12553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12554 test $ac_status = 0; }; then
12555 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12556 eval libat_cv_have_at_ldst_16=no
12557 else
12558 eval libat_cv_have_at_ldst_16=yes
12559 fi
12560 else
12561 eval libat_cv_have_at_ldst_16=no
12562 fi
12563 CFLAGS="$old_CFLAGS"
12564 fi
12565 rm -f conftest*
12566
12567fi
12568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_ldst_16" >&5
12569$as_echo "$libat_cv_have_at_ldst_16" >&6; }
12570
12571
12572 yesno=`echo $libat_cv_have_at_ldst_16 | tr 'yesno' '1 0 '`
12573
12574cat >>confdefs.h <<_ACEOF
12575#define HAVE_ATOMIC_LDST_16 $yesno
12576_ACEOF
12577
12578
12579
12580
12581
12582
12583
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 1" >&5
12585$as_echo_n "checking for __atomic_test_and_set for size 1... " >&6; }
12586if test "${libat_cv_have_at_tas_1+set}" = set; then :
12587 $as_echo_n "(cached) " >&6
12588else
12589
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591/* end confdefs.h. */
12592
12593int
12594main ()
12595{
12596typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12597 __atomic_test_and_set(x, 0);
12598 ;
12599 return 0;
12600}
12601_ACEOF
12602 if test x$atomic_builtins_link_tests = xyes; then
12603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12604 (eval $ac_link) 2>&5
12605 ac_status=$?
12606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12607 test $ac_status = 0; }; then
12608 eval libat_cv_have_at_tas_1=yes
12609 else
12610 eval libat_cv_have_at_tas_1=no
12611 fi
12612 else
12613 old_CFLAGS="$CFLAGS"
12614 # Compile unoptimized.
12615 CFLAGS="$CFLAGS -O0 -S"
12616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12617 (eval $ac_compile) 2>&5
12618 ac_status=$?
12619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12620 test $ac_status = 0; }; then
12621 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12622 eval libat_cv_have_at_tas_1=no
12623 else
12624 eval libat_cv_have_at_tas_1=yes
12625 fi
12626 else
12627 eval libat_cv_have_at_tas_1=no
12628 fi
12629 CFLAGS="$old_CFLAGS"
12630 fi
12631 rm -f conftest*
12632
12633fi
12634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_1" >&5
12635$as_echo "$libat_cv_have_at_tas_1" >&6; }
12636
12637
12638 yesno=`echo $libat_cv_have_at_tas_1 | tr 'yesno' '1 0 '`
12639
12640cat >>confdefs.h <<_ACEOF
12641#define HAVE_ATOMIC_TAS_1 $yesno
12642_ACEOF
12643
12644
12645
12646
12647
12648
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 2" >&5
12650$as_echo_n "checking for __atomic_test_and_set for size 2... " >&6; }
12651if test "${libat_cv_have_at_tas_2+set}" = set; then :
12652 $as_echo_n "(cached) " >&6
12653else
12654
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656/* end confdefs.h. */
12657
12658int
12659main ()
12660{
12661typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
12662 __atomic_test_and_set(x, 0);
12663 ;
12664 return 0;
12665}
12666_ACEOF
12667 if test x$atomic_builtins_link_tests = xyes; then
12668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12669 (eval $ac_link) 2>&5
12670 ac_status=$?
12671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12672 test $ac_status = 0; }; then
12673 eval libat_cv_have_at_tas_2=yes
12674 else
12675 eval libat_cv_have_at_tas_2=no
12676 fi
12677 else
12678 old_CFLAGS="$CFLAGS"
12679 # Compile unoptimized.
12680 CFLAGS="$CFLAGS -O0 -S"
12681 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12682 (eval $ac_compile) 2>&5
12683 ac_status=$?
12684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12685 test $ac_status = 0; }; then
12686 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12687 eval libat_cv_have_at_tas_2=no
12688 else
12689 eval libat_cv_have_at_tas_2=yes
12690 fi
12691 else
12692 eval libat_cv_have_at_tas_2=no
12693 fi
12694 CFLAGS="$old_CFLAGS"
12695 fi
12696 rm -f conftest*
12697
12698fi
12699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_2" >&5
12700$as_echo "$libat_cv_have_at_tas_2" >&6; }
12701
12702
12703 yesno=`echo $libat_cv_have_at_tas_2 | tr 'yesno' '1 0 '`
12704
12705cat >>confdefs.h <<_ACEOF
12706#define HAVE_ATOMIC_TAS_2 $yesno
12707_ACEOF
12708
12709
12710
12711
12712
12713
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 4" >&5
12715$as_echo_n "checking for __atomic_test_and_set for size 4... " >&6; }
12716if test "${libat_cv_have_at_tas_4+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12718else
12719
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721/* end confdefs.h. */
12722
12723int
12724main ()
12725{
12726typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
12727 __atomic_test_and_set(x, 0);
12728 ;
12729 return 0;
12730}
12731_ACEOF
12732 if test x$atomic_builtins_link_tests = xyes; then
12733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12734 (eval $ac_link) 2>&5
12735 ac_status=$?
12736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12737 test $ac_status = 0; }; then
12738 eval libat_cv_have_at_tas_4=yes
12739 else
12740 eval libat_cv_have_at_tas_4=no
12741 fi
12742 else
12743 old_CFLAGS="$CFLAGS"
12744 # Compile unoptimized.
12745 CFLAGS="$CFLAGS -O0 -S"
12746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12747 (eval $ac_compile) 2>&5
12748 ac_status=$?
12749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12750 test $ac_status = 0; }; then
12751 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12752 eval libat_cv_have_at_tas_4=no
12753 else
12754 eval libat_cv_have_at_tas_4=yes
12755 fi
12756 else
12757 eval libat_cv_have_at_tas_4=no
12758 fi
12759 CFLAGS="$old_CFLAGS"
12760 fi
12761 rm -f conftest*
12762
12763fi
12764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_4" >&5
12765$as_echo "$libat_cv_have_at_tas_4" >&6; }
12766
12767
12768 yesno=`echo $libat_cv_have_at_tas_4 | tr 'yesno' '1 0 '`
12769
12770cat >>confdefs.h <<_ACEOF
12771#define HAVE_ATOMIC_TAS_4 $yesno
12772_ACEOF
12773
12774
12775
12776
12777
12778
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 8" >&5
12780$as_echo_n "checking for __atomic_test_and_set for size 8... " >&6; }
12781if test "${libat_cv_have_at_tas_8+set}" = set; then :
12782 $as_echo_n "(cached) " >&6
12783else
12784
12785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12786/* end confdefs.h. */
12787
12788int
12789main ()
12790{
12791typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
12792 __atomic_test_and_set(x, 0);
12793 ;
12794 return 0;
12795}
12796_ACEOF
12797 if test x$atomic_builtins_link_tests = xyes; then
12798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12799 (eval $ac_link) 2>&5
12800 ac_status=$?
12801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12802 test $ac_status = 0; }; then
12803 eval libat_cv_have_at_tas_8=yes
12804 else
12805 eval libat_cv_have_at_tas_8=no
12806 fi
12807 else
12808 old_CFLAGS="$CFLAGS"
12809 # Compile unoptimized.
12810 CFLAGS="$CFLAGS -O0 -S"
12811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12812 (eval $ac_compile) 2>&5
12813 ac_status=$?
12814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12815 test $ac_status = 0; }; then
12816 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12817 eval libat_cv_have_at_tas_8=no
12818 else
12819 eval libat_cv_have_at_tas_8=yes
12820 fi
12821 else
12822 eval libat_cv_have_at_tas_8=no
12823 fi
12824 CFLAGS="$old_CFLAGS"
12825 fi
12826 rm -f conftest*
12827
12828fi
12829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_8" >&5
12830$as_echo "$libat_cv_have_at_tas_8" >&6; }
12831
12832
12833 yesno=`echo $libat_cv_have_at_tas_8 | tr 'yesno' '1 0 '`
12834
12835cat >>confdefs.h <<_ACEOF
12836#define HAVE_ATOMIC_TAS_8 $yesno
12837_ACEOF
12838
12839
12840
12841
12842
12843
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_test_and_set for size 16" >&5
12845$as_echo_n "checking for __atomic_test_and_set for size 16... " >&6; }
12846if test "${libat_cv_have_at_tas_16+set}" = set; then :
12847 $as_echo_n "(cached) " >&6
12848else
12849
12850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12851/* end confdefs.h. */
12852
12853int
12854main ()
12855{
12856typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
12857 __atomic_test_and_set(x, 0);
12858 ;
12859 return 0;
12860}
12861_ACEOF
12862 if test x$atomic_builtins_link_tests = xyes; then
12863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12864 (eval $ac_link) 2>&5
12865 ac_status=$?
12866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12867 test $ac_status = 0; }; then
12868 eval libat_cv_have_at_tas_16=yes
12869 else
12870 eval libat_cv_have_at_tas_16=no
12871 fi
12872 else
12873 old_CFLAGS="$CFLAGS"
12874 # Compile unoptimized.
12875 CFLAGS="$CFLAGS -O0 -S"
12876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12877 (eval $ac_compile) 2>&5
12878 ac_status=$?
12879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12880 test $ac_status = 0; }; then
12881 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12882 eval libat_cv_have_at_tas_16=no
12883 else
12884 eval libat_cv_have_at_tas_16=yes
12885 fi
12886 else
12887 eval libat_cv_have_at_tas_16=no
12888 fi
12889 CFLAGS="$old_CFLAGS"
12890 fi
12891 rm -f conftest*
12892
12893fi
12894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_tas_16" >&5
12895$as_echo "$libat_cv_have_at_tas_16" >&6; }
12896
12897
12898 yesno=`echo $libat_cv_have_at_tas_16 | tr 'yesno' '1 0 '`
12899
12900cat >>confdefs.h <<_ACEOF
12901#define HAVE_ATOMIC_TAS_16 $yesno
12902_ACEOF
12903
12904
12905
12906
12907
12908
12909
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 1" >&5
12911$as_echo_n "checking for __atomic_exchange for size 1... " >&6; }
12912if test "${libat_cv_have_at_exch_1+set}" = set; then :
12913 $as_echo_n "(cached) " >&6
12914else
12915
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917/* end confdefs.h. */
12918
12919int
12920main ()
12921{
12922typedef int T __attribute__((mode(QI))); T *x; asm("" : "=g"(x));
12923 __atomic_exchange_n(x, 0, 0);
12924 ;
12925 return 0;
12926}
12927_ACEOF
12928 if test x$atomic_builtins_link_tests = xyes; then
12929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12930 (eval $ac_link) 2>&5
12931 ac_status=$?
12932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12933 test $ac_status = 0; }; then
12934 eval libat_cv_have_at_exch_1=yes
12935 else
12936 eval libat_cv_have_at_exch_1=no
12937 fi
12938 else
12939 old_CFLAGS="$CFLAGS"
12940 # Compile unoptimized.
12941 CFLAGS="$CFLAGS -O0 -S"
12942 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12943 (eval $ac_compile) 2>&5
12944 ac_status=$?
12945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12946 test $ac_status = 0; }; then
12947 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
12948 eval libat_cv_have_at_exch_1=no
12949 else
12950 eval libat_cv_have_at_exch_1=yes
12951 fi
12952 else
12953 eval libat_cv_have_at_exch_1=no
12954 fi
12955 CFLAGS="$old_CFLAGS"
12956 fi
12957 rm -f conftest*
12958
12959fi
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_1" >&5
12961$as_echo "$libat_cv_have_at_exch_1" >&6; }
12962
12963
12964 yesno=`echo $libat_cv_have_at_exch_1 | tr 'yesno' '1 0 '`
12965
12966cat >>confdefs.h <<_ACEOF
12967#define HAVE_ATOMIC_EXCHANGE_1 $yesno
12968_ACEOF
12969
12970
12971
12972
12973
12974
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 2" >&5
12976$as_echo_n "checking for __atomic_exchange for size 2... " >&6; }
12977if test "${libat_cv_have_at_exch_2+set}" = set; then :
12978 $as_echo_n "(cached) " >&6
12979else
12980
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982/* end confdefs.h. */
12983
12984int
12985main ()
12986{
12987typedef int T __attribute__((mode(HI))); T *x; asm("" : "=g"(x));
12988 __atomic_exchange_n(x, 0, 0);
12989 ;
12990 return 0;
12991}
12992_ACEOF
12993 if test x$atomic_builtins_link_tests = xyes; then
12994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12995 (eval $ac_link) 2>&5
12996 ac_status=$?
12997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12998 test $ac_status = 0; }; then
12999 eval libat_cv_have_at_exch_2=yes
13000 else
13001 eval libat_cv_have_at_exch_2=no
13002 fi
13003 else
13004 old_CFLAGS="$CFLAGS"
13005 # Compile unoptimized.
13006 CFLAGS="$CFLAGS -O0 -S"
13007 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13008 (eval $ac_compile) 2>&5
13009 ac_status=$?
13010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13011 test $ac_status = 0; }; then
13012 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13013 eval libat_cv_have_at_exch_2=no
13014 else
13015 eval libat_cv_have_at_exch_2=yes
13016 fi
13017 else
13018 eval libat_cv_have_at_exch_2=no
13019 fi
13020 CFLAGS="$old_CFLAGS"
13021 fi
13022 rm -f conftest*
13023
13024fi
13025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_2" >&5
13026$as_echo "$libat_cv_have_at_exch_2" >&6; }
13027
13028
13029 yesno=`echo $libat_cv_have_at_exch_2 | tr 'yesno' '1 0 '`
13030
13031cat >>confdefs.h <<_ACEOF
13032#define HAVE_ATOMIC_EXCHANGE_2 $yesno
13033_ACEOF
13034
13035
13036
13037
13038
13039
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 4" >&5
13041$as_echo_n "checking for __atomic_exchange for size 4... " >&6; }
13042if test "${libat_cv_have_at_exch_4+set}" = set; then :
13043 $as_echo_n "(cached) " >&6
13044else
13045
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047/* end confdefs.h. */
13048
13049int
13050main ()
13051{
13052typedef int T __attribute__((mode(SI))); T *x; asm("" : "=g"(x));
13053 __atomic_exchange_n(x, 0, 0);
13054 ;
13055 return 0;
13056}
13057_ACEOF
13058 if test x$atomic_builtins_link_tests = xyes; then
13059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13060 (eval $ac_link) 2>&5
13061 ac_status=$?
13062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13063 test $ac_status = 0; }; then
13064 eval libat_cv_have_at_exch_4=yes
13065 else
13066 eval libat_cv_have_at_exch_4=no
13067 fi
13068 else
13069 old_CFLAGS="$CFLAGS"
13070 # Compile unoptimized.
13071 CFLAGS="$CFLAGS -O0 -S"
13072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13073 (eval $ac_compile) 2>&5
13074 ac_status=$?
13075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13076 test $ac_status = 0; }; then
13077 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13078 eval libat_cv_have_at_exch_4=no
13079 else
13080 eval libat_cv_have_at_exch_4=yes
13081 fi
13082 else
13083 eval libat_cv_have_at_exch_4=no
13084 fi
13085 CFLAGS="$old_CFLAGS"
13086 fi
13087 rm -f conftest*
13088
13089fi
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_4" >&5
13091$as_echo "$libat_cv_have_at_exch_4" >&6; }
13092
13093
13094 yesno=`echo $libat_cv_have_at_exch_4 | tr 'yesno' '1 0 '`
13095
13096cat >>confdefs.h <<_ACEOF
13097#define HAVE_ATOMIC_EXCHANGE_4 $yesno
13098_ACEOF
13099
13100
13101
13102
13103
13104
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 8" >&5
13106$as_echo_n "checking for __atomic_exchange for size 8... " >&6; }
13107if test "${libat_cv_have_at_exch_8+set}" = set; then :
13108 $as_echo_n "(cached) " >&6
13109else
13110
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112/* end confdefs.h. */
13113
13114int
13115main ()
13116{
13117typedef int T __attribute__((mode(DI))); T *x; asm("" : "=g"(x));
13118 __atomic_exchange_n(x, 0, 0);
13119 ;
13120 return 0;
13121}
13122_ACEOF
13123 if test x$atomic_builtins_link_tests = xyes; then
13124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13125 (eval $ac_link) 2>&5
13126 ac_status=$?
13127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13128 test $ac_status = 0; }; then
13129 eval libat_cv_have_at_exch_8=yes
13130 else
13131 eval libat_cv_have_at_exch_8=no
13132 fi
13133 else
13134 old_CFLAGS="$CFLAGS"
13135 # Compile unoptimized.
13136 CFLAGS="$CFLAGS -O0 -S"
13137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13138 (eval $ac_compile) 2>&5
13139 ac_status=$?
13140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13141 test $ac_status = 0; }; then
13142 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13143 eval libat_cv_have_at_exch_8=no
13144 else
13145 eval libat_cv_have_at_exch_8=yes
13146 fi
13147 else
13148 eval libat_cv_have_at_exch_8=no
13149 fi
13150 CFLAGS="$old_CFLAGS"
13151 fi
13152 rm -f conftest*
13153
13154fi
13155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_8" >&5
13156$as_echo "$libat_cv_have_at_exch_8" >&6; }
13157
13158
13159 yesno=`echo $libat_cv_have_at_exch_8 | tr 'yesno' '1 0 '`
13160
13161cat >>confdefs.h <<_ACEOF
13162#define HAVE_ATOMIC_EXCHANGE_8 $yesno
13163_ACEOF
13164
13165
13166
13167
13168
13169
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_exchange for size 16" >&5
13171$as_echo_n "checking for __atomic_exchange for size 16... " >&6; }
13172if test "${libat_cv_have_at_exch_16+set}" = set; then :
13173 $as_echo_n "(cached) " >&6
13174else
13175
13176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177/* end confdefs.h. */
13178
13179int
13180main ()
13181{
13182typedef int T __attribute__((mode(TI))); T *x; asm("" : "=g"(x));
13183 __atomic_exchange_n(x, 0, 0);
13184 ;
13185 return 0;
13186}
13187_ACEOF
13188 if test x$atomic_builtins_link_tests = xyes; then
13189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13190 (eval $ac_link) 2>&5
13191 ac_status=$?
13192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13193 test $ac_status = 0; }; then
13194 eval libat_cv_have_at_exch_16=yes
13195 else
13196 eval libat_cv_have_at_exch_16=no
13197 fi
13198 else
13199 old_CFLAGS="$CFLAGS"
13200 # Compile unoptimized.
13201 CFLAGS="$CFLAGS -O0 -S"
13202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13203 (eval $ac_compile) 2>&5
13204 ac_status=$?
13205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13206 test $ac_status = 0; }; then
13207 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13208 eval libat_cv_have_at_exch_16=no
13209 else
13210 eval libat_cv_have_at_exch_16=yes
13211 fi
13212 else
13213 eval libat_cv_have_at_exch_16=no
13214 fi
13215 CFLAGS="$old_CFLAGS"
13216 fi
13217 rm -f conftest*
13218
13219fi
13220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_exch_16" >&5
13221$as_echo "$libat_cv_have_at_exch_16" >&6; }
13222
13223
13224 yesno=`echo $libat_cv_have_at_exch_16 | tr 'yesno' '1 0 '`
13225
13226cat >>confdefs.h <<_ACEOF
13227#define HAVE_ATOMIC_EXCHANGE_16 $yesno
13228_ACEOF
13229
13230
13231
13232
13233
13234
13235
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 1" >&5
13237$as_echo_n "checking for __atomic_compare_exchange for size 1... " >&6; }
13238if test "${libat_cv_have_at_cas_1+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13240else
13241
13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243/* end confdefs.h. */
13244
13245int
13246main ()
13247{
13248typedef int T __attribute__((mode(QI))); T *x, *y;
13249 asm("" : "=g"(x), "=g"(y));
13250 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13251 ;
13252 return 0;
13253}
13254_ACEOF
13255 if test x$atomic_builtins_link_tests = xyes; then
13256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13257 (eval $ac_link) 2>&5
13258 ac_status=$?
13259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13260 test $ac_status = 0; }; then
13261 eval libat_cv_have_at_cas_1=yes
13262 else
13263 eval libat_cv_have_at_cas_1=no
13264 fi
13265 else
13266 old_CFLAGS="$CFLAGS"
13267 # Compile unoptimized.
13268 CFLAGS="$CFLAGS -O0 -S"
13269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13270 (eval $ac_compile) 2>&5
13271 ac_status=$?
13272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13273 test $ac_status = 0; }; then
13274 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13275 eval libat_cv_have_at_cas_1=no
13276 else
13277 eval libat_cv_have_at_cas_1=yes
13278 fi
13279 else
13280 eval libat_cv_have_at_cas_1=no
13281 fi
13282 CFLAGS="$old_CFLAGS"
13283 fi
13284 rm -f conftest*
13285
13286fi
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_1" >&5
13288$as_echo "$libat_cv_have_at_cas_1" >&6; }
13289
13290
13291 yesno=`echo $libat_cv_have_at_cas_1 | tr 'yesno' '1 0 '`
13292
13293cat >>confdefs.h <<_ACEOF
13294#define HAVE_ATOMIC_CAS_1 $yesno
13295_ACEOF
13296
13297
13298
13299
13300
13301
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 2" >&5
13303$as_echo_n "checking for __atomic_compare_exchange for size 2... " >&6; }
13304if test "${libat_cv_have_at_cas_2+set}" = set; then :
13305 $as_echo_n "(cached) " >&6
13306else
13307
13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309/* end confdefs.h. */
13310
13311int
13312main ()
13313{
13314typedef int T __attribute__((mode(HI))); T *x, *y;
13315 asm("" : "=g"(x), "=g"(y));
13316 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13317 ;
13318 return 0;
13319}
13320_ACEOF
13321 if test x$atomic_builtins_link_tests = xyes; then
13322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13323 (eval $ac_link) 2>&5
13324 ac_status=$?
13325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13326 test $ac_status = 0; }; then
13327 eval libat_cv_have_at_cas_2=yes
13328 else
13329 eval libat_cv_have_at_cas_2=no
13330 fi
13331 else
13332 old_CFLAGS="$CFLAGS"
13333 # Compile unoptimized.
13334 CFLAGS="$CFLAGS -O0 -S"
13335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13336 (eval $ac_compile) 2>&5
13337 ac_status=$?
13338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13339 test $ac_status = 0; }; then
13340 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13341 eval libat_cv_have_at_cas_2=no
13342 else
13343 eval libat_cv_have_at_cas_2=yes
13344 fi
13345 else
13346 eval libat_cv_have_at_cas_2=no
13347 fi
13348 CFLAGS="$old_CFLAGS"
13349 fi
13350 rm -f conftest*
13351
13352fi
13353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_2" >&5
13354$as_echo "$libat_cv_have_at_cas_2" >&6; }
13355
13356
13357 yesno=`echo $libat_cv_have_at_cas_2 | tr 'yesno' '1 0 '`
13358
13359cat >>confdefs.h <<_ACEOF
13360#define HAVE_ATOMIC_CAS_2 $yesno
13361_ACEOF
13362
13363
13364
13365
13366
13367
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 4" >&5
13369$as_echo_n "checking for __atomic_compare_exchange for size 4... " >&6; }
13370if test "${libat_cv_have_at_cas_4+set}" = set; then :
13371 $as_echo_n "(cached) " >&6
13372else
13373
13374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375/* end confdefs.h. */
13376
13377int
13378main ()
13379{
13380typedef int T __attribute__((mode(SI))); T *x, *y;
13381 asm("" : "=g"(x), "=g"(y));
13382 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13383 ;
13384 return 0;
13385}
13386_ACEOF
13387 if test x$atomic_builtins_link_tests = xyes; then
13388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13389 (eval $ac_link) 2>&5
13390 ac_status=$?
13391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13392 test $ac_status = 0; }; then
13393 eval libat_cv_have_at_cas_4=yes
13394 else
13395 eval libat_cv_have_at_cas_4=no
13396 fi
13397 else
13398 old_CFLAGS="$CFLAGS"
13399 # Compile unoptimized.
13400 CFLAGS="$CFLAGS -O0 -S"
13401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13402 (eval $ac_compile) 2>&5
13403 ac_status=$?
13404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13405 test $ac_status = 0; }; then
13406 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13407 eval libat_cv_have_at_cas_4=no
13408 else
13409 eval libat_cv_have_at_cas_4=yes
13410 fi
13411 else
13412 eval libat_cv_have_at_cas_4=no
13413 fi
13414 CFLAGS="$old_CFLAGS"
13415 fi
13416 rm -f conftest*
13417
13418fi
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_4" >&5
13420$as_echo "$libat_cv_have_at_cas_4" >&6; }
13421
13422
13423 yesno=`echo $libat_cv_have_at_cas_4 | tr 'yesno' '1 0 '`
13424
13425cat >>confdefs.h <<_ACEOF
13426#define HAVE_ATOMIC_CAS_4 $yesno
13427_ACEOF
13428
13429
13430
13431
13432
13433
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 8" >&5
13435$as_echo_n "checking for __atomic_compare_exchange for size 8... " >&6; }
13436if test "${libat_cv_have_at_cas_8+set}" = set; then :
13437 $as_echo_n "(cached) " >&6
13438else
13439
13440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441/* end confdefs.h. */
13442
13443int
13444main ()
13445{
13446typedef int T __attribute__((mode(DI))); T *x, *y;
13447 asm("" : "=g"(x), "=g"(y));
13448 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13449 ;
13450 return 0;
13451}
13452_ACEOF
13453 if test x$atomic_builtins_link_tests = xyes; then
13454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13455 (eval $ac_link) 2>&5
13456 ac_status=$?
13457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13458 test $ac_status = 0; }; then
13459 eval libat_cv_have_at_cas_8=yes
13460 else
13461 eval libat_cv_have_at_cas_8=no
13462 fi
13463 else
13464 old_CFLAGS="$CFLAGS"
13465 # Compile unoptimized.
13466 CFLAGS="$CFLAGS -O0 -S"
13467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13468 (eval $ac_compile) 2>&5
13469 ac_status=$?
13470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13471 test $ac_status = 0; }; then
13472 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13473 eval libat_cv_have_at_cas_8=no
13474 else
13475 eval libat_cv_have_at_cas_8=yes
13476 fi
13477 else
13478 eval libat_cv_have_at_cas_8=no
13479 fi
13480 CFLAGS="$old_CFLAGS"
13481 fi
13482 rm -f conftest*
13483
13484fi
13485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_8" >&5
13486$as_echo "$libat_cv_have_at_cas_8" >&6; }
13487
13488
13489 yesno=`echo $libat_cv_have_at_cas_8 | tr 'yesno' '1 0 '`
13490
13491cat >>confdefs.h <<_ACEOF
13492#define HAVE_ATOMIC_CAS_8 $yesno
13493_ACEOF
13494
13495
13496
13497
13498
13499
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_compare_exchange for size 16" >&5
13501$as_echo_n "checking for __atomic_compare_exchange for size 16... " >&6; }
13502if test "${libat_cv_have_at_cas_16+set}" = set; then :
13503 $as_echo_n "(cached) " >&6
13504else
13505
13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507/* end confdefs.h. */
13508
13509int
13510main ()
13511{
13512typedef int T __attribute__((mode(TI))); T *x, *y;
13513 asm("" : "=g"(x), "=g"(y));
13514 __atomic_compare_exchange_n(x, y, 0, 0, 0, 0);
13515 ;
13516 return 0;
13517}
13518_ACEOF
13519 if test x$atomic_builtins_link_tests = xyes; then
13520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13521 (eval $ac_link) 2>&5
13522 ac_status=$?
13523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13524 test $ac_status = 0; }; then
13525 eval libat_cv_have_at_cas_16=yes
13526 else
13527 eval libat_cv_have_at_cas_16=no
13528 fi
13529 else
13530 old_CFLAGS="$CFLAGS"
13531 # Compile unoptimized.
13532 CFLAGS="$CFLAGS -O0 -S"
13533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13534 (eval $ac_compile) 2>&5
13535 ac_status=$?
13536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13537 test $ac_status = 0; }; then
13538 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13539 eval libat_cv_have_at_cas_16=no
13540 else
13541 eval libat_cv_have_at_cas_16=yes
13542 fi
13543 else
13544 eval libat_cv_have_at_cas_16=no
13545 fi
13546 CFLAGS="$old_CFLAGS"
13547 fi
13548 rm -f conftest*
13549
13550fi
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_cas_16" >&5
13552$as_echo "$libat_cv_have_at_cas_16" >&6; }
13553
13554
13555 yesno=`echo $libat_cv_have_at_cas_16 | tr 'yesno' '1 0 '`
13556
13557cat >>confdefs.h <<_ACEOF
13558#define HAVE_ATOMIC_CAS_16 $yesno
13559_ACEOF
13560
13561
13562
13563
13564
13565
13566
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 1" >&5
13568$as_echo_n "checking for __atomic_fetch_add for size 1... " >&6; }
13569if test "${libat_cv_have_at_fadd_1+set}" = set; then :
13570 $as_echo_n "(cached) " >&6
13571else
13572
13573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13574/* end confdefs.h. */
13575
13576int
13577main ()
13578{
13579typedef int T __attribute__((mode(QI))); T *x, y;
13580 asm("" : "=g"(x), "=g"(y));
13581 __atomic_fetch_add (x, y, 0);
13582 __atomic_add_fetch (x, y, 0);
13583 ;
13584 return 0;
13585}
13586_ACEOF
13587 if test x$atomic_builtins_link_tests = xyes; then
13588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13589 (eval $ac_link) 2>&5
13590 ac_status=$?
13591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13592 test $ac_status = 0; }; then
13593 eval libat_cv_have_at_fadd_1=yes
13594 else
13595 eval libat_cv_have_at_fadd_1=no
13596 fi
13597 else
13598 old_CFLAGS="$CFLAGS"
13599 # Compile unoptimized.
13600 CFLAGS="$CFLAGS -O0 -S"
13601 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13602 (eval $ac_compile) 2>&5
13603 ac_status=$?
13604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13605 test $ac_status = 0; }; then
13606 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13607 eval libat_cv_have_at_fadd_1=no
13608 else
13609 eval libat_cv_have_at_fadd_1=yes
13610 fi
13611 else
13612 eval libat_cv_have_at_fadd_1=no
13613 fi
13614 CFLAGS="$old_CFLAGS"
13615 fi
13616 rm -f conftest*
13617
13618fi
13619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_1" >&5
13620$as_echo "$libat_cv_have_at_fadd_1" >&6; }
13621
13622
13623 yesno=`echo $libat_cv_have_at_fadd_1 | tr 'yesno' '1 0 '`
13624
13625cat >>confdefs.h <<_ACEOF
13626#define HAVE_ATOMIC_FETCH_ADD_1 $yesno
13627_ACEOF
13628
13629
13630
13631
13632
13633
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 2" >&5
13635$as_echo_n "checking for __atomic_fetch_add for size 2... " >&6; }
13636if test "${libat_cv_have_at_fadd_2+set}" = set; then :
13637 $as_echo_n "(cached) " >&6
13638else
13639
13640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13641/* end confdefs.h. */
13642
13643int
13644main ()
13645{
13646typedef int T __attribute__((mode(HI))); T *x, y;
13647 asm("" : "=g"(x), "=g"(y));
13648 __atomic_fetch_add (x, y, 0);
13649 __atomic_add_fetch (x, y, 0);
13650 ;
13651 return 0;
13652}
13653_ACEOF
13654 if test x$atomic_builtins_link_tests = xyes; then
13655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13656 (eval $ac_link) 2>&5
13657 ac_status=$?
13658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13659 test $ac_status = 0; }; then
13660 eval libat_cv_have_at_fadd_2=yes
13661 else
13662 eval libat_cv_have_at_fadd_2=no
13663 fi
13664 else
13665 old_CFLAGS="$CFLAGS"
13666 # Compile unoptimized.
13667 CFLAGS="$CFLAGS -O0 -S"
13668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13669 (eval $ac_compile) 2>&5
13670 ac_status=$?
13671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13672 test $ac_status = 0; }; then
13673 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13674 eval libat_cv_have_at_fadd_2=no
13675 else
13676 eval libat_cv_have_at_fadd_2=yes
13677 fi
13678 else
13679 eval libat_cv_have_at_fadd_2=no
13680 fi
13681 CFLAGS="$old_CFLAGS"
13682 fi
13683 rm -f conftest*
13684
13685fi
13686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_2" >&5
13687$as_echo "$libat_cv_have_at_fadd_2" >&6; }
13688
13689
13690 yesno=`echo $libat_cv_have_at_fadd_2 | tr 'yesno' '1 0 '`
13691
13692cat >>confdefs.h <<_ACEOF
13693#define HAVE_ATOMIC_FETCH_ADD_2 $yesno
13694_ACEOF
13695
13696
13697
13698
13699
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 4" >&5
13702$as_echo_n "checking for __atomic_fetch_add for size 4... " >&6; }
13703if test "${libat_cv_have_at_fadd_4+set}" = set; then :
13704 $as_echo_n "(cached) " >&6
13705else
13706
13707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708/* end confdefs.h. */
13709
13710int
13711main ()
13712{
13713typedef int T __attribute__((mode(SI))); T *x, y;
13714 asm("" : "=g"(x), "=g"(y));
13715 __atomic_fetch_add (x, y, 0);
13716 __atomic_add_fetch (x, y, 0);
13717 ;
13718 return 0;
13719}
13720_ACEOF
13721 if test x$atomic_builtins_link_tests = xyes; then
13722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13723 (eval $ac_link) 2>&5
13724 ac_status=$?
13725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13726 test $ac_status = 0; }; then
13727 eval libat_cv_have_at_fadd_4=yes
13728 else
13729 eval libat_cv_have_at_fadd_4=no
13730 fi
13731 else
13732 old_CFLAGS="$CFLAGS"
13733 # Compile unoptimized.
13734 CFLAGS="$CFLAGS -O0 -S"
13735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13736 (eval $ac_compile) 2>&5
13737 ac_status=$?
13738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13739 test $ac_status = 0; }; then
13740 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13741 eval libat_cv_have_at_fadd_4=no
13742 else
13743 eval libat_cv_have_at_fadd_4=yes
13744 fi
13745 else
13746 eval libat_cv_have_at_fadd_4=no
13747 fi
13748 CFLAGS="$old_CFLAGS"
13749 fi
13750 rm -f conftest*
13751
13752fi
13753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_4" >&5
13754$as_echo "$libat_cv_have_at_fadd_4" >&6; }
13755
13756
13757 yesno=`echo $libat_cv_have_at_fadd_4 | tr 'yesno' '1 0 '`
13758
13759cat >>confdefs.h <<_ACEOF
13760#define HAVE_ATOMIC_FETCH_ADD_4 $yesno
13761_ACEOF
13762
13763
13764
13765
13766
13767
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 8" >&5
13769$as_echo_n "checking for __atomic_fetch_add for size 8... " >&6; }
13770if test "${libat_cv_have_at_fadd_8+set}" = set; then :
13771 $as_echo_n "(cached) " >&6
13772else
13773
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775/* end confdefs.h. */
13776
13777int
13778main ()
13779{
13780typedef int T __attribute__((mode(DI))); T *x, y;
13781 asm("" : "=g"(x), "=g"(y));
13782 __atomic_fetch_add (x, y, 0);
13783 __atomic_add_fetch (x, y, 0);
13784 ;
13785 return 0;
13786}
13787_ACEOF
13788 if test x$atomic_builtins_link_tests = xyes; then
13789 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13790 (eval $ac_link) 2>&5
13791 ac_status=$?
13792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13793 test $ac_status = 0; }; then
13794 eval libat_cv_have_at_fadd_8=yes
13795 else
13796 eval libat_cv_have_at_fadd_8=no
13797 fi
13798 else
13799 old_CFLAGS="$CFLAGS"
13800 # Compile unoptimized.
13801 CFLAGS="$CFLAGS -O0 -S"
13802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13803 (eval $ac_compile) 2>&5
13804 ac_status=$?
13805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13806 test $ac_status = 0; }; then
13807 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13808 eval libat_cv_have_at_fadd_8=no
13809 else
13810 eval libat_cv_have_at_fadd_8=yes
13811 fi
13812 else
13813 eval libat_cv_have_at_fadd_8=no
13814 fi
13815 CFLAGS="$old_CFLAGS"
13816 fi
13817 rm -f conftest*
13818
13819fi
13820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_8" >&5
13821$as_echo "$libat_cv_have_at_fadd_8" >&6; }
13822
13823
13824 yesno=`echo $libat_cv_have_at_fadd_8 | tr 'yesno' '1 0 '`
13825
13826cat >>confdefs.h <<_ACEOF
13827#define HAVE_ATOMIC_FETCH_ADD_8 $yesno
13828_ACEOF
13829
13830
13831
13832
13833
13834
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add for size 16" >&5
13836$as_echo_n "checking for __atomic_fetch_add for size 16... " >&6; }
13837if test "${libat_cv_have_at_fadd_16+set}" = set; then :
13838 $as_echo_n "(cached) " >&6
13839else
13840
13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842/* end confdefs.h. */
13843
13844int
13845main ()
13846{
13847typedef int T __attribute__((mode(TI))); T *x, y;
13848 asm("" : "=g"(x), "=g"(y));
13849 __atomic_fetch_add (x, y, 0);
13850 __atomic_add_fetch (x, y, 0);
13851 ;
13852 return 0;
13853}
13854_ACEOF
13855 if test x$atomic_builtins_link_tests = xyes; then
13856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13857 (eval $ac_link) 2>&5
13858 ac_status=$?
13859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13860 test $ac_status = 0; }; then
13861 eval libat_cv_have_at_fadd_16=yes
13862 else
13863 eval libat_cv_have_at_fadd_16=no
13864 fi
13865 else
13866 old_CFLAGS="$CFLAGS"
13867 # Compile unoptimized.
13868 CFLAGS="$CFLAGS -O0 -S"
13869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13870 (eval $ac_compile) 2>&5
13871 ac_status=$?
13872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13873 test $ac_status = 0; }; then
13874 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13875 eval libat_cv_have_at_fadd_16=no
13876 else
13877 eval libat_cv_have_at_fadd_16=yes
13878 fi
13879 else
13880 eval libat_cv_have_at_fadd_16=no
13881 fi
13882 CFLAGS="$old_CFLAGS"
13883 fi
13884 rm -f conftest*
13885
13886fi
13887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fadd_16" >&5
13888$as_echo "$libat_cv_have_at_fadd_16" >&6; }
13889
13890
13891 yesno=`echo $libat_cv_have_at_fadd_16 | tr 'yesno' '1 0 '`
13892
13893cat >>confdefs.h <<_ACEOF
13894#define HAVE_ATOMIC_FETCH_ADD_16 $yesno
13895_ACEOF
13896
13897
13898
13899
13900
13901
13902
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 1" >&5
13904$as_echo_n "checking for __atomic_fetch_op for size 1... " >&6; }
13905if test "${libat_cv_have_at_fop_1+set}" = set; then :
13906 $as_echo_n "(cached) " >&6
13907else
13908
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910/* end confdefs.h. */
13911
13912int
13913main ()
13914{
13915typedef int T __attribute__((mode(QI))); T *x, y;
13916 asm("" : "=g"(x), "=g"(y));
13917 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
13918 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
13919 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
13920 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
13921 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
13922 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
13923 ;
13924 return 0;
13925}
13926_ACEOF
13927 if test x$atomic_builtins_link_tests = xyes; then
13928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13929 (eval $ac_link) 2>&5
13930 ac_status=$?
13931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13932 test $ac_status = 0; }; then
13933 eval libat_cv_have_at_fop_1=yes
13934 else
13935 eval libat_cv_have_at_fop_1=no
13936 fi
13937 else
13938 old_CFLAGS="$CFLAGS"
13939 # Compile unoptimized.
13940 CFLAGS="$CFLAGS -O0 -S"
13941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13942 (eval $ac_compile) 2>&5
13943 ac_status=$?
13944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13945 test $ac_status = 0; }; then
13946 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
13947 eval libat_cv_have_at_fop_1=no
13948 else
13949 eval libat_cv_have_at_fop_1=yes
13950 fi
13951 else
13952 eval libat_cv_have_at_fop_1=no
13953 fi
13954 CFLAGS="$old_CFLAGS"
13955 fi
13956 rm -f conftest*
13957
13958fi
13959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_1" >&5
13960$as_echo "$libat_cv_have_at_fop_1" >&6; }
13961
13962
13963 yesno=`echo $libat_cv_have_at_fop_1 | tr 'yesno' '1 0 '`
13964
13965cat >>confdefs.h <<_ACEOF
13966#define HAVE_ATOMIC_FETCH_OP_1 $yesno
13967_ACEOF
13968
13969
13970
13971
13972
13973
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 2" >&5
13975$as_echo_n "checking for __atomic_fetch_op for size 2... " >&6; }
13976if test "${libat_cv_have_at_fop_2+set}" = set; then :
13977 $as_echo_n "(cached) " >&6
13978else
13979
13980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981/* end confdefs.h. */
13982
13983int
13984main ()
13985{
13986typedef int T __attribute__((mode(HI))); T *x, y;
13987 asm("" : "=g"(x), "=g"(y));
13988 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
13989 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
13990 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
13991 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
13992 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
13993 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
13994 ;
13995 return 0;
13996}
13997_ACEOF
13998 if test x$atomic_builtins_link_tests = xyes; then
13999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14000 (eval $ac_link) 2>&5
14001 ac_status=$?
14002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14003 test $ac_status = 0; }; then
14004 eval libat_cv_have_at_fop_2=yes
14005 else
14006 eval libat_cv_have_at_fop_2=no
14007 fi
14008 else
14009 old_CFLAGS="$CFLAGS"
14010 # Compile unoptimized.
14011 CFLAGS="$CFLAGS -O0 -S"
14012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14013 (eval $ac_compile) 2>&5
14014 ac_status=$?
14015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14016 test $ac_status = 0; }; then
14017 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14018 eval libat_cv_have_at_fop_2=no
14019 else
14020 eval libat_cv_have_at_fop_2=yes
14021 fi
14022 else
14023 eval libat_cv_have_at_fop_2=no
14024 fi
14025 CFLAGS="$old_CFLAGS"
14026 fi
14027 rm -f conftest*
14028
14029fi
14030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_2" >&5
14031$as_echo "$libat_cv_have_at_fop_2" >&6; }
14032
14033
14034 yesno=`echo $libat_cv_have_at_fop_2 | tr 'yesno' '1 0 '`
14035
14036cat >>confdefs.h <<_ACEOF
14037#define HAVE_ATOMIC_FETCH_OP_2 $yesno
14038_ACEOF
14039
14040
14041
14042
14043
14044
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 4" >&5
14046$as_echo_n "checking for __atomic_fetch_op for size 4... " >&6; }
14047if test "${libat_cv_have_at_fop_4+set}" = set; then :
14048 $as_echo_n "(cached) " >&6
14049else
14050
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052/* end confdefs.h. */
14053
14054int
14055main ()
14056{
14057typedef int T __attribute__((mode(SI))); T *x, y;
14058 asm("" : "=g"(x), "=g"(y));
14059 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14060 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14061 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14062 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14063 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14064 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14065 ;
14066 return 0;
14067}
14068_ACEOF
14069 if test x$atomic_builtins_link_tests = xyes; then
14070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14071 (eval $ac_link) 2>&5
14072 ac_status=$?
14073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14074 test $ac_status = 0; }; then
14075 eval libat_cv_have_at_fop_4=yes
14076 else
14077 eval libat_cv_have_at_fop_4=no
14078 fi
14079 else
14080 old_CFLAGS="$CFLAGS"
14081 # Compile unoptimized.
14082 CFLAGS="$CFLAGS -O0 -S"
14083 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14084 (eval $ac_compile) 2>&5
14085 ac_status=$?
14086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14087 test $ac_status = 0; }; then
14088 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14089 eval libat_cv_have_at_fop_4=no
14090 else
14091 eval libat_cv_have_at_fop_4=yes
14092 fi
14093 else
14094 eval libat_cv_have_at_fop_4=no
14095 fi
14096 CFLAGS="$old_CFLAGS"
14097 fi
14098 rm -f conftest*
14099
14100fi
14101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_4" >&5
14102$as_echo "$libat_cv_have_at_fop_4" >&6; }
14103
14104
14105 yesno=`echo $libat_cv_have_at_fop_4 | tr 'yesno' '1 0 '`
14106
14107cat >>confdefs.h <<_ACEOF
14108#define HAVE_ATOMIC_FETCH_OP_4 $yesno
14109_ACEOF
14110
14111
14112
14113
14114
14115
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 8" >&5
14117$as_echo_n "checking for __atomic_fetch_op for size 8... " >&6; }
14118if test "${libat_cv_have_at_fop_8+set}" = set; then :
14119 $as_echo_n "(cached) " >&6
14120else
14121
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123/* end confdefs.h. */
14124
14125int
14126main ()
14127{
14128typedef int T __attribute__((mode(DI))); T *x, y;
14129 asm("" : "=g"(x), "=g"(y));
14130 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14131 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14132 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14133 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14134 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14135 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14136 ;
14137 return 0;
14138}
14139_ACEOF
14140 if test x$atomic_builtins_link_tests = xyes; then
14141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14142 (eval $ac_link) 2>&5
14143 ac_status=$?
14144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14145 test $ac_status = 0; }; then
14146 eval libat_cv_have_at_fop_8=yes
14147 else
14148 eval libat_cv_have_at_fop_8=no
14149 fi
14150 else
14151 old_CFLAGS="$CFLAGS"
14152 # Compile unoptimized.
14153 CFLAGS="$CFLAGS -O0 -S"
14154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14155 (eval $ac_compile) 2>&5
14156 ac_status=$?
14157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14158 test $ac_status = 0; }; then
14159 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14160 eval libat_cv_have_at_fop_8=no
14161 else
14162 eval libat_cv_have_at_fop_8=yes
14163 fi
14164 else
14165 eval libat_cv_have_at_fop_8=no
14166 fi
14167 CFLAGS="$old_CFLAGS"
14168 fi
14169 rm -f conftest*
14170
14171fi
14172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_8" >&5
14173$as_echo "$libat_cv_have_at_fop_8" >&6; }
14174
14175
14176 yesno=`echo $libat_cv_have_at_fop_8 | tr 'yesno' '1 0 '`
14177
14178cat >>confdefs.h <<_ACEOF
14179#define HAVE_ATOMIC_FETCH_OP_8 $yesno
14180_ACEOF
14181
14182
14183
14184
14185
14186
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_op for size 16" >&5
14188$as_echo_n "checking for __atomic_fetch_op for size 16... " >&6; }
14189if test "${libat_cv_have_at_fop_16+set}" = set; then :
14190 $as_echo_n "(cached) " >&6
14191else
14192
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194/* end confdefs.h. */
14195
14196int
14197main ()
14198{
14199typedef int T __attribute__((mode(TI))); T *x, y;
14200 asm("" : "=g"(x), "=g"(y));
14201 __atomic_fetch_add (x, y, 0); __atomic_add_fetch (x, y, 0);
14202 __atomic_fetch_sub (x, y, 0); __atomic_sub_fetch (x, y, 0);
14203 __atomic_fetch_and (x, y, 0); __atomic_and_fetch (x, y, 0);
14204 __atomic_fetch_nand (x, y, 0); __atomic_nand_fetch (x, y, 0);
14205 __atomic_fetch_xor (x, y, 0); __atomic_xor_fetch (x, y, 0);
14206 __atomic_fetch_or (x, y, 0); __atomic_or_fetch (x, y, 0);
14207 ;
14208 return 0;
14209}
14210_ACEOF
14211 if test x$atomic_builtins_link_tests = xyes; then
14212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14213 (eval $ac_link) 2>&5
14214 ac_status=$?
14215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14216 test $ac_status = 0; }; then
14217 eval libat_cv_have_at_fop_16=yes
14218 else
14219 eval libat_cv_have_at_fop_16=no
14220 fi
14221 else
14222 old_CFLAGS="$CFLAGS"
14223 # Compile unoptimized.
14224 CFLAGS="$CFLAGS -O0 -S"
14225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14226 (eval $ac_compile) 2>&5
14227 ac_status=$?
14228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14229 test $ac_status = 0; }; then
14230 if grep __atomic_ conftest.s >/dev/null 2>&1 ; then
14231 eval libat_cv_have_at_fop_16=no
14232 else
14233 eval libat_cv_have_at_fop_16=yes
14234 fi
14235 else
14236 eval libat_cv_have_at_fop_16=no
14237 fi
14238 CFLAGS="$old_CFLAGS"
14239 fi
14240 rm -f conftest*
14241
14242fi
14243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_at_fop_16" >&5
14244$as_echo "$libat_cv_have_at_fop_16" >&6; }
14245
14246
14247 yesno=`echo $libat_cv_have_at_fop_16 | tr 'yesno' '1 0 '`
14248
14249cat >>confdefs.h <<_ACEOF
14250#define HAVE_ATOMIC_FETCH_OP_16 $yesno
14251_ACEOF
14252
14253
14254
14255
14256
14257
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14259$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14260if test "${ac_cv_c_bigendian+set}" = set; then :
14261 $as_echo_n "(cached) " >&6
14262else
14263 ac_cv_c_bigendian=unknown
14264 # See if we're dealing with a universal compiler.
14265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14266/* end confdefs.h. */
14267#ifndef __APPLE_CC__
14268 not a universal capable compiler
14269 #endif
14270 typedef int dummy;
14271
14272_ACEOF
14273if ac_fn_c_try_compile "$LINENO"; then :
14274
14275 # Check for potential -arch flags. It is not universal unless
14276 # there are at least two -arch flags with different values.
14277 ac_arch=
14278 ac_prev=
14279 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14280 if test -n "$ac_prev"; then
14281 case $ac_word in
14282 i?86 | x86_64 | ppc | ppc64)
14283 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14284 ac_arch=$ac_word
14285 else
14286 ac_cv_c_bigendian=universal
14287 break
14288 fi
14289 ;;
14290 esac
14291 ac_prev=
14292 elif test "x$ac_word" = "x-arch"; then
14293 ac_prev=arch
14294 fi
14295 done
14296fi
14297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14298 if test $ac_cv_c_bigendian = unknown; then
14299 # See if sys/param.h defines the BYTE_ORDER macro.
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301/* end confdefs.h. */
14302#include <sys/types.h>
14303 #include <sys/param.h>
14304
14305int
14306main ()
14307{
14308#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14309 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14310 && LITTLE_ENDIAN)
14311 bogus endian macros
14312 #endif
14313
14314 ;
14315 return 0;
14316}
14317_ACEOF
14318if ac_fn_c_try_compile "$LINENO"; then :
14319 # It does; now see whether it defined to BIG_ENDIAN or not.
14320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321/* end confdefs.h. */
14322#include <sys/types.h>
14323 #include <sys/param.h>
14324
14325int
14326main ()
14327{
14328#if BYTE_ORDER != BIG_ENDIAN
14329 not big endian
14330 #endif
14331
14332 ;
14333 return 0;
14334}
14335_ACEOF
14336if ac_fn_c_try_compile "$LINENO"; then :
14337 ac_cv_c_bigendian=yes
14338else
14339 ac_cv_c_bigendian=no
14340fi
14341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342fi
14343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344 fi
14345 if test $ac_cv_c_bigendian = unknown; then
14346 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348/* end confdefs.h. */
14349#include <limits.h>
14350
14351int
14352main ()
14353{
14354#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14355 bogus endian macros
14356 #endif
14357
14358 ;
14359 return 0;
14360}
14361_ACEOF
14362if ac_fn_c_try_compile "$LINENO"; then :
14363 # It does; now see whether it defined to _BIG_ENDIAN or not.
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365/* end confdefs.h. */
14366#include <limits.h>
14367
14368int
14369main ()
14370{
14371#ifndef _BIG_ENDIAN
14372 not big endian
14373 #endif
14374
14375 ;
14376 return 0;
14377}
14378_ACEOF
14379if ac_fn_c_try_compile "$LINENO"; then :
14380 ac_cv_c_bigendian=yes
14381else
14382 ac_cv_c_bigendian=no
14383fi
14384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14385fi
14386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14387 fi
14388 if test $ac_cv_c_bigendian = unknown; then
14389 # Compile a test program.
14390 if test "$cross_compiling" = yes; then :
14391 # Try to guess by grepping values from an object file.
14392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393/* end confdefs.h. */
14394short int ascii_mm[] =
14395 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14396 short int ascii_ii[] =
14397 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14398 int use_ascii (int i) {
14399 return ascii_mm[i] + ascii_ii[i];
14400 }
14401 short int ebcdic_ii[] =
14402 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14403 short int ebcdic_mm[] =
14404 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14405 int use_ebcdic (int i) {
14406 return ebcdic_mm[i] + ebcdic_ii[i];
14407 }
14408 extern int foo;
14409
14410int
14411main ()
14412{
14413return use_ascii (foo) == use_ebcdic (foo);
14414 ;
14415 return 0;
14416}
14417_ACEOF
14418if ac_fn_c_try_compile "$LINENO"; then :
14419 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14420 ac_cv_c_bigendian=yes
14421 fi
14422 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14423 if test "$ac_cv_c_bigendian" = unknown; then
14424 ac_cv_c_bigendian=no
14425 else
14426 # finding both strings is unlikely to happen, but who knows?
14427 ac_cv_c_bigendian=unknown
14428 fi
14429 fi
14430fi
14431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432else
14433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434/* end confdefs.h. */
14435$ac_includes_default
14436int
14437main ()
14438{
14439
14440 /* Are we little or big endian? From Harbison&Steele. */
14441 union
14442 {
14443 long int l;
14444 char c[sizeof (long int)];
14445 } u;
14446 u.l = 1;
14447 return u.c[sizeof (long int) - 1] == 1;
14448
14449 ;
14450 return 0;
14451}
14452_ACEOF
14453if ac_fn_c_try_run "$LINENO"; then :
14454 ac_cv_c_bigendian=no
14455else
14456 ac_cv_c_bigendian=yes
14457fi
14458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14459 conftest.$ac_objext conftest.beam conftest.$ac_ext
14460fi
14461
14462 fi
14463fi
14464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14465$as_echo "$ac_cv_c_bigendian" >&6; }
14466 case $ac_cv_c_bigendian in #(
14467 yes)
14468 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14469;; #(
14470 no)
14471 ;; #(
14472 universal)
14473
14474$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14475
14476 ;; #(
14477 *)
14478 as_fn_error "unknown endianness
14479 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14480 esac
14481
14482# I don't like the default behaviour of WORDS_BIGENDIAN undefined for LE.
14483
14484
14485
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the word size" >&5
14487$as_echo_n "checking for the word size... " >&6; }
14488if test "${libat_cv_wordsize+set}" = set; then :
14489 $as_echo_n "(cached) " >&6
14490else
14491 if ac_fn_c_compute_int "$LINENO" "sizeof(word)" "libat_cv_wordsize" "typedef int word __attribute__((mode(word)));"; then :
14492
14493else
14494 as_fn_error "Could not determine word size." "$LINENO" 5
14495fi
14496
14497fi
14498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_wordsize" >&5
14499$as_echo "$libat_cv_wordsize" >&6; }
14500
14501cat >>confdefs.h <<_ACEOF
14502#define WORDSIZE $libat_cv_wordsize
14503_ACEOF
14504
14505
14506
14507# Check to see if -pthread or -lpthread is needed. Prefer the former.
14508# In case the pthread.h system header is not found, this test will fail.
14509case " $config_path " in
14510 *" posix "*)
14511 XPCFLAGS=""
14512 CFLAGS="$CFLAGS -pthread"
14513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514/* end confdefs.h. */
14515#include <pthread.h>
14516 void *g(void *d) { return NULL; }
14517int
14518main ()
14519{
14520pthread_t t; pthread_create(&t,NULL,g,NULL);
14521 ;
14522 return 0;
14523}
14524_ACEOF
14525if ac_fn_c_try_link "$LINENO"; then :
14526 XPCFLAGS=" -pthread"
14527else
14528 CFLAGS="$save_CFLAGS $XCFLAGS" LIBS="-lpthread $LIBS"
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530/* end confdefs.h. */
14531#include <pthread.h>
14532 void *g(void *d) { return NULL; }
14533int
14534main ()
14535{
14536pthread_t t; pthread_create(&t,NULL,g,NULL);
14537 ;
14538 return 0;
14539}
14540_ACEOF
14541if ac_fn_c_try_link "$LINENO"; then :
14542
14543else
14544 as_fn_error "Pthreads are required to build libatomic" "$LINENO" 5
14545fi
14546rm -f core conftest.err conftest.$ac_objext \
14547 conftest$ac_exeext conftest.$ac_ext
14548fi
14549rm -f core conftest.err conftest.$ac_objext \
14550 conftest$ac_exeext conftest.$ac_ext
14551 CFLAGS="$save_CFLAGS $XPCFLAGS"
14552 ;;
14553esac
14554
14555# See what sort of export controls are available.
14556
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
14558$as_echo_n "checking whether the target supports hidden visibility... " >&6; }
14559if test "${libat_cv_have_attribute_visibility+set}" = set; then :
14560 $as_echo_n "(cached) " >&6
14561else
14562
14563 save_CFLAGS="$CFLAGS"
14564 CFLAGS="$CFLAGS -Werror"
14565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14566/* end confdefs.h. */
14567void __attribute__((visibility("hidden"))) foo(void) { }
14568int
14569main ()
14570{
14571
14572 ;
14573 return 0;
14574}
14575_ACEOF
14576if ac_fn_c_try_compile "$LINENO"; then :
14577 libat_cv_have_attribute_visibility=yes
14578else
14579 libat_cv_have_attribute_visibility=no
14580fi
14581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 CFLAGS="$save_CFLAGS"
14583fi
14584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_visibility" >&5
14585$as_echo "$libat_cv_have_attribute_visibility" >&6; }
14586 if test $libat_cv_have_attribute_visibility = yes; then
14587
14588$as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
14589
14590 fi
14591
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
14593$as_echo_n "checking whether the target supports dllexport... " >&6; }
14594if test "${libat_cv_have_attribute_dllexport+set}" = set; then :
14595 $as_echo_n "(cached) " >&6
14596else
14597
14598 save_CFLAGS="$CFLAGS"
14599 CFLAGS="$CFLAGS -Werror"
14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601/* end confdefs.h. */
14602void __attribute__((dllexport)) foo(void) { }
14603int
14604main ()
14605{
14606
14607 ;
14608 return 0;
14609}
14610_ACEOF
14611if ac_fn_c_try_compile "$LINENO"; then :
14612 libat_cv_have_attribute_dllexport=yes
14613else
14614 libat_cv_have_attribute_dllexport=no
14615fi
14616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617 CFLAGS="$save_CFLAGS"
14618fi
14619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_dllexport" >&5
14620$as_echo "$libat_cv_have_attribute_dllexport" >&6; }
14621 if test $libat_cv_have_attribute_dllexport = yes; then
14622
14623$as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
14624
14625 fi
14626
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
14628$as_echo_n "checking whether the target supports symbol aliases... " >&6; }
14629if test "${libat_cv_have_attribute_alias+set}" = set; then :
14630 $as_echo_n "(cached) " >&6
14631else
14632
14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14634/* end confdefs.h. */
14635
14636void foo(void) { }
14637extern void bar(void) __attribute__((alias("foo")));
14638int
14639main ()
14640{
14641bar();
14642 ;
14643 return 0;
14644}
14645_ACEOF
14646if ac_fn_c_try_link "$LINENO"; then :
14647 libat_cv_have_attribute_alias=yes
14648else
14649 libat_cv_have_attribute_alias=no
14650fi
14651rm -f core conftest.err conftest.$ac_objext \
14652 conftest$ac_exeext conftest.$ac_ext
14653fi
14654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_attribute_alias" >&5
14655$as_echo "$libat_cv_have_attribute_alias" >&6; }
14656 if test $libat_cv_have_attribute_alias = yes; then
14657
14658$as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
14659
14660 fi
14661if test x$try_ifunc = xyes; then
14662
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports the ifunc attribute" >&5
14664$as_echo_n "checking whether the target supports the ifunc attribute... " >&6; }
14665if test "${libat_cv_have_ifunc+set}" = set; then :
14666 $as_echo_n "(cached) " >&6
14667else
14668
14669 save_CFLAGS="$CFLAGS"
14670 CFLAGS="$CFLAGS -Werror"
14671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14672/* end confdefs.h. */
14673
14674 int foo_alt(void) { return 0; }
14675 void *foo_sel(void) { return foo_alt; }
14676 int foo(void) __attribute__((ifunc("foo_sel")));
14677int
14678main ()
14679{
14680return foo();
14681 ;
14682 return 0;
14683}
14684_ACEOF
14685if ac_fn_c_try_link "$LINENO"; then :
14686 libat_cv_have_ifunc=yes
14687else
14688 libat_cv_have_ifunc=no
14689fi
14690rm -f core conftest.err conftest.$ac_objext \
14691 conftest$ac_exeext conftest.$ac_ext
14692fi
14693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_cv_have_ifunc" >&5
14694$as_echo "$libat_cv_have_ifunc" >&6; }
14695
Caroline Ticea2bc87a2016-05-03 15:40:1014696 if test $enable_libatomic_ifuncs = no; then
14697 libat_cv_have_ifunc=no
14698 fi
14699
14700
Han Shenb42cc222013-11-18 20:49:2214701 yesno=`echo $libat_cv_have_ifunc | tr 'yesno' '1 0 '`
14702
14703cat >>confdefs.h <<_ACEOF
14704#define HAVE_IFUNC $yesno
14705_ACEOF
14706
14707
14708
Caroline Ticea2bc87a2016-05-03 15:40:1014709 if test $enable_libatomic_ifuncs = no; then
14710 libat_cv_have_ifunc=no
14711 fi
Han Shenb42cc222013-11-18 20:49:2214712fi
14713
14714# Check linker support.
14715
14716
14717# Check whether --with-gnu-ld was given.
14718if test "${with_gnu_ld+set}" = set; then :
14719 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14720else
14721 with_gnu_ld=no
14722fi
14723
14724ac_prog=ld
14725if test "$GCC" = yes; then
14726 # Check if gcc -print-prog-name=ld gives a path.
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14728$as_echo_n "checking for ld used by $CC... " >&6; }
14729 case $host in
14730 *-*-mingw*)
14731 # gcc leaves a trailing carriage return which upsets mingw
14732 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14733 *)
14734 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14735 esac
14736 case $ac_prog in
14737 # Accept absolute paths.
14738 [\\/]* | ?:[\\/]*)
14739 re_direlt='/[^/][^/]*/\.\./'
14740 # Canonicalize the pathname of ld
14741 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14742 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14743 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14744 done
14745 test -z "$LD" && LD="$ac_prog"
14746 ;;
14747 "")
14748 # If it fails, then pretend we aren't using GCC.
14749 ac_prog=ld
14750 ;;
14751 *)
14752 # If it is relative, then search for the first ld in PATH.
14753 with_gnu_ld=unknown
14754 ;;
14755 esac
14756elif test "$with_gnu_ld" = yes; then
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14758$as_echo_n "checking for GNU ld... " >&6; }
14759else
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14761$as_echo_n "checking for non-GNU ld... " >&6; }
14762fi
14763if test "${lt_cv_path_LD+set}" = set; then :
14764 $as_echo_n "(cached) " >&6
14765else
14766 if test -z "$LD"; then
14767 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14768 for ac_dir in $PATH; do
14769 IFS="$lt_save_ifs"
14770 test -z "$ac_dir" && ac_dir=.
14771 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14772 lt_cv_path_LD="$ac_dir/$ac_prog"
14773 # Check to see if the program is GNU ld. I'd rather use --version,
14774 # but apparently some variants of GNU ld only accept -v.
14775 # Break only if it was the GNU/non-GNU ld that we prefer.
14776 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14777 *GNU* | *'with BFD'*)
14778 test "$with_gnu_ld" != no && break
14779 ;;
14780 *)
14781 test "$with_gnu_ld" != yes && break
14782 ;;
14783 esac
14784 fi
14785 done
14786 IFS="$lt_save_ifs"
14787else
14788 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14789fi
14790fi
14791
14792LD="$lt_cv_path_LD"
14793if test -n "$LD"; then
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14795$as_echo "$LD" >&6; }
14796else
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14798$as_echo "no" >&6; }
14799fi
14800test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14802$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14803if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14804 $as_echo_n "(cached) " >&6
14805else
14806 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14807case `$LD -v 2>&1 </dev/null` in
14808*GNU* | *'with BFD'*)
14809 lt_cv_prog_gnu_ld=yes
14810 ;;
14811*)
14812 lt_cv_prog_gnu_ld=no
14813 ;;
14814esac
14815fi
14816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14817$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14818with_gnu_ld=$lt_cv_prog_gnu_ld
14819
14820
14821
14822
14823
14824
14825
14826 # If we're not using GNU ld, then there's no point in even trying these
14827 # tests. Check for that first. We should have already tested for gld
14828 # by now (in libtool), but require it now just to be safe...
14829 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
14830 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
14831
14832
14833
14834 # The name set by libtool depends on the version of libtool. Shame on us
14835 # for depending on an impl detail, but c'est la vie. Older versions used
14836 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
14837 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
14838 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
14839 # set (hence we're using an older libtool), then set it.
14840 if test x${with_gnu_ld+set} != xset; then
14841 if test x${ac_cv_prog_gnu_ld+set} != xset; then
14842 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
14843 with_gnu_ld=no
14844 else
14845 with_gnu_ld=$ac_cv_prog_gnu_ld
14846 fi
14847 fi
14848
14849 # Start by getting the version number. I think the libtool test already
14850 # does some of this, but throws away the result.
14851 libat_ld_is_gold=no
14852 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
14853 libat_ld_is_gold=yes
14854 fi
14855
14856 ldver=`$LD --version 2>/dev/null |
14857 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
14858
14859 libat_gnu_ld_version=`echo $ldver | \
14860 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
14861
14862 # Set --gc-sections.
14863 if test "$with_gnu_ld" = "notbroken"; then
14864 # GNU ld it is! Joy and bunny rabbits!
14865
14866 # All these tests are for C++; save the language and the compiler flags.
14867 # Need to do this so that g++ won't try to link in libstdc++
14868 ac_test_CFLAGS="${CFLAGS+set}"
14869 ac_save_CFLAGS="$CFLAGS"
14870 CFLAGS='-x c++ -Wl,--gc-sections'
14871
14872 # Check for -Wl,--gc-sections
14873 # XXX This test is broken at the moment, as symbols required for linking
14874 # are now in libsupc++ (not built yet). In addition, this test has
14875 # cored on solaris in the past. In addition, --gc-sections doesn't
14876 # really work at the moment (keeps on discarding used sections, first
14877 # .eh_frame and now some of the glibc sections for iconv).
14878 # Bzzzzt. Thanks for playing, maybe next time.
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
14880$as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
14881 if test "$cross_compiling" = yes; then :
14882 ac_sectionLDflags=yes
14883else
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885/* end confdefs.h. */
14886
14887 int main(void)
14888 {
14889 try { throw 1; }
14890 catch (...) { };
14891 return 0;
14892 }
14893
14894_ACEOF
14895if ac_fn_c_try_run "$LINENO"; then :
14896 ac_sectionLDflags=yes
14897else
14898 ac_sectionLDflags=no
14899fi
14900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14901 conftest.$ac_objext conftest.beam conftest.$ac_ext
14902fi
14903
14904 if test "$ac_test_CFLAGS" = set; then
14905 CFLAGS="$ac_save_CFLAGS"
14906 else
14907 # this is the suspicious part
14908 CFLAGS=''
14909 fi
14910 if test "$ac_sectionLDflags" = "yes"; then
14911 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
14912 fi
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
14914$as_echo "$ac_sectionLDflags" >&6; }
14915 fi
14916
14917 # Set linker optimization flags.
14918 if test x"$with_gnu_ld" = x"yes"; then
14919 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
14920 fi
14921
14922
14923
14924
14925
14926
14927 # Check whether --enable-symvers was given.
14928if test "${enable_symvers+set}" = set; then :
14929 enableval=$enable_symvers;
14930 case "$enableval" in
14931 yes|no|gnu*|sun) ;;
14932 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
14933 esac
14934
14935else
14936 enable_symvers=yes
14937fi
14938
14939
14940
14941# If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
14942# don't know enough about $LD to do tricks...
14943
14944
14945# Turn a 'yes' into a suitable default.
14946if test x$enable_symvers = xyes ; then
14947 # FIXME The following test is too strict, in theory.
14948 if test $enable_shared = no || test "x$LD" = x; then
14949 enable_symvers=no
14950 else
14951 if test $with_gnu_ld = yes ; then
14952 enable_symvers=gnu
14953 else
14954 case ${target_os} in
14955 # Sun symbol versioning exists since Solaris 2.5.
14956 solaris2.[5-9]* | solaris2.1[0-9]*)
14957 enable_symvers=sun ;;
14958 *)
14959 enable_symvers=no ;;
14960 esac
14961 fi
14962 fi
14963fi
14964
14965# Check if 'sun' was requested on non-Solaris 2 platforms.
14966if test x$enable_symvers = xsun ; then
14967 case ${target_os} in
14968 solaris2*)
14969 # All fine.
14970 ;;
14971 *)
14972 # Unlikely to work.
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
14974$as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
14976$as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
14978$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
14979 enable_symvers=no
14980 ;;
14981 esac
14982fi
14983
14984# Check to see if libgcc_s exists, indicating that shared libgcc is possible.
14985if test $enable_symvers != no; then
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
14987$as_echo_n "checking for shared libgcc... " >&6; }
14988 ac_save_CFLAGS="$CFLAGS"
14989 CFLAGS=' -lgcc_s'
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991/* end confdefs.h. */
14992
14993int
14994main ()
14995{
14996return 0;
14997 ;
14998 return 0;
14999}
15000_ACEOF
15001if ac_fn_c_try_link "$LINENO"; then :
15002 libat_shared_libgcc=yes
15003else
15004 libat_shared_libgcc=no
15005fi
15006rm -f core conftest.err conftest.$ac_objext \
15007 conftest$ac_exeext conftest.$ac_ext
15008 CFLAGS="$ac_save_CFLAGS"
15009 if test $libat_shared_libgcc = no; then
15010 cat > conftest.c <<EOF
15011int main (void) { return 0; }
15012EOF
15013 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
15014 -shared -shared-libgcc -o conftest.so \
15015 conftest.c -v 2>&1 >/dev/null \
15016 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
15017 rm -f conftest.c conftest.so
15018 if test x${libat_libgcc_s_suffix+set} = xset; then
15019 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15021/* end confdefs.h. */
15022
15023int
15024main ()
15025{
15026return 0;
15027 ;
15028 return 0;
15029}
15030_ACEOF
15031if ac_fn_c_try_link "$LINENO"; then :
15032 libat_shared_libgcc=yes
15033fi
15034rm -f core conftest.err conftest.$ac_objext \
15035 conftest$ac_exeext conftest.$ac_ext
15036 CFLAGS="$ac_save_CFLAGS"
15037 fi
15038 fi
15039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
15040$as_echo "$libat_shared_libgcc" >&6; }
15041fi
15042
15043# For GNU ld, we need at least this version. The format is described in
15044# LIBAT_CHECK_LINKER_FEATURES above.
15045libat_min_gnu_ld_version=21400
15046# XXXXXXXXXXX libat_gnu_ld_version=21390
15047
15048# Check to see if unspecified "yes" value can win, given results above.
15049# Change "yes" into either "no" or a style name.
15050if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
15051 if test $with_gnu_ld = yes; then
15052 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
15053 enable_symvers=gnu
15054 elif test $libat_ld_is_gold = yes ; then
15055 enable_symvers=gnu
15056 else
15057 # The right tools, the right setup, but too old. Fallbacks?
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
15059$as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
15061$as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
15063$as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
15065$as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
15066 if test $libat_gnu_ld_version -ge 21200 ; then
15067 # Globbing fix is present, proper block support is not.
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15069$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15070 enable_symvers=no
15071 else
15072 # 2.11 or older.
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15074$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15075 enable_symvers=no
15076 fi
15077 fi
15078 elif test $enable_symvers = sun; then
15079 : All interesting versions of Sun ld support sun style symbol versioning.
15080 else
15081 # just fail for now
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
15083$as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
15085$as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
15087$as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
15089$as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
15090 enable_symvers=no
15091 fi
15092fi
15093if test $enable_symvers = gnu; then
15094
15095$as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
15096
15097fi
15098
15099 if test $enable_symvers != no; then
15100 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
15101 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
15102else
15103 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
15104 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
15105fi
15106
15107 if test $enable_symvers = gnu; then
15108 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
15109 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
15110else
15111 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
15112 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
15113fi
15114
15115 if test $enable_symvers = sun; then
15116 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
15117 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
15118else
15119 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
15120 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
15121fi
15122
15123{ $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
15124$as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
15125
15126
15127# Cleanup and exit.
15128CFLAGS="$save_CFLAGS"
15129cat >confcache <<\_ACEOF
15130# This file is a shell script that caches the results of configure
15131# tests run on this system so they can be shared between configure
15132# scripts and configure runs, see configure's option --config-cache.
15133# It is not useful on other systems. If it contains results you don't
15134# want to keep, you may remove or edit it.
15135#
15136# config.status only pays attention to the cache file if you give it
15137# the --recheck option to rerun configure.
15138#
15139# `ac_cv_env_foo' variables (set or unset) will be overridden when
15140# loading this file, other *unset* `ac_cv_foo' will be assigned the
15141# following values.
15142
15143_ACEOF
15144
15145# The following way of writing the cache mishandles newlines in values,
15146# but we know of no workaround that is simple, portable, and efficient.
15147# So, we kill variables containing newlines.
15148# Ultrix sh set writes to stderr and can't be redirected directly,
15149# and sets the high bit in the cache file unless we assign to the vars.
15150(
15151 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15152 eval ac_val=\$$ac_var
15153 case $ac_val in #(
15154 *${as_nl}*)
15155 case $ac_var in #(
15156 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15157$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15158 esac
15159 case $ac_var in #(
15160 _ | IFS | as_nl) ;; #(
15161 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15162 *) { eval $ac_var=; unset $ac_var;} ;;
15163 esac ;;
15164 esac
15165 done
15166
15167 (set) 2>&1 |
15168 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15169 *${as_nl}ac_space=\ *)
15170 # `set' does not quote correctly, so add quotes: double-quote
15171 # substitution turns \\\\ into \\, and sed turns \\ into \.
15172 sed -n \
15173 "s/'/'\\\\''/g;
15174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15175 ;; #(
15176 *)
15177 # `set' quotes correctly as required by POSIX, so do not add quotes.
15178 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15179 ;;
15180 esac |
15181 sort
15182) |
15183 sed '
15184 /^ac_cv_env_/b end
15185 t clear
15186 :clear
15187 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15188 t end
15189 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15190 :end' >>confcache
15191if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15192 if test -w "$cache_file"; then
15193 test "x$cache_file" != "x/dev/null" &&
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15195$as_echo "$as_me: updating cache $cache_file" >&6;}
15196 cat confcache >$cache_file
15197 else
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15199$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15200 fi
15201fi
15202rm -f confcache
15203
15204# Add -Wall -Werror if we are using GCC.
15205if test "x$GCC" = "xyes"; then
15206 XCFLAGS="$XCFLAGS -Wall -Werror"
15207fi
15208
15209XCFLAGS="$XCFLAGS $XPCFLAGS"
15210
15211
15212
15213
15214
15215
15216
15217 if test x$libat_cv_have_ifunc = xyes; then
15218 HAVE_IFUNC_TRUE=
15219 HAVE_IFUNC_FALSE='#'
15220else
15221 HAVE_IFUNC_TRUE='#'
15222 HAVE_IFUNC_FALSE=
15223fi
15224
15225 if expr "$config_path" : ".* linux/arm .*" > /dev/null; then
15226 ARCH_ARM_LINUX_TRUE=
15227 ARCH_ARM_LINUX_FALSE='#'
15228else
15229 ARCH_ARM_LINUX_TRUE='#'
15230 ARCH_ARM_LINUX_FALSE=
15231fi
15232
15233 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x4; then
15234 ARCH_I386_TRUE=
15235 ARCH_I386_FALSE='#'
15236else
15237 ARCH_I386_TRUE='#'
15238 ARCH_I386_FALSE=
15239fi
15240
15241 if test "$ARCH" = x86 && test x$libat_cv_wordsize = x8; then
15242 ARCH_X86_64_TRUE=
15243 ARCH_X86_64_FALSE='#'
15244else
15245 ARCH_X86_64_TRUE='#'
15246 ARCH_X86_64_FALSE=
15247fi
15248
15249
15250if test ${multilib} = yes; then
15251 multilib_arg="--enable-multilib"
15252else
15253 multilib_arg=
15254fi
15255
15256ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15257
15258ac_config_files="$ac_config_files testsuite/atomicconfig.exp"
15259
15260cat >confcache <<\_ACEOF
15261# This file is a shell script that caches the results of configure
15262# tests run on this system so they can be shared between configure
15263# scripts and configure runs, see configure's option --config-cache.
15264# It is not useful on other systems. If it contains results you don't
15265# want to keep, you may remove or edit it.
15266#
15267# config.status only pays attention to the cache file if you give it
15268# the --recheck option to rerun configure.
15269#
15270# `ac_cv_env_foo' variables (set or unset) will be overridden when
15271# loading this file, other *unset* `ac_cv_foo' will be assigned the
15272# following values.
15273
15274_ACEOF
15275
15276# The following way of writing the cache mishandles newlines in values,
15277# but we know of no workaround that is simple, portable, and efficient.
15278# So, we kill variables containing newlines.
15279# Ultrix sh set writes to stderr and can't be redirected directly,
15280# and sets the high bit in the cache file unless we assign to the vars.
15281(
15282 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15283 eval ac_val=\$$ac_var
15284 case $ac_val in #(
15285 *${as_nl}*)
15286 case $ac_var in #(
15287 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15288$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15289 esac
15290 case $ac_var in #(
15291 _ | IFS | as_nl) ;; #(
15292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15293 *) { eval $ac_var=; unset $ac_var;} ;;
15294 esac ;;
15295 esac
15296 done
15297
15298 (set) 2>&1 |
15299 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15300 *${as_nl}ac_space=\ *)
15301 # `set' does not quote correctly, so add quotes: double-quote
15302 # substitution turns \\\\ into \\, and sed turns \\ into \.
15303 sed -n \
15304 "s/'/'\\\\''/g;
15305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15306 ;; #(
15307 *)
15308 # `set' quotes correctly as required by POSIX, so do not add quotes.
15309 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15310 ;;
15311 esac |
15312 sort
15313) |
15314 sed '
15315 /^ac_cv_env_/b end
15316 t clear
15317 :clear
15318 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15319 t end
15320 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15321 :end' >>confcache
15322if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15323 if test -w "$cache_file"; then
15324 test "x$cache_file" != "x/dev/null" &&
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15326$as_echo "$as_me: updating cache $cache_file" >&6;}
15327 cat confcache >$cache_file
15328 else
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15330$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15331 fi
15332fi
15333rm -f confcache
15334
15335test "x$prefix" = xNONE && prefix=$ac_default_prefix
15336# Let make expand exec_prefix.
15337test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15338
15339DEFS=-DHAVE_CONFIG_H
15340
15341ac_libobjs=
15342ac_ltlibobjs=
15343for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15344 # 1. Remove the extension, and $U if already installed.
15345 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15346 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15347 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15348 # will be set to the directory where LIBOBJS objects are built.
15349 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15350 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15351done
15352LIBOBJS=$ac_libobjs
15353
15354LTLIBOBJS=$ac_ltlibobjs
15355
15356
15357if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
15358 as_fn_error "conditional \"GENINSRC\" was never defined.
15359Usually this means the macro was only invoked conditionally." "$LINENO" 5
15360fi
15361 if test -n "$EXEEXT"; then
15362 am__EXEEXT_TRUE=
15363 am__EXEEXT_FALSE='#'
15364else
15365 am__EXEEXT_TRUE='#'
15366 am__EXEEXT_FALSE=
15367fi
15368
15369if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15370 as_fn_error "conditional \"AMDEP\" was never defined.
15371Usually this means the macro was only invoked conditionally." "$LINENO" 5
15372fi
15373if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15374 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15375Usually this means the macro was only invoked conditionally." "$LINENO" 5
15376fi
15377if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15378 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
15379Usually this means the macro was only invoked conditionally." "$LINENO" 5
15380fi
15381if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15382 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15383Usually this means the macro was only invoked conditionally." "$LINENO" 5
15384fi
15385
15386if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
15387 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
15388Usually this means the macro was only invoked conditionally." "$LINENO" 5
15389fi
15390if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
15391 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
15392Usually this means the macro was only invoked conditionally." "$LINENO" 5
15393fi
15394if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
15395 as_fn_error "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
15396Usually this means the macro was only invoked conditionally." "$LINENO" 5
15397fi
15398if test -z "${HAVE_IFUNC_TRUE}" && test -z "${HAVE_IFUNC_FALSE}"; then
15399 as_fn_error "conditional \"HAVE_IFUNC\" was never defined.
15400Usually this means the macro was only invoked conditionally." "$LINENO" 5
15401fi
15402if test -z "${ARCH_ARM_LINUX_TRUE}" && test -z "${ARCH_ARM_LINUX_FALSE}"; then
15403 as_fn_error "conditional \"ARCH_ARM_LINUX\" was never defined.
15404Usually this means the macro was only invoked conditionally." "$LINENO" 5
15405fi
15406if test -z "${ARCH_I386_TRUE}" && test -z "${ARCH_I386_FALSE}"; then
15407 as_fn_error "conditional \"ARCH_I386\" was never defined.
15408Usually this means the macro was only invoked conditionally." "$LINENO" 5
15409fi
15410if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
15411 as_fn_error "conditional \"ARCH_X86_64\" was never defined.
15412Usually this means the macro was only invoked conditionally." "$LINENO" 5
15413fi
15414
15415: ${CONFIG_STATUS=./config.status}
15416ac_write_fail=0
15417ac_clean_files_save=$ac_clean_files
15418ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15419{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15420$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15421as_write_fail=0
15422cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15423#! $SHELL
15424# Generated by $as_me.
15425# Run this file to recreate the current configuration.
15426# Compiler output produced by configure, useful for debugging
15427# configure, is in config.log if it exists.
15428
15429debug=false
15430ac_cs_recheck=false
15431ac_cs_silent=false
15432
15433SHELL=\${CONFIG_SHELL-$SHELL}
15434export SHELL
15435_ASEOF
15436cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15437## -------------------- ##
15438## M4sh Initialization. ##
15439## -------------------- ##
15440
15441# Be more Bourne compatible
15442DUALCASE=1; export DUALCASE # for MKS sh
15443if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15444 emulate sh
15445 NULLCMD=:
15446 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15447 # is contrary to our usage. Disable this feature.
15448 alias -g '${1+"$@"}'='"$@"'
15449 setopt NO_GLOB_SUBST
15450else
15451 case `(set -o) 2>/dev/null` in #(
15452 *posix*) :
15453 set -o posix ;; #(
15454 *) :
15455 ;;
15456esac
15457fi
15458
15459
15460as_nl='
15461'
15462export as_nl
15463# Printing a long string crashes Solaris 7 /usr/bin/printf.
15464as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15465as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15466as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15467# Prefer a ksh shell builtin over an external printf program on Solaris,
15468# but without wasting forks for bash or zsh.
15469if test -z "$BASH_VERSION$ZSH_VERSION" \
15470 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15471 as_echo='print -r --'
15472 as_echo_n='print -rn --'
15473elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15474 as_echo='printf %s\n'
15475 as_echo_n='printf %s'
15476else
15477 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15479 as_echo_n='/usr/ucb/echo -n'
15480 else
15481 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15482 as_echo_n_body='eval
15483 arg=$1;
15484 case $arg in #(
15485 *"$as_nl"*)
15486 expr "X$arg" : "X\\(.*\\)$as_nl";
15487 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15488 esac;
15489 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15490 '
15491 export as_echo_n_body
15492 as_echo_n='sh -c $as_echo_n_body as_echo'
15493 fi
15494 export as_echo_body
15495 as_echo='sh -c $as_echo_body as_echo'
15496fi
15497
15498# The user is always right.
15499if test "${PATH_SEPARATOR+set}" != set; then
15500 PATH_SEPARATOR=:
15501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15503 PATH_SEPARATOR=';'
15504 }
15505fi
15506
15507
15508# IFS
15509# We need space, tab and new line, in precisely that order. Quoting is
15510# there to prevent editors from complaining about space-tab.
15511# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15512# splitting by setting IFS to empty value.)
15513IFS=" "" $as_nl"
15514
15515# Find who we are. Look in the path if we contain no directory separator.
15516case $0 in #((
15517 *[\\/]* ) as_myself=$0 ;;
15518 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15519for as_dir in $PATH
15520do
15521 IFS=$as_save_IFS
15522 test -z "$as_dir" && as_dir=.
15523 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15524 done
15525IFS=$as_save_IFS
15526
15527 ;;
15528esac
15529# We did not find ourselves, most probably we were run as `sh COMMAND'
15530# in which case we are not to be found in the path.
15531if test "x$as_myself" = x; then
15532 as_myself=$0
15533fi
15534if test ! -f "$as_myself"; then
15535 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15536 exit 1
15537fi
15538
15539# Unset variables that we do not need and which cause bugs (e.g. in
15540# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15541# suppresses any "Segmentation fault" message there. '((' could
15542# trigger a bug in pdksh 5.2.14.
15543for as_var in BASH_ENV ENV MAIL MAILPATH
15544do eval test x\${$as_var+set} = xset \
15545 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15546done
15547PS1='$ '
15548PS2='> '
15549PS4='+ '
15550
15551# NLS nuisances.
15552LC_ALL=C
15553export LC_ALL
15554LANGUAGE=C
15555export LANGUAGE
15556
15557# CDPATH.
15558(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15559
15560
15561# as_fn_error ERROR [LINENO LOG_FD]
15562# ---------------------------------
15563# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15564# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15565# script with status $?, using 1 if that was 0.
15566as_fn_error ()
15567{
15568 as_status=$?; test $as_status -eq 0 && as_status=1
15569 if test "$3"; then
15570 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15571 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15572 fi
15573 $as_echo "$as_me: error: $1" >&2
15574 as_fn_exit $as_status
15575} # as_fn_error
15576
15577
15578# as_fn_set_status STATUS
15579# -----------------------
15580# Set $? to STATUS, without forking.
15581as_fn_set_status ()
15582{
15583 return $1
15584} # as_fn_set_status
15585
15586# as_fn_exit STATUS
15587# -----------------
15588# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15589as_fn_exit ()
15590{
15591 set +e
15592 as_fn_set_status $1
15593 exit $1
15594} # as_fn_exit
15595
15596# as_fn_unset VAR
15597# ---------------
15598# Portably unset VAR.
15599as_fn_unset ()
15600{
15601 { eval $1=; unset $1;}
15602}
15603as_unset=as_fn_unset
15604# as_fn_append VAR VALUE
15605# ----------------------
15606# Append the text in VALUE to the end of the definition contained in VAR. Take
15607# advantage of any shell optimizations that allow amortized linear growth over
15608# repeated appends, instead of the typical quadratic growth present in naive
15609# implementations.
15610if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15611 eval 'as_fn_append ()
15612 {
15613 eval $1+=\$2
15614 }'
15615else
15616 as_fn_append ()
15617 {
15618 eval $1=\$$1\$2
15619 }
15620fi # as_fn_append
15621
15622# as_fn_arith ARG...
15623# ------------------
15624# Perform arithmetic evaluation on the ARGs, and store the result in the
15625# global $as_val. Take advantage of shells that can avoid forks. The arguments
15626# must be portable across $(()) and expr.
15627if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15628 eval 'as_fn_arith ()
15629 {
15630 as_val=$(( $* ))
15631 }'
15632else
15633 as_fn_arith ()
15634 {
15635 as_val=`expr "$@" || test $? -eq 1`
15636 }
15637fi # as_fn_arith
15638
15639
15640if expr a : '\(a\)' >/dev/null 2>&1 &&
15641 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15642 as_expr=expr
15643else
15644 as_expr=false
15645fi
15646
15647if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15648 as_basename=basename
15649else
15650 as_basename=false
15651fi
15652
15653if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15654 as_dirname=dirname
15655else
15656 as_dirname=false
15657fi
15658
15659as_me=`$as_basename -- "$0" ||
15660$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15661 X"$0" : 'X\(//\)$' \| \
15662 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15663$as_echo X/"$0" |
15664 sed '/^.*\/\([^/][^/]*\)\/*$/{
15665 s//\1/
15666 q
15667 }
15668 /^X\/\(\/\/\)$/{
15669 s//\1/
15670 q
15671 }
15672 /^X\/\(\/\).*/{
15673 s//\1/
15674 q
15675 }
15676 s/.*/./; q'`
15677
15678# Avoid depending upon Character Ranges.
15679as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15680as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15681as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15682as_cr_digits='0123456789'
15683as_cr_alnum=$as_cr_Letters$as_cr_digits
15684
15685ECHO_C= ECHO_N= ECHO_T=
15686case `echo -n x` in #(((((
15687-n*)
15688 case `echo 'xy\c'` in
15689 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15690 xy) ECHO_C='\c';;
15691 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15692 ECHO_T=' ';;
15693 esac;;
15694*)
15695 ECHO_N='-n';;
15696esac
15697
15698rm -f conf$$ conf$$.exe conf$$.file
15699if test -d conf$$.dir; then
15700 rm -f conf$$.dir/conf$$.file
15701else
15702 rm -f conf$$.dir
15703 mkdir conf$$.dir 2>/dev/null
15704fi
15705if (echo >conf$$.file) 2>/dev/null; then
15706 if ln -s conf$$.file conf$$ 2>/dev/null; then
15707 as_ln_s='ln -s'
15708 # ... but there are two gotchas:
15709 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15710 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15711 # In both cases, we have to default to `cp -p'.
15712 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15713 as_ln_s='cp -p'
15714 elif ln conf$$.file conf$$ 2>/dev/null; then
15715 as_ln_s=ln
15716 else
15717 as_ln_s='cp -p'
15718 fi
15719else
15720 as_ln_s='cp -p'
15721fi
15722rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15723rmdir conf$$.dir 2>/dev/null
15724
15725
15726# as_fn_mkdir_p
15727# -------------
15728# Create "$as_dir" as a directory, including parents if necessary.
15729as_fn_mkdir_p ()
15730{
15731
15732 case $as_dir in #(
15733 -*) as_dir=./$as_dir;;
15734 esac
15735 test -d "$as_dir" || eval $as_mkdir_p || {
15736 as_dirs=
15737 while :; do
15738 case $as_dir in #(
15739 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15740 *) as_qdir=$as_dir;;
15741 esac
15742 as_dirs="'$as_qdir' $as_dirs"
15743 as_dir=`$as_dirname -- "$as_dir" ||
15744$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15745 X"$as_dir" : 'X\(//\)[^/]' \| \
15746 X"$as_dir" : 'X\(//\)$' \| \
15747 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15748$as_echo X"$as_dir" |
15749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15750 s//\1/
15751 q
15752 }
15753 /^X\(\/\/\)[^/].*/{
15754 s//\1/
15755 q
15756 }
15757 /^X\(\/\/\)$/{
15758 s//\1/
15759 q
15760 }
15761 /^X\(\/\).*/{
15762 s//\1/
15763 q
15764 }
15765 s/.*/./; q'`
15766 test -d "$as_dir" && break
15767 done
15768 test -z "$as_dirs" || eval "mkdir $as_dirs"
15769 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15770
15771
15772} # as_fn_mkdir_p
15773if mkdir -p . 2>/dev/null; then
15774 as_mkdir_p='mkdir -p "$as_dir"'
15775else
15776 test -d ./-p && rmdir ./-p
15777 as_mkdir_p=false
15778fi
15779
15780if test -x / >/dev/null 2>&1; then
15781 as_test_x='test -x'
15782else
15783 if ls -dL / >/dev/null 2>&1; then
15784 as_ls_L_option=L
15785 else
15786 as_ls_L_option=
15787 fi
15788 as_test_x='
15789 eval sh -c '\''
15790 if test -d "$1"; then
15791 test -d "$1/.";
15792 else
15793 case $1 in #(
15794 -*)set "./$1";;
15795 esac;
15796 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15797 ???[sx]*):;;*)false;;esac;fi
15798 '\'' sh
15799 '
15800fi
15801as_executable_p=$as_test_x
15802
15803# Sed expression to map a string onto a valid CPP name.
15804as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15805
15806# Sed expression to map a string onto a valid variable name.
15807as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15808
15809
15810exec 6>&1
15811## ----------------------------------- ##
15812## Main body of $CONFIG_STATUS script. ##
15813## ----------------------------------- ##
15814_ASEOF
15815test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15816
15817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15818# Save the log message, to keep $0 and so on meaningful, and to
15819# report actual input values of CONFIG_FILES etc. instead of their
15820# values after options handling.
15821ac_log="
15822This file was extended by GNU Atomic Library $as_me 1.0, which was
15823generated by GNU Autoconf 2.64. Invocation command line was
15824
15825 CONFIG_FILES = $CONFIG_FILES
15826 CONFIG_HEADERS = $CONFIG_HEADERS
15827 CONFIG_LINKS = $CONFIG_LINKS
15828 CONFIG_COMMANDS = $CONFIG_COMMANDS
15829 $ $0 $@
15830
15831on `(hostname || uname -n) 2>/dev/null | sed 1q`
15832"
15833
15834_ACEOF
15835
15836case $ac_config_files in *"
15837"*) set x $ac_config_files; shift; ac_config_files=$*;;
15838esac
15839
15840case $ac_config_headers in *"
15841"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15842esac
15843
15844
15845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15846# Files that config.status was made for.
15847config_files="$ac_config_files"
15848config_headers="$ac_config_headers"
15849config_commands="$ac_config_commands"
15850
15851_ACEOF
15852
15853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15854ac_cs_usage="\
15855\`$as_me' instantiates files and other configuration actions
15856from templates according to the current configuration. Unless the files
15857and actions are specified as TAGs, all are instantiated by default.
15858
15859Usage: $0 [OPTION]... [TAG]...
15860
15861 -h, --help print this help, then exit
15862 -V, --version print version number and configuration settings, then exit
15863 -q, --quiet, --silent
15864 do not print progress messages
15865 -d, --debug don't remove temporary files
15866 --recheck update $as_me by reconfiguring in the same conditions
15867 --file=FILE[:TEMPLATE]
15868 instantiate the configuration file FILE
15869 --header=FILE[:TEMPLATE]
15870 instantiate the configuration header FILE
15871
15872Configuration files:
15873$config_files
15874
15875Configuration headers:
15876$config_headers
15877
15878Configuration commands:
15879$config_commands
15880
15881Report bugs to the package provider.
15882GNU Atomic Library home page: <http://www.gnu.org/software/libatomic/>.
15883General help using GNU software: <http://www.gnu.org/gethelp/>."
15884
15885_ACEOF
15886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15887ac_cs_version="\\
15888GNU Atomic Library config.status 1.0
15889configured by $0, generated by GNU Autoconf 2.64,
15890 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15891
15892Copyright (C) 2009 Free Software Foundation, Inc.
15893This config.status script is free software; the Free Software Foundation
15894gives unlimited permission to copy, distribute and modify it."
15895
15896ac_pwd='$ac_pwd'
15897srcdir='$srcdir'
15898INSTALL='$INSTALL'
15899MKDIR_P='$MKDIR_P'
15900AWK='$AWK'
15901test -n "\$AWK" || AWK=awk
15902_ACEOF
15903
15904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15905# The default lists apply if the user does not specify any file.
15906ac_need_defaults=:
15907while test $# != 0
15908do
15909 case $1 in
15910 --*=*)
15911 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15912 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15913 ac_shift=:
15914 ;;
15915 *)
15916 ac_option=$1
15917 ac_optarg=$2
15918 ac_shift=shift
15919 ;;
15920 esac
15921
15922 case $ac_option in
15923 # Handling of the options.
15924 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15925 ac_cs_recheck=: ;;
15926 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15927 $as_echo "$ac_cs_version"; exit ;;
15928 --debug | --debu | --deb | --de | --d | -d )
15929 debug=: ;;
15930 --file | --fil | --fi | --f )
15931 $ac_shift
15932 case $ac_optarg in
15933 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15934 esac
15935 as_fn_append CONFIG_FILES " '$ac_optarg'"
15936 ac_need_defaults=false;;
15937 --header | --heade | --head | --hea )
15938 $ac_shift
15939 case $ac_optarg in
15940 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15941 esac
15942 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15943 ac_need_defaults=false;;
15944 --he | --h)
15945 # Conflict between --help and --header
15946 as_fn_error "ambiguous option: \`$1'
15947Try \`$0 --help' for more information.";;
15948 --help | --hel | -h )
15949 $as_echo "$ac_cs_usage"; exit ;;
15950 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15951 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15952 ac_cs_silent=: ;;
15953
15954 # This is an error.
15955 -*) as_fn_error "unrecognized option: \`$1'
15956Try \`$0 --help' for more information." ;;
15957
15958 *) as_fn_append ac_config_targets " $1"
15959 ac_need_defaults=false ;;
15960
15961 esac
15962 shift
15963done
15964
15965ac_configure_extra_args=
15966
15967if $ac_cs_silent; then
15968 exec 6>/dev/null
15969 ac_configure_extra_args="$ac_configure_extra_args --silent"
15970fi
15971
15972_ACEOF
15973cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15974if \$ac_cs_recheck; then
15975 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15976 shift
15977 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15978 CONFIG_SHELL='$SHELL'
15979 export CONFIG_SHELL
15980 exec "\$@"
15981fi
15982
15983_ACEOF
15984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15985exec 5>>config.log
15986{
15987 echo
15988 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15989## Running $as_me. ##
15990_ASBOX
15991 $as_echo "$ac_log"
15992} >&5
15993
15994_ACEOF
15995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15996#
15997# INIT-COMMANDS
15998#
15999
16000srcdir="$srcdir"
16001host="$host"
16002target="$target"
16003with_multisubdir="$with_multisubdir"
16004with_multisrctop="$with_multisrctop"
16005with_target_subdir="$with_target_subdir"
16006ac_configure_args="${multilib_arg} ${ac_configure_args}"
16007multi_basedir="$multi_basedir"
16008CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16009CC="$CC"
16010CXX="$CXX"
16011GFORTRAN="$GFORTRAN"
16012GCJ="$GCJ"
16013AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16014
16015
16016# The HP-UX ksh and POSIX shell print the target directory to stdout
16017# if CDPATH is set.
16018(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16019
16020sed_quote_subst='$sed_quote_subst'
16021double_quote_subst='$double_quote_subst'
16022delay_variable_subst='$delay_variable_subst'
16023macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16024macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16025enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16026enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16027pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16028enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16029SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16030ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16031host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16032host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16033host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16034build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16035build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16036build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16037SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16038Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16039GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16040EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16041FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16042LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16043NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16044LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16045max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16046ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16047exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16048lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16049lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16050lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16051reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16052reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16053OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16054deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16055file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16056AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16057AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16058STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16059RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16060old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16061old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16062old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16063lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16064CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16065CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16066compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16067GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16068lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16069lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16070lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16071lt_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"`'
16072objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16073MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16074lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16075lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16076lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16077lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16078lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16079need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16080DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16081NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16082LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16083OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16084OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16085libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16086shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16087extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16088archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16089enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16090export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16091whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16092compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16093old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16094old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16095archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16096archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16097module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16098module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16099with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16100allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16101no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16102hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16103hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16104hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16105hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16106hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16107hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16108hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16109hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16110inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16111link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16112fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16113always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16114export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16115exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16116include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16117prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16118file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16119variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16120need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16121need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16122version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16123runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16124shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16125shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16126libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16127library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16128soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16129install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16130postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16131postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16132finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16133finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16134hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16135sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16136sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16137hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16138enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16139enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16140enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16141old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16142striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16143
16144LTCC='$LTCC'
16145LTCFLAGS='$LTCFLAGS'
16146compiler='$compiler_DEFAULT'
16147
16148# A function that is used when there is no print builtin or printf.
16149func_fallback_echo ()
16150{
16151 eval 'cat <<_LTECHO_EOF
16152\$1
16153_LTECHO_EOF'
16154}
16155
16156# Quote evaled strings.
16157for var in SHELL \
16158ECHO \
16159SED \
16160GREP \
16161EGREP \
16162FGREP \
16163LD \
16164NM \
16165LN_S \
16166lt_SP2NL \
16167lt_NL2SP \
16168reload_flag \
16169OBJDUMP \
16170deplibs_check_method \
16171file_magic_cmd \
16172AR \
16173AR_FLAGS \
16174STRIP \
16175RANLIB \
16176CC \
16177CFLAGS \
16178compiler \
16179lt_cv_sys_global_symbol_pipe \
16180lt_cv_sys_global_symbol_to_cdecl \
16181lt_cv_sys_global_symbol_to_c_name_address \
16182lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16183lt_prog_compiler_no_builtin_flag \
16184lt_prog_compiler_wl \
16185lt_prog_compiler_pic \
16186lt_prog_compiler_static \
16187lt_cv_prog_compiler_c_o \
16188need_locks \
16189DSYMUTIL \
16190NMEDIT \
16191LIPO \
16192OTOOL \
16193OTOOL64 \
16194shrext_cmds \
16195export_dynamic_flag_spec \
16196whole_archive_flag_spec \
16197compiler_needs_object \
16198with_gnu_ld \
16199allow_undefined_flag \
16200no_undefined_flag \
16201hardcode_libdir_flag_spec \
16202hardcode_libdir_flag_spec_ld \
16203hardcode_libdir_separator \
16204fix_srcfile_path \
16205exclude_expsyms \
16206include_expsyms \
16207file_list_spec \
16208variables_saved_for_relink \
16209libname_spec \
16210library_names_spec \
16211soname_spec \
16212install_override_mode \
16213finish_eval \
16214old_striplib \
16215striplib; do
16216 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16217 *[\\\\\\\`\\"\\\$]*)
16218 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16219 ;;
16220 *)
16221 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16222 ;;
16223 esac
16224done
16225
16226# Double-quote double-evaled strings.
16227for var in reload_cmds \
16228old_postinstall_cmds \
16229old_postuninstall_cmds \
16230old_archive_cmds \
16231extract_expsyms_cmds \
16232old_archive_from_new_cmds \
16233old_archive_from_expsyms_cmds \
16234archive_cmds \
16235archive_expsym_cmds \
16236module_cmds \
16237module_expsym_cmds \
16238export_symbols_cmds \
16239prelink_cmds \
16240postinstall_cmds \
16241postuninstall_cmds \
16242finish_cmds \
16243sys_lib_search_path_spec \
16244sys_lib_dlsearch_path_spec; do
16245 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16246 *[\\\\\\\`\\"\\\$]*)
16247 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16248 ;;
16249 *)
16250 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16251 ;;
16252 esac
16253done
16254
16255ac_aux_dir='$ac_aux_dir'
16256xsi_shell='$xsi_shell'
16257lt_shell_append='$lt_shell_append'
16258
16259# See if we are running on zsh, and set the options which allow our
16260# commands through without removal of \ escapes INIT.
16261if test -n "\${ZSH_VERSION+set}" ; then
16262 setopt NO_GLOB_SUBST
16263fi
16264
16265
16266 PACKAGE='$PACKAGE'
16267 VERSION='$VERSION'
16268 TIMESTAMP='$TIMESTAMP'
16269 RM='$RM'
16270 ofile='$ofile'
16271
16272
16273
16274
16275GCC="$GCC"
16276CC="$CC"
16277acx_cv_header_stdint="$acx_cv_header_stdint"
16278acx_cv_type_int8_t="$acx_cv_type_int8_t"
16279acx_cv_type_int16_t="$acx_cv_type_int16_t"
16280acx_cv_type_int32_t="$acx_cv_type_int32_t"
16281acx_cv_type_int64_t="$acx_cv_type_int64_t"
16282acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16283ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16284ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16285ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16286ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16287ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16288ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16289ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16290ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16291
16292
16293_ACEOF
16294
16295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16296
16297# Handling of arguments.
16298for ac_config_target in $ac_config_targets
16299do
16300 case $ac_config_target in
16301 "auto-config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-config.h" ;;
16302 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16303 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16304 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16305 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
16306 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16307 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16308 "testsuite/atomicconfig.exp") CONFIG_FILES="$CONFIG_FILES testsuite/atomicconfig.exp" ;;
16309
16310 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16311 esac
16312done
16313
16314
16315# If the user did not use the arguments to specify the items to instantiate,
16316# then the envvar interface is used. Set only those that are not.
16317# We use the long form for the default assignment because of an extremely
16318# bizarre bug on SunOS 4.1.3.
16319if $ac_need_defaults; then
16320 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16321 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16322 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16323fi
16324
16325# Have a temporary directory for convenience. Make it in the build tree
16326# simply because there is no reason against having it here, and in addition,
16327# creating and moving files from /tmp can sometimes cause problems.
16328# Hook for its removal unless debugging.
16329# Note that there is a small window in which the directory will not be cleaned:
16330# after its creation but before its name has been assigned to `$tmp'.
16331$debug ||
16332{
16333 tmp=
16334 trap 'exit_status=$?
16335 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16336' 0
16337 trap 'as_fn_exit 1' 1 2 13 15
16338}
16339# Create a (secure) tmp directory for tmp files.
16340
16341{
16342 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16343 test -n "$tmp" && test -d "$tmp"
16344} ||
16345{
16346 tmp=./conf$$-$RANDOM
16347 (umask 077 && mkdir "$tmp")
16348} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16349
16350# Set up the scripts for CONFIG_FILES section.
16351# No need to generate them if there are no CONFIG_FILES.
16352# This happens for instance with `./config.status config.h'.
16353if test -n "$CONFIG_FILES"; then
16354
16355
16356ac_cr=`echo X | tr X '\015'`
16357# On cygwin, bash can eat \r inside `` if the user requested igncr.
16358# But we know of no other shell where ac_cr would be empty at this
16359# point, so we can use a bashism as a fallback.
16360if test "x$ac_cr" = x; then
16361 eval ac_cr=\$\'\\r\'
16362fi
16363ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16364if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16365 ac_cs_awk_cr='\r'
16366else
16367 ac_cs_awk_cr=$ac_cr
16368fi
16369
16370echo 'BEGIN {' >"$tmp/subs1.awk" &&
16371_ACEOF
16372
16373
16374{
16375 echo "cat >conf$$subs.awk <<_ACEOF" &&
16376 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16377 echo "_ACEOF"
16378} >conf$$subs.sh ||
16379 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16380ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16381ac_delim='%!_!# '
16382for ac_last_try in false false false false false :; do
16383 . ./conf$$subs.sh ||
16384 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16385
16386 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16387 if test $ac_delim_n = $ac_delim_num; then
16388 break
16389 elif $ac_last_try; then
16390 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16391 else
16392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16393 fi
16394done
16395rm -f conf$$subs.sh
16396
16397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16398cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16399_ACEOF
16400sed -n '
16401h
16402s/^/S["/; s/!.*/"]=/
16403p
16404g
16405s/^[^!]*!//
16406:repl
16407t repl
16408s/'"$ac_delim"'$//
16409t delim
16410:nl
16411h
16412s/\(.\{148\}\).*/\1/
16413t more1
16414s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16415p
16416n
16417b repl
16418:more1
16419s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16420p
16421g
16422s/.\{148\}//
16423t nl
16424:delim
16425h
16426s/\(.\{148\}\).*/\1/
16427t more2
16428s/["\\]/\\&/g; s/^/"/; s/$/"/
16429p
16430b
16431:more2
16432s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16433p
16434g
16435s/.\{148\}//
16436t delim
16437' <conf$$subs.awk | sed '
16438/^[^""]/{
16439 N
16440 s/\n//
16441}
16442' >>$CONFIG_STATUS || ac_write_fail=1
16443rm -f conf$$subs.awk
16444cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16445_ACAWK
16446cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16447 for (key in S) S_is_set[key] = 1
16448 FS = ""
16449
16450}
16451{
16452 line = $ 0
16453 nfields = split(line, field, "@")
16454 substed = 0
16455 len = length(field[1])
16456 for (i = 2; i < nfields; i++) {
16457 key = field[i]
16458 keylen = length(key)
16459 if (S_is_set[key]) {
16460 value = S[key]
16461 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16462 len += length(value) + length(field[++i])
16463 substed = 1
16464 } else
16465 len += 1 + keylen
16466 }
16467
16468 print line
16469}
16470
16471_ACAWK
16472_ACEOF
16473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16474if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16475 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16476else
16477 cat
16478fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16479 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16480_ACEOF
16481
16482# VPATH may cause trouble with some makes, so we remove $(srcdir),
16483# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16484# trailing colons and then remove the whole line if VPATH becomes empty
16485# (actually we leave an empty line to preserve line numbers).
16486if test "x$srcdir" = x.; then
16487 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16488s/:*\$(srcdir):*/:/
16489s/:*\${srcdir}:*/:/
16490s/:*@srcdir@:*/:/
16491s/^\([^=]*=[ ]*\):*/\1/
16492s/:*$//
16493s/^[^=]*=[ ]*$//
16494}'
16495fi
16496
16497cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16498fi # test -n "$CONFIG_FILES"
16499
16500# Set up the scripts for CONFIG_HEADERS section.
16501# No need to generate them if there are no CONFIG_HEADERS.
16502# This happens for instance with `./config.status Makefile'.
16503if test -n "$CONFIG_HEADERS"; then
16504cat >"$tmp/defines.awk" <<\_ACAWK ||
16505BEGIN {
16506_ACEOF
16507
16508# Transform confdefs.h into an awk script `defines.awk', embedded as
16509# here-document in config.status, that substitutes the proper values into
16510# config.h.in to produce config.h.
16511
16512# Create a delimiter string that does not exist in confdefs.h, to ease
16513# handling of long lines.
16514ac_delim='%!_!# '
16515for ac_last_try in false false :; do
16516 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16517 if test -z "$ac_t"; then
16518 break
16519 elif $ac_last_try; then
16520 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16521 else
16522 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16523 fi
16524done
16525
16526# For the awk script, D is an array of macro values keyed by name,
16527# likewise P contains macro parameters if any. Preserve backslash
16528# newline sequences.
16529
16530ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16531sed -n '
16532s/.\{148\}/&'"$ac_delim"'/g
16533t rset
16534:rset
16535s/^[ ]*#[ ]*define[ ][ ]*/ /
16536t def
16537d
16538:def
16539s/\\$//
16540t bsnl
16541s/["\\]/\\&/g
16542s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16543D["\1"]=" \3"/p
16544s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16545d
16546:bsnl
16547s/["\\]/\\&/g
16548s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16549D["\1"]=" \3\\\\\\n"\\/p
16550t cont
16551s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16552t cont
16553d
16554:cont
16555n
16556s/.\{148\}/&'"$ac_delim"'/g
16557t clear
16558:clear
16559s/\\$//
16560t bsnlc
16561s/["\\]/\\&/g; s/^/"/; s/$/"/p
16562d
16563:bsnlc
16564s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16565b cont
16566' <confdefs.h | sed '
16567s/'"$ac_delim"'/"\\\
16568"/g' >>$CONFIG_STATUS || ac_write_fail=1
16569
16570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16571 for (key in D) D_is_set[key] = 1
16572 FS = ""
16573}
16574/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16575 line = \$ 0
16576 split(line, arg, " ")
16577 if (arg[1] == "#") {
16578 defundef = arg[2]
16579 mac1 = arg[3]
16580 } else {
16581 defundef = substr(arg[1], 2)
16582 mac1 = arg[2]
16583 }
16584 split(mac1, mac2, "(") #)
16585 macro = mac2[1]
16586 prefix = substr(line, 1, index(line, defundef) - 1)
16587 if (D_is_set[macro]) {
16588 # Preserve the white space surrounding the "#".
16589 print prefix "define", macro P[macro] D[macro]
16590 next
16591 } else {
16592 # Replace #undef with comments. This is necessary, for example,
16593 # in the case of _POSIX_SOURCE, which is predefined and required
16594 # on some systems where configure will not decide to define it.
16595 if (defundef == "undef") {
16596 print "/*", prefix defundef, macro, "*/"
16597 next
16598 }
16599 }
16600}
16601{ print }
16602_ACAWK
16603_ACEOF
16604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16605 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16606fi # test -n "$CONFIG_HEADERS"
16607
16608
16609eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16610shift
16611for ac_tag
16612do
16613 case $ac_tag in
16614 :[FHLC]) ac_mode=$ac_tag; continue;;
16615 esac
16616 case $ac_mode$ac_tag in
16617 :[FHL]*:*);;
16618 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16619 :[FH]-) ac_tag=-:-;;
16620 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16621 esac
16622 ac_save_IFS=$IFS
16623 IFS=:
16624 set x $ac_tag
16625 IFS=$ac_save_IFS
16626 shift
16627 ac_file=$1
16628 shift
16629
16630 case $ac_mode in
16631 :L) ac_source=$1;;
16632 :[FH])
16633 ac_file_inputs=
16634 for ac_f
16635 do
16636 case $ac_f in
16637 -) ac_f="$tmp/stdin";;
16638 *) # Look for the file first in the build tree, then in the source tree
16639 # (if the path is not absolute). The absolute path cannot be DOS-style,
16640 # because $ac_f cannot contain `:'.
16641 test -f "$ac_f" ||
16642 case $ac_f in
16643 [\\/$]*) false;;
16644 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16645 esac ||
16646 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16647 esac
16648 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16649 as_fn_append ac_file_inputs " '$ac_f'"
16650 done
16651
16652 # Let's still pretend it is `configure' which instantiates (i.e., don't
16653 # use $as_me), people would be surprised to read:
16654 # /* config.h. Generated by config.status. */
16655 configure_input='Generated from '`
16656 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16657 `' by configure.'
16658 if test x"$ac_file" != x-; then
16659 configure_input="$ac_file. $configure_input"
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16661$as_echo "$as_me: creating $ac_file" >&6;}
16662 fi
16663 # Neutralize special characters interpreted by sed in replacement strings.
16664 case $configure_input in #(
16665 *\&* | *\|* | *\\* )
16666 ac_sed_conf_input=`$as_echo "$configure_input" |
16667 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16668 *) ac_sed_conf_input=$configure_input;;
16669 esac
16670
16671 case $ac_tag in
16672 *:-:* | *:-) cat >"$tmp/stdin" \
16673 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16674 esac
16675 ;;
16676 esac
16677
16678 ac_dir=`$as_dirname -- "$ac_file" ||
16679$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16680 X"$ac_file" : 'X\(//\)[^/]' \| \
16681 X"$ac_file" : 'X\(//\)$' \| \
16682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16683$as_echo X"$ac_file" |
16684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16685 s//\1/
16686 q
16687 }
16688 /^X\(\/\/\)[^/].*/{
16689 s//\1/
16690 q
16691 }
16692 /^X\(\/\/\)$/{
16693 s//\1/
16694 q
16695 }
16696 /^X\(\/\).*/{
16697 s//\1/
16698 q
16699 }
16700 s/.*/./; q'`
16701 as_dir="$ac_dir"; as_fn_mkdir_p
16702 ac_builddir=.
16703
16704case "$ac_dir" in
16705.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16706*)
16707 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16708 # A ".." for each directory in $ac_dir_suffix.
16709 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16710 case $ac_top_builddir_sub in
16711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16713 esac ;;
16714esac
16715ac_abs_top_builddir=$ac_pwd
16716ac_abs_builddir=$ac_pwd$ac_dir_suffix
16717# for backward compatibility:
16718ac_top_builddir=$ac_top_build_prefix
16719
16720case $srcdir in
16721 .) # We are building in place.
16722 ac_srcdir=.
16723 ac_top_srcdir=$ac_top_builddir_sub
16724 ac_abs_top_srcdir=$ac_pwd ;;
16725 [\\/]* | ?:[\\/]* ) # Absolute name.
16726 ac_srcdir=$srcdir$ac_dir_suffix;
16727 ac_top_srcdir=$srcdir
16728 ac_abs_top_srcdir=$srcdir ;;
16729 *) # Relative name.
16730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16731 ac_top_srcdir=$ac_top_build_prefix$srcdir
16732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16733esac
16734ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16735
16736
16737 case $ac_mode in
16738 :F)
16739 #
16740 # CONFIG_FILE
16741 #
16742
16743 case $INSTALL in
16744 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16745 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16746 esac
16747 ac_MKDIR_P=$MKDIR_P
16748 case $MKDIR_P in
16749 [\\/$]* | ?:[\\/]* ) ;;
16750 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16751 esac
16752_ACEOF
16753
16754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16755# If the template does not know about datarootdir, expand it.
16756# FIXME: This hack should be removed a few years after 2.60.
16757ac_datarootdir_hack=; ac_datarootdir_seen=
16758ac_sed_dataroot='
16759/datarootdir/ {
16760 p
16761 q
16762}
16763/@datadir@/p
16764/@docdir@/p
16765/@infodir@/p
16766/@localedir@/p
16767/@mandir@/p'
16768case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16769*datarootdir*) ac_datarootdir_seen=yes;;
16770*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16772$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16773_ACEOF
16774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16775 ac_datarootdir_hack='
16776 s&@datadir@&$datadir&g
16777 s&@docdir@&$docdir&g
16778 s&@infodir@&$infodir&g
16779 s&@localedir@&$localedir&g
16780 s&@mandir@&$mandir&g
16781 s&\\\${datarootdir}&$datarootdir&g' ;;
16782esac
16783_ACEOF
16784
16785# Neutralize VPATH when `$srcdir' = `.'.
16786# Shell code in configure.ac might set extrasub.
16787# FIXME: do we really want to maintain this feature?
16788cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16789ac_sed_extra="$ac_vpsub
16790$extrasub
16791_ACEOF
16792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16793:t
16794/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16795s|@configure_input@|$ac_sed_conf_input|;t t
16796s&@top_builddir@&$ac_top_builddir_sub&;t t
16797s&@top_build_prefix@&$ac_top_build_prefix&;t t
16798s&@srcdir@&$ac_srcdir&;t t
16799s&@abs_srcdir@&$ac_abs_srcdir&;t t
16800s&@top_srcdir@&$ac_top_srcdir&;t t
16801s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16802s&@builddir@&$ac_builddir&;t t
16803s&@abs_builddir@&$ac_abs_builddir&;t t
16804s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16805s&@INSTALL@&$ac_INSTALL&;t t
16806s&@MKDIR_P@&$ac_MKDIR_P&;t t
16807$ac_datarootdir_hack
16808"
16809eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16810 || as_fn_error "could not create $ac_file" "$LINENO" 5
16811
16812test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16813 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16814 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16816which seems to be undefined. Please make sure it is defined." >&5
16817$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16818which seems to be undefined. Please make sure it is defined." >&2;}
16819
16820 rm -f "$tmp/stdin"
16821 case $ac_file in
16822 -) cat "$tmp/out" && rm -f "$tmp/out";;
16823 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16824 esac \
16825 || as_fn_error "could not create $ac_file" "$LINENO" 5
16826 ;;
16827 :H)
16828 #
16829 # CONFIG_HEADER
16830 #
16831 if test x"$ac_file" != x-; then
16832 {
16833 $as_echo "/* $configure_input */" \
16834 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16835 } >"$tmp/config.h" \
16836 || as_fn_error "could not create $ac_file" "$LINENO" 5
16837 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16839$as_echo "$as_me: $ac_file is unchanged" >&6;}
16840 else
16841 rm -f "$ac_file"
16842 mv "$tmp/config.h" "$ac_file" \
16843 || as_fn_error "could not create $ac_file" "$LINENO" 5
16844 fi
16845 else
16846 $as_echo "/* $configure_input */" \
16847 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16848 || as_fn_error "could not create -" "$LINENO" 5
16849 fi
16850# Compute "$ac_file"'s index in $config_headers.
16851_am_arg="$ac_file"
16852_am_stamp_count=1
16853for _am_header in $config_headers :; do
16854 case $_am_header in
16855 $_am_arg | $_am_arg:* )
16856 break ;;
16857 * )
16858 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16859 esac
16860done
16861echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16862$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16863 X"$_am_arg" : 'X\(//\)[^/]' \| \
16864 X"$_am_arg" : 'X\(//\)$' \| \
16865 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16866$as_echo X"$_am_arg" |
16867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16868 s//\1/
16869 q
16870 }
16871 /^X\(\/\/\)[^/].*/{
16872 s//\1/
16873 q
16874 }
16875 /^X\(\/\/\)$/{
16876 s//\1/
16877 q
16878 }
16879 /^X\(\/\).*/{
16880 s//\1/
16881 q
16882 }
16883 s/.*/./; q'`/stamp-h$_am_stamp_count
16884 ;;
16885
16886 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16887$as_echo "$as_me: executing $ac_file commands" >&6;}
16888 ;;
16889 esac
16890
16891
16892 case $ac_file$ac_mode in
16893 "default-1":C)
16894# Only add multilib support code if we just rebuilt the top-level
16895# Makefile.
16896case " $CONFIG_FILES " in
16897 *" Makefile "*)
16898 ac_file=Makefile . ${multi_basedir}/config-ml.in
16899 ;;
16900esac ;;
16901 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16902 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16903 # are listed without --file. Let's play safe and only enable the eval
16904 # if we detect the quoting.
16905 case $CONFIG_FILES in
16906 *\'*) eval set x "$CONFIG_FILES" ;;
16907 *) set x $CONFIG_FILES ;;
16908 esac
16909 shift
16910 for mf
16911 do
16912 # Strip MF so we end up with the name of the file.
16913 mf=`echo "$mf" | sed -e 's/:.*$//'`
16914 # Check whether this is an Automake generated Makefile or not.
16915 # We used to match only the files named `Makefile.in', but
16916 # some people rename them; so instead we look at the file content.
16917 # Grep'ing the first line is not enough: some people post-process
16918 # each Makefile.in and add a new line on top of each file to say so.
16919 # Grep'ing the whole file is not good either: AIX grep has a line
16920 # limit of 2048, but all sed's we know have understand at least 4000.
16921 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16922 dirpart=`$as_dirname -- "$mf" ||
16923$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16924 X"$mf" : 'X\(//\)[^/]' \| \
16925 X"$mf" : 'X\(//\)$' \| \
16926 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16927$as_echo X"$mf" |
16928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16929 s//\1/
16930 q
16931 }
16932 /^X\(\/\/\)[^/].*/{
16933 s//\1/
16934 q
16935 }
16936 /^X\(\/\/\)$/{
16937 s//\1/
16938 q
16939 }
16940 /^X\(\/\).*/{
16941 s//\1/
16942 q
16943 }
16944 s/.*/./; q'`
16945 else
16946 continue
16947 fi
16948 # Extract the definition of DEPDIR, am__include, and am__quote
16949 # from the Makefile without running `make'.
16950 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16951 test -z "$DEPDIR" && continue
16952 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16953 test -z "am__include" && continue
16954 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16955 # When using ansi2knr, U may be empty or an underscore; expand it
16956 U=`sed -n 's/^U = //p' < "$mf"`
16957 # Find all dependency output files, they are included files with
16958 # $(DEPDIR) in their names. We invoke sed twice because it is the
16959 # simplest approach to changing $(DEPDIR) to its actual value in the
16960 # expansion.
16961 for file in `sed -n "
16962 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16963 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16964 # Make sure the directory exists.
16965 test -f "$dirpart/$file" && continue
16966 fdir=`$as_dirname -- "$file" ||
16967$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16968 X"$file" : 'X\(//\)[^/]' \| \
16969 X"$file" : 'X\(//\)$' \| \
16970 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16971$as_echo X"$file" |
16972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16973 s//\1/
16974 q
16975 }
16976 /^X\(\/\/\)[^/].*/{
16977 s//\1/
16978 q
16979 }
16980 /^X\(\/\/\)$/{
16981 s//\1/
16982 q
16983 }
16984 /^X\(\/\).*/{
16985 s//\1/
16986 q
16987 }
16988 s/.*/./; q'`
16989 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16990 # echo "creating $dirpart/$file"
16991 echo '# dummy' > "$dirpart/$file"
16992 done
16993 done
16994}
16995 ;;
16996 "libtool":C)
16997
16998 # See if we are running on zsh, and set the options which allow our
16999 # commands through without removal of \ escapes.
17000 if test -n "${ZSH_VERSION+set}" ; then
17001 setopt NO_GLOB_SUBST
17002 fi
17003
17004 cfgfile="${ofile}T"
17005 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17006 $RM "$cfgfile"
17007
17008 cat <<_LT_EOF >> "$cfgfile"
17009#! $SHELL
17010
17011# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17012# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17013# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17014# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17015#
17016# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17017# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17018# Written by Gordon Matzigkeit, 1996
17019#
17020# This file is part of GNU Libtool.
17021#
17022# GNU Libtool is free software; you can redistribute it and/or
17023# modify it under the terms of the GNU General Public License as
17024# published by the Free Software Foundation; either version 2 of
17025# the License, or (at your option) any later version.
17026#
17027# As a special exception to the GNU General Public License,
17028# if you distribute this file as part of a program or library that
17029# is built using GNU Libtool, you may include this file under the
17030# same distribution terms that you use for the rest of that program.
17031#
17032# GNU Libtool is distributed in the hope that it will be useful,
17033# but WITHOUT ANY WARRANTY; without even the implied warranty of
17034# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17035# GNU General Public License for more details.
17036#
17037# You should have received a copy of the GNU General Public License
17038# along with GNU Libtool; see the file COPYING. If not, a copy
17039# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17040# obtained by writing to the Free Software Foundation, Inc.,
17041# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17042
17043
17044# The names of the tagged configurations supported by this script.
17045available_tags=""
17046
17047# ### BEGIN LIBTOOL CONFIG
17048
17049# Which release of libtool.m4 was used?
17050macro_version=$macro_version
17051macro_revision=$macro_revision
17052
17053# Whether or not to build shared libraries.
17054build_libtool_libs=$enable_shared
17055
17056# Whether or not to build static libraries.
17057build_old_libs=$enable_static
17058
17059# What type of objects to build.
17060pic_mode=$pic_mode
17061
17062# Whether or not to optimize for fast installation.
17063fast_install=$enable_fast_install
17064
17065# Shell to use when invoking shell scripts.
17066SHELL=$lt_SHELL
17067
17068# An echo program that protects backslashes.
17069ECHO=$lt_ECHO
17070
17071# The host system.
17072host_alias=$host_alias
17073host=$host
17074host_os=$host_os
17075
17076# The build system.
17077build_alias=$build_alias
17078build=$build
17079build_os=$build_os
17080
17081# A sed program that does not truncate output.
17082SED=$lt_SED
17083
17084# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17085Xsed="\$SED -e 1s/^X//"
17086
17087# A grep program that handles long lines.
17088GREP=$lt_GREP
17089
17090# An ERE matcher.
17091EGREP=$lt_EGREP
17092
17093# A literal string matcher.
17094FGREP=$lt_FGREP
17095
17096# A BSD- or MS-compatible name lister.
17097NM=$lt_NM
17098
17099# Whether we need soft or hard links.
17100LN_S=$lt_LN_S
17101
17102# What is the maximum length of a command?
17103max_cmd_len=$max_cmd_len
17104
17105# Object file suffix (normally "o").
17106objext=$ac_objext
17107
17108# Executable file suffix (normally "").
17109exeext=$exeext
17110
17111# whether the shell understands "unset".
17112lt_unset=$lt_unset
17113
17114# turn spaces into newlines.
17115SP2NL=$lt_lt_SP2NL
17116
17117# turn newlines into spaces.
17118NL2SP=$lt_lt_NL2SP
17119
17120# An object symbol dumper.
17121OBJDUMP=$lt_OBJDUMP
17122
17123# Method to check whether dependent libraries are shared objects.
17124deplibs_check_method=$lt_deplibs_check_method
17125
17126# Command to use when deplibs_check_method == "file_magic".
17127file_magic_cmd=$lt_file_magic_cmd
17128
17129# The archiver.
17130AR=$lt_AR
17131AR_FLAGS=$lt_AR_FLAGS
17132
17133# A symbol stripping program.
17134STRIP=$lt_STRIP
17135
17136# Commands used to install an old-style archive.
17137RANLIB=$lt_RANLIB
17138old_postinstall_cmds=$lt_old_postinstall_cmds
17139old_postuninstall_cmds=$lt_old_postuninstall_cmds
17140
17141# Whether to use a lock for old archive extraction.
17142lock_old_archive_extraction=$lock_old_archive_extraction
17143
17144# A C compiler.
17145LTCC=$lt_CC
17146
17147# LTCC compiler flags.
17148LTCFLAGS=$lt_CFLAGS
17149
17150# Take the output of nm and produce a listing of raw symbols and C names.
17151global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17152
17153# Transform the output of nm in a proper C declaration.
17154global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17155
17156# Transform the output of nm in a C name address pair.
17157global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17158
17159# Transform the output of nm in a C name address pair when lib prefix is needed.
17160global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17161
17162# The name of the directory that contains temporary libtool files.
17163objdir=$objdir
17164
17165# Used to examine libraries when file_magic_cmd begins with "file".
17166MAGIC_CMD=$MAGIC_CMD
17167
17168# Must we lock files when doing compilation?
17169need_locks=$lt_need_locks
17170
17171# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17172DSYMUTIL=$lt_DSYMUTIL
17173
17174# Tool to change global to local symbols on Mac OS X.
17175NMEDIT=$lt_NMEDIT
17176
17177# Tool to manipulate fat objects and archives on Mac OS X.
17178LIPO=$lt_LIPO
17179
17180# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17181OTOOL=$lt_OTOOL
17182
17183# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17184OTOOL64=$lt_OTOOL64
17185
17186# Old archive suffix (normally "a").
17187libext=$libext
17188
17189# Shared library suffix (normally ".so").
17190shrext_cmds=$lt_shrext_cmds
17191
17192# The commands to extract the exported symbol list from a shared archive.
17193extract_expsyms_cmds=$lt_extract_expsyms_cmds
17194
17195# Variables whose values should be saved in libtool wrapper scripts and
17196# restored at link time.
17197variables_saved_for_relink=$lt_variables_saved_for_relink
17198
17199# Do we need the "lib" prefix for modules?
17200need_lib_prefix=$need_lib_prefix
17201
17202# Do we need a version for libraries?
17203need_version=$need_version
17204
17205# Library versioning type.
17206version_type=$version_type
17207
17208# Shared library runtime path variable.
17209runpath_var=$runpath_var
17210
17211# Shared library path variable.
17212shlibpath_var=$shlibpath_var
17213
17214# Is shlibpath searched before the hard-coded library search path?
17215shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17216
17217# Format of library name prefix.
17218libname_spec=$lt_libname_spec
17219
17220# List of archive names. First name is the real one, the rest are links.
17221# The last name is the one that the linker finds with -lNAME
17222library_names_spec=$lt_library_names_spec
17223
17224# The coded name of the library, if different from the real name.
17225soname_spec=$lt_soname_spec
17226
17227# Permission mode override for installation of shared libraries.
17228install_override_mode=$lt_install_override_mode
17229
17230# Command to use after installation of a shared archive.
17231postinstall_cmds=$lt_postinstall_cmds
17232
17233# Command to use after uninstallation of a shared archive.
17234postuninstall_cmds=$lt_postuninstall_cmds
17235
17236# Commands used to finish a libtool library installation in a directory.
17237finish_cmds=$lt_finish_cmds
17238
17239# As "finish_cmds", except a single script fragment to be evaled but
17240# not shown.
17241finish_eval=$lt_finish_eval
17242
17243# Whether we should hardcode library paths into libraries.
17244hardcode_into_libs=$hardcode_into_libs
17245
17246# Compile-time system search path for libraries.
17247sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17248
17249# Run-time system search path for libraries.
17250sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17251
17252# Whether dlopen is supported.
17253dlopen_support=$enable_dlopen
17254
17255# Whether dlopen of programs is supported.
17256dlopen_self=$enable_dlopen_self
17257
17258# Whether dlopen of statically linked programs is supported.
17259dlopen_self_static=$enable_dlopen_self_static
17260
17261# Commands to strip libraries.
17262old_striplib=$lt_old_striplib
17263striplib=$lt_striplib
17264
17265
17266# The linker used to build libraries.
17267LD=$lt_LD
17268
17269# How to create reloadable object files.
17270reload_flag=$lt_reload_flag
17271reload_cmds=$lt_reload_cmds
17272
17273# Commands used to build an old-style archive.
17274old_archive_cmds=$lt_old_archive_cmds
17275
17276# A language specific compiler.
17277CC=$lt_compiler
17278
17279# Is the compiler the GNU compiler?
17280with_gcc=$GCC
17281
17282# Compiler flag to turn off builtin functions.
17283no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17284
17285# How to pass a linker flag through the compiler.
17286wl=$lt_lt_prog_compiler_wl
17287
17288# Additional compiler flags for building library objects.
17289pic_flag=$lt_lt_prog_compiler_pic
17290
17291# Compiler flag to prevent dynamic linking.
17292link_static_flag=$lt_lt_prog_compiler_static
17293
17294# Does compiler simultaneously support -c and -o options?
17295compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17296
17297# Whether or not to add -lc for building shared libraries.
17298build_libtool_need_lc=$archive_cmds_need_lc
17299
17300# Whether or not to disallow shared libs when runtime libs are static.
17301allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17302
17303# Compiler flag to allow reflexive dlopens.
17304export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17305
17306# Compiler flag to generate shared objects directly from archives.
17307whole_archive_flag_spec=$lt_whole_archive_flag_spec
17308
17309# Whether the compiler copes with passing no objects directly.
17310compiler_needs_object=$lt_compiler_needs_object
17311
17312# Create an old-style archive from a shared archive.
17313old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17314
17315# Create a temporary old-style archive to link instead of a shared archive.
17316old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17317
17318# Commands used to build a shared archive.
17319archive_cmds=$lt_archive_cmds
17320archive_expsym_cmds=$lt_archive_expsym_cmds
17321
17322# Commands used to build a loadable module if different from building
17323# a shared archive.
17324module_cmds=$lt_module_cmds
17325module_expsym_cmds=$lt_module_expsym_cmds
17326
17327# Whether we are building with GNU ld or not.
17328with_gnu_ld=$lt_with_gnu_ld
17329
17330# Flag that allows shared libraries with undefined symbols to be built.
17331allow_undefined_flag=$lt_allow_undefined_flag
17332
17333# Flag that enforces no undefined symbols.
17334no_undefined_flag=$lt_no_undefined_flag
17335
17336# Flag to hardcode \$libdir into a binary during linking.
17337# This must work even if \$libdir does not exist
17338hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17339
17340# If ld is used when linking, flag to hardcode \$libdir into a binary
17341# during linking. This must work even if \$libdir does not exist.
17342hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17343
17344# Whether we need a single "-rpath" flag with a separated argument.
17345hardcode_libdir_separator=$lt_hardcode_libdir_separator
17346
17347# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17348# DIR into the resulting binary.
17349hardcode_direct=$hardcode_direct
17350
17351# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17352# DIR into the resulting binary and the resulting library dependency is
17353# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17354# library is relocated.
17355hardcode_direct_absolute=$hardcode_direct_absolute
17356
17357# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17358# into the resulting binary.
17359hardcode_minus_L=$hardcode_minus_L
17360
17361# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17362# into the resulting binary.
17363hardcode_shlibpath_var=$hardcode_shlibpath_var
17364
17365# Set to "yes" if building a shared library automatically hardcodes DIR
17366# into the library and all subsequent libraries and executables linked
17367# against it.
17368hardcode_automatic=$hardcode_automatic
17369
17370# Set to yes if linker adds runtime paths of dependent libraries
17371# to runtime path list.
17372inherit_rpath=$inherit_rpath
17373
17374# Whether libtool must link a program against all its dependency libraries.
17375link_all_deplibs=$link_all_deplibs
17376
17377# Fix the shell variable \$srcfile for the compiler.
17378fix_srcfile_path=$lt_fix_srcfile_path
17379
17380# Set to "yes" if exported symbols are required.
17381always_export_symbols=$always_export_symbols
17382
17383# The commands to list exported symbols.
17384export_symbols_cmds=$lt_export_symbols_cmds
17385
17386# Symbols that should not be listed in the preloaded symbols.
17387exclude_expsyms=$lt_exclude_expsyms
17388
17389# Symbols that must always be exported.
17390include_expsyms=$lt_include_expsyms
17391
17392# Commands necessary for linking programs (against libraries) with templates.
17393prelink_cmds=$lt_prelink_cmds
17394
17395# Specify filename containing input files.
17396file_list_spec=$lt_file_list_spec
17397
17398# How to hardcode a shared library path into an executable.
17399hardcode_action=$hardcode_action
17400
17401# ### END LIBTOOL CONFIG
17402
17403_LT_EOF
17404
17405 case $host_os in
17406 aix3*)
17407 cat <<\_LT_EOF >> "$cfgfile"
17408# AIX sometimes has problems with the GCC collect2 program. For some
17409# reason, if we set the COLLECT_NAMES environment variable, the problems
17410# vanish in a puff of smoke.
17411if test "X${COLLECT_NAMES+set}" != Xset; then
17412 COLLECT_NAMES=
17413 export COLLECT_NAMES
17414fi
17415_LT_EOF
17416 ;;
17417 esac
17418
17419
17420ltmain="$ac_aux_dir/ltmain.sh"
17421
17422
17423 # We use sed instead of cat because bash on DJGPP gets confused if
17424 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17425 # text mode, it properly converts lines to CR/LF. This bash problem
17426 # is reportedly fixed, but why not run on old versions too?
17427 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17428 || (rm -f "$cfgfile"; exit 1)
17429
17430 case $xsi_shell in
17431 yes)
17432 cat << \_LT_EOF >> "$cfgfile"
17433
17434# func_dirname file append nondir_replacement
17435# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17436# otherwise set result to NONDIR_REPLACEMENT.
17437func_dirname ()
17438{
17439 case ${1} in
17440 */*) func_dirname_result="${1%/*}${2}" ;;
17441 * ) func_dirname_result="${3}" ;;
17442 esac
17443}
17444
17445# func_basename file
17446func_basename ()
17447{
17448 func_basename_result="${1##*/}"
17449}
17450
17451# func_dirname_and_basename file append nondir_replacement
17452# perform func_basename and func_dirname in a single function
17453# call:
17454# dirname: Compute the dirname of FILE. If nonempty,
17455# add APPEND to the result, otherwise set result
17456# to NONDIR_REPLACEMENT.
17457# value returned in "$func_dirname_result"
17458# basename: Compute filename of FILE.
17459# value retuned in "$func_basename_result"
17460# Implementation must be kept synchronized with func_dirname
17461# and func_basename. For efficiency, we do not delegate to
17462# those functions but instead duplicate the functionality here.
17463func_dirname_and_basename ()
17464{
17465 case ${1} in
17466 */*) func_dirname_result="${1%/*}${2}" ;;
17467 * ) func_dirname_result="${3}" ;;
17468 esac
17469 func_basename_result="${1##*/}"
17470}
17471
17472# func_stripname prefix suffix name
17473# strip PREFIX and SUFFIX off of NAME.
17474# PREFIX and SUFFIX must not contain globbing or regex special
17475# characters, hashes, percent signs, but SUFFIX may contain a leading
17476# dot (in which case that matches only a dot).
17477func_stripname ()
17478{
17479 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17480 # positional parameters, so assign one to ordinary parameter first.
17481 func_stripname_result=${3}
17482 func_stripname_result=${func_stripname_result#"${1}"}
17483 func_stripname_result=${func_stripname_result%"${2}"}
17484}
17485
17486# func_opt_split
17487func_opt_split ()
17488{
17489 func_opt_split_opt=${1%%=*}
17490 func_opt_split_arg=${1#*=}
17491}
17492
17493# func_lo2o object
17494func_lo2o ()
17495{
17496 case ${1} in
17497 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17498 *) func_lo2o_result=${1} ;;
17499 esac
17500}
17501
17502# func_xform libobj-or-source
17503func_xform ()
17504{
17505 func_xform_result=${1%.*}.lo
17506}
17507
17508# func_arith arithmetic-term...
17509func_arith ()
17510{
17511 func_arith_result=$(( $* ))
17512}
17513
17514# func_len string
17515# STRING may not start with a hyphen.
17516func_len ()
17517{
17518 func_len_result=${#1}
17519}
17520
17521_LT_EOF
17522 ;;
17523 *) # Bourne compatible functions.
17524 cat << \_LT_EOF >> "$cfgfile"
17525
17526# func_dirname file append nondir_replacement
17527# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17528# otherwise set result to NONDIR_REPLACEMENT.
17529func_dirname ()
17530{
17531 # Extract subdirectory from the argument.
17532 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17533 if test "X$func_dirname_result" = "X${1}"; then
17534 func_dirname_result="${3}"
17535 else
17536 func_dirname_result="$func_dirname_result${2}"
17537 fi
17538}
17539
17540# func_basename file
17541func_basename ()
17542{
17543 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17544}
17545
17546
17547# func_stripname prefix suffix name
17548# strip PREFIX and SUFFIX off of NAME.
17549# PREFIX and SUFFIX must not contain globbing or regex special
17550# characters, hashes, percent signs, but SUFFIX may contain a leading
17551# dot (in which case that matches only a dot).
17552# func_strip_suffix prefix name
17553func_stripname ()
17554{
17555 case ${2} in
17556 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17557 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17558 esac
17559}
17560
17561# sed scripts:
17562my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17563my_sed_long_arg='1s/^-[^=]*=//'
17564
17565# func_opt_split
17566func_opt_split ()
17567{
17568 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17569 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17570}
17571
17572# func_lo2o object
17573func_lo2o ()
17574{
17575 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17576}
17577
17578# func_xform libobj-or-source
17579func_xform ()
17580{
17581 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17582}
17583
17584# func_arith arithmetic-term...
17585func_arith ()
17586{
17587 func_arith_result=`expr "$@"`
17588}
17589
17590# func_len string
17591# STRING may not start with a hyphen.
17592func_len ()
17593{
17594 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17595}
17596
17597_LT_EOF
17598esac
17599
17600case $lt_shell_append in
17601 yes)
17602 cat << \_LT_EOF >> "$cfgfile"
17603
17604# func_append var value
17605# Append VALUE to the end of shell variable VAR.
17606func_append ()
17607{
17608 eval "$1+=\$2"
17609}
17610_LT_EOF
17611 ;;
17612 *)
17613 cat << \_LT_EOF >> "$cfgfile"
17614
17615# func_append var value
17616# Append VALUE to the end of shell variable VAR.
17617func_append ()
17618{
17619 eval "$1=\$$1\$2"
17620}
17621
17622_LT_EOF
17623 ;;
17624 esac
17625
17626
17627 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17628 || (rm -f "$cfgfile"; exit 1)
17629
17630 mv -f "$cfgfile" "$ofile" ||
17631 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17632 chmod +x "$ofile"
17633
17634 ;;
17635 "gstdint.h":C)
17636if test "$GCC" = yes; then
17637 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
17638else
17639 echo "/* generated for $CC */" > tmp-stdint.h
17640fi
17641
17642sed 's/^ *//' >> tmp-stdint.h <<EOF
17643
17644 #ifndef GCC_GENERATED_STDINT_H
17645 #define GCC_GENERATED_STDINT_H 1
17646
17647 #include <sys/types.h>
17648EOF
17649
17650if test "$acx_cv_header_stdint" != stdint.h; then
17651 echo "#include <stddef.h>" >> tmp-stdint.h
17652fi
17653if test "$acx_cv_header_stdint" != stddef.h; then
17654 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
17655fi
17656
17657sed 's/^ *//' >> tmp-stdint.h <<EOF
17658 /* glibc uses these symbols as guards to prevent redefinitions. */
17659 #ifdef __int8_t_defined
17660 #define _INT8_T
17661 #define _INT16_T
17662 #define _INT32_T
17663 #endif
17664 #ifdef __uint32_t_defined
17665 #define _UINT32_T
17666 #endif
17667
17668EOF
17669
17670# ----------------- done header, emit basic int types -------------
17671if test "$acx_cv_header_stdint" = stddef.h; then
17672 sed 's/^ *//' >> tmp-stdint.h <<EOF
17673
17674 #ifndef _UINT8_T
17675 #define _UINT8_T
17676 #ifndef __uint8_t_defined
17677 #define __uint8_t_defined
17678 #ifndef uint8_t
17679 typedef unsigned $acx_cv_type_int8_t uint8_t;
17680 #endif
17681 #endif
17682 #endif
17683
17684 #ifndef _UINT16_T
17685 #define _UINT16_T
17686 #ifndef __uint16_t_defined
17687 #define __uint16_t_defined
17688 #ifndef uint16_t
17689 typedef unsigned $acx_cv_type_int16_t uint16_t;
17690 #endif
17691 #endif
17692 #endif
17693
17694 #ifndef _UINT32_T
17695 #define _UINT32_T
17696 #ifndef __uint32_t_defined
17697 #define __uint32_t_defined
17698 #ifndef uint32_t
17699 typedef unsigned $acx_cv_type_int32_t uint32_t;
17700 #endif
17701 #endif
17702 #endif
17703
17704 #ifndef _INT8_T
17705 #define _INT8_T
17706 #ifndef __int8_t_defined
17707 #define __int8_t_defined
17708 #ifndef int8_t
17709 typedef $acx_cv_type_int8_t int8_t;
17710 #endif
17711 #endif
17712 #endif
17713
17714 #ifndef _INT16_T
17715 #define _INT16_T
17716 #ifndef __int16_t_defined
17717 #define __int16_t_defined
17718 #ifndef int16_t
17719 typedef $acx_cv_type_int16_t int16_t;
17720 #endif
17721 #endif
17722 #endif
17723
17724 #ifndef _INT32_T
17725 #define _INT32_T
17726 #ifndef __int32_t_defined
17727 #define __int32_t_defined
17728 #ifndef int32_t
17729 typedef $acx_cv_type_int32_t int32_t;
17730 #endif
17731 #endif
17732 #endif
17733EOF
17734elif test "$ac_cv_type_u_int32_t" = yes; then
17735 sed 's/^ *//' >> tmp-stdint.h <<EOF
17736
17737 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
17738 #ifndef _INT8_T
17739 #define _INT8_T
17740 #endif
17741 #ifndef _INT16_T
17742 #define _INT16_T
17743 #endif
17744 #ifndef _INT32_T
17745 #define _INT32_T
17746 #endif
17747
17748 #ifndef _UINT8_T
17749 #define _UINT8_T
17750 #ifndef __uint8_t_defined
17751 #define __uint8_t_defined
17752 #ifndef uint8_t
17753 typedef u_int8_t uint8_t;
17754 #endif
17755 #endif
17756 #endif
17757
17758 #ifndef _UINT16_T
17759 #define _UINT16_T
17760 #ifndef __uint16_t_defined
17761 #define __uint16_t_defined
17762 #ifndef uint16_t
17763 typedef u_int16_t uint16_t;
17764 #endif
17765 #endif
17766 #endif
17767
17768 #ifndef _UINT32_T
17769 #define _UINT32_T
17770 #ifndef __uint32_t_defined
17771 #define __uint32_t_defined
17772 #ifndef uint32_t
17773 typedef u_int32_t uint32_t;
17774 #endif
17775 #endif
17776 #endif
17777EOF
17778else
17779 sed 's/^ *//' >> tmp-stdint.h <<EOF
17780
17781 /* Some systems have guard macros to prevent redefinitions, define them. */
17782 #ifndef _INT8_T
17783 #define _INT8_T
17784 #endif
17785 #ifndef _INT16_T
17786 #define _INT16_T
17787 #endif
17788 #ifndef _INT32_T
17789 #define _INT32_T
17790 #endif
17791 #ifndef _UINT8_T
17792 #define _UINT8_T
17793 #endif
17794 #ifndef _UINT16_T
17795 #define _UINT16_T
17796 #endif
17797 #ifndef _UINT32_T
17798 #define _UINT32_T
17799 #endif
17800EOF
17801fi
17802
17803# ------------- done basic int types, emit int64_t types ------------
17804if test "$ac_cv_type_uint64_t" = yes; then
17805 sed 's/^ *//' >> tmp-stdint.h <<EOF
17806
17807 /* system headers have good uint64_t and int64_t */
17808 #ifndef _INT64_T
17809 #define _INT64_T
17810 #endif
17811 #ifndef _UINT64_T
17812 #define _UINT64_T
17813 #endif
17814EOF
17815elif test "$ac_cv_type_u_int64_t" = yes; then
17816 sed 's/^ *//' >> tmp-stdint.h <<EOF
17817
17818 /* system headers have an u_int64_t (and int64_t) */
17819 #ifndef _INT64_T
17820 #define _INT64_T
17821 #endif
17822 #ifndef _UINT64_T
17823 #define _UINT64_T
17824 #ifndef __uint64_t_defined
17825 #define __uint64_t_defined
17826 #ifndef uint64_t
17827 typedef u_int64_t uint64_t;
17828 #endif
17829 #endif
17830 #endif
17831EOF
17832elif test -n "$acx_cv_type_int64_t"; then
17833 sed 's/^ *//' >> tmp-stdint.h <<EOF
17834
17835 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
17836 #ifndef _INT64_T
17837 #define _INT64_T
17838 #ifndef int64_t
17839 typedef $acx_cv_type_int64_t int64_t;
17840 #endif
17841 #endif
17842 #ifndef _UINT64_T
17843 #define _UINT64_T
17844 #ifndef __uint64_t_defined
17845 #define __uint64_t_defined
17846 #ifndef uint64_t
17847 typedef unsigned $acx_cv_type_int64_t uint64_t;
17848 #endif
17849 #endif
17850 #endif
17851EOF
17852else
17853 sed 's/^ *//' >> tmp-stdint.h <<EOF
17854
17855 /* some common heuristics for int64_t, using compiler-specific tests */
17856 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
17857 #ifndef _INT64_T
17858 #define _INT64_T
17859 #ifndef __int64_t_defined
17860 #ifndef int64_t
17861 typedef long long int64_t;
17862 #endif
17863 #endif
17864 #endif
17865 #ifndef _UINT64_T
17866 #define _UINT64_T
17867 #ifndef uint64_t
17868 typedef unsigned long long uint64_t;
17869 #endif
17870 #endif
17871
17872 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
17873 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
17874 does not implement __extension__. But that compiler doesn't define
17875 __GNUC_MINOR__. */
17876 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
17877 # define __extension__
17878 # endif
17879
17880 # ifndef _INT64_T
17881 # define _INT64_T
17882 # ifndef int64_t
17883 __extension__ typedef long long int64_t;
17884 # endif
17885 # endif
17886 # ifndef _UINT64_T
17887 # define _UINT64_T
17888 # ifndef uint64_t
17889 __extension__ typedef unsigned long long uint64_t;
17890 # endif
17891 # endif
17892
17893 #elif !defined __STRICT_ANSI__
17894 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
17895
17896 # ifndef _INT64_T
17897 # define _INT64_T
17898 # ifndef int64_t
17899 typedef __int64 int64_t;
17900 # endif
17901 # endif
17902 # ifndef _UINT64_T
17903 # define _UINT64_T
17904 # ifndef uint64_t
17905 typedef unsigned __int64 uint64_t;
17906 # endif
17907 # endif
17908 # endif /* compiler */
17909
17910 #endif /* ANSI version */
17911EOF
17912fi
17913
17914# ------------- done int64_t types, emit intptr types ------------
17915if test "$ac_cv_type_uintptr_t" != yes; then
17916 sed 's/^ *//' >> tmp-stdint.h <<EOF
17917
17918 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
17919 #ifndef __uintptr_t_defined
17920 #ifndef uintptr_t
17921 typedef u$acx_cv_type_intptr_t uintptr_t;
17922 #endif
17923 #endif
17924 #ifndef __intptr_t_defined
17925 #ifndef intptr_t
17926 typedef $acx_cv_type_intptr_t intptr_t;
17927 #endif
17928 #endif
17929EOF
17930fi
17931
17932# ------------- done intptr types, emit int_least types ------------
17933if test "$ac_cv_type_int_least32_t" != yes; then
17934 sed 's/^ *//' >> tmp-stdint.h <<EOF
17935
17936 /* Define int_least types */
17937 typedef int8_t int_least8_t;
17938 typedef int16_t int_least16_t;
17939 typedef int32_t int_least32_t;
17940 #ifdef _INT64_T
17941 typedef int64_t int_least64_t;
17942 #endif
17943
17944 typedef uint8_t uint_least8_t;
17945 typedef uint16_t uint_least16_t;
17946 typedef uint32_t uint_least32_t;
17947 #ifdef _UINT64_T
17948 typedef uint64_t uint_least64_t;
17949 #endif
17950EOF
17951fi
17952
17953# ------------- done intptr types, emit int_fast types ------------
17954if test "$ac_cv_type_int_fast32_t" != yes; then
17955 sed 's/^ *//' >> tmp-stdint.h <<EOF
17956
17957 /* Define int_fast types. short is often slow */
17958 typedef int8_t int_fast8_t;
17959 typedef int int_fast16_t;
17960 typedef int32_t int_fast32_t;
17961 #ifdef _INT64_T
17962 typedef int64_t int_fast64_t;
17963 #endif
17964
17965 typedef uint8_t uint_fast8_t;
17966 typedef unsigned int uint_fast16_t;
17967 typedef uint32_t uint_fast32_t;
17968 #ifdef _UINT64_T
17969 typedef uint64_t uint_fast64_t;
17970 #endif
17971EOF
17972fi
17973
17974if test "$ac_cv_type_uintmax_t" != yes; then
17975 sed 's/^ *//' >> tmp-stdint.h <<EOF
17976
17977 /* Define intmax based on what we found */
17978 #ifndef intmax_t
17979 #ifdef _INT64_T
17980 typedef int64_t intmax_t;
17981 #else
17982 typedef long intmax_t;
17983 #endif
17984 #endif
17985 #ifndef uintmax_t
17986 #ifdef _UINT64_T
17987 typedef uint64_t uintmax_t;
17988 #else
17989 typedef unsigned long uintmax_t;
17990 #endif
17991 #endif
17992EOF
17993fi
17994
17995sed 's/^ *//' >> tmp-stdint.h <<EOF
17996
17997 #endif /* GCC_GENERATED_STDINT_H */
17998EOF
17999
18000if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
18001 rm -f tmp-stdint.h
18002else
18003 mv -f tmp-stdint.h gstdint.h
18004fi
18005
18006 ;;
18007
18008 esac
18009done # for ac_tag
18010
18011
18012as_fn_exit 0
18013_ACEOF
18014ac_clean_files=$ac_clean_files_save
18015
18016test $ac_write_fail = 0 ||
18017 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18018
18019
18020# configure is writing to config.log, and then calls config.status.
18021# config.status does its own redirection, appending to config.log.
18022# Unfortunately, on DOS this fails, as config.log is still kept open
18023# by configure, so config.status won't be able to write to it; its
18024# output is simply discarded. So we exec the FD to /dev/null,
18025# effectively closing config.log, so it can be properly (re)opened and
18026# appended to by config.status. When coming back to configure, we
18027# need to make the FD available again.
18028if test "$no_create" != yes; then
18029 ac_cs_success=:
18030 ac_config_status_args=
18031 test "$silent" = yes &&
18032 ac_config_status_args="$ac_config_status_args --quiet"
18033 exec 5>/dev/null
18034 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18035 exec 5>>config.log
18036 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18037 # would make configure fail if this is the last instruction.
18038 $ac_cs_success || as_fn_exit $?
18039fi
18040if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18042$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18043fi
18044